ZaiZai 1 年之前
父节点
当前提交
b67172a126
共有 3 个文件被更改,包括 5 次插入9 次删除
  1. 1 1
      src/config/index.json
  2. 1 1
      src/views/exctab/excelmodel/excelmodel.vue
  3. 3 7
      src/views/manager/projectinfo/tree.vue

+ 1 - 1
src/config/index.json

@@ -1,6 +1,6 @@
 {
   "target1": "http://39.108.216.210:8090",
-  "target": "http://192.168.0.102:8090",
+  "target": "http://192.168.0.109:8090",
   "dev": {
     "port": 1888
   }

+ 1 - 1
src/views/exctab/excelmodel/excelmodel.vue

@@ -392,7 +392,7 @@ export default {
       screenfull.request(element);
       // screenfull.toggle();
 
-
+s
     },
     getFile() {
       this.excelshow = true

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

@@ -1605,8 +1605,8 @@
         <el-dialog title="关联节点" :visible="isLinkNodes" append-to-body center destroy-on-close
                    custom-class="hc-link-nodes-dialog" @close="linkNodesClose">
             <el-tree
-                ref="tree" class="hc-link-nodes-tree" lazy :load="loadNode" :props="defaultProps" show-checkbox check-strictly
-                :default-checked-keys="checkedLinkNodesKeys" highlight-current node-key="primaryKeyId" @check="linkNodesCheck"
+                ref="tree2" class="hc-link-nodes-tree" lazy :load="loadNode" :props="defaultProps" show-checkbox check-strictly
+                :default-checked-keys="checkedLinkNodesKeys" highlight-current node-key="primaryKeyId"
             />
             <span slot="footer" class="dialog-footer">
             <el-button @click="linkNodesClose">取 消</el-button>
@@ -2268,13 +2268,9 @@ export default {
                 this.checkedLinkNodesKeys = []
             })
         },
-        //关联节点被勾选
-        linkNodesCheck(_, {checkedKeys}) {
-            this.nodesCheck = checkedKeys
-        },
         //确定关联
         linkNodesSave() {
-            const keys = this.nodesCheck
+            const keys = this.$refs.tree2.getCheckedKeys()
             const pkeyId = this.rowPkeyId
             this.linkNodesLoad = true
             linkNodeTree(keys.join(','), pkeyId).then(() => {