From 1e07cfd8ac6c3e31e94c0ea98dcff61db51e49d1 Mon Sep 17 00:00:00 2001 From: wl <173@qq.com> Date: 星期一, 09 一月 2023 16:54:39 +0800 Subject: [PATCH] fix: 单选框展示 --- 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