|
@@ -32,7 +32,8 @@
|
|
|
@check="handleSourceCheck"
|
|
|
check-strictly
|
|
|
:default-expanded-keys="defaultExpandedKeys"
|
|
|
- :default-checked-keys="[checkId]"
|
|
|
+
|
|
|
+
|
|
|
|
|
|
></el-tree>
|
|
|
</div>
|
|
@@ -185,6 +186,8 @@ export default {
|
|
|
this.$emit('close');
|
|
|
this.isShowTree=false
|
|
|
this.isShowRight=false
|
|
|
+ this.checkId = ''
|
|
|
+
|
|
|
},
|
|
|
|
|
|
// 加载源树节点
|
|
@@ -277,6 +280,8 @@ export default {
|
|
|
|
|
|
// 处理关联操作
|
|
|
handleLink(exitAfterLink) {
|
|
|
+
|
|
|
+
|
|
|
if (this.selectedSourceNodes.length === 0 || this.selectedTargetNodes.length === 0) {
|
|
|
this.$message.warning('请至少选择一个源节点和一个目标节点');
|
|
|
return;
|
|
@@ -290,13 +295,15 @@ export default {
|
|
|
|
|
|
// 触发父组件的关联事件
|
|
|
this.$emit('link', linkData, () => {
|
|
|
- this.$message.success('关联成功');
|
|
|
+ this.$message.success('复制成功');
|
|
|
if (exitAfterLink) {
|
|
|
this.handleClose();
|
|
|
+ this.clearSelection();
|
|
|
+
|
|
|
} else {
|
|
|
// 清空选择但不关闭弹窗
|
|
|
this.clearSelections(); // 清空选择但不关闭弹窗
|
|
|
-
|
|
|
+
|
|
|
|
|
|
}
|
|
|
});
|
|
@@ -310,6 +317,10 @@ export default {
|
|
|
|
|
|
setTimeout(() => {
|
|
|
this.isShowRight=true
|
|
|
+ this.selectedSourceNodes = [];
|
|
|
+ this.selectedTargetNodes = [];
|
|
|
+
|
|
|
+ this.checkId = ''
|
|
|
|
|
|
}, 1000);
|
|
|
},
|
|
@@ -335,6 +346,8 @@ export default {
|
|
|
// 手动清空数据
|
|
|
this.selectedSourceNodes = [];
|
|
|
this.selectedTargetNodes = [];
|
|
|
+
|
|
|
+ this.checkId = ''
|
|
|
}
|
|
|
}
|
|
|
};
|