From ede4eb0aee99babdc32962e9153442d1d810a7f1 Mon Sep 17 00:00:00 2001 From: yan xiaonan <549250640@qq.com> Date: Sun, 12 Feb 2023 14:15:20 +0000 Subject: [PATCH 01/11] =?UTF-8?q?bug=E4=BF=AE=E5=A4=8D=EF=BC=8C=E5=90=8C?= =?UTF-8?q?=E6=AD=A5dictTypeValue=E5=88=B0form=20=E5=90=A6=E5=88=99?= =?UTF-8?q?=E5=AF=BC=E8=87=B4=E8=A1=A8=E5=8D=95=E9=AA=8C=E8=AF=81=E4=B8=8D?= =?UTF-8?q?=E9=80=9A=E8=BF=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: yan xiaonan <549250640@qq.com> --- src/views/system/dict/index.vue | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/views/system/dict/index.vue b/src/views/system/dict/index.vue index d4cce484..9324f764 100644 --- a/src/views/system/dict/index.vue +++ b/src/views/system/dict/index.vue @@ -197,6 +197,11 @@ const setDialogTile = (type: string) => { dialogVisible.value = true } +// 同步dictTypeValue到form 否则导致表单验证不通过 +watch(dictTypeValue, (val) => { + unref(typeFormRef)?.setValues({ type: val }) +}) + // 提交按钮 const submitTypeForm = async () => { const elForm = unref(typeFormRef)?.getElFormRef() From f2f564dc0c37671f97d7c3e48648d3623c383503 Mon Sep 17 00:00:00 2001 From: Siyu Kong Date: Tue, 21 Feb 2023 18:29:27 +0800 Subject: [PATCH 02/11] =?UTF-8?q?chore:=20=E8=A7=84=E8=8C=83=E4=B8=8D?= =?UTF-8?q?=E7=AC=A6=E5=90=88eslint=E6=A0=A1=E9=AA=8C=E8=A7=84=E5=88=99?= =?UTF-8?q?=E7=9A=84=E4=BB=A3=E7=A0=81?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../package/designer/ProcessDesigner.vue | 2 +- .../package/palette/ProcessPalette.vue | 7 ++-- .../package/penal/PropertiesPanel.vue | 15 ++++---- .../package/penal/base/ElementBaseInfo.vue | 7 ++-- .../penal/flow-condition/FlowCondition.vue | 25 ++++++------- .../package/penal/form/ElementForm.vue | 27 +++++++------- .../penal/listeners/ElementListeners.vue | 3 +- .../penal/listeners/UserTaskListeners.vue | 5 +-- .../multi-instance/ElementMultiInstance.vue | 35 ++++++++++--------- .../penal/other/ElementOtherConfig.vue | 9 ++--- .../penal/properties/ElementProperties.vue | 15 ++++---- .../penal/signal-message/SignalAndMessage.vue | 7 ++-- .../package/penal/task/ElementTask.vue | 5 +-- .../task/task-components/ReceiveTask.vue | 13 +++---- .../penal/task/task-components/ScriptTask.vue | 6 ++-- .../penal/task/task-components/UserTask.vue | 6 ++-- .../bpmnProcessDesigner/package/utils.ts | 17 ++++----- src/hooks/web/useI18n.ts | 1 + src/hooks/web/useTimeAgo.ts | 2 ++ src/types/auto-components.d.ts | 6 +++- src/types/auto-imports.d.ts | 5 ++- src/views/bpm/model/modelEditor.vue | 2 +- src/views/bpm/processInstance/detail.vue | 2 +- src/views/system/notify/my/index.vue | 2 +- 24 files changed, 127 insertions(+), 97 deletions(-) diff --git a/src/components/bpmnProcessDesigner/package/designer/ProcessDesigner.vue b/src/components/bpmnProcessDesigner/package/designer/ProcessDesigner.vue index 1f471f3e..977e945d 100644 --- a/src/components/bpmnProcessDesigner/package/designer/ProcessDesigner.vue +++ b/src/components/bpmnProcessDesigner/package/designer/ProcessDesigner.vue @@ -331,7 +331,7 @@ const additionalModules = computed(() => { // 插入用户自定义扩展模块 if (Object.prototype.toString.call(props.additionalModel) == '[object Array]') { - Modules.push(...props.additionalModel) + Modules.push(...(props.additionalModel as any[])) } else { props.additionalModel && Modules.push(props.additionalModel) } diff --git a/src/components/bpmnProcessDesigner/package/palette/ProcessPalette.vue b/src/components/bpmnProcessDesigner/package/palette/ProcessPalette.vue index f5272840..38e4ba17 100644 --- a/src/components/bpmnProcessDesigner/package/palette/ProcessPalette.vue +++ b/src/components/bpmnProcessDesigner/package/palette/ProcessPalette.vue @@ -8,9 +8,10 @@