aldehyde 0.2.228 → 0.2.231
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/entity-select/popover-entity-select.d.ts.map +1 -1
- package/lib/controls/entity-select/popover-entity-select.js +12 -11
- package/lib/controls/entity-select/popover-entity-select.js.map +1 -1
- package/lib/controls/entry-control.d.ts.map +1 -1
- package/lib/controls/entry-control.js +8 -0
- package/lib/controls/entry-control.js.map +1 -1
- package/lib/controls/tree-select/tree-entity-select.d.ts +12 -0
- package/lib/controls/tree-select/tree-entity-select.d.ts.map +1 -0
- package/lib/controls/tree-select/tree-entity-select.js +86 -0
- package/lib/controls/tree-select/tree-entity-select.js.map +1 -0
- package/lib/layout/MainPage.js +1 -1
- package/lib/module/dtmpl-edit-page.d.ts +1 -0
- package/lib/module/dtmpl-edit-page.d.ts.map +1 -1
- package/lib/module/dtmpl-edit-page.js.map +1 -1
- package/lib/table/act-table.d.ts.map +1 -1
- package/lib/table/act-table.js +45 -25
- package/lib/table/act-table.js.map +1 -1
- package/lib/table/column/column-builder.d.ts.map +1 -1
- package/lib/table/column/column-builder.js +3 -3
- package/lib/table/column/column-builder.js.map +1 -1
- package/lib/table/column/summary-builder.d.ts +39 -0
- package/lib/table/column/summary-builder.d.ts.map +1 -0
- package/lib/table/column/summary-builder.js +508 -0
- package/lib/table/column/summary-builder.js.map +1 -0
- package/lib/table/index.css +2 -2
- package/lib/table/query-table.d.ts +0 -20
- package/lib/table/query-table.d.ts.map +1 -1
- package/lib/table/query-table.js +14 -598
- package/lib/table/query-table.js.map +1 -1
- package/lib/tmpl/control-type-supportor.d.ts.map +1 -1
- package/lib/tmpl/control-type-supportor.js +6 -1
- package/lib/tmpl/control-type-supportor.js.map +1 -1
- package/lib/tmpl/interface.d.ts +0 -6
- package/lib/tmpl/interface.d.ts.map +1 -1
- package/lib/tmpl/interface.js.map +1 -1
- package/lib/tree/tmpl-tree.d.ts +9 -4
- package/lib/tree/tmpl-tree.d.ts.map +1 -1
- package/lib/tree/tmpl-tree.js +70 -94
- package/lib/tree/tmpl-tree.js.map +1 -1
- package/lib/tree/tree-node.js +1 -1
- package/lib/tree/tree-utils.d.ts +19 -0
- package/lib/tree/tree-utils.d.ts.map +1 -1
- package/lib/tree/tree-utils.js +128 -0
- package/lib/tree/tree-utils.js.map +1 -1
- package/package.json +1 -1
- package/src/aldehyde/controls/entity-select/popover-entity-select.tsx +9 -12
- package/src/aldehyde/controls/entry-control.tsx +20 -0
- package/src/aldehyde/controls/tree-select/tree-entity-select.tsx +113 -0
- package/src/aldehyde/layout/MainPage.tsx +1 -1
- package/src/aldehyde/module/dtmpl-edit-page.tsx +1 -0
- package/src/aldehyde/table/act-table.tsx +114 -69
- package/src/aldehyde/table/column/column-builder.tsx +4 -3
- package/src/aldehyde/table/column/summary-builder.tsx +713 -0
- package/src/aldehyde/table/index.css +2 -2
- package/src/aldehyde/table/query-table.tsx +16 -837
- package/src/aldehyde/tmpl/control-type-supportor.tsx +8 -1
- package/src/aldehyde/tmpl/interface.tsx +0 -2
- package/src/aldehyde/tree/tmpl-tree.tsx +72 -89
- package/src/aldehyde/tree/tree-node.tsx +1 -1
- package/src/aldehyde/tree/tree-utils.tsx +138 -0
package/package.json
CHANGED
|
@@ -132,26 +132,24 @@ export default class PopoverEntitySelect extends React.PureComponent<
|
|
|
132
132
|
return (
|
|
133
133
|
<>
|
|
134
134
|
<Popover
|
|
135
|
-
|
|
135
|
+
//classNames={{ root: "-popover" }}
|
|
136
136
|
placement="bottom"
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
maxWidth: "calc(100vw -
|
|
137
|
+
color={"#f0f0f0"}
|
|
138
|
+
styles={{root:{
|
|
139
|
+
maxWidth: "calc(100vw - 20vw)",
|
|
140
140
|
maxHeight: "calc(100vh - 50px)",
|
|
141
|
-
}}
|
|
142
|
-
|
|
143
|
-
// getPopupContainer={(triggerNode) => {
|
|
144
|
-
// return triggerNode.parentNode;}}
|
|
141
|
+
},body:{ padding: "1px"}}}
|
|
142
|
+
|
|
145
143
|
content={
|
|
146
144
|
<div
|
|
147
145
|
style={{
|
|
148
|
-
height:
|
|
146
|
+
height: 350,
|
|
149
147
|
backgroundColor: "#fafafa",
|
|
150
148
|
overflow: "auto",
|
|
151
149
|
borderStyle: "solid",
|
|
152
150
|
borderRadius: "6px",
|
|
153
|
-
borderWidth: "
|
|
154
|
-
|
|
151
|
+
borderWidth: "2px",
|
|
152
|
+
borderColor: "#d9d9d9",
|
|
155
153
|
}}
|
|
156
154
|
>
|
|
157
155
|
<SelectTable
|
|
@@ -174,7 +172,6 @@ export default class PopoverEntitySelect extends React.PureComponent<
|
|
|
174
172
|
placeholder={translate("${请选择}${" + fieldConfig.title + "}")}
|
|
175
173
|
notFoundContent={translate("${请选择}")}
|
|
176
174
|
allowClear={true}
|
|
177
|
-
showArrow={true}
|
|
178
175
|
suffixIcon={<SearchOutlined />}
|
|
179
176
|
dropdownStyle={{ display: "none" }}
|
|
180
177
|
onChange={(value) => {
|
|
@@ -18,6 +18,7 @@ import { LockOutlined } from "@ant-design/icons";
|
|
|
18
18
|
import DatePicker from "./date-picker";
|
|
19
19
|
import Select from "./select";
|
|
20
20
|
import FieldHistory from "./field-history";
|
|
21
|
+
import TreeEntitySelect from "./tree-select/tree-entity-select";
|
|
21
22
|
|
|
22
23
|
// const CheckboxGroup = Checkbox.Group;
|
|
23
24
|
const RadioGroup = Radio.Group;
|
|
@@ -304,6 +305,7 @@ function renderControl(
|
|
|
304
305
|
);
|
|
305
306
|
break;
|
|
306
307
|
case "relselectvalue":
|
|
308
|
+
case "entity-select-value":
|
|
307
309
|
entryControl = (
|
|
308
310
|
<EntitySelect valueOnly={true}
|
|
309
311
|
baseCriteria={fieldConfig.baseCriteria}
|
|
@@ -328,6 +330,24 @@ function renderControl(
|
|
|
328
330
|
/>
|
|
329
331
|
);
|
|
330
332
|
break;
|
|
333
|
+
case "tree-entity-select":
|
|
334
|
+
entryControl = (
|
|
335
|
+
<TreeEntitySelect
|
|
336
|
+
baseCriteria={fieldConfig.baseCriteria}
|
|
337
|
+
maxSelected={max ? parseInt(max) : undefined}
|
|
338
|
+
{...controlProps}
|
|
339
|
+
/>
|
|
340
|
+
);
|
|
341
|
+
break;
|
|
342
|
+
case "tree-entity-select-value":
|
|
343
|
+
entryControl = (
|
|
344
|
+
<TreeEntitySelect valueOnly={true}
|
|
345
|
+
baseCriteria={fieldConfig.baseCriteria}
|
|
346
|
+
maxSelected={max ? parseInt(max) : undefined}
|
|
347
|
+
{...controlProps}
|
|
348
|
+
/>
|
|
349
|
+
);
|
|
350
|
+
break;
|
|
331
351
|
case "progress":
|
|
332
352
|
entryControl = <Progress {...controlProps}></Progress>;
|
|
333
353
|
break;
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
import React, {useEffect, useState} from "react";
|
|
2
|
+
import {Card, Layout, TreeSelect, Typography} from "antd";
|
|
3
|
+
import TmplTree from "../../tree/tmpl-tree";
|
|
4
|
+
import TreeUtils, { TtmplNodeConfig } from "../../tree/tree-utils";
|
|
5
|
+
import {EControlProps, TtmplConfig} from "../../tmpl/interface";
|
|
6
|
+
import {DtmplEditCard, DtmplViewCard, HydrocarbonService} from "../../index";
|
|
7
|
+
import HcserviceV3 from "../../tmpl/hcservice-v3";
|
|
8
|
+
import { LocaleContext } from "../../locale/LocaleProvider";
|
|
9
|
+
import HCDataSource from "../../tmpl/hc-data-source";
|
|
10
|
+
import ActTree from "../../tree/act-tree";
|
|
11
|
+
|
|
12
|
+
|
|
13
|
+
interface TreeEntitySelectProps extends EControlProps {
|
|
14
|
+
maxSelected?: number;
|
|
15
|
+
onEntityClick?: (code: string) => void;
|
|
16
|
+
baseCriteria: object;
|
|
17
|
+
valueOnly?:boolean;
|
|
18
|
+
treeOpen?:boolean
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
// interface SelectTreeState {
|
|
22
|
+
// ttmplNodeConfig?: TtmplNodeConfig;
|
|
23
|
+
// showEdit?: boolean;
|
|
24
|
+
// showView?: boolean;
|
|
25
|
+
// recordCode?: string;
|
|
26
|
+
// mainCode?: string;
|
|
27
|
+
// sourceId?: string;
|
|
28
|
+
// cardtitle?: string;
|
|
29
|
+
// addTmplId?: string;
|
|
30
|
+
// }
|
|
31
|
+
|
|
32
|
+
const TreeEntitySelect=(props:TreeEntitySelectProps)=> {
|
|
33
|
+
|
|
34
|
+
const {fieldConfig,serverKey,value,treeOpen,valueOnly}=props
|
|
35
|
+
//const [ttmplNodeConfig, setTtmplNodeConfig] = useState<TtmplConfig>(undefined);
|
|
36
|
+
const [ttmplNodeConfig, setTtmplNodeConfig] = useState<TtmplNodeConfig>(undefined);
|
|
37
|
+
const [expandedKeys,setExpandedKeys]=useState(undefined);
|
|
38
|
+
const [treeData,setTreeData] =useState([]);
|
|
39
|
+
const [treeLoadedKeys,setTreeLoadedKeys] =useState([]);
|
|
40
|
+
|
|
41
|
+
useEffect( () => {
|
|
42
|
+
const getttmplConfig= async () =>{
|
|
43
|
+
let ttmplConfig= await HCDataSource.requestTtmplConfig(
|
|
44
|
+
serverKey,
|
|
45
|
+
fieldConfig.id);
|
|
46
|
+
let ttmplNodeConfig = await TreeUtils.initTtmplNodeConfig(ttmplConfig);
|
|
47
|
+
setTtmplNodeConfig(ttmplNodeConfig);
|
|
48
|
+
loadRootNodeData(ttmplNodeConfig);
|
|
49
|
+
}
|
|
50
|
+
getttmplConfig();
|
|
51
|
+
const loadRootNodeData = async (ttmplNodeConfig) => {
|
|
52
|
+
const data=await TreeUtils.loadRootNodeData(ttmplNodeConfig);
|
|
53
|
+
setTreeData(data);
|
|
54
|
+
}
|
|
55
|
+
|
|
56
|
+
}, [fieldConfig]);
|
|
57
|
+
|
|
58
|
+
const loadData=async (node)=>{
|
|
59
|
+
let v = await TreeUtils.reloadData(node.code,ttmplNodeConfig,treeData,expandedKeys);
|
|
60
|
+
setTreeData(v.data);
|
|
61
|
+
setExpandedKeys(v.expandedKeys);
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
const onTreeExpand=async (expandedKeys)=>{
|
|
65
|
+
|
|
66
|
+
setExpandedKeys(expandedKeys);
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
const onChange=async (value, label, extra)=>{
|
|
70
|
+
|
|
71
|
+
// let nodes= TreeUtils.getNodesOfArrayNode(treeData,[value]);
|
|
72
|
+
let nodes= TreeUtils.getNodesOfKey({children:treeData},[value]);
|
|
73
|
+
let values:string[]=[];
|
|
74
|
+
if(nodes){
|
|
75
|
+
debugger
|
|
76
|
+
nodes.forEach(n=>{
|
|
77
|
+
if(valueOnly){
|
|
78
|
+
values.push(n.name)
|
|
79
|
+
}else{
|
|
80
|
+
values.push(n.code+"@R@"+n.name)
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
})
|
|
84
|
+
}
|
|
85
|
+
if(props.onChange){
|
|
86
|
+
props.onChange(values);
|
|
87
|
+
}
|
|
88
|
+
console.log(nodes)
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
function getValue() {
|
|
92
|
+
if(value){
|
|
93
|
+
//获取checkkey
|
|
94
|
+
let codes:string[]=[];
|
|
95
|
+
value.forEach(c=>{
|
|
96
|
+
codes.push(c.split("@R@")[0]) ;
|
|
97
|
+
})
|
|
98
|
+
return TreeUtils.getNodeKeys(treeData,codes);
|
|
99
|
+
}
|
|
100
|
+
return undefined;
|
|
101
|
+
}
|
|
102
|
+
|
|
103
|
+
return <TreeSelect open ={treeOpen} allowClear value={getValue()}
|
|
104
|
+
onChange={onChange}
|
|
105
|
+
style={{width:'180px'}}
|
|
106
|
+
treeExpandedKeys={expandedKeys}
|
|
107
|
+
treeData={treeData}
|
|
108
|
+
loadData={loadData}
|
|
109
|
+
onTreeExpand={onTreeExpand}/>
|
|
110
|
+
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export default TreeEntitySelect;
|
|
@@ -312,7 +312,7 @@ class MainPage extends React.PureComponent<MainPageProps, MainPageState> {
|
|
|
312
312
|
<Header toggle={this.toggle} {...this.state} />
|
|
313
313
|
<Content
|
|
314
314
|
style={{
|
|
315
|
-
margin: "
|
|
315
|
+
margin: "12px 16px 0",
|
|
316
316
|
overflow: "initial",
|
|
317
317
|
minHeight: "calc(100vh)",
|
|
318
318
|
minWidth: 760,
|
|
@@ -11,11 +11,11 @@ import {
|
|
|
11
11
|
Drawer,
|
|
12
12
|
Modal,
|
|
13
13
|
Tooltip,
|
|
14
|
-
message,
|
|
14
|
+
message, Statistic, Layout,
|
|
15
15
|
} from "antd";
|
|
16
16
|
import Table from "./control-table-x-axis-wrapper";
|
|
17
17
|
import {
|
|
18
|
-
DownloadOutlined,
|
|
18
|
+
DownloadOutlined,SettingOutlined,
|
|
19
19
|
FundOutlined,
|
|
20
20
|
LineChartOutlined,
|
|
21
21
|
PlusCircleOutlined,
|
|
@@ -59,7 +59,9 @@ import BlockMenuTreeDrawer from "../module/block-menu-tree-drawer";
|
|
|
59
59
|
import ModelSelectTable from "./../table/modal-select-table";
|
|
60
60
|
import ColumnBuilder from "./column/column-builder";
|
|
61
61
|
import ReportTable from "./report-table";
|
|
62
|
+
import EntryControl from "../controls/entry-control";
|
|
62
63
|
|
|
64
|
+
const { Content, Sider } = Layout;
|
|
63
65
|
type Level = "l1" | "l2";
|
|
64
66
|
|
|
65
67
|
const defaultDisabledColIds: string[] = ["20000", "10000"];
|
|
@@ -940,6 +942,17 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
|
|
|
940
942
|
) : (
|
|
941
943
|
""
|
|
942
944
|
)}
|
|
945
|
+
<Tooltip title={translate("${常用配置}")}>
|
|
946
|
+
<Button
|
|
947
|
+
className="hoverbig"
|
|
948
|
+
onClick={() => {
|
|
949
|
+
//doSearch(null);
|
|
950
|
+
}}
|
|
951
|
+
>
|
|
952
|
+
<SettingOutlined />
|
|
953
|
+
</Button>
|
|
954
|
+
</Tooltip>
|
|
955
|
+
|
|
943
956
|
</Space>
|
|
944
957
|
</>
|
|
945
958
|
);
|
|
@@ -1102,75 +1115,110 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
|
|
|
1102
1115
|
""
|
|
1103
1116
|
)}
|
|
1104
1117
|
<div className="actTable">
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1118
|
+
<Row>
|
|
1119
|
+
<Col span={24}>
|
|
1120
|
+
{funcMode == "complete" || funcMode == "common" ? (
|
|
1121
|
+
collapsible ? null : (
|
|
1122
|
+
<span>
|
|
1108
1123
|
{ltmplConfig.header ? (
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1124
|
+
<div
|
|
1125
|
+
style={{ padding: "6px" }}
|
|
1126
|
+
dangerouslySetInnerHTML={{ __html: ltmplConfig.header }}
|
|
1127
|
+
></div>
|
|
1113
1128
|
) : null}
|
|
1114
|
-
|
|
1129
|
+
<h3 >
|
|
1115
1130
|
{" "}
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1131
|
+
<p style={{position:"relative",float: "left",marginBottom:"4px"}}> {!title
|
|
1132
|
+
? translate("${" + ltmplConfig.title + "}")
|
|
1133
|
+
: typeof title == "string"
|
|
1134
|
+
? translate("${" + title + "}")
|
|
1135
|
+
: title}</p>
|
|
1136
|
+
{/*{translate("${" + (title ? title : ltmplConfig.title) + "}")}*/}
|
|
1137
|
+
{/*<div style={{maxWidth:"600px",position:"relative",overflow:"auto",float: "left",marginTop:"-18px",marginLeft:"20px"}}>*/}
|
|
1138
|
+
{/*<Space size={"large"} style={{}}>*/}
|
|
1139
|
+
{/* <Statistic title="Active Users" value={112893} />*/}
|
|
1140
|
+
{/*<Statistic title="Active Users" value={112893} /><Statistic title="Active Users" value={112893} />*/}
|
|
1141
|
+
{/*<Statistic title="Active Users" value={112893} />*/}
|
|
1142
|
+
{/*<Statistic title="Active Users" value={112893} />*/}
|
|
1143
|
+
{/*<Statistic title="Active Users" value={112893} />*/}
|
|
1144
|
+
{/*<Statistic title="Active Users" value={112893} />*/}
|
|
1145
|
+
{/*<Statistic title="Active Users" value={112893} /><Statistic title="Active Users" value={112893} />*/}
|
|
1146
|
+
{/* <Statistic title="Active Users" value={112893} />*/}
|
|
1147
|
+
{/* <Statistic title="Active Users" value={112893} />*/}
|
|
1148
|
+
{/* <Statistic title="Active Users" value={112893} />*/}
|
|
1149
|
+
{/* <Statistic title="Active Users" value={112893} />*/}
|
|
1150
|
+
{/* <Statistic title="Active Users" value={112893} />*/}
|
|
1151
|
+
{/* <Statistic title="Active Users" value={112893} />*/}
|
|
1152
|
+
{/*</Space></div>*/}
|
|
1153
|
+
<p className="fr" style={{marginBottom:"4px"}}>{this.renderHeaderButtons()}</p>
|
|
1123
1154
|
</h3>
|
|
1124
1155
|
</span>
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1156
|
+
)
|
|
1157
|
+
) : null}
|
|
1158
|
+
</Col>
|
|
1159
|
+
</Row>
|
|
1160
|
+
{(<Row><Col span={24}><Layout hasSider style={{ backgroundColor: "#fff" }}>
|
|
1161
|
+
<Sider
|
|
1162
|
+
width={0}
|
|
1163
|
+
theme={"light"}
|
|
1164
|
+
style={{
|
|
1165
|
+
paddingRight:'0px'
|
|
1166
|
+
// height: "90vh",
|
|
1167
|
+
// position: "fixed",
|
|
1168
|
+
// left: 0,
|
|
1169
|
+
// top: 126,
|
|
1170
|
+
// bottom: 0,
|
|
1171
|
+
// marginLeft: 210,
|
|
1172
|
+
}}
|
|
1173
|
+
>
|
|
1174
|
+
{/*<EntryControl fieldConfig={{id:"366429642427244544",controlType:"tree-entity-select"}}></EntryControl>*/}
|
|
1175
|
+
</Sider>
|
|
1176
|
+
<Layout style={{ backgroundColor: "#fff" }}>
|
|
1177
|
+
<Content style={{ overflow: "initial" }}>
|
|
1178
|
+
{displayCriteriaCard ? this.renderCriteriaForm() : null}
|
|
1179
|
+
{ loading ? (
|
|
1180
|
+
<Table loading={loading}></Table>
|
|
1181
|
+
) : (tableType =="report"?<ReportTable
|
|
1182
|
+
tableProps={{scrollY:ltmplConfig.scrollY,clickDisplayTotal:!ltmplConfig.directShowTotal}}
|
|
1183
|
+
serverKey={serverKey} hiddenColIds={hiddenColIds}
|
|
1184
|
+
maxSelectedRows={this.checkBoxUseful() ? 1000 : -1}
|
|
1185
|
+
columns={tableColumns}
|
|
1186
|
+
selectedRows={selectedRows} queryKey={queryKey}
|
|
1187
|
+
onChangeRowSelection={this.changeRowSelection}
|
|
1188
|
+
leftFixedCols={ltmplConfig.leftFixedCols}
|
|
1189
|
+
/>:
|
|
1190
|
+
<QueryTable
|
|
1191
|
+
tableProps={{scrollY:ltmplConfig.scrollY,clickDisplayTotal:!ltmplConfig.directShowTotal}}
|
|
1192
|
+
serverKey={serverKey}
|
|
1193
|
+
onChangePage={onChangePage}
|
|
1194
|
+
viewModels={viewModels}
|
|
1195
|
+
primaryColumn={ltmplConfig.primaryColumn}
|
|
1196
|
+
columnConfigs={columnConfigs}
|
|
1197
|
+
summaryConfigs={ltmplConfig.totalColumnConfigs}
|
|
1198
|
+
maxSelectedRows={this.checkBoxUseful() ? 10000 : -1}
|
|
1199
|
+
selectedRows={selectedRows}
|
|
1200
|
+
columns={tableColumns}
|
|
1201
|
+
hiddenRowCodes={hiddenRowCodes}
|
|
1202
|
+
pageInfo={{
|
|
1203
|
+
pageNo: pageNo ? pageNo : 1,
|
|
1204
|
+
pageSize: pageSize ? pageSize : ltmplConfig.defaultPageSize,
|
|
1205
|
+
}}
|
|
1206
|
+
queryKey={queryKey}
|
|
1207
|
+
onChangeRowSelection={this.changeRowSelection}
|
|
1208
|
+
subtotalXColumn={
|
|
1209
|
+
ltmplConfig.subtotalXColumn == null ||
|
|
1210
|
+
ltmplConfig.subtotalXColumn.length <= 0
|
|
1211
|
+
? null
|
|
1212
|
+
: ltmplConfig.subtotalXColumn
|
|
1213
|
+
}
|
|
1214
|
+
groupIColumns={ltmplConfig.groupIColumns}
|
|
1215
|
+
doSearch={doSearch}
|
|
1216
|
+
sortColumnData={sortColumnData}
|
|
1217
|
+
/>) }
|
|
1218
|
+
</Content>
|
|
1219
|
+
</Layout>
|
|
1220
|
+
</Layout></Col></Row>
|
|
1221
|
+
)}
|
|
1174
1222
|
{/*此处放页脚*/}
|
|
1175
1223
|
{ltmplConfig.footer ? (
|
|
1176
1224
|
<div
|
|
@@ -1207,9 +1255,6 @@ class ActTable extends React.PureComponent<ActTableProps, ActTableStat> {
|
|
|
1207
1255
|
};
|
|
1208
1256
|
|
|
1209
1257
|
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
1258
|
render() {
|
|
1214
1259
|
let {
|
|
1215
1260
|
queryKey,
|
|
@@ -133,7 +133,7 @@ export default {
|
|
|
133
133
|
}
|
|
134
134
|
column["render"] = (text, record) => {
|
|
135
135
|
return (
|
|
136
|
-
<div className={record['dataType']?record['dataType']=="小计"?"xiaoji":'
|
|
136
|
+
<div className={record['dataType']?record['dataType']=="小计"?"xiaoji":'heji':""}>
|
|
137
137
|
<ViewControl
|
|
138
138
|
serverKey={serverKey}
|
|
139
139
|
fieldConfig={item}
|
|
@@ -244,7 +244,8 @@ export default {
|
|
|
244
244
|
column["width"] = item.colWidth ? item.colWidth : 50;
|
|
245
245
|
column["title"] = translate("${序号}");
|
|
246
246
|
column["align"] = item.valueAlign ? item.valueAlign : "center";
|
|
247
|
-
column["render"] = (text, record, index) =>
|
|
247
|
+
column["render"] = (text, record, index) =>
|
|
248
|
+
<label className={record['dataType']?record['dataType']=="小计"?"xiaoji":'heji':""}>{record[item.id]}</label>;
|
|
248
249
|
item["sorter"] = undefined;
|
|
249
250
|
} else if (item.id == "10000") {
|
|
250
251
|
this.setSortProps(column,item,translate);
|
|
@@ -271,7 +272,7 @@ export default {
|
|
|
271
272
|
}
|
|
272
273
|
column["render"] = (text, record) => {
|
|
273
274
|
return (
|
|
274
|
-
<div className={record['dataType']?record['dataType']=="小计"?"xiaoji":'
|
|
275
|
+
<div className={record['dataType']?record['dataType']=="小计"?"xiaoji":'heji':""}>
|
|
275
276
|
<ViewControl
|
|
276
277
|
// serverKey={serverKey}
|
|
277
278
|
fieldConfig={item}
|