修改管理端bug

This commit is contained in:
mabo
2021-05-17 17:38:04 +08:00
parent eeb2e94d52
commit da5cc8335f
9 changed files with 79 additions and 49 deletions

View File

@@ -64,14 +64,19 @@
</template>
<template slot-scope="{ row }" slot="action">
<Button
v-if="
row.promotionStatus === 'NEW'
"
v-if="row.promotionStatus === 'NEW'"
type="primary"
size="small"
@click="manage(row)"
>管理</Button
>
<Button
v-else
type="info"
size="small"
@click="manage(row)"
>查看</Button
>
</template>
</Table>
</Row>

View File

@@ -16,7 +16,7 @@
<Button @click="delAll">批量删除</Button>
</template>
</Row>
<Row v-show="openTip">
<Row v-show="openTip" v-if="promotionStatus == 'NEW'">
<Alert show-icon>
已选择 <span class="select-count">{{ selectCount }}</span>
</Alert>
@@ -101,8 +101,7 @@
<template slot-scope="{ row, index }" slot="action">
<Button
type="error"
v-if="row.promotionApplyStatus !== 'PASS'"
:disabled="promotionStatus != 'NEW'"
v-if="promotionStatus === 'NEW'"
size="small"
ghost
@click="delGoods(index, row.id)"
@@ -119,7 +118,7 @@
<Button
type="primary"
:loading="submitLoading"
:disabled="promotionStatus != 'NEW'"
v-if="promotionStatus === 'NEW'"
@click="save"
>提交</Button
>