From 3fbfdefe98e5d35e32d74138ce73a1b4e2fe5465 Mon Sep 17 00:00:00 2001
From: Mr.Zhang <710666463@qq.com>
Date: 星期四, 21 九月 2023 13:57:56 +0800
Subject: [PATCH] 平台端

---
 platform/src/views/business/category.vue |    9 ++++++---
 1 files changed, 6 insertions(+), 3 deletions(-)

diff --git a/platform/src/views/business/category.vue b/platform/src/views/business/category.vue
index 659971b..f937c4c 100644
--- a/platform/src/views/business/category.vue
+++ b/platform/src/views/business/category.vue
@@ -29,7 +29,7 @@
         <el-table-column prop="priceRate" label="鍔犱环绯绘暟" min-width="100px"></el-table-column>
         <el-table-column prop="sortnum" label="鎺掑簭鐮�(鍗囧簭)" min-width="100px"></el-table-column>
         <el-table-column prop="createDate" label="鍒涘缓鏃堕棿" min-width="100px"></el-table-column>
-        <el-table-column prop="status" label="鐘舵��" min-width="100px">
+        <el-table-column v-if="containPermissions(['business:category:update'])" prop="status" label="鐘舵��" min-width="100px">
           <template slot-scope="{row}">
             <el-switch v-model="row.status" @change="changeStatus(row)" :active-value="0" :inactive-value="1">
             </el-switch>
@@ -88,8 +88,11 @@
         status: item.status
       }).then(res => {
         this.$tip.apiSuccess('鏇存柊鎴愬姛')
-      }).finally(() => {
-        // this.search()
+      }).catch (err => {
+          this.$message.error(err)
+        })
+        .finally(() => {
+        this.handlePageChange()
       })
     },
     edit(id) {

--
Gitblit v1.9.3