From 07a671e2ec9c1f75de1d27a3abced6a1f43352bd Mon Sep 17 00:00:00 2001
From: 龚焕茏 <2842157468@qq.com>
Date: 星期二, 19 三月 2024 17:26:09 +0800
Subject: [PATCH] 考核结果取消发布

---
 src/views/system/check-result/index.vue |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/views/system/check-result/index.vue b/src/views/system/check-result/index.vue
index 34a1ad1..572f380 100644
--- a/src/views/system/check-result/index.vue
+++ b/src/views/system/check-result/index.vue
@@ -96,7 +96,7 @@
       <div class="text item">鑰冩牳鏃堕棿
         <span class="time">{{ item.checkTime }}</span>
         <el-button size="small" round style="float: right;" @click="handlePublish(item)" v-show="item.publish != 1">纭鍙戝竷</el-button>
-        <el-button size="small" round style="float: right;" v-show="item.publish == 1" disabled="true">宸插彂甯�</el-button>
+        <el-button size="small" round style="float: right;" @click="handlePublish(item)" v-show="item.publish == 1">宸插彂甯�</el-button>
       </div>
     </el-card>
 
@@ -357,12 +357,13 @@
 
     },
     handlePublish(row) {
+      let text = row.publish == 1 ? '鍙栨秷鍙戝竷' : '鍙戝竷';
       const ids = row.id || this.ids;
-      this.$modal.confirm('鏄惁纭鍙戝竷鑰冩牳缁撴灉缂栧彿涓�"' + ids + '"鐨勬暟鎹」锛�').then(function() {
+      this.$modal.confirm('鏄惁纭' + text + '鑰冩牳缁撴灉缂栧彿涓�"' + ids + '"鐨勬暟鎹」锛�').then(function() {
         return publishCheckResult(ids);
       }).then(() => {
         this.getList();
-        this.$modal.msgSuccess("鍙戝竷鎴愬姛");
+        this.$modal.msgSuccess(text + "鎴愬姛");
       }).catch(() => {});
 
     },

--
Gitblit v1.8.0