From 881e4f7134e434230374bfc5fabb5df89a688251 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=AA=86=E4=B9=90?= <342503599@qq.com> Date: Wed, 7 Sep 2022 15:38:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=B8=AD=E5=BB=BA=E6=BE=B3=E9=97=A8(=E4=BA=BA?= =?UTF-8?q?=E5=91=98=E7=AE=A1=E7=90=86):=E4=B8=80=E9=94=AE=E4=B8=8B?= =?UTF-8?q?=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/projectAdmin/zjsj/quality/leftTop.vue | 8 ++++---- .../laborManage/personModule/administration.vue | 12 +++++------- .../laborManage/personModule/laborComponent.vue | 5 ++--- 3 files changed, 11 insertions(+), 14 deletions(-) diff --git a/src/views/projectAdmin/zjsj/quality/leftTop.vue b/src/views/projectAdmin/zjsj/quality/leftTop.vue index 48b951ae..d1af1e86 100644 --- a/src/views/projectAdmin/zjsj/quality/leftTop.vue +++ b/src/views/projectAdmin/zjsj/quality/leftTop.vue @@ -4,10 +4,10 @@
@@ -34,10 +34,10 @@
diff --git a/src/views/projectFront/laborManage/personModule/administration.vue b/src/views/projectFront/laborManage/personModule/administration.vue index 0c7d2015..a6bc9ec2 100644 --- a/src/views/projectFront/laborManage/personModule/administration.vue +++ b/src/views/projectFront/laborManage/personModule/administration.vue @@ -347,7 +347,7 @@ type="primary" :disabled="checkedWorker.length == 0" @click="issuePersonFn" - v-if="!key" + v-if="key" >{{ $t('message.laborMange.aKeyIssued') }} @@ -497,11 +497,11 @@ type="primary" size="mini" @click="issuePersonOneFn(scope.row.id)" - v-if="!key" + v-if="key" >{{ $t('message.laborMange.aKeyIssued') }}
-
+
{ if (item.actionList) { - item.actionList.forEach((item2) => { + item.actionList.find((item2) => { if (item2.actionCode == 'akey_issued') { - this.key = false - } else { this.key = true } console.log('this.key', this.key) diff --git a/src/views/projectFront/laborManage/personModule/laborComponent.vue b/src/views/projectFront/laborManage/personModule/laborComponent.vue index a6264b9b..81a1440d 100644 --- a/src/views/projectFront/laborManage/personModule/laborComponent.vue +++ b/src/views/projectFront/laborManage/personModule/laborComponent.vue @@ -423,6 +423,7 @@ /> {{ $t('message.laborMange.delete') }}
+ { if (item.actionList) { - item.actionList.forEach((item2) => { + item.actionList.find((item2) => { if (item2.actionCode == 'akey_issued') { this.key = true - } else { - this.key = false } console.log('this.key', this.key) })