From b1c45fbd6957bf236d75aee8fb4c88809743e436 Mon Sep 17 00:00:00 2001 From: YunaiV Date: Sun, 12 Apr 2026 02:39:21 +0800 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20refactor(calShiftList):=20?= =?UTF-8?q?=E9=87=8D=E5=91=BD=E5=90=8D=E8=A1=A8=E5=8D=95=E7=B1=BB=E5=9E=8B?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E4=B8=BA=20dialogType?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/mes/cal/plan/CalShiftList.vue | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/views/mes/cal/plan/CalShiftList.vue b/src/views/mes/cal/plan/CalShiftList.vue index fee4174b7..05d5f5f1a 100644 --- a/src/views/mes/cal/plan/CalShiftList.vue +++ b/src/views/mes/cal/plan/CalShiftList.vue @@ -108,7 +108,7 @@ const getList = async () => { // ==================== 添加/修改 ==================== const dialogVisible = ref(false) // 弹窗的是否展示 const dialogTitle = ref('') // 弹窗的标题 -const formType = ref('') // 表单的类型:create - 新增;update - 修改 +const dialogType = ref('') // 表单的类型:create - 新增;update - 修改 const formLoading = ref(false) // 表单的加载中 const formRef = ref() // 表单 Ref const formData = ref({ @@ -131,7 +131,7 @@ const formRules = reactive({ const openForm = (type: string, row?: CalPlanShiftVO) => { dialogVisible.value = true dialogTitle.value = t('action.' + type) - formType.value = type + dialogType.value = type resetForm() // 修改时,设置数据 if (type === 'update' && row) { @@ -157,7 +157,7 @@ const submitForm = async () => { formLoading.value = true try { const data = formData.value as unknown as CalPlanShiftVO - if (formType.value === 'create') { + if (dialogType.value === 'create') { await CalPlanShiftApi.createPlanShift(data) message.success(t('common.createSuccess')) } else {