From b50cec3a8368dd842c5919bf4e25da83f6c4447b Mon Sep 17 00:00:00 2001
From: fangyuan <527392886@qq.com>
Date: 星期五, 30 十二月 2022 15:33:22 +0800
Subject: [PATCH] 消息栏目订阅开关

---
 src/views/systemSetting/baseSetting/department/index.vue |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)

diff --git a/src/views/systemSetting/baseSetting/department/index.vue b/src/views/systemSetting/baseSetting/department/index.vue
index a3c8d40..7f0f8d5 100644
--- a/src/views/systemSetting/baseSetting/department/index.vue
+++ b/src/views/systemSetting/baseSetting/department/index.vue
@@ -76,6 +76,10 @@
                 <span @click="handleUpdate(scope.row)">淇敼</span>
                 <span class="line">|</span>
                 <span @click="handleDelete(scope.row)">鍒犻櫎</span>
+                <span class="line">|</span>
+              <span @click="handleChangeStatus(scope.row)">{{
+                scope.row.status === true ? "鍋滅敤" : "鍚敤"
+              }}</span>
               </div>
             </template>
           </el-table-column>
@@ -318,7 +322,7 @@
     // 淇敼鐘舵��
     handleChangeStatus(obj) {
       let {id, status} = obj;
-      status == true ? (status = 1) : (status = 0);
+      status == true ? (status = 0) : (status = 1);
       this.$axios
           .post(`sccg/depart/status`, {id: id, status: status})
           .then((res) => {

--
Gitblit v1.8.0