优化管理端促销相关文本,操作条件

This commit is contained in:
paulGao
2022-06-22 10:55:17 +08:00
parent f4b7068cd6
commit 0a5563e5e2
6 changed files with 22 additions and 21 deletions

View File

@@ -97,20 +97,20 @@
</template>
<template slot-scope="{ row }" slot="action">
<Button
v-if="row.promotionStatus != 'NEW'"
size="small"
style="margin-right: 10px"
@click="edit(row, 'onlyView')"
>查看
</Button>
<Button
v-if="row.promotionStatus === 'NEW'"
v-if="row.promotionStatus === 'CLOSE' || row.promotionStatus === 'NEW'"
type="info"
size="small"
style="margin-right: 10px"
@click="edit(row)"
>编辑
</Button>
<Button
v-else
size="small"
style="margin-right: 10px"
@click="edit(row, 'onlyView')"
>查看
</Button>
<Button
v-if="row.promotionStatus === 'NEW' || row.promotionStatus === 'END'"
type="error"
@@ -161,7 +161,7 @@ export default {
// 搜索框初始化对象
pageNumber: 1, // 当前页数
pageSize: 10, // 页面大小
sort: "startTime", // 默认排序字段
sort: "createTime", // 默认排序字段
order: "desc", // 默认排序方式
goodsName: "",
},