25616
This commit is contained in:
@@ -23,6 +23,7 @@
|
|||||||
:key="index"
|
:key="index"
|
||||||
v-for="(tag,index) in form.girdInfoList"
|
v-for="(tag,index) in form.girdInfoList"
|
||||||
closable
|
closable
|
||||||
|
style="margin-right: 16px;"
|
||||||
:disable-transitions="false"
|
:disable-transitions="false"
|
||||||
@close="handleClose(tag)">
|
@close="handleClose(tag)">
|
||||||
{{tag.girdName}}
|
{{tag.girdName}}
|
||||||
@@ -122,6 +123,9 @@ export default {
|
|||||||
});
|
});
|
||||||
},
|
},
|
||||||
getCheckedTree() {
|
getCheckedTree() {
|
||||||
|
if (this.$refs.tree.getCheckedNodes().length > 1) {
|
||||||
|
return this.$message.error('不能绑定多个网格')
|
||||||
|
}
|
||||||
this.form.girdInfoList = this.$refs.tree.getCheckedNodes();
|
this.form.girdInfoList = this.$refs.tree.getCheckedNodes();
|
||||||
this.showGrid = false;
|
this.showGrid = false;
|
||||||
},
|
},
|
||||||
@@ -146,6 +150,10 @@ export default {
|
|||||||
onSubmit() {
|
onSubmit() {
|
||||||
this.$refs.form.validate((valid) => {
|
this.$refs.form.validate((valid) => {
|
||||||
if (valid) {
|
if (valid) {
|
||||||
|
if (this.form.girdInfoList.length > 1) {
|
||||||
|
return this.$message.error('不能绑定多个网格')
|
||||||
|
}
|
||||||
|
|
||||||
this.form.girdName = this.form.girdInfoList[0].girdName
|
this.form.girdName = this.form.girdInfoList[0].girdName
|
||||||
this.form.girdId = this.form.girdInfoList[0].id
|
this.form.girdId = this.form.girdInfoList[0].id
|
||||||
this.instance
|
this.instance
|
||||||
|
|||||||
Reference in New Issue
Block a user