修改受众状态操作

This commit is contained in:
weinan2087
2023-02-13 10:47:31 +08:00
parent 42773c5bf7
commit abec2bfb8e

View File

@@ -49,8 +49,8 @@
<el-button type="text" @click="editRouter(1,scope.row)">修改</el-button>
<el-button type="text" @click="copyDialog(scope.row)">复制</el-button>
<el-button type="text" v-if="scope.row.status == 0" @click="publish(1,scope.row)">发布</el-button>
<el-button type="text" v-if="scope.row.status == 1" @click="publish(2,scope.row)"></el-button>
<el-button type="text" v-if="scope.row.status == 2" @click="publish(1,scope.row)"></el-button>
<el-button type="text" v-if="scope.row.status == 1" @click="publish(2,scope.row)"></el-button>
<el-button type="text" v-if="scope.row.status == 2" @click="publish(1,scope.row)"></el-button>
<el-button type="text" v-if="scope.row.status == 0 || scope.row.status == 1" @click="deleteItem(scope.row)">删除</el-button>
</template>
</el-table-column>
@@ -278,8 +278,8 @@
},
publish(status,row){
let opt = "发布";
if(row.status == 1){opt="用";}
if(row.status == 2){opt="用";}
if(row.status == 1){opt="用";}
if(row.status == 2){opt="用";}
this.$confirm('您确定要'+opt+'所选受众吗?', '删除提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',