aldehyde 0.2.235 → 0.2.237
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/lib/controls/action/index.d.ts +2 -0
- package/lib/controls/action/index.d.ts.map +1 -1
- package/lib/controls/chemstruc/graph.d.ts +2 -0
- package/lib/controls/chemstruc/graph.d.ts.map +1 -1
- package/lib/controls/collapse-card/index.d.ts +2 -0
- package/lib/controls/collapse-card/index.d.ts.map +1 -1
- package/lib/controls/color-picker/index.d.ts +2 -0
- package/lib/controls/color-picker/index.d.ts.map +1 -1
- package/lib/controls/cquery/cquick-button.d.ts +2 -0
- package/lib/controls/cquery/cquick-button.d.ts.map +1 -1
- package/lib/controls/date-picker/index.d.ts.map +1 -1
- package/lib/controls/date-picker/index.js +9 -1
- package/lib/controls/date-picker/index.js.map +1 -1
- package/lib/controls/entity-select/entity-select.d.ts +2 -0
- package/lib/controls/entity-select/entity-select.d.ts.map +1 -1
- package/lib/controls/entity-select/lab-tree-select.d.ts +2 -0
- package/lib/controls/entity-select/lab-tree-select.d.ts.map +1 -1
- package/lib/controls/entity-select/popover-entity-select.d.ts +2 -0
- package/lib/controls/entity-select/popover-entity-select.d.ts.map +1 -1
- package/lib/controls/entry-control.d.ts.map +1 -1
- package/lib/controls/entry-control.js +4 -1
- package/lib/controls/entry-control.js.map +1 -1
- package/lib/controls/file-view/drawer-file-view.js +1 -1
- package/lib/controls/file-view/drawer-file-view.js.map +1 -1
- package/lib/controls/file-view/index.d.ts +1 -1
- package/lib/controls/file-view/index.d.ts.map +1 -1
- package/lib/controls/file-view/index.js +3 -3
- package/lib/controls/file-view/index.js.map +1 -1
- package/lib/controls/file-view/multi-file-view.d.ts +12 -0
- package/lib/controls/file-view/multi-file-view.d.ts.map +1 -0
- package/lib/controls/file-view/multi-file-view.js +27 -0
- package/lib/controls/file-view/multi-file-view.js.map +1 -0
- package/lib/controls/password-setter/index.d.ts +2 -0
- package/lib/controls/password-setter/index.d.ts.map +1 -1
- package/lib/controls/relation-existion/index.d.ts +2 -0
- package/lib/controls/relation-existion/index.d.ts.map +1 -1
- package/lib/controls/rfield/index.d.ts +2 -0
- package/lib/controls/rfield/index.d.ts.map +1 -1
- package/lib/controls/select/index.d.ts +2 -0
- package/lib/controls/select/index.d.ts.map +1 -1
- package/lib/controls/signature/index.d.ts +2 -0
- package/lib/controls/signature/index.d.ts.map +1 -1
- package/lib/controls/text/ellipsis-text.d.ts +2 -0
- package/lib/controls/text/ellipsis-text.d.ts.map +1 -1
- package/lib/controls/tree-select/tree-entity-select.d.ts.map +1 -1
- package/lib/controls/tree-select/tree-entity-select.js +0 -1
- package/lib/controls/tree-select/tree-entity-select.js.map +1 -1
- package/lib/controls/upload/index.d.ts +2 -0
- package/lib/controls/upload/index.d.ts.map +1 -1
- package/lib/controls/upload/index.js +3 -2
- package/lib/controls/upload/index.js.map +1 -1
- package/lib/controls/upload/mult-file-upload.d.ts +35 -0
- package/lib/controls/upload/mult-file-upload.d.ts.map +1 -0
- package/lib/controls/upload/mult-file-upload.js +181 -0
- package/lib/controls/upload/mult-file-upload.js.map +1 -0
- package/lib/controls/view-control.d.ts.map +1 -1
- package/lib/controls/view-control.js +3 -1
- package/lib/controls/view-control.js.map +1 -1
- package/lib/custom-page/dtmpl-custom-edit-modal-page.d.ts +2 -0
- package/lib/custom-page/dtmpl-custom-edit-modal-page.d.ts.map +1 -1
- package/lib/detail/button/bottom-submit-button-bar.d.ts +2 -0
- package/lib/detail/button/bottom-submit-button-bar.d.ts.map +1 -1
- package/lib/detail/button/cquery-button-bar.d.ts +2 -0
- package/lib/detail/button/cquery-button-bar.d.ts.map +1 -1
- package/lib/detail/button/fix-right-submit-button-bar.d.ts +2 -0
- package/lib/detail/button/fix-right-submit-button-bar.d.ts.map +1 -1
- package/lib/detail/edit/fields-edit-card.d.ts +2 -0
- package/lib/detail/edit/fields-edit-card.d.ts.map +1 -1
- package/lib/detail/edit/modal-row-edit.d.ts +2 -0
- package/lib/detail/edit/modal-row-edit.d.ts.map +1 -1
- package/lib/detail/edit/row-edit-card.d.ts +2 -0
- package/lib/detail/edit/row-edit-card.d.ts.map +1 -1
- package/lib/detail/rightbar/index.d.ts +2 -0
- package/lib/detail/rightbar/index.d.ts.map +1 -1
- package/lib/detail/view/act-dtmpl-view.d.ts +2 -0
- package/lib/detail/view/act-dtmpl-view.d.ts.map +1 -1
- package/lib/detail/view/act-dtmpl-view.js +1 -1
- package/lib/detail/view/act-dtmpl-view.js.map +1 -1
- package/lib/detail/view/dtmpl-view.d.ts.map +1 -1
- package/lib/detail/view/dtmpl-view.js +0 -3
- package/lib/detail/view/dtmpl-view.js.map +1 -1
- package/lib/detail/view/field-view-group.d.ts +2 -0
- package/lib/detail/view/field-view-group.d.ts.map +1 -1
- package/lib/detail/view/modal-dtmpl-view.d.ts +2 -0
- package/lib/detail/view/modal-dtmpl-view.d.ts.map +1 -1
- package/lib/detail/view/snapshot-timeline.d.ts +2 -0
- package/lib/detail/view/snapshot-timeline.d.ts.map +1 -1
- package/lib/detail/view/tab-act-dtmpl-view.d.ts +68 -0
- package/lib/detail/view/tab-act-dtmpl-view.d.ts.map +1 -0
- package/lib/detail/view/tab-act-dtmpl-view.js +182 -0
- package/lib/detail/view/tab-act-dtmpl-view.js.map +1 -0
- package/lib/export/export-frame.d.ts +2 -0
- package/lib/export/export-frame.d.ts.map +1 -1
- package/lib/export/select-code-export-frame.d.ts +2 -0
- package/lib/export/select-code-export-frame.d.ts.map +1 -1
- package/lib/form/criteria-form.d.ts.map +1 -1
- package/lib/form/criteria-form.js +11 -3
- package/lib/form/criteria-form.js.map +1 -1
- package/lib/form/dtmpl-form.d.ts +2 -0
- package/lib/form/dtmpl-form.d.ts.map +1 -1
- package/lib/form/field-group-form.d.ts +2 -0
- package/lib/form/field-group-form.d.ts.map +1 -1
- package/lib/form/form-Item-group.d.ts +2 -0
- package/lib/form/form-Item-group.d.ts.map +1 -1
- package/lib/form/form-Item-group.js +3 -2
- package/lib/form/form-Item-group.js.map +1 -1
- package/lib/hooks/use-match-route/index.d.ts +10 -0
- package/lib/hooks/use-match-route/index.d.ts.map +1 -0
- package/lib/hooks/use-match-route/index.js +41 -0
- package/lib/hooks/use-match-route/index.js.map +1 -0
- package/lib/hooks/use-tabs/index.d.ts +18 -0
- package/lib/hooks/use-tabs/index.d.ts.map +1 -0
- package/lib/hooks/use-tabs/index.js +112 -0
- package/lib/hooks/use-tabs/index.js.map +1 -0
- package/lib/import/excel-import.d.ts +2 -0
- package/lib/import/excel-import.d.ts.map +1 -1
- package/lib/layout/MainPage.js +1 -1
- package/lib/layout/MainPage.js.map +1 -1
- package/lib/layout/coverstyle.css +1 -1
- package/lib/layout/menu/block.d.ts +2 -0
- package/lib/layout/menu/block.d.ts.map +1 -1
- package/lib/layout/menu/l2menu-quick-bar.d.ts +2 -0
- package/lib/layout/menu/l2menu-quick-bar.d.ts.map +1 -1
- package/lib/layout/menu/menu-2layers.d.ts +2 -0
- package/lib/layout/menu/menu-2layers.d.ts.map +1 -1
- package/lib/layout/menu/reset-password.d.ts +2 -0
- package/lib/layout/menu/reset-password.d.ts.map +1 -1
- package/lib/layout/menu/user-bar.d.ts +2 -0
- package/lib/layout/menu/user-bar.d.ts.map +1 -1
- package/lib/layout/menu/userinfo-bar.d.ts +2 -0
- package/lib/layout/menu/userinfo-bar.d.ts.map +1 -1
- package/lib/layout/sidebar/index.js +4 -2
- package/lib/layout/sidebar/index.js.map +1 -1
- package/lib/layout2/components/userButton.d.ts.map +1 -1
- package/lib/layout2/components/userButton.js +9 -2
- package/lib/layout2/components/userButton.js.map +1 -1
- package/lib/layout2/header.d.ts.map +1 -1
- package/lib/layout2/header.js +4 -66
- package/lib/layout2/header.js.map +1 -1
- package/lib/layout2/main.d.ts +1 -1
- package/lib/layout2/main.d.ts.map +1 -1
- package/lib/layout2/main.js +3 -3
- package/lib/layout2/main.js.map +1 -1
- package/lib/layout2/page.d.ts.map +1 -1
- package/lib/layout2/page.js +20 -2
- package/lib/layout2/page.js.map +1 -1
- package/lib/layout2/sider.d.ts +1 -2
- package/lib/layout2/sider.d.ts.map +1 -1
- package/lib/layout2/sider.js +6 -125
- package/lib/layout2/sider.js.map +1 -1
- package/lib/layout2/tabs/tabs-context.d.ts +20 -0
- package/lib/layout2/tabs/tabs-context.d.ts.map +1 -0
- package/lib/layout2/tabs/tabs-context.js +9 -0
- package/lib/layout2/tabs/tabs-context.js.map +1 -0
- package/lib/layout2/tabs/tabs-layout.d.ts +4 -0
- package/lib/layout2/tabs/tabs-layout.d.ts.map +1 -0
- package/lib/layout2/tabs/tabs-layout.js +87 -0
- package/lib/layout2/tabs/tabs-layout.js.map +1 -0
- package/lib/locale/LocaleProvider.d.ts +2 -0
- package/lib/locale/LocaleProvider.d.ts.map +1 -1
- package/lib/locale/LocaleProvider.js +7 -1
- package/lib/locale/LocaleProvider.js.map +1 -1
- package/lib/locale/useLocale.d.ts +2 -0
- package/lib/locale/useLocale.d.ts.map +1 -1
- package/lib/locale/useLocale.js +8 -2
- package/lib/locale/useLocale.js.map +1 -1
- package/lib/login/login.d.ts +2 -0
- package/lib/login/login.d.ts.map +1 -1
- package/lib/login2/login-page.js +1 -1
- package/lib/login2/login-page.js.map +1 -1
- package/lib/module/dtmpl-edit-card.d.ts +2 -0
- package/lib/module/dtmpl-edit-card.d.ts.map +1 -1
- package/lib/module/dtmpl-edit-card.js +0 -1
- package/lib/module/dtmpl-edit-card.js.map +1 -1
- package/lib/module/dtmpl-edit-page.d.ts +2 -0
- package/lib/module/dtmpl-edit-page.d.ts.map +1 -1
- package/lib/module/dtmpl-view-card.d.ts.map +1 -1
- package/lib/module/dtmpl-view-card.js +0 -10
- package/lib/module/dtmpl-view-card.js.map +1 -1
- package/lib/module/ltmpl-modal.d.ts +2 -0
- package/lib/module/ltmpl-modal.d.ts.map +1 -1
- package/lib/module/ltmpl-table.d.ts +4 -0
- package/lib/module/ltmpl-table.d.ts.map +1 -1
- package/lib/module/ltmpl-table.js +3 -2
- package/lib/module/ltmpl-table.js.map +1 -1
- package/lib/routable/dtmpl-route.d.ts.map +1 -1
- package/lib/routable/dtmpl-route.js +2 -2
- package/lib/routable/dtmpl-route.js.map +1 -1
- package/lib/routable/ltmpl-route.d.ts +1 -0
- package/lib/routable/ltmpl-route.d.ts.map +1 -1
- package/lib/routable/ltmpl-route.js +20 -13
- package/lib/routable/ltmpl-route.js.map +1 -1
- package/lib/routable/ttmpl-route.d.ts +1 -0
- package/lib/routable/ttmpl-route.d.ts.map +1 -1
- package/lib/routable/ttmpl-route.js +2 -2
- package/lib/routable/ttmpl-route.js.map +1 -1
- package/lib/routable/withroute.d.ts.map +1 -1
- package/lib/routable/withroute.js +8 -2
- package/lib/routable/withroute.js.map +1 -1
- package/lib/table/act-table.d.ts +13 -2
- package/lib/table/act-table.d.ts.map +1 -1
- package/lib/table/act-table.js +117 -55
- package/lib/table/act-table.js.map +1 -1
- package/lib/table/column/column-builder.d.ts +1 -0
- package/lib/table/column/column-builder.d.ts.map +1 -1
- package/lib/table/column/column-builder.js +100 -81
- package/lib/table/column/column-builder.js.map +1 -1
- package/lib/table/modal-select-table.d.ts +2 -0
- package/lib/table/modal-select-table.d.ts.map +1 -1
- package/lib/table/modal-select-table.js +1 -1
- package/lib/table/modal-select-table.js.map +1 -1
- package/lib/table/pagination.d.ts +2 -0
- package/lib/table/pagination.d.ts.map +1 -1
- package/lib/table/query-table.d.ts +7 -3
- package/lib/table/query-table.d.ts.map +1 -1
- package/lib/table/query-table.js +62 -12
- package/lib/table/query-table.js.map +1 -1
- package/lib/table/relation-table.d.ts +2 -0
- package/lib/table/relation-table.d.ts.map +1 -1
- package/lib/table/relation-table.js +1 -1
- package/lib/table/relation-table.js.map +1 -1
- package/lib/table/select-table.d.ts +2 -0
- package/lib/table/select-table.d.ts.map +1 -1
- package/lib/table/select-table.js +2 -1
- package/lib/table/select-table.js.map +1 -1
- package/lib/table/selected-rows-card.d.ts +3 -0
- package/lib/table/selected-rows-card.d.ts.map +1 -1
- package/lib/table/selected-rows-card.js +2 -1
- package/lib/table/selected-rows-card.js.map +1 -1
- package/lib/table/stat/restat.d.ts +3 -1
- package/lib/table/stat/restat.d.ts.map +1 -1
- package/lib/table/stat/restat.js +1 -1
- package/lib/table/stat/restat.js.map +1 -1
- package/lib/tmpl/hcservice-v3.d.ts +5 -2
- package/lib/tmpl/hcservice-v3.d.ts.map +1 -1
- package/lib/tmpl/hcservice-v3.js +62 -21
- package/lib/tmpl/hcservice-v3.js.map +1 -1
- package/lib/tmpl/interface.d.ts +28 -1
- package/lib/tmpl/interface.d.ts.map +1 -1
- package/lib/tmpl/interface.js.map +1 -1
- package/lib/tree/act-tree.d.ts +6 -1
- package/lib/tree/act-tree.d.ts.map +1 -1
- package/lib/tree/act-tree.js +5 -5
- package/lib/tree/act-tree.js.map +1 -1
- package/lib/tree/tmpl-tree.d.ts +2 -0
- package/lib/tree/tmpl-tree.d.ts.map +1 -1
- package/lib/tree/tree-utils.js +1 -1
- package/lib/tree/tree-utils.js.map +1 -1
- package/lib/units/index.d.ts +5 -1
- package/lib/units/index.d.ts.map +1 -1
- package/lib/units/index.js +25 -0
- package/lib/units/index.js.map +1 -1
- package/lib/welcome/quick-entrance.d.ts +2 -0
- package/lib/welcome/quick-entrance.d.ts.map +1 -1
- package/lib/welcome/workbench.d.ts +2 -0
- package/lib/welcome/workbench.d.ts.map +1 -1
- package/package.json +3 -2
- package/src/aldehyde/controls/date-picker/index.tsx +15 -1
- package/src/aldehyde/controls/entry-control.tsx +4 -1
- package/src/aldehyde/controls/file-view/drawer-file-view.tsx +1 -1
- package/src/aldehyde/controls/file-view/index.tsx +4 -4
- package/src/aldehyde/controls/file-view/multi-file-view.tsx +43 -0
- package/src/aldehyde/controls/tree-select/tree-entity-select.tsx +0 -1
- package/src/aldehyde/controls/upload/index.tsx +8 -3
- package/src/aldehyde/controls/upload/mult-file-upload.tsx +216 -0
- package/src/aldehyde/controls/view-control.tsx +3 -1
- package/src/aldehyde/detail/view/act-dtmpl-view.tsx +1 -3
- package/src/aldehyde/detail/view/dtmpl-view.tsx +1 -4
- package/src/aldehyde/detail/view/tab-act-dtmpl-view.tsx +304 -0
- package/src/aldehyde/form/criteria-form.tsx +23 -3
- package/src/aldehyde/form/form-Item-group.tsx +4 -3
- package/src/aldehyde/hooks/use-match-route/index.tsx +63 -0
- package/src/aldehyde/hooks/use-tabs/index.tsx +130 -0
- package/src/aldehyde/layout/MainPage.tsx +1 -1
- package/src/aldehyde/layout/coverstyle.css +1 -1
- package/src/aldehyde/layout/sidebar/index.tsx +4 -4
- package/src/aldehyde/layout2/components/userButton.tsx +15 -2
- package/src/aldehyde/layout2/header.tsx +5 -69
- package/src/aldehyde/layout2/main.tsx +4 -3
- package/src/aldehyde/layout2/page.tsx +25 -3
- package/src/aldehyde/layout2/sider.tsx +5 -133
- package/src/aldehyde/layout2/tabs/tabs-context.tsx +30 -0
- package/src/aldehyde/layout2/tabs/tabs-layout.tsx +152 -0
- package/src/aldehyde/locale/LocaleProvider.tsx +13 -2
- package/src/aldehyde/locale/useLocale.ts +10 -2
- package/src/aldehyde/login2/login-page.tsx +1 -1
- package/src/aldehyde/module/dtmpl-edit-card.tsx +0 -1
- package/src/aldehyde/module/dtmpl-view-card.tsx +0 -11
- package/src/aldehyde/module/ltmpl-table.tsx +13 -27
- package/src/aldehyde/routable/dtmpl-route.tsx +2 -1
- package/src/aldehyde/routable/ltmpl-route.tsx +38 -50
- package/src/aldehyde/routable/ttmpl-route.tsx +3 -2
- package/src/aldehyde/routable/withroute.tsx +12 -2
- package/src/aldehyde/table/act-table.tsx +158 -177
- package/src/aldehyde/table/column/column-builder.tsx +256 -257
- package/src/aldehyde/table/modal-select-table.tsx +3 -2
- package/src/aldehyde/table/query-table.tsx +84 -14
- package/src/aldehyde/table/relation-table.tsx +1 -2
- package/src/aldehyde/table/select-table.tsx +2 -1
- package/src/aldehyde/table/selected-rows-card.tsx +3 -0
- package/src/aldehyde/table/stat/restat.tsx +2 -3
- package/src/aldehyde/tmpl/hcservice-v3.tsx +58 -22
- package/src/aldehyde/tmpl/interface.tsx +36 -3
- package/src/aldehyde/tree/act-tree.tsx +7 -5
- package/src/aldehyde/tree/tree-utils.tsx +1 -1
- package/src/aldehyde/units/index.tsx +40 -1
|
@@ -7,10 +7,11 @@ import {
|
|
|
7
7
|
} from "../../tmpl/interface";
|
|
8
8
|
import TableUnits from "../table-util";
|
|
9
9
|
import SupportInputTypes from "../../tmpl/control-type-supportor";
|
|
10
|
-
import {Button, Popconfirm, Space, Tooltip} from "antd";
|
|
10
|
+
import {Button, Popconfirm, Popover, Space, Tooltip} from "antd";
|
|
11
11
|
import {SortableHandle} from "react-sortable-hoc";
|
|
12
12
|
import {
|
|
13
13
|
AlignLeftOutlined, CopyOutlined, DeleteOutlined,
|
|
14
|
+
EllipsisOutlined,
|
|
14
15
|
EyeInvisibleOutlined,
|
|
15
16
|
EyeOutlined,
|
|
16
17
|
FormOutlined,
|
|
@@ -33,14 +34,15 @@ interface ColumnBuilderProps extends ActionRenderProps{
|
|
|
33
34
|
hiddenRowCodes?: string[],
|
|
34
35
|
sortedColConfigs?: ColumnConfig[],
|
|
35
36
|
unHiden?:()=>any,
|
|
36
|
-
|
|
37
|
+
onHide?:(code: string)=>any,
|
|
38
|
+
operatable?:boolean,
|
|
37
39
|
}
|
|
38
40
|
|
|
39
41
|
interface ReportColumnBuilderProps {
|
|
40
|
-
|
|
42
|
+
columnConfigs: ColumnConfig[],
|
|
41
43
|
hiddenColIds?: string[],
|
|
42
|
-
|
|
43
|
-
|
|
44
|
+
translate:(...strs: string[]) => string;
|
|
45
|
+
leftFixedCols: number,
|
|
44
46
|
hiddenRowCodes?: string[],
|
|
45
47
|
unHiden?:()=>any,
|
|
46
48
|
onHide?:(code: string)=>any,
|
|
@@ -56,7 +58,7 @@ export default {
|
|
|
56
58
|
hiddenRowCodes,
|
|
57
59
|
sortedColConfigs, unHiden,
|
|
58
60
|
onHide,translate,
|
|
59
|
-
sortColumns,serverKey
|
|
61
|
+
sortColumns,serverKey,
|
|
60
62
|
} = props;
|
|
61
63
|
|
|
62
64
|
|
|
@@ -103,10 +105,10 @@ export default {
|
|
|
103
105
|
this.setSortProps(column,item,translate);
|
|
104
106
|
} else if (item.id == "20000") {
|
|
105
107
|
this.setHiddenRecordOpt(column,hiddenRowCodes,unHiden,onHide,translate);
|
|
106
|
-
} else if (item.title === "操作") {
|
|
108
|
+
} else if (item.title === "操作" && props.operatable) {
|
|
107
109
|
column["操作"] = "1";
|
|
108
110
|
column["fixed"] = "right";
|
|
109
|
-
column["align"] = "
|
|
111
|
+
column["align"] = "left";
|
|
110
112
|
column["width"] = item.colWidth ? item.colWidth : 160;
|
|
111
113
|
column["className"] = "opsColumn";
|
|
112
114
|
column["title"] = <>{translate("${操作}")}</>;
|
|
@@ -316,259 +318,256 @@ export default {
|
|
|
316
318
|
readOnly,
|
|
317
319
|
sourceId, translate,doCustomButton, doRowJump, blockMenuTreeDrawerOpen,
|
|
318
320
|
doRowAction, doDeleteByCode}=props;
|
|
319
|
-
const {buttons, builtInButtons} = ltmplConfig;
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
""
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
doEdit({
|
|
391
|
-
code: record.code,
|
|
392
|
-
mode: "update",
|
|
393
|
-
toCustomPage: true,
|
|
394
|
-
})
|
|
395
|
-
}
|
|
396
|
-
></Button>
|
|
397
|
-
) : (
|
|
398
|
-
""
|
|
399
|
-
)}
|
|
400
|
-
{buttons.includes("copy") && doEdit && !readOnly ? (
|
|
401
|
-
<Tooltip title={translate("${复制}")}>
|
|
402
|
-
<Button
|
|
403
|
-
size="small"
|
|
404
|
-
type="dashed"
|
|
405
|
-
icon={<CopyOutlined/>}
|
|
406
|
-
onClick={async () => {
|
|
407
|
-
//先复制
|
|
408
|
-
let toCustomPage = false;
|
|
409
|
-
if (buttons.includes("dtmplCustomEdit") || customEditable) {
|
|
410
|
-
toCustomPage = true;
|
|
321
|
+
const {buttons, builtInButtons,defShowRowActionCount} = ltmplConfig;
|
|
322
|
+
|
|
323
|
+
let actionButtons:any[]=[];
|
|
324
|
+
|
|
325
|
+
if(buttons.includes("detail") &&
|
|
326
|
+
showView &&
|
|
327
|
+
ActionUtils.isShow(
|
|
328
|
+
ltmplConfig.buttonViewAction?.preposes,
|
|
329
|
+
[record],
|
|
330
|
+
undefined
|
|
331
|
+
) ){actionButtons.push(<ViewButton
|
|
332
|
+
showView={showView}
|
|
333
|
+
data={record}
|
|
334
|
+
ltmplConfig={ltmplConfig}></ViewButton>);}
|
|
335
|
+
|
|
336
|
+
|
|
337
|
+
if(buttons.includes("customDetail") &&
|
|
338
|
+
showView &&
|
|
339
|
+
ActionUtils.isShow(
|
|
340
|
+
ltmplConfig.buttonViewAction?.preposes,
|
|
341
|
+
[record],
|
|
342
|
+
undefined
|
|
343
|
+
) ) {
|
|
344
|
+
actionButtons.push(<Button
|
|
345
|
+
size="small"
|
|
346
|
+
type="primary"
|
|
347
|
+
icon={<AlignLeftOutlined/>}
|
|
348
|
+
onClick={() => showView({code: record.code})}
|
|
349
|
+
></Button>)
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
if(buttons.includes("dtmplEdit") && doEdit && !readOnly ){ (
|
|
353
|
+
actionButtons.push(<EditButton
|
|
354
|
+
doEdit={doEdit}
|
|
355
|
+
data={record}
|
|
356
|
+
ltmplConfig={ltmplConfig}
|
|
357
|
+
></EditButton>)
|
|
358
|
+
) };
|
|
359
|
+
if( builtInButtons?.includes("blockAuthMenuTree") && !readOnly ) {
|
|
360
|
+
actionButtons.push(<Button
|
|
361
|
+
size="small"
|
|
362
|
+
type="dashed"
|
|
363
|
+
icon={
|
|
364
|
+
<KeyOutlined
|
|
365
|
+
rotate={180}
|
|
366
|
+
style={{color: "#f5222d", marginRight: "4px"}}
|
|
367
|
+
/>
|
|
368
|
+
}
|
|
369
|
+
onClick={() => blockMenuTreeDrawerOpen(record)
|
|
370
|
+
}
|
|
371
|
+
></Button>)
|
|
372
|
+
}
|
|
373
|
+
|
|
374
|
+
if((buttons.includes("dtmplCustomEdit") || customEditable) &&
|
|
375
|
+
doEdit &&
|
|
376
|
+
!readOnly &&
|
|
377
|
+
ActionUtils.isShow(
|
|
378
|
+
ltmplConfig.buttonEditAction?.preposes,
|
|
379
|
+
[record],
|
|
380
|
+
undefined
|
|
381
|
+
) ){
|
|
382
|
+
actionButtons.push(<Button
|
|
383
|
+
size="small"
|
|
384
|
+
type="dashed"
|
|
385
|
+
icon={<FormOutlined/>}
|
|
386
|
+
onClick={() =>
|
|
387
|
+
doEdit({
|
|
388
|
+
code: record.code,
|
|
389
|
+
mode: "update",
|
|
390
|
+
toCustomPage: true,
|
|
391
|
+
})
|
|
411
392
|
}
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
393
|
+
></Button>)
|
|
394
|
+
}
|
|
395
|
+
if(buttons.includes("copy") && doEdit && !readOnly ) {
|
|
396
|
+
actionButtons.push( <Tooltip title={translate("${复制}")}>
|
|
397
|
+
<Button
|
|
398
|
+
size="small"
|
|
399
|
+
type="dashed"
|
|
400
|
+
icon={<CopyOutlined/>}
|
|
401
|
+
onClick={async () => {
|
|
402
|
+
//先复制
|
|
403
|
+
let toCustomPage = false;
|
|
404
|
+
if (buttons.includes("dtmplCustomEdit") || customEditable) {
|
|
405
|
+
toCustomPage = true;
|
|
406
|
+
}
|
|
407
|
+
let code = await HcserviceV3.doCopy(
|
|
408
|
+
serverKey,
|
|
409
|
+
sourceId,
|
|
410
|
+
record.code
|
|
411
|
+
);
|
|
412
|
+
if (code) {
|
|
413
|
+
doEdit({code, mode: "update", toCustomPage});
|
|
414
|
+
}
|
|
415
|
+
}}
|
|
416
|
+
></Button>
|
|
417
|
+
</Tooltip>)
|
|
418
|
+
}
|
|
419
|
+
|
|
420
|
+
if(ltmplConfig.rowCustomButtons){
|
|
421
|
+
ltmplConfig.rowCustomButtons.map((customButton) => {
|
|
422
|
+
actionButtons.push(
|
|
423
|
+
<Button
|
|
424
|
+
key={customButton.id}
|
|
425
|
+
size="small"
|
|
426
|
+
type={
|
|
427
|
+
customButton.buttonType
|
|
428
|
+
? customButton.buttonType
|
|
429
|
+
: "dashed"
|
|
430
|
+
}
|
|
431
|
+
onClick={() =>
|
|
432
|
+
doCustomButton(customButton, [record])
|
|
433
|
+
}
|
|
434
|
+
>
|
|
435
|
+
{translate("${" + customButton.title + "}")}
|
|
436
|
+
</Button>
|
|
416
437
|
);
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
<Button
|
|
491
|
-
key={jump.id}
|
|
492
|
-
size="small"
|
|
493
|
-
type="dashed"
|
|
494
|
-
onClick={() => doRowJump(jump, record)}
|
|
495
|
-
>
|
|
496
|
-
{translate("${" + jump.title + "}")}
|
|
497
|
-
</Button>
|
|
498
|
-
);
|
|
499
|
-
})
|
|
500
|
-
: ""}
|
|
501
|
-
{ltmplConfig.rowCQuerys &&
|
|
502
|
-
ltmplConfig.rowCQuerys.length > 0 &&
|
|
503
|
-
!readOnly
|
|
504
|
-
? ltmplConfig.rowCQuerys.map((cquery) => {
|
|
505
|
-
// console.log("record record", record);
|
|
506
|
-
return (
|
|
507
|
-
<CquickButton
|
|
508
|
-
serverKey={serverKey}
|
|
509
|
-
key={cquery.id}
|
|
510
|
-
size={"small"}
|
|
511
|
-
pageType={"drawer"}
|
|
512
|
-
// onClick={() => doCQuery(cquery.id)}
|
|
513
|
-
cQueryConfig={cquery}
|
|
514
|
-
mainCode={
|
|
515
|
-
cquery.mainCodeColId
|
|
516
|
-
? record[cquery.mainCodeColId]
|
|
517
|
-
: record.code
|
|
518
|
-
}
|
|
519
|
-
/>
|
|
520
|
-
);
|
|
521
|
-
})
|
|
522
|
-
: ""}
|
|
523
|
-
{ltmplConfig.rowFileButtons &&
|
|
524
|
-
ltmplConfig.rowFileButtons.length > 0
|
|
525
|
-
? ltmplConfig.rowFileButtons.map((openFileButton) => {
|
|
526
|
-
let v = record[openFileButton.fieldId];
|
|
527
|
-
if (v) {
|
|
528
|
-
if (v instanceof Array) {
|
|
529
|
-
v = v[0];
|
|
530
|
-
}
|
|
531
|
-
if (v.includes("@R@") > 0) {
|
|
532
|
-
v = v.split("@R@")[1];
|
|
438
|
+
})}
|
|
439
|
+
if(ltmplConfig.ractions && !readOnly){
|
|
440
|
+
ltmplConfig.ractions.map((raction) => {
|
|
441
|
+
actionButtons.push (
|
|
442
|
+
ActionUtils.isShow(
|
|
443
|
+
raction?.preposes,
|
|
444
|
+
[record],
|
|
445
|
+
undefined
|
|
446
|
+
) ?
|
|
447
|
+
<Button
|
|
448
|
+
key={raction.id}
|
|
449
|
+
size="small"
|
|
450
|
+
type="dashed"
|
|
451
|
+
onClick={() => doRAction(raction.id, record.code)}
|
|
452
|
+
>
|
|
453
|
+
{translate("${" + raction.title + "}")}
|
|
454
|
+
</Button> : ""
|
|
455
|
+
);
|
|
456
|
+
})}
|
|
457
|
+
|
|
458
|
+
if(ltmplConfig.rowActions &&
|
|
459
|
+
!readOnly &&
|
|
460
|
+
ltmplConfig.rowActions.length > 0)
|
|
461
|
+
{ ltmplConfig.rowActions.map((action) => {
|
|
462
|
+
actionButtons.push(
|
|
463
|
+
<Action
|
|
464
|
+
serverKey={serverKey}
|
|
465
|
+
iconType={"icon"}
|
|
466
|
+
key={action.id}
|
|
467
|
+
data={[record]}
|
|
468
|
+
actionConfig={action}
|
|
469
|
+
doAction={doRowAction}
|
|
470
|
+
buttonSize={"small"}
|
|
471
|
+
serial={1}
|
|
472
|
+
></Action>
|
|
473
|
+
);
|
|
474
|
+
})}
|
|
475
|
+
|
|
476
|
+
if(ltmplConfig.rowJumps &&
|
|
477
|
+
ltmplConfig.rowJumps.length > 0 &&
|
|
478
|
+
!readOnly) {
|
|
479
|
+
ltmplConfig.rowJumps.map((jump) => {
|
|
480
|
+
actionButtons.push (
|
|
481
|
+
<Button
|
|
482
|
+
key={jump.id}
|
|
483
|
+
size="small"
|
|
484
|
+
type="dashed"
|
|
485
|
+
onClick={() => doRowJump(jump, record)}
|
|
486
|
+
>
|
|
487
|
+
{translate("${" + jump.title + "}")}
|
|
488
|
+
</Button>
|
|
489
|
+
);
|
|
490
|
+
})}
|
|
491
|
+
if(ltmplConfig.rowCQuerys &&
|
|
492
|
+
ltmplConfig.rowCQuerys.length > 0 &&
|
|
493
|
+
!readOnly
|
|
494
|
+
){
|
|
495
|
+
ltmplConfig.rowCQuerys.map((cquery) => {
|
|
496
|
+
actionButtons.push (
|
|
497
|
+
<CquickButton
|
|
498
|
+
serverKey={serverKey}
|
|
499
|
+
key={cquery.id}
|
|
500
|
+
size={"small"}
|
|
501
|
+
pageType={"drawer"}
|
|
502
|
+
cQueryConfig={cquery}
|
|
503
|
+
mainCode={
|
|
504
|
+
cquery.mainCodeColId
|
|
505
|
+
? record[cquery.mainCodeColId]
|
|
506
|
+
: record.code
|
|
507
|
+
}
|
|
508
|
+
/>
|
|
509
|
+
);
|
|
510
|
+
})
|
|
533
511
|
}
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
512
|
+
if(ltmplConfig.rowFileButtons &&
|
|
513
|
+
ltmplConfig.rowFileButtons.length > 0)
|
|
514
|
+
{ ltmplConfig.rowFileButtons.map((openFileButton) => {
|
|
515
|
+
let v = record[openFileButton.fieldId];
|
|
516
|
+
if (v) {
|
|
517
|
+
if (v instanceof Array) {
|
|
518
|
+
v = v[0];
|
|
519
|
+
}
|
|
520
|
+
if (v.includes("@R@") > 0) {
|
|
521
|
+
v = v.split("@R@")[1];
|
|
522
|
+
}
|
|
523
|
+
actionButtons.push (
|
|
524
|
+
<NewinFileView
|
|
525
|
+
title={openFileButton.title}
|
|
526
|
+
filePath={HcserviceV3.toFilePath(v, serverKey)}
|
|
527
|
+
serverKey={serverKey}
|
|
528
|
+
key={openFileButton.id}
|
|
529
|
+
//size={"small"}
|
|
530
|
+
/>
|
|
531
|
+
);
|
|
532
|
+
}
|
|
533
|
+
})}
|
|
534
|
+
if(buttons.includes("singleDelete") &&
|
|
535
|
+
!readOnly &&
|
|
536
|
+
ActionUtils.isShow(
|
|
537
|
+
ltmplConfig.buttonDeleteAction?.preposes,
|
|
538
|
+
[record],
|
|
539
|
+
undefined
|
|
540
|
+
) ){ actionButtons.push(
|
|
541
|
+
<Popconfirm
|
|
542
|
+
placement="rightBottom"
|
|
543
|
+
title={translate("${确定要[删除]此数据吗}?")}
|
|
544
|
+
onConfirm={() => {
|
|
545
|
+
doDeleteByCode(record.code);
|
|
546
|
+
}}
|
|
547
|
+
okText={translate("${确定}")}
|
|
548
|
+
cancelText={translate("${取消}")}
|
|
549
|
+
okType={"danger"}
|
|
550
|
+
>
|
|
551
|
+
<Button size="small" type="dashed" danger>
|
|
552
|
+
<DeleteOutlined/>
|
|
553
|
+
</Button>
|
|
554
|
+
</Popconfirm>
|
|
555
|
+
) }
|
|
556
|
+
let showButtons=[];
|
|
557
|
+
if(defShowRowActionCount<=0 || defShowRowActionCount >= actionButtons.length ) {
|
|
558
|
+
showButtons = actionButtons
|
|
559
|
+
} else{
|
|
560
|
+
showButtons = actionButtons.slice(0,defShowRowActionCount)
|
|
561
|
+
showButtons.push(
|
|
562
|
+
<Popover content={ <Space wrap>
|
|
563
|
+
{actionButtons.slice(defShowRowActionCount,actionButtons.length)}
|
|
564
|
+
</Space> } title={"更多操作"} trigger="hover">
|
|
565
|
+
<Button size={"small"} icon={<EllipsisOutlined />} shape="circle" ></Button>
|
|
566
|
+
</Popover>
|
|
542
567
|
);
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
})
|
|
547
|
-
: ""}
|
|
548
|
-
{buttons.includes("singleDelete") &&
|
|
549
|
-
!readOnly &&
|
|
550
|
-
ActionUtils.isShow(
|
|
551
|
-
ltmplConfig.buttonDeleteAction?.preposes,
|
|
552
|
-
[record],
|
|
553
|
-
undefined
|
|
554
|
-
) ? (
|
|
555
|
-
<Popconfirm
|
|
556
|
-
placement="rightBottom"
|
|
557
|
-
title={translate("${确定要[删除]此数据吗}?")}
|
|
558
|
-
onConfirm={() => {
|
|
559
|
-
doDeleteByCode(record.code);
|
|
560
|
-
}}
|
|
561
|
-
okText={translate("${确定}")}
|
|
562
|
-
cancelText={translate("${取消}")}
|
|
563
|
-
okType={"danger"}
|
|
564
|
-
>
|
|
565
|
-
<Button size="small" type="dashed" danger>
|
|
566
|
-
<DeleteOutlined/>
|
|
567
|
-
</Button>
|
|
568
|
-
</Popconfirm>
|
|
569
|
-
) : (
|
|
570
|
-
""
|
|
571
|
-
)}
|
|
568
|
+
}
|
|
569
|
+
return <Space size={[0, 4]} wrap>
|
|
570
|
+
{showButtons}
|
|
572
571
|
</Space>
|
|
573
572
|
}
|
|
574
573
|
|
|
@@ -254,7 +254,7 @@ class ModelSelectTable extends React.PureComponent<ModelSelectTableProps, ModelS
|
|
|
254
254
|
return (
|
|
255
255
|
<Modal
|
|
256
256
|
open={open}
|
|
257
|
-
title={<SelectedRowsCard value={selectedRows} onChange={this.changeRowSelection}></SelectedRowsCard>}
|
|
257
|
+
title={<SelectedRowsCard value={selectedRows} onChange={this.changeRowSelection} ></SelectedRowsCard>}
|
|
258
258
|
width={1150}
|
|
259
259
|
destroyOnClose={true}
|
|
260
260
|
centered
|
|
@@ -265,7 +265,8 @@ class ModelSelectTable extends React.PureComponent<ModelSelectTableProps, ModelS
|
|
|
265
265
|
<div className="actTable">
|
|
266
266
|
<CriteriaForm serverKey={serverKey} selectedRows={selectedRows} ltmplConfig={selectConfig} data={criteriaData}
|
|
267
267
|
doSearch={this.doSearch} loading={loading} />
|
|
268
|
-
<QueryTable serverKey={serverKey} pageInfo={{pageNo:pageNo?pageNo:1,pageSize:pageSize?pageSize:selectConfig.defaultPageSize}} onChangePage={this.onChangePage}
|
|
268
|
+
<QueryTable serverKey={serverKey} pageInfo={{pageNo:pageNo?pageNo:1,pageSize:pageSize?pageSize:selectConfig.defaultPageSize}} onChangePage={this.onChangePage}
|
|
269
|
+
maxSelectedRows={maxSelectedRows?maxSelectedRows:selectConfig.maxSelectedRows} selectedRows={selectedRows}
|
|
269
270
|
primaryColumn={selectConfig.primaryColumn}
|
|
270
271
|
columns={columns}
|
|
271
272
|
queryKey={queryKey}
|