aldehyde 0.0.4 → 0.0.5
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 +6 -6
- package/src/components/chart/antd/Chart.js +32 -0
- package/src/components/chart/antd/Chart10000.js +90 -0
- package/src/components/chart/antd/Max2DimLineChart.js +128 -0
- package/src/components/chart/antd/PieChart1.js +54 -0
- package/src/components/chart/antd/PieChart2.js +56 -0
- package/src/components/chart/antd/chart-utils.tsx +50 -0
- package/src/components/chart/antd/column-chart-sub.tsx +67 -0
- package/src/components/chart/antd/line-chart-sub.tsx +65 -0
- package/src/components/chart/antd/pie-chart-sub.tsx +54 -0
- package/src/components/chart/antd/statview-d2-chart.tsx +125 -0
- package/src/components/chart/statview-l2-chart.tsx +69 -0
- package/src/components/controls/action/index.css +9 -0
- package/src/components/controls/action/index.tsx +228 -0
- package/{lib/src/components/controls/action/utils.js → src/components/controls/action/utils.tsx} +53 -41
- package/src/components/controls/auto-complete/index.tsx +80 -0
- package/src/components/controls/cascader/index.js +97 -0
- package/src/components/controls/chemstruc/graph.tsx +150 -0
- package/src/components/controls/chemstruc/index.css +28 -0
- package/src/components/controls/collapse-card/index.css +9 -0
- package/src/components/controls/collapse-card/index.tsx +59 -0
- package/src/components/controls/color-picker/index.css +27 -0
- package/src/components/controls/color-picker/index.tsx +88 -0
- package/src/components/controls/cquery/cquick-button.tsx +117 -0
- package/src/components/controls/date-picker/index.tsx +141 -0
- package/src/components/controls/entity-select/entity-select.tsx +277 -0
- package/src/components/controls/entity-select/index.css +6 -0
- package/src/components/controls/entity-select/popover-entity-select.tsx +112 -0
- package/src/components/controls/entry-control.tsx +240 -0
- package/src/components/controls/enum-badge/index.tsx +28 -0
- package/src/components/controls/enum-tag/index.tsx +30 -0
- package/src/components/controls/file-view/drawer-file-view.tsx +69 -0
- package/src/components/controls/file-view/index.tsx +145 -0
- package/src/components/controls/html-editor/draft.tsx +161 -0
- package/src/components/controls/html-editor/tinymce.js +55 -0
- package/src/components/controls/input-number/index.tsx +101 -0
- package/src/components/controls/input-range/index.tsx +48 -0
- package/src/components/controls/password-setter/index.css +3 -0
- package/src/components/controls/password-setter/index.js +70 -0
- package/src/components/controls/progress/index.tsx +61 -0
- package/src/components/controls/relation-existion/index.css +4 -0
- package/src/components/controls/relation-existion/index.tsx +108 -0
- package/src/components/controls/rfield/index.css +4 -0
- package/src/components/controls/rfield/index.tsx +161 -0
- package/src/components/controls/signature/index.tsx +162 -0
- package/src/components/controls/steps/index.tsx +58 -0
- package/src/components/controls/text/ellipsis-text.tsx +70 -0
- package/src/components/controls/upload/index.tsx +122 -0
- package/src/components/controls/view-control.tsx +177 -0
- package/src/components/detail/button/cquery-button-bar.tsx +112 -0
- package/src/components/detail/button/index.css +43 -0
- package/src/components/detail/button/submit-button-bar.tsx +151 -0
- package/src/components/detail/dtmpl.css +53 -0
- package/src/components/detail/edit/dtmpl-edit.tsx +218 -0
- package/src/components/detail/edit/fields-edit-card.tsx +103 -0
- package/src/components/detail/edit/modal-dtmpl-edit.tsx +198 -0
- package/src/components/detail/edit/modal-row-edit.tsx +72 -0
- package/src/components/detail/edit/post-result/index.tsx +52 -0
- package/src/components/detail/edit/row-edit-card.tsx +125 -0
- package/src/components/detail/edit/row-editor.tsx +71 -0
- package/src/components/detail/rightbar/index.css +35 -0
- package/src/components/detail/rightbar/index.tsx +76 -0
- package/src/components/detail/view/act-dtmpl-view.tsx +155 -0
- package/src/components/detail/view/dtmpl-view.tsx +143 -0
- package/src/components/detail/view/field-view-group.tsx +73 -0
- package/src/components/detail/view/modal-dtmpl-view.tsx +56 -0
- package/src/components/detail/view/snapshot-timeline.tsx +130 -0
- package/src/components/exportor/export-frame.css +3 -0
- package/src/components/exportor/export-frame.tsx +194 -0
- package/src/components/exportor/index.tsx +60 -0
- package/src/components/form/criteria-form.tsx +241 -0
- package/src/components/form/dtmpl-form.css +4 -0
- package/src/components/form/dtmpl-form.tsx +272 -0
- package/src/components/form/field-group-form.tsx +75 -0
- package/src/components/form/fields-form.tsx +51 -0
- package/src/components/form/form-Item-group.tsx +99 -0
- package/src/components/form/index.css +13 -0
- package/src/components/import/excel-import.tsx +316 -0
- package/src/components/import/index.css +54 -0
- package/src/components/import/template-builder.js +474 -0
- package/src/components/import/template.css +51 -0
- package/src/components/layout/MainPage.tsx +230 -0
- package/src/components/layout/footer/index.css +6 -0
- package/src/components/layout/footer/index.js +17 -0
- package/src/components/layout/header/index.css +86 -0
- package/src/components/layout/header/index.tsx +58 -0
- package/src/components/layout/menu/block.tsx +88 -0
- package/src/components/layout/menu/l2menu-message-bar.tsx +118 -0
- package/src/components/layout/menu/l2menu-quick-bar.tsx +132 -0
- package/src/components/layout/menu/menu-2layers.tsx +92 -0
- package/src/components/layout/menu/menu-render.tsx +49 -0
- package/src/components/layout/menu/reset-password.tsx +185 -0
- package/src/components/layout/menu/user-bar.tsx +97 -0
- package/src/components/layout/menu/userinfo-bar.tsx +70 -0
- package/src/components/layout/sidebar/index.css +26 -0
- package/src/components/layout/sidebar/index.tsx +38 -0
- package/src/components/login.js +137 -0
- package/src/components/module/dtmpl-page.tsx +70 -0
- package/src/components/module/ltmpl-page.tsx +181 -0
- package/src/components/routable/dtmpl-route.tsx +96 -0
- package/src/components/routable/import-route.tsx +28 -0
- package/src/components/routable/ltmpl-route.tsx +158 -0
- package/src/components/table/act-table.tsx +635 -0
- package/src/components/table/column/column-selector.tsx +79 -0
- package/src/components/table/column/index.css +14 -0
- package/src/components/table/index.css +45 -0
- package/src/components/table/l2-act-table.tsx +85 -0
- package/src/components/table/modal-select-table.tsx +248 -0
- package/src/components/table/pagination.css +15 -0
- package/src/components/table/pagination.tsx +72 -0
- package/src/components/table/query-table.tsx +331 -0
- package/src/components/table/relation-table.tsx +600 -0
- package/src/components/table/select-table.tsx +247 -0
- package/src/components/table/selected-rows-card.tsx +62 -0
- package/src/components/table/stat/restat.tsx +79 -0
- package/{lib/src/components/table/table-util.js → src/components/table/table-util.tsx} +15 -12
- package/{lib/src/components/tmpl/control-type-supportor.js → src/components/tmpl/control-type-supportor.tsx} +30 -18
- package/src/components/tmpl/hc-data-source.tsx +230 -0
- package/src/components/tmpl/hcservice-v3.tsx +624 -0
- package/{lib/src/components/tmpl/interface.d.ts → src/components/tmpl/interface.tsx} +147 -73
- package/src/components/tmpl/superagent.js +93 -0
- package/src/components/tmpl/tmpl-config-analysis.tsx +111 -0
- package/src/components/units/EncryptUtils.js +38 -0
- package/src/components/units/image.d.ts +8 -0
- package/{lib/src/components/units/index.js → src/components/units/index.tsx} +150 -149
- package/{dist/images/logo-06f6a5d8.png → src/components/units/logo.png} +0 -0
- package/src/components/units/storage.js +3 -0
- package/src/components/welcome/HCWelcome.js +232 -0
- package/src/components/welcome/index.css +13 -0
- package/src/components/welcome/logo.png +0 -0
- package/src/components/welcome/quick-entrance.tsx +77 -0
- package/src/components/welcome/workbench.tsx +76 -0
- package/src/index.tsx +5 -0
- package/src/style/common.css +79 -0
- package/src/style/coverstyle.css +49 -0
- package/src/style/transstyle.css +24 -0
- package/dist/aldehyde.js +0 -1
- package/dist/chemstruc-graph.js +0 -1
- package/dist/html-editor-draft.js +0 -1
- package/dist/index.html +0 -4
- package/dist/signature.js +0 -1
- package/lib/public/programConfig.json +0 -10
- package/lib/src/components/chart/antd/chart-utils.d.ts +0 -7
- package/lib/src/components/chart/antd/chart-utils.d.ts.map +0 -1
- package/lib/src/components/chart/antd/chart-utils.js +0 -46
- package/lib/src/components/chart/antd/chart-utils.js.map +0 -1
- package/lib/src/components/chart/antd/column-chart-sub.d.ts +0 -7
- package/lib/src/components/chart/antd/column-chart-sub.d.ts.map +0 -1
- package/lib/src/components/chart/antd/column-chart-sub.js +0 -50
- package/lib/src/components/chart/antd/column-chart-sub.js.map +0 -1
- package/lib/src/components/chart/antd/line-chart-sub.d.ts +0 -7
- package/lib/src/components/chart/antd/line-chart-sub.d.ts.map +0 -1
- package/lib/src/components/chart/antd/line-chart-sub.js +0 -49
- package/lib/src/components/chart/antd/line-chart-sub.js.map +0 -1
- package/lib/src/components/chart/antd/pie-chart-sub.d.ts +0 -7
- package/lib/src/components/chart/antd/pie-chart-sub.d.ts.map +0 -1
- package/lib/src/components/chart/antd/pie-chart-sub.js +0 -37
- package/lib/src/components/chart/antd/pie-chart-sub.js.map +0 -1
- package/lib/src/components/chart/antd/statview-d2-chart.d.ts +0 -17
- package/lib/src/components/chart/antd/statview-d2-chart.d.ts.map +0 -1
- package/lib/src/components/chart/antd/statview-d2-chart.js +0 -108
- package/lib/src/components/chart/antd/statview-d2-chart.js.map +0 -1
- package/lib/src/components/chart/statview-l2-chart.d.ts +0 -23
- package/lib/src/components/chart/statview-l2-chart.d.ts.map +0 -1
- package/lib/src/components/chart/statview-l2-chart.js +0 -64
- package/lib/src/components/chart/statview-l2-chart.js.map +0 -1
- package/lib/src/components/controls/action/index.d.ts +0 -47
- package/lib/src/components/controls/action/index.d.ts.map +0 -1
- package/lib/src/components/controls/action/index.js +0 -165
- package/lib/src/components/controls/action/index.js.map +0 -1
- package/lib/src/components/controls/action/utils.d.ts +0 -9
- package/lib/src/components/controls/action/utils.d.ts.map +0 -1
- package/lib/src/components/controls/action/utils.js.map +0 -1
- package/lib/src/components/controls/auto-complete/index.d.ts +0 -7
- package/lib/src/components/controls/auto-complete/index.d.ts.map +0 -1
- package/lib/src/components/controls/auto-complete/index.js +0 -53
- package/lib/src/components/controls/auto-complete/index.js.map +0 -1
- package/lib/src/components/controls/chemstruc/graph.d.ts +0 -31
- package/lib/src/components/controls/chemstruc/graph.d.ts.map +0 -1
- package/lib/src/components/controls/chemstruc/graph.js +0 -121
- package/lib/src/components/controls/chemstruc/graph.js.map +0 -1
- package/lib/src/components/controls/collapse-card/index.d.ts +0 -20
- package/lib/src/components/controls/collapse-card/index.d.ts.map +0 -1
- package/lib/src/components/controls/collapse-card/index.js +0 -63
- package/lib/src/components/controls/collapse-card/index.js.map +0 -1
- package/lib/src/components/controls/color-picker/index.d.ts +0 -19
- package/lib/src/components/controls/color-picker/index.d.ts.map +0 -1
- package/lib/src/components/controls/color-picker/index.js +0 -61
- package/lib/src/components/controls/color-picker/index.js.map +0 -1
- package/lib/src/components/controls/cquery/cquick-button.d.ts +0 -20
- package/lib/src/components/controls/cquery/cquick-button.d.ts.map +0 -1
- package/lib/src/components/controls/cquery/cquick-button.js +0 -67
- package/lib/src/components/controls/cquery/cquick-button.js.map +0 -1
- package/lib/src/components/controls/date-picker/index.d.ts +0 -7
- package/lib/src/components/controls/date-picker/index.d.ts.map +0 -1
- package/lib/src/components/controls/date-picker/index.js +0 -91
- package/lib/src/components/controls/date-picker/index.js.map +0 -1
- package/lib/src/components/controls/entity-select/entity-select.d.ts +0 -53
- package/lib/src/components/controls/entity-select/entity-select.d.ts.map +0 -1
- package/lib/src/components/controls/entity-select/entity-select.js +0 -227
- package/lib/src/components/controls/entity-select/entity-select.js.map +0 -1
- package/lib/src/components/controls/entity-select/popover-entity-select.d.ts +0 -20
- package/lib/src/components/controls/entity-select/popover-entity-select.d.ts.map +0 -1
- package/lib/src/components/controls/entity-select/popover-entity-select.js +0 -80
- package/lib/src/components/controls/entity-select/popover-entity-select.js.map +0 -1
- package/lib/src/components/controls/entry-control.d.ts +0 -11
- package/lib/src/components/controls/entry-control.d.ts.map +0 -1
- package/lib/src/components/controls/entry-control.js +0 -171
- package/lib/src/components/controls/entry-control.js.map +0 -1
- package/lib/src/components/controls/enum-badge/index.d.ts +0 -7
- package/lib/src/components/controls/enum-badge/index.d.ts.map +0 -1
- package/lib/src/components/controls/enum-badge/index.js +0 -14
- package/lib/src/components/controls/enum-badge/index.js.map +0 -1
- package/lib/src/components/controls/enum-tag/index.d.ts +0 -7
- package/lib/src/components/controls/enum-tag/index.d.ts.map +0 -1
- package/lib/src/components/controls/enum-tag/index.js +0 -18
- package/lib/src/components/controls/enum-tag/index.js.map +0 -1
- package/lib/src/components/controls/file-view/drawer-file-view.d.ts +0 -18
- package/lib/src/components/controls/file-view/drawer-file-view.d.ts.map +0 -1
- package/lib/src/components/controls/file-view/drawer-file-view.js +0 -51
- package/lib/src/components/controls/file-view/drawer-file-view.js.map +0 -1
- package/lib/src/components/controls/file-view/index.d.ts +0 -23
- package/lib/src/components/controls/file-view/index.d.ts.map +0 -1
- package/lib/src/components/controls/file-view/index.js +0 -130
- package/lib/src/components/controls/file-view/index.js.map +0 -1
- package/lib/src/components/controls/html-editor/draft.d.ts +0 -22
- package/lib/src/components/controls/html-editor/draft.d.ts.map +0 -1
- package/lib/src/components/controls/html-editor/draft.js +0 -122
- package/lib/src/components/controls/html-editor/draft.js.map +0 -1
- package/lib/src/components/controls/input-number/index.d.ts +0 -7
- package/lib/src/components/controls/input-number/index.d.ts.map +0 -1
- package/lib/src/components/controls/input-number/index.js +0 -67
- package/lib/src/components/controls/input-number/index.js.map +0 -1
- package/lib/src/components/controls/input-range/index.d.ts +0 -7
- package/lib/src/components/controls/input-range/index.d.ts.map +0 -1
- package/lib/src/components/controls/input-range/index.js +0 -28
- package/lib/src/components/controls/input-range/index.js.map +0 -1
- package/lib/src/components/controls/progress/index.d.ts +0 -7
- package/lib/src/components/controls/progress/index.d.ts.map +0 -1
- package/lib/src/components/controls/progress/index.js +0 -45
- package/lib/src/components/controls/progress/index.js.map +0 -1
- package/lib/src/components/controls/relation-existion/index.d.ts +0 -20
- package/lib/src/components/controls/relation-existion/index.d.ts.map +0 -1
- package/lib/src/components/controls/relation-existion/index.js +0 -75
- package/lib/src/components/controls/relation-existion/index.js.map +0 -1
- package/lib/src/components/controls/rfield/index.d.ts +0 -29
- package/lib/src/components/controls/rfield/index.d.ts.map +0 -1
- package/lib/src/components/controls/rfield/index.js +0 -130
- package/lib/src/components/controls/rfield/index.js.map +0 -1
- package/lib/src/components/controls/signature/index.d.ts +0 -31
- package/lib/src/components/controls/signature/index.d.ts.map +0 -1
- package/lib/src/components/controls/signature/index.js +0 -129
- package/lib/src/components/controls/signature/index.js.map +0 -1
- package/lib/src/components/controls/steps/index.d.ts +0 -7
- package/lib/src/components/controls/steps/index.d.ts.map +0 -1
- package/lib/src/components/controls/steps/index.js +0 -42
- package/lib/src/components/controls/steps/index.js.map +0 -1
- package/lib/src/components/controls/text/ellipsis-text.d.ts +0 -22
- package/lib/src/components/controls/text/ellipsis-text.d.ts.map +0 -1
- package/lib/src/components/controls/text/ellipsis-text.js +0 -46
- package/lib/src/components/controls/text/ellipsis-text.js.map +0 -1
- package/lib/src/components/controls/upload/index.d.ts +0 -15
- package/lib/src/components/controls/upload/index.d.ts.map +0 -1
- package/lib/src/components/controls/upload/index.js +0 -100
- package/lib/src/components/controls/upload/index.js.map +0 -1
- package/lib/src/components/controls/view-control.d.ts +0 -10
- package/lib/src/components/controls/view-control.d.ts.map +0 -1
- package/lib/src/components/controls/view-control.js +0 -150
- package/lib/src/components/controls/view-control.js.map +0 -1
- package/lib/src/components/detail/button/cquery-button-bar.d.ts +0 -16
- package/lib/src/components/detail/button/cquery-button-bar.d.ts.map +0 -1
- package/lib/src/components/detail/button/cquery-button-bar.js +0 -75
- package/lib/src/components/detail/button/cquery-button-bar.js.map +0 -1
- package/lib/src/components/detail/button/submit-button-bar.d.ts +0 -19
- package/lib/src/components/detail/button/submit-button-bar.d.ts.map +0 -1
- package/lib/src/components/detail/button/submit-button-bar.js +0 -99
- package/lib/src/components/detail/button/submit-button-bar.js.map +0 -1
- package/lib/src/components/detail/edit/dtmpl-edit.d.ts +0 -48
- package/lib/src/components/detail/edit/dtmpl-edit.d.ts.map +0 -1
- package/lib/src/components/detail/edit/dtmpl-edit.js +0 -190
- package/lib/src/components/detail/edit/dtmpl-edit.js.map +0 -1
- package/lib/src/components/detail/edit/fields-edit-card.d.ts +0 -39
- package/lib/src/components/detail/edit/fields-edit-card.d.ts.map +0 -1
- package/lib/src/components/detail/edit/fields-edit-card.js +0 -64
- package/lib/src/components/detail/edit/fields-edit-card.js.map +0 -1
- package/lib/src/components/detail/edit/modal-dtmpl-edit.d.ts +0 -51
- package/lib/src/components/detail/edit/modal-dtmpl-edit.d.ts.map +0 -1
- package/lib/src/components/detail/edit/modal-dtmpl-edit.js +0 -168
- package/lib/src/components/detail/edit/modal-dtmpl-edit.js.map +0 -1
- package/lib/src/components/detail/edit/modal-row-edit.d.ts +0 -31
- package/lib/src/components/detail/edit/modal-row-edit.d.ts.map +0 -1
- package/lib/src/components/detail/edit/modal-row-edit.js +0 -56
- package/lib/src/components/detail/edit/modal-row-edit.js.map +0 -1
- package/lib/src/components/detail/edit/post-result/index.d.ts +0 -17
- package/lib/src/components/detail/edit/post-result/index.d.ts.map +0 -1
- package/lib/src/components/detail/edit/post-result/index.js +0 -28
- package/lib/src/components/detail/edit/post-result/index.js.map +0 -1
- package/lib/src/components/detail/edit/row-edit-card.d.ts +0 -42
- package/lib/src/components/detail/edit/row-edit-card.d.ts.map +0 -1
- package/lib/src/components/detail/edit/row-edit-card.js +0 -84
- package/lib/src/components/detail/edit/row-edit-card.js.map +0 -1
- package/lib/src/components/detail/edit/row-editor.d.ts +0 -31
- package/lib/src/components/detail/edit/row-editor.d.ts.map +0 -1
- package/lib/src/components/detail/edit/row-editor.js +0 -55
- package/lib/src/components/detail/edit/row-editor.js.map +0 -1
- package/lib/src/components/detail/rightbar/index.d.ts +0 -20
- package/lib/src/components/detail/rightbar/index.d.ts.map +0 -1
- package/lib/src/components/detail/rightbar/index.js +0 -51
- package/lib/src/components/detail/rightbar/index.js.map +0 -1
- package/lib/src/components/detail/view/act-dtmpl-view.d.ts +0 -46
- package/lib/src/components/detail/view/act-dtmpl-view.d.ts.map +0 -1
- package/lib/src/components/detail/view/act-dtmpl-view.js +0 -110
- package/lib/src/components/detail/view/act-dtmpl-view.js.map +0 -1
- package/lib/src/components/detail/view/dtmpl-view.d.ts +0 -42
- package/lib/src/components/detail/view/dtmpl-view.d.ts.map +0 -1
- package/lib/src/components/detail/view/dtmpl-view.js +0 -111
- package/lib/src/components/detail/view/dtmpl-view.js.map +0 -1
- package/lib/src/components/detail/view/field-view-group.d.ts +0 -17
- package/lib/src/components/detail/view/field-view-group.d.ts.map +0 -1
- package/lib/src/components/detail/view/field-view-group.js +0 -51
- package/lib/src/components/detail/view/field-view-group.js.map +0 -1
- package/lib/src/components/detail/view/modal-dtmpl-view.d.ts +0 -27
- package/lib/src/components/detail/view/modal-dtmpl-view.d.ts.map +0 -1
- package/lib/src/components/detail/view/modal-dtmpl-view.js +0 -32
- package/lib/src/components/detail/view/modal-dtmpl-view.js.map +0 -1
- package/lib/src/components/detail/view/snapshot-timeline.d.ts +0 -32
- package/lib/src/components/detail/view/snapshot-timeline.d.ts.map +0 -1
- package/lib/src/components/detail/view/snapshot-timeline.js +0 -90
- package/lib/src/components/detail/view/snapshot-timeline.js.map +0 -1
- package/lib/src/components/exportor/export-frame.d.ts +0 -50
- package/lib/src/components/exportor/export-frame.d.ts.map +0 -1
- package/lib/src/components/exportor/export-frame.js +0 -140
- package/lib/src/components/exportor/export-frame.js.map +0 -1
- package/lib/src/components/exportor/index.d.ts +0 -16
- package/lib/src/components/exportor/index.d.ts.map +0 -1
- package/lib/src/components/exportor/index.js +0 -44
- package/lib/src/components/exportor/index.js.map +0 -1
- package/lib/src/components/form/criteria-form.d.ts +0 -19
- package/lib/src/components/form/criteria-form.d.ts.map +0 -1
- package/lib/src/components/form/criteria-form.js +0 -167
- package/lib/src/components/form/criteria-form.js.map +0 -1
- package/lib/src/components/form/dtmpl-form.d.ts +0 -37
- package/lib/src/components/form/dtmpl-form.d.ts.map +0 -1
- package/lib/src/components/form/dtmpl-form.js +0 -213
- package/lib/src/components/form/dtmpl-form.js.map +0 -1
- package/lib/src/components/form/field-group-form.d.ts +0 -21
- package/lib/src/components/form/field-group-form.d.ts.map +0 -1
- package/lib/src/components/form/field-group-form.js +0 -58
- package/lib/src/components/form/field-group-form.js.map +0 -1
- package/lib/src/components/form/fields-form.d.ts +0 -20
- package/lib/src/components/form/fields-form.d.ts.map +0 -1
- package/lib/src/components/form/fields-form.js +0 -39
- package/lib/src/components/form/fields-form.js.map +0 -1
- package/lib/src/components/form/form-Item-group.d.ts +0 -22
- package/lib/src/components/form/form-Item-group.d.ts.map +0 -1
- package/lib/src/components/form/form-Item-group.js +0 -60
- package/lib/src/components/form/form-Item-group.js.map +0 -1
- package/lib/src/components/import/excel-import.d.ts +0 -48
- package/lib/src/components/import/excel-import.d.ts.map +0 -1
- package/lib/src/components/import/excel-import.js +0 -234
- package/lib/src/components/import/excel-import.js.map +0 -1
- package/lib/src/components/layout/MainPage.d.ts +0 -32
- package/lib/src/components/layout/MainPage.d.ts.map +0 -1
- package/lib/src/components/layout/MainPage.js +0 -202
- package/lib/src/components/layout/MainPage.js.map +0 -1
- package/lib/src/components/layout/header/index.d.ts +0 -16
- package/lib/src/components/layout/header/index.d.ts.map +0 -1
- package/lib/src/components/layout/header/index.js +0 -37
- package/lib/src/components/layout/header/index.js.map +0 -1
- package/lib/src/components/layout/menu/block.d.ts +0 -9
- package/lib/src/components/layout/menu/block.d.ts.map +0 -1
- package/lib/src/components/layout/menu/block.js +0 -48
- package/lib/src/components/layout/menu/block.js.map +0 -1
- package/lib/src/components/layout/menu/l2menu-message-bar.d.ts +0 -24
- package/lib/src/components/layout/menu/l2menu-message-bar.d.ts.map +0 -1
- package/lib/src/components/layout/menu/l2menu-message-bar.js +0 -97
- package/lib/src/components/layout/menu/l2menu-message-bar.js.map +0 -1
- package/lib/src/components/layout/menu/l2menu-quick-bar.d.ts +0 -30
- package/lib/src/components/layout/menu/l2menu-quick-bar.d.ts.map +0 -1
- package/lib/src/components/layout/menu/l2menu-quick-bar.js +0 -94
- package/lib/src/components/layout/menu/l2menu-quick-bar.js.map +0 -1
- package/lib/src/components/layout/menu/menu-2layers.d.ts +0 -9
- package/lib/src/components/layout/menu/menu-2layers.d.ts.map +0 -1
- package/lib/src/components/layout/menu/menu-2layers.js +0 -63
- package/lib/src/components/layout/menu/menu-2layers.js.map +0 -1
- package/lib/src/components/layout/menu/menu-render.d.ts +0 -8
- package/lib/src/components/layout/menu/menu-render.d.ts.map +0 -1
- package/lib/src/components/layout/menu/menu-render.js +0 -44
- package/lib/src/components/layout/menu/menu-render.js.map +0 -1
- package/lib/src/components/layout/menu/reset-password.d.ts +0 -25
- package/lib/src/components/layout/menu/reset-password.d.ts.map +0 -1
- package/lib/src/components/layout/menu/reset-password.js +0 -113
- package/lib/src/components/layout/menu/reset-password.js.map +0 -1
- package/lib/src/components/layout/menu/user-bar.d.ts +0 -19
- package/lib/src/components/layout/menu/user-bar.d.ts.map +0 -1
- package/lib/src/components/layout/menu/user-bar.js +0 -61
- package/lib/src/components/layout/menu/user-bar.js.map +0 -1
- package/lib/src/components/layout/menu/userinfo-bar.d.ts +0 -18
- package/lib/src/components/layout/menu/userinfo-bar.d.ts.map +0 -1
- package/lib/src/components/layout/menu/userinfo-bar.js +0 -50
- package/lib/src/components/layout/menu/userinfo-bar.js.map +0 -1
- package/lib/src/components/layout/sidebar/index.d.ts +0 -12
- package/lib/src/components/layout/sidebar/index.d.ts.map +0 -1
- package/lib/src/components/layout/sidebar/index.js +0 -19
- package/lib/src/components/layout/sidebar/index.js.map +0 -1
- package/lib/src/components/module/dtmpl-page.d.ts +0 -19
- package/lib/src/components/module/dtmpl-page.d.ts.map +0 -1
- package/lib/src/components/module/dtmpl-page.js +0 -46
- package/lib/src/components/module/dtmpl-page.js.map +0 -1
- package/lib/src/components/module/ltmpl-page.d.ts +0 -34
- package/lib/src/components/module/ltmpl-page.d.ts.map +0 -1
- package/lib/src/components/module/ltmpl-page.js +0 -154
- package/lib/src/components/module/ltmpl-page.js.map +0 -1
- package/lib/src/components/routable/dtmpl-route.d.ts +0 -17
- package/lib/src/components/routable/dtmpl-route.d.ts.map +0 -1
- package/lib/src/components/routable/dtmpl-route.js +0 -77
- package/lib/src/components/routable/dtmpl-route.js.map +0 -1
- package/lib/src/components/routable/import-route.d.ts +0 -13
- package/lib/src/components/routable/import-route.d.ts.map +0 -1
- package/lib/src/components/routable/import-route.js +0 -29
- package/lib/src/components/routable/import-route.js.map +0 -1
- package/lib/src/components/routable/ltmpl-route.d.ts +0 -25
- package/lib/src/components/routable/ltmpl-route.d.ts.map +0 -1
- package/lib/src/components/routable/ltmpl-route.js +0 -145
- package/lib/src/components/routable/ltmpl-route.js.map +0 -1
- package/lib/src/components/table/act-table.d.ts +0 -76
- package/lib/src/components/table/act-table.d.ts.map +0 -1
- package/lib/src/components/table/act-table.js +0 -454
- package/lib/src/components/table/act-table.js.map +0 -1
- package/lib/src/components/table/column/column-selector.d.ts +0 -26
- package/lib/src/components/table/column/column-selector.d.ts.map +0 -1
- package/lib/src/components/table/column/column-selector.js +0 -59
- package/lib/src/components/table/column/column-selector.js.map +0 -1
- package/lib/src/components/table/l2-act-table.d.ts +0 -23
- package/lib/src/components/table/l2-act-table.d.ts.map +0 -1
- package/lib/src/components/table/l2-act-table.js +0 -80
- package/lib/src/components/table/l2-act-table.js.map +0 -1
- package/lib/src/components/table/modal-select-table.d.ts +0 -41
- package/lib/src/components/table/modal-select-table.d.ts.map +0 -1
- package/lib/src/components/table/modal-select-table.js +0 -208
- package/lib/src/components/table/modal-select-table.js.map +0 -1
- package/lib/src/components/table/pagination.d.ts +0 -17
- package/lib/src/components/table/pagination.d.ts.map +0 -1
- package/lib/src/components/table/pagination.js +0 -40
- package/lib/src/components/table/pagination.js.map +0 -1
- package/lib/src/components/table/query-table.d.ts +0 -65
- package/lib/src/components/table/query-table.d.ts.map +0 -1
- package/lib/src/components/table/query-table.js +0 -257
- package/lib/src/components/table/query-table.js.map +0 -1
- package/lib/src/components/table/relation-table.d.ts +0 -61
- package/lib/src/components/table/relation-table.d.ts.map +0 -1
- package/lib/src/components/table/relation-table.js +0 -444
- package/lib/src/components/table/relation-table.js.map +0 -1
- package/lib/src/components/table/select-table.d.ts +0 -40
- package/lib/src/components/table/select-table.d.ts.map +0 -1
- package/lib/src/components/table/select-table.js +0 -223
- package/lib/src/components/table/select-table.js.map +0 -1
- package/lib/src/components/table/selected-rows-card.d.ts +0 -16
- package/lib/src/components/table/selected-rows-card.d.ts.map +0 -1
- package/lib/src/components/table/selected-rows-card.js +0 -47
- package/lib/src/components/table/selected-rows-card.js.map +0 -1
- package/lib/src/components/table/stat/restat.d.ts +0 -26
- package/lib/src/components/table/stat/restat.d.ts.map +0 -1
- package/lib/src/components/table/stat/restat.js +0 -61
- package/lib/src/components/table/stat/restat.js.map +0 -1
- package/lib/src/components/table/table-util.d.ts +0 -5
- package/lib/src/components/table/table-util.d.ts.map +0 -1
- package/lib/src/components/table/table-util.js.map +0 -1
- package/lib/src/components/tmpl/control-type-supportor.d.ts +0 -9
- package/lib/src/components/tmpl/control-type-supportor.d.ts.map +0 -1
- package/lib/src/components/tmpl/control-type-supportor.js.map +0 -1
- package/lib/src/components/tmpl/hc-data-source.d.ts +0 -19
- package/lib/src/components/tmpl/hc-data-source.d.ts.map +0 -1
- package/lib/src/components/tmpl/hc-data-source.js +0 -230
- package/lib/src/components/tmpl/hc-data-source.js.map +0 -1
- package/lib/src/components/tmpl/hcservice-v3.d.ts +0 -53
- package/lib/src/components/tmpl/hcservice-v3.d.ts.map +0 -1
- package/lib/src/components/tmpl/hcservice-v3.js +0 -639
- package/lib/src/components/tmpl/hcservice-v3.js.map +0 -1
- package/lib/src/components/tmpl/interface.d.ts.map +0 -1
- package/lib/src/components/tmpl/interface.js +0 -4
- package/lib/src/components/tmpl/interface.js.map +0 -1
- package/lib/src/components/tmpl/tmpl-config-analysis.d.ts +0 -7
- package/lib/src/components/tmpl/tmpl-config-analysis.d.ts.map +0 -1
- package/lib/src/components/tmpl/tmpl-config-analysis.js +0 -106
- package/lib/src/components/tmpl/tmpl-config-analysis.js.map +0 -1
- package/lib/src/components/units/index.d.ts +0 -58
- package/lib/src/components/units/index.d.ts.map +0 -1
- package/lib/src/components/units/index.js.map +0 -1
- package/lib/src/components/welcome/quick-entrance.d.ts +0 -20
- package/lib/src/components/welcome/quick-entrance.d.ts.map +0 -1
- package/lib/src/components/welcome/quick-entrance.js +0 -79
- package/lib/src/components/welcome/quick-entrance.js.map +0 -1
- package/lib/src/components/welcome/workbench.d.ts +0 -20
- package/lib/src/components/welcome/workbench.d.ts.map +0 -1
- package/lib/src/components/welcome/workbench.js +0 -78
- package/lib/src/components/welcome/workbench.js.map +0 -1
- package/lib/src/index.d.ts +0 -4
- package/lib/src/index.d.ts.map +0 -1
- package/lib/src/index.js +0 -4
- package/lib/src/index.js.map +0 -1
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import 'antd/dist/antd.css';
|
|
3
|
-
import { Level2Menu } from "../../tmpl/interface";
|
|
4
|
-
interface L2MenuMessageBarProps {
|
|
5
|
-
}
|
|
6
|
-
interface MessageBar {
|
|
7
|
-
l2Menu: Level2Menu;
|
|
8
|
-
count: number;
|
|
9
|
-
}
|
|
10
|
-
interface L2MenuMessageBarState {
|
|
11
|
-
messageBars: MessageBar[];
|
|
12
|
-
anyState: boolean;
|
|
13
|
-
}
|
|
14
|
-
declare class L2MenuMessageBar extends React.PureComponent<L2MenuMessageBarProps, L2MenuMessageBarState> {
|
|
15
|
-
state: {
|
|
16
|
-
messageBars: any;
|
|
17
|
-
anyState: boolean;
|
|
18
|
-
};
|
|
19
|
-
componentDidMount(): Promise<void>;
|
|
20
|
-
renderMessageBar: (messageBars: MessageBar[]) => JSX.Element;
|
|
21
|
-
render(): JSX.Element;
|
|
22
|
-
}
|
|
23
|
-
export default L2MenuMessageBar;
|
|
24
|
-
//# sourceMappingURL=l2menu-message-bar.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"l2menu-message-bar.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/menu/l2menu-message-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,oBAAoB,CAAC;AAC5B,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAKhD,UAAU,qBAAqB;CAE9B;AAED,UAAU,UAAU;IAChB,MAAM,EAAE,UAAU,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,qBAAqB;IAC3B,WAAW,EAAE,UAAU,EAAE,CAAC;IAC1B,QAAQ,EAAC,OAAO,CAAC;CACpB;AAGD,cAAM,gBAAiB,SAAQ,KAAK,CAAC,aAAa,CAAC,qBAAqB,EAAE,qBAAqB,CAAC;IAC5F,KAAK;;;MAGJ;IAEK,iBAAiB;IA0BvB,gBAAgB,gBAAiB,UAAU,EAAE,iBAgD5C;IAGD,MAAM;CAQT;AAED,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,97 +0,0 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
import React from 'react';
|
|
11
|
-
import { Badge, Dropdown, Menu } from 'antd';
|
|
12
|
-
import { BellOutlined } from '@ant-design/icons';
|
|
13
|
-
import 'antd/dist/antd.css';
|
|
14
|
-
import HcserviceV3 from '../../tmpl/hcservice-v3';
|
|
15
|
-
import { NavLink } from 'react-router-dom';
|
|
16
|
-
import HCDataSource from './../../tmpl/hc-data-source';
|
|
17
|
-
import Units from "../../units";
|
|
18
|
-
class L2MenuMessageBar extends React.PureComponent {
|
|
19
|
-
constructor() {
|
|
20
|
-
super(...arguments);
|
|
21
|
-
this.state = {
|
|
22
|
-
messageBars: undefined,
|
|
23
|
-
anyState: false,
|
|
24
|
-
};
|
|
25
|
-
this.renderMessageBar = (messageBars) => {
|
|
26
|
-
let total = 0;
|
|
27
|
-
const menu = (React.createElement(Menu, { key: 1 }, messageBars.map((messageBar, index) => {
|
|
28
|
-
if (messageBar.count) {
|
|
29
|
-
total = total + messageBar.count;
|
|
30
|
-
}
|
|
31
|
-
let defaultCriteriaData = "";
|
|
32
|
-
if (messageBar.l2Menu.defaultCriteriaValue) {
|
|
33
|
-
defaultCriteriaData = '&' + Units.transQueryParamsToStr(messageBar.l2Menu.defaultCriteriaValue);
|
|
34
|
-
}
|
|
35
|
-
return React.createElement(Menu.Item, { key: index },
|
|
36
|
-
React.createElement(NavLink, { to: `/${messageBar.l2Menu.id}/act-table?menuId=${messageBar.l2Menu.id}${defaultCriteriaData}` },
|
|
37
|
-
messageBar.l2Menu.title,
|
|
38
|
-
React.createElement(Badge, { count: messageBar.count, overflowCount: 99, offset: [2, -2], size: "small" })));
|
|
39
|
-
})));
|
|
40
|
-
if (!messageBars || messageBars.length == 0) {
|
|
41
|
-
return;
|
|
42
|
-
}
|
|
43
|
-
else if (messageBars.length == 1) {
|
|
44
|
-
let messageBar = messageBars[0];
|
|
45
|
-
const l2Menu = messageBar.l2Menu;
|
|
46
|
-
let defaultCriteriaData = "";
|
|
47
|
-
if (l2Menu.defaultCriteriaValue) {
|
|
48
|
-
defaultCriteriaData = '&' + Units.transQueryParamsToStr(l2Menu.defaultCriteriaValue);
|
|
49
|
-
}
|
|
50
|
-
return (React.createElement("div", { className: 'message-bar' },
|
|
51
|
-
React.createElement("a", { href: l2Menu.customPath ? `/page-${l2Menu.id}${l2Menu.customPath}?menuId=${l2Menu.id}` : `#/${l2Menu.id}/act-table?menuId=${l2Menu.id}${defaultCriteriaData}`, className: "head-example" },
|
|
52
|
-
React.createElement(Badge, { count: messageBar.count, overflowCount: 99, offset: [8, -2] },
|
|
53
|
-
React.createElement("span", { style: { fontSize: '20px', color: '#08c' } },
|
|
54
|
-
React.createElement(BellOutlined, null))))));
|
|
55
|
-
}
|
|
56
|
-
else {
|
|
57
|
-
return React.createElement(Dropdown, { overlay: menu, placement: "bottomCenter" },
|
|
58
|
-
React.createElement("div", { className: 'message-bar' },
|
|
59
|
-
React.createElement(Badge, { count: total, overflowCount: 99, offset: [8, -2] },
|
|
60
|
-
React.createElement("span", { style: { fontSize: '20px', color: '#08c' } },
|
|
61
|
-
React.createElement(BellOutlined, null)))));
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
componentDidMount() {
|
|
66
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
-
let l2Menus = yield HCDataSource.messageMenus();
|
|
68
|
-
const messageBars = [];
|
|
69
|
-
for (const item of l2Menus) {
|
|
70
|
-
const messageBar = {
|
|
71
|
-
l2Menu: item,
|
|
72
|
-
count: 0,
|
|
73
|
-
};
|
|
74
|
-
let that = this;
|
|
75
|
-
setInterval(() => __awaiter(this, void 0, void 0, function* () {
|
|
76
|
-
let count = yield HcserviceV3.requestLtmplCount(item.id);
|
|
77
|
-
messageBar.count = count;
|
|
78
|
-
this.setState({
|
|
79
|
-
anyState: !this.state.anyState,
|
|
80
|
-
});
|
|
81
|
-
}), 180000);
|
|
82
|
-
let count = yield HcserviceV3.requestLtmplCount(item.id);
|
|
83
|
-
messageBar.count = count;
|
|
84
|
-
messageBars.push(messageBar);
|
|
85
|
-
}
|
|
86
|
-
this.setState({
|
|
87
|
-
messageBars,
|
|
88
|
-
});
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
render() {
|
|
92
|
-
const { messageBars } = this.state;
|
|
93
|
-
return (React.createElement(React.Fragment, null, messageBars ? this.renderMessageBar(messageBars) : ""));
|
|
94
|
-
}
|
|
95
|
-
}
|
|
96
|
-
export default L2MenuMessageBar;
|
|
97
|
-
//# sourceMappingURL=l2menu-message-bar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"l2menu-message-bar.js","sourceRoot":"","sources":["../../../../../src/components/layout/menu/l2menu-message-bar.tsx"],"names":[],"mappings":";;;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AAC,CAAC;QACP,CAAC;KAAA;IAsDD,MAAM;QACF,MAAM,EAAC,WAAW,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC;QACjC,OAAO,CACH,0CACK,WAAW,CAAA,CAAC,CAAA,IAAI,CAAC,gBAAgB,CAAC,WAAW,CAAC,CAAA,CAAC,CAAA,EAAE,CACnD,CACN,CAAC;IACN,CAAC;CACJ;AAED,eAAe,gBAAgB,CAAC"}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import 'antd/dist/antd.css';
|
|
3
|
-
import { Level2Menu } from "../../tmpl/interface";
|
|
4
|
-
interface L2MenuQuickBarProps {
|
|
5
|
-
}
|
|
6
|
-
interface QuickBar {
|
|
7
|
-
l2Menu: Level2Menu;
|
|
8
|
-
count: number;
|
|
9
|
-
}
|
|
10
|
-
interface L2MenuQuickBarState {
|
|
11
|
-
quickBars: QuickBar[];
|
|
12
|
-
anyState: boolean;
|
|
13
|
-
currentId: string;
|
|
14
|
-
showDraw: boolean;
|
|
15
|
-
}
|
|
16
|
-
declare class L2MenuQuickBar extends React.PureComponent<L2MenuQuickBarProps, L2MenuQuickBarState> {
|
|
17
|
-
state: {
|
|
18
|
-
quickBars: any;
|
|
19
|
-
anyState: boolean;
|
|
20
|
-
currentId: any;
|
|
21
|
-
showDraw: boolean;
|
|
22
|
-
};
|
|
23
|
-
componentDidMount(): Promise<void>;
|
|
24
|
-
showDraw: (currentId: string) => void;
|
|
25
|
-
closeDrawer: () => void;
|
|
26
|
-
renderQuickBar: (quickBars: QuickBar[]) => JSX.Element;
|
|
27
|
-
render(): JSX.Element;
|
|
28
|
-
}
|
|
29
|
-
export default L2MenuQuickBar;
|
|
30
|
-
//# sourceMappingURL=l2menu-quick-bar.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"l2menu-quick-bar.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/menu/l2menu-quick-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,oBAAoB,CAAC;AAC5B,OAAO,EAAC,UAAU,EAAC,MAAM,sBAAsB,CAAC;AAKhD,UAAU,mBAAmB;CAE5B;AAED,UAAU,QAAQ;IACd,MAAM,EAAE,UAAU,CAAC;IACnB,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,UAAU,mBAAmB;IACzB,SAAS,EAAE,QAAQ,EAAE,CAAC;IACtB,QAAQ,EAAC,OAAO,CAAC;IACjB,SAAS,EAAC,MAAM,CAAC;IACjB,QAAQ,EAAC,OAAO,CAAC;CACpB;AAGD,cAAM,cAAe,SAAQ,KAAK,CAAC,aAAa,CAAC,mBAAmB,EAAE,mBAAmB,CAAC;IACtF,KAAK;;;;;MAKJ;IAEK,iBAAiB;IAevB,QAAQ,cAAY,MAAM,UAOzB;IAED,WAAW,aAIV;IAED,cAAc,cAAe,QAAQ,EAAE,iBAmCtC;IAGD,MAAM;CA2BT;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
import React from 'react';
|
|
11
|
-
import { Dropdown, Menu, Drawer, Space, Button } from 'antd';
|
|
12
|
-
import { AppstoreOutlined } from '@ant-design/icons';
|
|
13
|
-
import 'antd/dist/antd.css';
|
|
14
|
-
// import HcserviceV3 from '../../tmpl/hcservice-v3'
|
|
15
|
-
import HCDataSource from './../../tmpl/hc-data-source';
|
|
16
|
-
import LtmplPage from "./../../module/ltmpl-page";
|
|
17
|
-
class L2MenuQuickBar extends React.PureComponent {
|
|
18
|
-
constructor() {
|
|
19
|
-
super(...arguments);
|
|
20
|
-
this.state = {
|
|
21
|
-
quickBars: undefined,
|
|
22
|
-
anyState: false,
|
|
23
|
-
currentId: undefined,
|
|
24
|
-
showDraw: false,
|
|
25
|
-
};
|
|
26
|
-
this.showDraw = (currentId) => {
|
|
27
|
-
console.log("点击了L2MenuQuickBar", currentId);
|
|
28
|
-
this.setState({
|
|
29
|
-
currentId,
|
|
30
|
-
showDraw: true
|
|
31
|
-
});
|
|
32
|
-
};
|
|
33
|
-
this.closeDrawer = () => {
|
|
34
|
-
this.setState({
|
|
35
|
-
showDraw: false
|
|
36
|
-
});
|
|
37
|
-
};
|
|
38
|
-
this.renderQuickBar = (quickBars) => {
|
|
39
|
-
let total = 0;
|
|
40
|
-
const menu = (React.createElement(Menu, { key: 1 }, quickBars.map((quickBar, index) => {
|
|
41
|
-
if (quickBar.count) {
|
|
42
|
-
total = total + quickBar.count;
|
|
43
|
-
}
|
|
44
|
-
return React.createElement(Menu.Item, { key: index },
|
|
45
|
-
React.createElement("span", { onClick: () => this.showDraw(quickBar.l2Menu.id) }, quickBar.l2Menu.title));
|
|
46
|
-
})));
|
|
47
|
-
if (!quickBars || quickBars.length == 0) {
|
|
48
|
-
return;
|
|
49
|
-
}
|
|
50
|
-
else if (quickBars.length == 1) {
|
|
51
|
-
let quickBar = quickBars[0];
|
|
52
|
-
const l2Menu = quickBar.l2Menu;
|
|
53
|
-
return (React.createElement("div", { className: 'message-bar', onClick: () => this.showDraw(quickBar.l2Menu.id) },
|
|
54
|
-
React.createElement("span", { style: { fontSize: '20px', color: '#08c' } },
|
|
55
|
-
React.createElement(AppstoreOutlined, null))));
|
|
56
|
-
}
|
|
57
|
-
else {
|
|
58
|
-
return React.createElement(Dropdown, { overlay: menu, placement: "bottomCenter" },
|
|
59
|
-
React.createElement("div", { className: 'message-bar' },
|
|
60
|
-
React.createElement("span", { style: { fontSize: '20px', color: '#08c' } },
|
|
61
|
-
React.createElement(AppstoreOutlined, null))));
|
|
62
|
-
}
|
|
63
|
-
};
|
|
64
|
-
}
|
|
65
|
-
componentDidMount() {
|
|
66
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
67
|
-
let l2Menus = yield HCDataSource.quickEntranceMenus();
|
|
68
|
-
const quickBars = [];
|
|
69
|
-
for (const item of l2Menus) {
|
|
70
|
-
const quickBar = {
|
|
71
|
-
l2Menu: item,
|
|
72
|
-
count: 0,
|
|
73
|
-
};
|
|
74
|
-
let that = this;
|
|
75
|
-
quickBars.push(quickBar);
|
|
76
|
-
}
|
|
77
|
-
this.setState({
|
|
78
|
-
quickBars,
|
|
79
|
-
});
|
|
80
|
-
});
|
|
81
|
-
}
|
|
82
|
-
render() {
|
|
83
|
-
const { quickBars, showDraw, currentId } = this.state;
|
|
84
|
-
return (React.createElement(React.Fragment, null,
|
|
85
|
-
quickBars ? this.renderQuickBar(quickBars) : "",
|
|
86
|
-
React.createElement(Drawer, { placement: 'left', title: "\u5FEB\u6377\u67E5\u8BE2", closable: true, mask: false, onClose: this.closeDrawer, visible: showDraw, width: 'calc(100% - 280px)', style: {
|
|
87
|
-
maxWidth: 1960,
|
|
88
|
-
}, extra: React.createElement(Space, null,
|
|
89
|
-
React.createElement(Button, { onClick: this.closeDrawer }, "\u5173\u95ED")) },
|
|
90
|
-
React.createElement(LtmplPage, { sourceId: currentId }))));
|
|
91
|
-
}
|
|
92
|
-
}
|
|
93
|
-
export default L2MenuQuickBar;
|
|
94
|
-
//# sourceMappingURL=l2menu-quick-bar.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"l2menu-quick-bar.js","sourceRoot":"","sources":["../../../../../src/components/layout/menu/l2menu-quick-bar.tsx"],"names":[],"mappings":";;;;;;;;;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,IAAI,IAAI,GAAC,IAAI,CAAC;gBACb,SAAS,CAAC,IAAI,CAAC,QAAQ,CAAC,CAAC;aAC5B;YACD,IAAI,CAAC,QAAQ,CAAC;gBACV,SAAS;aACZ,CAAC,CAAC;QACP,CAAC;KAAA;IAsDD,MAAM;QACF,MAAM,EAAC,SAAS,EAAC,QAAQ,EAAC,SAAS,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC;QAClD,OAAO,CACH;YACK,SAAS,CAAA,CAAC,CAAA,IAAI,CAAC,cAAc,CAAC,SAAS,CAAC,CAAA,CAAC,CAAA,EAAE;YAC5C,oBAAC,MAAM,IACH,SAAS,EAAE,MAAM,EACjB,KAAK,EAAC,0BAAM,EACZ,QAAQ,EAAE,IAAI,EACd,IAAI,EAAE,KAAK,EACX,OAAO,EAAE,IAAI,CAAC,WAAW,EACzB,OAAO,EAAE,QAAQ,EACjB,KAAK,EAAE,oBAAoB,EAC3B,KAAK,EAAE;oBACH,QAAQ,EAAE,IAAI;iBACjB,EACD,KAAK,EACD,oBAAC,KAAK;oBACF,oBAAC,MAAM,IAAC,OAAO,EAAE,IAAI,CAAC,WAAW,mBAAa,CAC1C;gBAGb,oBAAC,SAAS,IAAE,QAAQ,EAAE,SAAS,GAAc,CACvC,CACV,CACN,CAAC;IACN,CAAC;CACJ;AAED,eAAe,cAAc,CAAC"}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { BlockMenu } from "../../tmpl/interface";
|
|
2
|
-
export interface Menu2layersProps {
|
|
3
|
-
blockMenu: BlockMenu;
|
|
4
|
-
collapsed?: boolean;
|
|
5
|
-
currentL2MenuId?: string;
|
|
6
|
-
}
|
|
7
|
-
declare const _default: any;
|
|
8
|
-
export default _default;
|
|
9
|
-
//# sourceMappingURL=menu-2layers.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"menu-2layers.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/menu/menu-2layers.tsx"],"names":[],"mappings":"AAEA,OAAO,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAC;AAK/C,MAAM,WAAW,gBAAgB;IAC7B,SAAS,EAAE,SAAS,CAAC;IACrB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,eAAe,CAAC,EAAE,MAAM,CAAC;CAC5B;;AAgFD,wBAAuC"}
|
|
@@ -1,63 +0,0 @@
|
|
|
1
|
-
import React from "react";
|
|
2
|
-
import { Menu } from 'antd';
|
|
3
|
-
import MenuRender from './menu-render';
|
|
4
|
-
import { withRouter } from 'react-router-dom';
|
|
5
|
-
class Menu2layers extends React.PureComponent {
|
|
6
|
-
constructor(props) {
|
|
7
|
-
super(props);
|
|
8
|
-
this.handleOpen = (openKeys) => {
|
|
9
|
-
if (openKeys && openKeys.length > 1) {
|
|
10
|
-
openKeys.splice(0, 1);
|
|
11
|
-
}
|
|
12
|
-
this.setState({
|
|
13
|
-
openKeys
|
|
14
|
-
});
|
|
15
|
-
};
|
|
16
|
-
this.state = {
|
|
17
|
-
openKeys: [],
|
|
18
|
-
};
|
|
19
|
-
}
|
|
20
|
-
// componentDidMount() {
|
|
21
|
-
//
|
|
22
|
-
// }
|
|
23
|
-
componentDidUpdate(prevProps) {
|
|
24
|
-
const { currentL2MenuId, blockMenu, collapsed } = this.props;
|
|
25
|
-
let { currentL2MenuId: preMenuId } = prevProps;
|
|
26
|
-
const { openKeys } = this.state;
|
|
27
|
-
// if(collapsed){
|
|
28
|
-
// if(openKeys.length>0){
|
|
29
|
-
// this.setState({
|
|
30
|
-
// openKeys:[]
|
|
31
|
-
// })
|
|
32
|
-
// }
|
|
33
|
-
// }else{
|
|
34
|
-
let openKey = blockMenu ? MenuRender.findOpenId(blockMenu.l1Menus, currentL2MenuId) : undefined;
|
|
35
|
-
if (openKey && openKeys.length < 1) {
|
|
36
|
-
this.setState({
|
|
37
|
-
openKeys: [openKey.toString()]
|
|
38
|
-
});
|
|
39
|
-
}
|
|
40
|
-
else if (preMenuId != currentL2MenuId) {
|
|
41
|
-
console.log('currentL2MenuId:', currentL2MenuId);
|
|
42
|
-
if (openKey) {
|
|
43
|
-
if (openKeys.length == 1) {
|
|
44
|
-
openKeys.push(openKey.toString());
|
|
45
|
-
if (openKeys && openKeys.length > 1) {
|
|
46
|
-
openKeys.splice(0, 1);
|
|
47
|
-
}
|
|
48
|
-
}
|
|
49
|
-
this.setState({
|
|
50
|
-
openKeys,
|
|
51
|
-
});
|
|
52
|
-
}
|
|
53
|
-
}
|
|
54
|
-
//}
|
|
55
|
-
}
|
|
56
|
-
render() {
|
|
57
|
-
const { blockMenu, collapsed, currentL2MenuId } = this.props;
|
|
58
|
-
const { openKeys } = this.state;
|
|
59
|
-
return (React.createElement(Menu, { mode: "inline", theme: "dark", onOpenChange: this.handleOpen, selectedKeys: currentL2MenuId ? [currentL2MenuId.toString()] : undefined, openKeys: !collapsed ? openKeys : undefined }, blockMenu ? MenuRender.renderL1Menu(blockMenu.l1Menus, undefined) : ""));
|
|
60
|
-
}
|
|
61
|
-
}
|
|
62
|
-
export default withRouter(Menu2layers);
|
|
63
|
-
//# sourceMappingURL=menu-2layers.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"menu-2layers.js","sourceRoot":"","sources":["../../../../../src/components/layout/menu/menu-2layers.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,IAAI,EAAC,MAAM,MAAM,CAAC;AAE1B,OAAO,UAAU,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,UAAU,EAAC,MAAM,kBAAkB,CAAC;AAa5C,MAAM,WAAY,SAAQ,KAAK,CAAC,aAAiD;IAG7E,YAAY,KAAK;QACb,KAAK,CAAC,KAAK,CAAC,CAAC;QA2CjB,eAAU,GAAG,CAAC,QAAQ,EAAE,EAAE;YACtB,IAAI,QAAQ,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE;gBACjC,QAAQ,CAAC,MAAM,CAAC,C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CAAC;qBACzB;iBACJ;gBACD,IAAI,CAAC,QAAQ,CAAC;oBACV,QAAQ;iBACX,CAAC,CAAA;aACL;SACJ;QACL,GAAG;IACP,CAAC;IAWD,MAAM;QACF,MAAM,EAAC,SAAS,EAAE,SAAS,EAAE,eAAe,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC;QAC3D,MAAM,EAAC,QAAQ,EAAC,GAAG,IAAI,CAAC,KAAK,CAAC;QAE9B,OAAO,CACH,oBAAC,IAAI,IACD,IAAI,EAAC,QAAQ,EACb,KAAK,EAAC,MAAM,EACZ,YAAY,EAAE,IAAI,CAAC,UAAU,EAC7B,YAAY,EAAE,eAAe,CAAC,CAAC,CAAC,CAAC,eAAe,CAAC,QAAQ,EAAE,CAAC,CAAC,CAAC,CAAC,SAAS,EACxE,QAAQ,EAAE,CAAC,SAAS,CAAA,CAAC,CAAA,QAAQ,CAAA,CAAC,CAAA,SAAS,IAEtC,SAAS,CAAC,CAAC,CAAC,UAAU,CAAC,YAAY,CAAC,SAAS,CAAC,OAAO,EAAE,SAAS,CAAC,CAAC,CAAC,CAAC,EAAE,CACpE,CACV,CAAC;IACN,CAAC;CACJ;AAED,eAAe,UAAU,CAAC,WAAW,CAAC,CAAC"}
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { Level1Menu, Level2Menu } from "../../tmpl/interface";
|
|
2
|
-
declare const _default: {
|
|
3
|
-
renderL1Menu(menus: Level1Menu[], target: any): JSX.Element[];
|
|
4
|
-
renderL2Menu(menus: Level2Menu[], target: any): JSX.Element[];
|
|
5
|
-
findOpenId(l1Menus: Level1Menu[], currentL2MenuId: string): string;
|
|
6
|
-
};
|
|
7
|
-
export default _default;
|
|
8
|
-
//# sourceMappingURL=menu-render.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"menu-render.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/menu/menu-render.tsx"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAAE,UAAU,EAAC,MAAM,sBAAsB,CAAC;;wBAQrC,UAAU,EAAE;wBASZ,UAAU,EAAE;wBAmBZ,UAAU,EAAE,mBAAiB,MAAM;;AA7B1D,wBAyCC"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
import { Menu } from "antd";
|
|
2
|
-
import React from "react";
|
|
3
|
-
import { NavLink } from 'react-router-dom';
|
|
4
|
-
import Units from "../../units";
|
|
5
|
-
const { SubMenu } = Menu;
|
|
6
|
-
export default {
|
|
7
|
-
renderL1Menu(menus, target) {
|
|
8
|
-
return menus.map((item) => {
|
|
9
|
-
if (item.l2Menus) {
|
|
10
|
-
return React.createElement(SubMenu, { title: item.title, key: item.id }, this.renderL2Menu(item.l2Menus, target));
|
|
11
|
-
}
|
|
12
|
-
});
|
|
13
|
-
},
|
|
14
|
-
renderL2Menu(menus, target) {
|
|
15
|
-
return menus.map((item) => {
|
|
16
|
-
let delimiter = "/";
|
|
17
|
-
let customPath = item.customPath;
|
|
18
|
-
if (customPath) {
|
|
19
|
-
if (customPath.startsWith('/') || customPath.startsWith('\\')) {
|
|
20
|
-
delimiter = "";
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
let defaultCriteriaData = "";
|
|
24
|
-
if (item.defaultCriteriaValue) {
|
|
25
|
-
defaultCriteriaData = '&' + Units.transQueryParamsToStr(item.defaultCriteriaValue);
|
|
26
|
-
}
|
|
27
|
-
return React.createElement(Menu.Item, { key: item.id },
|
|
28
|
-
React.createElement(NavLink, { to: customPath ? `/page-${item.id}${delimiter}${customPath}?menuId=${item.id}` : `/${item.id}/act-table?menuId=${item.id}${defaultCriteriaData}`, target: target }, item.title));
|
|
29
|
-
});
|
|
30
|
-
},
|
|
31
|
-
findOpenId(l1Menus, currentL2MenuId) {
|
|
32
|
-
let openL2MenuId = undefined;
|
|
33
|
-
for (const menul1 of l1Menus) {
|
|
34
|
-
for (const menul2 of menul1.l2Menus) {
|
|
35
|
-
if (menul2.id == currentL2MenuId) {
|
|
36
|
-
openL2MenuId = menul1.id;
|
|
37
|
-
return openL2MenuId;
|
|
38
|
-
}
|
|
39
|
-
}
|
|
40
|
-
}
|
|
41
|
-
return openL2MenuId;
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
//# sourceMappingURL=menu-render.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"menu-render.js","sourceRoot":"","sources":["../../../../../src/components/layout/menu/menu-render.tsx"],"names":[],"mappings":"AACA,OAAO,EAAC,IAAI,EAAC,MAAM,MAAM,CAAC;AAC1B,OAAO,KAAK,MAAM,OAAO,CAAC;AAC1B,OAAO,EAAC,OAAO,EAAC,MAAM,kBAAkB,CAAC;AACzC,OAAO,KAAK,MAAM,aAAa,CAAC;AAChC,MAAM,EAAC,OAAO,EAAC,GAAG,IAAI,CAAC;AAEvB,eAAe;IACX,YAAY,CAAC,KAAkB,EAAC,MAAM;QAClC,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;YACtB,IAAI,IAAI,CAAC,OAAO,EAAE;gBACd,OAAO,oBAAC,OAAO,IAAC,KAAK,EAAE,IAAI,CAAC,KAAK,EAAE,GAAG,EAAE,IAAI,CAAC,EAAE,IAC1C,IAAI,CAAC,YAAY,CAAC,IAAI,CAAC,OAAO,EAAC,MAAM,CAAC,CACjC,CAAA;aACb;QACL,CAAC,CAAC,CAAA;IACN,CAAC;IACD,YAAY,CAAC,KAAkB,EAAC,MAAM;QAClC,OAAO,KAAK,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE;YACtB,IAAI,SAAS,GAAC,GAAG,CAAC;YAClB,IAAI,UAAU,GAAC,IAAI,CAAC,UAAU,CAAC;YAC/B,IAAG,UAAU,EAAC;gBACV,IAAG,UAAU,CAAC,UAAU,CAAC,GAAG,CAAC,IAAI,UAAU,CAAC,UAAU,CAAC,IAAI,CAAC,EAAC;oBACzD,SAAS,GAAC,EAAE,CAAC;iBAChB;aACJ;YACD,IAAI,mBAAmB,GAAC,EAAE,CAAC;YAC3B,IAAG,IAAI,CAAC,oBAAoB,EAAC;gBACzB,mBAAmB,GAAC,GAAG,GAAE,KAAK,CAAC,qBAAqB,CAAC,IAAI,CAAC,oBAAoB,CAAC,CAAC;aACnF;YAED,OAAO,oBAAC,IAAI,CAAC,IAAI,IAAC,GAAG,EAAE,IAAI,CAAC,EAAE;gBAC1B,oBAAC,OAAO,IAAC,EAAE,EAAE,UAAU,CAAC,CAAC,CAAC,SAAS,IAAI,CAAC,EAAE,GAAG,SAAS,GAAG,UAAU,WAAW,IAAI,CAAC,EAAE,EAAE,CAAC,CAAC,CAAA,IAAI,IAAI,CAAC,EAAE,qBAAqB,IAAI,CAAC,EAAE,GAAG,mBAAmB,EAAE,EAAE,MAAM,EAAE,MAAM,IAAI,IAAI,CAAC,KAAK,CAAW,CACzL,CAAA;QAChB,CAAC,CAAC,CAAA;IACN,CAAC;IACD,UAAU,CAAC,OAAoB,EAAC,eAAsB;QAClD,IAAI,YAAY,GAAQ,SAAS,CAAC;QAClC,KAAI,MAAM,MAAM,IAAI,OAAO,EAAC;YACxB,KAAI,MAAM,MAAM,IAAI,MAAM,CAAC,OAAO,EAAC;gBAC/B,IAAG,MAAM,CAAC,EAAE,IAAE,eAAe,EAAC;oBAC1B,YAAY,GAAC,MAAM,CAAC,EAAE,CAAC;oBACvB,OAAO,YAAY,CAAC;iBACvB;aACJ;SACJ;QACD,OAAO,YAAY,CAAC;IACxB,CAAC;CACJ,CAAA"}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { FormInstance } from 'antd';
|
|
3
|
-
import 'antd/dist/antd.css';
|
|
4
|
-
interface ResetPasswordProps {
|
|
5
|
-
}
|
|
6
|
-
interface ResetPasswordState {
|
|
7
|
-
showPopover: boolean;
|
|
8
|
-
pubkey: string;
|
|
9
|
-
loading: boolean;
|
|
10
|
-
}
|
|
11
|
-
declare class ResetPassword extends React.PureComponent<ResetPasswordProps, ResetPasswordState> {
|
|
12
|
-
state: {
|
|
13
|
-
showPopover: boolean;
|
|
14
|
-
pubkey: any;
|
|
15
|
-
loading: boolean;
|
|
16
|
-
};
|
|
17
|
-
formRef: React.RefObject<FormInstance<any>>;
|
|
18
|
-
componentDidMount(): Promise<void>;
|
|
19
|
-
handleSubmit: (values: any) => Promise<void>;
|
|
20
|
-
handleBlurCapture: () => void;
|
|
21
|
-
getForm: () => JSX.Element;
|
|
22
|
-
render(): JSX.Element;
|
|
23
|
-
}
|
|
24
|
-
export default ResetPassword;
|
|
25
|
-
//# sourceMappingURL=reset-password.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reset-password.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/menu/reset-password.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AACzB,OAAO,EAagB,YAAY,EAClC,MAAM,MAAM,CAAC;AAEd,OAAO,oBAAoB,CAAC;AAG5B,UAAU,kBAAkB;CAE3B;AAGD,UAAU,kBAAkB;IACxB,WAAW,EAAC,OAAO,CAAC;IACpB,MAAM,EAAC,MAAM,CAAC;IACd,OAAO,EAAC,OAAO,CAAA;CAClB;AAGD,cAAM,aAAc,SAAQ,KAAK,CAAC,aAAa,CAAC,kBAAkB,EAAE,kBAAkB,CAAC;IACnF,KAAK;;;;MAIJ;IACD,OAAO,qCAAmC;IAEpC,iBAAiB;IASvB,YAAY,iCAiBX;IAED,iBAAiB,aAkBhB;IAED,OAAO,oBAyEN;IAID,MAAM;CAiBT;AAED,eAAe,aAAa,CAAC"}
|
|
@@ -1,113 +0,0 @@
|
|
|
1
|
-
var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
|
|
2
|
-
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
3
|
-
return new (P || (P = Promise))(function (resolve, reject) {
|
|
4
|
-
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
5
|
-
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
6
|
-
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
7
|
-
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
8
|
-
});
|
|
9
|
-
};
|
|
10
|
-
import React from 'react';
|
|
11
|
-
import { message, Button, Popover, Col, Form, Input, Row } from 'antd';
|
|
12
|
-
import { KeyOutlined, LockOutlined } from '@ant-design/icons';
|
|
13
|
-
import 'antd/dist/antd.css';
|
|
14
|
-
import HCserviceV3 from "../../tmpl/hcservice-v3";
|
|
15
|
-
class ResetPassword extends React.PureComponent {
|
|
16
|
-
constructor() {
|
|
17
|
-
super(...arguments);
|
|
18
|
-
this.state = {
|
|
19
|
-
showPopover: false,
|
|
20
|
-
pubkey: undefined,
|
|
21
|
-
loading: false,
|
|
22
|
-
};
|
|
23
|
-
this.formRef = React.createRef();
|
|
24
|
-
this.handleSubmit = (values) => __awaiter(this, void 0, void 0, function* () {
|
|
25
|
-
this.setState({
|
|
26
|
-
loading: true
|
|
27
|
-
});
|
|
28
|
-
let { pubkey } = this.state;
|
|
29
|
-
let res = yield HCserviceV3.resetPassword(values.oldPassword, values.newPassword, pubkey);
|
|
30
|
-
if (res.status == 'success') {
|
|
31
|
-
message.info("密码已重置,请重新登录");
|
|
32
|
-
HCserviceV3.logout();
|
|
33
|
-
}
|
|
34
|
-
this.setState({
|
|
35
|
-
loading: false
|
|
36
|
-
});
|
|
37
|
-
});
|
|
38
|
-
this.handleBlurCapture = () => {
|
|
39
|
-
//判断新密码和确认密码相同
|
|
40
|
-
console.log("this.formRef.current.getFieldValue('newPassword')", this.formRef.current.getFieldValue('newPassword'));
|
|
41
|
-
let newPassword = this.formRef.current.getFieldValue('newPassword');
|
|
42
|
-
let reNewPassword = this.formRef.current.getFieldValue('reNewPassword');
|
|
43
|
-
if (newPassword && reNewPassword && newPassword != reNewPassword) {
|
|
44
|
-
this.formRef.current.setFields([{
|
|
45
|
-
name: 'reNewPassword',
|
|
46
|
-
value: reNewPassword,
|
|
47
|
-
errors: ['两次密码输入不一致!']
|
|
48
|
-
}]);
|
|
49
|
-
}
|
|
50
|
-
else {
|
|
51
|
-
this.formRef.current.setFields([{
|
|
52
|
-
name: 'reNewPassword',
|
|
53
|
-
value: reNewPassword,
|
|
54
|
-
errors: []
|
|
55
|
-
}]);
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
this.getForm = () => {
|
|
59
|
-
const { loading } = this.state;
|
|
60
|
-
return React.createElement(Row, { justify: "center", align: "middle" },
|
|
61
|
-
React.createElement(Col, null,
|
|
62
|
-
React.createElement(Form, { style: { width: 350 }, ref: this.formRef, name: "normal_login", className: "login-form", onFinish: this.handleSubmit },
|
|
63
|
-
React.createElement(Form.Item, { label: "原密码", name: "oldPassword", rules: [{ required: true, message: '请输入原密码!' }] },
|
|
64
|
-
React.createElement(Input.Password, { placeholder: "\u5BC6\u7801", prefix: React.createElement(LockOutlined, { className: "site-form-item-icon" }) })),
|
|
65
|
-
React.createElement(Form.Item, { label: "新设密码", name: "newPassword", rules: [{ required: true, message: '请输入新密码!' }] },
|
|
66
|
-
React.createElement(Input.Password, { placeholder: "\u65B0\u8BBE\u5BC6\u7801", onBlurCapture: this.handleBlurCapture, prefix: React.createElement(LockOutlined, { className: "site-form-item-icon" }) })),
|
|
67
|
-
React.createElement(Form.Item, { label: "确认密码", name: "reNewPassword", rules: [{ required: true, message: '请输入确认密码!' },
|
|
68
|
-
({ getFieldValue }) => ({
|
|
69
|
-
validator(_, value) {
|
|
70
|
-
if (!value || getFieldValue('newPassword') === value) {
|
|
71
|
-
return Promise.resolve();
|
|
72
|
-
}
|
|
73
|
-
return Promise.reject(new Error('两次密码输入不一致!'));
|
|
74
|
-
},
|
|
75
|
-
}),] },
|
|
76
|
-
React.createElement(Input.Password, { placeholder: "\u786E\u8BA4\u5BC6\u7801",
|
|
77
|
-
//onBlurCapture={this.handleBlurCapture}
|
|
78
|
-
prefix: React.createElement(LockOutlined, { className: "site-form-item-icon" }) })),
|
|
79
|
-
React.createElement(Form.Item, null,
|
|
80
|
-
React.createElement(Row, { align: "middle", gutter: 32 },
|
|
81
|
-
React.createElement(Col, { span: 12 },
|
|
82
|
-
React.createElement(Button, { style: { width: '100%' }, type: "primary", loading: loading, onClick: () => this.formRef.current.submit() }, "\u786E\u5B9A")),
|
|
83
|
-
React.createElement(Col, { span: 12 },
|
|
84
|
-
React.createElement(Button, { style: { width: '100%' }, onClick: () => {
|
|
85
|
-
this.setState({
|
|
86
|
-
showPopover: false
|
|
87
|
-
});
|
|
88
|
-
} }, "\u53D6\u6D88")))))));
|
|
89
|
-
};
|
|
90
|
-
}
|
|
91
|
-
componentDidMount() {
|
|
92
|
-
return __awaiter(this, void 0, void 0, function* () {
|
|
93
|
-
let pubkey = yield HCserviceV3.getRasPubkey();
|
|
94
|
-
this.setState({
|
|
95
|
-
pubkey
|
|
96
|
-
});
|
|
97
|
-
});
|
|
98
|
-
}
|
|
99
|
-
render() {
|
|
100
|
-
const { showPopover, loading } = this.state;
|
|
101
|
-
return (React.createElement(React.Fragment, null,
|
|
102
|
-
React.createElement(Popover, { destroyTooltipOnHide: true, visible: showPopover, overlayStyle: { maxWidth: '400px' }, title: '修改密码', placement: "leftBottom", trigger: "click", content: this.getForm() },
|
|
103
|
-
React.createElement(Button, { type: "text", size: 'small', onClick: () => {
|
|
104
|
-
this.setState({
|
|
105
|
-
showPopover: !showPopover
|
|
106
|
-
});
|
|
107
|
-
} },
|
|
108
|
-
React.createElement(KeyOutlined, null),
|
|
109
|
-
"\u4FEE\u6539\u5BC6\u7801"))));
|
|
110
|
-
}
|
|
111
|
-
}
|
|
112
|
-
export default ResetPassword;
|
|
113
|
-
//# sourceMappingURL=reset-password.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"reset-password.js","sourceRoot":"","sources":["../../../../../src/components/layout/menu/reset-password.ts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@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import 'antd/dist/antd.css';
|
|
3
|
-
import { UserInfo } from "../../tmpl/interface";
|
|
4
|
-
interface UserBarProps {
|
|
5
|
-
}
|
|
6
|
-
interface UserBarState extends UserInfo {
|
|
7
|
-
}
|
|
8
|
-
declare class UserBar extends React.PureComponent<UserBarProps, UserBarState> {
|
|
9
|
-
state: {
|
|
10
|
-
id: any;
|
|
11
|
-
name: any;
|
|
12
|
-
roles: any[];
|
|
13
|
-
};
|
|
14
|
-
componentDidMount(): Promise<void>;
|
|
15
|
-
cleanCache: () => void;
|
|
16
|
-
render(): JSX.Element;
|
|
17
|
-
}
|
|
18
|
-
export default UserBar;
|
|
19
|
-
//# sourceMappingURL=user-bar.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"user-bar.d.ts","sourceRoot":"","sources":["../../../../../src/components/layout/menu/user-bar.tsx"],"names":[],"mappings":"AAAA,OAAO,KAAK,MAAM,OAAO,CAAA;AAGzB,OAAO,oBAAoB,CAAC;AAC5B,OAAO,EAAY,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAOzD,UAAU,YAAY;CAErB;AAGD,UAAU,YAAa,SAAQ,QAAQ;CAEtC;AAGD,cAAM,OAAQ,SAAQ,KAAK,CAAC,aAAa,CAAC,YAAY,EAAE,YAAY,CAAC;IACjE,KAAK;;;;MAIJ;IAEK,iBAAiB;IAOvB,UAAU,aAGT;IAGD,MAAM;CAqDT;AAED,eAAe,OAAO,CAAC"}
|