|
@@ -4,7 +4,7 @@
|
|
|
<el-form-item label="参数名称" prop="paramName">
|
|
|
<el-input v-model="parameter.paramName"></el-input>
|
|
|
</el-form-item>
|
|
|
- <el-form-item label="参数类型" prop="paramType">
|
|
|
+ <el-form-item label="参数类型" prop="paramTypeVal">
|
|
|
<el-select
|
|
|
v-model="parameter.paramTypeVal"
|
|
|
multiple
|
|
@@ -37,6 +37,7 @@
|
|
|
<script>
|
|
|
import { getDictionary } from "@/api/system/dict";
|
|
|
import { submitParameter } from "../../../api/paramter/parmter.js";
|
|
|
+
|
|
|
export default {
|
|
|
props: {
|
|
|
visible: {
|
|
@@ -51,24 +52,23 @@
|
|
|
watch: {
|
|
|
params: {
|
|
|
handler: function(n) {
|
|
|
- console.log(n,'params1111111');
|
|
|
-
|
|
|
if(n.id){
|
|
|
this.modalTitle='编辑参数'
|
|
|
+
|
|
|
}else{
|
|
|
this.modalTitle='新增参数'
|
|
|
}
|
|
|
- this.parameter=n
|
|
|
- this.parameter.paramTypeVal=n.paramType.split(',')
|
|
|
+
|
|
|
},
|
|
|
deep: true,
|
|
|
},
|
|
|
},
|
|
|
data() {
|
|
|
return {
|
|
|
+
|
|
|
parameter: {
|
|
|
paramName: '',
|
|
|
- paramTypeVal: '',
|
|
|
+ paramTypeVal: [],
|
|
|
type: false,
|
|
|
remarks: ''
|
|
|
},
|
|
@@ -87,10 +87,20 @@
|
|
|
}
|
|
|
};
|
|
|
},
|
|
|
+
|
|
|
created() {
|
|
|
this.getParamTypeList();
|
|
|
},
|
|
|
methods: {
|
|
|
+ show(n){
|
|
|
+ this.visible=true
|
|
|
+ this.parameter = JSON.parse(JSON.stringify(n));
|
|
|
+ console.log(this.parameter,'this.parameter1111111111');
|
|
|
+ // this.$nextTick(()=>{
|
|
|
+ // this.parameter.paramTypeVal=this.parameter.paramType.split(',')
|
|
|
+ // })
|
|
|
+ this.$set(this.parameter,"paramTypeVal", this.parameter.paramType.split(','))
|
|
|
+ },
|
|
|
getParamTypeList() {
|
|
|
let code = "parameter_type";
|
|
|
getDictionary({
|