From 1bf80630df8cab1a2d611059b878284798dc07ca Mon Sep 17 00:00:00 2001 From: herenshan112 Date: Tue, 26 Aug 2025 14:49:53 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E6=B8=85=E6=A5=9A=E6=8C=89?= =?UTF-8?q?=E9=92=AE?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/DesignForm/app/index.vue | 14 +++++++++----- .../DesignForm/public/expand/datePicker.vue | 1 + .../DesignForm/public/expand/digitpage.vue | 1 + .../DesignForm/public/expand/diy-iconfont.vue | 2 +- src/components/DesignForm/public/expand/org.vue | 1 + .../DesignForm/public/expand/orgCitys.vue | 6 +++--- .../DesignForm/public/expand/pickpost.vue | 4 +++- .../DesignForm/public/expand/pickrole.vue | 2 +- .../DesignForm/public/expand/uploadPage.vue | 1 + src/components/DesignForm/public/expand/user.vue | 1 + .../appPageForm/echatesUnit/winBox/dimMea.vue | 4 ++++ .../associatedFormsChildFillRole.vue | 6 +++--- src/widget/number/index.vue | 2 +- src/widget/org/index.vue | 2 ++ src/widget/orgcitys/index.vue | 2 +- 15 files changed, 33 insertions(+), 16 deletions(-) diff --git a/src/components/DesignForm/app/index.vue b/src/components/DesignForm/app/index.vue index 38a3412..bc80084 100644 --- a/src/components/DesignForm/app/index.vue +++ b/src/components/DesignForm/app/index.vue @@ -17,6 +17,7 @@ import { FormPageList, FormPageConfig, viewPageType, + tableButton, } from "@/api/DesignForm/tableButton"; import { inputUnit, @@ -56,12 +57,15 @@ import AKSelect from "@/components/DesignForm/public/form/select.vue"; import ContainerPath from "@/views/sysworkflow/lowcodepage/appPage/appPageForm/echatesUnit/container.vue"; import exportPanel from "../exportPanel.vue"; import importPanel from "../importPanel.vue"; +import { EpPropMergeType } from "element-plus/es/utils"; +import { RendererNode, RendererElement } from "vue"; +import { echatsViews } from "@/api/DesignForm/types"; const props = withDefaults( defineProps<{ data: FormPageList; searchData?: attrButton[]; - config: FormPageConfig; + config?: FormPageConfig|any; formId?: string; beforeRequest?: (params: any, rout: any) => any; afterResponse?: (result: any) => any | string; @@ -79,7 +83,7 @@ const props = withDefaults( signCode?: string; pickAppMenu?: any; versiontitle?: string; - viewPage?: viewPageType; + viewPage?: viewPageType|any; formBasicConfig?: any; fieldsDetailList?: any; orgAndManTree?: any; @@ -1512,7 +1516,7 @@ const confirmEvent = (val: any) => { id: [val.masters_key], isTrue: 2, }; - softDeletion(sendData).then((data) => { + softDeletion(sendData).then((data: { mag: EpPropMergeType<(new (...args: any[]) => string|globalThis.VNode)|(() => string|globalThis.VNode)|((new (...args: any[]) => string|globalThis.VNode)|(() => string|globalThis.VNode))[], unknown, unknown>|undefined; }) => { // console.log('cancel!',data) ElNotification({ title: "系统提示!", @@ -1709,10 +1713,10 @@ const tabsView = (val: any, types: number) => { const writeListTitle = (val: any, viewConfig: any) => { // console.log("判断是否有标题--1-->",val) // console.log("判断是否有标题--2-->",viewConfig) - var titleAry = []; + var titleAry: any[] = []; if (viewConfig.form && viewConfig.form.title) { if (viewConfig.form.title.length > 0) { - viewConfig.form.title.forEach((item, index) => { + viewConfig.form.title.forEach((item: string|number, index: any) => { // console.log("判断是否有标题--"+index+"-->",val[item]) if (val[item]) { titleAry.push(val[item]); diff --git a/src/components/DesignForm/public/expand/datePicker.vue b/src/components/DesignForm/public/expand/datePicker.vue index d5c58c4..9b7143e 100644 --- a/src/components/DesignForm/public/expand/datePicker.vue +++ b/src/components/DesignForm/public/expand/datePicker.vue @@ -96,6 +96,7 @@ const shichang = computed(() => { :placeholder="props.data.control.placeholder" :value-format="valueFormat" :format="props.data.control.format" + clearable /> diff --git a/src/components/DesignForm/public/expand/digitpage.vue b/src/components/DesignForm/public/expand/digitpage.vue index 177cf7c..9faccab 100644 --- a/src/components/DesignForm/public/expand/digitpage.vue +++ b/src/components/DesignForm/public/expand/digitpage.vue @@ -141,6 +141,7 @@ const judgeIsDisabled = (key: string) => { @change="onValueChange" oninput="value=value.replace(/[^\d.]/g, '').replace(/\.{2,}/g, '.').replace('.', '$#$').replace(/\./g, '').replace('$#$', '.').replace(/^\./g, '')" placeholder="请输入" + clearable > diff --git a/src/components/DesignForm/public/expand/orgCitys.vue b/src/components/DesignForm/public/expand/orgCitys.vue index 428b0f5..77a03cd 100644 --- a/src/components/DesignForm/public/expand/orgCitys.vue +++ b/src/components/DesignForm/public/expand/orgCitys.vue @@ -273,17 +273,17 @@ const getFormItemInputStyle = (ele: any,sty:number) => { - + - + - + diff --git a/src/components/DesignForm/public/expand/pickpost.vue b/src/components/DesignForm/public/expand/pickpost.vue index a7fb2fa..3cf03ea 100644 --- a/src/components/DesignForm/public/expand/pickpost.vue +++ b/src/components/DesignForm/public/expand/pickpost.vue @@ -203,6 +203,7 @@ const writeInfo = (val: any) => { :render-after-expand="false" placeholder="请选择行政组织" @change="orgChange" + clearable /> @@ -210,6 +211,7 @@ const writeInfo = (val: any) => { v-model="orgPostInfo.postId" v-loading="orgPostTreeLoading" placeholder="请选择岗位" + clearable > { /> - +
diff --git a/src/components/DesignForm/public/expand/pickrole.vue b/src/components/DesignForm/public/expand/pickrole.vue index 2018611..ac88b66 100644 --- a/src/components/DesignForm/public/expand/pickrole.vue +++ b/src/components/DesignForm/public/expand/pickrole.vue @@ -43,7 +43,7 @@ onBeforeMount(() => { });