aldehyde 0.2.234 → 0.2.236

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.
Files changed (102) hide show
  1. package/lib/controls/entity-select/popover-entity-select.d.ts.map +1 -1
  2. package/lib/controls/entity-select/popover-entity-select.js +3 -3
  3. package/lib/controls/entity-select/popover-entity-select.js.map +1 -1
  4. package/lib/controls/entry-control.d.ts.map +1 -1
  5. package/lib/controls/entry-control.js +6 -0
  6. package/lib/controls/entry-control.js.map +1 -1
  7. package/lib/controls/file-view/drawer-file-view.js +1 -1
  8. package/lib/controls/file-view/drawer-file-view.js.map +1 -1
  9. package/lib/controls/file-view/index.d.ts +1 -1
  10. package/lib/controls/file-view/index.d.ts.map +1 -1
  11. package/lib/controls/file-view/index.js +3 -3
  12. package/lib/controls/file-view/index.js.map +1 -1
  13. package/lib/controls/file-view/multi-file-view.d.ts +12 -0
  14. package/lib/controls/file-view/multi-file-view.d.ts.map +1 -0
  15. package/lib/controls/file-view/multi-file-view.js +27 -0
  16. package/lib/controls/file-view/multi-file-view.js.map +1 -0
  17. package/lib/controls/tree-select/tree-entity-select.d.ts.map +1 -1
  18. package/lib/controls/tree-select/tree-entity-select.js +0 -1
  19. package/lib/controls/tree-select/tree-entity-select.js.map +1 -1
  20. package/lib/controls/upload/index.d.ts.map +1 -1
  21. package/lib/controls/upload/index.js +3 -2
  22. package/lib/controls/upload/index.js.map +1 -1
  23. package/lib/controls/upload/mult-file-upload.d.ts +33 -0
  24. package/lib/controls/upload/mult-file-upload.d.ts.map +1 -0
  25. package/lib/controls/upload/mult-file-upload.js +181 -0
  26. package/lib/controls/upload/mult-file-upload.js.map +1 -0
  27. package/lib/controls/view-control.d.ts.map +1 -1
  28. package/lib/controls/view-control.js +5 -14
  29. package/lib/controls/view-control.js.map +1 -1
  30. package/lib/detail/view/act-dtmpl-view.d.ts.map +1 -1
  31. package/lib/detail/view/act-dtmpl-view.js.map +1 -1
  32. package/lib/detail/view/dtmpl-view.d.ts.map +1 -1
  33. package/lib/detail/view/dtmpl-view.js +0 -3
  34. package/lib/detail/view/dtmpl-view.js.map +1 -1
  35. package/lib/detail/view/tab-act-dtmpl-view.d.ts +66 -0
  36. package/lib/detail/view/tab-act-dtmpl-view.d.ts.map +1 -0
  37. package/lib/detail/view/tab-act-dtmpl-view.js +182 -0
  38. package/lib/detail/view/tab-act-dtmpl-view.js.map +1 -0
  39. package/lib/form/criteria-form.d.ts.map +1 -1
  40. package/lib/form/criteria-form.js +11 -3
  41. package/lib/form/criteria-form.js.map +1 -1
  42. package/lib/module/dtmpl-edit-card.d.ts.map +1 -1
  43. package/lib/module/dtmpl-edit-card.js +0 -1
  44. package/lib/module/dtmpl-edit-card.js.map +1 -1
  45. package/lib/routable/dtmpl-route.d.ts.map +1 -1
  46. package/lib/routable/dtmpl-route.js +2 -2
  47. package/lib/routable/dtmpl-route.js.map +1 -1
  48. package/lib/routable/ltmpl-route.d.ts.map +1 -1
  49. package/lib/routable/ltmpl-route.js +0 -4
  50. package/lib/routable/ltmpl-route.js.map +1 -1
  51. package/lib/table/act-table.d.ts +6 -1
  52. package/lib/table/act-table.d.ts.map +1 -1
  53. package/lib/table/act-table.js +47 -29
  54. package/lib/table/act-table.js.map +1 -1
  55. package/lib/table/column/column-builder.d.ts.map +1 -1
  56. package/lib/table/column/column-builder.js +98 -79
  57. package/lib/table/column/column-builder.js.map +1 -1
  58. package/lib/table/query-table.d.ts +3 -3
  59. package/lib/table/query-table.d.ts.map +1 -1
  60. package/lib/table/query-table.js +28 -9
  61. package/lib/table/query-table.js.map +1 -1
  62. package/lib/table/stat/restat.d.ts +1 -1
  63. package/lib/table/stat/restat.d.ts.map +1 -1
  64. package/lib/table/stat/restat.js +1 -1
  65. package/lib/table/stat/restat.js.map +1 -1
  66. package/lib/tmpl/control-type-supportor.d.ts.map +1 -1
  67. package/lib/tmpl/control-type-supportor.js +1 -0
  68. package/lib/tmpl/control-type-supportor.js.map +1 -1
  69. package/lib/tmpl/hcservice-v3.d.ts +3 -2
  70. package/lib/tmpl/hcservice-v3.d.ts.map +1 -1
  71. package/lib/tmpl/hcservice-v3.js +40 -21
  72. package/lib/tmpl/hcservice-v3.js.map +1 -1
  73. package/lib/tmpl/interface.d.ts +18 -0
  74. package/lib/tmpl/interface.d.ts.map +1 -1
  75. package/lib/tmpl/interface.js.map +1 -1
  76. package/lib/tree/tree-utils.js +1 -1
  77. package/lib/tree/tree-utils.js.map +1 -1
  78. package/package.json +2 -2
  79. package/src/aldehyde/controls/entity-select/popover-entity-select.tsx +4 -3
  80. package/src/aldehyde/controls/entry-control.tsx +6 -0
  81. package/src/aldehyde/controls/file-view/drawer-file-view.tsx +1 -1
  82. package/src/aldehyde/controls/file-view/index.tsx +4 -4
  83. package/src/aldehyde/controls/file-view/multi-file-view.tsx +43 -0
  84. package/src/aldehyde/controls/tree-select/tree-entity-select.tsx +0 -1
  85. package/src/aldehyde/controls/upload/index.tsx +8 -3
  86. package/src/aldehyde/controls/upload/mult-file-upload.tsx +216 -0
  87. package/src/aldehyde/controls/view-control.tsx +5 -14
  88. package/src/aldehyde/detail/view/act-dtmpl-view.tsx +0 -2
  89. package/src/aldehyde/detail/view/dtmpl-view.tsx +1 -4
  90. package/src/aldehyde/detail/view/tab-act-dtmpl-view.tsx +307 -0
  91. package/src/aldehyde/form/criteria-form.tsx +23 -3
  92. package/src/aldehyde/module/dtmpl-edit-card.tsx +0 -1
  93. package/src/aldehyde/routable/dtmpl-route.tsx +2 -1
  94. package/src/aldehyde/routable/ltmpl-route.tsx +1 -4
  95. package/src/aldehyde/table/act-table.tsx +72 -142
  96. package/src/aldehyde/table/column/column-builder.tsx +249 -251
  97. package/src/aldehyde/table/query-table.tsx +41 -11
  98. package/src/aldehyde/table/stat/restat.tsx +2 -3
  99. package/src/aldehyde/tmpl/control-type-supportor.tsx +1 -0
  100. package/src/aldehyde/tmpl/hcservice-v3.tsx +38 -22
  101. package/src/aldehyde/tmpl/interface.tsx +20 -0
  102. package/src/aldehyde/tree/tree-utils.tsx +1 -1
@@ -23,7 +23,7 @@ import EntryControl from "../controls/entry-control";
23
23
  import Action from "../controls/action";
24
24
  import CquickButton from "../controls/cquery/cquick-button";
25
25
  import { useLocale } from "../locale/useLocale";
26
- import { SearchOutlined } from "@ant-design/icons";
26
+ import {DownOutlined, LeftOutlined, RightOutlined, SearchOutlined, UpOutlined} from "@ant-design/icons";
27
27
  import { ProgramConfig } from "../index";
28
28
  import SelectCodeExport from "../controls/file-export/select-code-export";
29
29
 
@@ -80,7 +80,8 @@ const CriteriaForm: React.FC<CriteriaFormProps> = (props) => {
80
80
  drillingParams,
81
81
  columns,
82
82
  updrillButtonConfigs,
83
- innerParams
83
+ innerParams,
84
+ defShowCriteriaCount,
84
85
  } = ltmplConfig;
85
86
  const initialValues = {};
86
87
  const searchSubmit = (data) => {
@@ -96,9 +97,18 @@ const CriteriaForm: React.FC<CriteriaFormProps> = (props) => {
96
97
  // let currentDrillButton=null;
97
98
  const [currentDrillButton, setCurrentDrillButton] = useState(null);
98
99
  const [drillLoadings, setDrillLoadings] = useState<string>(null);
100
+ const [collapsible, setCollapsible] = useState<boolean>(false);
101
+ const [expanded, setExpanded] = useState<boolean>(false);
102
+
103
+ let collapseCriteria:CriteriaConfig[] =defShowCriteriaCount<=0?criterias:criterias.slice(0,defShowCriteriaCount);
104
+
105
+
99
106
 
100
107
  useEffect(() => {
101
108
  form.resetFields();
109
+ if(collapseCriteria.length<criterias.length){
110
+ setCollapsible(true);
111
+ }
102
112
  });
103
113
 
104
114
  let showQueryButton = buttons.includes("query") && doSearch;
@@ -431,10 +441,20 @@ const CriteriaForm: React.FC<CriteriaFormProps> = (props) => {
431
441
  {renderDrillDimension()}</>
432
442
  : null}
433
443
  {showQueryButton || (updrillButtonConfigs && updrillButtonConfigs.length > 0)
434
- ? renderCriteria(criterias)
444
+ ? renderCriteria(expanded?criterias:collapseCriteria)
435
445
  : null}
436
446
 
437
447
  <Space className="btns">
448
+ {collapsible ? (
449
+ expanded?<Button icon={<LeftOutlined />} type={"link"} onClick={()=>setExpanded(false)}>
450
+ {translate("${收起}")}
451
+ </Button>:
452
+ <Button icon={<RightOutlined />} type={"link"} onClick={()=>setExpanded(true)}>
453
+ {translate("${更多条件}")}
454
+ </Button>
455
+ ) : (
456
+ ""
457
+ )}
438
458
  {showQueryButton ? (
439
459
  <Button type="primary" htmlType="submit">
440
460
  {translate("${查询}")}
@@ -66,7 +66,6 @@ export default class DtmplEditCard extends React.PureComponent<
66
66
  await this.loadConfigData();
67
67
  } else if(prevProps.sourceId != this.props.sourceId || queryingCode!=code || !dtmplData ){
68
68
  //防止反复请求 code
69
- debugger
70
69
  if(code){
71
70
  await this.loadCodeData(dtmplConfig,code);
72
71
  }else{
@@ -5,6 +5,7 @@ import DtmplEdit from "../detail/edit/dtmpl-edit";
5
5
  import ActDtmplView from "../detail/view/act-dtmpl-view";
6
6
  import HcserviceV3 from "../tmpl/hcservice-v3";
7
7
  import withRouter from "./withroute";
8
+ import TabActDtmplView from "../detail/view/tab-act-dtmpl-view";
8
9
 
9
10
  export interface DtmplRouteProps extends RouterCompProps {
10
11
  layoutRootPath?: string;
@@ -136,7 +137,7 @@ class DtmplRoute extends React.Component<DtmplRouteProps, DtmplRoutePropsStat> {
136
137
  let versionId = params["versionId"];
137
138
  if (location.pathname.endsWith("detail-view")) {
138
139
  return (
139
- <ActDtmplView
140
+ <TabActDtmplView
140
141
  serverKey={null}
141
142
  goBackToLtmpl={codeSource ? undefined : this.goBackToLtmpl}
142
143
  goDtmpl={this.goDtmpl}
@@ -271,7 +271,7 @@ class LtmplRoute extends React.PureComponent<LtmplRouteProps, LtmplRouteState> {
271
271
  ),
272
272
  ...params_,
273
273
  };
274
- //params['sourceId'] = sourceId;
274
+
275
275
  const newfliter = Units.transQueryParamsToStr({...params});
276
276
  this.props.navigate(
277
277
  `${basePath}${this.computedLayoutPath}/${sourceId}/${this.pathMark()}?${newfliter}`,
@@ -290,9 +290,6 @@ class LtmplRoute extends React.PureComponent<LtmplRouteProps, LtmplRouteState> {
290
290
  }
291
291
  const {pageSize, pageNo} = this.state;
292
292
  params["pageNo"] = 1;
293
- // if (pageNo) {
294
- // params["pageNo"] = 1;
295
- // }
296
293
  if (pageSize) {
297
294
  params["pageSize"] = pageSize;
298
295
  }
@@ -1,46 +1,18 @@
1
1
  import React, { ReactNode } from "react";
2
2
  import {
3
- Button,
4
- Card,
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
- FundOutlined,
20
- LineChartOutlined,
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
- ActTableViewModel,
33
- ClassAddConfig,
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, 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;
@@ -111,8 +82,10 @@ interface ActTableStat {
111
82
  customButton?: CustomButton;
112
83
  customButtonData?: DtmplData[];
113
84
  showRatmplSelector?: boolean;
85
+ aggregateVO?: AggregateVO;
86
+ restatParams?: object;
114
87
  }
115
-
88
+ let serial_number = new Date().getTime();
116
89
  class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
117
90
  state = {
118
91
  //tableColumns: undefined,
@@ -135,6 +108,8 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
135
108
  customButtonData: undefined,
136
109
  customButton: undefined,
137
110
  showRatmplSelector: false,
111
+ aggregateVO: undefined,
112
+ restatParams: undefined,
138
113
  };
139
114
 
140
115
  static contextType = LocaleContext;
@@ -154,14 +129,8 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
154
129
  sortedColConfigs: ColumnConfig[]
155
130
  ) => {
156
131
  const {
157
- sourceId,
158
- criteriaData,
159
- ltmplConfig,
160
- mainCode,
161
- level,
162
- pageNo,
163
- pageSize,
164
- serverKey,
132
+ sourceId, criteriaData, ltmplConfig,
133
+ mainCode, level, pageNo, pageSize, serverKey,
165
134
  } = this.props;
166
135
 
167
136
  if (!ltmplConfig) {
@@ -230,14 +199,8 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
230
199
 
231
200
  if (!queryKey.sourceId || queryKey.sourceId == this.props.sourceId) {
232
201
  this.setState({
233
- disabledColIds,
234
- hiddenColIds: hiddenColIds_,
235
- hiddenRowCodes,
236
- sortedColConfigs,
237
- queryKey,
238
- showL2Chart: false,
239
- selectedRows: [],
240
- selectedDatas: [],
202
+ disabledColIds, hiddenColIds: hiddenColIds_, hiddenRowCodes,
203
+ sortedColConfigs, queryKey, showL2Chart: false, selectedRows: [], selectedDatas: [],
241
204
  viewModels:
242
205
  this.state.viewModels.length > 0 ? this.state.viewModels : ["table"],
243
206
  });
@@ -747,23 +710,12 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
747
710
 
748
711
  renderHeaderButtons = () => {
749
712
  let {
750
- hiddenColIds,
751
- viewModels,
752
- sortedColConfigs,
753
- disabledColIds,
754
- showL2Chart,
755
- showL2ActTable,
713
+ hiddenColIds, viewModels, sortedColConfigs, disabledColIds, showL2Chart,
714
+ showL2ActTable,restatParams,
756
715
  } = this.state;
757
716
  const {
758
- ltmplConfig,
759
- sourceId,
760
- doCreate,
761
- doSearch,
762
- menuId,
763
- funcMode,
764
- customCreatable,
765
- serverKey,
766
- readOnly,
717
+ ltmplConfig, sourceId, doCreate, doSearch, menuId,
718
+ funcMode, customCreatable, serverKey, readOnly,
767
719
  } = this.props;
768
720
  const { translate } = this.context;
769
721
  let { buttons } = ltmplConfig;
@@ -778,7 +730,7 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
778
730
  </Button>
779
731
  </Popover>
780
732
  ) : null}
781
- {buttons.includes("ratmplSelect") ? (
733
+ {buttons.includes("ratmplSelect") && !readOnly ? (
782
734
  <Button onClick={() => this.setState({ showRatmplSelector: true })}>
783
735
  {translate("${选择}")}
784
736
  </Button>
@@ -872,10 +824,15 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
872
824
  )}
873
825
  {buttons.includes("reStat") && !readOnly ? (
874
826
  <Restat
827
+ value={restatParams}
875
828
  serverKey={serverKey}
876
829
  fields={ltmplConfig.reStatParams}
877
830
  sourceId={sourceId}
878
- onfinish={() => doSearch(null)}
831
+ onfinish={(restatParams) => {
832
+ this.actTableDoSearch(null);
833
+ this.setState({ restatParams: restatParams });
834
+ }
835
+ }
879
836
  ></Restat>
880
837
  ) : (
881
838
  ""
@@ -934,7 +891,7 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
934
891
  className="hoverbig"
935
892
  title={translate("${刷新}")}
936
893
  onClick={() => {
937
- doSearch(null);
894
+ this.actTableDoSearch(null);
938
895
  }}
939
896
  >
940
897
  <ReloadOutlined />
@@ -988,9 +945,18 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
988
945
  }
989
946
  };
990
947
 
948
+ actTableDoSearch = (data: object) => {
949
+ let new_serial_number = new Date().getTime();
950
+ let { doSearch } = this.props;
951
+ if (doSearch && new_serial_number - serial_number > 3000) {
952
+ serial_number = new_serial_number;
953
+ doSearch({ ...data, serial_number });
954
+ }
955
+ }
956
+
991
957
  renderCriteriaForm = () => {
992
958
  let { loading, selectedRows, selectedDatas } = this.state;
993
- let { ltmplConfig, doSearch, criteriaData, serverKey } = this.props;
959
+ let { ltmplConfig, criteriaData, serverKey } = this.props;
994
960
  return (
995
961
  <CriteriaForm
996
962
  serverKey={serverKey}
@@ -1004,10 +970,20 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
1004
970
  doAction={this.doSelectedAction}
1005
971
  doDelete={this.doDelete}
1006
972
  doJump={this.doSelectedJump}
1007
- doSearch={doSearch}
973
+ doSearch={this.actTableDoSearch}
1008
974
  />
1009
975
  );
1010
976
  };
977
+ //暂时无用
978
+ // queryTotal = async () => {
979
+ // const { queryKey} = this.state;
980
+ // const { serverKey }=this.props;
981
+ // let aggregateVO:AggregateVO = await HcserviceV3.requestQueryAggregates(serverKey, queryKey.key);
982
+ // this.setState({
983
+ // aggregateVO,
984
+ // });
985
+ // return aggregateVO;
986
+ // };
1011
987
 
1012
988
  getLtreeEntitySelectCriteria=()=>{
1013
989
  let {ltmplConfig}=this.props
@@ -1024,32 +1000,14 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
1024
1000
 
1025
1001
  renderContent = () => {
1026
1002
  let {
1027
- queryKey,
1028
- loading,
1029
- selectedRows,
1030
- hiddenRowCodes,
1031
- viewModels,
1032
- sortedColConfigs,
1033
- hiddenColIds,
1034
- showL2ActTable,
1003
+ queryKey, loading, selectedRows, hiddenRowCodes, viewModels, sortedColConfigs, hiddenColIds, showL2ActTable,
1004
+ aggregateVO,
1035
1005
  } = this.state;
1036
1006
  let {
1037
- sourceId,
1038
- ltmplConfig,
1039
- funcMode,
1040
- title,
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
1007
+ sourceId, ltmplConfig, funcMode,
1008
+ title, collapsible, pageSize,
1009
+ pageNo, onChangePage, serverKey, criteriaData,
1010
+ showView, doEdit, doRAction, customEditable, readOnly,tableType
1053
1011
  } = this.props;
1054
1012
  const { translate } = this.context;
1055
1013
 
@@ -1149,23 +1107,13 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
1149
1107
  : typeof title == "string"
1150
1108
  ? translate("${" + title + "}")
1151
1109
  : title}</p>
1152
- {/*{translate("${" + (title ? title : ltmplConfig.title) + "}")}*/}
1153
- {/*<div style={{maxWidth:"600px",position:"relative",overflow:"auto",float: "left",marginTop:"-18px",marginLeft:"20px"}}>*/}
1154
- {/*<Space size={"large"} style={{}}>*/}
1155
- {/* <Statistic title="Active Users" value={112893} />*/}
1156
- {/*<Statistic title="Active Users" value={112893} /><Statistic title="Active Users" value={112893} />*/}
1157
- {/*<Statistic title="Active Users" value={112893} />*/}
1158
- {/*<Statistic title="Active Users" value={112893} />*/}
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>*/}
1110
+ <Space size={"large"} style={{marginLeft:50}}>
1111
+ {aggregateVO && aggregateVO.aggregates?
1112
+ aggregateVO.aggregates.map(av=>{
1113
+ return <Statistic title={av.fieldTitle} value={av.value} />
1114
+ }):null
1115
+ }
1116
+ </Space>
1169
1117
  <p className="fr" style={{marginBottom:"4px"}}>{this.renderHeaderButtons()}</p>
1170
1118
  </h3>
1171
1119
  </span>
@@ -1179,12 +1127,6 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
1179
1127
  theme={"light"}
1180
1128
  style={{
1181
1129
  paddingRight:'0px'
1182
- // height: "90vh",
1183
- // position: "fixed",
1184
- // left: 0,
1185
- // top: 126,
1186
- // bottom: 0,
1187
- // marginLeft: 210,
1188
1130
  }}
1189
1131
  >{ltreeEntitySelect?
1190
1132
  <EntryControl width={300-10} value={criteriaData[ltreeEntitySelect?.id]} fieldConfig={ltreeEntitySelect}></EntryControl>:null}
@@ -1204,16 +1146,15 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
1204
1146
  leftFixedCols={ltmplConfig.leftFixedCols}
1205
1147
  />:
1206
1148
  <QueryTable
1149
+ // queryTotal={this.queryTotal}
1207
1150
  tableProps={{scrollY:ltmplConfig.scrollY,clickDisplayTotal:!ltmplConfig.directShowTotal}}
1208
1151
  serverKey={serverKey}
1209
1152
  onChangePage={onChangePage}
1210
1153
  viewModels={viewModels}
1211
1154
  primaryColumn={ltmplConfig.primaryColumn}
1212
- columnConfigs={columnConfigs}
1213
- summaryConfigs={ltmplConfig.totalColumnConfigs}
1155
+ columnConfigs={columnConfigs} summaryConfigs={ltmplConfig.totalColumnConfigs}
1214
1156
  maxSelectedRows={this.checkBoxUseful() ? 10000 : -1}
1215
- selectedRows={selectedRows}
1216
- columns={tableColumns}
1157
+ selectedRows={selectedRows} columns={tableColumns}
1217
1158
  hiddenRowCodes={hiddenRowCodes}
1218
1159
  pageInfo={{
1219
1160
  pageNo: pageNo ? pageNo : 1,
@@ -1228,7 +1169,7 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
1228
1169
  : ltmplConfig.subtotalXColumn
1229
1170
  }
1230
1171
  groupIColumns={ltmplConfig.groupIColumns}
1231
- doSearch={doSearch}
1172
+ doSearch={this.actTableDoSearch}
1232
1173
  sortColumnData={sortColumnData}
1233
1174
  />) }
1234
1175
  </Content>
@@ -1267,27 +1208,17 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
1267
1208
  mainCode,
1268
1209
  codes
1269
1210
  );
1270
- doSearch(null);
1211
+ this.actTableDoSearch(null);
1271
1212
  };
1272
1213
 
1273
1214
 
1274
1215
  render() {
1275
1216
  let {
1276
- queryKey,
1277
- loading,
1278
- blockMenuTreeDrawerOpen,
1279
- recordCode,
1280
- showRatmplSelector,
1217
+ queryKey, loading, blockMenuTreeDrawerOpen, recordCode, showRatmplSelector,
1281
1218
  } = this.state;
1282
1219
  let {
1283
- sourceId,
1284
- ltmplConfig,
1285
- title,
1286
- collapsible,
1287
- initCollapse,
1288
- tip,
1289
- serverKey,
1290
- mainCode,
1220
+ sourceId, ltmplConfig, title, collapsible, initCollapse,
1221
+ tip, serverKey, mainCode,
1291
1222
  } = this.props;
1292
1223
  if (!ltmplConfig || !sourceId) {
1293
1224
  return (
@@ -1315,9 +1246,8 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
1315
1246
  }
1316
1247
  id={queryKey + ltmplConfig.id}
1317
1248
  className={`hoverable`}
1318
- headStyle={{ background: "#f2f4f5" }}
1249
+ styles={{header:{ background: "#f2f4f5" },body:{ padding: "6px" }}}
1319
1250
  loading={loading}
1320
- bodyStyle={{ padding: "6px" }}
1321
1251
  //暂时注释掉,后续要支持配置。
1322
1252
  extra={this.renderHeaderButtons()}
1323
1253
  >