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
|
@@ -1,46 +1,18 @@
|
|
|
1
|
-
import React, { ReactNode
|
|
1
|
+
import React, {ReactDOM, ReactNode} from "react";
|
|
2
2
|
import {
|
|
3
|
-
Button,
|
|
4
|
-
|
|
5
|
-
Checkbox,
|
|
6
|
-
Col,
|
|
7
|
-
Divider,
|
|
8
|
-
Popover,
|
|
9
|
-
Row,
|
|
10
|
-
Space,
|
|
11
|
-
Drawer,
|
|
12
|
-
Modal,
|
|
13
|
-
Tooltip,
|
|
14
|
-
message, Statistic, Layout,
|
|
3
|
+
Button, Card, Checkbox, Col, Divider, Popover, Row, Space, Drawer, Modal, Tooltip,
|
|
4
|
+
message, Statistic, Layout,Table
|
|
15
5
|
} from "antd";
|
|
16
|
-
import Table from "./control-table-x-axis-wrapper";
|
|
17
6
|
import {
|
|
18
|
-
DownloadOutlined,SettingOutlined,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
PlusCircleOutlined,
|
|
22
|
-
PlusOutlined,
|
|
23
|
-
ReloadOutlined,
|
|
24
|
-
RetweetOutlined,
|
|
25
|
-
SearchOutlined,
|
|
26
|
-
TableOutlined,
|
|
27
|
-
UploadOutlined,
|
|
7
|
+
DownloadOutlined,SettingOutlined, FundOutlined, LineChartOutlined,
|
|
8
|
+
PlusCircleOutlined, PlusOutlined, ReloadOutlined, RetweetOutlined, SearchOutlined,
|
|
9
|
+
TableOutlined, UploadOutlined,
|
|
28
10
|
} from "@ant-design/icons";
|
|
29
11
|
import "./index.css";
|
|
30
12
|
import {
|
|
31
|
-
ActTableMode,
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
ColumnConfig,
|
|
35
|
-
CustomButton,
|
|
36
|
-
DoEditParam,
|
|
37
|
-
DtmplData,
|
|
38
|
-
JumpConfig,
|
|
39
|
-
LtmplConfig,
|
|
40
|
-
QueryKey,
|
|
41
|
-
SelectedRow,
|
|
42
|
-
ShowViewParam,
|
|
43
|
-
TmplBaseProps,
|
|
13
|
+
ActTableMode, ActTableViewModel, AggregateVO, ClassAddConfig, ColumnConfig,
|
|
14
|
+
CustomButton, CustomButtonConfig, DoEditParam, DtmplData, JumpConfig, LtmplConfig, QueryKey,
|
|
15
|
+
SelectedRow, ShowViewParam, TmplBaseProps,
|
|
44
16
|
} from "../tmpl/interface";
|
|
45
17
|
|
|
46
18
|
import HcserviceV3 from "../tmpl/hcservice-v3";
|
|
@@ -65,7 +37,6 @@ const { Content, Sider } = Layout;
|
|
|
65
37
|
type Level = "l1" | "l2";
|
|
66
38
|
|
|
67
39
|
const defaultDisabledColIds: string[] = ["20000", "10000"];
|
|
68
|
-
let refresh = true;
|
|
69
40
|
|
|
70
41
|
interface ActTableProps extends TmplBaseProps {
|
|
71
42
|
criteriaData: object;
|
|
@@ -90,6 +61,7 @@ interface ActTableProps extends TmplBaseProps {
|
|
|
90
61
|
initCollapse?: boolean;
|
|
91
62
|
readOnly?: boolean;
|
|
92
63
|
tableType?:"common"|"report";
|
|
64
|
+
operatable?:boolean;
|
|
93
65
|
}
|
|
94
66
|
|
|
95
67
|
interface ActTableStat {
|
|
@@ -111,8 +83,11 @@ interface ActTableStat {
|
|
|
111
83
|
customButton?: CustomButton;
|
|
112
84
|
customButtonData?: DtmplData[];
|
|
113
85
|
showRatmplSelector?: boolean;
|
|
114
|
-
|
|
86
|
+
aggregateVO?: AggregateVO;
|
|
87
|
+
restatParams?: object;
|
|
115
88
|
|
|
89
|
+
}
|
|
90
|
+
let serial_number = new Date().getTime();
|
|
116
91
|
class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
|
|
117
92
|
state = {
|
|
118
93
|
//tableColumns: undefined,
|
|
@@ -135,6 +110,8 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
|
|
|
135
110
|
customButtonData: undefined,
|
|
136
111
|
customButton: undefined,
|
|
137
112
|
showRatmplSelector: false,
|
|
113
|
+
aggregateVO: undefined,
|
|
114
|
+
restatParams: undefined,
|
|
138
115
|
};
|
|
139
116
|
|
|
140
117
|
static contextType = LocaleContext;
|
|
@@ -146,6 +123,7 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
|
|
|
146
123
|
collapsible: false,
|
|
147
124
|
initCollapse: false,
|
|
148
125
|
readOnly: false,
|
|
126
|
+
operatable:true,
|
|
149
127
|
};
|
|
150
128
|
|
|
151
129
|
loadData = async (
|
|
@@ -154,14 +132,8 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
|
|
|
154
132
|
sortedColConfigs: ColumnConfig[]
|
|
155
133
|
) => {
|
|
156
134
|
const {
|
|
157
|
-
sourceId,
|
|
158
|
-
|
|
159
|
-
ltmplConfig,
|
|
160
|
-
mainCode,
|
|
161
|
-
level,
|
|
162
|
-
pageNo,
|
|
163
|
-
pageSize,
|
|
164
|
-
serverKey,
|
|
135
|
+
sourceId, criteriaData, ltmplConfig,
|
|
136
|
+
mainCode, level, pageNo, pageSize, serverKey,
|
|
165
137
|
} = this.props;
|
|
166
138
|
|
|
167
139
|
if (!ltmplConfig) {
|
|
@@ -230,14 +202,8 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
|
|
|
230
202
|
|
|
231
203
|
if (!queryKey.sourceId || queryKey.sourceId == this.props.sourceId) {
|
|
232
204
|
this.setState({
|
|
233
|
-
disabledColIds,
|
|
234
|
-
|
|
235
|
-
hiddenRowCodes,
|
|
236
|
-
sortedColConfigs,
|
|
237
|
-
queryKey,
|
|
238
|
-
showL2Chart: false,
|
|
239
|
-
selectedRows: [],
|
|
240
|
-
selectedDatas: [],
|
|
205
|
+
disabledColIds, hiddenColIds: hiddenColIds_, hiddenRowCodes,
|
|
206
|
+
sortedColConfigs, queryKey, showL2Chart: false, selectedRows: [], selectedDatas: [],
|
|
241
207
|
viewModels:
|
|
242
208
|
this.state.viewModels.length > 0 ? this.state.viewModels : ["table"],
|
|
243
209
|
});
|
|
@@ -247,18 +213,34 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
|
|
|
247
213
|
});
|
|
248
214
|
};
|
|
249
215
|
|
|
250
|
-
doCustomButton = (customButton: CustomButton, records: DtmplData[]) => {
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
}
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
})
|
|
261
|
-
|
|
216
|
+
doCustomButton =async (customButton: CustomButton, records: DtmplData[]) => {
|
|
217
|
+
if(!this.buttonClickable()){
|
|
218
|
+
return;
|
|
219
|
+
}
|
|
220
|
+
const {serverKey, sourceId} = this.props;
|
|
221
|
+
let doType=customButton.doType;
|
|
222
|
+
let config:CustomButtonConfig = ProgramConfig.getCustomButtonConfig(customButton.id);
|
|
223
|
+
if("request_refresh" == doType){
|
|
224
|
+
if(config && config.doAction){
|
|
225
|
+
await config.doAction(customButton,records);
|
|
226
|
+
}else if(config && config.getRequestUrl){
|
|
227
|
+
let url=await config.getRequestUrl(customButton,records);
|
|
228
|
+
await HcserviceV3.doPostRequest(serverKey,url);
|
|
229
|
+
}else if(customButton.path){
|
|
230
|
+
await HcserviceV3.doPostRequest(serverKey,customButton.path);
|
|
231
|
+
}else{
|
|
232
|
+
message.error("Button Config Error");
|
|
233
|
+
return;
|
|
234
|
+
}
|
|
235
|
+
this.doSearchDirect(null);
|
|
236
|
+
}else if("show_window"==doType){
|
|
237
|
+
this.setState({
|
|
238
|
+
showCustomCard: true,
|
|
239
|
+
customButton,
|
|
240
|
+
customButtonData: records,
|
|
241
|
+
});
|
|
242
|
+
}else {
|
|
243
|
+
message.error("Unsuport Button dotype " + doType);
|
|
262
244
|
}
|
|
263
245
|
};
|
|
264
246
|
|
|
@@ -294,8 +276,26 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
|
|
|
294
276
|
if (windowPosition && windowPosition != customButton.windowPosition) {
|
|
295
277
|
return "";
|
|
296
278
|
}
|
|
279
|
+
|
|
297
280
|
let customProps = { customButton: customButton, data: customButtonData };
|
|
298
|
-
|
|
281
|
+
|
|
282
|
+
let config:CustomButtonConfig= ProgramConfig.getCustomButtonConfig(customButton.id);
|
|
283
|
+
let page;
|
|
284
|
+
if(config && config.getCurrentPage){
|
|
285
|
+
page=config.getCurrentPage(customButton,customButtonData);
|
|
286
|
+
}
|
|
287
|
+
if(!page){
|
|
288
|
+
page = ProgramConfig.getCustomPage(customButton.id);
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
if(!page){
|
|
292
|
+
message.error("Not found CustomButton Page");
|
|
293
|
+
this.setState({
|
|
294
|
+
customButton:undefined
|
|
295
|
+
})
|
|
296
|
+
return;
|
|
297
|
+
}
|
|
298
|
+
|
|
299
299
|
let customElement = React.createElement(page, customProps);
|
|
300
300
|
if (
|
|
301
301
|
customButton.windowPosition == "under-table" ||
|
|
@@ -370,6 +370,7 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
|
|
|
370
370
|
...ltmplConfig.columns,
|
|
371
371
|
];
|
|
372
372
|
}
|
|
373
|
+
|
|
373
374
|
this.loadData(defaultDisabledColIds, [], sortedColConfigs);
|
|
374
375
|
}
|
|
375
376
|
|
|
@@ -383,19 +384,19 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
|
|
|
383
384
|
} = prevProps;
|
|
384
385
|
|
|
385
386
|
let { hiddenColIds, sortedColConfigs } = this.state;
|
|
386
|
-
|
|
387
|
+
let currentQueryParams= ProgramConfig.transQueryParamsToStr(criteriaData, false, [
|
|
388
|
+
"pageSize",
|
|
389
|
+
"pageNo",
|
|
390
|
+
]);
|
|
391
|
+
let preCurrentQueryParams=ProgramConfig.transQueryParamsToStr(preCriteriaData, false, [
|
|
392
|
+
"pageSize",
|
|
393
|
+
"pageNo",
|
|
394
|
+
]);
|
|
387
395
|
if (
|
|
388
396
|
(sourceId && preSourceId != sourceId) ||
|
|
389
397
|
(ltmplConfig &&
|
|
390
398
|
(!preLtmplConfig || ltmplConfig.id != preLtmplConfig.id)) ||
|
|
391
|
-
|
|
392
|
-
"pageSize",
|
|
393
|
-
"pageNo",
|
|
394
|
-
]) !=
|
|
395
|
-
ProgramConfig.transQueryParamsToStr(preCriteriaData, false, [
|
|
396
|
-
"pageSize",
|
|
397
|
-
"pageNo",
|
|
398
|
-
])
|
|
399
|
+
(currentQueryParams != preCurrentQueryParams && (!criteriaData['menuId'] || preCriteriaData.menuId==criteriaData['menuId']))
|
|
399
400
|
) {
|
|
400
401
|
//5秒后允许再次请求数据
|
|
401
402
|
//refresh=false;
|
|
@@ -444,7 +445,6 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
|
|
|
444
445
|
};
|
|
445
446
|
|
|
446
447
|
onHide = (code: string) => {
|
|
447
|
-
|
|
448
448
|
const { hiddenRowCodes } = this.state;
|
|
449
449
|
let hiddenCodes = [...hiddenRowCodes, code];
|
|
450
450
|
this.setState({
|
|
@@ -747,23 +747,12 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
|
|
|
747
747
|
|
|
748
748
|
renderHeaderButtons = () => {
|
|
749
749
|
let {
|
|
750
|
-
hiddenColIds,
|
|
751
|
-
|
|
752
|
-
sortedColConfigs,
|
|
753
|
-
disabledColIds,
|
|
754
|
-
showL2Chart,
|
|
755
|
-
showL2ActTable,
|
|
750
|
+
hiddenColIds, viewModels, sortedColConfigs, disabledColIds, showL2Chart,
|
|
751
|
+
showL2ActTable,restatParams,
|
|
756
752
|
} = this.state;
|
|
757
753
|
const {
|
|
758
|
-
ltmplConfig,
|
|
759
|
-
|
|
760
|
-
doCreate,
|
|
761
|
-
doSearch,
|
|
762
|
-
menuId,
|
|
763
|
-
funcMode,
|
|
764
|
-
customCreatable,
|
|
765
|
-
serverKey,
|
|
766
|
-
readOnly,
|
|
754
|
+
ltmplConfig, sourceId, doCreate, doSearch, menuId,
|
|
755
|
+
funcMode, customCreatable, serverKey, readOnly,
|
|
767
756
|
} = this.props;
|
|
768
757
|
const { translate } = this.context;
|
|
769
758
|
let { buttons } = ltmplConfig;
|
|
@@ -778,7 +767,7 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
|
|
|
778
767
|
</Button>
|
|
779
768
|
</Popover>
|
|
780
769
|
) : null}
|
|
781
|
-
{buttons.includes("ratmplSelect") ? (
|
|
770
|
+
{buttons.includes("ratmplSelect") && !readOnly ? (
|
|
782
771
|
<Button onClick={() => this.setState({ showRatmplSelector: true })}>
|
|
783
772
|
{translate("${选择}")}
|
|
784
773
|
</Button>
|
|
@@ -872,10 +861,15 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
|
|
|
872
861
|
)}
|
|
873
862
|
{buttons.includes("reStat") && !readOnly ? (
|
|
874
863
|
<Restat
|
|
864
|
+
value={restatParams}
|
|
875
865
|
serverKey={serverKey}
|
|
876
866
|
fields={ltmplConfig.reStatParams}
|
|
877
867
|
sourceId={sourceId}
|
|
878
|
-
onfinish={() =>
|
|
868
|
+
onfinish={(restatParams) => {
|
|
869
|
+
this.actTableDoSearch(null);
|
|
870
|
+
this.setState({ restatParams: restatParams });
|
|
871
|
+
}
|
|
872
|
+
}
|
|
879
873
|
></Restat>
|
|
880
874
|
) : (
|
|
881
875
|
""
|
|
@@ -934,7 +928,7 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
|
|
|
934
928
|
className="hoverbig"
|
|
935
929
|
title={translate("${刷新}")}
|
|
936
930
|
onClick={() => {
|
|
937
|
-
|
|
931
|
+
this.actTableDoSearch(null);
|
|
938
932
|
}}
|
|
939
933
|
>
|
|
940
934
|
<ReloadOutlined />
|
|
@@ -988,9 +982,37 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
|
|
|
988
982
|
}
|
|
989
983
|
};
|
|
990
984
|
|
|
985
|
+
actTableDoSearch = (data: object) => {
|
|
986
|
+
let new_serial_number = new Date().getTime();
|
|
987
|
+
let { doSearch } = this.props;
|
|
988
|
+
if (doSearch && new_serial_number - serial_number > 3000) {
|
|
989
|
+
serial_number = new_serial_number;
|
|
990
|
+
doSearch({ ...data, serial_number });
|
|
991
|
+
}
|
|
992
|
+
}
|
|
993
|
+
|
|
994
|
+
doSearchDirect = (data: object) => {
|
|
995
|
+
|
|
996
|
+
let { doSearch } = this.props;
|
|
997
|
+
if (doSearch ) {
|
|
998
|
+
doSearch({ ...data, serial_number });
|
|
999
|
+
}
|
|
1000
|
+
}
|
|
1001
|
+
|
|
1002
|
+
|
|
1003
|
+
buttonClickable = () => {
|
|
1004
|
+
let new_serial_number = new Date().getTime();
|
|
1005
|
+
if (new_serial_number - serial_number > 1500) {
|
|
1006
|
+
serial_number = new_serial_number;
|
|
1007
|
+
return true;
|
|
1008
|
+
}else{
|
|
1009
|
+
return false;
|
|
1010
|
+
}
|
|
1011
|
+
}
|
|
1012
|
+
|
|
991
1013
|
renderCriteriaForm = () => {
|
|
992
1014
|
let { loading, selectedRows, selectedDatas } = this.state;
|
|
993
|
-
let { ltmplConfig,
|
|
1015
|
+
let { ltmplConfig, criteriaData, serverKey } = this.props;
|
|
994
1016
|
return (
|
|
995
1017
|
<CriteriaForm
|
|
996
1018
|
serverKey={serverKey}
|
|
@@ -1004,10 +1026,20 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
|
|
|
1004
1026
|
doAction={this.doSelectedAction}
|
|
1005
1027
|
doDelete={this.doDelete}
|
|
1006
1028
|
doJump={this.doSelectedJump}
|
|
1007
|
-
doSearch={
|
|
1029
|
+
doSearch={this.actTableDoSearch}
|
|
1008
1030
|
/>
|
|
1009
1031
|
);
|
|
1010
1032
|
};
|
|
1033
|
+
//暂时无用
|
|
1034
|
+
// queryTotal = async () => {
|
|
1035
|
+
// const { queryKey} = this.state;
|
|
1036
|
+
// const { serverKey }=this.props;
|
|
1037
|
+
// let aggregateVO:AggregateVO = await HcserviceV3.requestQueryAggregates(serverKey, queryKey.key);
|
|
1038
|
+
// this.setState({
|
|
1039
|
+
// aggregateVO,
|
|
1040
|
+
// });
|
|
1041
|
+
// return aggregateVO;
|
|
1042
|
+
// };
|
|
1011
1043
|
|
|
1012
1044
|
getLtreeEntitySelectCriteria=()=>{
|
|
1013
1045
|
let {ltmplConfig}=this.props
|
|
@@ -1024,36 +1056,17 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
|
|
|
1024
1056
|
|
|
1025
1057
|
renderContent = () => {
|
|
1026
1058
|
let {
|
|
1027
|
-
queryKey,
|
|
1028
|
-
|
|
1029
|
-
selectedRows,
|
|
1030
|
-
hiddenRowCodes,
|
|
1031
|
-
viewModels,
|
|
1032
|
-
sortedColConfigs,
|
|
1033
|
-
hiddenColIds,
|
|
1034
|
-
showL2ActTable,
|
|
1059
|
+
queryKey, loading, selectedRows, hiddenRowCodes, viewModels, sortedColConfigs, hiddenColIds, showL2ActTable,
|
|
1060
|
+
aggregateVO,
|
|
1035
1061
|
} = this.state;
|
|
1036
1062
|
let {
|
|
1037
|
-
sourceId,
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
collapsible,
|
|
1042
|
-
pageSize,
|
|
1043
|
-
pageNo,
|
|
1044
|
-
onChangePage,
|
|
1045
|
-
serverKey,
|
|
1046
|
-
doSearch,
|
|
1047
|
-
criteriaData,
|
|
1048
|
-
showView,
|
|
1049
|
-
doEdit,
|
|
1050
|
-
doRAction,
|
|
1051
|
-
customEditable,
|
|
1052
|
-
readOnly,tableType
|
|
1063
|
+
sourceId, ltmplConfig, funcMode,operatable,
|
|
1064
|
+
title, collapsible, pageSize,
|
|
1065
|
+
pageNo, onChangePage, serverKey, criteriaData,
|
|
1066
|
+
showView, doEdit, doRAction, customEditable, readOnly,tableType
|
|
1053
1067
|
} = this.props;
|
|
1054
1068
|
const { translate } = this.context;
|
|
1055
1069
|
|
|
1056
|
-
|
|
1057
1070
|
if (!ltmplConfig || !sourceId) {
|
|
1058
1071
|
return (
|
|
1059
1072
|
<>
|
|
@@ -1063,18 +1076,12 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
|
|
|
1063
1076
|
);
|
|
1064
1077
|
}
|
|
1065
1078
|
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
1079
|
let tableColumns = ColumnBuilder.buildTableColumns(
|
|
1069
|
-
{ltmplConfig,
|
|
1070
|
-
hiddenColIds,
|
|
1071
|
-
hiddenRowCodes,
|
|
1072
|
-
sortedColConfigs,showView,
|
|
1080
|
+
{ltmplConfig,operatable,
|
|
1081
|
+
hiddenColIds, hiddenRowCodes, sortedColConfigs,showView,
|
|
1073
1082
|
doEdit,
|
|
1074
|
-
doRAction,
|
|
1075
|
-
|
|
1076
|
-
serverKey,
|
|
1077
|
-
readOnly,
|
|
1083
|
+
doRAction, customEditable,
|
|
1084
|
+
serverKey, readOnly,
|
|
1078
1085
|
sourceId, translate,unHiden:this.unHiden,
|
|
1079
1086
|
onHide:this.onHide, doCustomButton:this.doCustomButton, doRowJump:this.doRowJump,
|
|
1080
1087
|
blockMenuTreeDrawerOpen:this.blockMenuTreeDrawerOpen,
|
|
@@ -1149,23 +1156,13 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
|
|
|
1149
1156
|
: typeof title == "string"
|
|
1150
1157
|
? translate("${" + title + "}")
|
|
1151
1158
|
: title}</p>
|
|
1152
|
-
{
|
|
1153
|
-
{
|
|
1154
|
-
{
|
|
1155
|
-
{/*
|
|
1156
|
-
{
|
|
1157
|
-
{
|
|
1158
|
-
{
|
|
1159
|
-
{/*<Statistic title="Active Users" value={112893} />*/}
|
|
1160
|
-
{/*<Statistic title="Active Users" value={112893} />*/}
|
|
1161
|
-
{/*<Statistic title="Active Users" value={112893} /><Statistic title="Active Users" value={112893} />*/}
|
|
1162
|
-
{/* <Statistic title="Active Users" value={112893} />*/}
|
|
1163
|
-
{/* <Statistic title="Active Users" value={112893} />*/}
|
|
1164
|
-
{/* <Statistic title="Active Users" value={112893} />*/}
|
|
1165
|
-
{/* <Statistic title="Active Users" value={112893} />*/}
|
|
1166
|
-
{/* <Statistic title="Active Users" value={112893} />*/}
|
|
1167
|
-
{/* <Statistic title="Active Users" value={112893} />*/}
|
|
1168
|
-
{/*</Space></div>*/}
|
|
1159
|
+
{/*<Space size={"large"} style={{marginLeft:50}}>*/}
|
|
1160
|
+
{/*{aggregateVO && aggregateVO.aggregates?*/}
|
|
1161
|
+
{/* aggregateVO.aggregates.map(av=>{*/}
|
|
1162
|
+
{/* return <Statistic title={av.fieldTitle} value={av.value} />*/}
|
|
1163
|
+
{/* }):null*/}
|
|
1164
|
+
{/*}*/}
|
|
1165
|
+
{/*</Space>*/}
|
|
1169
1166
|
<p className="fr" style={{marginBottom:"4px"}}>{this.renderHeaderButtons()}</p>
|
|
1170
1167
|
</h3>
|
|
1171
1168
|
</span>
|
|
@@ -1179,19 +1176,15 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
|
|
|
1179
1176
|
theme={"light"}
|
|
1180
1177
|
style={{
|
|
1181
1178
|
paddingRight:'0px'
|
|
1182
|
-
// height: "90vh",
|
|
1183
|
-
// position: "fixed",
|
|
1184
|
-
// left: 0,
|
|
1185
|
-
// top: 126,
|
|
1186
|
-
// bottom: 0,
|
|
1187
|
-
// marginLeft: 210,
|
|
1188
1179
|
}}
|
|
1189
1180
|
>{ltreeEntitySelect?
|
|
1190
1181
|
<EntryControl width={300-10} value={criteriaData[ltreeEntitySelect?.id]} fieldConfig={ltreeEntitySelect}></EntryControl>:null}
|
|
1191
1182
|
</Sider>
|
|
1192
1183
|
<Layout style={{ backgroundColor: "#fff" }}>
|
|
1193
1184
|
<Content style={{ overflow: "initial" }}>
|
|
1185
|
+
|
|
1194
1186
|
{displayCriteriaCard ? this.renderCriteriaForm() : null}
|
|
1187
|
+
|
|
1195
1188
|
{ loading ? (
|
|
1196
1189
|
<Table loading={loading}></Table>
|
|
1197
1190
|
) : (tableType =="report"?<ReportTable
|
|
@@ -1204,16 +1197,15 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
|
|
|
1204
1197
|
leftFixedCols={ltmplConfig.leftFixedCols}
|
|
1205
1198
|
/>:
|
|
1206
1199
|
<QueryTable
|
|
1200
|
+
// queryTotal={this.queryTotal}
|
|
1207
1201
|
tableProps={{scrollY:ltmplConfig.scrollY,clickDisplayTotal:!ltmplConfig.directShowTotal}}
|
|
1208
1202
|
serverKey={serverKey}
|
|
1209
1203
|
onChangePage={onChangePage}
|
|
1210
1204
|
viewModels={viewModels}
|
|
1211
1205
|
primaryColumn={ltmplConfig.primaryColumn}
|
|
1212
|
-
columnConfigs={columnConfigs}
|
|
1213
|
-
summaryConfigs={ltmplConfig.totalColumnConfigs}
|
|
1206
|
+
columnConfigs={columnConfigs} summaryConfigs={ltmplConfig.totalColumnConfigs}
|
|
1214
1207
|
maxSelectedRows={this.checkBoxUseful() ? 10000 : -1}
|
|
1215
|
-
selectedRows={selectedRows}
|
|
1216
|
-
columns={tableColumns}
|
|
1208
|
+
selectedRows={selectedRows} columns={tableColumns}
|
|
1217
1209
|
hiddenRowCodes={hiddenRowCodes}
|
|
1218
1210
|
pageInfo={{
|
|
1219
1211
|
pageNo: pageNo ? pageNo : 1,
|
|
@@ -1228,7 +1220,7 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
|
|
|
1228
1220
|
: ltmplConfig.subtotalXColumn
|
|
1229
1221
|
}
|
|
1230
1222
|
groupIColumns={ltmplConfig.groupIColumns}
|
|
1231
|
-
doSearch={
|
|
1223
|
+
doSearch={this.actTableDoSearch}
|
|
1232
1224
|
sortColumnData={sortColumnData}
|
|
1233
1225
|
/>) }
|
|
1234
1226
|
</Content>
|
|
@@ -1267,27 +1259,17 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
|
|
|
1267
1259
|
mainCode,
|
|
1268
1260
|
codes
|
|
1269
1261
|
);
|
|
1270
|
-
|
|
1262
|
+
this.actTableDoSearch(null);
|
|
1271
1263
|
};
|
|
1272
1264
|
|
|
1273
1265
|
|
|
1274
1266
|
render() {
|
|
1275
1267
|
let {
|
|
1276
|
-
queryKey,
|
|
1277
|
-
loading,
|
|
1278
|
-
blockMenuTreeDrawerOpen,
|
|
1279
|
-
recordCode,
|
|
1280
|
-
showRatmplSelector,
|
|
1268
|
+
queryKey, loading, blockMenuTreeDrawerOpen, recordCode, showRatmplSelector
|
|
1281
1269
|
} = this.state;
|
|
1282
1270
|
let {
|
|
1283
|
-
sourceId,
|
|
1284
|
-
|
|
1285
|
-
title,
|
|
1286
|
-
collapsible,
|
|
1287
|
-
initCollapse,
|
|
1288
|
-
tip,
|
|
1289
|
-
serverKey,
|
|
1290
|
-
mainCode,
|
|
1271
|
+
sourceId, ltmplConfig, title, collapsible, initCollapse,
|
|
1272
|
+
tip, serverKey, mainCode,
|
|
1291
1273
|
} = this.props;
|
|
1292
1274
|
if (!ltmplConfig || !sourceId) {
|
|
1293
1275
|
return (
|
|
@@ -1315,9 +1297,8 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
|
|
|
1315
1297
|
}
|
|
1316
1298
|
id={queryKey + ltmplConfig.id}
|
|
1317
1299
|
className={`hoverable`}
|
|
1318
|
-
|
|
1300
|
+
styles={{header:{ background: "#f2f4f5" },body:{ padding: "6px" }}}
|
|
1319
1301
|
loading={loading}
|
|
1320
|
-
bodyStyle={{ padding: "6px" }}
|
|
1321
1302
|
//暂时注释掉,后续要支持配置。
|
|
1322
1303
|
extra={this.renderHeaderButtons()}
|
|
1323
1304
|
>
|