From dd023ca74a05b5f3cb205fb29a7cc905f2880e9b Mon Sep 17 00:00:00 2001
From: fangyuan <527392886@qq.com>
Date: 星期三, 21 十二月 2022 18:15:25 +0800
Subject: [PATCH] 图片管理ui修改
---
src/views/systemSetting/baseSetting/user/components/main/index.vue | 8 ++++++--
1 files changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/views/systemSetting/baseSetting/user/components/main/index.vue b/src/views/systemSetting/baseSetting/user/components/main/index.vue
index fbb6ce5..5428bf0 100644
--- a/src/views/systemSetting/baseSetting/user/components/main/index.vue
+++ b/src/views/systemSetting/baseSetting/user/components/main/index.vue
@@ -44,7 +44,7 @@
</template>
</el-table-column>
<el-table-column prop="status" label="鍚敤" min-width="5">
- <template slot-scope="scope">
+ <template slot-scope="scope" >
<!-- @change="handleChangeStatus(scope.row)" -->
<el-switch
class="switchStyle"
@@ -72,6 +72,9 @@
<span @click="handleChangeRole(scope.row, 'depart')"
>淇敼閮ㄩ棬</span
>
+ <span class="line">|</span>
+ <span @click="handleChangeStatus(scope.row)">{{scope.row.status === true ?'鍋滅敤':'鍚敤' }}</span>
+
</div>
</template>
</el-table-column>
@@ -380,10 +383,11 @@
// 淇敼鐢ㄦ埛鐘舵��
handleChangeStatus(obj) {
let { id, status } = obj;
- status == true ? (status = 1) : (status = 0);
+ status == true ? (status = 0) : (status = 1);
this.$axios
.post(`sccg/admin/updateStatus/` + id + "?status=" + status)
.then((res) => {
+ this.getUserList();
});
},
// 鑾峰彇鐢ㄦ埛鍒楄〃
--
Gitblit v1.8.0