aldehyde 0.2.97 → 0.2.99
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/LICENSE +1 -1
- package/lib/controls/action/index.d.ts +16 -7
- package/lib/controls/action/index.d.ts.map +1 -1
- package/lib/controls/action/index.js +64 -48
- package/lib/controls/action/index.js.map +1 -1
- package/lib/controls/action/utils.d.ts +1 -1
- package/lib/controls/action/utils.d.ts.map +1 -1
- package/lib/controls/action/utils.js +6 -4
- package/lib/controls/action/utils.js.map +1 -1
- package/lib/controls/auto-complete/index.d.ts +1 -1
- package/lib/controls/auto-complete/index.d.ts.map +1 -1
- package/lib/controls/auto-complete/index.js +12 -6
- package/lib/controls/auto-complete/index.js.map +1 -1
- package/lib/controls/chemstruc/graph.d.ts +13 -4
- package/lib/controls/chemstruc/graph.d.ts.map +1 -1
- package/lib/controls/chemstruc/graph.js +40 -27
- package/lib/controls/chemstruc/graph.js.map +1 -1
- package/lib/controls/color-picker/index.d.ts +11 -2
- package/lib/controls/color-picker/index.d.ts.map +1 -1
- package/lib/controls/color-picker/index.js +23 -19
- package/lib/controls/color-picker/index.js.map +1 -1
- package/lib/controls/cquery/cquick-button.d.ts +11 -2
- package/lib/controls/cquery/cquick-button.d.ts.map +1 -1
- package/lib/controls/cquery/cquick-button.js +30 -28
- package/lib/controls/cquery/cquick-button.js.map +1 -1
- package/lib/controls/entity-select/entity-select.d.ts +12 -3
- package/lib/controls/entity-select/entity-select.d.ts.map +1 -1
- package/lib/controls/entity-select/entity-select.js +66 -64
- package/lib/controls/entity-select/entity-select.js.map +1 -1
- package/lib/controls/entity-select/lab-tree-select.d.ts +11 -2
- package/lib/controls/entity-select/lab-tree-select.d.ts.map +1 -1
- package/lib/controls/entity-select/lab-tree-select.js +26 -21
- package/lib/controls/entity-select/lab-tree-select.js.map +1 -1
- package/lib/controls/entity-select/popover-entity-select.d.ts +11 -2
- package/lib/controls/entity-select/popover-entity-select.d.ts.map +1 -1
- package/lib/controls/entity-select/popover-entity-select.js +30 -26
- package/lib/controls/entity-select/popover-entity-select.js.map +1 -1
- package/lib/controls/entry-control.d.ts +1 -1
- package/lib/controls/entry-control.d.ts.map +1 -1
- package/lib/controls/entry-control.js +152 -98
- package/lib/controls/entry-control.js.map +1 -1
- package/lib/controls/html-editor/tinymce.d.ts.map +1 -1
- package/lib/controls/input-number/index.d.ts +1 -1
- package/lib/controls/input-number/index.d.ts.map +1 -1
- package/lib/controls/input-number/index.js +31 -23
- package/lib/controls/input-number/index.js.map +1 -1
- package/lib/controls/input-range/index.d.ts +1 -1
- package/lib/controls/input-range/index.d.ts.map +1 -1
- package/lib/controls/input-range/index.js +9 -8
- package/lib/controls/input-range/index.js.map +1 -1
- package/lib/controls/password-setter/index.d.ts +9 -3
- package/lib/controls/password-setter/index.d.ts.map +1 -1
- package/lib/controls/password-setter/index.js +22 -14
- package/lib/controls/password-setter/index.js.map +1 -1
- package/lib/controls/progress/index.d.ts +1 -1
- package/lib/controls/progress/index.d.ts.map +1 -1
- package/lib/controls/progress/index.js +13 -6
- package/lib/controls/progress/index.js.map +1 -1
- package/lib/controls/relation-existion/index.d.ts +11 -2
- package/lib/controls/relation-existion/index.d.ts.map +1 -1
- package/lib/controls/relation-existion/index.js +30 -18
- package/lib/controls/relation-existion/index.js.map +1 -1
- package/lib/controls/rfield/index.d.ts +11 -2
- package/lib/controls/rfield/index.d.ts.map +1 -1
- package/lib/controls/rfield/index.js +33 -35
- package/lib/controls/rfield/index.js.map +1 -1
- package/lib/controls/signature/index.d.ts +10 -1
- package/lib/controls/signature/index.d.ts.map +1 -1
- package/lib/controls/signature/index.js +56 -31
- package/lib/controls/signature/index.js.map +1 -1
- package/lib/controls/steps/index.d.ts +1 -1
- package/lib/controls/steps/index.d.ts.map +1 -1
- package/lib/controls/steps/index.js +8 -6
- package/lib/controls/steps/index.js.map +1 -1
- package/lib/controls/text/ellipsis-text.d.ts +9 -0
- package/lib/controls/text/ellipsis-text.d.ts.map +1 -1
- package/lib/controls/text/ellipsis-text.js +13 -11
- package/lib/controls/text/ellipsis-text.js.map +1 -1
- package/lib/controls/upload/index.d.ts +10 -1
- package/lib/controls/upload/index.d.ts.map +1 -1
- package/lib/controls/upload/index.js +30 -21
- package/lib/controls/upload/index.js.map +1 -1
- package/lib/controls/view-control.d.ts +1 -1
- package/lib/controls/view-control.d.ts.map +1 -1
- package/lib/controls/view-control.js +118 -85
- package/lib/controls/view-control.js.map +1 -1
- package/lib/custom-page/def-custom-page.d.ts +5 -6
- package/lib/custom-page/def-custom-page.d.ts.map +1 -1
- package/lib/custom-page/def-custom-page.js +13 -12
- package/lib/custom-page/def-custom-page.js.map +1 -1
- package/lib/custom-page/dtmpl-custom-edit-modal-page.d.ts +10 -1
- package/lib/custom-page/dtmpl-custom-edit-modal-page.d.ts.map +1 -1
- package/lib/custom-page/dtmpl-custom-edit-modal-page.js +19 -7
- package/lib/custom-page/dtmpl-custom-edit-modal-page.js.map +1 -1
- package/lib/detail/button/bottom-submit-button-bar.d.ts +11 -2
- package/lib/detail/button/bottom-submit-button-bar.d.ts.map +1 -1
- package/lib/detail/button/bottom-submit-button-bar.js +20 -12
- package/lib/detail/button/bottom-submit-button-bar.js.map +1 -1
- package/lib/detail/button/cquery-button-bar.d.ts +12 -3
- package/lib/detail/button/cquery-button-bar.d.ts.map +1 -1
- package/lib/detail/button/cquery-button-bar.js +22 -18
- package/lib/detail/button/cquery-button-bar.js.map +1 -1
- package/lib/detail/button/fix-right-submit-button-bar.d.ts +11 -2
- package/lib/detail/button/fix-right-submit-button-bar.d.ts.map +1 -1
- package/lib/detail/button/fix-right-submit-button-bar.js +28 -23
- package/lib/detail/button/fix-right-submit-button-bar.js.map +1 -1
- package/lib/detail/edit/fields-edit-card.d.ts +11 -2
- package/lib/detail/edit/fields-edit-card.d.ts.map +1 -1
- package/lib/detail/edit/fields-edit-card.js +18 -19
- package/lib/detail/edit/fields-edit-card.js.map +1 -1
- package/lib/detail/edit/modal-row-edit.d.ts +11 -2
- package/lib/detail/edit/modal-row-edit.d.ts.map +1 -1
- package/lib/detail/edit/modal-row-edit.js +14 -11
- package/lib/detail/edit/modal-row-edit.js.map +1 -1
- package/lib/detail/edit/post-result/index.d.ts +1 -1
- package/lib/detail/edit/post-result/index.d.ts.map +1 -1
- package/lib/detail/edit/post-result/index.js +17 -12
- package/lib/detail/edit/post-result/index.js.map +1 -1
- package/lib/detail/edit/row-edit-card.d.ts +11 -2
- package/lib/detail/edit/row-edit-card.d.ts.map +1 -1
- package/lib/detail/edit/row-edit-card.js +23 -23
- package/lib/detail/edit/row-edit-card.js.map +1 -1
- package/lib/detail/rightbar/index.d.ts +12 -3
- package/lib/detail/rightbar/index.d.ts.map +1 -1
- package/lib/detail/rightbar/index.js +16 -9
- package/lib/detail/rightbar/index.js.map +1 -1
- package/lib/detail/view/act-dtmpl-view.d.ts +11 -2
- package/lib/detail/view/act-dtmpl-view.d.ts.map +1 -1
- package/lib/detail/view/act-dtmpl-view.js +26 -25
- package/lib/detail/view/act-dtmpl-view.js.map +1 -1
- package/lib/detail/view/dtmpl-view.d.ts +2 -2
- package/lib/detail/view/dtmpl-view.d.ts.map +1 -1
- package/lib/detail/view/dtmpl-view.js +40 -40
- package/lib/detail/view/dtmpl-view.js.map +1 -1
- package/lib/detail/view/modal-dtmpl-view.d.ts +10 -1
- package/lib/detail/view/modal-dtmpl-view.d.ts.map +1 -1
- package/lib/detail/view/modal-dtmpl-view.js +11 -8
- package/lib/detail/view/modal-dtmpl-view.js.map +1 -1
- package/lib/detail/view/snapshot-timeline.d.ts +11 -2
- package/lib/detail/view/snapshot-timeline.d.ts.map +1 -1
- package/lib/detail/view/snapshot-timeline.js +18 -16
- package/lib/detail/view/snapshot-timeline.js.map +1 -1
- package/lib/exportor/export-frame.d.ts +11 -2
- package/lib/exportor/export-frame.d.ts.map +1 -1
- package/lib/exportor/export-frame.js +41 -42
- package/lib/exportor/export-frame.js.map +1 -1
- package/lib/form/criteria-form.d.ts +2 -2
- package/lib/form/criteria-form.d.ts.map +1 -1
- package/lib/form/criteria-form.js +58 -45
- package/lib/form/criteria-form.js.map +1 -1
- package/lib/form/dtmpl-form.d.ts +11 -2
- package/lib/form/dtmpl-form.d.ts.map +1 -1
- package/lib/form/dtmpl-form.js +76 -61
- package/lib/form/dtmpl-form.js.map +1 -1
- package/lib/form/field-group-form.d.ts +12 -3
- package/lib/form/field-group-form.d.ts.map +1 -1
- package/lib/form/field-group-form.js +26 -18
- package/lib/form/field-group-form.js.map +1 -1
- package/lib/form/form-Item-group.d.ts +10 -1
- package/lib/form/form-Item-group.d.ts.map +1 -1
- package/lib/form/form-Item-group.js +43 -26
- package/lib/form/form-Item-group.js.map +1 -1
- package/lib/import/excel-import.d.ts +12 -3
- package/lib/import/excel-import.d.ts.map +1 -1
- package/lib/import/excel-import.js +69 -55
- package/lib/import/excel-import.js.map +1 -1
- package/lib/index.d.ts +42 -39
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +43 -39
- package/lib/index.js.map +1 -1
- package/lib/layout/MainPage.d.ts +1 -1
- package/lib/layout/MainPage.d.ts.map +1 -1
- package/lib/layout/MainPage.js +46 -36
- package/lib/layout/MainPage.js.map +1 -1
- package/lib/layout/footer/index.d.ts.map +1 -1
- package/lib/layout/header/index.d.ts +1 -1
- package/lib/layout/header/index.d.ts.map +1 -1
- package/lib/layout/header/index.js +16 -14
- package/lib/layout/header/index.js.map +1 -1
- package/lib/layout/menu/l2menu-quick-bar.d.ts +11 -2
- package/lib/layout/menu/l2menu-quick-bar.d.ts.map +1 -1
- package/lib/layout/menu/l2menu-quick-bar.js +24 -19
- package/lib/layout/menu/l2menu-quick-bar.js.map +1 -1
- package/lib/layout/menu/reset-password.d.ts +12 -3
- package/lib/layout/menu/reset-password.d.ts.map +1 -1
- package/lib/layout/menu/reset-password.js +52 -36
- package/lib/layout/menu/reset-password.js.map +1 -1
- package/lib/layout/menu/user-bar.d.ts +12 -3
- package/lib/layout/menu/user-bar.d.ts.map +1 -1
- package/lib/layout/menu/user-bar.js +72 -42
- package/lib/layout/menu/user-bar.js.map +1 -1
- package/lib/layout/menu/userinfo-bar.d.ts +10 -1
- package/lib/layout/menu/userinfo-bar.d.ts.map +1 -1
- package/lib/layout/menu/userinfo-bar.js +11 -10
- package/lib/layout/menu/userinfo-bar.js.map +1 -1
- package/lib/layout/sidebar/index.css +15 -4
- package/lib/layout/sidebar/index.d.ts +2 -2
- package/lib/layout/sidebar/index.d.ts.map +1 -1
- package/lib/layout/sidebar/index.js +19 -13
- package/lib/layout/sidebar/index.js.map +1 -1
- package/lib/locale/LocaleButton.d.ts +4 -0
- package/lib/locale/LocaleButton.d.ts.map +1 -0
- package/lib/locale/LocaleButton.js +24 -0
- package/lib/locale/LocaleButton.js.map +1 -0
- package/lib/locale/LocaleProvider.d.ts +13 -0
- package/lib/locale/LocaleProvider.d.ts.map +1 -0
- package/lib/locale/LocaleProvider.js +135 -0
- package/lib/locale/LocaleProvider.js.map +1 -0
- package/lib/locale/langMp.d.ts +16 -0
- package/lib/locale/langMp.d.ts.map +1 -0
- package/lib/locale/langMp.js +29 -0
- package/lib/locale/langMp.js.map +1 -0
- package/lib/locale/translate.d.ts +3 -0
- package/lib/locale/translate.d.ts.map +1 -0
- package/lib/locale/translate.js +74 -0
- package/lib/locale/translate.js.map +1 -0
- package/lib/locale/useLocale.d.ts +14 -0
- package/lib/locale/useLocale.d.ts.map +1 -0
- package/lib/locale/useLocale.js +34 -0
- package/lib/locale/useLocale.js.map +1 -0
- package/lib/login/login.d.ts +13 -3
- package/lib/login/login.d.ts.map +1 -1
- package/lib/login/login.js +38 -25
- package/lib/login/login.js.map +1 -1
- package/lib/login/router-login.d.ts +2 -2
- package/lib/login/router-login.d.ts.map +1 -1
- package/lib/login/router-login.js +33 -19
- package/lib/login/router-login.js.map +1 -1
- package/lib/module/dtmpl-edit-card.d.ts +11 -2
- package/lib/module/dtmpl-edit-card.d.ts.map +1 -1
- package/lib/module/dtmpl-edit-card.js +21 -13
- package/lib/module/dtmpl-edit-card.js.map +1 -1
- package/lib/module/dtmpl-edit-page.d.ts +12 -3
- package/lib/module/dtmpl-edit-page.d.ts.map +1 -1
- package/lib/module/dtmpl-edit-page.js +42 -31
- package/lib/module/dtmpl-edit-page.js.map +1 -1
- package/lib/module/ltmpl-modal.d.ts +10 -1
- package/lib/module/ltmpl-modal.d.ts.map +1 -1
- package/lib/module/ltmpl-modal.js +15 -8
- package/lib/module/ltmpl-modal.js.map +1 -1
- package/lib/module/ltmpl-table.d.ts +11 -2
- package/lib/module/ltmpl-table.d.ts.map +1 -1
- package/lib/module/ltmpl-table.js +39 -39
- package/lib/module/ltmpl-table.js.map +1 -1
- package/lib/table/act-table.d.ts +12 -3
- package/lib/table/act-table.d.ts.map +1 -1
- package/lib/table/act-table.js +256 -205
- package/lib/table/act-table.js.map +1 -1
- package/lib/table/control-table-x-axis-wrapper.d.ts +5 -0
- package/lib/table/control-table-x-axis-wrapper.d.ts.map +1 -0
- package/lib/table/control-table-x-axis-wrapper.js +60 -0
- package/lib/table/control-table-x-axis-wrapper.js.map +1 -0
- package/lib/table/l2-act-table.d.ts +1 -1
- package/lib/table/pagination.d.ts +11 -2
- package/lib/table/pagination.d.ts.map +1 -1
- package/lib/table/pagination.js +13 -12
- package/lib/table/pagination.js.map +1 -1
- package/lib/table/query-table.d.ts.map +1 -1
- package/lib/table/query-table.js +2 -1
- package/lib/table/query-table.js.map +1 -1
- package/lib/table/relation-table.d.ts +13 -4
- package/lib/table/relation-table.d.ts.map +1 -1
- package/lib/table/relation-table.js +117 -108
- package/lib/table/relation-table.js.map +1 -1
- package/lib/table/selected-rows-card.d.ts +10 -1
- package/lib/table/selected-rows-card.d.ts.map +1 -1
- package/lib/table/selected-rows-card.js +10 -9
- package/lib/table/selected-rows-card.js.map +1 -1
- package/lib/table/stat/restat.d.ts +10 -1
- package/lib/table/stat/restat.d.ts.map +1 -1
- package/lib/table/stat/restat.js +10 -9
- package/lib/table/stat/restat.js.map +1 -1
- package/lib/tmpl/hc-data-source.d.ts.map +1 -1
- package/lib/tmpl/hc-data-source.js +21 -14
- package/lib/tmpl/hc-data-source.js.map +1 -1
- package/lib/tmpl/hcservice-v3.d.ts +2 -0
- package/lib/tmpl/hcservice-v3.d.ts.map +1 -1
- package/lib/tmpl/hcservice-v3.js +127 -100
- package/lib/tmpl/hcservice-v3.js.map +1 -1
- package/lib/tmpl/model-struc-v3.d.ts.map +1 -1
- package/lib/tmpl/model-struc-v3.js +19 -18
- package/lib/tmpl/model-struc-v3.js.map +1 -1
- package/lib/tmpl/superagent.d.ts +2 -2
- package/lib/tmpl/superagent.d.ts.map +1 -1
- package/lib/tmpl/superagent.js +28 -23
- package/lib/tmpl/superagent.js.map +1 -1
- package/lib/tree/act-tree.d.ts +10 -1
- package/lib/tree/act-tree.d.ts.map +1 -1
- package/lib/tree/act-tree.js +26 -20
- package/lib/tree/act-tree.js.map +1 -1
- package/lib/tree/tmpl-tree.d.ts +11 -2
- package/lib/tree/tmpl-tree.d.ts.map +1 -1
- package/lib/tree/tmpl-tree.js +76 -58
- package/lib/tree/tmpl-tree.js.map +1 -1
- package/lib/units/index.d.ts.map +1 -1
- package/lib/welcome/HCWelcome.js +7 -23
- package/lib/welcome/HCWelcome.js.map +1 -1
- package/lib/welcome/HCWelcome1.d.ts +4 -0
- package/lib/welcome/HCWelcome1.d.ts.map +1 -0
- package/lib/welcome/HCWelcome1.js +192 -0
- package/lib/welcome/HCWelcome1.js.map +1 -0
- package/lib/welcome/quick-entrance.d.ts +12 -3
- package/lib/welcome/quick-entrance.d.ts.map +1 -1
- package/lib/welcome/quick-entrance.js +21 -17
- package/lib/welcome/quick-entrance.js.map +1 -1
- package/lib/welcome/workbench.d.ts +12 -3
- package/lib/welcome/workbench.d.ts.map +1 -1
- package/lib/welcome/workbench.js +23 -19
- package/lib/welcome/workbench.js.map +1 -1
- package/package.json +1 -1
- package/src/aldehyde/controls/action/index.tsx +328 -221
- package/src/aldehyde/controls/action/utils.tsx +6 -4
- package/src/aldehyde/controls/auto-complete/index.tsx +64 -60
- package/src/aldehyde/controls/chemstruc/graph.tsx +175 -139
- package/src/aldehyde/controls/color-picker/index.tsx +107 -78
- package/src/aldehyde/controls/cquery/cquick-button.tsx +129 -89
- package/src/aldehyde/controls/entity-select/entity-select.tsx +643 -521
- package/src/aldehyde/controls/entity-select/lab-tree-select.tsx +140 -131
- package/src/aldehyde/controls/entity-select/popover-entity-select.tsx +178 -133
- package/src/aldehyde/controls/entry-control.tsx +373 -248
- package/src/aldehyde/controls/input-number/index.tsx +131 -86
- package/src/aldehyde/controls/input-range/index.tsx +51 -40
- package/src/aldehyde/controls/password-setter/index.js +81 -63
- package/src/aldehyde/controls/progress/index.tsx +59 -46
- package/src/aldehyde/controls/relation-existion/index.tsx +125 -87
- package/src/aldehyde/controls/rfield/index.tsx +178 -151
- package/src/aldehyde/controls/signature/index.tsx +215 -151
- package/src/aldehyde/controls/steps/index.tsx +44 -42
- package/src/aldehyde/controls/text/ellipsis-text.tsx +79 -53
- package/src/aldehyde/controls/upload/index.tsx +125 -109
- package/src/aldehyde/controls/view-control.tsx +250 -188
- package/src/aldehyde/custom-page/def-custom-page.tsx +17 -0
- package/src/aldehyde/custom-page/dtmpl-custom-edit-modal-page.tsx +75 -66
- package/src/aldehyde/detail/button/bottom-submit-button-bar.tsx +79 -43
- package/src/aldehyde/detail/button/cquery-button-bar.tsx +129 -98
- package/src/aldehyde/detail/button/fix-right-submit-button-bar.tsx +161 -113
- package/src/aldehyde/detail/edit/fields-edit-card.tsx +124 -87
- package/src/aldehyde/detail/edit/modal-row-edit.tsx +81 -60
- package/src/aldehyde/detail/edit/post-result/index.tsx +80 -47
- package/src/aldehyde/detail/edit/row-edit-card.tsx +158 -107
- package/src/aldehyde/detail/rightbar/index.tsx +79 -63
- package/src/aldehyde/detail/view/act-dtmpl-view.tsx +177 -124
- package/src/aldehyde/detail/view/dtmpl-view.tsx +284 -178
- package/src/aldehyde/detail/view/modal-dtmpl-view.tsx +67 -54
- package/src/aldehyde/detail/view/snapshot-timeline.tsx +143 -110
- package/src/aldehyde/exportor/export-frame.tsx +258 -200
- package/src/aldehyde/form/criteria-form.tsx +309 -201
- package/src/aldehyde/form/dtmpl-form.tsx +460 -305
- package/src/aldehyde/form/field-group-form.tsx +87 -66
- package/src/aldehyde/form/form-Item-group.tsx +190 -132
- package/src/aldehyde/import/excel-import.tsx +414 -331
- package/src/aldehyde/index.tsx +90 -45
- package/src/aldehyde/layout/MainPage.tsx +280 -245
- package/src/aldehyde/layout/header/index.tsx +59 -53
- package/src/aldehyde/layout/menu/l2menu-quick-bar.tsx +137 -118
- package/src/aldehyde/layout/menu/reset-password.tsx +213 -162
- package/src/aldehyde/layout/menu/user-bar.tsx +216 -147
- package/src/aldehyde/layout/menu/userinfo-bar.tsx +58 -41
- package/src/aldehyde/layout/sidebar/index.css +15 -4
- package/src/aldehyde/layout/sidebar/index.tsx +66 -38
- package/src/aldehyde/locale/LocaleButton.tsx +31 -0
- package/src/aldehyde/locale/LocaleProvider.tsx +165 -0
- package/src/aldehyde/locale/langMp.ts +33 -0
- package/src/aldehyde/locale/translate.ts +78 -0
- package/src/aldehyde/locale/useLocale.ts +50 -0
- package/src/aldehyde/login/login.tsx +192 -141
- package/src/aldehyde/login/router-login.tsx +54 -21
- package/src/aldehyde/module/dtmpl-edit-card.tsx +225 -160
- package/src/aldehyde/module/dtmpl-edit-page.tsx +334 -212
- package/src/aldehyde/module/ltmpl-modal.tsx +57 -53
- package/src/aldehyde/module/ltmpl-table.tsx +329 -240
- package/src/aldehyde/table/act-table.tsx +1226 -794
- package/src/aldehyde/table/control-table-x-axis-wrapper.tsx +52 -0
- package/src/aldehyde/table/pagination.tsx +66 -59
- package/src/aldehyde/table/query-table.tsx +2 -1
- package/src/aldehyde/table/relation-table.tsx +781 -571
- package/src/aldehyde/table/selected-rows-card.tsx +61 -48
- package/src/aldehyde/table/stat/restat.tsx +112 -69
- package/src/aldehyde/tmpl/hc-data-source.tsx +381 -296
- package/src/aldehyde/tmpl/hcservice-v3.tsx +991 -796
- package/src/aldehyde/tmpl/model-struc-v3.tsx +95 -91
- package/src/aldehyde/tmpl/superagent.js +148 -142
- package/src/aldehyde/tree/act-tree.tsx +206 -138
- package/src/aldehyde/tree/tmpl-tree.tsx +611 -353
- package/src/aldehyde/welcome/HCWelcome.js +78 -110
- package/src/aldehyde/welcome/HCWelcome1.js +260 -0
- package/src/aldehyde/welcome/quick-entrance.tsx +82 -71
- package/src/aldehyde/welcome/workbench.tsx +83 -68
- package/src/aldehyde/custom-page/def-custom-page.js +0 -18
package/lib/table/act-table.js
CHANGED
|
@@ -7,32 +7,32 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
|
|
|
7
7
|
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
8
|
});
|
|
9
9
|
};
|
|
10
|
-
import React from
|
|
11
|
-
import { Button, Card, Checkbox, Col, Collapse, Divider, Popconfirm, Popover, Row, Space,
|
|
12
|
-
import {
|
|
10
|
+
import React from "react";
|
|
11
|
+
import { Button, Card, Checkbox, Col, Collapse, Divider, Popconfirm, Popover, Row, Space, Tooltip, } from "antd";
|
|
12
|
+
import { Table } from "./control-table-x-axis-wrapper";
|
|
13
|
+
import { AlignCenterOutlined, AlignLeftOutlined, CopyOutlined, DeleteOutlined, DownloadOutlined, EditOutlined, EyeInvisibleOutlined, EyeOutlined, FormOutlined, FundOutlined, LineChartOutlined, MenuOutlined, PlusCircleOutlined, PlusOutlined, ReloadOutlined, RetweetOutlined, SearchOutlined, TableOutlined, UploadOutlined, } from "@ant-design/icons";
|
|
13
14
|
import "./index.css";
|
|
14
15
|
import TableUnits from "./table-util";
|
|
15
|
-
import SupportInputTypes from
|
|
16
|
+
import SupportInputTypes from "../tmpl/control-type-supportor";
|
|
16
17
|
import HcserviceV3 from "../tmpl/hcservice-v3";
|
|
17
|
-
import QueryTable from
|
|
18
|
+
import QueryTable from "./query-table";
|
|
18
19
|
import CriteriaForm from "./../form/criteria-form";
|
|
19
20
|
import ViewControl from "../controls/view-control";
|
|
20
21
|
import Units from "../units";
|
|
21
|
-
import ColumnSelector from
|
|
22
|
-
import ExportFrame from
|
|
23
|
-
import { SortableHandle } from
|
|
22
|
+
import ColumnSelector from "./column/column-selector";
|
|
23
|
+
import ExportFrame from "../exportor/export-frame";
|
|
24
|
+
import { SortableHandle } from "react-sortable-hoc";
|
|
24
25
|
import L2ActTable from "./l2-act-table";
|
|
25
|
-
import Action from
|
|
26
|
+
import Action from "../controls/action";
|
|
26
27
|
import Restat from "./stat/restat";
|
|
27
|
-
import ActionUtils from
|
|
28
|
+
import ActionUtils from "../controls/action/utils";
|
|
28
29
|
import CquickButton from "../controls/cquery/cquick-button";
|
|
29
30
|
import CollapseCard from "../controls/collapse-card";
|
|
30
31
|
import ToolTipBar from "../detail/tooltipbar";
|
|
31
|
-
|
|
32
|
+
import { LocaleContext } from "../locale/LocaleProvider";
|
|
33
|
+
const DragHandle = SortableHandle(() => (React.createElement(MenuOutlined, { style: { cursor: "grab", color: "#999" } })));
|
|
32
34
|
const { Panel } = Collapse;
|
|
33
|
-
const defaultDisabledColIds = [
|
|
34
|
-
;
|
|
35
|
-
;
|
|
35
|
+
const defaultDisabledColIds = ["20000", "10000"];
|
|
36
36
|
class ActTable extends React.PureComponent {
|
|
37
37
|
constructor() {
|
|
38
38
|
super(...arguments);
|
|
@@ -53,7 +53,7 @@ class ActTable extends React.PureComponent {
|
|
|
53
53
|
showL2Chart: false,
|
|
54
54
|
};
|
|
55
55
|
this.loadData = (hiddenColIds, hiddenRowCodes, sortedColConfigs) => __awaiter(this, void 0, void 0, function* () {
|
|
56
|
-
const { sourceId, criteriaData, ltmplConfig, mainCode, level, pageNo, pageSize, serverKey } = this.props;
|
|
56
|
+
const { sourceId, criteriaData, ltmplConfig, mainCode, level, pageNo, pageSize, serverKey, } = this.props;
|
|
57
57
|
if (!ltmplConfig) {
|
|
58
58
|
return;
|
|
59
59
|
}
|
|
@@ -62,14 +62,18 @@ class ActTable extends React.PureComponent {
|
|
|
62
62
|
});
|
|
63
63
|
let disabledColIds = [];
|
|
64
64
|
let hiddenColIds_ = [...hiddenColIds];
|
|
65
|
-
if (criteriaData && criteriaData[
|
|
66
|
-
let dColIds = [...criteriaData[
|
|
65
|
+
if (criteriaData && criteriaData["drillingColIds"]) {
|
|
66
|
+
let dColIds = [...criteriaData["drillingColIds"]];
|
|
67
67
|
ltmplConfig.columns.forEach((item) => {
|
|
68
|
-
if (item.statColType ==
|
|
68
|
+
if (item.statColType == "dimension" &&
|
|
69
|
+
!dColIds.includes(item.id) &&
|
|
70
|
+
!hiddenColIds_.includes(item.id)) {
|
|
69
71
|
hiddenColIds_.push(item.id);
|
|
70
72
|
disabledColIds.push(item.id);
|
|
71
73
|
}
|
|
72
|
-
if (item.statColType ==
|
|
74
|
+
if (item.statColType == "dimension" &&
|
|
75
|
+
!dColIds.includes(item.id) &&
|
|
76
|
+
!disabledColIds.includes(item.id)) {
|
|
73
77
|
disabledColIds.push(item.id);
|
|
74
78
|
}
|
|
75
79
|
});
|
|
@@ -93,7 +97,7 @@ class ActTable extends React.PureComponent {
|
|
|
93
97
|
/** 构建 dataSource **/
|
|
94
98
|
//构建过滤条件
|
|
95
99
|
let queryKey;
|
|
96
|
-
if (level && level ==
|
|
100
|
+
if (level && level == "l2") {
|
|
97
101
|
queryKey = yield HcserviceV3.requestL2LtmplQueryKey(serverKey, sourceId, Object.assign(Object.assign(Object.assign({}, criteriaData), pageInfo), { mainCode }));
|
|
98
102
|
}
|
|
99
103
|
else {
|
|
@@ -109,11 +113,12 @@ class ActTable extends React.PureComponent {
|
|
|
109
113
|
showL2Chart: false,
|
|
110
114
|
selectedRows: [],
|
|
111
115
|
selectedDatas: [],
|
|
112
|
-
viewModels:
|
|
116
|
+
viewModels: this.state.viewModels.length > 0 ? this.state.viewModels : ["table"],
|
|
113
117
|
});
|
|
114
118
|
});
|
|
115
119
|
this.buildTableColumns = (ltmplConfig, hiddenColIds, hiddenRowCodes, sortedColConfigs) => {
|
|
116
|
-
const { showView, doEdit, doRAction, customEditable, serverKey, readOnly, sourceId } = this.props;
|
|
120
|
+
const { showView, doEdit, doRAction, customEditable, serverKey, readOnly, sourceId, } = this.props;
|
|
121
|
+
const { translate } = this.context;
|
|
117
122
|
const { buttons } = ltmplConfig;
|
|
118
123
|
let tableColumns = [];
|
|
119
124
|
let s = 0;
|
|
@@ -123,13 +128,13 @@ class ActTable extends React.PureComponent {
|
|
|
123
128
|
if (!hiddenColIds || !hiddenColIds.includes(item.id)) {
|
|
124
129
|
tableColumns.push(column);
|
|
125
130
|
}
|
|
126
|
-
column[
|
|
127
|
-
column[
|
|
131
|
+
column["title"] = item.title;
|
|
132
|
+
column["dataIndex"] = item.id;
|
|
128
133
|
// column['ellipsis']= true;
|
|
129
134
|
s++;
|
|
130
135
|
let itemType = SupportInputTypes.getSupportControlType(item);
|
|
131
|
-
if (s < 10 && item.title !=
|
|
132
|
-
if (hiddenColIds.includes(
|
|
136
|
+
if (s < 10 && item.title != "操作" && item.title != "序号") {
|
|
137
|
+
if (hiddenColIds.includes("10000")) {
|
|
133
138
|
TableUnits.sort(column, itemType);
|
|
134
139
|
}
|
|
135
140
|
}
|
|
@@ -137,88 +142,100 @@ class ActTable extends React.PureComponent {
|
|
|
137
142
|
//序号
|
|
138
143
|
if (item.title === "序号") {
|
|
139
144
|
//item.fixed='left';
|
|
140
|
-
column[
|
|
141
|
-
item[
|
|
145
|
+
column["render"] = (text, record, index) => React.createElement("label", null, index + 1);
|
|
146
|
+
item["sorter"] = undefined;
|
|
142
147
|
}
|
|
143
|
-
else if (item.id ==
|
|
144
|
-
column[
|
|
145
|
-
column[
|
|
146
|
-
column[
|
|
147
|
-
column[
|
|
148
|
-
column[
|
|
148
|
+
else if (item.id == "10000") {
|
|
149
|
+
column["title"] = React.createElement(Tooltip, { title: "拖拽排序" }, item.title);
|
|
150
|
+
column["width"] = 30;
|
|
151
|
+
column["dataIndex"] = item.id;
|
|
152
|
+
column["className"] = "drag-visible";
|
|
153
|
+
column["render"] = () => React.createElement(DragHandle, null);
|
|
149
154
|
}
|
|
150
|
-
else if (item.id ==
|
|
151
|
-
|
|
152
|
-
column[
|
|
153
|
-
column[
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
column[
|
|
155
|
+
else if (item.id == "20000") {
|
|
156
|
+
//隐藏
|
|
157
|
+
column["align"] = "center";
|
|
158
|
+
column["width"] = 14;
|
|
159
|
+
column["title"] = (React.createElement(React.Fragment, null, hiddenRowCodes.length > 0 ? (React.createElement(Tooltip, { title: translate("${取消隐藏}") },
|
|
160
|
+
React.createElement(Button, { style: { marginRight: "0px" }, size: "small", shape: "circle", icon: React.createElement(EyeOutlined, null), type: "text", onClick: () => this.unHiden() }))) : ("")));
|
|
161
|
+
column["render"] = (text, record) => (React.createElement(Tooltip, { title: translate("${隐藏}") },
|
|
157
162
|
" ",
|
|
158
|
-
React.createElement(Button, { style: { marginRight:
|
|
163
|
+
React.createElement(Button, { style: { marginRight: "0px" }, icon: React.createElement(EyeInvisibleOutlined, null), type: "dashed", size: "small", onClick: () => this.onHide(record.code) })));
|
|
159
164
|
}
|
|
160
165
|
else if (item.title === "操作") {
|
|
161
|
-
column[
|
|
162
|
-
column[
|
|
163
|
-
column[
|
|
164
|
-
column[
|
|
165
|
-
column[
|
|
166
|
-
buttons.includes(
|
|
167
|
-
|
|
166
|
+
column["fixed"] = "right";
|
|
167
|
+
column["align"] = "center";
|
|
168
|
+
column["className"] = "opsColumn";
|
|
169
|
+
column["title"] = React.createElement(React.Fragment, null, translate("${操作}"));
|
|
170
|
+
column["render"] = (text, record) => (React.createElement(Space, { size: [0, 4], wrap: true },
|
|
171
|
+
buttons.includes("detail") && showView ? (React.createElement(Button, { size: "small", type: "primary", icon: React.createElement(AlignLeftOutlined, null), onClick: () => showView(record.code) })) : (""),
|
|
172
|
+
buttons.includes("customDetail") && showView ? (React.createElement(Button, { size: "small", type: "primary", icon: React.createElement(AlignCenterOutlined, null), onClick: () => showView(record.code, true) })) : (""),
|
|
173
|
+
buttons.includes("dtmplEdit") &&
|
|
174
|
+
doEdit &&
|
|
175
|
+
!readOnly &&
|
|
176
|
+
(!ltmplConfig.editAction ||
|
|
177
|
+
ActionUtils.isShow(ltmplConfig.editAction, [record], undefined)) ? (React.createElement(Button, { size: "small", type: "dashed", icon: React.createElement(EditOutlined, null), onClick: () => doEdit(record.code, "update") })) : (""),
|
|
178
|
+
(buttons.includes("dtmplCustomEdit") || customEditable) &&
|
|
179
|
+
doEdit &&
|
|
180
|
+
!readOnly &&
|
|
181
|
+
(!ltmplConfig.editAction ||
|
|
182
|
+
ActionUtils.isShow(ltmplConfig.editAction, [record], undefined)) ? (React.createElement(Button, { size: "small", type: "dashed", icon: React.createElement(FormOutlined, null), onClick: () => doEdit(record.code, "update", true) })) : (""),
|
|
183
|
+
buttons.includes("copy") && doEdit && !readOnly ? (React.createElement(Tooltip, { title: translate("${复制}") },
|
|
184
|
+
React.createElement(Button, { size: "small", type: "dashed", icon: React.createElement(CopyOutlined, null), onClick: () => __awaiter(this, void 0, void 0, function* () {
|
|
185
|
+
//先复制
|
|
186
|
+
let toCustomPage = false;
|
|
187
|
+
if (buttons.includes("dtmplCustomEdit") || customEditable) {
|
|
188
|
+
toCustomPage = true;
|
|
189
|
+
}
|
|
190
|
+
let code = yield HcserviceV3.doCopy(serverKey, sourceId, record.code);
|
|
191
|
+
if (code) {
|
|
192
|
+
doEdit(code, "update", toCustomPage);
|
|
193
|
+
}
|
|
194
|
+
}) }))) : (""),
|
|
195
|
+
ltmplConfig.ractions && !readOnly
|
|
196
|
+
? ltmplConfig.ractions.map((raction) => {
|
|
197
|
+
return (React.createElement(Button, { key: raction.id, size: "small", type: "dashed", onClick: () => doRAction(raction.id, record.code) }, raction.title));
|
|
198
|
+
})
|
|
168
199
|
: "",
|
|
169
|
-
|
|
170
|
-
|
|
200
|
+
ltmplConfig.rowActions &&
|
|
201
|
+
!readOnly &&
|
|
202
|
+
ltmplConfig.rowActions.length > 0
|
|
203
|
+
? ltmplConfig.rowActions.map((action) => {
|
|
204
|
+
return (React.createElement(Action, { serverKey: serverKey, iconType: "icon", key: action.id, data: [record], actionConfig: action, doAction: this.doRowAction, buttonSize: "small", serial: 1 }));
|
|
205
|
+
})
|
|
171
206
|
: "",
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
let toCustomPage = false;
|
|
184
|
-
if (buttons.includes('dtmplCustomEdit') || customEditable) {
|
|
185
|
-
toCustomPage = true;
|
|
186
|
-
}
|
|
187
|
-
let code = yield HcserviceV3.doCopy(serverKey, sourceId, record.code);
|
|
188
|
-
if (code) {
|
|
189
|
-
doEdit(code, 'update', toCustomPage);
|
|
190
|
-
}
|
|
191
|
-
}) })) : "",
|
|
192
|
-
ltmplConfig.ractions && !readOnly ? ltmplConfig.ractions.map((raction) => {
|
|
193
|
-
return React.createElement(Button, { key: raction.id, size: "small", type: "dashed", onClick: () => doRAction(raction.id, record.code) }, raction.title);
|
|
194
|
-
}) : "",
|
|
195
|
-
ltmplConfig.rowActions && !readOnly && ltmplConfig.rowActions.length > 0 ?
|
|
196
|
-
ltmplConfig.rowActions.map((action) => {
|
|
197
|
-
return React.createElement(Action, { serverKey: serverKey, iconType: 'icon', key: action.id, data: [record], actionConfig: action, doAction: this.doRowAction, buttonSize: 'small', serial: 1 });
|
|
198
|
-
}) : "",
|
|
199
|
-
ltmplConfig.rowJumps && ltmplConfig.rowJumps.length > 0 && !readOnly ?
|
|
200
|
-
ltmplConfig.rowJumps.map((jump) => {
|
|
201
|
-
return React.createElement(Button, { key: jump.id, size: "small", type: "dashed", onClick: () => this.doRowJump(jump, record) }, jump.title);
|
|
202
|
-
}) : "",
|
|
203
|
-
ltmplConfig.rowCQuerys && ltmplConfig.rowCQuerys.length > 0 && !readOnly ?
|
|
204
|
-
ltmplConfig.rowCQuerys.map((cquery) => {
|
|
207
|
+
ltmplConfig.rowJumps &&
|
|
208
|
+
ltmplConfig.rowJumps.length > 0 &&
|
|
209
|
+
!readOnly
|
|
210
|
+
? ltmplConfig.rowJumps.map((jump) => {
|
|
211
|
+
return (React.createElement(Button, { key: jump.id, size: "small", type: "dashed", onClick: () => this.doRowJump(jump, record) }, jump.title));
|
|
212
|
+
})
|
|
213
|
+
: "",
|
|
214
|
+
ltmplConfig.rowCQuerys &&
|
|
215
|
+
ltmplConfig.rowCQuerys.length > 0 &&
|
|
216
|
+
!readOnly
|
|
217
|
+
? ltmplConfig.rowCQuerys.map((cquery) => {
|
|
205
218
|
// console.log("record record", record);
|
|
206
|
-
return React.createElement(CquickButton, { serverKey: serverKey, key: cquery.id, size: "small", pageType:
|
|
219
|
+
return (React.createElement(CquickButton, { serverKey: serverKey, key: cquery.id, size: "small", pageType: "drawer",
|
|
207
220
|
// onClick={() => doCQuery(cquery.id)}
|
|
208
|
-
cQueryConfig: cquery, mainCode: cquery.mainCodeColId
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
221
|
+
cQueryConfig: cquery, mainCode: cquery.mainCodeColId
|
|
222
|
+
? record[cquery.mainCodeColId]
|
|
223
|
+
: record.code }));
|
|
224
|
+
})
|
|
225
|
+
: "",
|
|
226
|
+
buttons.includes("singleDelete") &&
|
|
227
|
+
!readOnly &&
|
|
228
|
+
(!ltmplConfig.deleteAction ||
|
|
229
|
+
ActionUtils.isShow(ltmplConfig.deleteAction, [record], undefined)) ? (React.createElement(Popconfirm, { placement: "rightBottom", title: translate("${确定要[删除]此数据吗}?"), onConfirm: () => {
|
|
230
|
+
this.doDeleteByCode(record.code);
|
|
231
|
+
}, okText: translate("${确定}"), cancelText: translate("${取消}"), okType: "danger" },
|
|
232
|
+
React.createElement(Button, { size: "small", type: "dashed", danger: true },
|
|
233
|
+
React.createElement(DeleteOutlined, null)))) : ("")));
|
|
217
234
|
}
|
|
218
235
|
else {
|
|
219
|
-
column[
|
|
220
|
-
column[
|
|
221
|
-
return React.createElement(ViewControl, { serverKey: serverKey, fieldConfig: item, value: record[item.id], holderType:
|
|
236
|
+
column["className"] = "opsColumn";
|
|
237
|
+
column["render"] = (text, record) => {
|
|
238
|
+
return (React.createElement(ViewControl, { serverKey: serverKey, fieldConfig: item, value: record[item.id], holderType: "table" }));
|
|
222
239
|
};
|
|
223
240
|
}
|
|
224
241
|
});
|
|
@@ -226,7 +243,7 @@ class ActTable extends React.PureComponent {
|
|
|
226
243
|
};
|
|
227
244
|
this.handleShowChart = () => {
|
|
228
245
|
this.setState({
|
|
229
|
-
showL2Chart: !this.state.showL2Chart
|
|
246
|
+
showL2Chart: !this.state.showL2Chart,
|
|
230
247
|
});
|
|
231
248
|
};
|
|
232
249
|
this.handleDataAnalysis = () => {
|
|
@@ -235,7 +252,7 @@ class ActTable extends React.PureComponent {
|
|
|
235
252
|
});
|
|
236
253
|
};
|
|
237
254
|
this.unHiden = () => {
|
|
238
|
-
const { ltmplConfig
|
|
255
|
+
const { ltmplConfig } = this.props;
|
|
239
256
|
const { hiddenColIds, sortedColConfigs } = this.state;
|
|
240
257
|
this.setState({
|
|
241
258
|
hiddenRowCodes: [],
|
|
@@ -243,7 +260,7 @@ class ActTable extends React.PureComponent {
|
|
|
243
260
|
});
|
|
244
261
|
};
|
|
245
262
|
this.onHide = (code) => {
|
|
246
|
-
const { ltmplConfig
|
|
263
|
+
const { ltmplConfig } = this.props;
|
|
247
264
|
const { hiddenRowCodes, hiddenColIds, sortedColConfigs } = this.state;
|
|
248
265
|
let hiddenCodes = [...hiddenRowCodes, code];
|
|
249
266
|
this.setState({
|
|
@@ -253,7 +270,7 @@ class ActTable extends React.PureComponent {
|
|
|
253
270
|
};
|
|
254
271
|
this.changeViewModel = (viewModels) => {
|
|
255
272
|
this.setState({
|
|
256
|
-
viewModels
|
|
273
|
+
viewModels,
|
|
257
274
|
});
|
|
258
275
|
};
|
|
259
276
|
this.changeHiddenColumns = (hiddenColIds) => {
|
|
@@ -276,7 +293,8 @@ class ActTable extends React.PureComponent {
|
|
|
276
293
|
loading: true,
|
|
277
294
|
});
|
|
278
295
|
let result = yield HcserviceV3.postActions(serverKey, actionId, selectedRows, params);
|
|
279
|
-
if (result) {
|
|
296
|
+
if (result) {
|
|
297
|
+
//重新加载数据
|
|
280
298
|
this.loadData(hiddenColIds, hiddenRowCodes, sortedColConfigs);
|
|
281
299
|
}
|
|
282
300
|
else {
|
|
@@ -290,12 +308,13 @@ class ActTable extends React.PureComponent {
|
|
|
290
308
|
});
|
|
291
309
|
this.doDelete = () => __awaiter(this, void 0, void 0, function* () {
|
|
292
310
|
const { sourceId, serverKey } = this.props;
|
|
293
|
-
const { selectedRows, hiddenColIds, hiddenRowCodes, sortedColConfigs } = this.state;
|
|
311
|
+
const { selectedRows, hiddenColIds, hiddenRowCodes, sortedColConfigs, } = this.state;
|
|
294
312
|
this.setState({
|
|
295
313
|
loading: true,
|
|
296
314
|
});
|
|
297
315
|
let result = yield HcserviceV3.deleteData(serverKey, sourceId, selectedRows);
|
|
298
|
-
if (result) {
|
|
316
|
+
if (result) {
|
|
317
|
+
//重新加载数据
|
|
299
318
|
this.loadData(hiddenColIds, hiddenRowCodes, sortedColConfigs);
|
|
300
319
|
}
|
|
301
320
|
else {
|
|
@@ -310,8 +329,11 @@ class ActTable extends React.PureComponent {
|
|
|
310
329
|
this.setState({
|
|
311
330
|
loading: true,
|
|
312
331
|
});
|
|
313
|
-
let result = yield HcserviceV3.deleteByCode(serverKey, sourceId, [
|
|
314
|
-
|
|
332
|
+
let result = yield HcserviceV3.deleteByCode(serverKey, sourceId, [
|
|
333
|
+
code,
|
|
334
|
+
]);
|
|
335
|
+
if (result) {
|
|
336
|
+
//重新加载数据
|
|
315
337
|
this.loadData(hiddenColIds, hiddenRowCodes, sortedColConfigs);
|
|
316
338
|
}
|
|
317
339
|
else {
|
|
@@ -320,8 +342,7 @@ class ActTable extends React.PureComponent {
|
|
|
320
342
|
});
|
|
321
343
|
}
|
|
322
344
|
});
|
|
323
|
-
this.doSelectedCQuery = (cqueryId) => __awaiter(this, void 0, void 0, function* () {
|
|
324
|
-
});
|
|
345
|
+
this.doSelectedCQuery = (cqueryId) => __awaiter(this, void 0, void 0, function* () { });
|
|
325
346
|
this.doJump = (jump, record_) => __awaiter(this, void 0, void 0, function* () {
|
|
326
347
|
let record = record_.fieldMap ? record_.fieldMap : record_;
|
|
327
348
|
let url = null;
|
|
@@ -330,10 +351,13 @@ class ActTable extends React.PureComponent {
|
|
|
330
351
|
path = "/";
|
|
331
352
|
}
|
|
332
353
|
//是否以http开头
|
|
333
|
-
if (path.indexOf(
|
|
354
|
+
if (path.indexOf("#") == 0 || url.indexOf("/#") == 0) {
|
|
334
355
|
url = "";
|
|
335
356
|
}
|
|
336
|
-
else if (
|
|
357
|
+
else if (path.indexOf("http://") == 0 ||
|
|
358
|
+
path.indexOf("HTTP://") == 0 ||
|
|
359
|
+
path.indexOf("https://") == 0 ||
|
|
360
|
+
path.indexOf("HTTPS://") == 0) {
|
|
337
361
|
url = path.split("//")[0] + "//";
|
|
338
362
|
path = path.split("//")[1];
|
|
339
363
|
}
|
|
@@ -349,7 +373,8 @@ class ActTable extends React.PureComponent {
|
|
|
349
373
|
let pa = paths[i].substring(1);
|
|
350
374
|
//根据参数名匹配参数
|
|
351
375
|
for (let p of routeParamConfigs) {
|
|
352
|
-
if (p && pa == p.title) {
|
|
376
|
+
if (p && pa == p.title) {
|
|
377
|
+
//赋值替换
|
|
353
378
|
let v = record[p.id] ? record[p.id] : p.defaultValue;
|
|
354
379
|
paths[i] = v;
|
|
355
380
|
break;
|
|
@@ -374,7 +399,7 @@ class ActTable extends React.PureComponent {
|
|
|
374
399
|
for (let i = 0; i < searchParamConfigs.length; i++) {
|
|
375
400
|
let p = searchParamConfigs[i];
|
|
376
401
|
let v = record[p.id] ? record[p.id] : p.defaultValue;
|
|
377
|
-
if (!v && p.title ==
|
|
402
|
+
if (!v && p.title == "code") {
|
|
378
403
|
v = record_.code;
|
|
379
404
|
}
|
|
380
405
|
searchs[initSearchLength + i] = p.title + "=" + v;
|
|
@@ -386,8 +411,10 @@ class ActTable extends React.PureComponent {
|
|
|
386
411
|
}
|
|
387
412
|
url = url + searchs.join("&");
|
|
388
413
|
}
|
|
389
|
-
if (url.indexOf(
|
|
390
|
-
|
|
414
|
+
if (url.indexOf("#") == 0 ||
|
|
415
|
+
url.indexOf("/#") == 0 ||
|
|
416
|
+
url.indexOf("//#") == 0) {
|
|
417
|
+
window.location.hash = url.substring(url.indexOf("#") + 1);
|
|
391
418
|
}
|
|
392
419
|
else {
|
|
393
420
|
window.open(url);
|
|
@@ -417,81 +444,87 @@ class ActTable extends React.PureComponent {
|
|
|
417
444
|
});
|
|
418
445
|
};
|
|
419
446
|
this.getAddTmplButton = (classifiedAddConfigs) => {
|
|
447
|
+
const { translate } = this.context;
|
|
420
448
|
if (classifiedAddConfigs && classifiedAddConfigs.length < 1) {
|
|
421
|
-
return "没有分类添加按钮";
|
|
449
|
+
return translate("${没有分类添加按钮}");
|
|
422
450
|
}
|
|
423
451
|
return classifiedAddConfigs.map((config) => {
|
|
424
|
-
return React.createElement("p", null,
|
|
425
|
-
React.createElement(Button, { size:
|
|
452
|
+
return (React.createElement("p", null,
|
|
453
|
+
React.createElement(Button, { size: "small", type: "text", onClick: () => this.props.doCreate(config.id, false) }, config.title)));
|
|
426
454
|
});
|
|
427
455
|
};
|
|
428
456
|
this.renderHeaderButtons = () => {
|
|
429
|
-
let { hiddenColIds, queryKey, viewModels, sortedColConfigs, disabledColIds, showL2Chart, showL2ActTable } = this.state;
|
|
430
|
-
const { ltmplConfig, sourceId, doCreate, doSearch, menuId, funcMode, customCreatable, serverKey, readOnly } = this.props;
|
|
457
|
+
let { hiddenColIds, queryKey, viewModels, sortedColConfigs, disabledColIds, showL2Chart, showL2ActTable, } = this.state;
|
|
458
|
+
const { ltmplConfig, sourceId, doCreate, doSearch, menuId, funcMode, customCreatable, serverKey, readOnly, } = this.props;
|
|
459
|
+
const { translate } = this.context;
|
|
431
460
|
let { buttons } = ltmplConfig;
|
|
432
|
-
return React.createElement(React.Fragment, null,
|
|
461
|
+
return (React.createElement(React.Fragment, null,
|
|
433
462
|
React.createElement(Space, null,
|
|
434
|
-
funcMode == "common" && this.criteriaFormUseful() ?
|
|
435
|
-
React.createElement(
|
|
463
|
+
funcMode == "common" && this.criteriaFormUseful() ? (React.createElement(Popover, { trigger: "click", content: this.renderCriteriaForm() },
|
|
464
|
+
React.createElement(Button, null,
|
|
465
|
+
React.createElement(SearchOutlined, null)))) : null,
|
|
466
|
+
buttons.includes("dtmplAdd") && doCreate && !readOnly ? (ltmplConfig.classifiedAddConfigs &&
|
|
467
|
+
ltmplConfig.classifiedAddConfigs.length > 0 ? (React.createElement(Popover, { arrow: false, content: this.getAddTmplButton(ltmplConfig.classifiedAddConfigs), placement: "bottomRight" },
|
|
468
|
+
React.createElement(Tooltip, null,
|
|
436
469
|
React.createElement(Button, null,
|
|
437
|
-
React.createElement(
|
|
438
|
-
: null,
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
React.createElement(PlusOutlined, null)),
|
|
448
|
-
" ") : '',
|
|
449
|
-
(buttons.includes("dtmplCustomAdd") || customCreatable) && doCreate && !readOnly ?
|
|
450
|
-
React.createElement(Tooltip, { title: '创建' },
|
|
451
|
-
React.createElement(Button, { onClick: () => doCreate(null, true) },
|
|
452
|
-
React.createElement(PlusCircleOutlined, null))) : '',
|
|
453
|
-
buttons.includes("importLtmplExcel") && !readOnly ? React.createElement(Tooltip, { title: '导入' },
|
|
470
|
+
React.createElement(PlusOutlined, null))))) : (React.createElement(Tooltip, { title: translate("${创建}") },
|
|
471
|
+
React.createElement(Button, { onClick: () => doCreate(null, false) },
|
|
472
|
+
React.createElement(PlusOutlined, null)),
|
|
473
|
+
" "))) : (""),
|
|
474
|
+
(buttons.includes("dtmplCustomAdd") || customCreatable) &&
|
|
475
|
+
doCreate &&
|
|
476
|
+
!readOnly ? (React.createElement(Tooltip, { title: translate("${创建}") },
|
|
477
|
+
React.createElement(Button, { onClick: () => doCreate(null, true) },
|
|
478
|
+
React.createElement(PlusCircleOutlined, null)))) : (""),
|
|
479
|
+
buttons.includes("importLtmplExcel") && !readOnly ? (React.createElement(Tooltip, { title: translate("${导入}") },
|
|
454
480
|
" ",
|
|
455
|
-
React.createElement(Button, { href: `#/${sourceId}/importer?menuId=${menuId}`, target:
|
|
456
|
-
React.createElement(UploadOutlined, null))) :
|
|
457
|
-
buttons.includes("exportLtmplExcel") && !readOnly ? React.createElement(Popover, { content: React.createElement(ExportFrame //导出组件
|
|
458
|
-
, { serverKey: serverKey, queryKey: queryKey, title: ltmplConfig.title }), title: "导出", placement: "bottomRight", trigger: "click" },
|
|
459
|
-
React.createElement(Tooltip, { title:
|
|
481
|
+
React.createElement(Button, { href: `#/${sourceId}/importer?menuId=${menuId}`, target: "_blank" },
|
|
482
|
+
React.createElement(UploadOutlined, null)))) : (""),
|
|
483
|
+
buttons.includes("exportLtmplExcel") && !readOnly ? (React.createElement(Popover, { content: React.createElement(ExportFrame //导出组件
|
|
484
|
+
, { serverKey: serverKey, queryKey: queryKey, title: ltmplConfig.title }), title: translate("${导出}"), placement: "bottomRight", trigger: "click" },
|
|
485
|
+
React.createElement(Tooltip, { title: translate("${导出}") },
|
|
460
486
|
React.createElement(Button, { style: {
|
|
461
|
-
display: buttons.includes("exportLtmplExcel") && !readOnly
|
|
462
|
-
|
|
487
|
+
display: buttons.includes("exportLtmplExcel") && !readOnly
|
|
488
|
+
? "inline"
|
|
489
|
+
: "none",
|
|
490
|
+
marginLeft: "5px",
|
|
463
491
|
} },
|
|
464
|
-
React.createElement(DownloadOutlined, null)))) : "",
|
|
465
|
-
buttons.includes("showChart") ? React.createElement(Tooltip, { title: showL2Chart
|
|
492
|
+
React.createElement(DownloadOutlined, null))))) : (""),
|
|
493
|
+
buttons.includes("showChart") ? (React.createElement(Tooltip, { title: showL2Chart
|
|
494
|
+
? translate("${隐藏}${图表}")
|
|
495
|
+
: translate("${展示}${图表}") },
|
|
466
496
|
React.createElement(Button, { onClick: this.handleShowChart },
|
|
467
|
-
React.createElement(LineChartOutlined, null))) : "",
|
|
468
|
-
buttons.includes("analysis") ? React.createElement(Tooltip, { title: showL2ActTable
|
|
497
|
+
React.createElement(LineChartOutlined, null)))) : (""),
|
|
498
|
+
buttons.includes("analysis") ? (React.createElement(Tooltip, { title: showL2ActTable
|
|
499
|
+
? translate("${隐藏}${数据分析}")
|
|
500
|
+
: translate("${展示}${数据分析}") },
|
|
469
501
|
React.createElement(Button, { onClick: this.handleDataAnalysis },
|
|
470
|
-
React.createElement(FundOutlined, null))) : "",
|
|
471
|
-
buttons.includes("reStat") && !readOnly ? React.createElement(Restat, { serverKey: serverKey, fields: ltmplConfig.reStatParams, sourceId: sourceId, onfinish: () => doSearch(null) }) : "",
|
|
502
|
+
React.createElement(FundOutlined, null)))) : (""),
|
|
503
|
+
buttons.includes("reStat") && !readOnly ? (React.createElement(Restat, { serverKey: serverKey, fields: ltmplConfig.reStatParams, sourceId: sourceId, onfinish: () => doSearch(null) })) : (""),
|
|
472
504
|
React.createElement(Popover, { content: React.createElement(Checkbox.Group, { value: viewModels, onChange: this.changeViewModel },
|
|
473
|
-
React.createElement(Row, { style: { width:
|
|
505
|
+
React.createElement(Row, { style: { width: "120px" } },
|
|
474
506
|
React.createElement(Col, { span: 24 },
|
|
475
|
-
React.createElement(Checkbox, { value:
|
|
507
|
+
React.createElement(Checkbox, { value: "table" }, translate("${表格}"))),
|
|
476
508
|
React.createElement(Col, { span: 24 },
|
|
477
|
-
React.createElement(Checkbox, { value:
|
|
478
|
-
React.createElement(Tooltip, { title:
|
|
509
|
+
React.createElement(Checkbox, { value: "verticalList" }, translate("纵向列表"))))), title: translate("${视图}"), placement: "bottomRight", trigger: "click" },
|
|
510
|
+
React.createElement(Tooltip, { title: translate("${选择视图}") },
|
|
479
511
|
React.createElement(Button, null,
|
|
480
512
|
React.createElement(RetweetOutlined, null)))),
|
|
481
|
-
React.createElement(Popover, { content: React.createElement(ColumnSelector, { columns: sortedColConfigs, disabledColIds: disabledColIds, hiddenColIds: hiddenColIds, onChangeColSort: this.onChangeColSort, onChangeHiddenCols: this.changeHiddenColumns }), title:
|
|
482
|
-
React.createElement(Tooltip, { title:
|
|
513
|
+
React.createElement(Popover, { content: React.createElement(ColumnSelector, { columns: sortedColConfigs, disabledColIds: disabledColIds, hiddenColIds: hiddenColIds, onChangeColSort: this.onChangeColSort, onChangeHiddenCols: this.changeHiddenColumns }), title: translate("${排序和选择列}"), placement: "bottomRight", trigger: "click" },
|
|
514
|
+
React.createElement(Tooltip, { title: translate("${点击排序和选择列}") },
|
|
483
515
|
React.createElement(Button, null,
|
|
484
516
|
React.createElement(TableOutlined, null)))),
|
|
485
|
-
doSearch ?
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
React.createElement(ReloadOutlined, null)) : ""));
|
|
517
|
+
doSearch ? (React.createElement(Button, { className: "hoverbig", title: translate("${刷新}"), onClick: () => {
|
|
518
|
+
doSearch(null);
|
|
519
|
+
} },
|
|
520
|
+
React.createElement(ReloadOutlined, null))) : (""))));
|
|
490
521
|
};
|
|
491
522
|
this.criteriaFormUseful = () => {
|
|
492
523
|
const { ltmplConfig } = this.props;
|
|
493
|
-
let { buttons, criterias
|
|
494
|
-
if ((buttons.includes(
|
|
524
|
+
let { buttons, criterias } = ltmplConfig;
|
|
525
|
+
if ((buttons.includes("query") &&
|
|
526
|
+
((criterias && criterias.length > 0) ||
|
|
527
|
+
buttons.includes("drilling"))) ||
|
|
495
528
|
this.checkBoxUseful()) {
|
|
496
529
|
return true;
|
|
497
530
|
}
|
|
@@ -502,8 +535,9 @@ class ActTable extends React.PureComponent {
|
|
|
502
535
|
this.checkBoxUseful = () => {
|
|
503
536
|
const { ltmplConfig } = this.props;
|
|
504
537
|
let { buttons, jumps, actions } = ltmplConfig;
|
|
505
|
-
if (buttons.includes(
|
|
506
|
-
(actions && actions.length > 0) ||
|
|
538
|
+
if (buttons.includes("batchDelete") ||
|
|
539
|
+
(actions && actions.length > 0) ||
|
|
540
|
+
(jumps && jumps.length > 0)) {
|
|
507
541
|
return true;
|
|
508
542
|
}
|
|
509
543
|
else {
|
|
@@ -513,20 +547,20 @@ class ActTable extends React.PureComponent {
|
|
|
513
547
|
this.renderCriteriaForm = () => {
|
|
514
548
|
let { loading, selectedRows, selectedDatas } = this.state;
|
|
515
549
|
let { ltmplConfig, doSearch, criteriaData, serverKey } = this.props;
|
|
516
|
-
return React.createElement(CriteriaForm, { serverKey: serverKey, loading: loading, selectedDatas: selectedDatas, selectedRows: selectedRows, ltmplConfig: ltmplConfig, data: criteriaData, doCQuery: this.doSelectedCQuery, doAction: this.doSelectedAction, doDelete: this.doDelete, doJump: this.doSelectedJump, doSearch: doSearch });
|
|
550
|
+
return (React.createElement(CriteriaForm, { serverKey: serverKey, loading: loading, selectedDatas: selectedDatas, selectedRows: selectedRows, ltmplConfig: ltmplConfig, data: criteriaData, doCQuery: this.doSelectedCQuery, doAction: this.doSelectedAction, doDelete: this.doDelete, doJump: this.doSelectedJump, doSearch: doSearch }));
|
|
517
551
|
};
|
|
518
552
|
this.renderContent = () => {
|
|
519
|
-
let { queryKey, loading, selectedRows, hiddenRowCodes, viewModels, sortedColConfigs, hiddenColIds, showL2ActTable } = this.state;
|
|
520
|
-
let { sourceId, ltmplConfig, funcMode, title, collapsible, pageSize, pageNo, onChangePage, serverKey } = this.props;
|
|
553
|
+
let { queryKey, loading, selectedRows, hiddenRowCodes, viewModels, sortedColConfigs, hiddenColIds, showL2ActTable, } = this.state;
|
|
554
|
+
let { sourceId, ltmplConfig, funcMode, title, collapsible, pageSize, pageNo, onChangePage, serverKey, } = this.props;
|
|
521
555
|
if (!ltmplConfig || !sourceId) {
|
|
522
|
-
return React.createElement(React.Fragment, null,
|
|
556
|
+
return (React.createElement(React.Fragment, null,
|
|
523
557
|
React.createElement(Card, { loading: loading }),
|
|
524
|
-
React.createElement(Table, { loading: loading }));
|
|
558
|
+
React.createElement(Table, { loading: loading })));
|
|
525
559
|
}
|
|
526
560
|
let tableColumns = this.buildTableColumns(ltmplConfig, hiddenColIds, hiddenRowCodes, sortedColConfigs);
|
|
527
561
|
let { buttons } = ltmplConfig;
|
|
528
562
|
let displayCriteriaCard = false;
|
|
529
|
-
if (funcMode ==
|
|
563
|
+
if (funcMode == "simple" || funcMode == "common") {
|
|
530
564
|
displayCriteriaCard = false;
|
|
531
565
|
}
|
|
532
566
|
else if (this.criteriaFormUseful()) {
|
|
@@ -541,30 +575,35 @@ class ActTable extends React.PureComponent {
|
|
|
541
575
|
}
|
|
542
576
|
}
|
|
543
577
|
return (React.createElement(React.Fragment, null,
|
|
544
|
-
buttons.includes("analysis") && showL2ActTable ? React.createElement("div", null,
|
|
578
|
+
buttons.includes("analysis") && showL2ActTable ? (React.createElement("div", null,
|
|
545
579
|
React.createElement(L2ActTable, { serverKey: serverKey, innerQueryKey: queryKey.key, sourceId: sourceId }),
|
|
546
|
-
React.createElement(Divider, { dashed: true, style: { borderTopColor: "#40a9ff"
|
|
580
|
+
React.createElement(Divider, { dashed: true, style: { borderTopColor: "#40a9ff" }, plain: true }))) : (""),
|
|
547
581
|
React.createElement("div", { className: "actTable" },
|
|
548
|
-
funcMode ==
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
ltmplConfig.footer ? React.createElement("div", { style: { padding:
|
|
582
|
+
funcMode == "complete" || funcMode == "common" ? (collapsible ? null : (React.createElement("span", null,
|
|
583
|
+
ltmplConfig.header ? (React.createElement("div", { style: { padding: "6px" }, dangerouslySetInnerHTML: { __html: ltmplConfig.header } })) : null,
|
|
584
|
+
React.createElement("h3", null,
|
|
585
|
+
" ",
|
|
586
|
+
title ? title : ltmplConfig.title,
|
|
587
|
+
React.createElement("p", { className: "fr" }, this.renderHeaderButtons()))))) : null,
|
|
588
|
+
displayCriteriaCard ? this.renderCriteriaForm() : null,
|
|
589
|
+
loading ? ("") : (React.createElement(QueryTable, { serverKey: serverKey, onChangePage: onChangePage, viewModels: viewModels, primaryColumn: ltmplConfig.primaryColumn, columnConfigs: columnConfigs, maxSelectedRows: this.checkBoxUseful() ? 10000 : -1, selectedRows: selectedRows, columns: tableColumns, hiddenRowCodes: hiddenRowCodes, pageInfo: {
|
|
590
|
+
pageNo: pageNo ? pageNo : 1,
|
|
591
|
+
pageSize: pageSize ? pageSize : ltmplConfig.defaultPageSize,
|
|
592
|
+
}, queryKey: queryKey, onChangeRowSelection: this.changeRowSelection })),
|
|
593
|
+
ltmplConfig.footer ? (React.createElement("div", { style: { padding: "6px" }, dangerouslySetInnerHTML: { __html: ltmplConfig.footer } })) : null)));
|
|
560
594
|
};
|
|
561
595
|
}
|
|
562
596
|
componentDidMount() {
|
|
563
597
|
return __awaiter(this, void 0, void 0, function* () {
|
|
564
598
|
const { ltmplConfig } = this.props;
|
|
599
|
+
const { translate } = this.context;
|
|
565
600
|
let sortedColConfigs = undefined;
|
|
566
601
|
if (ltmplConfig) {
|
|
567
|
-
sortedColConfigs = [
|
|
602
|
+
sortedColConfigs = [
|
|
603
|
+
{ id: "10000", title: translate("${排序}") },
|
|
604
|
+
...ltmplConfig.columns,
|
|
605
|
+
{ id: "20000", title: translate("${隐藏}") },
|
|
606
|
+
];
|
|
568
607
|
}
|
|
569
608
|
this.loadData(defaultDisabledColIds, [], sortedColConfigs);
|
|
570
609
|
});
|
|
@@ -572,21 +611,34 @@ class ActTable extends React.PureComponent {
|
|
|
572
611
|
componentDidUpdate(prevProps) {
|
|
573
612
|
return __awaiter(this, void 0, void 0, function* () {
|
|
574
613
|
const { sourceId, criteriaData, ltmplConfig } = this.props;
|
|
575
|
-
|
|
614
|
+
const { translate } = this.context;
|
|
615
|
+
let { ltmplConfig: preLtmplConfig, criteriaData: preCriteriaData, sourceId: preSourceId, } = prevProps;
|
|
576
616
|
let { hiddenColIds, sortedColConfigs } = this.state;
|
|
577
617
|
if ((sourceId && preSourceId != sourceId) ||
|
|
578
|
-
(ltmplConfig &&
|
|
579
|
-
|
|
618
|
+
(ltmplConfig &&
|
|
619
|
+
(!preLtmplConfig || ltmplConfig.id != preLtmplConfig.id)) ||
|
|
620
|
+
Units.transQueryParamsToStr(criteriaData, false, [
|
|
621
|
+
"pageSize",
|
|
622
|
+
"pageNo",
|
|
623
|
+
]) !=
|
|
624
|
+
Units.transQueryParamsToStr(preCriteriaData, false, [
|
|
625
|
+
"pageSize",
|
|
626
|
+
"pageNo",
|
|
627
|
+
])) {
|
|
580
628
|
if (ltmplConfig.id == preLtmplConfig.id) {
|
|
581
629
|
this.loadData(hiddenColIds, [], sortedColConfigs);
|
|
582
630
|
}
|
|
583
631
|
else {
|
|
584
632
|
let sColConfigs = undefined;
|
|
585
633
|
if (ltmplConfig) {
|
|
586
|
-
sColConfigs = [
|
|
634
|
+
sColConfigs = [
|
|
635
|
+
{ id: "10000", title: translate("${排序}") },
|
|
636
|
+
...ltmplConfig.columns,
|
|
637
|
+
{ id: "20000", title: translate("${隐藏}") },
|
|
638
|
+
];
|
|
587
639
|
}
|
|
588
640
|
this.setState({
|
|
589
|
-
viewModels: [
|
|
641
|
+
viewModels: ["table"],
|
|
590
642
|
});
|
|
591
643
|
this.loadData(defaultDisabledColIds, [], sColConfigs);
|
|
592
644
|
}
|
|
@@ -595,26 +647,25 @@ class ActTable extends React.PureComponent {
|
|
|
595
647
|
}
|
|
596
648
|
render() {
|
|
597
649
|
let { queryKey, loading } = this.state;
|
|
598
|
-
let { sourceId, ltmplConfig, title, collapsible, initCollapse, tip } = this.props;
|
|
650
|
+
let { sourceId, ltmplConfig, title, collapsible, initCollapse, tip, } = this.props;
|
|
599
651
|
if (!ltmplConfig || !sourceId) {
|
|
600
|
-
return React.createElement(React.Fragment, null,
|
|
652
|
+
return (React.createElement(React.Fragment, null,
|
|
601
653
|
React.createElement(Card, { loading: loading }),
|
|
602
|
-
React.createElement(Table, { loading: loading }));
|
|
654
|
+
React.createElement(Table, { loading: loading })));
|
|
603
655
|
}
|
|
604
|
-
return React.createElement(React.Fragment, null,
|
|
656
|
+
return (React.createElement(React.Fragment, null,
|
|
605
657
|
" ",
|
|
606
|
-
collapsible ?
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
extra: this.renderHeaderButtons() }, this.renderContent()) :
|
|
612
|
-
React.createElement(React.Fragment, null, this.renderContent()));
|
|
658
|
+
collapsible ? (React.createElement(CollapseCard, { initCollapse: initCollapse, title: React.createElement(React.Fragment, null,
|
|
659
|
+
title ? title : ltmplConfig.title,
|
|
660
|
+
React.createElement(ToolTipBar, { content: tip ? tip : ltmplConfig ? ltmplConfig.tip : null })), id: queryKey + ltmplConfig.id, className: `hoverable`, headStyle: { background: "#f2f4f5" }, loading: loading, bodyStyle: { padding: "6px" },
|
|
661
|
+
//暂时注释掉,后续要支持配置。
|
|
662
|
+
extra: this.renderHeaderButtons() }, this.renderContent())) : (React.createElement(React.Fragment, null, this.renderContent()))));
|
|
613
663
|
}
|
|
614
664
|
}
|
|
665
|
+
ActTable.contextType = LocaleContext;
|
|
615
666
|
ActTable.defaultProps = {
|
|
616
667
|
criteriaData: {},
|
|
617
|
-
funcMode:
|
|
668
|
+
funcMode: "complete",
|
|
618
669
|
collapsible: false,
|
|
619
670
|
initCollapse: false,
|
|
620
671
|
readOnly: false,
|