优化套餐推广的编辑/删除
This commit is contained in:
@@ -336,7 +336,8 @@ async function confirmRefundHandle(form) {
|
|||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.log(error);
|
console.log(error);
|
||||||
}
|
}
|
||||||
tableData.loading = false
|
getTableData()
|
||||||
|
wareCountAjax()
|
||||||
}
|
}
|
||||||
|
|
||||||
// 审核退款操作
|
// 审核退款操作
|
||||||
|
|||||||
@@ -42,7 +42,7 @@ const form = ref({
|
|||||||
watch(() => form.value.isEnable, (newValue, OldValue) => {
|
watch(() => form.value.isEnable, (newValue, OldValue) => {
|
||||||
if (loading.value == false) {
|
if (loading.value == false) {
|
||||||
if (newValue == 0) {
|
if (newValue == 0) {
|
||||||
ElMessageBox.confirm('关闭商品拼团所有未支付的订单都将自动取消,是否确定关闭?', '注意', {
|
ElMessageBox.confirm('关闭商品拼团所有未成团的订单都将自动取消,是否确定关闭?', '注意', {
|
||||||
confirmButtonText: '确认关闭',
|
confirmButtonText: '确认关闭',
|
||||||
type: 'danger'
|
type: 'danger'
|
||||||
}).then(() => {
|
}).then(() => {
|
||||||
|
|||||||
@@ -56,8 +56,13 @@
|
|||||||
<el-table-column label="操作" width="150">
|
<el-table-column label="操作" width="150">
|
||||||
<template v-slot="scope">
|
<template v-slot="scope">
|
||||||
<template v-if="scope.row.shopId === shopInfo.id">
|
<template v-if="scope.row.shopId === shopInfo.id">
|
||||||
<el-button link type="primary" @click="addGroupGoodsRef.show(scope.row)">编辑</el-button>
|
<template v-if="scope.row.onlineStatus">
|
||||||
<el-button type="danger" link @click="delHandle(scope.row)">删除</el-button>
|
<el-button link type="primary" disabled>(下架后编辑/删除)</el-button>
|
||||||
|
</template>
|
||||||
|
<template v-else>
|
||||||
|
<el-button link type="primary" @click="addGroupGoodsRef.show(scope.row)">编辑</el-button>
|
||||||
|
<el-button link type="danger" @click="delHandle(scope.row)">删除</el-button>
|
||||||
|
</template>
|
||||||
</template>
|
</template>
|
||||||
<template v-else>
|
<template v-else>
|
||||||
<el-button link type="primary" disabled>无权操作</el-button>
|
<el-button link type="primary" disabled>无权操作</el-button>
|
||||||
|
|||||||
Reference in New Issue
Block a user