ZaiZai há 1 ano atrás
pai
commit
c5ecef2ee7
1 ficheiros alterados com 7 adições e 0 exclusões
  1. 7 0
      src/views/manager/projectinfo/tree.vue

+ 7 - 0
src/views/manager/projectinfo/tree.vue

@@ -2271,6 +2271,13 @@ export default {
         //确定关联
         linkNodesSave() {
             const keys = this.$refs.tree2.getCheckedKeys()
+            if (keys.length<=0) {
+              this.$message({
+                type: "warning",
+                message: "请先勾选节点",
+              });
+              return
+            }
             const pkeyId = this.rowPkeyId
             this.linkNodesLoad = true
             linkNodeTree(keys.join(','), pkeyId).then(() => {