From 3ab3a4981809c268f90c075997263cbc6f4f771b Mon Sep 17 00:00:00 2001
From: ZhangXianQiang <1135831638@qq.com>
Date: 星期三, 20 三月 2024 09:20:35 +0800
Subject: [PATCH] style:修改下拉样式
---
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