优化套餐推广的编辑/删除

This commit is contained in:
gyq
2025-12-23 14:48:13 +08:00
parent 15dbd79c7d
commit 1d7ba844f6
3 changed files with 10 additions and 4 deletions

View File

@@ -336,7 +336,8 @@ async function confirmRefundHandle(form) {
} catch (error) {
console.log(error);
}
tableData.loading = false
getTableData()
wareCountAjax()
}
// 审核退款操作

View File

@@ -42,7 +42,7 @@ const form = ref({
watch(() => form.value.isEnable, (newValue, OldValue) => {
if (loading.value == false) {
if (newValue == 0) {
ElMessageBox.confirm('关闭商品拼团所有未支付的订单都将自动取消,是否确定关闭?', '注意', {
ElMessageBox.confirm('关闭商品拼团所有未成团的订单都将自动取消,是否确定关闭?', '注意', {
confirmButtonText: '确认关闭',
type: 'danger'
}).then(() => {

View File

@@ -56,8 +56,13 @@
<el-table-column label="操作" width="150">
<template v-slot="scope">
<template v-if="scope.row.shopId === shopInfo.id">
<el-button link type="primary" @click="addGroupGoodsRef.show(scope.row)">编辑</el-button>
<el-button type="danger" link @click="delHandle(scope.row)">删除</el-button>
<template v-if="scope.row.onlineStatus">
<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 v-else>
<el-button link type="primary" disabled>无权操作</el-button>