|
@@ -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="确定删除吗?"
|