商家端优化库存预警,管理端 商家端隐藏所有促销活动的删除按钮

This commit is contained in:
15386982806
2024-01-11 13:32:39 +08:00
parent 9ce1c966eb
commit 9908b83b18
10 changed files with 130 additions and 76 deletions

View File

@@ -235,7 +235,7 @@ export default {
slot: "action",
align: "center",
fixed: "right",
maxWidth: 140,
maxWidth: 240,
},
],
data: [], // 表单数据

View File

@@ -43,8 +43,8 @@
@click="openOrClose(row)">关闭</Button>
<Button type="success" v-if="row.promotionStatus === 'CLOSE'" style="margin-left: 5px" size="small"
@click="openOrClose(row)">开启</Button>
<Button type="error" :disabled="row.promotionStatus == 'START'" style="margin-left: 5px" size="small"
@click="del(row)">删除</Button>
<!--<Button type="error" :disabled="row.promotionStatus == 'START'" style="margin-left: 5px" size="small"-->
<!--@click="del(row)">删除</Button>-->
</div>
</template>
</Table>

View File

@@ -77,13 +77,13 @@
@click="manage(row, 'view')"
>查看</Button
>
<Button
type="error"
size="small"
v-if="row.promotionStatus != 'START'"
@click="remove(row)"
>删除</Button
>
<!--<Button-->
<!--type="error"-->
<!--size="small"-->
<!--v-if="row.promotionStatus != 'START'"-->
<!--@click="remove(row)"-->
<!--&gt;删除</Button-->
<!--&gt;-->
<Button
type="success"
v-if="row.promotionStatus == 'CLOSE'"