@das-fed/ui 6.4.0-dev.9 → 6.4.0-hot.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +8 -6
- package/packages/business-components/app-container/index.css +1 -0
- package/packages/business-components/app-container/index.css.gz +0 -0
- package/packages/business-components/app-container/index.js +22 -20
- package/packages/business-components/app-container/index.js.gz +0 -0
- package/packages/business-components/change-enterprises/index.css +1 -0
- package/packages/business-components/change-enterprises/index.css.gz +0 -0
- package/packages/business-components/change-enterprises/index.js +39 -37
- package/packages/business-components/change-enterprises/index.js.gz +0 -0
- package/packages/business-components/change-pwd/index.js +0 -1
- package/packages/business-components/currency-page/index.js +0 -1
- package/packages/business-components/device-panel/index.css +1 -0
- package/packages/business-components/device-panel/index.css.gz +0 -0
- package/packages/business-components/device-panel/index.js +14502 -14692
- package/packages/business-components/device-panel/index.js.gz +0 -0
- package/packages/business-components/export-button/index.js +152 -433
- package/packages/business-components/export-button/index.js.gz +0 -0
- package/packages/business-components/import-button/index.js +323 -604
- package/packages/business-components/import-button/index.js.gz +0 -0
- package/packages/business-components/layout-breadcrumb/index.js +0 -1
- package/packages/business-components/model-table-dialog/index.js +0 -1
- package/packages/business-components/process-configuration/index.js +0 -1
- package/packages/business-components/process-form/index.css +1 -0
- package/packages/business-components/process-form/index.js +843 -1123
- package/packages/business-components/process-form/index.js.gz +0 -0
- package/packages/business-components/process-log/ProcessLogItem.vue.d.ts +1 -1
- package/packages/business-components/process-log/index.d.ts +21 -21
- package/packages/business-components/process-log/index.js +1477 -1759
- package/packages/business-components/process-log/index.js.gz +0 -0
- package/packages/business-components/process-search-form/index.js +439 -719
- package/packages/business-components/process-search-form/index.js.gz +0 -0
- package/packages/business-components/process-table/index.js +538 -820
- package/packages/business-components/process-table/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/index.css +1 -0
- package/packages/business-components/urgent-panel/index.css.gz +0 -0
- package/packages/business-components/urgent-panel/index.js +1743 -2072
- package/packages/business-components/urgent-panel/index.js.gz +0 -0
- package/packages/business-components/urgent-panel/src/components/urgentPanelModal/apis.d.ts +1 -0
- package/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/use-schedule-track/Track.vue.d.ts +2 -2
- package/packages/business-components/urgent-panel/src/components/urgentPanelModal/components/use-schedule-track/track.d.ts +1 -1
- package/packages/business-components/user-org-dialog/index.js +0 -1
- package/packages/business-components/video-dialog/index.js +338 -620
- package/packages/business-components/video-dialog/index.js.gz +0 -0
- package/packages/components/alert/index.css +1 -0
- package/packages/components/alert/index.css.gz +0 -0
- package/packages/components/alert/index.js +820 -820
- package/packages/components/alert/index.js.gz +0 -0
- package/packages/components/audio-video/index.js +0 -1
- package/packages/components/autocomplete/index.css +1 -0
- package/packages/components/autocomplete/index.css.gz +0 -0
- package/packages/components/autocomplete/index.js +7 -5
- package/packages/components/autocomplete/index.js.gz +0 -0
- package/packages/components/breadcrumb/index.css +1 -0
- package/packages/components/breadcrumb/index.css.gz +0 -0
- package/packages/components/breadcrumb/index.js +5 -4
- package/packages/components/breadcrumb/index.js.gz +0 -0
- package/packages/components/button/index.css +1 -0
- package/packages/components/button/index.css.gz +0 -0
- package/packages/components/button/index.js +6 -4
- package/packages/components/button/index.js.gz +0 -0
- package/packages/components/calendar/index.js +257 -615
- package/packages/components/calendar/index.js.gz +0 -0
- package/packages/components/cascader/index.css +1 -0
- package/packages/components/cascader/index.css.gz +0 -0
- package/packages/components/cascader/index.js +12 -4
- package/packages/components/cascader/index.js.gz +0 -0
- package/packages/components/checkbox/index.css +1 -0
- package/packages/components/checkbox/index.css.gz +0 -0
- package/packages/components/checkbox/index.js +5 -5
- package/packages/components/checkbox/index.js.gz +0 -0
- package/packages/components/collapse-panel/index.css +1 -0
- package/packages/components/collapse-panel/index.css.gz +0 -0
- package/packages/components/collapse-panel/index.js +5 -5
- package/packages/components/collapse-panel/index.js.gz +0 -0
- package/packages/components/collapse-transition/index.js +0 -1
- package/packages/components/collaspe/index.css +1 -0
- package/packages/components/collaspe/index.js +5 -5
- package/packages/components/collaspe/index.js.gz +0 -0
- package/packages/components/color-picker/index.css +1 -0
- package/packages/components/color-picker/index.css.gz +0 -0
- package/packages/components/color-picker/index.js +8 -5
- package/packages/components/color-picker/index.js.gz +0 -0
- package/packages/components/custom-search-item/index.js +0 -1
- package/packages/components/date-picker/index.css +1 -0
- package/packages/components/date-picker/index.css.gz +0 -0
- package/packages/components/date-picker/index.js +5134 -6026
- package/packages/components/date-picker/index.js.gz +0 -0
- package/packages/components/dialog/index.css +1 -0
- package/packages/components/dialog/index.css.gz +0 -0
- package/packages/components/dialog/index.js +6 -4
- package/packages/components/dialog/index.js.gz +0 -0
- package/packages/components/dimple-layout/index.js +0 -1
- package/packages/components/drawer/index.css +1 -0
- package/packages/components/drawer/index.js +6 -4
- package/packages/components/drawer/index.js.gz +0 -0
- package/packages/components/dropdown/index.css +1 -0
- package/packages/components/dropdown/index.css.gz +0 -0
- package/packages/components/dropdown/index.js +13 -6
- package/packages/components/dropdown/index.js.gz +0 -0
- package/packages/components/edit-table/index.js +0 -1
- package/packages/components/empty/index.js +0 -1
- package/packages/components/form/index.js +0 -1
- package/packages/components/form-item/index.js +0 -1
- package/packages/components/icon/index.js +0 -1
- package/packages/components/image-preview/index.js +4 -3
- package/packages/components/image-preview/index.js.gz +0 -0
- package/packages/components/image-upload/index.css +1 -0
- package/packages/components/image-upload/index.css.gz +0 -0
- package/packages/components/image-upload/index.js +4 -4
- package/packages/components/image-upload/index.js.gz +0 -0
- package/packages/components/image-viewer/index.css +1 -0
- package/packages/components/image-viewer/index.css.gz +0 -0
- package/packages/components/image-viewer/index.d.ts +9 -0
- package/packages/components/image-viewer/index.js +41 -33
- package/packages/components/image-viewer/index.js.gz +0 -0
- package/packages/components/image-viewer/src/Index.vue.d.ts +3 -0
- package/packages/components/image-viewer/src/hooks/use-handler-image-src.d.ts +2 -1
- package/packages/components/image-viewer/src/type.d.ts +3 -0
- package/packages/components/input/index.css +1 -0
- package/packages/components/input/index.css.gz +0 -0
- package/packages/components/input/index.js +5 -4
- package/packages/components/input/index.js.gz +0 -0
- package/packages/components/input-dialog-select/{style.css → index.css} +1 -1
- package/packages/components/input-dialog-select/index.css.gz +0 -0
- package/packages/components/input-dialog-select/index.js +2 -3
- package/packages/components/input-dialog-select/index.js.gz +0 -0
- package/packages/components/input-number/index.css +1 -0
- package/packages/components/input-number/index.css.gz +0 -0
- package/packages/components/input-number/index.js +7 -5
- package/packages/components/input-number/index.js.gz +0 -0
- package/packages/components/live-player/index.css +1 -0
- package/packages/components/live-player/index.js +5 -4
- package/packages/components/live-player/index.js.gz +0 -0
- package/packages/components/loading/index.js +0 -1
- package/packages/components/map/index.css +1 -0
- package/packages/components/map/index.js +14 -9
- package/packages/components/map/index.js.gz +0 -0
- package/packages/components/menu-aside/index.css +1 -0
- package/packages/components/menu-aside/index.css.gz +0 -0
- package/packages/components/menu-aside/index.js +4 -4
- package/packages/components/menu-aside/index.js.gz +0 -0
- package/packages/components/menu-header/index.css +1 -0
- package/packages/components/menu-header/index.css.gz +0 -0
- package/packages/components/menu-header/index.js +4 -4
- package/packages/components/menu-header/index.js.gz +0 -0
- package/packages/components/message/index.css +1 -0
- package/packages/components/message/index.css.gz +0 -0
- package/packages/components/message/index.js +5 -3
- package/packages/components/message/index.js.gz +0 -0
- package/packages/components/notification/index.css +1 -0
- package/packages/components/notification/index.css.gz +0 -0
- package/packages/components/notification/index.js +5 -5
- package/packages/components/notification/index.js.gz +0 -0
- package/packages/components/pagination/index.css +1 -0
- package/packages/components/pagination/index.css.gz +0 -0
- package/packages/components/pagination/index.js +19 -5
- package/packages/components/pagination/index.js.gz +0 -0
- package/packages/components/popover/index.css +1 -0
- package/packages/components/popover/index.css.gz +0 -0
- package/packages/components/popover/index.js +6 -4
- package/packages/components/popover/index.js.gz +0 -0
- package/packages/components/popup-mask/index.js +0 -1
- package/packages/components/preview/index.js +0 -1
- package/packages/components/progress/index.css +1 -0
- package/packages/components/progress/index.css.gz +0 -0
- package/packages/components/progress/index.js +6 -4
- package/packages/components/progress/index.js.gz +0 -0
- package/packages/components/radio/index.css +1 -0
- package/packages/components/radio/index.css.gz +0 -0
- package/packages/components/radio/index.js +5 -5
- package/packages/components/radio/index.js.gz +0 -0
- package/packages/components/radio-tabs/index.js +0 -1
- package/packages/components/rich-editor/index.js +0 -1
- package/packages/components/scrollbar/index.css +9 -0
- package/packages/components/scrollbar/index.css.gz +0 -0
- package/packages/components/scrollbar/index.js +6 -5
- package/packages/components/scrollbar/index.js.gz +0 -0
- package/packages/components/search/index.css +1 -0
- package/packages/components/search/index.css.gz +0 -0
- package/packages/components/search/index.js +4 -4
- package/packages/components/search/index.js.gz +0 -0
- package/packages/components/search-form/index.js +13 -12
- package/packages/components/search-form/index.js.gz +0 -0
- package/packages/components/select/index.css +1 -0
- package/packages/components/select/index.css.gz +0 -0
- package/packages/components/select/index.js +5 -5
- package/packages/components/select/index.js.gz +0 -0
- package/packages/components/select-input/index.js +0 -1
- package/packages/components/select-list/index.css +1 -0
- package/packages/components/select-list/index.css.gz +0 -0
- package/packages/components/select-list/index.js +5 -4
- package/packages/components/select-list/index.js.gz +0 -0
- package/packages/components/special-range-picker-month/index.js +0 -1
- package/packages/components/special-range-picker-year/index.css +1 -0
- package/packages/components/special-range-picker-year/index.css.gz +0 -0
- package/packages/components/special-range-picker-year/index.js +6 -4
- package/packages/components/special-range-picker-year/index.js.gz +0 -0
- package/packages/components/spin/index.css +1 -0
- package/packages/components/spin/index.css.gz +0 -0
- package/packages/components/spin/index.js +4 -4
- package/packages/components/spin/index.js.gz +0 -0
- package/packages/components/split-panel/index.js +0 -1
- package/packages/components/step/index.css +1 -0
- package/packages/components/step/index.js +4 -4
- package/packages/components/step/index.js.gz +0 -0
- package/packages/components/steps/index.css +1 -0
- package/packages/components/steps/index.css.gz +0 -0
- package/packages/components/steps/index.js +4 -4
- package/packages/components/steps/index.js.gz +0 -0
- package/packages/components/switch/index.css +1 -0
- package/packages/components/switch/index.css.gz +0 -0
- package/packages/components/switch/index.js +5 -4
- package/packages/components/switch/index.js.gz +0 -0
- package/packages/components/table/index.css +1 -0
- package/packages/components/table/index.css.gz +0 -0
- package/packages/components/table/index.js +152 -137
- package/packages/components/table/index.js.gz +0 -0
- package/packages/components/table/src/Table.vue.d.ts +2 -2
- package/packages/components/tabs/index.css +1 -0
- package/packages/components/tabs/index.css.gz +0 -0
- package/packages/components/tabs/index.js +7 -4
- package/packages/components/tabs/index.js.gz +0 -0
- package/packages/components/tag/index.css +1 -0
- package/packages/components/tag/index.css.gz +0 -0
- package/packages/components/tag/index.js +5 -4
- package/packages/components/tag/index.js.gz +0 -0
- package/packages/components/text-tooltip/index.js +0 -1
- package/packages/components/time-line/index.css +1 -0
- package/packages/components/time-line/index.css.gz +0 -0
- package/packages/components/time-line/index.js +5 -5
- package/packages/components/time-line/index.js.gz +0 -0
- package/packages/components/tooltip/index.css +1 -0
- package/packages/components/tooltip/index.css.gz +0 -0
- package/packages/components/tooltip/index.js +7 -5
- package/packages/components/tooltip/index.js.gz +0 -0
- package/packages/components/tree/index.css +1 -0
- package/packages/components/tree/index.css.gz +0 -0
- package/packages/components/tree/index.js +81 -76
- package/packages/components/tree/index.js.gz +0 -0
- package/packages/components/tree-select/index.css +1 -0
- package/packages/components/tree-select/index.css.gz +0 -0
- package/packages/components/tree-select/index.js +312 -311
- package/packages/components/tree-select/index.js.gz +0 -0
- package/packages/components/tree-table/index.js +0 -1
- package/packages/components/upload/index.css +1 -0
- package/packages/components/upload/index.css.gz +0 -0
- package/packages/components/upload/index.js +4 -4
- package/packages/components/upload/index.js.gz +0 -0
- package/packages/components/virtual-tree/index.css +1 -0
- package/packages/components/virtual-tree/index.css.gz +0 -0
- package/packages/components/virtual-tree/index.js +9 -5
- package/packages/components/virtual-tree/index.js.gz +0 -0
- package/packages/components/watermark/index.js +0 -1
- package/packages/business-components/app-container/style.css +0 -1
- package/packages/business-components/app-container/style.css.gz +0 -0
- package/packages/business-components/change-enterprises/style.css +0 -1
- package/packages/business-components/change-enterprises/style.css.gz +0 -0
- package/packages/business-components/device-panel/style.css +0 -1
- package/packages/business-components/device-panel/style.css.gz +0 -0
- package/packages/business-components/process-form/style.css +0 -1
- package/packages/business-components/process-form/style.css.gz +0 -0
- package/packages/business-components/urgent-panel/style.css +0 -1
- package/packages/business-components/urgent-panel/style.css.gz +0 -0
- package/packages/components/alert/style.css +0 -1
- package/packages/components/alert/style.css.gz +0 -0
- package/packages/components/autocomplete/style.css +0 -1
- package/packages/components/autocomplete/style.css.gz +0 -0
- package/packages/components/breadcrumb/style.css +0 -1
- package/packages/components/breadcrumb/style.css.gz +0 -0
- package/packages/components/button/style.css +0 -1
- package/packages/components/button/style.css.gz +0 -0
- package/packages/components/cascader/style.css +0 -1
- package/packages/components/cascader/style.css.gz +0 -0
- package/packages/components/checkbox/style.css +0 -1
- package/packages/components/checkbox/style.css.gz +0 -0
- package/packages/components/collapse-panel/style.css +0 -1
- package/packages/components/collapse-panel/style.css.gz +0 -0
- package/packages/components/collaspe/style.css +0 -1
- package/packages/components/collaspe/style.css.gz +0 -0
- package/packages/components/color-picker/style.css +0 -1
- package/packages/components/color-picker/style.css.gz +0 -0
- package/packages/components/date-picker/style.css +0 -1
- package/packages/components/date-picker/style.css.gz +0 -0
- package/packages/components/dialog/style.css +0 -1
- package/packages/components/dialog/style.css.gz +0 -0
- package/packages/components/drawer/style.css +0 -1
- package/packages/components/drawer/style.css.gz +0 -0
- package/packages/components/dropdown/style.css +0 -1
- package/packages/components/dropdown/style.css.gz +0 -0
- package/packages/components/image-preview/style.css +0 -1
- package/packages/components/image-preview/style.css.gz +0 -0
- package/packages/components/image-upload/style.css +0 -1
- package/packages/components/image-upload/style.css.gz +0 -0
- package/packages/components/image-viewer/style.css +0 -1
- package/packages/components/image-viewer/style.css.gz +0 -0
- package/packages/components/input/style.css +0 -1
- package/packages/components/input/style.css.gz +0 -0
- package/packages/components/input-dialog-select/style.css.gz +0 -0
- package/packages/components/input-number/style.css +0 -1
- package/packages/components/input-number/style.css.gz +0 -0
- package/packages/components/live-player/style.css +0 -1
- package/packages/components/live-player/style.css.gz +0 -0
- package/packages/components/map/style.css +0 -1
- package/packages/components/map/style.css.gz +0 -0
- package/packages/components/menu-aside/style.css +0 -1
- package/packages/components/menu-aside/style.css.gz +0 -0
- package/packages/components/menu-header/style.css +0 -1
- package/packages/components/menu-header/style.css.gz +0 -0
- package/packages/components/message/style.css +0 -1
- package/packages/components/message/style.css.gz +0 -0
- package/packages/components/notification/style.css +0 -1
- package/packages/components/notification/style.css.gz +0 -0
- package/packages/components/pagination/style.css +0 -1
- package/packages/components/pagination/style.css.gz +0 -0
- package/packages/components/popover/style.css +0 -1
- package/packages/components/popover/style.css.gz +0 -0
- package/packages/components/progress/style.css +0 -1
- package/packages/components/progress/style.css.gz +0 -0
- package/packages/components/radio/style.css +0 -1
- package/packages/components/radio/style.css.gz +0 -0
- package/packages/components/scrollbar/style.css +0 -9
- package/packages/components/scrollbar/style.css.gz +0 -0
- package/packages/components/search/style.css +0 -1
- package/packages/components/search/style.css.gz +0 -0
- package/packages/components/select/style.css +0 -1
- package/packages/components/select/style.css.gz +0 -0
- package/packages/components/select-list/style.css +0 -1
- package/packages/components/select-list/style.css.gz +0 -0
- package/packages/components/special-range-picker-year/style.css +0 -1
- package/packages/components/special-range-picker-year/style.css.gz +0 -0
- package/packages/components/spin/style.css +0 -1
- package/packages/components/spin/style.css.gz +0 -0
- package/packages/components/step/style.css +0 -1
- package/packages/components/step/style.css.gz +0 -0
- package/packages/components/steps/style.css +0 -1
- package/packages/components/steps/style.css.gz +0 -0
- package/packages/components/switch/style.css +0 -1
- package/packages/components/switch/style.css.gz +0 -0
- package/packages/components/table/style.css +0 -1
- package/packages/components/table/style.css.gz +0 -0
- package/packages/components/tabs/style.css +0 -1
- package/packages/components/tabs/style.css.gz +0 -0
- package/packages/components/tag/style.css +0 -1
- package/packages/components/tag/style.css.gz +0 -0
- package/packages/components/time-line/style.css +0 -1
- package/packages/components/time-line/style.css.gz +0 -0
- package/packages/components/tooltip/style.css +0 -1
- package/packages/components/tooltip/style.css.gz +0 -0
- package/packages/components/tree/style.css +0 -1
- package/packages/components/tree/style.css.gz +0 -0
- package/packages/components/tree-select/style.css +0 -1
- package/packages/components/tree-select/style.css.gz +0 -0
- package/packages/components/upload/style.css +0 -1
- package/packages/components/upload/style.css.gz +0 -0
- package/packages/components/virtual-tree/style.css +0 -1
- package/packages/components/virtual-tree/style.css.gz +0 -0
- /package/packages/business-components/change-pwd/{style.css → index.css} +0 -0
- /package/packages/business-components/currency-page/{style.css → index.css} +0 -0
- /package/packages/business-components/export-button/{style.css → index.css} +0 -0
- /package/packages/business-components/import-button/{style.css → index.css} +0 -0
- /package/packages/business-components/layout-breadcrumb/{style.css → index.css} +0 -0
- /package/packages/business-components/model-table-dialog/{style.css → index.css} +0 -0
- /package/packages/business-components/model-table-dialog/{style.css.gz → index.css.gz} +0 -0
- /package/packages/business-components/process-configuration/{style.css → index.css} +0 -0
- /package/packages/business-components/process-configuration/{style.css.gz → index.css.gz} +0 -0
- /package/packages/business-components/process-log/{style.css → index.css} +0 -0
- /package/packages/business-components/process-log/{style.css.gz → index.css.gz} +0 -0
- /package/packages/business-components/process-table/{style.css → index.css} +0 -0
- /package/packages/business-components/user-org-dialog/{style.css → index.css} +0 -0
- /package/packages/business-components/user-org-dialog/{style.css.gz → index.css.gz} +0 -0
- /package/packages/business-components/video-dialog/{style.css → index.css} +0 -0
- /package/packages/business-components/video-dialog/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/audio-video/{style.css → index.css} +0 -0
- /package/packages/components/calendar/{style.css → index.css} +0 -0
- /package/packages/components/calendar/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/collapse-transition/{style.css → index.css} +0 -0
- /package/packages/components/custom-search-item/{style.css → index.css} +0 -0
- /package/packages/components/dimple-layout/{style.css → index.css} +0 -0
- /package/packages/components/dimple-layout/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/edit-table/{style.css → index.css} +0 -0
- /package/packages/components/edit-table/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/empty/{style.css → index.css} +0 -0
- /package/packages/components/form/{style.css → index.css} +0 -0
- /package/packages/components/form-item/{style.css → index.css} +0 -0
- /package/packages/components/form-item/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/icon/{style.css → index.css} +0 -0
- /package/packages/components/loading/{style.css → index.css} +0 -0
- /package/packages/components/loading/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/popup-mask/{style.css → index.css} +0 -0
- /package/packages/components/preview/{style.css → index.css} +0 -0
- /package/packages/components/radio-tabs/{style.css → index.css} +0 -0
- /package/packages/components/radio-tabs/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/rich-editor/{style.css → index.css} +0 -0
- /package/packages/components/rich-editor/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/search-form/{style.css → index.css} +0 -0
- /package/packages/components/search-form/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/select-input/{style.css → index.css} +0 -0
- /package/packages/components/select-input/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/special-range-picker-month/{style.css → index.css} +0 -0
- /package/packages/components/special-range-picker-month/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/split-panel/{style.css → index.css} +0 -0
- /package/packages/components/split-panel/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/text-tooltip/{style.css → index.css} +0 -0
- /package/packages/components/text-tooltip/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/tree-table/{style.css → index.css} +0 -0
- /package/packages/components/tree-table/{style.css.gz → index.css.gz} +0 -0
- /package/packages/components/watermark/{style.css → index.css} +0 -0
|
@@ -1,97 +1,99 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import
|
|
11
|
-
import { DasImageViewer as
|
|
12
|
-
import { DasInput as
|
|
13
|
-
import { DasTableColumn as
|
|
14
|
-
import { DasModelTableDialog as
|
|
15
|
-
import { getProjectInfo as
|
|
16
|
-
import { i18n as
|
|
17
|
-
import { getConfig as
|
|
18
|
-
import { DasRichEditor as
|
|
19
|
-
import { DasCollaspe as
|
|
20
|
-
import { DasCollaspePanel as
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
const
|
|
24
|
-
|
|
25
|
-
const
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
|
|
1
|
+
import { withInstall as Ge } from "@das-fed/utils/with-install/index";
|
|
2
|
+
import { ref as d, defineComponent as D, watch as O, openBlock as h, createBlock as V, unref as l, withCtx as S, createVNode as $, createElementVNode as Xe, createTextVNode as W, toDisplayString as Y, createElementBlock as I, Fragment as ee, isRef as oe, createSlots as et, createCommentVNode as J, h as C, warn as tt, getCurrentInstance as st, inject as _e, computed as x, provide as ot, resolveDynamicComponent as ce, normalizeClass as we, normalizeStyle as Ve, renderSlot as De, onMounted as nt, renderList as ye, withDirectives as at } from "vue";
|
|
3
|
+
import { DasFormRef as it, DasForm as lt } from "@das-fed/ui/packages/components/form/index";
|
|
4
|
+
import { DasButton as rt } from "@das-fed/ui/packages/components/button/index";
|
|
5
|
+
import { vOverlay as ut } from "@das-fed/ui/packages/components/overlay/index";
|
|
6
|
+
import { createService as K } from "@das-fed/utils/create-api-service";
|
|
7
|
+
import { DasUpload as pt } from "@das-fed/ui/packages/components/upload/index";
|
|
8
|
+
import { DasFormItem as M } from "@das-fed/ui/packages/components/form-item/index";
|
|
9
|
+
import { DasAutocomplete as gt } from "@das-fed/ui/packages/components/autocomplete/index";
|
|
10
|
+
import ge from "dayjs";
|
|
11
|
+
import { DasImageViewer as $e } from "@das-fed/ui/packages/components/image-viewer/index";
|
|
12
|
+
import { DasInput as ct } from "@das-fed/ui/packages/components/input/index";
|
|
13
|
+
import { DasTableColumn as T } from "@das-fed/ui/packages/components/table/index";
|
|
14
|
+
import { DasModelTableDialog as dt } from "@das-fed/ui/packages/business-components/model-table-dialog";
|
|
15
|
+
import { getProjectInfo as Re } from "@das-fed/utils/common-info";
|
|
16
|
+
import { i18n as E } from "@das-fed/web/packages/i18n/index";
|
|
17
|
+
import { getConfig as mt } from "@das-fed/utils/config";
|
|
18
|
+
import { DasRichEditor as Se } from "@das-fed/ui/packages/components/rich-editor/index";
|
|
19
|
+
import { DasCollaspe as ft } from "@das-fed/ui/packages/components/collaspe/index";
|
|
20
|
+
import { DasCollaspePanel as vt } from "@das-fed/ui/packages/components/collapse-panel/index";
|
|
21
|
+
import "element-plus/theme-chalk/el-row.css";
|
|
22
|
+
import "element-plus/theme-chalk/el-col.css";
|
|
23
|
+
const Q = "v1", yt = K(`/workflow/form/form/${Q}`), ht = K(`/workflow/form/formDef/${Q}`);
|
|
24
|
+
K(`/workflow/api/user/${Q}`);
|
|
25
|
+
const Me = K(`/workflow/api/extend/${Q}`), bt = K(`/workflow/flow/def/${Q}`), _t = K(`/workflow/form/customQuery/${Q}`), k = K(`/api/enterpriseright/permission/${Q}`), de = K(`/api/space-manage/space-tree/${Q}`), wt = yt.get("/formDesign"), Vt = ht.get("/get"), Dt = Me.get("/report-config");
|
|
26
|
+
Me.get("/application-report");
|
|
27
|
+
const $t = bt.get("/getBindRelationByDefKey"), Rt = _t.get("/getByAlias"), St = k.get("/organization/authTree"), Mt = k.post("/user/list"), Lt = k.post("/data/user-query"), Ot = k.get("/role/list"), Tt = k.post("/data/role-ids"), jt = k.get("/organization/organizationpage"), Nt = k.get("/station/list"), Ft = k.get("/position/list"), ne = k.post("/organization/detailbyids"), qt = de.get("/controller/area-children"), Bt = de.get("/controller/fuzzy-tree-all"), Pt = de.get("/controller/space"), ae = d(""), Et = (s, e, t) => {
|
|
28
|
+
const { setDetailData: o, getFormData: m, setFormData: g, formRule: r } = t, p = d([]), n = d([]), a = d([]), i = d(!1), u = it(), c = (y) => Object.keys(y).length === 0, f = async (y) => {
|
|
29
|
+
const [b, w] = await wt({ formId: y }).run();
|
|
30
|
+
if (b) return;
|
|
31
|
+
const q = JSON.parse(w.bos);
|
|
32
|
+
ae.value = q[0].alias, n.value.length && n.value.forEach((z) => {
|
|
33
|
+
z.formKey === w.formKey && g(w.formKey, ae.value, z.id);
|
|
32
34
|
});
|
|
33
|
-
const [
|
|
34
|
-
a.value = JSON.parse(Z.value.expand).list,
|
|
35
|
+
const [A, Z] = await Vt({ formDefId: w.defId }).run();
|
|
36
|
+
a.value = JSON.parse(Z.value.expand).list, n.value.length || g(w.formKey, ae.value), c(s.data) && (i.value = !0), c(s.data) || (o(s.data), s.flowKey && (p.value = s.data.button_list ? JSON.parse(s.data.button_list) : []), i.value = !0);
|
|
35
37
|
};
|
|
36
38
|
return {
|
|
37
39
|
isShowPage: i,
|
|
38
40
|
formJsonList: a,
|
|
39
|
-
btnList:
|
|
40
|
-
formRef:
|
|
41
|
+
btnList: p,
|
|
42
|
+
formRef: u,
|
|
41
43
|
getForm: f,
|
|
42
44
|
getBtnSet: async () => {
|
|
43
45
|
if (s.formConfigurationId) {
|
|
44
|
-
const [
|
|
45
|
-
if (
|
|
46
|
-
|
|
46
|
+
const [y, b] = await Dt({ id: s.formConfigurationId }).run();
|
|
47
|
+
if (y) return;
|
|
48
|
+
n.value = b.reports, p.value = b.reports[0].buttons.filter((w) => !(s.isView && w.event !== "LINK")), f(b.reports[0].formId);
|
|
47
49
|
}
|
|
48
50
|
if (s.flowKey) {
|
|
49
|
-
const [
|
|
50
|
-
if (
|
|
51
|
-
f(
|
|
51
|
+
const [y, b] = await $t({ flowKey: s.flowKey }).run();
|
|
52
|
+
if (y) return;
|
|
53
|
+
f(b.pcForm.pcFormId);
|
|
52
54
|
}
|
|
53
55
|
},
|
|
54
|
-
handleClick: (
|
|
55
|
-
var
|
|
56
|
-
(
|
|
57
|
-
|
|
58
|
-
|
|
56
|
+
handleClick: (y) => {
|
|
57
|
+
var b;
|
|
58
|
+
(b = u.value) == null || b.validate(async (w) => {
|
|
59
|
+
w && (e("handleClick", y, m()), y.event === "LINK" && n.value.forEach((q) => {
|
|
60
|
+
y.eventTarget === q.formKey && (p.value = q.buttons.filter((A) => !(s.isView && A.event !== "LINK")), i.value = !1, r.value = {}, f(q.formId));
|
|
59
61
|
}));
|
|
60
62
|
});
|
|
61
63
|
},
|
|
62
|
-
validateFormData: () => new Promise((
|
|
63
|
-
var
|
|
64
|
-
(
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
result:
|
|
68
|
-
data:
|
|
64
|
+
validateFormData: () => new Promise((y, b) => {
|
|
65
|
+
var w;
|
|
66
|
+
(w = u.value) == null || w.validate((q) => {
|
|
67
|
+
const A = m();
|
|
68
|
+
y({
|
|
69
|
+
result: q,
|
|
70
|
+
data: A
|
|
69
71
|
});
|
|
70
72
|
});
|
|
71
73
|
})
|
|
72
74
|
};
|
|
73
|
-
},
|
|
75
|
+
}, j = (s) => {
|
|
74
76
|
var e = new RegExp("<.+?>", "g"), t = s.replace(e, "").replace(/ /g, "");
|
|
75
77
|
return t;
|
|
76
|
-
},
|
|
77
|
-
const [t,
|
|
78
|
-
if (!t &&
|
|
79
|
-
const
|
|
80
|
-
|
|
81
|
-
|
|
78
|
+
}, X = async (s, e) => {
|
|
79
|
+
const [t, o] = await Rt({ alias: s }).run();
|
|
80
|
+
if (!t && o.url) {
|
|
81
|
+
const m = e.filter((a) => a.defaultType == 2), g = d({});
|
|
82
|
+
m.forEach((a) => {
|
|
83
|
+
g.value[a.field] = a.defaultValue;
|
|
82
84
|
});
|
|
83
|
-
const r =
|
|
84
|
-
return
|
|
85
|
+
const r = o.requestType === "POST" ? K(o.url).post("") : K(o.url).get(""), [p, n] = await r({}, { params: g.value }).run();
|
|
86
|
+
return p ? void 0 : n;
|
|
85
87
|
}
|
|
86
|
-
},
|
|
87
|
-
const e =
|
|
88
|
+
}, F = async (s) => {
|
|
89
|
+
const e = d(!1);
|
|
88
90
|
return s.forEach((t) => {
|
|
89
91
|
t.key === "required" && (e.value = !0);
|
|
90
92
|
}), e.value;
|
|
91
|
-
},
|
|
93
|
+
}, Kt = {
|
|
92
94
|
name: "attachment"
|
|
93
|
-
},
|
|
94
|
-
...
|
|
95
|
+
}, It = /* @__PURE__ */ D({
|
|
96
|
+
...Kt,
|
|
95
97
|
props: {
|
|
96
98
|
setting: { default: () => ({
|
|
97
99
|
icon: "",
|
|
@@ -106,35 +108,35 @@ const zt = kt.get("/getBindRelationByDefKey"), Qt = At.get("/getByAlias"), Jt =
|
|
|
106
108
|
store: {}
|
|
107
109
|
},
|
|
108
110
|
setup(s) {
|
|
109
|
-
const e = s, { setData: t, getData:
|
|
110
|
-
e.setting.options.tip && (
|
|
111
|
-
const r =
|
|
112
|
-
return r.value || t(e.setting.name, null),
|
|
113
|
-
t(e.setting.name, JSON.stringify(
|
|
114
|
-
}), (
|
|
111
|
+
const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d();
|
|
112
|
+
e.setting.options.tip && (g.value = j(e.setting.options.tip));
|
|
113
|
+
const r = d([{ name: "111", sizeText: "9.4KB" }]);
|
|
114
|
+
return r.value || t(e.setting.name, null), O(r, (p) => {
|
|
115
|
+
t(e.setting.name, JSON.stringify(p));
|
|
116
|
+
}), (p, n) => (h(), V(l(M), {
|
|
115
117
|
col: e.span,
|
|
116
|
-
marginRight:
|
|
117
|
-
label:
|
|
118
|
+
marginRight: p.marginRight,
|
|
119
|
+
label: p.setting.desc,
|
|
118
120
|
type: "custom",
|
|
119
|
-
helpMessage:
|
|
121
|
+
helpMessage: g.value
|
|
120
122
|
}, {
|
|
121
|
-
default:
|
|
122
|
-
|
|
123
|
+
default: S(() => [
|
|
124
|
+
$(l(pt), {
|
|
123
125
|
style: { width: "100%" },
|
|
124
126
|
modelValue: r.value,
|
|
125
|
-
"onUpdate:modelValue":
|
|
127
|
+
"onUpdate:modelValue": n[0] || (n[0] = (a) => r.value = a)
|
|
126
128
|
}, null, 8, ["modelValue"])
|
|
127
129
|
]),
|
|
128
130
|
_: 1
|
|
129
131
|
}, 8, ["col", "marginRight", "label", "helpMessage"]));
|
|
130
132
|
}
|
|
131
|
-
}),
|
|
133
|
+
}), Le = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
132
134
|
__proto__: null,
|
|
133
|
-
default:
|
|
134
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
135
|
+
default: It
|
|
136
|
+
}, Symbol.toStringTag, { value: "Module" })), kt = {
|
|
135
137
|
name: "autocomplete"
|
|
136
|
-
},
|
|
137
|
-
...
|
|
138
|
+
}, At = /* @__PURE__ */ D({
|
|
139
|
+
...kt,
|
|
138
140
|
props: {
|
|
139
141
|
setting: { default: () => ({
|
|
140
142
|
icon: "",
|
|
@@ -149,53 +151,53 @@ const zt = kt.get("/getBindRelationByDefKey"), Qt = At.get("/getByAlias"), Jt =
|
|
|
149
151
|
store: {}
|
|
150
152
|
},
|
|
151
153
|
setup(s) {
|
|
152
|
-
const e = s, { setData: t, getData:
|
|
153
|
-
|
|
154
|
-
|
|
154
|
+
const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d(!1);
|
|
155
|
+
F(e.setting.options.validateList).then((c) => {
|
|
156
|
+
g.value = c;
|
|
155
157
|
});
|
|
156
|
-
const r = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "value",
|
|
157
|
-
e.setting.options.customQuery.alias ?
|
|
158
|
-
a.value =
|
|
158
|
+
const r = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "value", p = e.setting.options.children ? e.setting.options.children : "children", n = !!e.setting.options.fillInFullPath, a = d([]);
|
|
159
|
+
e.setting.options.customQuery.alias ? X(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((c) => {
|
|
160
|
+
a.value = c;
|
|
159
161
|
}) : a.value = e.setting.options.options;
|
|
160
|
-
const i =
|
|
161
|
-
e.setting.options.tip && (i.value =
|
|
162
|
-
const
|
|
163
|
-
return
|
|
164
|
-
t(e.setting.name,
|
|
165
|
-
}), (
|
|
162
|
+
const i = d();
|
|
163
|
+
e.setting.options.tip && (i.value = j(e.setting.options.tip));
|
|
164
|
+
const u = d("");
|
|
165
|
+
return u.value = o(e.setting.name) || u.value, u.value || t(e.setting.name, null), e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), O(u, (c) => {
|
|
166
|
+
t(e.setting.name, c.toString());
|
|
167
|
+
}), (c, f) => (h(), V(l(M), {
|
|
166
168
|
col: e.span,
|
|
167
|
-
marginRight:
|
|
169
|
+
marginRight: c.marginRight,
|
|
168
170
|
prop: e.setting.name,
|
|
169
|
-
modelValue:
|
|
170
|
-
"onUpdate:modelValue": f[1] || (f[1] = (
|
|
171
|
-
label:
|
|
171
|
+
modelValue: u.value,
|
|
172
|
+
"onUpdate:modelValue": f[1] || (f[1] = (R) => u.value = R),
|
|
173
|
+
label: c.setting.desc,
|
|
172
174
|
type: "custom",
|
|
173
175
|
helpMessage: i.value,
|
|
174
|
-
required:
|
|
176
|
+
required: g.value
|
|
175
177
|
}, {
|
|
176
|
-
default:
|
|
177
|
-
|
|
178
|
-
modelValue:
|
|
179
|
-
"onUpdate:modelValue": f[0] || (f[0] = (
|
|
178
|
+
default: S(() => [
|
|
179
|
+
$(l(gt), {
|
|
180
|
+
modelValue: u.value,
|
|
181
|
+
"onUpdate:modelValue": f[0] || (f[0] = (R) => u.value = R),
|
|
180
182
|
options: a.value,
|
|
181
183
|
isView: e.isView,
|
|
182
184
|
width: "100%",
|
|
183
|
-
fieldNames: { label:
|
|
184
|
-
showFullPath:
|
|
185
|
-
placeholder:
|
|
185
|
+
fieldNames: { label: l(r), children: l(p) },
|
|
186
|
+
showFullPath: l(n),
|
|
187
|
+
placeholder: c.setting.options.placeholder,
|
|
186
188
|
clearable: ""
|
|
187
189
|
}, null, 8, ["modelValue", "options", "isView", "fieldNames", "showFullPath", "placeholder"])
|
|
188
190
|
]),
|
|
189
191
|
_: 1
|
|
190
192
|
}, 8, ["col", "marginRight", "prop", "modelValue", "label", "helpMessage", "required"]));
|
|
191
193
|
}
|
|
192
|
-
}),
|
|
194
|
+
}), Oe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
193
195
|
__proto__: null,
|
|
194
|
-
default:
|
|
195
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
196
|
+
default: At
|
|
197
|
+
}, Symbol.toStringTag, { value: "Module" })), Ct = {
|
|
196
198
|
name: "checkbox"
|
|
197
|
-
},
|
|
198
|
-
...
|
|
199
|
+
}, Qt = /* @__PURE__ */ D({
|
|
200
|
+
...Ct,
|
|
199
201
|
props: {
|
|
200
202
|
setting: { default: () => ({
|
|
201
203
|
icon: "",
|
|
@@ -210,327 +212,45 @@ const zt = kt.get("/getBindRelationByDefKey"), Qt = At.get("/getByAlias"), Jt =
|
|
|
210
212
|
store: {}
|
|
211
213
|
},
|
|
212
214
|
setup(s) {
|
|
213
|
-
const e = s, { setData: t, getData:
|
|
214
|
-
|
|
215
|
-
|
|
215
|
+
const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d(!1);
|
|
216
|
+
F(e.setting.options.validateList).then((u) => {
|
|
217
|
+
g.value = u;
|
|
216
218
|
});
|
|
217
|
-
const r = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key",
|
|
218
|
-
e.setting.options.customQuery.alias ?
|
|
219
|
-
|
|
220
|
-
}) :
|
|
221
|
-
const a =
|
|
222
|
-
e.setting.options.tip && (a.value =
|
|
223
|
-
const i =
|
|
219
|
+
const r = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", p = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", n = d([]);
|
|
220
|
+
e.setting.options.customQuery.alias ? X(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((u) => {
|
|
221
|
+
n.value = u;
|
|
222
|
+
}) : n.value = e.setting.options.options;
|
|
223
|
+
const a = d();
|
|
224
|
+
e.setting.options.tip && (a.value = j(e.setting.options.tip)());
|
|
225
|
+
const i = d([]);
|
|
224
226
|
return setTimeout(() => {
|
|
225
|
-
|
|
226
|
-
}, 50), e.setting.options.validateList.length &&
|
|
227
|
-
t(e.setting.name,
|
|
228
|
-
}), (
|
|
227
|
+
o(e.setting.name) && (i.value = o(e.setting.name).split(",")), e.setting.options.formulasDiyJs && (i.value = e.setting.options.formulasDiyJs.split(",")), i.value.length || i.value || t(e.setting.name, null);
|
|
228
|
+
}, 50), e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), O(i, (u) => {
|
|
229
|
+
t(e.setting.name, u.toString());
|
|
230
|
+
}), (u, c) => (h(), V(l(M), {
|
|
229
231
|
col: e.span,
|
|
230
|
-
marginRight:
|
|
232
|
+
marginRight: u.marginRight,
|
|
231
233
|
modelValue: i.value,
|
|
232
|
-
"onUpdate:modelValue":
|
|
233
|
-
layout:
|
|
234
|
-
label:
|
|
234
|
+
"onUpdate:modelValue": c[0] || (c[0] = (f) => i.value = f),
|
|
235
|
+
layout: u.setting.options.inline ? "vertical" : "default",
|
|
236
|
+
label: u.setting.desc,
|
|
235
237
|
prop: e.setting.name,
|
|
236
238
|
type: "checkbox",
|
|
237
|
-
options:
|
|
239
|
+
options: n.value,
|
|
238
240
|
isView: e.isView,
|
|
239
|
-
optionsValueKey:
|
|
240
|
-
optionsLabelKey: p
|
|
241
|
+
optionsValueKey: l(r),
|
|
242
|
+
optionsLabelKey: l(p),
|
|
241
243
|
helpMessage: a.value,
|
|
242
|
-
required:
|
|
244
|
+
required: g.value
|
|
243
245
|
}, null, 8, ["col", "marginRight", "modelValue", "layout", "label", "prop", "options", "isView", "optionsValueKey", "optionsLabelKey", "helpMessage", "required"]));
|
|
244
246
|
}
|
|
245
|
-
}),
|
|
247
|
+
}), Te = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
246
248
|
__proto__: null,
|
|
247
|
-
default:
|
|
248
|
-
}, Symbol.toStringTag, { value: "Module" }))
|
|
249
|
-
var cs = typeof globalThis < "u" ? globalThis : typeof window < "u" ? window : typeof global < "u" ? global : typeof self < "u" ? self : {};
|
|
250
|
-
function ds(s) {
|
|
251
|
-
return s && s.__esModule && Object.prototype.hasOwnProperty.call(s, "default") ? s.default : s;
|
|
252
|
-
}
|
|
253
|
-
var Ze = { exports: {} };
|
|
254
|
-
(function(s, e) {
|
|
255
|
-
(function(t, n) {
|
|
256
|
-
s.exports = n();
|
|
257
|
-
})(cs, function() {
|
|
258
|
-
var t = 1e3, n = 6e4, g = 36e5, c = "millisecond", r = "second", u = "minute", o = "hour", a = "day", i = "week", l = "month", d = "quarter", f = "year", O = "date", _ = "Invalid Date", L = /^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/, V = /\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g, R = { name: "en", weekdays: "Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"), months: "January_February_March_April_May_June_July_August_September_October_November_December".split("_"), ordinal: function(w) {
|
|
259
|
-
var y = ["th", "st", "nd", "rd"], v = w % 100;
|
|
260
|
-
return "[" + w + (y[(v - 20) % 10] || y[v] || y[0]) + "]";
|
|
261
|
-
} }, T = function(w, y, v) {
|
|
262
|
-
var b = String(w);
|
|
263
|
-
return !b || b.length >= y ? w : "" + Array(y + 1 - b.length).join(v) + w;
|
|
264
|
-
}, J = { s: T, z: function(w) {
|
|
265
|
-
var y = -w.utcOffset(), v = Math.abs(y), b = Math.floor(v / 60), h = v % 60;
|
|
266
|
-
return (y <= 0 ? "+" : "-") + T(b, 2, "0") + ":" + T(h, 2, "0");
|
|
267
|
-
}, m: function w(y, v) {
|
|
268
|
-
if (y.date() < v.date()) return -w(v, y);
|
|
269
|
-
var b = 12 * (v.year() - y.year()) + (v.month() - y.month()), h = y.clone().add(b, l), D = v - h < 0, M = y.clone().add(b + (D ? -1 : 1), l);
|
|
270
|
-
return +(-(b + (v - h) / (D ? h - M : M - h)) || 0);
|
|
271
|
-
}, a: function(w) {
|
|
272
|
-
return w < 0 ? Math.ceil(w) || 0 : Math.floor(w);
|
|
273
|
-
}, p: function(w) {
|
|
274
|
-
return { M: l, y: f, w: i, d: a, D: O, h: o, m: u, s: r, ms: c, Q: d }[w] || String(w || "").toLowerCase().replace(/s$/, "");
|
|
275
|
-
}, u: function(w) {
|
|
276
|
-
return w === void 0;
|
|
277
|
-
} }, Y = "en", Z = {};
|
|
278
|
-
Z[Y] = R;
|
|
279
|
-
var ee = "$isDayjsObject", le = function(w) {
|
|
280
|
-
return w instanceof C || !(!w || !w[ee]);
|
|
281
|
-
}, B = function w(y, v, b) {
|
|
282
|
-
var h;
|
|
283
|
-
if (!y) return Y;
|
|
284
|
-
if (typeof y == "string") {
|
|
285
|
-
var D = y.toLowerCase();
|
|
286
|
-
Z[D] && (h = D), v && (Z[D] = v, h = D);
|
|
287
|
-
var M = y.split("-");
|
|
288
|
-
if (!h && M.length > 1) return w(M[0]);
|
|
289
|
-
} else {
|
|
290
|
-
var j = y.name;
|
|
291
|
-
Z[j] = y, h = j;
|
|
292
|
-
}
|
|
293
|
-
return !b && h && (Y = h), h || !b && Y;
|
|
294
|
-
}, P = function(w, y) {
|
|
295
|
-
if (le(w)) return w.clone();
|
|
296
|
-
var v = typeof y == "object" ? y : {};
|
|
297
|
-
return v.date = w, v.args = arguments, new C(v);
|
|
298
|
-
}, $ = J;
|
|
299
|
-
$.l = B, $.i = le, $.w = function(w, y) {
|
|
300
|
-
return P(w, { locale: y.$L, utc: y.$u, x: y.$x, $offset: y.$offset });
|
|
301
|
-
};
|
|
302
|
-
var C = function() {
|
|
303
|
-
function w(v) {
|
|
304
|
-
this.$L = B(v.locale, null, !0), this.parse(v), this.$x = this.$x || v.x || {}, this[ee] = !0;
|
|
305
|
-
}
|
|
306
|
-
var y = w.prototype;
|
|
307
|
-
return y.parse = function(v) {
|
|
308
|
-
this.$d = function(b) {
|
|
309
|
-
var h = b.date, D = b.utc;
|
|
310
|
-
if (h === null) return /* @__PURE__ */ new Date(NaN);
|
|
311
|
-
if ($.u(h)) return /* @__PURE__ */ new Date();
|
|
312
|
-
if (h instanceof Date) return new Date(h);
|
|
313
|
-
if (typeof h == "string" && !/Z$/i.test(h)) {
|
|
314
|
-
var M = h.match(L);
|
|
315
|
-
if (M) {
|
|
316
|
-
var j = M[2] - 1 || 0, I = (M[7] || "0").substring(0, 3);
|
|
317
|
-
return D ? new Date(Date.UTC(M[1], j, M[3] || 1, M[4] || 0, M[5] || 0, M[6] || 0, I)) : new Date(M[1], j, M[3] || 1, M[4] || 0, M[5] || 0, M[6] || 0, I);
|
|
318
|
-
}
|
|
319
|
-
}
|
|
320
|
-
return new Date(h);
|
|
321
|
-
}(v), this.init();
|
|
322
|
-
}, y.init = function() {
|
|
323
|
-
var v = this.$d;
|
|
324
|
-
this.$y = v.getFullYear(), this.$M = v.getMonth(), this.$D = v.getDate(), this.$W = v.getDay(), this.$H = v.getHours(), this.$m = v.getMinutes(), this.$s = v.getSeconds(), this.$ms = v.getMilliseconds();
|
|
325
|
-
}, y.$utils = function() {
|
|
326
|
-
return $;
|
|
327
|
-
}, y.isValid = function() {
|
|
328
|
-
return this.$d.toString() !== _;
|
|
329
|
-
}, y.isSame = function(v, b) {
|
|
330
|
-
var h = P(v);
|
|
331
|
-
return this.startOf(b) <= h && h <= this.endOf(b);
|
|
332
|
-
}, y.isAfter = function(v, b) {
|
|
333
|
-
return P(v) < this.startOf(b);
|
|
334
|
-
}, y.isBefore = function(v, b) {
|
|
335
|
-
return this.endOf(b) < P(v);
|
|
336
|
-
}, y.$g = function(v, b, h) {
|
|
337
|
-
return $.u(v) ? this[b] : this.set(h, v);
|
|
338
|
-
}, y.unix = function() {
|
|
339
|
-
return Math.floor(this.valueOf() / 1e3);
|
|
340
|
-
}, y.valueOf = function() {
|
|
341
|
-
return this.$d.getTime();
|
|
342
|
-
}, y.startOf = function(v, b) {
|
|
343
|
-
var h = this, D = !!$.u(b) || b, M = $.p(v), j = function(ue, W) {
|
|
344
|
-
var oe = $.w(h.$u ? Date.UTC(h.$y, W, ue) : new Date(h.$y, W, ue), h);
|
|
345
|
-
return D ? oe : oe.endOf(a);
|
|
346
|
-
}, I = function(ue, W) {
|
|
347
|
-
return $.w(h.toDate()[ue].apply(h.toDate("s"), (D ? [0, 0, 0, 0] : [23, 59, 59, 999]).slice(W)), h);
|
|
348
|
-
}, k = this.$W, U = this.$M, G = this.$D, ge = "set" + (this.$u ? "UTC" : "");
|
|
349
|
-
switch (M) {
|
|
350
|
-
case f:
|
|
351
|
-
return D ? j(1, 0) : j(31, 11);
|
|
352
|
-
case l:
|
|
353
|
-
return D ? j(1, U) : j(0, U + 1);
|
|
354
|
-
case i:
|
|
355
|
-
var re = this.$locale().weekStart || 0, ve = (k < re ? k + 7 : k) - re;
|
|
356
|
-
return j(D ? G - ve : G + (6 - ve), U);
|
|
357
|
-
case a:
|
|
358
|
-
case O:
|
|
359
|
-
return I(ge + "Hours", 0);
|
|
360
|
-
case o:
|
|
361
|
-
return I(ge + "Minutes", 1);
|
|
362
|
-
case u:
|
|
363
|
-
return I(ge + "Seconds", 2);
|
|
364
|
-
case r:
|
|
365
|
-
return I(ge + "Milliseconds", 3);
|
|
366
|
-
default:
|
|
367
|
-
return this.clone();
|
|
368
|
-
}
|
|
369
|
-
}, y.endOf = function(v) {
|
|
370
|
-
return this.startOf(v, !1);
|
|
371
|
-
}, y.$set = function(v, b) {
|
|
372
|
-
var h, D = $.p(v), M = "set" + (this.$u ? "UTC" : ""), j = (h = {}, h[a] = M + "Date", h[O] = M + "Date", h[l] = M + "Month", h[f] = M + "FullYear", h[o] = M + "Hours", h[u] = M + "Minutes", h[r] = M + "Seconds", h[c] = M + "Milliseconds", h)[D], I = D === a ? this.$D + (b - this.$W) : b;
|
|
373
|
-
if (D === l || D === f) {
|
|
374
|
-
var k = this.clone().set(O, 1);
|
|
375
|
-
k.$d[j](I), k.init(), this.$d = k.set(O, Math.min(this.$D, k.daysInMonth())).$d;
|
|
376
|
-
} else j && this.$d[j](I);
|
|
377
|
-
return this.init(), this;
|
|
378
|
-
}, y.set = function(v, b) {
|
|
379
|
-
return this.clone().$set(v, b);
|
|
380
|
-
}, y.get = function(v) {
|
|
381
|
-
return this[$.p(v)]();
|
|
382
|
-
}, y.add = function(v, b) {
|
|
383
|
-
var h, D = this;
|
|
384
|
-
v = Number(v);
|
|
385
|
-
var M = $.p(b), j = function(U) {
|
|
386
|
-
var G = P(D);
|
|
387
|
-
return $.w(G.date(G.date() + Math.round(U * v)), D);
|
|
388
|
-
};
|
|
389
|
-
if (M === l) return this.set(l, this.$M + v);
|
|
390
|
-
if (M === f) return this.set(f, this.$y + v);
|
|
391
|
-
if (M === a) return j(1);
|
|
392
|
-
if (M === i) return j(7);
|
|
393
|
-
var I = (h = {}, h[u] = n, h[o] = g, h[r] = t, h)[M] || 1, k = this.$d.getTime() + v * I;
|
|
394
|
-
return $.w(k, this);
|
|
395
|
-
}, y.subtract = function(v, b) {
|
|
396
|
-
return this.add(-1 * v, b);
|
|
397
|
-
}, y.format = function(v) {
|
|
398
|
-
var b = this, h = this.$locale();
|
|
399
|
-
if (!this.isValid()) return h.invalidDate || _;
|
|
400
|
-
var D = v || "YYYY-MM-DDTHH:mm:ssZ", M = $.z(this), j = this.$H, I = this.$m, k = this.$M, U = h.weekdays, G = h.months, ge = h.meridiem, re = function(W, oe, he, we) {
|
|
401
|
-
return W && (W[oe] || W(b, D)) || he[oe].slice(0, we);
|
|
402
|
-
}, ve = function(W) {
|
|
403
|
-
return $.s(j % 12 || 12, W, "0");
|
|
404
|
-
}, ue = ge || function(W, oe, he) {
|
|
405
|
-
var we = W < 12 ? "AM" : "PM";
|
|
406
|
-
return he ? we.toLowerCase() : we;
|
|
407
|
-
};
|
|
408
|
-
return D.replace(V, function(W, oe) {
|
|
409
|
-
return oe || function(he) {
|
|
410
|
-
switch (he) {
|
|
411
|
-
case "YY":
|
|
412
|
-
return String(b.$y).slice(-2);
|
|
413
|
-
case "YYYY":
|
|
414
|
-
return $.s(b.$y, 4, "0");
|
|
415
|
-
case "M":
|
|
416
|
-
return k + 1;
|
|
417
|
-
case "MM":
|
|
418
|
-
return $.s(k + 1, 2, "0");
|
|
419
|
-
case "MMM":
|
|
420
|
-
return re(h.monthsShort, k, G, 3);
|
|
421
|
-
case "MMMM":
|
|
422
|
-
return re(G, k);
|
|
423
|
-
case "D":
|
|
424
|
-
return b.$D;
|
|
425
|
-
case "DD":
|
|
426
|
-
return $.s(b.$D, 2, "0");
|
|
427
|
-
case "d":
|
|
428
|
-
return String(b.$W);
|
|
429
|
-
case "dd":
|
|
430
|
-
return re(h.weekdaysMin, b.$W, U, 2);
|
|
431
|
-
case "ddd":
|
|
432
|
-
return re(h.weekdaysShort, b.$W, U, 3);
|
|
433
|
-
case "dddd":
|
|
434
|
-
return U[b.$W];
|
|
435
|
-
case "H":
|
|
436
|
-
return String(j);
|
|
437
|
-
case "HH":
|
|
438
|
-
return $.s(j, 2, "0");
|
|
439
|
-
case "h":
|
|
440
|
-
return ve(1);
|
|
441
|
-
case "hh":
|
|
442
|
-
return ve(2);
|
|
443
|
-
case "a":
|
|
444
|
-
return ue(j, I, !0);
|
|
445
|
-
case "A":
|
|
446
|
-
return ue(j, I, !1);
|
|
447
|
-
case "m":
|
|
448
|
-
return String(I);
|
|
449
|
-
case "mm":
|
|
450
|
-
return $.s(I, 2, "0");
|
|
451
|
-
case "s":
|
|
452
|
-
return String(b.$s);
|
|
453
|
-
case "ss":
|
|
454
|
-
return $.s(b.$s, 2, "0");
|
|
455
|
-
case "SSS":
|
|
456
|
-
return $.s(b.$ms, 3, "0");
|
|
457
|
-
case "Z":
|
|
458
|
-
return M;
|
|
459
|
-
}
|
|
460
|
-
return null;
|
|
461
|
-
}(W) || M.replace(":", "");
|
|
462
|
-
});
|
|
463
|
-
}, y.utcOffset = function() {
|
|
464
|
-
return 15 * -Math.round(this.$d.getTimezoneOffset() / 15);
|
|
465
|
-
}, y.diff = function(v, b, h) {
|
|
466
|
-
var D, M = this, j = $.p(b), I = P(v), k = (I.utcOffset() - this.utcOffset()) * n, U = this - I, G = function() {
|
|
467
|
-
return $.m(M, I);
|
|
468
|
-
};
|
|
469
|
-
switch (j) {
|
|
470
|
-
case f:
|
|
471
|
-
D = G() / 12;
|
|
472
|
-
break;
|
|
473
|
-
case l:
|
|
474
|
-
D = G();
|
|
475
|
-
break;
|
|
476
|
-
case d:
|
|
477
|
-
D = G() / 3;
|
|
478
|
-
break;
|
|
479
|
-
case i:
|
|
480
|
-
D = (U - k) / 6048e5;
|
|
481
|
-
break;
|
|
482
|
-
case a:
|
|
483
|
-
D = (U - k) / 864e5;
|
|
484
|
-
break;
|
|
485
|
-
case o:
|
|
486
|
-
D = U / g;
|
|
487
|
-
break;
|
|
488
|
-
case u:
|
|
489
|
-
D = U / n;
|
|
490
|
-
break;
|
|
491
|
-
case r:
|
|
492
|
-
D = U / t;
|
|
493
|
-
break;
|
|
494
|
-
default:
|
|
495
|
-
D = U;
|
|
496
|
-
}
|
|
497
|
-
return h ? D : $.a(D);
|
|
498
|
-
}, y.daysInMonth = function() {
|
|
499
|
-
return this.endOf(l).$D;
|
|
500
|
-
}, y.$locale = function() {
|
|
501
|
-
return Z[this.$L];
|
|
502
|
-
}, y.locale = function(v, b) {
|
|
503
|
-
if (!v) return this.$L;
|
|
504
|
-
var h = this.clone(), D = B(v, b, !0);
|
|
505
|
-
return D && (h.$L = D), h;
|
|
506
|
-
}, y.clone = function() {
|
|
507
|
-
return $.w(this.$d, this);
|
|
508
|
-
}, y.toDate = function() {
|
|
509
|
-
return new Date(this.valueOf());
|
|
510
|
-
}, y.toJSON = function() {
|
|
511
|
-
return this.isValid() ? this.toISOString() : null;
|
|
512
|
-
}, y.toISOString = function() {
|
|
513
|
-
return this.$d.toISOString();
|
|
514
|
-
}, y.toString = function() {
|
|
515
|
-
return this.$d.toUTCString();
|
|
516
|
-
}, w;
|
|
517
|
-
}(), K = C.prototype;
|
|
518
|
-
return P.prototype = K, [["$ms", c], ["$s", r], ["$m", u], ["$H", o], ["$W", a], ["$M", l], ["$y", f], ["$D", O]].forEach(function(w) {
|
|
519
|
-
K[w[1]] = function(y) {
|
|
520
|
-
return this.$g(y, w[0], w[1]);
|
|
521
|
-
};
|
|
522
|
-
}), P.extend = function(w, y) {
|
|
523
|
-
return w.$i || (w(y, C, P), w.$i = !0), P;
|
|
524
|
-
}, P.locale = B, P.isDayjs = le, P.unix = function(w) {
|
|
525
|
-
return P(1e3 * w);
|
|
526
|
-
}, P.en = Z[Y], P.Ls = Z, P.p = {}, P;
|
|
527
|
-
});
|
|
528
|
-
})(Ze);
|
|
529
|
-
var gs = Ze.exports;
|
|
530
|
-
const je = /* @__PURE__ */ ds(gs), ms = {
|
|
249
|
+
default: Qt
|
|
250
|
+
}, Symbol.toStringTag, { value: "Module" })), zt = {
|
|
531
251
|
name: "date"
|
|
532
|
-
},
|
|
533
|
-
...
|
|
252
|
+
}, Ut = /* @__PURE__ */ D({
|
|
253
|
+
...zt,
|
|
534
254
|
props: {
|
|
535
255
|
setting: { default: () => ({
|
|
536
256
|
icon: "",
|
|
@@ -545,44 +265,44 @@ const je = /* @__PURE__ */ ds(gs), ms = {
|
|
|
545
265
|
store: {}
|
|
546
266
|
},
|
|
547
267
|
setup(s) {
|
|
548
|
-
const e = s, { setData: t, getData:
|
|
549
|
-
|
|
550
|
-
|
|
268
|
+
const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d(!1);
|
|
269
|
+
F(e.setting.options.validateList).then((a) => {
|
|
270
|
+
g.value = a;
|
|
551
271
|
});
|
|
552
|
-
const r = e.setting.options.format === "yyyy-MM-dd" ? "YYYY/MM/DD" : "YYYY/MM/DD HH:mm:ss",
|
|
553
|
-
e.setting.options.tip && (
|
|
554
|
-
const
|
|
272
|
+
const r = e.setting.options.format === "yyyy-MM-dd" ? "YYYY/MM/DD" : "YYYY/MM/DD HH:mm:ss", p = d();
|
|
273
|
+
e.setting.options.tip && (p.value = j(e.setting.options.tip));
|
|
274
|
+
const n = d();
|
|
555
275
|
if (setTimeout(() => {
|
|
556
|
-
|
|
276
|
+
n.value = o(e.setting.name) || e.setting.options.formulasDiyJs || n.value, n.value || t(e.setting.name, null);
|
|
557
277
|
}, 50), e.setting.options.showCurrentDate) {
|
|
558
278
|
let a = /* @__PURE__ */ new Date();
|
|
559
|
-
a.setDate(a.getDate() + e.setting.options.day),
|
|
279
|
+
a.setDate(a.getDate() + e.setting.options.day), n.value = ge(a.getTime()).format(r), t(e.setting.name, n.value);
|
|
560
280
|
}
|
|
561
|
-
return e.setting.options.validateList.length &&
|
|
281
|
+
return e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), O(n, (a) => {
|
|
562
282
|
t(e.setting.name, a);
|
|
563
|
-
}), (a, i) => (
|
|
283
|
+
}), (a, i) => (h(), V(l(M), {
|
|
564
284
|
col: e.span,
|
|
565
285
|
marginRight: a.marginRight,
|
|
566
|
-
modelValue:
|
|
567
|
-
"onUpdate:modelValue": i[0] || (i[0] = (
|
|
286
|
+
modelValue: n.value,
|
|
287
|
+
"onUpdate:modelValue": i[0] || (i[0] = (u) => n.value = u),
|
|
568
288
|
label: a.setting.desc,
|
|
569
289
|
prop: e.setting.name,
|
|
570
290
|
type: e.setting.options.format === "yyyy/MM/dd" ? "date" : "dateTime",
|
|
571
|
-
format:
|
|
572
|
-
valueFormat:
|
|
291
|
+
format: l(r),
|
|
292
|
+
valueFormat: l(r),
|
|
573
293
|
isView: e.isView,
|
|
574
294
|
placeholder: a.setting.options.placeholder,
|
|
575
|
-
helpMessage:
|
|
576
|
-
required:
|
|
295
|
+
helpMessage: p.value,
|
|
296
|
+
required: g.value
|
|
577
297
|
}, null, 8, ["col", "marginRight", "modelValue", "label", "prop", "type", "format", "valueFormat", "isView", "placeholder", "helpMessage", "required"]));
|
|
578
298
|
}
|
|
579
|
-
}),
|
|
299
|
+
}), je = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
580
300
|
__proto__: null,
|
|
581
|
-
default:
|
|
582
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
301
|
+
default: Ut
|
|
302
|
+
}, Symbol.toStringTag, { value: "Module" })), xt = {
|
|
583
303
|
name: "dropdown"
|
|
584
|
-
},
|
|
585
|
-
...
|
|
304
|
+
}, Jt = /* @__PURE__ */ D({
|
|
305
|
+
...xt,
|
|
586
306
|
props: {
|
|
587
307
|
setting: { default: () => ({
|
|
588
308
|
icon: "",
|
|
@@ -597,26 +317,26 @@ const je = /* @__PURE__ */ ds(gs), ms = {
|
|
|
597
317
|
store: {}
|
|
598
318
|
},
|
|
599
319
|
setup(s) {
|
|
600
|
-
const e = s, { setData: t, getData:
|
|
601
|
-
|
|
602
|
-
|
|
320
|
+
const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d(!1);
|
|
321
|
+
F(e.setting.options.validateList).then((f) => {
|
|
322
|
+
g.value = f;
|
|
603
323
|
});
|
|
604
|
-
const r =
|
|
605
|
-
e.setting.options.customQuery.alias &&
|
|
324
|
+
const r = d(""), p = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", n = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", a = e.setting.options.customQuery.PId || "children", i = d([]);
|
|
325
|
+
e.setting.options.customQuery.alias && X(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((f) => {
|
|
606
326
|
i.value = f;
|
|
607
327
|
});
|
|
608
|
-
const
|
|
609
|
-
e.setting.options.tip && (
|
|
610
|
-
const
|
|
611
|
-
return
|
|
328
|
+
const u = d();
|
|
329
|
+
e.setting.options.tip && (u.value = j(e.setting.options.tip));
|
|
330
|
+
const c = d();
|
|
331
|
+
return c.value = e.setting.options.multiple ? [] : "", e.setting.options.multiple && o(e.setting.name) ? c.value = o(e.setting.name).split(",") : c.value = o(e.setting.name) || c.value, c.value || t(e.setting.name, null), e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), O(c, (f) => {
|
|
612
332
|
t(e.setting.name, f.toString());
|
|
613
|
-
}), (f,
|
|
333
|
+
}), (f, R) => (h(), V(l(M), {
|
|
614
334
|
col: e.span,
|
|
615
335
|
marginRight: f.marginRight,
|
|
616
|
-
modelValue:
|
|
617
|
-
"onUpdate:modelValue":
|
|
336
|
+
modelValue: c.value,
|
|
337
|
+
"onUpdate:modelValue": R[0] || (R[0] = (v) => c.value = v),
|
|
618
338
|
keyword: r.value,
|
|
619
|
-
"onUpdate:keyword":
|
|
339
|
+
"onUpdate:keyword": R[1] || (R[1] = (v) => r.value = v),
|
|
620
340
|
label: f.setting.desc,
|
|
621
341
|
type: "treeSelect",
|
|
622
342
|
"node-key": f.setting.options.customQuery.valueBind,
|
|
@@ -627,19 +347,19 @@ const je = /* @__PURE__ */ ds(gs), ms = {
|
|
|
627
347
|
selectAttrs: { allowClear: !0 },
|
|
628
348
|
options: i.value,
|
|
629
349
|
isView: e.isView,
|
|
630
|
-
helpMessage:
|
|
631
|
-
props: { label:
|
|
350
|
+
helpMessage: u.value,
|
|
351
|
+
props: { label: l(n), value: l(p), children: l(a) },
|
|
632
352
|
"check-strictly": !f.setting.options.cascade,
|
|
633
|
-
required:
|
|
353
|
+
required: g.value
|
|
634
354
|
}, null, 8, ["col", "marginRight", "modelValue", "keyword", "label", "node-key", "placeholder", "mode", "prop", "filter", "options", "isView", "helpMessage", "props", "check-strictly", "required"]));
|
|
635
355
|
}
|
|
636
|
-
}),
|
|
356
|
+
}), Ne = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
637
357
|
__proto__: null,
|
|
638
|
-
default:
|
|
639
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
358
|
+
default: Jt
|
|
359
|
+
}, Symbol.toStringTag, { value: "Module" })), Wt = { class: "form-image" }, Yt = {
|
|
640
360
|
name: "imageViewer"
|
|
641
|
-
},
|
|
642
|
-
...
|
|
361
|
+
}, Zt = /* @__PURE__ */ D({
|
|
362
|
+
...Yt,
|
|
643
363
|
props: {
|
|
644
364
|
setting: { default: () => ({
|
|
645
365
|
icon: "",
|
|
@@ -654,46 +374,46 @@ const je = /* @__PURE__ */ ds(gs), ms = {
|
|
|
654
374
|
store: {}
|
|
655
375
|
},
|
|
656
376
|
setup(s) {
|
|
657
|
-
const e = s, { setData: t, getData:
|
|
658
|
-
|
|
659
|
-
|
|
377
|
+
const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d(!1);
|
|
378
|
+
F(e.setting.options.validateList).then((i) => {
|
|
379
|
+
g.value = i;
|
|
660
380
|
});
|
|
661
|
-
const r =
|
|
381
|
+
const r = d("normal");
|
|
662
382
|
e.isView && (r.value = "info");
|
|
663
|
-
const
|
|
664
|
-
e.setting.options.tip && (
|
|
665
|
-
const
|
|
666
|
-
|
|
383
|
+
const p = d();
|
|
384
|
+
e.setting.options.tip && (p.value = j(e.setting.options.tip));
|
|
385
|
+
const n = d();
|
|
386
|
+
n.value = e.setting.options.file.limit > 1 ? [] : "", e.setting.options.file.limit > 1 && o(e.setting.name) ? n.value = o(e.setting.name).split(",") : n.value = o(e.setting.name) || n.value, n.value || t(e.setting.name, null);
|
|
667
387
|
const a = (i) => {
|
|
668
388
|
setTimeout(() => {
|
|
669
|
-
t(e.setting.name,
|
|
389
|
+
t(e.setting.name, n.value.toString());
|
|
670
390
|
}, 100);
|
|
671
391
|
};
|
|
672
|
-
return e.setting.options.validateList.length &&
|
|
673
|
-
const
|
|
392
|
+
return e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), O(n.value, (i) => {
|
|
393
|
+
const u = i.map((c) => {
|
|
674
394
|
let f = "";
|
|
675
|
-
return
|
|
395
|
+
return c.indexOf("/oss/") != -1 ? f = c : f = `/oss/${c}`, f;
|
|
676
396
|
});
|
|
677
397
|
setTimeout(() => {
|
|
678
|
-
t(e.setting.name,
|
|
398
|
+
t(e.setting.name, u.join(","));
|
|
679
399
|
}, 100);
|
|
680
|
-
}), (i,
|
|
681
|
-
modelValue:
|
|
682
|
-
"onUpdate:modelValue":
|
|
400
|
+
}), (i, u) => (h(), V(l(M), {
|
|
401
|
+
modelValue: n.value,
|
|
402
|
+
"onUpdate:modelValue": u[2] || (u[2] = (c) => n.value = c),
|
|
683
403
|
"margin-bottom": "0",
|
|
684
404
|
prop: e.setting.name,
|
|
685
405
|
label: i.setting.desc,
|
|
686
406
|
type: "custom",
|
|
687
|
-
helpMessage:
|
|
688
|
-
required:
|
|
407
|
+
helpMessage: p.value,
|
|
408
|
+
required: g.value
|
|
689
409
|
}, {
|
|
690
|
-
default:
|
|
691
|
-
|
|
692
|
-
|
|
693
|
-
modelValue:
|
|
694
|
-
"onUpdate:modelValue":
|
|
410
|
+
default: S(() => [
|
|
411
|
+
Xe("div", Wt, [
|
|
412
|
+
$(l($e), {
|
|
413
|
+
modelValue: n.value,
|
|
414
|
+
"onUpdate:modelValue": u[0] || (u[0] = (c) => n.value = c),
|
|
695
415
|
status: r.value,
|
|
696
|
-
"onUpdate:status":
|
|
416
|
+
"onUpdate:status": u[1] || (u[1] = (c) => r.value = c),
|
|
697
417
|
maxSize: "6",
|
|
698
418
|
"limit-num": i.setting.options.file.limit,
|
|
699
419
|
prop: e.setting.name,
|
|
@@ -706,25 +426,25 @@ const je = /* @__PURE__ */ ds(gs), ms = {
|
|
|
706
426
|
needDownloadBtn: i.setting.options.file.allowDownload == !0,
|
|
707
427
|
needPreview: i.setting.options.file.allowPreview == !0,
|
|
708
428
|
onImageUpload: a,
|
|
709
|
-
required:
|
|
429
|
+
required: g.value
|
|
710
430
|
}, null, 8, ["modelValue", "status", "limit-num", "prop", "needDownloadBtn", "needPreview", "required"])
|
|
711
431
|
])
|
|
712
432
|
]),
|
|
713
433
|
_: 1
|
|
714
434
|
}, 8, ["modelValue", "prop", "label", "helpMessage", "required"]));
|
|
715
435
|
}
|
|
716
|
-
}),
|
|
436
|
+
}), me = (s, e) => {
|
|
717
437
|
const t = s.__vccOpts || s;
|
|
718
|
-
for (const [
|
|
719
|
-
t[
|
|
438
|
+
for (const [o, m] of e)
|
|
439
|
+
t[o] = m;
|
|
720
440
|
return t;
|
|
721
|
-
},
|
|
441
|
+
}, Ht = /* @__PURE__ */ me(Zt, [["__scopeId", "data-v-e26b3898"]]), Fe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
722
442
|
__proto__: null,
|
|
723
|
-
default:
|
|
724
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
443
|
+
default: Ht
|
|
444
|
+
}, Symbol.toStringTag, { value: "Module" })), Gt = {
|
|
725
445
|
name: "input"
|
|
726
|
-
},
|
|
727
|
-
...
|
|
446
|
+
}, Xt = /* @__PURE__ */ D({
|
|
447
|
+
...Gt,
|
|
728
448
|
props: {
|
|
729
449
|
setting: { default: () => ({
|
|
730
450
|
icon: "",
|
|
@@ -739,42 +459,42 @@ const je = /* @__PURE__ */ ds(gs), ms = {
|
|
|
739
459
|
store: {}
|
|
740
460
|
},
|
|
741
461
|
setup(s) {
|
|
742
|
-
const e = s, { setData: t, getData:
|
|
743
|
-
|
|
744
|
-
|
|
462
|
+
const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d(!1);
|
|
463
|
+
F(e.setting.options.validateList).then((n) => {
|
|
464
|
+
g.value = n;
|
|
745
465
|
});
|
|
746
|
-
const r =
|
|
747
|
-
e.setting.options.tip && (r.value =
|
|
748
|
-
const
|
|
466
|
+
const r = d();
|
|
467
|
+
e.setting.options.tip && (r.value = j(e.setting.options.tip));
|
|
468
|
+
const p = d("");
|
|
749
469
|
return setTimeout(() => {
|
|
750
|
-
|
|
751
|
-
}, 50), e.setting.options.validateList.length &&
|
|
752
|
-
e.setting.options.dataType === "number" && !isNaN(
|
|
753
|
-
}), (
|
|
470
|
+
p.value = o(e.setting.name) || e.setting.options.formulasDiyJs || p.value, p.value || t(e.setting.name, null);
|
|
471
|
+
}, 50), e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), O(p, (n) => {
|
|
472
|
+
e.setting.options.dataType === "number" && !isNaN(n) ? t(e.setting.name, Number(n)) : t(e.setting.name, n);
|
|
473
|
+
}), (n, a) => (h(), V(l(M), {
|
|
754
474
|
col: e.span,
|
|
755
|
-
marginRight:
|
|
475
|
+
marginRight: n.marginRight,
|
|
756
476
|
prop: e.setting.name,
|
|
757
|
-
modelValue:
|
|
758
|
-
"onUpdate:modelValue": a[1] || (a[1] = (i) =>
|
|
759
|
-
label:
|
|
477
|
+
modelValue: p.value,
|
|
478
|
+
"onUpdate:modelValue": a[1] || (a[1] = (i) => p.value = i),
|
|
479
|
+
label: n.setting.desc,
|
|
760
480
|
type: "custom",
|
|
761
481
|
helpMessage: r.value,
|
|
762
|
-
required:
|
|
482
|
+
required: g.value
|
|
763
483
|
}, {
|
|
764
|
-
default:
|
|
765
|
-
|
|
766
|
-
modelValue:
|
|
767
|
-
"onUpdate:modelValue": a[0] || (a[0] = (i) =>
|
|
768
|
-
width:
|
|
769
|
-
disabled:
|
|
770
|
-
isView:
|
|
771
|
-
placeholder:
|
|
484
|
+
default: S(() => [
|
|
485
|
+
$(l(ct), {
|
|
486
|
+
modelValue: p.value,
|
|
487
|
+
"onUpdate:modelValue": a[0] || (a[0] = (i) => p.value = i),
|
|
488
|
+
width: n.setting.options.width,
|
|
489
|
+
disabled: n.setting.options.isInputEdit,
|
|
490
|
+
isView: n.setting.options.isReadonly || e.isView,
|
|
491
|
+
placeholder: n.setting.options.placeholder
|
|
772
492
|
}, {
|
|
773
|
-
prepend:
|
|
774
|
-
|
|
493
|
+
prepend: S(() => [
|
|
494
|
+
W(Y(n.setting.options.bindPreAndSufFixjson.preFix), 1)
|
|
775
495
|
]),
|
|
776
|
-
append:
|
|
777
|
-
|
|
496
|
+
append: S(() => [
|
|
497
|
+
W(Y(n.setting.options.bindPreAndSufFixjson.sufSix), 1)
|
|
778
498
|
]),
|
|
779
499
|
_: 1
|
|
780
500
|
}, 8, ["modelValue", "width", "disabled", "isView", "placeholder"])
|
|
@@ -782,13 +502,13 @@ const je = /* @__PURE__ */ ds(gs), ms = {
|
|
|
782
502
|
_: 1
|
|
783
503
|
}, 8, ["col", "marginRight", "prop", "modelValue", "label", "helpMessage", "required"]));
|
|
784
504
|
}
|
|
785
|
-
}),
|
|
505
|
+
}), qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
786
506
|
__proto__: null,
|
|
787
|
-
default:
|
|
788
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
507
|
+
default: Xt
|
|
508
|
+
}, Symbol.toStringTag, { value: "Module" })), es = {
|
|
789
509
|
name: "number"
|
|
790
|
-
},
|
|
791
|
-
...
|
|
510
|
+
}, ts = /* @__PURE__ */ D({
|
|
511
|
+
...es,
|
|
792
512
|
props: {
|
|
793
513
|
setting: { default: () => ({
|
|
794
514
|
icon: "",
|
|
@@ -803,42 +523,42 @@ const je = /* @__PURE__ */ ds(gs), ms = {
|
|
|
803
523
|
store: {}
|
|
804
524
|
},
|
|
805
525
|
setup(s) {
|
|
806
|
-
const e = s, { setData: t, getData:
|
|
807
|
-
|
|
808
|
-
|
|
526
|
+
const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d(!1);
|
|
527
|
+
F(e.setting.options.validateList).then((n) => {
|
|
528
|
+
g.value = n;
|
|
809
529
|
});
|
|
810
|
-
const r =
|
|
811
|
-
e.setting.options.tip && (r.value =
|
|
812
|
-
const
|
|
530
|
+
const r = d();
|
|
531
|
+
e.setting.options.tip && (r.value = j(e.setting.options.tip));
|
|
532
|
+
const p = d(0);
|
|
813
533
|
return setTimeout(() => {
|
|
814
|
-
|
|
815
|
-
}, 50), e.setting.options.validateList.length &&
|
|
816
|
-
t(e.setting.name,
|
|
817
|
-
}), (
|
|
534
|
+
p.value = o(e.setting.name) || e.setting.options.formulasDiyJs || p.value, p.value || t(e.setting.name, null);
|
|
535
|
+
}, 50), e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), O(p, (n) => {
|
|
536
|
+
t(e.setting.name, n);
|
|
537
|
+
}), (n, a) => (h(), V(l(M), {
|
|
818
538
|
col: e.span,
|
|
819
|
-
marginRight:
|
|
820
|
-
modelValue:
|
|
821
|
-
"onUpdate:modelValue": a[0] || (a[0] = (i) =>
|
|
539
|
+
marginRight: n.marginRight,
|
|
540
|
+
modelValue: p.value,
|
|
541
|
+
"onUpdate:modelValue": a[0] || (a[0] = (i) => p.value = i),
|
|
822
542
|
style: { width: "100%" },
|
|
823
|
-
label:
|
|
543
|
+
label: n.setting.desc,
|
|
824
544
|
type: "inputNumber",
|
|
825
545
|
prop: e.setting.name,
|
|
826
|
-
max:
|
|
827
|
-
min:
|
|
828
|
-
step:
|
|
546
|
+
max: n.setting.options.max,
|
|
547
|
+
min: n.setting.options.min,
|
|
548
|
+
step: n.setting.options.step,
|
|
829
549
|
isView: e.isView,
|
|
830
|
-
precision:
|
|
550
|
+
precision: n.setting.options.decimalDigits,
|
|
831
551
|
helpMessage: r.value,
|
|
832
|
-
required:
|
|
552
|
+
required: g.value
|
|
833
553
|
}, null, 8, ["col", "marginRight", "modelValue", "label", "prop", "max", "min", "step", "isView", "precision", "helpMessage", "required"]));
|
|
834
554
|
}
|
|
835
|
-
}),
|
|
555
|
+
}), Be = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
836
556
|
__proto__: null,
|
|
837
|
-
default:
|
|
838
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
557
|
+
default: ts
|
|
558
|
+
}, Symbol.toStringTag, { value: "Module" })), ss = {
|
|
839
559
|
name: "radio"
|
|
840
|
-
},
|
|
841
|
-
...
|
|
560
|
+
}, os = /* @__PURE__ */ D({
|
|
561
|
+
...ss,
|
|
842
562
|
props: {
|
|
843
563
|
setting: { default: () => ({
|
|
844
564
|
icon: "",
|
|
@@ -853,46 +573,46 @@ const je = /* @__PURE__ */ ds(gs), ms = {
|
|
|
853
573
|
store: {}
|
|
854
574
|
},
|
|
855
575
|
setup(s) {
|
|
856
|
-
const e = s, { setData: t, getData:
|
|
857
|
-
|
|
858
|
-
|
|
576
|
+
const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d(!1);
|
|
577
|
+
F(e.setting.options.validateList).then((u) => {
|
|
578
|
+
g.value = u;
|
|
859
579
|
});
|
|
860
|
-
const r = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key",
|
|
861
|
-
e.setting.options.customQuery.alias ?
|
|
862
|
-
|
|
863
|
-
}) :
|
|
864
|
-
const a =
|
|
865
|
-
e.setting.options.tip && (a.value =
|
|
866
|
-
const i =
|
|
580
|
+
const r = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", p = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", n = d([]);
|
|
581
|
+
e.setting.options.customQuery.alias ? X(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((u) => {
|
|
582
|
+
n.value = u;
|
|
583
|
+
}) : n.value = e.setting.options.options;
|
|
584
|
+
const a = d();
|
|
585
|
+
e.setting.options.tip && (a.value = j(e.setting.options.tip));
|
|
586
|
+
const i = d(null);
|
|
867
587
|
return setTimeout(() => {
|
|
868
|
-
i.value =
|
|
869
|
-
}, 50), e.setting.options.validateList.length &&
|
|
870
|
-
t(e.setting.name,
|
|
871
|
-
}), (
|
|
588
|
+
i.value = o(e.setting.name) || e.setting.options.formulasDiyJs || i.value, i.value || t(e.setting.name, null);
|
|
589
|
+
}, 50), e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), O(i, (u) => {
|
|
590
|
+
t(e.setting.name, u);
|
|
591
|
+
}), (u, c) => (h(), V(l(M), {
|
|
872
592
|
col: e.span,
|
|
873
|
-
marginRight:
|
|
593
|
+
marginRight: u.marginRight,
|
|
874
594
|
modelValue: i.value,
|
|
875
|
-
"onUpdate:modelValue":
|
|
876
|
-
layout:
|
|
877
|
-
label:
|
|
595
|
+
"onUpdate:modelValue": c[0] || (c[0] = (f) => i.value = f),
|
|
596
|
+
layout: u.setting.options.inline ? "vertical" : "default",
|
|
597
|
+
label: u.setting.desc,
|
|
878
598
|
type: "radio",
|
|
879
599
|
prop: e.setting.name,
|
|
880
|
-
options:
|
|
600
|
+
options: n.value,
|
|
881
601
|
isView: e.isView,
|
|
882
|
-
optionsValueKey:
|
|
883
|
-
optionsLabelKey: p
|
|
602
|
+
optionsValueKey: l(r),
|
|
603
|
+
optionsLabelKey: l(p),
|
|
884
604
|
helpMessage: a.value,
|
|
885
|
-
required:
|
|
605
|
+
required: g.value,
|
|
886
606
|
isSetTimeout: !0
|
|
887
607
|
}, null, 8, ["col", "marginRight", "modelValue", "layout", "label", "prop", "options", "isView", "optionsValueKey", "optionsLabelKey", "helpMessage", "required"]));
|
|
888
608
|
}
|
|
889
|
-
}),
|
|
609
|
+
}), Pe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
890
610
|
__proto__: null,
|
|
891
|
-
default:
|
|
892
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
611
|
+
default: os
|
|
612
|
+
}, Symbol.toStringTag, { value: "Module" })), ns = {
|
|
893
613
|
name: "select"
|
|
894
|
-
},
|
|
895
|
-
...
|
|
614
|
+
}, as = /* @__PURE__ */ D({
|
|
615
|
+
...ns,
|
|
896
616
|
props: {
|
|
897
617
|
setting: { default: () => ({
|
|
898
618
|
icon: "",
|
|
@@ -907,88 +627,88 @@ const je = /* @__PURE__ */ ds(gs), ms = {
|
|
|
907
627
|
store: {}
|
|
908
628
|
},
|
|
909
629
|
setup(s) {
|
|
910
|
-
const e = s, { setData: t, getData:
|
|
911
|
-
|
|
912
|
-
|
|
630
|
+
const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d(!1);
|
|
631
|
+
F(e.setting.options.validateList).then((u) => {
|
|
632
|
+
g.value = u;
|
|
913
633
|
});
|
|
914
|
-
const r = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key",
|
|
915
|
-
e.setting.options.customQuery.alias ?
|
|
916
|
-
|
|
917
|
-
}) :
|
|
918
|
-
const a =
|
|
919
|
-
e.setting.options.tip && (a.value =
|
|
920
|
-
const i =
|
|
634
|
+
const r = e.setting.options.customQuery.valueBind ? e.setting.options.customQuery.valueBind : "key", p = e.setting.options.customQuery.labelBind ? e.setting.options.customQuery.labelBind : "value", n = d([]);
|
|
635
|
+
e.setting.options.customQuery.alias ? X(e.setting.options.customQuery.alias, e.setting.options.customQuery.conditionfield).then((u) => {
|
|
636
|
+
n.value = u;
|
|
637
|
+
}) : n.value = e.setting.options.options;
|
|
638
|
+
const a = d();
|
|
639
|
+
e.setting.options.tip && (a.value = j(e.setting.options.tip));
|
|
640
|
+
const i = d();
|
|
921
641
|
return i.value = e.setting.options.multiple ? [] : "", setTimeout(() => {
|
|
922
|
-
e.setting.options.multiple && (
|
|
923
|
-
}, 50), e.setting.options.validateList.length &&
|
|
924
|
-
t(e.setting.name,
|
|
925
|
-
}), (
|
|
642
|
+
e.setting.options.multiple && (o(e.setting.name) || e.setting.options.formulasDiyJs) ? (o(e.setting.name) && (i.value = o(e.setting.name).split(",")), e.setting.options.formulasDiyJs && (i.value = e.setting.options.formulasDiyJs.split(","))) : i.value = o(e.setting.name) || e.setting.options.formulasDiyJs || i.value, i.value || t(e.setting.name, null);
|
|
643
|
+
}, 50), e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), O(i, (u) => {
|
|
644
|
+
t(e.setting.name, u.toString());
|
|
645
|
+
}), (u, c) => (h(), V(l(M), {
|
|
926
646
|
col: e.span,
|
|
927
|
-
marginRight:
|
|
647
|
+
marginRight: u.marginRight,
|
|
928
648
|
modelValue: i.value,
|
|
929
|
-
"onUpdate:modelValue":
|
|
930
|
-
label:
|
|
649
|
+
"onUpdate:modelValue": c[0] || (c[0] = (f) => i.value = f),
|
|
650
|
+
label: u.setting.desc,
|
|
931
651
|
type: "select",
|
|
932
652
|
prop: e.setting.name,
|
|
933
|
-
placeholder:
|
|
934
|
-
mode:
|
|
935
|
-
showSearch:
|
|
653
|
+
placeholder: u.setting.options.placeholder,
|
|
654
|
+
mode: u.setting.options.multiple ? "tags" : "combobox",
|
|
655
|
+
showSearch: u.setting.options.filterable,
|
|
936
656
|
allowClear: !0,
|
|
937
657
|
isView: e.isView,
|
|
938
|
-
options:
|
|
939
|
-
optionsValueKey:
|
|
940
|
-
optionsLabelKey: p
|
|
658
|
+
options: n.value,
|
|
659
|
+
optionsValueKey: l(r),
|
|
660
|
+
optionsLabelKey: l(p),
|
|
941
661
|
helpMessage: a.value,
|
|
942
|
-
required:
|
|
662
|
+
required: g.value
|
|
943
663
|
}, null, 8, ["col", "marginRight", "modelValue", "label", "prop", "placeholder", "mode", "showSearch", "isView", "options", "optionsValueKey", "optionsLabelKey", "helpMessage", "required"]));
|
|
944
664
|
}
|
|
945
|
-
}),
|
|
665
|
+
}), Ee = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
946
666
|
__proto__: null,
|
|
947
|
-
default:
|
|
948
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
949
|
-
const e =
|
|
950
|
-
user:
|
|
951
|
-
org:
|
|
952
|
-
role:
|
|
953
|
-
job:
|
|
954
|
-
post:
|
|
955
|
-
},
|
|
667
|
+
default: as
|
|
668
|
+
}, Symbol.toStringTag, { value: "Module" })), is = (s) => {
|
|
669
|
+
const e = Re().id, t = d(!1), o = s.options.selector.type.alias.replace("eip-", "").replace("-selector", ""), m = d([]), g = d(""), r = {
|
|
670
|
+
user: E("用户选择器").value,
|
|
671
|
+
org: E("组织选择器").value,
|
|
672
|
+
role: E("角色选择器").value,
|
|
673
|
+
job: E("职务选择器").value,
|
|
674
|
+
post: E("岗位选择器").value
|
|
675
|
+
}, p = {
|
|
956
676
|
user: "id",
|
|
957
677
|
org: "id",
|
|
958
678
|
role: "id",
|
|
959
679
|
job: "positionId",
|
|
960
680
|
post: "stationId"
|
|
961
|
-
},
|
|
962
|
-
1:
|
|
963
|
-
2:
|
|
964
|
-
3:
|
|
681
|
+
}, n = {
|
|
682
|
+
1: E("正常").value,
|
|
683
|
+
2: E("锁定").value,
|
|
684
|
+
3: E("禁用").value
|
|
965
685
|
}, a = {
|
|
966
|
-
0:
|
|
967
|
-
1:
|
|
686
|
+
0: E("普通").value,
|
|
687
|
+
1: E("管理员").value
|
|
968
688
|
}, i = {
|
|
969
|
-
0:
|
|
970
|
-
1:
|
|
971
|
-
},
|
|
972
|
-
user:
|
|
973
|
-
org:
|
|
974
|
-
role:
|
|
975
|
-
job:
|
|
976
|
-
post:
|
|
977
|
-
},
|
|
978
|
-
return
|
|
689
|
+
0: E("无效").value,
|
|
690
|
+
1: E("有效").value
|
|
691
|
+
}, u = {
|
|
692
|
+
user: Lt,
|
|
693
|
+
org: ne,
|
|
694
|
+
role: Tt,
|
|
695
|
+
job: ne,
|
|
696
|
+
post: ne
|
|
697
|
+
}, c = r[o], f = d({});
|
|
698
|
+
return o === "org" ? f.value = {
|
|
979
699
|
left: !1,
|
|
980
700
|
content: {}
|
|
981
701
|
} : f.value = {
|
|
982
702
|
left: {
|
|
983
|
-
api:
|
|
703
|
+
api: St,
|
|
984
704
|
params: {
|
|
985
705
|
projectId: e,
|
|
986
706
|
parentId: e
|
|
987
707
|
}
|
|
988
708
|
},
|
|
989
709
|
content: {}
|
|
990
|
-
},
|
|
991
|
-
api:
|
|
710
|
+
}, o === "user" && (f.value.content = {
|
|
711
|
+
api: Mt,
|
|
992
712
|
searchKey: "groupId",
|
|
993
713
|
params: {
|
|
994
714
|
status: 1
|
|
@@ -996,13 +716,13 @@ const je = /* @__PURE__ */ ds(gs), ms = {
|
|
|
996
716
|
selectListProps: {
|
|
997
717
|
data: []
|
|
998
718
|
}
|
|
999
|
-
}),
|
|
1000
|
-
api:
|
|
719
|
+
}), o === "org" && (f.value.content = {
|
|
720
|
+
api: jt,
|
|
1001
721
|
selectListProps: {
|
|
1002
722
|
data: []
|
|
1003
723
|
}
|
|
1004
|
-
}),
|
|
1005
|
-
api:
|
|
724
|
+
}), o === "role" && (f.value.content = {
|
|
725
|
+
api: Ot,
|
|
1006
726
|
searchKey: "orgId",
|
|
1007
727
|
params: {
|
|
1008
728
|
status: 1
|
|
@@ -1010,8 +730,8 @@ const je = /* @__PURE__ */ ds(gs), ms = {
|
|
|
1010
730
|
selectListProps: {
|
|
1011
731
|
data: []
|
|
1012
732
|
}
|
|
1013
|
-
}),
|
|
1014
|
-
api:
|
|
733
|
+
}), o === "job" && (f.value.content = {
|
|
734
|
+
api: Ft,
|
|
1015
735
|
searchKey: "groupId",
|
|
1016
736
|
props: {
|
|
1017
737
|
rowKey: "positionId"
|
|
@@ -1019,8 +739,8 @@ const je = /* @__PURE__ */ ds(gs), ms = {
|
|
|
1019
739
|
selectListProps: {
|
|
1020
740
|
data: []
|
|
1021
741
|
}
|
|
1022
|
-
}),
|
|
1023
|
-
api:
|
|
742
|
+
}), o === "post" && (f.value.content = {
|
|
743
|
+
api: Nt,
|
|
1024
744
|
searchKey: "groupId",
|
|
1025
745
|
props: {
|
|
1026
746
|
rowKey: "stationId"
|
|
@@ -1030,75 +750,75 @@ const je = /* @__PURE__ */ ds(gs), ms = {
|
|
|
1030
750
|
}
|
|
1031
751
|
}), f.value.content.multiple = !s.options.selector.isSingle, {
|
|
1032
752
|
dialogVisible: t,
|
|
1033
|
-
title:
|
|
1034
|
-
searchName:
|
|
1035
|
-
selectorType:
|
|
1036
|
-
selectOptions:
|
|
753
|
+
title: c,
|
|
754
|
+
searchName: g,
|
|
755
|
+
selectorType: o,
|
|
756
|
+
selectOptions: m,
|
|
1037
757
|
tableOptions: f,
|
|
1038
|
-
userStatusMap:
|
|
758
|
+
userStatusMap: n,
|
|
1039
759
|
roleTypeMap: a,
|
|
1040
760
|
roleStatusMap: i,
|
|
1041
761
|
openDialog: () => {
|
|
1042
|
-
|
|
1043
|
-
let
|
|
1044
|
-
f.value.content.selectListProps.data =
|
|
762
|
+
g.value = "", t.value = !0;
|
|
763
|
+
let y = p[o];
|
|
764
|
+
f.value.content.selectListProps.data = m.value.map((b) => ({ name: b.label, [y]: b.value }));
|
|
1045
765
|
},
|
|
1046
|
-
confirm: (
|
|
1047
|
-
let
|
|
1048
|
-
|
|
766
|
+
confirm: (y) => {
|
|
767
|
+
let b = p[o];
|
|
768
|
+
m.value = y.map((w) => ({ label: w.name, value: w[b] }));
|
|
1049
769
|
},
|
|
1050
|
-
getDetail: async (
|
|
1051
|
-
const
|
|
1052
|
-
let
|
|
1053
|
-
const
|
|
1054
|
-
|
|
1055
|
-
const [
|
|
1056
|
-
|
|
770
|
+
getDetail: async (y) => {
|
|
771
|
+
const b = u[o];
|
|
772
|
+
let w = {};
|
|
773
|
+
const q = y.split(",");
|
|
774
|
+
o === "user" && (w = { userIds: q }), o === "role" ? w = { ids: q } : w = q;
|
|
775
|
+
const [A, Z] = await b().run(w);
|
|
776
|
+
A || (m.value = Z.map((z) => ({ label: z.name, value: z.id })));
|
|
1057
777
|
}
|
|
1058
778
|
};
|
|
1059
|
-
},
|
|
1060
|
-
const s =
|
|
779
|
+
}, ls = () => {
|
|
780
|
+
const s = d(""), e = d(""), t = d([]), o = d("");
|
|
1061
781
|
return {
|
|
1062
782
|
spacePath: s,
|
|
1063
783
|
spaceName: e,
|
|
1064
784
|
spaceTreeData: t,
|
|
1065
|
-
searchSpace:
|
|
1066
|
-
changeSpace: (
|
|
785
|
+
searchSpace: o,
|
|
786
|
+
changeSpace: (n, a) => {
|
|
1067
787
|
s.value = a[0].path, e.value = a[0].pathName;
|
|
1068
788
|
},
|
|
1069
|
-
spaceLoad: async (
|
|
789
|
+
spaceLoad: async (n) => {
|
|
1070
790
|
let a = {
|
|
1071
791
|
pageSize: 1e4,
|
|
1072
792
|
pageIndex: 1,
|
|
1073
|
-
projectId:
|
|
793
|
+
projectId: Re().id,
|
|
1074
794
|
//项目id
|
|
1075
795
|
spaceId: ""
|
|
1076
796
|
// orgId:getProjectInfo().id
|
|
1077
797
|
};
|
|
1078
|
-
a.spaceId =
|
|
1079
|
-
let i =
|
|
1080
|
-
const [
|
|
1081
|
-
return
|
|
798
|
+
a.spaceId = n != null && n.id ? n.id : "";
|
|
799
|
+
let i = qt;
|
|
800
|
+
const [u, c] = await i(a).run();
|
|
801
|
+
return u ? {} : c;
|
|
1082
802
|
},
|
|
1083
|
-
filterSpaceTree: async (
|
|
1084
|
-
if (!
|
|
1085
|
-
let a =
|
|
803
|
+
filterSpaceTree: async (n) => {
|
|
804
|
+
if (!n) return [];
|
|
805
|
+
let a = Bt;
|
|
1086
806
|
const i = {
|
|
1087
|
-
name:
|
|
1088
|
-
}, [
|
|
1089
|
-
return
|
|
807
|
+
name: n
|
|
808
|
+
}, [u, c] = await a(i).run();
|
|
809
|
+
return u ? {} : (c.forEach((f) => {
|
|
1090
810
|
f.path.startsWith("/0") && (f.path = f.path.slice(2) + `/${f.id}`), f._name = f.nodeName ? f.nodeName : f.name;
|
|
1091
|
-
}),
|
|
811
|
+
}), c);
|
|
1092
812
|
},
|
|
1093
|
-
getSpaceDetail: async (
|
|
1094
|
-
const [a, i] = await
|
|
813
|
+
getSpaceDetail: async (n) => {
|
|
814
|
+
const [a, i] = await Pt().run({ spaceId: n });
|
|
1095
815
|
a || (s.value = i.path);
|
|
1096
816
|
}
|
|
1097
817
|
};
|
|
1098
|
-
},
|
|
818
|
+
}, rs = {
|
|
1099
819
|
name: "selector"
|
|
1100
|
-
},
|
|
1101
|
-
...
|
|
820
|
+
}, us = /* @__PURE__ */ D({
|
|
821
|
+
...rs,
|
|
1102
822
|
props: {
|
|
1103
823
|
setting: { default: () => ({
|
|
1104
824
|
icon: "",
|
|
@@ -1113,148 +833,148 @@ const je = /* @__PURE__ */ ds(gs), ms = {
|
|
|
1113
833
|
store: {}
|
|
1114
834
|
},
|
|
1115
835
|
setup(s) {
|
|
1116
|
-
const e = s, { setData: t, getData:
|
|
1117
|
-
dialogVisible:
|
|
836
|
+
const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, {
|
|
837
|
+
dialogVisible: g,
|
|
1118
838
|
title: r,
|
|
1119
|
-
searchName:
|
|
1120
|
-
tableOptions:
|
|
839
|
+
searchName: p,
|
|
840
|
+
tableOptions: n,
|
|
1121
841
|
selectorType: a,
|
|
1122
842
|
selectOptions: i,
|
|
1123
|
-
userStatusMap:
|
|
1124
|
-
roleTypeMap:
|
|
843
|
+
userStatusMap: u,
|
|
844
|
+
roleTypeMap: c,
|
|
1125
845
|
roleStatusMap: f,
|
|
1126
|
-
openDialog:
|
|
1127
|
-
confirm:
|
|
1128
|
-
getDetail:
|
|
1129
|
-
} =
|
|
1130
|
-
|
|
1131
|
-
|
|
846
|
+
openDialog: R,
|
|
847
|
+
confirm: v,
|
|
848
|
+
getDetail: _
|
|
849
|
+
} = is(e.setting), { spacePath: y, spaceName: b, searchSpace: w, changeSpace: q, spaceLoad: A, filterSpaceTree: Z, getSpaceDetail: z } = ls(), te = d(!1);
|
|
850
|
+
F(e.setting.options.validateList).then((B) => {
|
|
851
|
+
te.value = B;
|
|
1132
852
|
});
|
|
1133
|
-
const
|
|
1134
|
-
return e.setting.options.tip && (
|
|
1135
|
-
|
|
1136
|
-
})) : (
|
|
1137
|
-
t(e.setting.name,
|
|
1138
|
-
}),
|
|
1139
|
-
t(e.setting.options.selector.type.positionName,
|
|
1140
|
-
})), (
|
|
1141
|
-
|
|
853
|
+
const L = d(""), se = d();
|
|
854
|
+
return e.setting.options.tip && (se.value = j(e.setting.options.tip)), e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), a !== "position" ? (L.value = o(e.setting.name) ? o(e.setting.name) : L.value, L.value && _(L.value), L.value.length || t(e.setting.name, null), O(i, (B) => {
|
|
855
|
+
L.value = B.map((P) => P.value).toString(), t(e.setting.name, L.value);
|
|
856
|
+
})) : (L.value = o(e.setting.name) ? o(e.setting.name) : L.value, L.value && z(L.value), L.value || t(e.setting.name, null), O(L, (B) => {
|
|
857
|
+
t(e.setting.name, B);
|
|
858
|
+
}), O(b, (B) => {
|
|
859
|
+
t(e.setting.options.selector.type.positionName, B);
|
|
860
|
+
})), (B, P) => (h(), I(ee, null, [
|
|
861
|
+
l(a) != "position" ? (h(), V(l(M), {
|
|
1142
862
|
key: 0,
|
|
1143
863
|
col: e.span,
|
|
1144
|
-
marginRight:
|
|
1145
|
-
modelValue:
|
|
1146
|
-
"onUpdate:modelValue":
|
|
864
|
+
marginRight: B.marginRight,
|
|
865
|
+
modelValue: L.value,
|
|
866
|
+
"onUpdate:modelValue": P[1] || (P[1] = (N) => L.value = N),
|
|
1147
867
|
prop: e.setting.name,
|
|
1148
|
-
label:
|
|
868
|
+
label: B.setting.desc,
|
|
1149
869
|
type: "inputDialogSelect",
|
|
1150
|
-
options:
|
|
1151
|
-
helpMessage:
|
|
870
|
+
options: l(i),
|
|
871
|
+
helpMessage: se.value,
|
|
1152
872
|
isView: e.isView,
|
|
1153
|
-
required:
|
|
1154
|
-
onOpenDialog:
|
|
873
|
+
required: te.value,
|
|
874
|
+
onOpenDialog: l(R)
|
|
1155
875
|
}, {
|
|
1156
|
-
default:
|
|
1157
|
-
|
|
1158
|
-
modelValue:
|
|
1159
|
-
"onUpdate:modelValue":
|
|
1160
|
-
options:
|
|
1161
|
-
onConfirm:
|
|
1162
|
-
title:
|
|
1163
|
-
},
|
|
1164
|
-
|
|
876
|
+
default: S(() => [
|
|
877
|
+
$(l(dt), {
|
|
878
|
+
modelValue: l(g),
|
|
879
|
+
"onUpdate:modelValue": P[0] || (P[0] = (N) => oe(g) ? g.value = N : null),
|
|
880
|
+
options: l(n),
|
|
881
|
+
onConfirm: l(v),
|
|
882
|
+
title: l(r)
|
|
883
|
+
}, et({ _: 2 }, [
|
|
884
|
+
l(a) === "user" ? {
|
|
1165
885
|
name: "table-column",
|
|
1166
|
-
fn:
|
|
1167
|
-
|
|
886
|
+
fn: S(() => [
|
|
887
|
+
$(l(T), {
|
|
1168
888
|
label: "姓名",
|
|
1169
889
|
prop: "name"
|
|
1170
890
|
}),
|
|
1171
|
-
|
|
891
|
+
$(l(T), {
|
|
1172
892
|
label: "账号",
|
|
1173
893
|
prop: "userName"
|
|
1174
894
|
}),
|
|
1175
|
-
|
|
895
|
+
$(l(T), {
|
|
1176
896
|
label: "手机号",
|
|
1177
897
|
prop: "sensitivePhone"
|
|
1178
898
|
}),
|
|
1179
|
-
|
|
1180
|
-
default:
|
|
1181
|
-
|
|
899
|
+
$(l(T), { label: "状态" }, {
|
|
900
|
+
default: S(({ row: N }) => [
|
|
901
|
+
W(Y(l(u)[N.status]), 1)
|
|
1182
902
|
]),
|
|
1183
903
|
_: 1
|
|
1184
904
|
})
|
|
1185
905
|
]),
|
|
1186
906
|
key: "0"
|
|
1187
907
|
} : void 0,
|
|
1188
|
-
|
|
908
|
+
l(a) === "org" ? {
|
|
1189
909
|
name: "table-column",
|
|
1190
|
-
fn:
|
|
1191
|
-
|
|
910
|
+
fn: S(() => [
|
|
911
|
+
$(l(T), {
|
|
1192
912
|
label: "组织名称",
|
|
1193
913
|
prop: "name"
|
|
1194
914
|
}),
|
|
1195
|
-
|
|
915
|
+
$(l(T), {
|
|
1196
916
|
label: "组织编码",
|
|
1197
917
|
prop: "code"
|
|
1198
918
|
}),
|
|
1199
|
-
|
|
919
|
+
$(l(T), {
|
|
1200
920
|
label: "组织类型",
|
|
1201
921
|
prop: "typeName"
|
|
1202
922
|
})
|
|
1203
923
|
]),
|
|
1204
924
|
key: "1"
|
|
1205
925
|
} : void 0,
|
|
1206
|
-
|
|
926
|
+
l(a) === "role" ? {
|
|
1207
927
|
name: "table-column",
|
|
1208
|
-
fn:
|
|
1209
|
-
|
|
928
|
+
fn: S(() => [
|
|
929
|
+
$(l(T), {
|
|
1210
930
|
label: "角色名称",
|
|
1211
931
|
prop: "name"
|
|
1212
932
|
}),
|
|
1213
|
-
|
|
1214
|
-
default:
|
|
1215
|
-
|
|
933
|
+
$(l(T), { label: "角色类型" }, {
|
|
934
|
+
default: S(({ row: N }) => [
|
|
935
|
+
W(Y(l(c)[N.type]), 1)
|
|
1216
936
|
]),
|
|
1217
937
|
_: 1
|
|
1218
938
|
}),
|
|
1219
|
-
|
|
1220
|
-
default:
|
|
1221
|
-
|
|
939
|
+
$(l(T), { label: "角色状态" }, {
|
|
940
|
+
default: S(({ row: N }) => [
|
|
941
|
+
W(Y(l(f)[N.status]), 1)
|
|
1222
942
|
]),
|
|
1223
943
|
_: 1
|
|
1224
944
|
})
|
|
1225
945
|
]),
|
|
1226
946
|
key: "2"
|
|
1227
947
|
} : void 0,
|
|
1228
|
-
|
|
948
|
+
l(a) === "job" ? {
|
|
1229
949
|
name: "table-column",
|
|
1230
|
-
fn:
|
|
1231
|
-
|
|
950
|
+
fn: S(() => [
|
|
951
|
+
$(l(T), {
|
|
1232
952
|
label: "职务名称",
|
|
1233
953
|
prop: "name"
|
|
1234
954
|
}),
|
|
1235
|
-
|
|
955
|
+
$(l(T), {
|
|
1236
956
|
label: "职务编码",
|
|
1237
957
|
prop: "code"
|
|
1238
958
|
}),
|
|
1239
|
-
|
|
959
|
+
$(l(T), {
|
|
1240
960
|
label: "所属组织路径",
|
|
1241
961
|
prop: "groupName"
|
|
1242
962
|
})
|
|
1243
963
|
]),
|
|
1244
964
|
key: "3"
|
|
1245
965
|
} : void 0,
|
|
1246
|
-
|
|
966
|
+
l(a) === "post" ? {
|
|
1247
967
|
name: "table-column",
|
|
1248
|
-
fn:
|
|
1249
|
-
|
|
968
|
+
fn: S(() => [
|
|
969
|
+
$(l(T), {
|
|
1250
970
|
label: "岗位名称",
|
|
1251
971
|
prop: "name"
|
|
1252
972
|
}),
|
|
1253
|
-
|
|
973
|
+
$(l(T), {
|
|
1254
974
|
label: "岗位编码",
|
|
1255
975
|
prop: "code"
|
|
1256
976
|
}),
|
|
1257
|
-
|
|
977
|
+
$(l(T), {
|
|
1258
978
|
label: "所属组织路径",
|
|
1259
979
|
prop: "groupName"
|
|
1260
980
|
})
|
|
@@ -1264,48 +984,48 @@ const je = /* @__PURE__ */ ds(gs), ms = {
|
|
|
1264
984
|
]), 1032, ["modelValue", "options", "onConfirm", "title"])
|
|
1265
985
|
]),
|
|
1266
986
|
_: 1
|
|
1267
|
-
}, 8, ["col", "marginRight", "modelValue", "prop", "label", "options", "helpMessage", "isView", "required", "onOpenDialog"])) :
|
|
1268
|
-
|
|
987
|
+
}, 8, ["col", "marginRight", "modelValue", "prop", "label", "options", "helpMessage", "isView", "required", "onOpenDialog"])) : J("", !0),
|
|
988
|
+
l(a) == "position" ? (h(), V(l(M), {
|
|
1269
989
|
key: 1,
|
|
1270
990
|
col: e.span,
|
|
1271
|
-
marginRight:
|
|
1272
|
-
label:
|
|
991
|
+
marginRight: B.marginRight,
|
|
992
|
+
label: B.setting.desc,
|
|
1273
993
|
prop: e.setting.name,
|
|
1274
994
|
type: "treeSelect",
|
|
1275
995
|
"node-key": "id",
|
|
1276
996
|
showFullPath: !0,
|
|
1277
|
-
helpMessage:
|
|
1278
|
-
required:
|
|
1279
|
-
modelValue:
|
|
1280
|
-
"onUpdate:modelValue":
|
|
1281
|
-
keyword:
|
|
1282
|
-
"onUpdate:keyword":
|
|
1283
|
-
path:
|
|
1284
|
-
"onUpdate:path":
|
|
997
|
+
helpMessage: se.value,
|
|
998
|
+
required: te.value,
|
|
999
|
+
modelValue: L.value,
|
|
1000
|
+
"onUpdate:modelValue": P[2] || (P[2] = (N) => L.value = N),
|
|
1001
|
+
keyword: l(w),
|
|
1002
|
+
"onUpdate:keyword": P[3] || (P[3] = (N) => oe(w) ? w.value = N : null),
|
|
1003
|
+
path: l(y),
|
|
1004
|
+
"onUpdate:path": P[4] || (P[4] = (N) => oe(y) ? y.value = N : null),
|
|
1285
1005
|
isView: e.isView,
|
|
1286
|
-
load:
|
|
1287
|
-
search:
|
|
1006
|
+
load: l(A),
|
|
1007
|
+
search: l(Z),
|
|
1288
1008
|
props: {
|
|
1289
1009
|
isLeaf: "leaf",
|
|
1290
1010
|
label: "name"
|
|
1291
1011
|
},
|
|
1292
|
-
onChange:
|
|
1293
|
-
}, null, 8, ["col", "marginRight", "label", "prop", "helpMessage", "required", "modelValue", "keyword", "path", "isView", "load", "search", "onChange"])) :
|
|
1012
|
+
onChange: l(q)
|
|
1013
|
+
}, null, 8, ["col", "marginRight", "label", "prop", "helpMessage", "required", "modelValue", "keyword", "path", "isView", "load", "search", "onChange"])) : J("", !0)
|
|
1294
1014
|
], 64));
|
|
1295
1015
|
}
|
|
1296
|
-
}),
|
|
1016
|
+
}), Ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1297
1017
|
__proto__: null,
|
|
1298
|
-
default:
|
|
1299
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1018
|
+
default: us
|
|
1019
|
+
}, Symbol.toStringTag, { value: "Module" })), ps = {
|
|
1300
1020
|
key: 0,
|
|
1301
1021
|
class: "form-image"
|
|
1302
|
-
},
|
|
1022
|
+
}, gs = {
|
|
1303
1023
|
key: 1,
|
|
1304
1024
|
style: { "margin-bottom": "10px" }
|
|
1305
|
-
},
|
|
1025
|
+
}, cs = {
|
|
1306
1026
|
name: "soundRecording"
|
|
1307
|
-
},
|
|
1308
|
-
...
|
|
1027
|
+
}, ds = /* @__PURE__ */ D({
|
|
1028
|
+
...cs,
|
|
1309
1029
|
props: {
|
|
1310
1030
|
setting: { default: () => ({
|
|
1311
1031
|
icon: "",
|
|
@@ -1320,49 +1040,49 @@ const je = /* @__PURE__ */ ds(gs), ms = {
|
|
|
1320
1040
|
store: {}
|
|
1321
1041
|
},
|
|
1322
1042
|
setup(s) {
|
|
1323
|
-
const e = s, { setData: t, getData:
|
|
1324
|
-
|
|
1043
|
+
const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, { baseURL: g } = mt(), r = d(!1);
|
|
1044
|
+
F(e.setting.options.validateList).then((i) => {
|
|
1325
1045
|
r.value = i;
|
|
1326
1046
|
});
|
|
1327
|
-
const
|
|
1328
|
-
e.setting.options.tip && (
|
|
1329
|
-
const a =
|
|
1330
|
-
if (
|
|
1331
|
-
const i = JSON.parse(
|
|
1332
|
-
a.value =
|
|
1047
|
+
const p = d("info"), n = d();
|
|
1048
|
+
e.setting.options.tip && (n.value = j(e.setting.options.tip));
|
|
1049
|
+
const a = d();
|
|
1050
|
+
if (o(e.setting.name)) {
|
|
1051
|
+
const i = JSON.parse(o(e.setting.name));
|
|
1052
|
+
a.value = g + i[0].url;
|
|
1333
1053
|
}
|
|
1334
|
-
return e.setting.options.validateList.length &&
|
|
1054
|
+
return e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), (i, u) => e.isView ? (h(), V(l(M), {
|
|
1335
1055
|
key: 0,
|
|
1336
1056
|
modelValue: a.value,
|
|
1337
|
-
"onUpdate:modelValue":
|
|
1057
|
+
"onUpdate:modelValue": u[2] || (u[2] = (c) => a.value = c),
|
|
1338
1058
|
"margin-bottom": "0",
|
|
1339
1059
|
prop: e.setting.name,
|
|
1340
1060
|
label: i.setting.desc,
|
|
1341
1061
|
type: "custom",
|
|
1342
|
-
helpMessage:
|
|
1062
|
+
helpMessage: n.value,
|
|
1343
1063
|
required: r.value
|
|
1344
1064
|
}, {
|
|
1345
|
-
default:
|
|
1346
|
-
a.value ? (
|
|
1347
|
-
|
|
1065
|
+
default: S(() => [
|
|
1066
|
+
a.value ? (h(), I("div", ps, [
|
|
1067
|
+
$(l($e), {
|
|
1348
1068
|
modelValue: a.value,
|
|
1349
|
-
"onUpdate:modelValue":
|
|
1350
|
-
status:
|
|
1351
|
-
"onUpdate:status":
|
|
1069
|
+
"onUpdate:modelValue": u[0] || (u[0] = (c) => a.value = c),
|
|
1070
|
+
status: p.value,
|
|
1071
|
+
"onUpdate:status": u[1] || (u[1] = (c) => p.value = c),
|
|
1352
1072
|
required: r.value
|
|
1353
1073
|
}, null, 8, ["modelValue", "status", "required"])
|
|
1354
|
-
])) : (
|
|
1074
|
+
])) : (h(), I("div", gs, "-"))
|
|
1355
1075
|
]),
|
|
1356
1076
|
_: 1
|
|
1357
|
-
}, 8, ["modelValue", "prop", "label", "helpMessage", "required"])) :
|
|
1077
|
+
}, 8, ["modelValue", "prop", "label", "helpMessage", "required"])) : J("", !0);
|
|
1358
1078
|
}
|
|
1359
|
-
}),
|
|
1079
|
+
}), ms = /* @__PURE__ */ me(ds, [["__scopeId", "data-v-044dd90f"]]), Ie = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1360
1080
|
__proto__: null,
|
|
1361
|
-
default:
|
|
1362
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1081
|
+
default: ms
|
|
1082
|
+
}, Symbol.toStringTag, { value: "Module" })), fs = {
|
|
1363
1083
|
name: "switch"
|
|
1364
|
-
},
|
|
1365
|
-
...
|
|
1084
|
+
}, vs = /* @__PURE__ */ D({
|
|
1085
|
+
...fs,
|
|
1366
1086
|
props: {
|
|
1367
1087
|
setting: { default: () => ({
|
|
1368
1088
|
icon: "",
|
|
@@ -1377,41 +1097,41 @@ const je = /* @__PURE__ */ ds(gs), ms = {
|
|
|
1377
1097
|
store: {}
|
|
1378
1098
|
},
|
|
1379
1099
|
setup(s) {
|
|
1380
|
-
const e = s, { setData: t, getData:
|
|
1381
|
-
|
|
1382
|
-
|
|
1100
|
+
const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d(!1);
|
|
1101
|
+
F(e.setting.options.validateList).then((n) => {
|
|
1102
|
+
g.value = n;
|
|
1383
1103
|
});
|
|
1384
|
-
const r =
|
|
1385
|
-
e.setting.options.tip && (r.value =
|
|
1386
|
-
const
|
|
1104
|
+
const r = d();
|
|
1105
|
+
e.setting.options.tip && (r.value = j(e.setting.options.tip));
|
|
1106
|
+
const p = d();
|
|
1387
1107
|
return setTimeout(() => {
|
|
1388
|
-
|
|
1389
|
-
}, 50), e.setting.options.validateList.length &&
|
|
1390
|
-
t(e.setting.name,
|
|
1391
|
-
}), (
|
|
1108
|
+
p.value = o(e.setting.name) || e.setting.options.formulasDiyJs || p.value, p.value || t(e.setting.name, null);
|
|
1109
|
+
}, 50), e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), O(p, (n) => {
|
|
1110
|
+
t(e.setting.name, n);
|
|
1111
|
+
}), (n, a) => (h(), V(l(M), {
|
|
1392
1112
|
col: e.span,
|
|
1393
|
-
marginRight:
|
|
1394
|
-
modelValue:
|
|
1395
|
-
"onUpdate:modelValue": a[0] || (a[0] = (i) =>
|
|
1396
|
-
label:
|
|
1113
|
+
marginRight: n.marginRight,
|
|
1114
|
+
modelValue: p.value,
|
|
1115
|
+
"onUpdate:modelValue": a[0] || (a[0] = (i) => p.value = i),
|
|
1116
|
+
label: n.setting.desc,
|
|
1397
1117
|
type: "switch",
|
|
1398
1118
|
prop: e.setting.name,
|
|
1399
|
-
activeValue:
|
|
1400
|
-
inactiveValue:
|
|
1401
|
-
activeText:
|
|
1402
|
-
inactiveText:
|
|
1119
|
+
activeValue: n.setting.options.activeValue,
|
|
1120
|
+
inactiveValue: n.setting.options.inactiveValue,
|
|
1121
|
+
activeText: n.setting.options.activeText,
|
|
1122
|
+
inactiveText: n.setting.options.inactiveText,
|
|
1403
1123
|
helpMessage: r.value,
|
|
1404
|
-
required:
|
|
1124
|
+
required: g.value,
|
|
1405
1125
|
isView: e.isView
|
|
1406
1126
|
}, null, 8, ["col", "marginRight", "modelValue", "label", "prop", "activeValue", "inactiveValue", "activeText", "inactiveText", "helpMessage", "required", "isView"]));
|
|
1407
1127
|
}
|
|
1408
|
-
}),
|
|
1128
|
+
}), ke = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1409
1129
|
__proto__: null,
|
|
1410
|
-
default:
|
|
1411
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1130
|
+
default: vs
|
|
1131
|
+
}, Symbol.toStringTag, { value: "Module" })), ys = {
|
|
1412
1132
|
name: "text"
|
|
1413
|
-
},
|
|
1414
|
-
...
|
|
1133
|
+
}, hs = /* @__PURE__ */ D({
|
|
1134
|
+
...ys,
|
|
1415
1135
|
props: {
|
|
1416
1136
|
setting: { default: () => ({
|
|
1417
1137
|
icon: "",
|
|
@@ -1426,37 +1146,37 @@ const je = /* @__PURE__ */ ds(gs), ms = {
|
|
|
1426
1146
|
store: {}
|
|
1427
1147
|
},
|
|
1428
1148
|
setup(s) {
|
|
1429
|
-
const e = s, { setData: t, getData:
|
|
1430
|
-
e.setting.options.tip && (
|
|
1431
|
-
const r =
|
|
1432
|
-
return r.value = e.setting.options.textValue, r.value =
|
|
1433
|
-
t(e.setting.name,
|
|
1434
|
-
}), (
|
|
1149
|
+
const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d();
|
|
1150
|
+
e.setting.options.tip && (g.value = j(e.setting.options.tip));
|
|
1151
|
+
const r = d();
|
|
1152
|
+
return r.value = e.setting.options.textValue, r.value = o(e.setting.name) || r.value, r.value || t(e.setting.name, null), O(r, (p) => {
|
|
1153
|
+
t(e.setting.name, p);
|
|
1154
|
+
}), (p, n) => (h(), V(l(M), {
|
|
1435
1155
|
col: e.span,
|
|
1436
|
-
marginRight:
|
|
1156
|
+
marginRight: p.marginRight,
|
|
1437
1157
|
modelValue: r.value,
|
|
1438
|
-
"onUpdate:modelValue":
|
|
1439
|
-
label:
|
|
1158
|
+
"onUpdate:modelValue": n[1] || (n[1] = (a) => r.value = a),
|
|
1159
|
+
label: p.setting.desc,
|
|
1440
1160
|
type: "custom",
|
|
1441
|
-
helpMessage:
|
|
1161
|
+
helpMessage: g.value
|
|
1442
1162
|
}, {
|
|
1443
|
-
default:
|
|
1444
|
-
|
|
1163
|
+
default: S(() => [
|
|
1164
|
+
$(l(Se), {
|
|
1445
1165
|
type: "text",
|
|
1446
1166
|
modelValue: r.value,
|
|
1447
|
-
"onUpdate:modelValue":
|
|
1167
|
+
"onUpdate:modelValue": n[0] || (n[0] = (a) => r.value = a)
|
|
1448
1168
|
}, null, 8, ["modelValue"])
|
|
1449
1169
|
]),
|
|
1450
1170
|
_: 1
|
|
1451
1171
|
}, 8, ["col", "marginRight", "modelValue", "label", "helpMessage"]));
|
|
1452
1172
|
}
|
|
1453
|
-
}),
|
|
1173
|
+
}), Ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1454
1174
|
__proto__: null,
|
|
1455
|
-
default:
|
|
1456
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1175
|
+
default: hs
|
|
1176
|
+
}, Symbol.toStringTag, { value: "Module" })), bs = {
|
|
1457
1177
|
name: "textarea"
|
|
1458
|
-
},
|
|
1459
|
-
...
|
|
1178
|
+
}, _s = /* @__PURE__ */ D({
|
|
1179
|
+
...bs,
|
|
1460
1180
|
props: {
|
|
1461
1181
|
setting: { default: () => ({
|
|
1462
1182
|
icon: "",
|
|
@@ -1471,28 +1191,28 @@ const je = /* @__PURE__ */ ds(gs), ms = {
|
|
|
1471
1191
|
store: {}
|
|
1472
1192
|
},
|
|
1473
1193
|
setup(s) {
|
|
1474
|
-
const e = s, { setData: t, getData:
|
|
1475
|
-
|
|
1476
|
-
|
|
1194
|
+
const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d(!1);
|
|
1195
|
+
F(e.setting.options.validateList).then((i) => {
|
|
1196
|
+
g.value = i;
|
|
1477
1197
|
});
|
|
1478
|
-
const r =
|
|
1479
|
-
e.setting.options.tip && (r.value =
|
|
1480
|
-
const
|
|
1198
|
+
const r = d();
|
|
1199
|
+
e.setting.options.tip && (r.value = j(e.setting.options.tip));
|
|
1200
|
+
const p = d("");
|
|
1481
1201
|
setTimeout(() => {
|
|
1482
|
-
|
|
1202
|
+
p.value = o(e.setting.name) || e.setting.options.formulasDiyJs || p.value, p.value || t(e.setting.name, null);
|
|
1483
1203
|
}, 50);
|
|
1484
|
-
const
|
|
1485
|
-
return
|
|
1204
|
+
const n = d(), a = d();
|
|
1205
|
+
return n.value = e.setting.options.initialFrameWidth ? e.setting.options.initialFrameWidth + "px" : "", a.value = e.setting.options.initialFrameHeight ? e.setting.options.initialFrameHeight + "px" : "", e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), O(p, (i) => {
|
|
1486
1206
|
t(e.setting.name, i);
|
|
1487
|
-
}), (i,
|
|
1488
|
-
i.setting.options.isEditor ?
|
|
1207
|
+
}), (i, u) => (h(), I(ee, null, [
|
|
1208
|
+
i.setting.options.isEditor ? J("", !0) : (h(), V(l(M), {
|
|
1489
1209
|
key: 0,
|
|
1490
1210
|
col: e.span,
|
|
1491
1211
|
marginRight: i.marginRight,
|
|
1492
1212
|
label: i.setting.desc,
|
|
1493
1213
|
type: "textarea",
|
|
1494
|
-
modelValue:
|
|
1495
|
-
"onUpdate:modelValue":
|
|
1214
|
+
modelValue: p.value,
|
|
1215
|
+
"onUpdate:modelValue": u[0] || (u[0] = (c) => p.value = c),
|
|
1496
1216
|
prop: e.setting.name,
|
|
1497
1217
|
placeholder: i.setting.options.placeholder,
|
|
1498
1218
|
disabled: i.setting.options.isInputEdit,
|
|
@@ -1503,41 +1223,41 @@ const je = /* @__PURE__ */ ds(gs), ms = {
|
|
|
1503
1223
|
},
|
|
1504
1224
|
"show-word-limit": "",
|
|
1505
1225
|
helpMessage: r.value,
|
|
1506
|
-
required:
|
|
1226
|
+
required: g.value
|
|
1507
1227
|
}, null, 8, ["col", "marginRight", "label", "modelValue", "prop", "placeholder", "disabled", "isView", "helpMessage", "required"])),
|
|
1508
|
-
i.setting.options.isEditor ? (
|
|
1228
|
+
i.setting.options.isEditor ? (h(), V(l(M), {
|
|
1509
1229
|
key: 1,
|
|
1510
|
-
modelValue:
|
|
1511
|
-
"onUpdate:modelValue":
|
|
1230
|
+
modelValue: p.value,
|
|
1231
|
+
"onUpdate:modelValue": u[2] || (u[2] = (c) => p.value = c),
|
|
1512
1232
|
prop: e.setting.name,
|
|
1513
|
-
contentWidth:
|
|
1233
|
+
contentWidth: n.value,
|
|
1514
1234
|
label: i.setting.desc,
|
|
1515
1235
|
type: "custom",
|
|
1516
1236
|
helpMessage: r.value,
|
|
1517
|
-
required:
|
|
1237
|
+
required: g.value,
|
|
1518
1238
|
readOnly: e.isView
|
|
1519
1239
|
}, {
|
|
1520
|
-
default:
|
|
1521
|
-
|
|
1240
|
+
default: S(() => [
|
|
1241
|
+
$(l(Se), {
|
|
1522
1242
|
ref: "editor",
|
|
1523
|
-
width:
|
|
1243
|
+
width: n.value,
|
|
1524
1244
|
height: a.value,
|
|
1525
|
-
modelValue:
|
|
1526
|
-
"onUpdate:modelValue":
|
|
1245
|
+
modelValue: p.value,
|
|
1246
|
+
"onUpdate:modelValue": u[1] || (u[1] = (c) => p.value = c),
|
|
1527
1247
|
placeholder: i.setting.options.placeholder
|
|
1528
1248
|
}, null, 8, ["width", "height", "modelValue", "placeholder"])
|
|
1529
1249
|
]),
|
|
1530
1250
|
_: 1
|
|
1531
|
-
}, 8, ["modelValue", "prop", "contentWidth", "label", "helpMessage", "required", "readOnly"])) :
|
|
1251
|
+
}, 8, ["modelValue", "prop", "contentWidth", "label", "helpMessage", "required", "readOnly"])) : J("", !0)
|
|
1532
1252
|
], 64));
|
|
1533
1253
|
}
|
|
1534
|
-
}),
|
|
1254
|
+
}), Ce = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1535
1255
|
__proto__: null,
|
|
1536
|
-
default:
|
|
1537
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1256
|
+
default: _s
|
|
1257
|
+
}, Symbol.toStringTag, { value: "Module" })), ws = {
|
|
1538
1258
|
name: "time"
|
|
1539
|
-
},
|
|
1540
|
-
...
|
|
1259
|
+
}, Vs = /* @__PURE__ */ D({
|
|
1260
|
+
...ws,
|
|
1541
1261
|
props: {
|
|
1542
1262
|
setting: { default: () => ({
|
|
1543
1263
|
icon: "",
|
|
@@ -1552,35 +1272,35 @@ const je = /* @__PURE__ */ ds(gs), ms = {
|
|
|
1552
1272
|
store: {}
|
|
1553
1273
|
},
|
|
1554
1274
|
setup(s) {
|
|
1555
|
-
const e = s, { setData: t, getData:
|
|
1556
|
-
|
|
1557
|
-
|
|
1275
|
+
const e = s, { setData: t, getData: o, setFormRule: m } = e.store || {}, g = d(!1);
|
|
1276
|
+
F(e.setting.options.validateList).then((n) => {
|
|
1277
|
+
g.value = n;
|
|
1558
1278
|
});
|
|
1559
|
-
const r =
|
|
1560
|
-
e.setting.options.tip && (r.value =
|
|
1561
|
-
const
|
|
1279
|
+
const r = d();
|
|
1280
|
+
e.setting.options.tip && (r.value = j(e.setting.options.tip));
|
|
1281
|
+
const p = d();
|
|
1562
1282
|
return setTimeout(() => {
|
|
1563
|
-
const
|
|
1564
|
-
|
|
1565
|
-
}, 50), e.setting.options.validateList.length &&
|
|
1566
|
-
t(e.setting.name,
|
|
1567
|
-
}), (
|
|
1283
|
+
const n = ge().format("YYYY-MM-DD ");
|
|
1284
|
+
o(e.setting.name) && (p.value = o(e.setting.name)), e.setting.options.formulasDiyJs && (p.value = ge(n + e.setting.options.formulasDiyJs)), p.value || t(e.setting.name, null);
|
|
1285
|
+
}, 50), e.setting.options.validateList.length && m(e.setting.name, e.setting.options.validateList), O(p, (n) => {
|
|
1286
|
+
t(e.setting.name, n);
|
|
1287
|
+
}), (n, a) => (h(), V(l(M), {
|
|
1568
1288
|
col: e.span,
|
|
1569
|
-
marginRight:
|
|
1570
|
-
modelValue:
|
|
1571
|
-
"onUpdate:modelValue": a[0] || (a[0] = (i) =>
|
|
1289
|
+
marginRight: n.marginRight,
|
|
1290
|
+
modelValue: p.value,
|
|
1291
|
+
"onUpdate:modelValue": a[0] || (a[0] = (i) => p.value = i),
|
|
1572
1292
|
prop: e.setting.name,
|
|
1573
|
-
label:
|
|
1293
|
+
label: n.setting.desc,
|
|
1574
1294
|
type: "time",
|
|
1575
1295
|
helpMessage: r.value,
|
|
1576
1296
|
isView: e.isView,
|
|
1577
|
-
required:
|
|
1297
|
+
required: g.value
|
|
1578
1298
|
}, null, 8, ["col", "marginRight", "modelValue", "prop", "label", "helpMessage", "isView", "required"]));
|
|
1579
1299
|
}
|
|
1580
|
-
}),
|
|
1300
|
+
}), Qe = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1581
1301
|
__proto__: null,
|
|
1582
|
-
default:
|
|
1583
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1302
|
+
default: Vs
|
|
1303
|
+
}, Symbol.toStringTag, { value: "Module" })), Ds = D({
|
|
1584
1304
|
name: "accordion",
|
|
1585
1305
|
props: {
|
|
1586
1306
|
columns: {
|
|
@@ -1597,33 +1317,33 @@ const je = /* @__PURE__ */ ds(gs), ms = {
|
|
|
1597
1317
|
}
|
|
1598
1318
|
},
|
|
1599
1319
|
setup(s) {
|
|
1600
|
-
const e =
|
|
1601
|
-
const
|
|
1602
|
-
(
|
|
1320
|
+
const e = d([]), t = s.columns.map((o) => {
|
|
1321
|
+
const m = o.list.map(
|
|
1322
|
+
(g) => C(ve[g.ctrlType], { setting: g, isView: s.isView, store: s.store })
|
|
1603
1323
|
);
|
|
1604
|
-
return
|
|
1605
|
-
|
|
1324
|
+
return o.isOpen == !0 && e.value.push(o.idKey), C(
|
|
1325
|
+
vt,
|
|
1606
1326
|
{
|
|
1607
|
-
header:
|
|
1608
|
-
key: `${
|
|
1327
|
+
header: o.span,
|
|
1328
|
+
key: `${o.idKey}`
|
|
1609
1329
|
},
|
|
1610
|
-
|
|
1330
|
+
C("div", m)
|
|
1611
1331
|
);
|
|
1612
1332
|
});
|
|
1613
|
-
return () =>
|
|
1333
|
+
return () => C(
|
|
1614
1334
|
"div",
|
|
1615
1335
|
{ class: "accordion-layout" },
|
|
1616
|
-
|
|
1617
|
-
|
|
1336
|
+
C(
|
|
1337
|
+
ft,
|
|
1618
1338
|
{ activeKey: e.value, collapsible: s.options.accordion ? "" : "disabled" },
|
|
1619
1339
|
t
|
|
1620
1340
|
)
|
|
1621
1341
|
);
|
|
1622
1342
|
}
|
|
1623
|
-
}),
|
|
1343
|
+
}), $s = {
|
|
1624
1344
|
name: "accordion"
|
|
1625
|
-
},
|
|
1626
|
-
|
|
1345
|
+
}, Rs = /* @__PURE__ */ D({
|
|
1346
|
+
...$s,
|
|
1627
1347
|
props: {
|
|
1628
1348
|
setting: { default: () => ({
|
|
1629
1349
|
name: "",
|
|
@@ -1651,7 +1371,7 @@ const je = /* @__PURE__ */ ds(gs), ms = {
|
|
|
1651
1371
|
store: {}
|
|
1652
1372
|
},
|
|
1653
1373
|
setup(s) {
|
|
1654
|
-
return (e, t) => (
|
|
1374
|
+
return (e, t) => (h(), V(l(Ds), {
|
|
1655
1375
|
columns: e.setting.columns,
|
|
1656
1376
|
options: e.setting.options,
|
|
1657
1377
|
isView: e.isView,
|
|
@@ -1659,9 +1379,9 @@ const je = /* @__PURE__ */ ds(gs), ms = {
|
|
|
1659
1379
|
style: { "margin-bottom": "10px" }
|
|
1660
1380
|
}, null, 8, ["columns", "options", "isView", "store"]));
|
|
1661
1381
|
}
|
|
1662
|
-
}),
|
|
1382
|
+
}), Ss = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1663
1383
|
__proto__: null,
|
|
1664
|
-
default:
|
|
1384
|
+
default: Rs
|
|
1665
1385
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
1666
1386
|
/**
|
|
1667
1387
|
* @vue/shared v3.4.35
|
|
@@ -1670,88 +1390,88 @@ const je = /* @__PURE__ */ ds(gs), ms = {
|
|
|
1670
1390
|
**/
|
|
1671
1391
|
process.env.NODE_ENV !== "production" && Object.freeze({});
|
|
1672
1392
|
process.env.NODE_ENV !== "production" && Object.freeze([]);
|
|
1673
|
-
const
|
|
1674
|
-
function
|
|
1675
|
-
for (var e = -1, t = s == null ? 0 : s.length,
|
|
1676
|
-
var
|
|
1677
|
-
|
|
1393
|
+
const Ms = Object.prototype.hasOwnProperty, he = (s, e) => Ms.call(s, e), fe = (s) => s !== null && typeof s == "object";
|
|
1394
|
+
function Ls(s) {
|
|
1395
|
+
for (var e = -1, t = s == null ? 0 : s.length, o = {}; ++e < t; ) {
|
|
1396
|
+
var m = s[e];
|
|
1397
|
+
o[m[0]] = m[1];
|
|
1678
1398
|
}
|
|
1679
|
-
return
|
|
1399
|
+
return o;
|
|
1680
1400
|
}
|
|
1681
|
-
const
|
|
1682
|
-
if (!
|
|
1401
|
+
const be = (s) => typeof s == "number", ze = "__epPropKey", H = (s) => s, Os = (s) => fe(s) && !!s[ze], Ts = (s, e) => {
|
|
1402
|
+
if (!fe(s) || Os(s))
|
|
1683
1403
|
return s;
|
|
1684
|
-
const { values: t, required:
|
|
1685
|
-
type:
|
|
1686
|
-
required: !!
|
|
1404
|
+
const { values: t, required: o, default: m, type: g, validator: r } = s, n = {
|
|
1405
|
+
type: g,
|
|
1406
|
+
required: !!o,
|
|
1687
1407
|
validator: t || r ? (a) => {
|
|
1688
|
-
let i = !1,
|
|
1689
|
-
if (t && (
|
|
1690
|
-
const
|
|
1691
|
-
|
|
1408
|
+
let i = !1, u = [];
|
|
1409
|
+
if (t && (u = Array.from(t), he(s, "default") && u.push(m), i || (i = u.includes(a))), r && (i || (i = r(a))), !i && u.length > 0) {
|
|
1410
|
+
const c = [...new Set(u)].map((f) => JSON.stringify(f)).join(", ");
|
|
1411
|
+
tt(`Invalid prop: validation failed${e ? ` for prop "${e}"` : ""}. Expected one of [${c}], got value ${JSON.stringify(a)}.`);
|
|
1692
1412
|
}
|
|
1693
1413
|
return i;
|
|
1694
1414
|
} : void 0,
|
|
1695
|
-
[
|
|
1415
|
+
[ze]: !0
|
|
1696
1416
|
};
|
|
1697
|
-
return
|
|
1698
|
-
},
|
|
1417
|
+
return he(s, "default") && (n.default = m), n;
|
|
1418
|
+
}, Ue = (s) => Ls(Object.entries(s).map(([e, t]) => [
|
|
1699
1419
|
e,
|
|
1700
|
-
|
|
1701
|
-
])),
|
|
1702
|
-
for (const
|
|
1703
|
-
t.component(
|
|
1704
|
-
}, s),
|
|
1705
|
-
let
|
|
1706
|
-
return t && (
|
|
1707
|
-
},
|
|
1708
|
-
const e =
|
|
1709
|
-
return
|
|
1710
|
-
},
|
|
1711
|
-
const t =
|
|
1420
|
+
Ts(t, e)
|
|
1421
|
+
])), xe = (s, e) => (s.install = (t) => {
|
|
1422
|
+
for (const o of [s, ...Object.values({})])
|
|
1423
|
+
t.component(o.name, o);
|
|
1424
|
+
}, s), G = (s) => s, ie = "el", js = "is-", U = (s, e, t, o, m) => {
|
|
1425
|
+
let g = `${s}-${e}`;
|
|
1426
|
+
return t && (g += `-${t}`), o && (g += `__${o}`), m && (g += `--${m}`), g;
|
|
1427
|
+
}, Ns = Symbol("namespaceContextKey"), Fs = (s) => {
|
|
1428
|
+
const e = st() ? _e(Ns, d(ie)) : d(ie);
|
|
1429
|
+
return x(() => l(e) || ie);
|
|
1430
|
+
}, Je = (s, e) => {
|
|
1431
|
+
const t = Fs();
|
|
1712
1432
|
return {
|
|
1713
1433
|
namespace: t,
|
|
1714
|
-
b: (
|
|
1715
|
-
e: (
|
|
1716
|
-
m: (
|
|
1717
|
-
be: (
|
|
1718
|
-
em: (
|
|
1719
|
-
bm: (
|
|
1720
|
-
bem: (
|
|
1721
|
-
is: (
|
|
1722
|
-
const
|
|
1723
|
-
return
|
|
1434
|
+
b: (v = "") => U(t.value, s, v, "", ""),
|
|
1435
|
+
e: (v) => v ? U(t.value, s, "", v, "") : "",
|
|
1436
|
+
m: (v) => v ? U(t.value, s, "", "", v) : "",
|
|
1437
|
+
be: (v, _) => v && _ ? U(t.value, s, v, _, "") : "",
|
|
1438
|
+
em: (v, _) => v && _ ? U(t.value, s, "", v, _) : "",
|
|
1439
|
+
bm: (v, _) => v && _ ? U(t.value, s, v, "", _) : "",
|
|
1440
|
+
bem: (v, _, y) => v && _ && y ? U(t.value, s, v, _, y) : "",
|
|
1441
|
+
is: (v, ..._) => {
|
|
1442
|
+
const y = _.length >= 1 ? _[0] : !0;
|
|
1443
|
+
return v && y ? `${js}${v}` : "";
|
|
1724
1444
|
},
|
|
1725
|
-
cssVar: (
|
|
1726
|
-
const
|
|
1727
|
-
for (const
|
|
1728
|
-
|
|
1729
|
-
return
|
|
1445
|
+
cssVar: (v) => {
|
|
1446
|
+
const _ = {};
|
|
1447
|
+
for (const y in v)
|
|
1448
|
+
v[y] && (_[`--${t.value}-${y}`] = v[y]);
|
|
1449
|
+
return _;
|
|
1730
1450
|
},
|
|
1731
|
-
cssVarName: (
|
|
1732
|
-
cssVarBlock: (
|
|
1733
|
-
const
|
|
1734
|
-
for (const
|
|
1735
|
-
|
|
1736
|
-
return
|
|
1451
|
+
cssVarName: (v) => `--${t.value}-${v}`,
|
|
1452
|
+
cssVarBlock: (v) => {
|
|
1453
|
+
const _ = {};
|
|
1454
|
+
for (const y in v)
|
|
1455
|
+
v[y] && (_[`--${t.value}-${s}-${y}`] = v[y]);
|
|
1456
|
+
return _;
|
|
1737
1457
|
},
|
|
1738
|
-
cssVarBlockName: (
|
|
1458
|
+
cssVarBlockName: (v) => `--${t.value}-${s}-${v}`
|
|
1739
1459
|
};
|
|
1740
1460
|
};
|
|
1741
|
-
var
|
|
1461
|
+
var We = (s, e) => {
|
|
1742
1462
|
const t = s.__vccOpts || s;
|
|
1743
|
-
for (const [
|
|
1744
|
-
t[
|
|
1463
|
+
for (const [o, m] of e)
|
|
1464
|
+
t[o] = m;
|
|
1745
1465
|
return t;
|
|
1746
1466
|
};
|
|
1747
|
-
const
|
|
1467
|
+
const Ye = Symbol("rowContextKey"), qs = [
|
|
1748
1468
|
"start",
|
|
1749
1469
|
"center",
|
|
1750
1470
|
"end",
|
|
1751
1471
|
"space-around",
|
|
1752
1472
|
"space-between",
|
|
1753
1473
|
"space-evenly"
|
|
1754
|
-
],
|
|
1474
|
+
], Bs = ["top", "middle", "bottom"], Ps = Ue({
|
|
1755
1475
|
tag: {
|
|
1756
1476
|
type: String,
|
|
1757
1477
|
default: "div"
|
|
@@ -1762,44 +1482,44 @@ const vt = Symbol("rowContextKey"), on = [
|
|
|
1762
1482
|
},
|
|
1763
1483
|
justify: {
|
|
1764
1484
|
type: String,
|
|
1765
|
-
values:
|
|
1485
|
+
values: qs,
|
|
1766
1486
|
default: "start"
|
|
1767
1487
|
},
|
|
1768
1488
|
align: {
|
|
1769
1489
|
type: String,
|
|
1770
|
-
values:
|
|
1490
|
+
values: Bs
|
|
1771
1491
|
}
|
|
1772
|
-
}),
|
|
1492
|
+
}), Es = D({
|
|
1773
1493
|
name: "ElRow"
|
|
1774
|
-
}),
|
|
1775
|
-
...
|
|
1776
|
-
props:
|
|
1494
|
+
}), Ks = /* @__PURE__ */ D({
|
|
1495
|
+
...Es,
|
|
1496
|
+
props: Ps,
|
|
1777
1497
|
setup(s) {
|
|
1778
|
-
const e = s, t =
|
|
1779
|
-
|
|
1780
|
-
gutter:
|
|
1498
|
+
const e = s, t = Je("row"), o = x(() => e.gutter);
|
|
1499
|
+
ot(Ye, {
|
|
1500
|
+
gutter: o
|
|
1781
1501
|
});
|
|
1782
|
-
const
|
|
1502
|
+
const m = x(() => {
|
|
1783
1503
|
const r = {};
|
|
1784
1504
|
return e.gutter && (r.marginRight = r.marginLeft = `-${e.gutter / 2}px`), r;
|
|
1785
|
-
}),
|
|
1505
|
+
}), g = x(() => [
|
|
1786
1506
|
t.b(),
|
|
1787
1507
|
t.is(`justify-${e.justify}`, e.justify !== "start"),
|
|
1788
1508
|
t.is(`align-${e.align}`, !!e.align)
|
|
1789
1509
|
]);
|
|
1790
|
-
return (r,
|
|
1791
|
-
class:
|
|
1792
|
-
style:
|
|
1510
|
+
return (r, p) => (h(), V(ce(r.tag), {
|
|
1511
|
+
class: we(l(g)),
|
|
1512
|
+
style: Ve(l(m))
|
|
1793
1513
|
}, {
|
|
1794
|
-
default:
|
|
1795
|
-
|
|
1514
|
+
default: S(() => [
|
|
1515
|
+
De(r.$slots, "default")
|
|
1796
1516
|
]),
|
|
1797
1517
|
_: 3
|
|
1798
1518
|
}, 8, ["class", "style"]));
|
|
1799
1519
|
}
|
|
1800
1520
|
});
|
|
1801
|
-
var
|
|
1802
|
-
const
|
|
1521
|
+
var Is = /* @__PURE__ */ We(Ks, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/row/src/row.vue"]]);
|
|
1522
|
+
const ks = xe(Is), As = Ue({
|
|
1803
1523
|
tag: {
|
|
1804
1524
|
type: String,
|
|
1805
1525
|
default: "div"
|
|
@@ -1821,58 +1541,58 @@ const cn = gt(pn), dn = dt({
|
|
|
1821
1541
|
default: 0
|
|
1822
1542
|
},
|
|
1823
1543
|
xs: {
|
|
1824
|
-
type:
|
|
1825
|
-
default: () =>
|
|
1544
|
+
type: H([Number, Object]),
|
|
1545
|
+
default: () => G({})
|
|
1826
1546
|
},
|
|
1827
1547
|
sm: {
|
|
1828
|
-
type:
|
|
1829
|
-
default: () =>
|
|
1548
|
+
type: H([Number, Object]),
|
|
1549
|
+
default: () => G({})
|
|
1830
1550
|
},
|
|
1831
1551
|
md: {
|
|
1832
|
-
type:
|
|
1833
|
-
default: () =>
|
|
1552
|
+
type: H([Number, Object]),
|
|
1553
|
+
default: () => G({})
|
|
1834
1554
|
},
|
|
1835
1555
|
lg: {
|
|
1836
|
-
type:
|
|
1837
|
-
default: () =>
|
|
1556
|
+
type: H([Number, Object]),
|
|
1557
|
+
default: () => G({})
|
|
1838
1558
|
},
|
|
1839
1559
|
xl: {
|
|
1840
|
-
type:
|
|
1841
|
-
default: () =>
|
|
1560
|
+
type: H([Number, Object]),
|
|
1561
|
+
default: () => G({})
|
|
1842
1562
|
}
|
|
1843
|
-
}),
|
|
1563
|
+
}), Cs = D({
|
|
1844
1564
|
name: "ElCol"
|
|
1845
|
-
}),
|
|
1846
|
-
...
|
|
1847
|
-
props:
|
|
1565
|
+
}), Qs = /* @__PURE__ */ D({
|
|
1566
|
+
...Cs,
|
|
1567
|
+
props: As,
|
|
1848
1568
|
setup(s) {
|
|
1849
|
-
const e = s, { gutter: t } =
|
|
1569
|
+
const e = s, { gutter: t } = _e(Ye, { gutter: x(() => 0) }), o = Je("col"), m = x(() => {
|
|
1850
1570
|
const r = {};
|
|
1851
1571
|
return t.value && (r.paddingLeft = r.paddingRight = `${t.value / 2}px`), r;
|
|
1852
|
-
}),
|
|
1572
|
+
}), g = x(() => {
|
|
1853
1573
|
const r = [];
|
|
1854
1574
|
return ["span", "offset", "pull", "push"].forEach((a) => {
|
|
1855
1575
|
const i = e[a];
|
|
1856
|
-
|
|
1576
|
+
be(i) && (a === "span" ? r.push(o.b(`${e[a]}`)) : i > 0 && r.push(o.b(`${a}-${e[a]}`)));
|
|
1857
1577
|
}), ["xs", "sm", "md", "lg", "xl"].forEach((a) => {
|
|
1858
|
-
|
|
1859
|
-
r.push(i !== "span" ?
|
|
1578
|
+
be(e[a]) ? r.push(o.b(`${a}-${e[a]}`)) : fe(e[a]) && Object.entries(e[a]).forEach(([i, u]) => {
|
|
1579
|
+
r.push(i !== "span" ? o.b(`${a}-${i}-${u}`) : o.b(`${a}-${u}`));
|
|
1860
1580
|
});
|
|
1861
|
-
}), t.value && r.push(
|
|
1581
|
+
}), t.value && r.push(o.is("guttered")), [o.b(), r];
|
|
1862
1582
|
});
|
|
1863
|
-
return (r,
|
|
1864
|
-
class:
|
|
1865
|
-
style:
|
|
1583
|
+
return (r, p) => (h(), V(ce(r.tag), {
|
|
1584
|
+
class: we(l(g)),
|
|
1585
|
+
style: Ve(l(m))
|
|
1866
1586
|
}, {
|
|
1867
|
-
default:
|
|
1868
|
-
|
|
1587
|
+
default: S(() => [
|
|
1588
|
+
De(r.$slots, "default")
|
|
1869
1589
|
]),
|
|
1870
1590
|
_: 3
|
|
1871
1591
|
}, 8, ["class", "style"]));
|
|
1872
1592
|
}
|
|
1873
1593
|
});
|
|
1874
|
-
var
|
|
1875
|
-
const
|
|
1594
|
+
var zs = /* @__PURE__ */ We(Qs, [["__file", "/home/runner/work/element-plus/element-plus/packages/components/col/src/col.vue"]]);
|
|
1595
|
+
const Us = xe(zs), xs = D({
|
|
1876
1596
|
name: "grid",
|
|
1877
1597
|
props: {
|
|
1878
1598
|
columns: {
|
|
@@ -1889,22 +1609,22 @@ const vn = gt(fn), hn = F({
|
|
|
1889
1609
|
},
|
|
1890
1610
|
setup(s) {
|
|
1891
1611
|
let e = 0;
|
|
1892
|
-
const t = s.columns.map((
|
|
1893
|
-
const
|
|
1894
|
-
e +=
|
|
1612
|
+
const t = s.columns.map((o) => {
|
|
1613
|
+
const m = o.list.map((g) => {
|
|
1614
|
+
e += o.span;
|
|
1895
1615
|
const r = e == 24 ? "0px" : "80px";
|
|
1896
|
-
return e == 24 && (e = 0),
|
|
1897
|
-
setting:
|
|
1616
|
+
return e == 24 && (e = 0), C(Hs[g.ctrlType], {
|
|
1617
|
+
setting: g,
|
|
1898
1618
|
isView: s.isView,
|
|
1899
1619
|
store: s.store,
|
|
1900
1620
|
class: "grid-item-layout",
|
|
1901
1621
|
marginRight: r
|
|
1902
1622
|
});
|
|
1903
1623
|
});
|
|
1904
|
-
return
|
|
1624
|
+
return C(Us, { span: o.span }, m);
|
|
1905
1625
|
});
|
|
1906
|
-
return () =>
|
|
1907
|
-
|
|
1626
|
+
return () => C(
|
|
1627
|
+
ks,
|
|
1908
1628
|
{
|
|
1909
1629
|
class: "grid-layout"
|
|
1910
1630
|
// gutter: 0,
|
|
@@ -1912,10 +1632,10 @@ const vn = gt(fn), hn = F({
|
|
|
1912
1632
|
t
|
|
1913
1633
|
);
|
|
1914
1634
|
}
|
|
1915
|
-
}),
|
|
1635
|
+
}), Js = {
|
|
1916
1636
|
name: "grid"
|
|
1917
|
-
},
|
|
1918
|
-
...
|
|
1637
|
+
}, Ws = /* @__PURE__ */ D({
|
|
1638
|
+
...Js,
|
|
1919
1639
|
props: {
|
|
1920
1640
|
setting: { default: () => ({
|
|
1921
1641
|
name: "",
|
|
@@ -1941,124 +1661,124 @@ const vn = gt(fn), hn = F({
|
|
|
1941
1661
|
},
|
|
1942
1662
|
setup(s) {
|
|
1943
1663
|
const e = s;
|
|
1944
|
-
return (t,
|
|
1664
|
+
return (t, o) => (h(), V(l(xs), {
|
|
1945
1665
|
columns: t.setting.columns,
|
|
1946
1666
|
isView: e.isView,
|
|
1947
1667
|
store: t.store
|
|
1948
1668
|
}, null, 8, ["columns", "isView", "store"]));
|
|
1949
1669
|
}
|
|
1950
|
-
}),
|
|
1670
|
+
}), Ys = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
1951
1671
|
__proto__: null,
|
|
1952
|
-
default:
|
|
1953
|
-
}, Symbol.toStringTag, { value: "Module" })),
|
|
1954
|
-
Object.keys(
|
|
1955
|
-
Object.keys(
|
|
1956
|
-
Object.keys(
|
|
1957
|
-
Object.keys(
|
|
1958
|
-
const
|
|
1959
|
-
(!e || e.toString() === "") && parseInt(e) !== 0 ? t(new Error(`${
|
|
1960
|
-
},
|
|
1961
|
-
e !== "" && e.length > parseInt(
|
|
1962
|
-
},
|
|
1963
|
-
e !== "" && e.length < parseInt(
|
|
1964
|
-
},
|
|
1672
|
+
default: Ws
|
|
1673
|
+
}, Symbol.toStringTag, { value: "Module" })), le = /* @__PURE__ */ Object.assign({ "./base/attachment.vue": Le, "./base/autocomplete.vue": Oe, "./base/checkbox.vue": Te, "./base/date.vue": je, "./base/dropdown.vue": Ne, "./base/imageViewer.vue": Fe, "./base/input.vue": qe, "./base/number.vue": Be, "./base/radio.vue": Pe, "./base/select.vue": Ee, "./base/selector.vue": Ke, "./base/soundRecording.vue": Ie, "./base/switch.vue": ke, "./base/text.vue": Ae, "./base/textarea.vue": Ce, "./base/time.vue": Qe, "./layout/accordion/accordion.vue": Ss, "./layout/grid/gridLayout.vue": Ys }), re = /* @__PURE__ */ Object.assign({ "./base/attachment.vue": Le, "./base/autocomplete.vue": Oe, "./base/checkbox.vue": Te, "./base/date.vue": je, "./base/dropdown.vue": Ne, "./base/imageViewer.vue": Fe, "./base/input.vue": qe, "./base/number.vue": Be, "./base/radio.vue": Pe, "./base/select.vue": Ee, "./base/selector.vue": Ke, "./base/soundRecording.vue": Ie, "./base/switch.vue": ke, "./base/text.vue": Ae, "./base/textarea.vue": Ce, "./base/time.vue": Qe }), ue = /* @__PURE__ */ Object.assign({}), pe = /* @__PURE__ */ Object.assign({}), ve = {}, Ze = {}, He = {}, Zs = {};
|
|
1674
|
+
Object.keys(re).map((s) => Ze[re[s].default.name] = re[s].default);
|
|
1675
|
+
Object.keys(ue).map((s) => He[ue[s].default.name] = ue[s].default);
|
|
1676
|
+
Object.keys(pe).map((s) => Zs[pe[s].default.name] = pe[s].default);
|
|
1677
|
+
Object.keys(le).map((s) => ve[le[s].default.name] = le[s].default);
|
|
1678
|
+
const Hs = { ...Ze, ...He }, Gs = (s, e, t, o) => {
|
|
1679
|
+
(!e || e.toString() === "") && parseInt(e) !== 0 ? t(new Error(`${o.name}`)) : t();
|
|
1680
|
+
}, Xs = (s, e, t, o) => {
|
|
1681
|
+
e !== "" && e.length > parseInt(o.value) ? t(new Error(`${o.name}不能超过${o.value}`)) : t();
|
|
1682
|
+
}, eo = (s, e, t, o) => {
|
|
1683
|
+
e !== "" && e.length < parseInt(o.value) ? t(new Error(`${o.name}不能少于${o.value}`)) : t();
|
|
1684
|
+
}, to = (s, e, t, o) => {
|
|
1965
1685
|
if (e !== "" && !/^1[3456789]\d{9}$/.test(e))
|
|
1966
1686
|
return t(new Error("手机号码格式不正确,请重新输入")), !1;
|
|
1967
1687
|
t();
|
|
1968
|
-
},
|
|
1688
|
+
}, so = (s, e, t) => {
|
|
1969
1689
|
if (e !== "" && !/^[A-Za-z0-9\u4e00-\u9fa5]+@[a-zA-Z0-9_-]+(\.[a-zA-Z0-9_-]+)+$/.test(e))
|
|
1970
1690
|
return t(new Error("电子邮箱格式不正确,请重新输入")), !1;
|
|
1971
1691
|
t();
|
|
1972
|
-
},
|
|
1692
|
+
}, oo = (s, e, t) => {
|
|
1973
1693
|
if (e !== "" && !/^-?\d+$/.test(e))
|
|
1974
1694
|
return t(new Error("请输入整数")), !1;
|
|
1975
1695
|
t();
|
|
1976
|
-
},
|
|
1977
|
-
if (e !== "" && e !=
|
|
1696
|
+
}, no = (s, e, t, o) => {
|
|
1697
|
+
if (e !== "" && e != o.value)
|
|
1978
1698
|
return t(new Error("请输入相同的值")), !1;
|
|
1979
1699
|
t();
|
|
1980
|
-
},
|
|
1981
|
-
e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e < parseFloat(
|
|
1982
|
-
},
|
|
1983
|
-
e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e > parseFloat(
|
|
1984
|
-
},
|
|
1985
|
-
const
|
|
1986
|
-
e === "" ? t() :
|
|
1987
|
-
},
|
|
1988
|
-
e === "" || parseFloat(e) === parseFloat(
|
|
1989
|
-
},
|
|
1990
|
-
e === "" ? t() : /^-?\d+$/.test(e) ? Math.abs(e).toString().length === parseInt(
|
|
1991
|
-
},
|
|
1700
|
+
}, ao = (s, e, t, o) => {
|
|
1701
|
+
e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e < parseFloat(o.value) ? t(new Error(`${o.name}不能小于${o.value}`)) : t() : t(new Error("请输入数字"));
|
|
1702
|
+
}, io = (s, e, t, o) => {
|
|
1703
|
+
e === "" ? t() : /^[+-]?\d*\.?\d*$/.test(e) ? e > parseFloat(o.value) ? t(new Error(`${o.name}不能大于${o.value}`)) : t() : t(new Error("请输入数字"));
|
|
1704
|
+
}, lo = (s, e, t, o) => {
|
|
1705
|
+
const m = /^[+-]?(\d*\.\d+([eE]?[+-]?\d+)?|\d+[eE][+-]?\d+)$/, g = /^-?\d+$/;
|
|
1706
|
+
e === "" ? t() : m.test(e) || g.test(e) ? e >= parseFloat(o.start) && e <= parseFloat(o.end) ? t() : t(new Error(`只能输入指定数字范围${o.start}-${o.end}`)) : t(new Error("请输入数字"));
|
|
1707
|
+
}, ro = (s, e, t, o) => {
|
|
1708
|
+
e === "" || parseFloat(e) === parseFloat(o.value) ? t() : t(new Error(`只能输入指定的值${o.value}`));
|
|
1709
|
+
}, uo = (s, e, t, o) => {
|
|
1710
|
+
e === "" ? t() : /^-?\d+$/.test(e) ? Math.abs(e).toString().length === parseInt(o.value) ? t() : t(new Error(`只能输入${o.value}位数数字`)) : t(new Error("请输入整数"));
|
|
1711
|
+
}, po = (s, e, t) => {
|
|
1992
1712
|
if (e !== "" && !/^[a-zA-Z]{1,}$/.test(e))
|
|
1993
1713
|
return t(new Error("只能输入字母")), !1;
|
|
1994
1714
|
t();
|
|
1995
|
-
},
|
|
1715
|
+
}, go = (s, e, t) => {
|
|
1996
1716
|
if (e !== "" && !/^[a-zA-Z ]{1,}$/.test(e))
|
|
1997
1717
|
return t(new Error("只能输入字母空格")), !1;
|
|
1998
1718
|
t();
|
|
1999
|
-
},
|
|
1719
|
+
}, co = (s, e, t) => {
|
|
2000
1720
|
if (e !== "" && !/^[0-9a-zA-Z_-]{1,}$/.test(e))
|
|
2001
1721
|
return t(new Error("只能输入字母数字横线下划线")), !1;
|
|
2002
1722
|
t();
|
|
2003
|
-
},
|
|
1723
|
+
}, mo = (s, e, t) => {
|
|
2004
1724
|
if (e !== "" && !/^[0-9a-zA-Z]{1,}$/.test(e))
|
|
2005
1725
|
return t(new Error("只能输入字母数字")), !1;
|
|
2006
1726
|
t();
|
|
2007
|
-
},
|
|
2008
|
-
const
|
|
2009
|
-
if (e !== "" && !
|
|
1727
|
+
}, fo = (s, e, t, o) => {
|
|
1728
|
+
const m = new RegExp(o.value);
|
|
1729
|
+
if (e !== "" && !m.test(e))
|
|
2010
1730
|
return t(new Error("校验失败")), !1;
|
|
2011
1731
|
t();
|
|
2012
|
-
},
|
|
2013
|
-
required:
|
|
2014
|
-
min:
|
|
2015
|
-
max:
|
|
2016
|
-
email:
|
|
2017
|
-
min_value:
|
|
2018
|
-
max_value:
|
|
2019
|
-
confirmed:
|
|
2020
|
-
numeric:
|
|
2021
|
-
between:
|
|
2022
|
-
is:
|
|
2023
|
-
digits:
|
|
2024
|
-
mobile:
|
|
2025
|
-
alpha:
|
|
2026
|
-
alpha_spaces:
|
|
2027
|
-
alpha_dash:
|
|
2028
|
-
alpha_num:
|
|
2029
|
-
regex:
|
|
2030
|
-
},
|
|
2031
|
-
const s =
|
|
2032
|
-
return { data: s, formData: e, formRule:
|
|
2033
|
-
e.value.forEach((
|
|
2034
|
-
|
|
1732
|
+
}, vo = {
|
|
1733
|
+
required: Gs,
|
|
1734
|
+
min: eo,
|
|
1735
|
+
max: Xs,
|
|
1736
|
+
email: so,
|
|
1737
|
+
min_value: ao,
|
|
1738
|
+
max_value: io,
|
|
1739
|
+
confirmed: no,
|
|
1740
|
+
numeric: oo,
|
|
1741
|
+
between: lo,
|
|
1742
|
+
is: ro,
|
|
1743
|
+
digits: uo,
|
|
1744
|
+
mobile: to,
|
|
1745
|
+
alpha: po,
|
|
1746
|
+
alpha_spaces: go,
|
|
1747
|
+
alpha_dash: co,
|
|
1748
|
+
alpha_num: mo,
|
|
1749
|
+
regex: fo
|
|
1750
|
+
}, yo = () => {
|
|
1751
|
+
const s = d({}), e = d([]), t = d([]), o = d(""), m = d({});
|
|
1752
|
+
return { data: s, formData: e, formRule: m, setData: (c, f) => {
|
|
1753
|
+
e.value.forEach((R) => {
|
|
1754
|
+
R.formKey === o.value && (R.data[c] = f);
|
|
2035
1755
|
});
|
|
2036
|
-
}, setDetailData: (
|
|
2037
|
-
s.value =
|
|
2038
|
-
f.formKey ===
|
|
1756
|
+
}, setDetailData: (c) => {
|
|
1757
|
+
s.value = c, e.value.forEach((f) => {
|
|
1758
|
+
f.formKey === o.value && (f.data = c);
|
|
2039
1759
|
});
|
|
2040
|
-
}, getData: (
|
|
2041
|
-
|
|
2042
|
-
|
|
2043
|
-
}) : (t.value.push(
|
|
2044
|
-
formKey:
|
|
1760
|
+
}, getData: (c) => s.value[c], setFormData: (c, f, R) => {
|
|
1761
|
+
o.value = c, t.value.includes(c) ? e.value.forEach((v) => {
|
|
1762
|
+
v.formKey === c && (s.value = v.data);
|
|
1763
|
+
}) : (t.value.push(c), e.value.push({
|
|
1764
|
+
formKey: c,
|
|
2045
1765
|
boKey: f,
|
|
2046
|
-
reportId:
|
|
1766
|
+
reportId: R || null,
|
|
2047
1767
|
data: {}
|
|
2048
1768
|
}));
|
|
2049
|
-
}, getFormData: () => e.value, setFormRule: (
|
|
2050
|
-
|
|
2051
|
-
|
|
2052
|
-
validator: (
|
|
1769
|
+
}, getFormData: () => e.value, setFormRule: (c, f) => {
|
|
1770
|
+
m.value[c] = [], f.forEach((R) => {
|
|
1771
|
+
m.value[c].push({
|
|
1772
|
+
validator: (v, _, y) => vo[R.key](v, _, y, R)
|
|
2053
1773
|
});
|
|
2054
1774
|
});
|
|
2055
1775
|
}, clearData: () => {
|
|
2056
|
-
s.value = {}, e.value = [], t.value = [],
|
|
1776
|
+
s.value = {}, e.value = [], t.value = [], m.value = {};
|
|
2057
1777
|
} };
|
|
2058
|
-
},
|
|
1778
|
+
}, ho = { class: "custom-page" }, bo = {
|
|
2059
1779
|
key: 0,
|
|
2060
1780
|
class: "btn-box"
|
|
2061
|
-
},
|
|
1781
|
+
}, _o = { class: "content-box" }, wo = /* @__PURE__ */ D({
|
|
2062
1782
|
__name: "App",
|
|
2063
1783
|
props: {
|
|
2064
1784
|
formConfigurationId: {},
|
|
@@ -2068,59 +1788,59 @@ const Vn = { ...ht, ...yt }, $n = (s, e, t, n) => {
|
|
|
2068
1788
|
},
|
|
2069
1789
|
emits: ["handleClick"],
|
|
2070
1790
|
setup(s, { expose: e, emit: t }) {
|
|
2071
|
-
const
|
|
1791
|
+
const o = yo(), { formRule: m, clearData: g } = o, r = s, p = t, { formJsonList: n, isShowPage: a, btnList: i, formRef: u, getForm: c, getBtnSet: f, handleClick: R, validateFormData: v } = Et(
|
|
2072
1792
|
r,
|
|
2073
|
-
|
|
2074
|
-
|
|
1793
|
+
p,
|
|
1794
|
+
o
|
|
2075
1795
|
);
|
|
2076
|
-
return
|
|
1796
|
+
return nt(async () => {
|
|
2077
1797
|
f();
|
|
2078
1798
|
}), e({
|
|
2079
|
-
validateFormData:
|
|
2080
|
-
clearData:
|
|
2081
|
-
}), (
|
|
2082
|
-
|
|
2083
|
-
(
|
|
2084
|
-
key:
|
|
1799
|
+
validateFormData: v,
|
|
1800
|
+
clearData: g
|
|
1801
|
+
}), (_, y) => (h(), I("div", ho, [
|
|
1802
|
+
l(i).length > 0 ? (h(), I("div", bo, [
|
|
1803
|
+
(h(!0), I(ee, null, ye(l(i), (b) => (h(), V(l(rt), {
|
|
1804
|
+
key: b.id,
|
|
2085
1805
|
style: { "margin-right": "20px" },
|
|
2086
1806
|
"btn-type": "primary",
|
|
2087
|
-
onClick: (
|
|
1807
|
+
onClick: (w) => l(R)(b)
|
|
2088
1808
|
}, {
|
|
2089
|
-
default:
|
|
2090
|
-
|
|
1809
|
+
default: S(() => [
|
|
1810
|
+
W(Y(b.name), 1)
|
|
2091
1811
|
]),
|
|
2092
1812
|
_: 2
|
|
2093
1813
|
}, 1032, ["onClick"]))), 128))
|
|
2094
|
-
])) :
|
|
2095
|
-
|
|
2096
|
-
|
|
1814
|
+
])) : J("", !0),
|
|
1815
|
+
at((h(), I("div", _o, [
|
|
1816
|
+
l(a) ? (h(), V(l(lt), {
|
|
2097
1817
|
key: 0,
|
|
2098
1818
|
ref_key: "formRef",
|
|
2099
|
-
ref:
|
|
1819
|
+
ref: u,
|
|
2100
1820
|
cols: 24,
|
|
2101
1821
|
"margin-right": "80px",
|
|
2102
|
-
rules:
|
|
2103
|
-
form:
|
|
1822
|
+
rules: l(m),
|
|
1823
|
+
form: l(o).data,
|
|
2104
1824
|
class: "form-preview-page",
|
|
2105
1825
|
alignType: "horizontal"
|
|
2106
1826
|
}, {
|
|
2107
|
-
default:
|
|
2108
|
-
(
|
|
2109
|
-
key:
|
|
2110
|
-
setting:
|
|
1827
|
+
default: S(() => [
|
|
1828
|
+
(h(!0), I(ee, null, ye(l(n), (b) => (h(), V(ce(l(ve)[b.ctrlType]), {
|
|
1829
|
+
key: b.name,
|
|
1830
|
+
setting: b,
|
|
2111
1831
|
isView: r.isView,
|
|
2112
|
-
store:
|
|
1832
|
+
store: l(o)
|
|
2113
1833
|
}, null, 8, ["setting", "isView", "store"]))), 128))
|
|
2114
1834
|
]),
|
|
2115
1835
|
_: 1
|
|
2116
|
-
}, 8, ["rules", "form"])) :
|
|
1836
|
+
}, 8, ["rules", "form"])) : J("", !0)
|
|
2117
1837
|
])), [
|
|
2118
|
-
[
|
|
1838
|
+
[l(ut)]
|
|
2119
1839
|
])
|
|
2120
1840
|
]));
|
|
2121
1841
|
}
|
|
2122
|
-
}),
|
|
1842
|
+
}), Vo = /* @__PURE__ */ me(wo, [["__scopeId", "data-v-993c1451"]]), Uo = Ge(Vo);
|
|
2123
1843
|
export {
|
|
2124
|
-
|
|
2125
|
-
|
|
1844
|
+
Uo as DasProcessForm,
|
|
1845
|
+
Uo as default
|
|
2126
1846
|
};
|