sf
jiangping
2025-04-30 dcdb0231034810232f2542f3865666ebf72daf11
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) {