25616
This commit is contained in:
		| @@ -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 | ||||
|   | ||||
		Reference in New Issue
	
	Block a user