From 34c212d3d8bb70a92e0cbf5619290ed1e33ecae0 Mon Sep 17 00:00:00 2001 From: wangxy Date: Mon, 19 Jul 2021 17:59:02 +0800 Subject: [PATCH] =?UTF-8?q?=E8=8B=8F=E5=B7=9E=E8=93=9D=E8=89=B2=E7=89=88?= =?UTF-8?q?=E6=9C=AC=E7=BB=B4=E6=8A=A4=E6=9C=8D=E5=8A=A1=E9=A1=B5=E9=9D=A2?= =?UTF-8?q?=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/equip/basic/service.vue | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/src/views/equip/basic/service.vue b/src/views/equip/basic/service.vue index 6a4c361..2d91bb8 100644 --- a/src/views/equip/basic/service.vue +++ b/src/views/equip/basic/service.vue @@ -228,7 +228,7 @@
参数
- + 0 && this.arg) { + this.isUnassign = true + } else { + this.isUnassign = false + } + if (this.assignArray.length > 0 && this.arg) { + this.isAssign = true + } else { + this.isAssign = false + } + }, /** 选择未分配 */ handleSelectionUnassign(selection) { this.unassignArray = [] selection.forEach(element => { this.unassignArray.push(element) }) - this.isUnassign = this.unassignArray.length > 0 + if (this.unassignArray.length > 0 && this.arg) { + this.isUnassign = true + } else { + this.isUnassign = false + } }, /** 选择已分配 */ handleSelectionAssign(selection) { @@ -425,7 +442,12 @@ export default { selection.forEach(element => { this.assignArray.push(element) }) - this.isAssign = this.assignArray.length > 0 + // this.isAssign = this.assignArray.length > 0 && this.arg + if (this.assignArray.length > 0 && this.arg) { + this.isAssign = true + } else { + this.isAssign = false + } }, /** 已分配 ->未分配*/ handleToRight() {