|
@@ -48,6 +48,21 @@
|
|
|
></el-input>
|
|
></el-input>
|
|
|
</el-form-item>
|
|
</el-form-item>
|
|
|
</el-col>
|
|
</el-col>
|
|
|
|
|
+ <el-col :span="12">
|
|
|
|
|
+ <el-form-item label="是否启用">
|
|
|
|
|
+
|
|
|
|
|
+ <el-switch
|
|
|
|
|
+ v-model="addForm.enable"
|
|
|
|
|
+ :active-text="addForm.enable==1?'启用':'停用'"
|
|
|
|
|
+ :active-value="1"
|
|
|
|
|
+ :inactive-value="0"
|
|
|
|
|
+ >
|
|
|
|
|
+ </el-switch>
|
|
|
|
|
+
|
|
|
|
|
+
|
|
|
|
|
+ </el-form-item>
|
|
|
|
|
+ </el-col>
|
|
|
|
|
+
|
|
|
<el-col :span="24">
|
|
<el-col :span="24">
|
|
|
<el-form-item
|
|
<el-form-item
|
|
|
label="描述"
|
|
label="描述"
|
|
@@ -102,7 +117,9 @@
|
|
|
addForm: {
|
|
addForm: {
|
|
|
name: '',
|
|
name: '',
|
|
|
code: '',
|
|
code: '',
|
|
|
- remark: ''
|
|
|
|
|
|
|
+ remark: '',
|
|
|
|
|
+ enable:1
|
|
|
|
|
+
|
|
|
},
|
|
},
|
|
|
addFormRules: {
|
|
addFormRules: {
|
|
|
name: [{ required: true, message: '请输入名称', trigger: 'blur' }],
|
|
name: [{ required: true, message: '请输入名称', trigger: 'blur' }],
|
|
@@ -142,7 +159,8 @@
|
|
|
this.addForm = {
|
|
this.addForm = {
|
|
|
name: '',
|
|
name: '',
|
|
|
code: '',
|
|
code: '',
|
|
|
- remark: ''
|
|
|
|
|
|
|
+ remark: '',
|
|
|
|
|
+ enable:1
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
open(type, row) {
|
|
open(type, row) {
|
|
@@ -186,7 +204,8 @@
|
|
|
name: this.addForm.name,
|
|
name: this.addForm.name,
|
|
|
remark: this.addForm.remark,
|
|
remark: this.addForm.remark,
|
|
|
codeConfigurationList: codeConfigurationList,
|
|
codeConfigurationList: codeConfigurationList,
|
|
|
- codeManageTreeId: 1
|
|
|
|
|
|
|
+ codeManageTreeId: 1,
|
|
|
|
|
+ enable:this.addForm.enable,
|
|
|
};
|
|
};
|
|
|
if (this.openType == 'edit') {
|
|
if (this.openType == 'edit') {
|
|
|
par.id = this.addForm.id;
|
|
par.id = this.addForm.id;
|