sohelp-eleplus 1.1.1-8.beta.1
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/README.md +35 -0
- package/cache/DictCache.js +58 -0
- package/cache/ModuleCache.js +322 -0
- package/components.js +46 -0
- package/core-export.js +4 -0
- package/http/CrudHttp.js +115 -0
- package/http/DictHttp.js +12 -0
- package/http/ModuleHttp.js +68 -0
- package/http/SohelpHttp.js +125 -0
- package/index.js +6 -0
- package/installer.js +8 -0
- package/lang/en_US.js +4 -0
- package/lang/zh_CN.js +4 -0
- package/lang/zh_TW.js +4 -0
- package/package.json +9 -0
- package/sohelp-ace-editor/index.vue +198 -0
- package/sohelp-application-select/index.vue +15 -0
- package/sohelp-autocode/index.vue +53 -0
- package/sohelp-calendar-view/index.vue +11 -0
- package/sohelp-card-view/index.vue +11 -0
- package/sohelp-condition/index.vue +210 -0
- package/sohelp-cry-input/index.vue +64 -0
- package/sohelp-date/index.vue +27 -0
- package/sohelp-datetime/index.vue +44 -0
- package/sohelp-datetime-picker/index.vue +86 -0
- package/sohelp-datetime-range/index.vue +59 -0
- package/sohelp-dict/index.vue +206 -0
- package/sohelp-dict/props.js +68 -0
- package/sohelp-drawer/index.vue +50 -0
- package/sohelp-drop-card/index.vue +94 -0
- package/sohelp-drop-card/props.js +68 -0
- package/sohelp-dyn-select/index.vue +99 -0
- package/sohelp-dyn-select/props.js +67 -0
- package/sohelp-dyn-tree/index.vue +82 -0
- package/sohelp-dyn-tree-select/index.vue +114 -0
- package/sohelp-entity-form/index.vue +524 -0
- package/sohelp-entity-grid/index.vue +30 -0
- package/sohelp-file-upload/index.vue +218 -0
- package/sohelp-filter-scheme/components/condition.vue +102 -0
- package/sohelp-filter-scheme/components/filter.vue +45 -0
- package/sohelp-filter-scheme/components/keywords.vue +15 -0
- package/sohelp-filter-scheme/components/scheme.vue +49 -0
- package/sohelp-filter-scheme/index.vue +113 -0
- package/sohelp-grid/SohelpGridConfig.js~ +408 -0
- package/sohelp-grid/components/filter-condition-item.vue +298 -0
- package/sohelp-grid/index.vue +1965 -0
- package/sohelp-grid/js/ConditionType.js +101 -0
- package/sohelp-grid/js/DefaultGridOptions.js +145 -0
- package/sohelp-grid/js/DefaultProps.js +27 -0
- package/sohelp-grid/js/SohelpConfigFunction.js +0 -0
- package/sohelp-grid/js/SohelpGridConfig.js +101 -0
- package/sohelp-grid/js/useSohelpGridConfig.js +525 -0
- package/sohelp-grid-select/index.vue +245 -0
- package/sohelp-grid-view/filter/config/grid-filter-condition.vue +221 -0
- package/sohelp-grid-view/filter/config/grid-filter-config.vue +27 -0
- package/sohelp-grid-view/filter/config/grid-filter-field.vue +378 -0
- package/sohelp-grid-view/filter/config/grid-filter-keywords.vue +310 -0
- package/sohelp-grid-view/filter/config/grid-filter-list.vue +313 -0
- package/sohelp-grid-view/filter/config/grid-filter-scheme.vue +264 -0
- package/sohelp-grid-view/filter/config/grid-filter-sort.vue +310 -0
- package/sohelp-grid-view/filter/config/index.vue +206 -0
- package/sohelp-grid-view/filter/filter-form.vue +446 -0
- package/sohelp-grid-view/filter/filter-toolbar.vue +110 -0
- package/sohelp-grid-view/filter/index.vue +160 -0
- package/sohelp-grid-view/index.vue +379 -0
- package/sohelp-grid-view-select/index.vue +141 -0
- package/sohelp-group-view/index.vue +11 -0
- package/sohelp-icon-select/icons/AnalysisOutlined.vue +22 -0
- package/sohelp-icon-select/icons/ApplicationOutlined.vue +21 -0
- package/sohelp-icon-select/icons/AppstoreAddOutlined.vue +28 -0
- package/sohelp-icon-select/icons/AppstoreOutlined.vue +30 -0
- package/sohelp-icon-select/icons/ArrowDown.vue +21 -0
- package/sohelp-icon-select/icons/ArrowDownOutlined.vue +20 -0
- package/sohelp-icon-select/icons/ArrowLeft.vue +21 -0
- package/sohelp-icon-select/icons/ArrowLeftOutlined.vue +20 -0
- package/sohelp-icon-select/icons/ArrowRight.vue +21 -0
- package/sohelp-icon-select/icons/ArrowRightOutlined.vue +20 -0
- package/sohelp-icon-select/icons/ArrowUp.vue +21 -0
- package/sohelp-icon-select/icons/ArrowUpOutlined.vue +20 -0
- package/sohelp-icon-select/icons/BellOutlined.vue +21 -0
- package/sohelp-icon-select/icons/BookOutlined.vue +21 -0
- package/sohelp-icon-select/icons/CalendarOutlined.vue +19 -0
- package/sohelp-icon-select/icons/CaretDownFilled.vue +13 -0
- package/sohelp-icon-select/icons/CaretUpFilled.vue +13 -0
- package/sohelp-icon-select/icons/CheckCircleFilled.vue +15 -0
- package/sohelp-icon-select/icons/CheckCircleOutlined.vue +23 -0
- package/sohelp-icon-select/icons/CheckOutlined.vue +20 -0
- package/sohelp-icon-select/icons/CityOutlined.vue +22 -0
- package/sohelp-icon-select/icons/ClockCircleOutlined.vue +23 -0
- package/sohelp-icon-select/icons/CloseCircleFilled.vue +15 -0
- package/sohelp-icon-select/icons/CloseCircleOutlined.vue +22 -0
- package/sohelp-icon-select/icons/CloseOutlined.vue +20 -0
- package/sohelp-icon-select/icons/CloudUploadOutlined.vue +23 -0
- package/sohelp-icon-select/icons/ClusterOutlined.vue +21 -0
- package/sohelp-icon-select/icons/CodeOutlined.vue +22 -0
- package/sohelp-icon-select/icons/ColumnHeightOutlined.vue +18 -0
- package/sohelp-icon-select/icons/CompassOutlined.vue +22 -0
- package/sohelp-icon-select/icons/CompressOutlined.vue +23 -0
- package/sohelp-icon-select/icons/ConnectionOutlined.vue +24 -0
- package/sohelp-icon-select/icons/ControlOutlined.vue +27 -0
- package/sohelp-icon-select/icons/CopyOutlined.vue +22 -0
- package/sohelp-icon-select/icons/CpuOutlined.vue +22 -0
- package/sohelp-icon-select/icons/DashboardOutlined.vue +26 -0
- package/sohelp-icon-select/icons/DatabaseOutlined.vue +22 -0
- package/sohelp-icon-select/icons/DeleteOutlined.vue +22 -0
- package/sohelp-icon-select/icons/DesktopOutlined.vue +19 -0
- package/sohelp-icon-select/icons/DownloadOutlined.vue +21 -0
- package/sohelp-icon-select/icons/DragOutlined.vue +22 -0
- package/sohelp-icon-select/icons/EditOutlined.vue +21 -0
- package/sohelp-icon-select/icons/EllipsisOutlined.vue +15 -0
- package/sohelp-icon-select/icons/EnvironmentOutlined.vue +22 -0
- package/sohelp-icon-select/icons/ExclamationCircleFilled.vue +15 -0
- package/sohelp-icon-select/icons/ExpandOutlined.vue +23 -0
- package/sohelp-icon-select/icons/FileOutlined.vue +22 -0
- package/sohelp-icon-select/icons/FilterFilled.vue +15 -0
- package/sohelp-icon-select/icons/FolderAddOutlined.vue +20 -0
- package/sohelp-icon-select/icons/FolderOutlined.vue +19 -0
- package/sohelp-icon-select/icons/FormOutlined.vue +20 -0
- package/sohelp-icon-select/icons/FullscreenExitOutlined.vue +16 -0
- package/sohelp-icon-select/icons/FullscreenOutlined.vue +16 -0
- package/sohelp-icon-select/icons/FundOutlined.vue +20 -0
- package/sohelp-icon-select/icons/GlobalOutlined.vue +15 -0
- package/sohelp-icon-select/icons/HolderOutlined.vue +18 -0
- package/sohelp-icon-select/icons/HomeOutlined.vue +19 -0
- package/sohelp-icon-select/icons/IdcardOutlined.vue +25 -0
- package/sohelp-icon-select/icons/InfoCircleFilled.vue +15 -0
- package/sohelp-icon-select/icons/LinkOutlined.vue +15 -0
- package/sohelp-icon-select/icons/LoadingDotOutlined.vue +21 -0
- package/sohelp-icon-select/icons/LoadingOutlined.vue +19 -0
- package/sohelp-icon-select/icons/LockOutlined.vue +21 -0
- package/sohelp-icon-select/icons/LogOutlined.vue +22 -0
- package/sohelp-icon-select/icons/LogoutOutlined.vue +22 -0
- package/sohelp-icon-select/icons/MailOutlined.vue +19 -0
- package/sohelp-icon-select/icons/MenuFoldOutlined.vue +17 -0
- package/sohelp-icon-select/icons/MenuUnfoldOutlined.vue +17 -0
- package/sohelp-icon-select/icons/MessageOutlined.vue +22 -0
- package/sohelp-icon-select/icons/MinusCircleOutlined.vue +22 -0
- package/sohelp-icon-select/icons/MobileOutlined.vue +20 -0
- package/sohelp-icon-select/icons/MoonOutlined.vue +21 -0
- package/sohelp-icon-select/icons/MoreOutlined.vue +15 -0
- package/sohelp-icon-select/icons/PauseFilled.vue +14 -0
- package/sohelp-icon-select/icons/PieChartOutlined.vue +20 -0
- package/sohelp-icon-select/icons/PlayFilled.vue +13 -0
- package/sohelp-icon-select/icons/PlusCircleOutlined.vue +22 -0
- package/sohelp-icon-select/icons/PlusOutlined.vue +19 -0
- package/sohelp-icon-select/icons/ProtectOutlined.vue +21 -0
- package/sohelp-icon-select/icons/QuestionCircleFilled.vue +15 -0
- package/sohelp-icon-select/icons/QuestionCircleOutlined.vue +25 -0
- package/sohelp-icon-select/icons/ReloadOutlined.vue +22 -0
- package/sohelp-icon-select/icons/SearchOutlined.vue +21 -0
- package/sohelp-icon-select/icons/SettingOutlined.vue +24 -0
- package/sohelp-icon-select/icons/ShoppingOutlined.vue +19 -0
- package/sohelp-icon-select/icons/SortOutlined.vue +21 -0
- package/sohelp-icon-select/icons/StarFilled.vue +15 -0
- package/sohelp-icon-select/icons/StepBackwardFilled.vue +17 -0
- package/sohelp-icon-select/icons/StepForwardFilled.vue +17 -0
- package/sohelp-icon-select/icons/SuitcaseOutlined.vue +19 -0
- package/sohelp-icon-select/icons/SunOutlined.vue +29 -0
- package/sohelp-icon-select/icons/SwapOutlined.vue +21 -0
- package/sohelp-icon-select/icons/SyncOutlined.vue +21 -0
- package/sohelp-icon-select/icons/TableOutlined.vue +19 -0
- package/sohelp-icon-select/icons/TagOutlined.vue +20 -0
- package/sohelp-icon-select/icons/TimerOutlined.vue +22 -0
- package/sohelp-icon-select/icons/UndoOutlined.vue +22 -0
- package/sohelp-icon-select/icons/UnlockOutlined.vue +21 -0
- package/sohelp-icon-select/icons/UploadOutlined.vue +21 -0
- package/sohelp-icon-select/icons/UserOutlined.vue +21 -0
- package/sohelp-icon-select/icons/VerticalAlignMiddleOutlined.vue +15 -0
- package/sohelp-icon-select/icons/VerticalLeftOutlined.vue +13 -0
- package/sohelp-icon-select/icons/VerticalRightOutlined.vue +13 -0
- package/sohelp-icon-select/icons/WarningOutlined.vue +21 -0
- package/sohelp-icon-select/icons/ZoomInOutlined.vue +22 -0
- package/sohelp-icon-select/icons/ZoomOutOutlined.vue +22 -0
- package/sohelp-icon-select/icons/index.js +106 -0
- package/sohelp-icon-select/icons/index.ts +106 -0
- package/sohelp-icon-select/index.vue +95 -0
- package/sohelp-icon-select/vxeui-icon.js +90 -0
- package/sohelp-image-upload/index.vue +286 -0
- package/sohelp-input/index.vue +39 -0
- package/sohelp-modal/index.vue +72 -0
- package/sohelp-module/index.vue +54 -0
- package/sohelp-module/useModalManager.js +89 -0
- package/sohelp-module/useSohelpModule.js +64 -0
- package/sohelp-number-input/index.vue +32 -0
- package/sohelp-number-range/index.vue +135 -0
- package/sohelp-org-select/index.vue +30 -0
- package/sohelp-org-tree/index.vue +18 -0
- package/sohelp-org-tree-select/index.vue +93 -0
- package/sohelp-org-user-tree/index.vue +26 -0
- package/sohelp-org-user-tree-select/index.vue +11 -0
- package/sohelp-pagination/index.vue +11 -0
- package/sohelp-power/index.vue +105 -0
- package/sohelp-pro-form/components/pro-form-footer.vue +44 -0
- package/sohelp-pro-form/components/pro-form-item.vue +1133 -0
- package/sohelp-pro-form/index.vue +257 -0
- package/sohelp-pro-form/util.js +140 -0
- package/sohelp-pro-layout/index.vue +11 -0
- package/sohelp-pro-table/index.vue +14 -0
- package/sohelp-process/index.vue +216 -0
- package/sohelp-rate/index.vue +56 -0
- package/sohelp-rate/props.js +71 -0
- package/sohelp-relation/index.vue +11 -0
- package/sohelp-rich-text/index.vue +242 -0
- package/sohelp-rich-text/util.js +231 -0
- package/sohelp-richtext/index.vue +10 -0
- package/sohelp-role-select/index.vue +33 -0
- package/sohelp-search/components/search-config.vue +0 -0
- package/sohelp-search/index.vue +49 -0
- package/sohelp-search-pro-form/index.vue +11 -0
- package/sohelp-select/index.vue +120 -0
- package/sohelp-split-panel/index.vue +15 -0
- package/sohelp-switch/index.vue +56 -0
- package/sohelp-table/index.vue +151 -0
- package/sohelp-tenant-select/index.vue +128 -0
- package/sohelp-text/index.vue +14 -0
- package/sohelp-textarea-input/index.vue +36 -0
- package/sohelp-time/index.vue +10 -0
- package/sohelp-tree/index.vue +37 -0
- package/sohelp-tree-select/index.vue +18 -0
- package/sohelp-user-select/index.vue +44 -0
- package/sohelp-user-select/index.vue~ +53 -0
- package/sohelp-user-select/props.js +71 -0
- package/sohelp-user-tag/index.vue +12 -0
- package/sohelp-user-tree/index.vue +11 -0
- package/sohelp-vform-drawer/index.vue +40 -0
- package/sohelp-vform-eleplus/favicon.ico +0 -0
- package/sohelp-vform-eleplus/index.vue +297 -0
- package/sohelp-vform-eleplus/preview.html +91 -0
- package/sohelp-vform-eleplus/render.es.js +72433 -0
- package/sohelp-vform-eleplus/render.style.css +16 -0
- package/sohelp-vform-eleplus/render.umd.js +57 -0
- package/sohelp-vform-eleplus/tinymce/langs/zh_CN.js +462 -0
- package/sohelp-vform-eleplus/tinymce/langs/zh_TW.js +419 -0
- package/sohelp-vform-eleplus/tinymce/skins/content/dark/content.css +72 -0
- package/sohelp-vform-eleplus/tinymce/skins/content/dark/content.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/content/default/content.css +67 -0
- package/sohelp-vform-eleplus/tinymce/skins/content/default/content.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/content/document/content.css +72 -0
- package/sohelp-vform-eleplus/tinymce/skins/content/document/content.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/content/writer/content.css +68 -0
- package/sohelp-vform-eleplus/tinymce/skins/content/writer/content.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide/content.css +732 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide/content.inline.css +726 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide/content.inline.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide/content.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide/content.mobile.css +29 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide/content.mobile.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide/fonts/tinymce-mobile.woff +0 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide/skin.css +3047 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide/skin.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide/skin.mobile.css +673 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide/skin.mobile.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide/skin.shadowdom.css +37 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide/skin.shadowdom.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide-dark/content.css +714 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide-dark/content.inline.css +726 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide-dark/content.inline.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide-dark/content.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide-dark/content.mobile.css +29 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide-dark/content.mobile.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide-dark/fonts/tinymce-mobile.woff +0 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide-dark/skin.css +3047 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide-dark/skin.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide-dark/skin.mobile.css +673 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide-dark/skin.mobile.min.css +7 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide-dark/skin.shadowdom.css +37 -0
- package/sohelp-vform-eleplus/tinymce/skins/ui/oxide-dark/skin.shadowdom.min.css +7 -0
- package/sohelp-vform-modal/index.vue +41 -0
- package/sohelp-vform-select/index.vue +11 -0
- package/sohelp-vform-vant/favicon.ico +0 -0
- package/sohelp-vform-vant/render.es.js +14608 -0
- package/sohelp-vform-vant/render.style.css +1 -0
- package/sohelp-vform-vant/render.umd.js +22 -0
- package/sohelp-vxe-grid/DefaultGridOptions.js +90 -0
- package/sohelp-vxe-grid/DefaultProps.js +27 -0
- package/sohelp-vxe-grid/SohelpGridConfig.js +143 -0
- package/sohelp-vxe-grid/index.vue +475 -0
- package/sohelp-vxe-grid-select/index.vue +148 -0
- package/sohelp-vxe-table/index.vue +184 -0
- package/sohelp-workflow/index.vue +495 -0
- package/sohelp-workflow/nodeWrap.vue +53 -0
- package/sohelp-workflow/nodes/addNode.vue +27 -0
- package/sohelp-workflow/nodes/approver.vue +125 -0
- package/sohelp-workflow/nodes/branch.vue +434 -0
- package/sohelp-workflow/nodes/promoter.vue +80 -0
- package/sohelp-workflow/nodes/send.vue +95 -0
- package/sohelp-workflow-drawer/components/approval-modal.vue +182 -0
- package/sohelp-workflow-drawer/components/draw-box.vue +141 -0
- package/sohelp-workflow-drawer/components/form.vue +78 -0
- package/sohelp-workflow-drawer/components/table.vue +153 -0
- package/sohelp-workflow-drawer/components/timeline.vue +189 -0
- package/sohelp-workflow-drawer/components/workflow.vue +68 -0
- package/sohelp-workflow-drawer/index.vue +311 -0
- package/sohelp-workflow-drawer/js/index.js +119 -0
- package/utils/ProFormConvertUtil.js +76 -0
- package/utils/core.js +310 -0
- package/utils/use-form-data.js +48 -0
- package/utils/use-mobile.js +43 -0
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
export const comparisonOptions = [
|
|
2
|
+
{
|
|
3
|
+
title: "包含",
|
|
4
|
+
i18n: "grid.filter.like",
|
|
5
|
+
command: "LIKE"
|
|
6
|
+
},
|
|
7
|
+
{
|
|
8
|
+
title: "不包含",
|
|
9
|
+
i18n: "grid.filter.not_like",
|
|
10
|
+
command: "NOT_LIKE"
|
|
11
|
+
},
|
|
12
|
+
{
|
|
13
|
+
title: "等于",
|
|
14
|
+
i18n: "grid.filter.eq",
|
|
15
|
+
command: "EQ"
|
|
16
|
+
},
|
|
17
|
+
{
|
|
18
|
+
title: "不等于",
|
|
19
|
+
i18n: "grid.filter.ne",
|
|
20
|
+
command: "NE"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
title: "大于",
|
|
24
|
+
i18n: "grid.filter.gt",
|
|
25
|
+
command: "GT"
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
title: "小于",
|
|
29
|
+
i18n: "grid.filter.lt",
|
|
30
|
+
command: "LT"
|
|
31
|
+
},
|
|
32
|
+
{
|
|
33
|
+
title: "大于等于",
|
|
34
|
+
i18n: "grid.filter.gte",
|
|
35
|
+
command: "GTE"
|
|
36
|
+
},
|
|
37
|
+
{
|
|
38
|
+
title: "小于等于",
|
|
39
|
+
i18n: "grid.filter.lte",
|
|
40
|
+
command: "LTE"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
title: "左包含",
|
|
44
|
+
i18n: "grid.filter.left_like",
|
|
45
|
+
command: "LEFT_LIKE"
|
|
46
|
+
},
|
|
47
|
+
{
|
|
48
|
+
title: "右包含",
|
|
49
|
+
i18n: "grid.filter.right_like",
|
|
50
|
+
command: "RIGHT_LIKE"
|
|
51
|
+
},
|
|
52
|
+
{
|
|
53
|
+
title: "为空",
|
|
54
|
+
i18n: "grid.filter.empty",
|
|
55
|
+
command: "EMPTY"
|
|
56
|
+
},
|
|
57
|
+
{
|
|
58
|
+
title: "不为空",
|
|
59
|
+
i18n: "grid.filter.not_empty",
|
|
60
|
+
command: "NOT_EMPTY"
|
|
61
|
+
}
|
|
62
|
+
];
|
|
63
|
+
|
|
64
|
+
export const TYPE = {
|
|
65
|
+
STRING: ["LIKE", "NOT_LIKE", "LEFT_LIKE", "RIGHT_LIKE", "EQ", "NE", "EMPTY", "NOT_EMPTY"],
|
|
66
|
+
NUMBER: ["LIKE", "NOT_LIKE", "EQ", "NE", "EMPTY", "NOT_EMPTY", "LT", "GT", "GTE", "LTE"],
|
|
67
|
+
RELATION: ["LIKE", "NOT_LIKE", "EMPTY", "NOT_EMPTY"],
|
|
68
|
+
DICT: ["LIKE", "NOT_LIKE", "EMPTY", "NOT_EMPTY"],
|
|
69
|
+
DATE: ["LIKE", "NOT_LIKE", "EMPTY", "NOT_EMPTY"],
|
|
70
|
+
BOOLEAN: ["EQ", "NE", "EMPTY", "NOT_EMPTY"],
|
|
71
|
+
ALL: comparisonOptions.map((item) => item.command)
|
|
72
|
+
};
|
|
73
|
+
|
|
74
|
+
export const comparisonType = {
|
|
75
|
+
"": TYPE.STRING,
|
|
76
|
+
|
|
77
|
+
SohelpAutocode:TYPE.STRING,
|
|
78
|
+
SohelpDict: TYPE.RELATION,
|
|
79
|
+
SohelpDynSelect: TYPE.ALL,
|
|
80
|
+
SohelpUserSelect: TYPE.RELATION,
|
|
81
|
+
SohelpRoleSelect: TYPE.RELATION,
|
|
82
|
+
SohelpOrgTreeSelect: TYPE.RELATION,
|
|
83
|
+
SohelpRate: TYPE.NUMBER,
|
|
84
|
+
SohelpProcess: TYPE.NUMBER,
|
|
85
|
+
SohelpTreeSelect: TYPE.RELATION,
|
|
86
|
+
SohelpTableSelect: TYPE.RELATION,
|
|
87
|
+
SohelpFileUpload: TYPE.RELATION,
|
|
88
|
+
SohelpImageUpload: TYPE.RELATION,
|
|
89
|
+
SohelpSwitch: TYPE.BOOLEAN,
|
|
90
|
+
SohelpNumberInput: TYPE.NUMBER,
|
|
91
|
+
SohelpSelect: TYPE.ALL,
|
|
92
|
+
SohelpTextarea: TYPE.STRING,
|
|
93
|
+
SohelpInput: TYPE.STRING,
|
|
94
|
+
SohelpRichText: TYPE.STRING,
|
|
95
|
+
SohelpRadio: TYPE.ALL,
|
|
96
|
+
SohelpCheckbox: TYPE.ALL,
|
|
97
|
+
SohelpDatetimeRange: TYPE.NUMBER,
|
|
98
|
+
SohelpDate: TYPE.NUMBER,
|
|
99
|
+
SohelpDatetime: TYPE.NUMBER,
|
|
100
|
+
SohelpTime: TYPE.NUMBER
|
|
101
|
+
};
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
id: 'sohelp-grid',
|
|
3
|
+
customConfig: {
|
|
4
|
+
//默认不会将列设置保存到本地存储中
|
|
5
|
+
storage: false,
|
|
6
|
+
placement: 'top-right' // 自定义列工具栏位置
|
|
7
|
+
},
|
|
8
|
+
rowConfig: {
|
|
9
|
+
useKey: true, //sortable 排序
|
|
10
|
+
sHover: true,
|
|
11
|
+
isCurrent: true,
|
|
12
|
+
resizable: true,
|
|
13
|
+
drag: true
|
|
14
|
+
},
|
|
15
|
+
rowDragConfig: {
|
|
16
|
+
showGuidesStatus: true
|
|
17
|
+
},
|
|
18
|
+
resizableConfig: {
|
|
19
|
+
isAllRowDrag: true,
|
|
20
|
+
isAllColumnDrag: true
|
|
21
|
+
},
|
|
22
|
+
filterConfig: {
|
|
23
|
+
remote: true,
|
|
24
|
+
transfer: true
|
|
25
|
+
},
|
|
26
|
+
editConfig: {
|
|
27
|
+
trigger: 'click',
|
|
28
|
+
mode: 'cell',
|
|
29
|
+
autoClear: false,
|
|
30
|
+
autoFocus: true,
|
|
31
|
+
showInsertStatus: true,
|
|
32
|
+
showUpdateStatus: true
|
|
33
|
+
},
|
|
34
|
+
keyboardConfig: {
|
|
35
|
+
isEdit: true,
|
|
36
|
+
isArrow: true,
|
|
37
|
+
isEnter: true,
|
|
38
|
+
isTab: true,
|
|
39
|
+
isDel: true,
|
|
40
|
+
isBack: true,
|
|
41
|
+
editMode: 'insert'
|
|
42
|
+
},
|
|
43
|
+
mouseConfig: {
|
|
44
|
+
selected: true
|
|
45
|
+
},
|
|
46
|
+
validConfig: {
|
|
47
|
+
msgMode: 'full'
|
|
48
|
+
},
|
|
49
|
+
checkboxConfig: {
|
|
50
|
+
highlight: true,
|
|
51
|
+
range: true,
|
|
52
|
+
reserve: true
|
|
53
|
+
},
|
|
54
|
+
scrollX: {
|
|
55
|
+
gt: 0,
|
|
56
|
+
//自动启用纵向虚拟滚动
|
|
57
|
+
enabled: true
|
|
58
|
+
},
|
|
59
|
+
scrollY: {
|
|
60
|
+
gt: 0,
|
|
61
|
+
//自动启用纵向虚拟滚动
|
|
62
|
+
enabled: true
|
|
63
|
+
},
|
|
64
|
+
showFooter: false,
|
|
65
|
+
round: true,
|
|
66
|
+
border: true,
|
|
67
|
+
stripe: false,
|
|
68
|
+
loading: false,
|
|
69
|
+
minHeight: 300,
|
|
70
|
+
maxHeight: '100%',
|
|
71
|
+
size: 'mini',
|
|
72
|
+
params: {},
|
|
73
|
+
pagerConfig: {
|
|
74
|
+
enabled: true,
|
|
75
|
+
total: 0,
|
|
76
|
+
currentPage: 1,
|
|
77
|
+
pageSize: 50,
|
|
78
|
+
align: 'right'
|
|
79
|
+
},
|
|
80
|
+
customConfig: {
|
|
81
|
+
immediate: false,
|
|
82
|
+
storage: {
|
|
83
|
+
visible: true, // 保存列显示/隐藏状态
|
|
84
|
+
resizable: true, // 保存列宽调整
|
|
85
|
+
sort: true, // 保存列排序
|
|
86
|
+
fixed: true
|
|
87
|
+
},
|
|
88
|
+
slots: {
|
|
89
|
+
header: 'setting'
|
|
90
|
+
}
|
|
91
|
+
},
|
|
92
|
+
columnConfig: {
|
|
93
|
+
isCurrent: true,
|
|
94
|
+
resizable: true
|
|
95
|
+
},
|
|
96
|
+
sortConfig: {
|
|
97
|
+
remote: true
|
|
98
|
+
},
|
|
99
|
+
formConfig: {
|
|
100
|
+
data: {},
|
|
101
|
+
items: []
|
|
102
|
+
},
|
|
103
|
+
toolbarConfig: {
|
|
104
|
+
refresh: true,
|
|
105
|
+
custom: true, //是否开启自定义列工具
|
|
106
|
+
slots: {
|
|
107
|
+
tools: 'toolbarTools'
|
|
108
|
+
},
|
|
109
|
+
buttons: []
|
|
110
|
+
},
|
|
111
|
+
menuConfig: {
|
|
112
|
+
//右键菜单配置
|
|
113
|
+
header: {
|
|
114
|
+
options: [
|
|
115
|
+
[
|
|
116
|
+
{
|
|
117
|
+
code: 'all-select',
|
|
118
|
+
name: '全选',
|
|
119
|
+
prefixConfig: { icon: 'vxe-icon-download' },
|
|
120
|
+
visible: false
|
|
121
|
+
},
|
|
122
|
+
{
|
|
123
|
+
code: 'revert-select',
|
|
124
|
+
name: '反选',
|
|
125
|
+
prefixConfig: { icon: 'vxe-icon-download' },
|
|
126
|
+
visible: false
|
|
127
|
+
}
|
|
128
|
+
]
|
|
129
|
+
]
|
|
130
|
+
},
|
|
131
|
+
body: {
|
|
132
|
+
options: []
|
|
133
|
+
},
|
|
134
|
+
footer: {
|
|
135
|
+
options: []
|
|
136
|
+
}
|
|
137
|
+
},
|
|
138
|
+
editRules: {
|
|
139
|
+
// customer_name: [
|
|
140
|
+
// { required: true, message: '必须填写' }
|
|
141
|
+
// ]
|
|
142
|
+
},
|
|
143
|
+
columns: [],
|
|
144
|
+
footerData: []
|
|
145
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
export default {
|
|
2
|
+
/**网格列表配置ID*/
|
|
3
|
+
refid: {
|
|
4
|
+
type: String,
|
|
5
|
+
default: '',
|
|
6
|
+
required: true
|
|
7
|
+
},
|
|
8
|
+
/**自动加载数据*/
|
|
9
|
+
autoLoad: {
|
|
10
|
+
type: Boolean,
|
|
11
|
+
default: true
|
|
12
|
+
},
|
|
13
|
+
/**数据源URL**/
|
|
14
|
+
url: {
|
|
15
|
+
type: String,
|
|
16
|
+
default: ''
|
|
17
|
+
},
|
|
18
|
+
/**允许行拖动*/
|
|
19
|
+
rowDrag: Boolean,
|
|
20
|
+
/**
|
|
21
|
+
* 是否实体列表
|
|
22
|
+
*/
|
|
23
|
+
isEntityGrid: {
|
|
24
|
+
type: Boolean,
|
|
25
|
+
default: false
|
|
26
|
+
}
|
|
27
|
+
}
|
|
File without changes
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
import { reactive } from "vue";
|
|
2
|
+
import { moduleCache } from "../../cache/ModuleCache";
|
|
3
|
+
import _DefaultGridOptions from "./DefaultGridOptions";
|
|
4
|
+
import { useMobile } from "@/utils/use-mobile";
|
|
5
|
+
|
|
6
|
+
const { mobile } = useMobile();
|
|
7
|
+
|
|
8
|
+
function deepClone(obj) {
|
|
9
|
+
return JSON.parse(JSON.stringify(obj));
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
// 动态生成cellStyle函数
|
|
13
|
+
function createDynamicCellStyle(styleConfigs = []) {
|
|
14
|
+
// 预编译条件表达式为函数
|
|
15
|
+
const compiledConfigs = styleConfigs.map((config) => ({
|
|
16
|
+
...config,
|
|
17
|
+
conditionFn: new Function("row", `return ${config.condition}`)
|
|
18
|
+
}));
|
|
19
|
+
|
|
20
|
+
return function({ row, column }) {
|
|
21
|
+
const _config = compiledConfigs.filter((c) => c.name === column.field);
|
|
22
|
+
if (!_config) return null;
|
|
23
|
+
try {
|
|
24
|
+
for (const config of _config) {
|
|
25
|
+
const conditionFn = new Function("row", `return ${config.condition}`);
|
|
26
|
+
if (conditionFn(row)) {
|
|
27
|
+
return {
|
|
28
|
+
color: config.fontColor,
|
|
29
|
+
backgroundColor: config.bgColor,
|
|
30
|
+
fontWeight: config?.bold ? "bold" : "",
|
|
31
|
+
fontStyle: config.italic ? "italic" : "",
|
|
32
|
+
textDecoration: config.strikethrough ? "line-through" : config.underline ? "underline" : ""
|
|
33
|
+
};
|
|
34
|
+
}
|
|
35
|
+
}
|
|
36
|
+
} catch (e) {
|
|
37
|
+
console.error("条件解析错误:", e);
|
|
38
|
+
}
|
|
39
|
+
return null;
|
|
40
|
+
};
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
|
|
45
|
+
/**
|
|
46
|
+
* 统计计算
|
|
47
|
+
* @param data
|
|
48
|
+
* @param type
|
|
49
|
+
*/
|
|
50
|
+
export const calcSummary = (data, type) => {
|
|
51
|
+
if (!data?.length) {
|
|
52
|
+
return "";
|
|
53
|
+
}
|
|
54
|
+
switch (type) {
|
|
55
|
+
case "count" :
|
|
56
|
+
return data.length;
|
|
57
|
+
case "sum" :
|
|
58
|
+
return data.reduce((a, b) => a + b);
|
|
59
|
+
case "remotesum" :
|
|
60
|
+
return "";
|
|
61
|
+
case "min" :
|
|
62
|
+
return Math.min(...data);
|
|
63
|
+
case "max" :
|
|
64
|
+
return Math.max(...data);
|
|
65
|
+
case "average" :
|
|
66
|
+
return (data.reduce((a, b) => a + b, 0) / data.length)?.toFixed(3);
|
|
67
|
+
case "custom" :
|
|
68
|
+
return "custom";
|
|
69
|
+
case "custom1" :
|
|
70
|
+
return "custom1";
|
|
71
|
+
case "custom2" :
|
|
72
|
+
return "custom2";
|
|
73
|
+
case "custom3" :
|
|
74
|
+
return "custom3";
|
|
75
|
+
case "custom4" :
|
|
76
|
+
return "custom4";
|
|
77
|
+
default:
|
|
78
|
+
break;
|
|
79
|
+
}
|
|
80
|
+
};
|
|
81
|
+
|
|
82
|
+
|
|
83
|
+
/**
|
|
84
|
+
* 转换成gridValue
|
|
85
|
+
*/
|
|
86
|
+
export const switchGridValue = (data) => {
|
|
87
|
+
for (let i = 0; i < data.length; i++) {
|
|
88
|
+
for (let key in data[i]) {
|
|
89
|
+
if (Array.isArray(data[i][key])) {
|
|
90
|
+
if(data[i][key][0]?.id){
|
|
91
|
+
data[i][key] = data[i][key].map((item) => item.id);
|
|
92
|
+
}
|
|
93
|
+
} else if (typeof data[i][key] === 'object') {
|
|
94
|
+
data[i][key] = data[i][key]?.id;
|
|
95
|
+
}
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
return data;
|
|
99
|
+
};
|
|
100
|
+
|
|
101
|
+
|