diff --git a/src/components/DesignForm/app/calendar/selectSearch.vue b/src/components/DesignForm/app/calendar/selectSearch.vue new file mode 100644 index 0000000..a5cd437 --- /dev/null +++ b/src/components/DesignForm/app/calendar/selectSearch.vue @@ -0,0 +1,138 @@ + + + + diff --git a/src/components/DesignForm/app/index.vue b/src/components/DesignForm/app/index.vue index 22fe051..5081fde 100644 --- a/src/components/DesignForm/app/index.vue +++ b/src/components/DesignForm/app/index.vue @@ -15,7 +15,9 @@ import { Picture,InfoFilled,QuestionFilled } from '@element-plus/icons-vue' import request from '@/utils/request'; import { softDeletion,retractRunWorkFlow } from '@/api/taskapi/management' - +import { + formatNumber +} from '@/api/DesignForm/utils' //引入组件 @@ -26,7 +28,8 @@ import CardPage from '@/components/DesignForm/app/cardPage.vue' import GanttPageIng from '@/components/DesignForm/app/gannttPage.vue' import MapPage from '@/components/DesignForm/app/mapPage.vue' import CalendarPage from '@/components/DesignForm/app/calendar/calendar1/calendarPage.vue' - +import SearchSelect from '@/components/DesignForm/app/calendar/selectSearch.vue' +import AKSelect from '@/components/DesignForm/public/form/select.vue' const props = withDefaults( defineProps<{ @@ -166,9 +169,13 @@ const unitIsShow = (val:tableButton,unitName:string) => { return checkboxUnit.includes(unitName); break; default: - return inputUnit.includes(unitName); + if(val.fieldClass != "datePicker" && val.fieldClass != "timePicker"){ + return inputUnit.includes(unitName); + } + break; } + return false; } /** @@ -849,7 +856,11 @@ const judgeListTitle = (val:any,viewConfig:any) => { } return false } - +// 选择数据转换,默认尝试转数字 +const transformOption = (val: string | number, type?: string) => { + + return formatNumber(val) + }