|
@@ -17,16 +17,16 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作" align="center" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope">
|
|
|
- <span v-hasPermi="['otaMr:tiktok:push']" style="display: inline-block;">
|
|
|
+ <span v-hasPermi="['otaMr:meituan:push']" style="display: inline-block;">
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
style="margin-left: 10px;"
|
|
|
@click="handlePush(scope.row,scope.index)"
|
|
|
- v-if="(scope.row.status == 0 || scope.row.status == 1) && scope.row.process == 4"
|
|
|
- >{{ scope.row.status == 0 ? '上线' : '下线' }}</el-button>
|
|
|
+ v-if="(scope.row.status == -1 || scope.row.status == 1)"
|
|
|
+ >{{ scope.row.status == -1 ? '上线' : '下线' }}</el-button>
|
|
|
</span>
|
|
|
- <!-- <span v-hasPermi="['otaMr:tiktok:push']" style="display: inline-block;">
|
|
|
+ <!-- <span v-hasPermi="['otaMr:meituan:push']" style="display: inline-block;">
|
|
|
<el-button
|
|
|
size="mini"
|
|
|
type="text"
|
|
@@ -39,7 +39,7 @@
|
|
|
size="mini"
|
|
|
type="text"
|
|
|
@click="handleUpdate(scope.row,scope.index)"
|
|
|
- v-hasPermi="['otaMr:tiktok:scheduling']"
|
|
|
+ v-hasPermi="['otaMr:meituan:scheduling']"
|
|
|
>排期推送</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
@@ -163,13 +163,13 @@ export default {
|
|
|
},
|
|
|
/** 推送 */
|
|
|
handlePush(row) {
|
|
|
- this.$modal.confirm(`是否确认${ row.status == 0 ? '上线': row.status == 1 ?'下线':''}此商品吗?`).then(function() {
|
|
|
+ this.$modal.confirm(`是否确认${ row.status == -1 ? '上线': row.status == 1 ?'下线':''}此商品吗?`).then(function() {
|
|
|
return updateById({
|
|
|
id: row.id,
|
|
|
- status: row.status == 0 ? 1 : 0
|
|
|
+ status: row.status == -1 ? 1 : -1
|
|
|
});
|
|
|
}).then(() => {
|
|
|
- this.$modal.msgSuccess(`${ row.status == 0 ? '上线': row.status == 1 ?'下线':''}成功`);
|
|
|
+ this.$modal.msgSuccess(`${ row.status == -1 ? '上线': row.status == 1 ?'下线':''}成功`);
|
|
|
this.getList();
|
|
|
}).catch(() => {
|
|
|
|