diff --git a/src/views/order/intention/index.vue b/src/views/order/intention/index.vue index c6936c3..5e93ae5 100644 --- a/src/views/order/intention/index.vue +++ b/src/views/order/intention/index.vue @@ -56,7 +56,7 @@ icon="Plus" @click="handleAdd" v-hasPermi="['order:intention:add']" - >新增订单/意向单新增 @@ -369,16 +369,12 @@ function handleUpdate(row) { /** 取消按钮操作 */ function handleDelete(row) { - const intentionIds = row.id ? [row.id] : ids.value; - ElMessageBox.confirm( - '是否确认取消意向订单编号为"' + intentionIds + '"的数据项?', - "警告", - { - confirmButtonText: "确定", - cancelButtonText: "取消", - type: "warning", - } - ) + const intentionType = row.type; + ElMessageBox.confirm("是否确认取消当前" + intentionType + "?", "警告", { + confirmButtonText: "确定", + cancelButtonText: "取消", + type: "warning", + }) .then(() => { // 模拟取消 mockData.value = mockData.value.filter(