diff --git a/packages/2.0.5/AppCommunityManage/components/Add.vue b/packages/2.0.5/AppCommunityManage/components/Add.vue index 1828c665..bb12772d 100644 --- a/packages/2.0.5/AppCommunityManage/components/Add.vue +++ b/packages/2.0.5/AppCommunityManage/components/Add.vue @@ -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