|
@@ -19,7 +19,7 @@
|
|
|
<j-tree-select
|
|
|
ref="treeSelect"
|
|
|
placeholder="请选择设备类型"
|
|
|
- multiple
|
|
|
+ :multiple="multiples"
|
|
|
v-model="model.equipdefid"
|
|
|
dict="tpm_equipment_tree,name,id"
|
|
|
pidField="parentid"
|
|
@@ -66,6 +66,7 @@
|
|
|
return {
|
|
|
model:{
|
|
|
},
|
|
|
+ multiples: false,
|
|
|
labelCol: {
|
|
|
xs: { span: 24 },
|
|
|
sm: { span: 5 },
|
|
@@ -101,10 +102,13 @@
|
|
|
},
|
|
|
methods: {
|
|
|
add () {
|
|
|
- this.edit(this.modelDefault);
|
|
|
+ // this.edit(this.modelDefault);
|
|
|
+ this.multiples = true;
|
|
|
+ this.visible = true;
|
|
|
},
|
|
|
edit (record) {
|
|
|
this.model = Object.assign({}, record);
|
|
|
+ this.multiples = false;
|
|
|
this.visible = true;
|
|
|
},
|
|
|
submitForm () {
|