|
@@ -1,7 +1,7 @@
|
|
|
<template>
|
|
|
<el-dialog :title="!dataForm.id ? '新增模板' : '修改模板'" :close-on-click-modal="false" :visible.sync="visible">
|
|
|
<el-form :model="dataForm" :rules="dataRule" ref="dataForm" @keyup.enter.native="dataFormSubmit()"
|
|
|
- label-width="80px">
|
|
|
+ label-width="100px">
|
|
|
<el-form-item label="模板名称" prop="modelName">
|
|
|
<el-input v-model="dataForm.modelName" placeholder="请输入模板名称"></el-input>
|
|
|
</el-form-item>
|
|
@@ -27,6 +27,13 @@
|
|
|
</el-select>
|
|
|
</el-form-item>
|
|
|
|
|
|
+ <el-form-item label="主运行文件" prop="form">
|
|
|
+ <el-select v-model="dataForm.appFile" placeholder="选择主运行文件">
|
|
|
+ <el-option v-for="data in fileList" :key="data.name" :label="data.name" :value="data.name">
|
|
|
+ </el-option>
|
|
|
+ </el-select>
|
|
|
+ </el-form-item>
|
|
|
+
|
|
|
<el-form-item label="描述信息" prop="remark">
|
|
|
<el-input type="textarea" :autosize="{ minRows: 4, maxRows: 6}" placeholder="请输入内容" v-model="dataForm.remark">
|
|
|
</el-input>
|
|
@@ -61,6 +68,7 @@ export default {
|
|
|
// 本模板的类别
|
|
|
categoryId: 1,
|
|
|
form:null,
|
|
|
+ appFile:"",
|
|
|
remark: "",
|
|
|
},
|
|
|
textarea2: "",
|
|
@@ -127,6 +135,7 @@ export default {
|
|
|
this.dataForm.modelName = data.model.modelName;
|
|
|
this.dataForm.categoryId = data.model.categoryId;
|
|
|
this.dataForm.remark = data.model.remark;
|
|
|
+ this.dataForm.appFile=data.model.appFile;
|
|
|
// 模板文件地址
|
|
|
// this.dataForm.dfsUrlv = data.temp.dfsUrlv;
|
|
|
}
|
|
@@ -153,6 +162,7 @@ export default {
|
|
|
formData.append('remark',this.dataForm.remark);
|
|
|
formData.append('uid',this.$store.state.user.id);
|
|
|
formData.append('form',this.dataForm.form);
|
|
|
+ formData.append('appFile',this.dataForm.appFile);
|
|
|
this.$http({
|
|
|
url: this.$http.adornUrl(
|
|
|
`/algs/models/${!this.dataForm.id ? "save" : "update"}`
|