From 803b93038ca16e21ea60a260ca4ac882b84a87ef Mon Sep 17 00:00:00 2001 From: riku <risaku@163.com> Date: 星期五, 18 七月 2025 17:31:53 +0800 Subject: [PATCH] 2025.7.18 监管任务模块 1. 监管场景样式优化; 2. 新增监管场景GIS地图展示(待完成); --- src/views/fytz/user/components/CompUserInfo.vue | 21 +++++++++++++-------- 1 files changed, 13 insertions(+), 8 deletions(-) diff --git a/src/views/fytz/user/components/CompUserInfo.vue b/src/views/fytz/user/components/CompUserInfo.vue index d782e78..aece522 100644 --- a/src/views/fytz/user/components/CompUserInfo.vue +++ b/src/views/fytz/user/components/CompUserInfo.vue @@ -5,7 +5,7 @@ :doClear="active" :useCancel="create" :useReset="!create" - @updateEdit="(v) => $emit('updateEdit', v)" + @update:isEdit="(v) => $emit('updateEdit', v)" @submit="submit" @cancel="$emit('onCancel')" > @@ -92,10 +92,10 @@ const props = defineProps({ //鍩烘湰淇℃伅 model: { - type: Object, - default: () => { - return { isenable: true }; - } + type: Object + // default: () => { + // return { isenable: true }; + // } }, create: { type: Boolean, @@ -107,9 +107,14 @@ } }); -const formInfo = computed(() => { - return parseUserInfo(props.model); -}); +const formInfo = ref({ isenable: true }); + +watch( + () => props.model, + (nValue) => { + formInfo.value = parseUserInfo(nValue); + } +); const emit = defineEmits(['onSubmit', 'onCancel', 'updateEdit']); -- Gitblit v1.9.3