|
@@ -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(() => {
|