diff options
| author | chenjinsong <[email protected]> | 2019-11-08 11:20:11 +0800 |
|---|---|---|
| committer | chenjinsong <[email protected]> | 2019-11-08 11:20:11 +0800 |
| commit | 899c34eb325fd9bb098d74d2c7c1cd300542e911 (patch) | |
| tree | 89feafc14a3e03948029d348dca4c089cca28591 | |
| parent | dcb1b1f0acebe8dbeacbb0104023bdc9875b2079 (diff) | |
节点分配bug修复
| -rw-r--r-- | nezha-admin/src/main/resources/templates/js/modules/common/nodeRel.js | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/nezha-admin/src/main/resources/templates/js/modules/common/nodeRel.js b/nezha-admin/src/main/resources/templates/js/modules/common/nodeRel.js index 8ae18c4f..5e0f4d51 100644 --- a/nezha-admin/src/main/resources/templates/js/modules/common/nodeRel.js +++ b/nezha-admin/src/main/resources/templates/js/modules/common/nodeRel.js @@ -262,6 +262,9 @@ var nodeRelComponent = Vue.extend({ nodeReset: function() { //重置此次操作
this.tempSelectedNodes = this.selectedNodes = JSON.parse(JSON.stringify(this.initSelectedNodes));
this.tempSelectableNodes = this.selectableNodes = JSON.parse(JSON.stringify(this.initSelectableNodes));
+ this.selectedNodesAdd = [];
+ this.selectableNodesAdd = [];
+ this.$emit("node-change", [this.selectedNodesAdd, this.selectableNodesAdd, this.tempSelectedNodes.length]);
this.countControll();
},
sortRow: function(flag, nodes) { //列表重新排序,将新增的项置顶
|
