From b303726d65c465a5d9df403082327572e30698a9 Mon Sep 17 00:00:00 2001 From: wangyufei <2267742828@qq.com> Date: Mon, 1 Jul 2024 13:48:05 +0800 Subject: [PATCH 1/3] =?UTF-8?q?bug:WMS=E3=80=81SCP=E4=B8=AD=E6=89=80?= =?UTF-8?q?=E6=9C=89=E5=BC=B9=E5=87=BA=E9=A1=B5=E6=9C=80=E5=A4=A7=E5=8C=96?= =?UTF-8?q?=E5=90=8E=EF=BC=8C=E5=AE=BD=E5=BA=A6=E5=92=8C=E9=AB=98=E5=BA=A6?= =?UTF-8?q?=E9=83=BD=E8=A6=81=E5=B1=95=E7=A4=BA=E5=88=B0=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=99=A8=E7=9A=84=E6=9C=80=E5=A4=A7=E5=AE=BD=E5=BA=A6=E5=92=8C?= =?UTF-8?q?=E9=AB=98=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/BasicForm/src/BasicForm.vue | 7 ++++++- src/components/Dialog/src/Dialog.vue | 5 +++++ 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/src/components/BasicForm/src/BasicForm.vue b/src/components/BasicForm/src/BasicForm.vue index 5444c2218..8fdf5e7e3 100644 --- a/src/components/BasicForm/src/BasicForm.vue +++ b/src/components/BasicForm/src/BasicForm.vue @@ -5,10 +5,11 @@ :width="dialogWidth" :close-on-click-modal="false" :vLoading="formLoading" + @updateFullscreen="updateFullscreen" >
+ style="overflow-y: auto;" :style="{'height':formHeight}">
{ + formHeight.value = isFullscreen?'auto':'60vh' +} const dialogVisible = ref(false) // 弹窗的是否展示 const dialogTitle = ref('') // 弹窗的标题 diff --git a/src/components/Dialog/src/Dialog.vue b/src/components/Dialog/src/Dialog.vue index 0d52642de..8ad2e6a52 100644 --- a/src/components/Dialog/src/Dialog.vue +++ b/src/components/Dialog/src/Dialog.vue @@ -3,6 +3,10 @@ import { propTypes } from '@/utils/propTypes' import { isNumber } from '@/utils/is' defineOptions({ name: 'Dialog' }) +// 传递给父类 +const emit = defineEmits([ + 'updateFullscreen' +]) const slots = useSlots() const props = defineProps({ @@ -32,6 +36,7 @@ const isFullscreen = ref(false) const toggleFull = () => { isFullscreen.value = !unref(isFullscreen) + emit('updateFullscreen',isFullscreen.value) } const dialogHeight = ref(isNumber(props.maxHeight) ? `${props.maxHeight}px` : props.maxHeight) From 67324b93078f3614f5ad4b4cc4f66275ade7209c Mon Sep 17 00:00:00 2001 From: zhang_li <2235006734@qqq.com> Date: Mon, 1 Jul 2024 15:41:58 +0800 Subject: [PATCH 2/3] =?UTF-8?q?=E6=A3=80=E9=AA=8C=E4=BB=BB=E5=8A=A1?= =?UTF-8?q?=E5=8F=AF=E4=BB=A5=E6=96=B0=E5=A2=9E=E4=BF=AE=E6=94=B9=E5=88=A0?= =?UTF-8?q?=E9=99=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/qms/inspectionScheme/addForm.vue | 320 +++++++++++++------ src/views/qms/inspectionTemplate/addForm.vue | 7 +- 2 files changed, 217 insertions(+), 110 deletions(-) diff --git a/src/views/qms/inspectionScheme/addForm.vue b/src/views/qms/inspectionScheme/addForm.vue index c96d8ffa4..cfbc54c4c 100644 --- a/src/views/qms/inspectionScheme/addForm.vue +++ b/src/views/qms/inspectionScheme/addForm.vue @@ -42,10 +42,10 @@ - - - - + + + + @@ -169,7 +169,7 @@ --> - + - + - + @@ -229,6 +233,7 @@ -