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