feat(商品中台): 列表展示上架状态与数据状态列

原「状态」列更名为「上架状态」,新增「数据状态」列(正常/回收站),
与搜索区的状态筛选项对应
This commit is contained in:
吴昊天 2026-09-29 13:27:55 +08:00
parent 0236577e47
commit 6a7527c489

View File

@ -95,13 +95,20 @@
<span>{{ scope.row.stock || 0 }}</span>
</template>
</el-table-column>
<el-table-column label="状态" min-width="100">
<el-table-column label="上架状态" min-width="100">
<template #default="scope">
<el-tag :type="scope.row.is_show ? 'success' : 'info'">
{{ scope.row.is_show ? '上架' : '下架' }}
</el-tag>
</template>
</el-table-column>
<el-table-column label="数据状态" min-width="100">
<template #default="scope">
<el-tag :type="scope.row.is_del ? 'danger' : 'success'">
{{ scope.row.is_del ? '回收站' : '正常' }}
</el-tag>
</template>
</el-table-column>
<el-table-column label="操作" fixed="right" minWidth="100">
<template #default="scope">
<a v-db-click @click="edit(scope.row)">编辑</a>