diff --git a/src/api/hr/org/index.ts b/src/api/hr/org/index.ts index e9f09bd..c9cb5e6 100644 --- a/src/api/hr/org/index.ts +++ b/src/api/hr/org/index.ts @@ -1,6 +1,6 @@ import request from '@/utils/request'; import { AxiosPromise } from 'axios'; -import { searchFormTitle,orgClassListCont,addOrgTypesCont,orgClassCont,editOrgTypeEditOrDel,searchOrgCont,orgInfo,addOrgInfo,editOrgDel,searchTeamList,orgTeamListCont,orgFormTree,archivesList } from './type'; +import { searchFormTitle,orgClassListCont,addOrgTypesCont,orgClassCont,editOrgTypeEditOrDel,searchOrgCont,orgInfo,addOrgInfo,editOrgDel,searchTeamList,orgTeamListCont,orgFormTree,archivesList,getContId } from './type'; /** * 获取组织类别 */ @@ -31,6 +31,16 @@ export function addOrgClassInfo(data: addOrgTypesCont){ data: data }); } +/** + * 获取行政组织内容 + */ + export function getgovcont(data: getContId){ + return request({ + url: '/hrapi/org/getgovcont', + method: 'post', + data: data + }); +} /** * 编辑组织分类 */ diff --git a/src/api/hr/org/type.ts b/src/api/hr/org/type.ts index d106e34..5c34dbb 100644 --- a/src/api/hr/org/type.ts +++ b/src/api/hr/org/type.ts @@ -178,3 +178,8 @@ export type archivesList = PageResult export interface msgAry { msg:string[] } + +export interface getContId{ + id: number; + idstr?: string; +} diff --git a/src/components/DesignForm/app/formPage.vue b/src/components/DesignForm/app/formPage.vue index 66e9b69..304279f 100644 --- a/src/components/DesignForm/app/formPage.vue +++ b/src/components/DesignForm/app/formPage.vue @@ -743,8 +743,8 @@ const appFormSubmit = (params = {}) => { formatParams.versionId=props.versionId formatParams.appKey=props.groupid formatParams.status=2 - // console.log("提交表单-----------1------------>", submitParams) - // console.log("提交表单-----------2------------>", formatParams) + console.log("提交表单-----------1------------>", submitParams) + console.log("提交表单-----------2------------>", formatParams) createAppTask(submitParams ?? formatParams) .then((data:any) => { diff --git a/src/components/DesignForm/formControlPropertiNew.vue b/src/components/DesignForm/formControlPropertiNew.vue index 0e00de5..332b472 100644 --- a/src/components/DesignForm/formControlPropertiNew.vue +++ b/src/components/DesignForm/formControlPropertiNew.vue @@ -817,14 +817,14 @@ const attrList = computed(() => { vIf: state.isSearch, vShow: ['lowcodeImage'] }, - { - label: '内外四边距', - value: config.lowcodeImage, - path: 'config.lowcodeImage', - type: 'lowcodeImage_marginAndPadding', - vIf: state.isSearch, - vShow: ['lowcodeImage'] - }, + // { + // label: '内外四边距', + // value: config.lowcodeImage, + // path: 'config.lowcodeImage', + // type: 'lowcodeImage_marginAndPadding', + // vIf: state.isSearch, + // vShow: ['lowcodeImage'] + // }, /* { label: '上传视频封面', value: config.uploadvideo, diff --git a/src/components/DesignForm/public/expand/digitpage.vue b/src/components/DesignForm/public/expand/digitpage.vue new file mode 100644 index 0000000..d0c69b5 --- /dev/null +++ b/src/components/DesignForm/public/expand/digitpage.vue @@ -0,0 +1,50 @@ + + + + diff --git a/src/components/DesignForm/public/expand/lowcodeImage.vue b/src/components/DesignForm/public/expand/lowcodeImage.vue new file mode 100644 index 0000000..676123c --- /dev/null +++ b/src/components/DesignForm/public/expand/lowcodeImage.vue @@ -0,0 +1,121 @@ + + + + diff --git a/src/components/DesignForm/public/expand/org.vue b/src/components/DesignForm/public/expand/org.vue new file mode 100644 index 0000000..fae9667 --- /dev/null +++ b/src/components/DesignForm/public/expand/org.vue @@ -0,0 +1,85 @@ + + + + diff --git a/src/components/DesignForm/public/form/childTable.vue b/src/components/DesignForm/public/form/childTable.vue index 9936b26..81ef855 100644 --- a/src/components/DesignForm/public/form/childTable.vue +++ b/src/components/DesignForm/public/form/childTable.vue @@ -9,6 +9,12 @@ import { inject, computed } from 'vue' import Tooltips from '@/components/DesignForm/tooltip.vue' import {constFormProps } from '@/api/DesignForm/utils' import { jsonParseStringify } from '@/utils/DesignForm' +import LowcodeImagePage from '@/components/DesignForm/public/expand/lowcodeImage.vue' + + +import LokOrgCentent from '@/widget/org/cont.vue' + + const props = withDefaults( defineProps<{ data: any @@ -59,9 +65,124 @@ const getText = (text: any,val:any,name:any) => { const delColumn = (index: number) => { tableDataNew.value.splice(index, 1) } +/** +@ 作者: 秦东 +@ 时间: 2024-08-02 13:22:14 +@ 功能: 时间戳转换对象 +*/ +const timeToAry = (timestamp:number) => { + const date = new Date(timestamp); + const year = date.getFullYear(); + const month = ('0' + (date.getMonth() + 1)).slice(-2); + const day = ('0' + date.getDate()).slice(-2); + const hours = ('0' + date.getHours()).slice(-2); + const minutes = ('0' + date.getMinutes()).slice(-2); + const seconds = ('0' + date.getSeconds()).slice(-2); + return { + year:year, + month:month, + day:day, + hours:hours, + minutes:minutes, + seconds + } +} +/** +@ 作者: 秦东 +@ 时间: 2024-08-02 13:02:49 +@ 功能: 将时间戳转换成字符串 +*/ +const timeToString = (timeVal:any,types:int) => { + let timeStr = "" + if(Array.isArray(timeVal)){ + if(timeVal.length >= 2){ + let startTime = timeToAry(timeVal[0]) + let endTime = timeToAry(timeVal[1]) + switch(types){ + case "year": //年 + timeStr = `${startTime.year} 至 ${endTime.year}`; + break; + case "month": //月 + timeStr = `${startTime.year}-${startTime.month} 至 ${endTime.year}-${endTime.month}`; + break; + case "datetime": //日期+时间 + timeStr = `${startTime.year}-${startTime.month}-${startTime.day} ${startTime.hours}:${startTime.minutes}:${startTime.seconds} 至 ${endTime.year}-${endTime.month}-${endTime.day} ${endTime.hours}:${endTime.minutes}:${endTime.seconds}`; + break; + case "week": //周 + let startWeek = getYearWeek(startTime) + let endWeek = getYearWeek(endTime) + timeStr = `${startWeek} 至 ${endWeek}`; + break; + case "timeCalss": //时间 + timeStr = `${startTime.hours}:${startTime.minutes}:${startTime.seconds} 至 ${endTime.hours}:${endTime.minutes}:${endTime.seconds}`; + break; + case "datetimerange": + timeStr = `${startTime.year}-${startTime.month}-${startTime.day} ${startTime.hours}:${startTime.minutes}:${startTime.seconds} 至 ${endTime.year}-${endTime.month}-${endTime.day} ${endTime.hours}:${endTime.minutes}:${endTime.seconds}`; + break; + case "daterange": + timeStr = `${startTime.year}-${startTime.month}-${startTime.day} 至 ${endTime.year}-${endTime.month}-${endTime.day}`; + break; + case "monthrange": + timeStr = `${startTime.year}-${startTime.month} 至 ${endTime.year}-${endTime.month}`; + break; + default: + timeStr = `${startTime.year}-${startTime.month}-${startTime.day} 至 ${endTime.year}-${endTime.month}-${endTime.day}`; + break; + } + }else if(timeVal.length == 1){ + let {year,month,day,hours,minutes,seconds} = timeToAry(timeVal[0]) + switch(types){ + case "year": //年 + timeStr = `${year}`; + break; + case "month": //月 + timeStr = `${year}-${month}`; + break; + case "datetime": //日期+时间 + timeStr = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`; + break; + case "week": //周 + timeStr = getYearWeek(timeVal) + break; + case "timeCalss": //时间 + timeStr = `${hours}:${minutes}:${seconds}`; + break; + default: + timeStr = `${year}-${month}-${day}` + break; + } + }else{ + timeStr = "未知时间" + } + }else{ + let {year,month,day,hours,minutes,seconds} = timeToAry(timeVal) + switch(types){ + case "year": //年 + timeStr = `${year}`; + break; + case "month": //月 + timeStr = `${year}-${month}`; + break; + case "datetime": //日期+时间 + timeStr = `${year}-${month}-${day} ${hours}:${minutes}:${seconds}`; + break; + case "week": //周 + timeStr = getYearWeek(timeVal) + break; + case "timeCalss": //时间 + timeStr = `${hours}:${minutes}:${seconds}`; + break; + default: + timeStr = `${year}-${month}-${day}` + break; + } + } + + return timeStr +}