This commit is contained in:
yanran200730
2021-12-23 17:51:50 +08:00
parent 5e51bfaaa4
commit aa1f45e10a

View File

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