From 512d5d7e79e0a64b36e24cbe5d7c5f8d0adc0b94 Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期四, 26 九月 2024 17:46:48 +0800 Subject: [PATCH] 1.升级了element-plus版本 2.对外支持模块新设备匹配工地功能完成 3.新增设备匹配模块单挑匹配记录编辑功能(未完成) --- src/components/form/FYForm.vue | 29 +++++++++++++---------------- 1 files changed, 13 insertions(+), 16 deletions(-) diff --git a/src/components/form/FYForm.vue b/src/components/form/FYForm.vue index 07fde84..9c5405e 100644 --- a/src/components/form/FYForm.vue +++ b/src/components/form/FYForm.vue @@ -69,13 +69,6 @@ required: true, message: '琛屾斂鍖哄垝涓嶈兘涓虹┖', trigger: 'change' - // validator: (rule, value, callback) => { - // if (!value) { - // callback(new Error('Please input the age')); - // } else { - // callback() - // } - // } } ], _scenetype: [ @@ -83,13 +76,6 @@ required: true, message: '鍦烘櫙绫诲瀷涓嶈兘涓虹┖', trigger: 'change' - // validator: (rule, value, callback) => { - // if (!value) { - // callback(new Error('Please input the age')); - // } else { - // callback() - // } - // } } ] }); @@ -155,8 +141,19 @@ ); //鐩戝惉琛ㄥ崟缂栬緫鐘舵�� -watch(edit, (nValue) => { - emit('update:isEdit', nValue); +watch( + () => props.isEdit, + (nV, oV) => { + if (nV != oV) { + edit.value = nV; + } + }, + { immediate: true } +); +watch(edit, (nV, oV) => { + if (nV != oV) { + emit('update:isEdit', nV); + } }); defineExpose({ formObj, onSubmit, onCancel, onReset }); -- Gitblit v1.9.3