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

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

@@ -99,16 +99,16 @@
@click="close(row)"
>关闭
</Button>
<Button
class="ml_5"
v-if="
row.promotionStatus === 'CLOSE' || row.promotionStatus === 'END'
"
type="error"
size="small"
@click="remove(row)"
>删除
</Button>
<!--<Button-->
<!--class="ml_5"-->
<!--v-if="-->
<!--row.promotionStatus === 'CLOSE' || row.promotionStatus === 'END'-->
<!--"-->
<!--type="error"-->
<!--size="small"-->
<!--@click="remove(row)"-->
<!--&gt;删除-->
<!--</Button>-->
<Button
style="margin: 5px"
type="info"
@@ -286,7 +286,7 @@ export default {
slot: "action",
align: "center",
fixed: "right",
width: 150,
width: 250,
},
],
data: [], // 表单数据

View File

@@ -111,13 +111,13 @@
@click="edit(row, 'onlyView')"
>查看
</Button>
<Button
type="error"
size="small"
style="margin-right: 10px"
@click="delAll(row)"
>删除
</Button>
<!--<Button-->
<!--type="error"-->
<!--size="small"-->
<!--style="margin-right: 10px"-->
<!--@click="delAll(row)"-->
<!--&gt;删除-->
<!--</Button>-->
</template>
</Table>
<Row type="flex" justify="end" class="page">

View File

@@ -124,14 +124,14 @@
style="margin-right: 5px"
>关闭</Button
>
<Button
v-if="row.promotionStatus === 'CLOSE' || row.promotionStatus === 'END'"
type="error"
size="small"
@click="close(row.id)"
style="margin-right: 5px"
>删除</Button
>
<!--<Button-->
<!--v-if="row.promotionStatus === 'CLOSE' || row.promotionStatus === 'END'"-->
<!--type="error"-->
<!--size="small"-->
<!--@click="close(row.id)"-->
<!--style="margin-right: 5px"-->
<!--&gt;删除</Button-->
<!--&gt;-->
</template>
</Table>
<Row type="flex" justify="end" class="mt_10">

View File

@@ -93,14 +93,14 @@
>关闭</Button
>
&nbsp;
<Button
type="error"
size="small"
v-if="row.promotionStatus == 'CLOSE' || row.promotionStatus == 'END'"
ghost
@click="expire(row)"
>删除</Button
>
<!--<Button-->
<!--type="error"-->
<!--size="small"-->
<!--v-if="row.promotionStatus == 'CLOSE' || row.promotionStatus == 'END'"-->
<!--ghost-->
<!--@click="expire(row)"-->
<!--&gt;删除</Button-->
<!--&gt;-->
</template>
</Table>