|
@@ -5,8 +5,8 @@
|
|
|
<div slot="moreSearch">
|
|
|
<el-radio-group v-model="type" size="mini" @change="changeType">
|
|
|
<el-radio-button label="">全部({{ statistics.all || 0 }})</el-radio-button>
|
|
|
- <el-radio-button :label="1">进行中({{ statistics.jxz || 0 }})</el-radio-button>
|
|
|
- <el-radio-button :label="0">已结束({{ statistics.yjs || 0 }})</el-radio-button>
|
|
|
+ <el-radio-button :label="true">启用({{ statistics.jxz || 0 }})</el-radio-button>
|
|
|
+ <el-radio-button :label="false">禁用({{ statistics.yjs || 0 }})</el-radio-button>
|
|
|
</el-radio-group>
|
|
|
<br><br>
|
|
|
</div>
|
|
@@ -70,7 +70,7 @@ export default {
|
|
|
getList(p) {
|
|
|
try {
|
|
|
var pam = JSON.parse(JSON.stringify(p))
|
|
|
- if (this.type) {
|
|
|
+ if (this.type !== '') {
|
|
|
pam.status = this.type
|
|
|
pam.params.push({ "param": "a.status", "compare": "=", "value": this.type })
|
|
|
}
|
|
@@ -98,15 +98,15 @@ export default {
|
|
|
return (
|
|
|
<div class='operation-btns'>
|
|
|
<el-popconfirm
|
|
|
- title={`是否确定${Number(row.status) ? "关闭" : "开启"}?`}
|
|
|
+ title={`是否确定${row.status ? "关闭" : "开启"}?`}
|
|
|
onConfirm={() => {
|
|
|
- changeStatus({ promotionGroupId: row.promotionGroupId, status: Number(row.status) ? 0 : 1 }).then(res => {
|
|
|
- this.$message({ type: 'success', message: `${Number(row.status) ? "关闭" : "开启"}成功!` })
|
|
|
+ changeStatus({ promotionGroupId: row.promotionGroupId, status: !row.status }).then(res => {
|
|
|
+ this.$message({ type: 'success', message: `${row.status ? "关闭" : "开启"}成功!` })
|
|
|
this.$refs.pageRef.refreshList()
|
|
|
})
|
|
|
}}
|
|
|
>
|
|
|
- <el-button type="text" slot="reference">{Number(row.status) ? "关闭" : "开启"}</el-button>
|
|
|
+ <el-button type="text" slot="reference">{row.status ? "关闭" : "开启"}</el-button>
|
|
|
</el-popconfirm>
|
|
|
<el-button type="text" onClick={() => {
|
|
|
this.$router.push({
|