From dcdb0231034810232f2542f3865666ebf72daf11 Mon Sep 17 00:00:00 2001 From: jiangping <jp@doumee.com> Date: 星期三, 30 四月 2025 16:45:34 +0800 Subject: [PATCH] sf --- platform/src/views/business/category.vue | 11 +++++++---- 1 files changed, 7 insertions(+), 4 deletions(-) diff --git a/platform/src/views/business/category.vue b/platform/src/views/business/category.vue index 3f682ba..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) { @@ -108,7 +111,7 @@ budgetList: res.budgetList, fileList: res.imgurl ? [{ url: res.prefixUrl + res.imgurl }] : [] } - this.$refs.operaCategoryWindow.open('缂栬緫绫诲埆', obj) + this.$refs.operaCategoryWindow.open('缂栬緫绫诲埆', res) }) } } -- Gitblit v1.9.3