Browse Source

feat: 修改

linwenxin 1 year ago
parent
commit
d83a5db2d0
1 changed files with 4 additions and 4 deletions
  1. 4 4
      src/views/mallManagement/goods/newclassify_index/index.vue

+ 4 - 4
src/views/mallManagement/goods/newclassify_index/index.vue

@@ -157,18 +157,18 @@ export default {
             })
           }}>编辑</el-button>
           <el-popconfirm
-            title={`是否确定${row.status ? "关闭" : "开启"}?`}
+            title={`是否确定${Number(row.status) ? "关闭" : "开启"}?`}
             onConfirm={() => {
               changeNewclassify({
                 goodsNewsCategoryId: row.goodsNewsCategoryId,
-                status: row.status ? 0 : 1,
+                status: Number(row.status) ? 0 : 1,
               }).then(res => {
-                this.$message({ type: 'success', message: `${row.status ? "关闭" : "开启"}成功!` })
+                this.$message({ type: 'success', message: `${Number(row.status) ? "关闭" : "开启"}成功!` })
                 this.$refs.pageRef.refreshList()
               })
             }}
           >
-            <el-button type="text" slot="reference">{row.status ? "关闭" : "开启"}</el-button>
+            <el-button type="text" slot="reference">{Number(row.status) ? "关闭" : "开启"}</el-button>
           </el-popconfirm>
           <el-popconfirm
             title="确定删除吗?"