From fd6fe93c35e17d79b8639af51d955b5c7cbc0022 Mon Sep 17 00:00:00 2001 From: herenshan112 Date: Tue, 6 Aug 2024 09:39:58 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9=E8=BF=91=E6=9C=9F=E7=BB=84?= =?UTF-8?q?=E4=BB=B6=E6=A0=B7=E5=BC=8F=E6=95=B0=E6=8D=AE=E5=B1=95=E7=A4=BA?= =?UTF-8?q?=E5=BD=A2=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../DesignForm/public/form/formGroup.vue | 32 +++--- .../DesignForm/public/form/formItem.vue | 99 ++++++++++++++++- src/widget/baidumap/index.vue | 7 +- src/widget/baidumap/indexLook.vue | 102 ++++++++++++++++++ src/widget/index.ts | 2 + src/widget/org/index.vue | 13 ++- src/widget/systemunit/deptOrgPage.vue | 1 + src/widget/systemunit/ownerPage.vue | 1 + 8 files changed, 235 insertions(+), 22 deletions(-) create mode 100644 src/widget/baidumap/indexLook.vue diff --git a/src/components/DesignForm/public/form/formGroup.vue b/src/components/DesignForm/public/form/formGroup.vue index 81a04bf..3d970a4 100644 --- a/src/components/DesignForm/public/form/formGroup.vue +++ b/src/components/DesignForm/public/form/formGroup.vue @@ -420,7 +420,7 @@ function optionsValue3Get1(data: any,fieldName: string){ v-if="linksIf(element)" > - + - + - + - + - + - - - - + + + + - - + + - + - - - - + + + + diff --git a/src/components/DesignForm/public/form/formItem.vue b/src/components/DesignForm/public/form/formItem.vue index 0cf072a..45b5848 100644 --- a/src/components/DesignForm/public/form/formItem.vue +++ b/src/components/DesignForm/public/form/formItem.vue @@ -33,6 +33,8 @@ import formatResult from '@/utils/DesignForm/formatResult' import { debounce } from '@/utils/DesignForm/index' import { useRoute } from 'vue-router' +import { json2string,objToStringify,string2json,stringToObj } from '@/utils/DesignForm/form' + import TextImg from "@/assets/image/tinymce.png" import { AnalysisCss,AnalysisInputCss } from '@/components/DesignForm/public/form/calculate/cssInfo.ts' @@ -767,6 +769,59 @@ const judgeCheckbox = (val:any,list:any) => { } return valAry } +/** +@ 作者: 秦东 +@ 时间: 2024-08-05 10:00:31 +@ 功能: 下拉菜单处理 +*/ +const selectValue = (val:any,list:any) => { + // console.log("下拉菜单处理",val,list) + let valAry = [] + if(val && val != "" && val != null ){ + let pickSelect = JSON.parse(val) + // console.log("下拉菜单处理-----3------->",pickSelect) + + + if(Array.isArray(pickSelect)){ + if(pickSelect.length > 0){ + + if(Array.isArray(list)){ + pickSelect.forEach((item) => { + + list.forEach((ltem) => { + if(item*1 == ltem.value*1){ + valAry.push(ltem.label) + } + }) + }) + } + } + }else{ + if(Array.isArray(list)){ + list.forEach((ltem) => { + if(val == ltem.value){ + valAry.push(ltem.label) + } + }) + } + } + }else{ + // console.log("下拉菜单处理-4->",val) + } + + // console.log("下拉菜单处理-2->",valAry) + return valAry +} +/** +@ 作者: 秦东 +@ 时间: 2024-08-06 08:34:05 +@ 功能: 选择用户 +*/ +const pickUserVal = (val:any) => { + let valAry = string2json(val) + // console.log("选择用户-2->",valAry) + return valAry +} -
+ -
+