diff --git a/manager/src/views/goods/goods-info/goods.vue b/manager/src/views/goods/goods-info/goods.vue index 4d0c6151..51767992 100644 --- a/manager/src/views/goods/goods-info/goods.vue +++ b/manager/src/views/goods/goods-info/goods.vue @@ -309,11 +309,12 @@ export default { }, // 上架 upper(v) { - DialogPlugin.confirm({ + const dlg = DialogPlugin.confirm({ header: "确认上架", content: "您确认要上架 " + v.goodsName + " ?", theme: "warning", onConfirm: () => { + dlg.hide(); const params = { goodsId: v.id }; upGoods(params).then((res) => { if (res.success) { @@ -364,11 +365,12 @@ export default { this.goodsAuditForm.authFlag = "REFUSE"; } - DialogPlugin.confirm({ + const dlg = DialogPlugin.confirm({ header: "确认审核", content: "您确认要审核" + examine + " " + v.goodsName + " ?", theme: "warning", onConfirm: () => { + dlg.hide(); this.goodsAuditForm.goodsIds = v.id; const formData = new FormData(); formData.append('goodsIds', v.id); @@ -395,11 +397,12 @@ export default { // 确认审核(二次确认) confirmAudit() { const auditText = this.goodsAuditForm.auth_flag === 1 ? '通过' : '拒绝'; - DialogPlugin.confirm({ + const dlg = DialogPlugin.confirm({ header: '确认审核', content: `您确认要审核${auditText} "${this.currentAuditGoods.goodsName}" 吗?`, theme: 'warning', onConfirm: () => { + dlg.hide(); this.submitAudit(); }, }); @@ -515,11 +518,12 @@ export default { const actionText = this.batchAuditForm.auth_flag === 1 ? '通过' : '拒绝'; const goodsNames = this.selectedRows.map(item => item.goodsName).join('、'); - DialogPlugin.confirm({ + const dlg = DialogPlugin.confirm({ header: `确认批量审核${actionText}`, content: `您确认要${actionText}以下商品的审核吗?\n${goodsNames}`, theme: 'warning', onConfirm: () => { + dlg.hide(); const goodsIds = this.selectedRows.map(item => item.id); const formData = new FormData(); formData.append('goodsId', goodsIds); diff --git a/manager/src/views/page-decoration/floorList.vue b/manager/src/views/page-decoration/floorList.vue index 75b12435..ff74ba89 100644 --- a/manager/src/views/page-decoration/floorList.vue +++ b/manager/src/views/page-decoration/floorList.vue @@ -1,62 +1,40 @@