aldehyde 0.0.1
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/LICENSE +201 -0
- package/README.md +1 -0
- package/dist/163.js +2 -0
- package/dist/163.js.LICENSE.txt +43 -0
- package/dist/41.js +1 -0
- package/dist/aldehyde.js +2 -0
- package/dist/aldehyde.js.LICENSE.txt +122 -0
- package/dist/chemstruc-graph.js +1 -0
- package/dist/css/163-24392163d3c7b54ea806.css +11 -0
- package/dist/css/290-5e8e152675ab7d201c00.css +886 -0
- package/dist/css/chemstruc-graph-87868f791bf92fb80db9.css +29 -0
- package/dist/css/main-2e6725ec1b56da516cee.css +256 -0
- package/dist/html-editor-draft.js +2 -0
- package/dist/html-editor-draft.js.LICENSE.txt +5 -0
- package/dist/images/logo-06f6a5d8.png +0 -0
- package/dist/index.html +4 -0
- package/dist/signature.js +2 -0
- package/dist/signature.js.LICENSE.txt +17 -0
- package/package.json +180 -0
- package/src/components/chart/antd/Chart.js +32 -0
- package/src/components/chart/antd/Chart10000.js +90 -0
- package/src/components/chart/antd/Max2DimLineChart.js +128 -0
- package/src/components/chart/antd/PieChart1.js +54 -0
- package/src/components/chart/antd/PieChart2.js +56 -0
- package/src/components/chart/antd/chart-utils.tsx +50 -0
- package/src/components/chart/antd/column-chart-sub.tsx +67 -0
- package/src/components/chart/antd/line-chart-sub.tsx +65 -0
- package/src/components/chart/antd/pie-chart-sub.tsx +54 -0
- package/src/components/chart/antd/statview-d2-chart.tsx +125 -0
- package/src/components/chart/statview-l2-chart.tsx +69 -0
- package/src/components/controls/action/index.css +9 -0
- package/src/components/controls/action/index.tsx +228 -0
- package/src/components/controls/action/utils.tsx +122 -0
- package/src/components/controls/auto-complete/index.tsx +80 -0
- package/src/components/controls/cascader/index.js +97 -0
- package/src/components/controls/chemstruc/graph.tsx +150 -0
- package/src/components/controls/chemstruc/index.css +28 -0
- package/src/components/controls/collapse-card/index.css +9 -0
- package/src/components/controls/collapse-card/index.tsx +59 -0
- package/src/components/controls/color-picker/index.css +27 -0
- package/src/components/controls/color-picker/index.tsx +88 -0
- package/src/components/controls/cquery/cquick-button.tsx +117 -0
- package/src/components/controls/date-picker/index.tsx +141 -0
- package/src/components/controls/entity-select/entity-select.tsx +277 -0
- package/src/components/controls/entity-select/index.css +6 -0
- package/src/components/controls/entity-select/popover-entity-select.tsx +112 -0
- package/src/components/controls/entry-control.tsx +240 -0
- package/src/components/controls/enum-badge/index.tsx +28 -0
- package/src/components/controls/enum-tag/index.tsx +30 -0
- package/src/components/controls/file-view/drawer-file-view.tsx +69 -0
- package/src/components/controls/file-view/index.tsx +145 -0
- package/src/components/controls/html-editor/draft.tsx +161 -0
- package/src/components/controls/html-editor/tinymce.js +55 -0
- package/src/components/controls/input-number/index.tsx +101 -0
- package/src/components/controls/input-range/index.tsx +48 -0
- package/src/components/controls/password-setter/index.css +3 -0
- package/src/components/controls/password-setter/index.js +70 -0
- package/src/components/controls/progress/index.tsx +61 -0
- package/src/components/controls/relation-existion/index.css +4 -0
- package/src/components/controls/relation-existion/index.tsx +108 -0
- package/src/components/controls/rfield/index.css +4 -0
- package/src/components/controls/rfield/index.tsx +161 -0
- package/src/components/controls/signature/index.tsx +162 -0
- package/src/components/controls/steps/index.tsx +58 -0
- package/src/components/controls/text/ellipsis-text.tsx +70 -0
- package/src/components/controls/upload/index.tsx +122 -0
- package/src/components/controls/view-control.tsx +177 -0
- package/src/components/detail/button/cquery-button-bar.tsx +112 -0
- package/src/components/detail/button/index.css +43 -0
- package/src/components/detail/button/submit-button-bar.tsx +151 -0
- package/src/components/detail/dtmpl.css +53 -0
- package/src/components/detail/edit/dtmpl-edit.tsx +218 -0
- package/src/components/detail/edit/fields-edit-card.tsx +103 -0
- package/src/components/detail/edit/modal-dtmpl-edit.tsx +198 -0
- package/src/components/detail/edit/modal-row-edit.tsx +72 -0
- package/src/components/detail/edit/post-result/index.tsx +52 -0
- package/src/components/detail/edit/row-edit-card.tsx +125 -0
- package/src/components/detail/edit/row-editor.tsx +71 -0
- package/src/components/detail/rightbar/index.css +35 -0
- package/src/components/detail/rightbar/index.tsx +76 -0
- package/src/components/detail/view/act-dtmpl-view.tsx +155 -0
- package/src/components/detail/view/dtmpl-view.tsx +143 -0
- package/src/components/detail/view/field-view-group.tsx +73 -0
- package/src/components/detail/view/modal-dtmpl-view.tsx +56 -0
- package/src/components/detail/view/snapshot-timeline.tsx +130 -0
- package/src/components/exportor/export-frame.css +3 -0
- package/src/components/exportor/export-frame.tsx +194 -0
- package/src/components/exportor/index.tsx +60 -0
- package/src/components/form/criteria-form.tsx +241 -0
- package/src/components/form/dtmpl-form.css +4 -0
- package/src/components/form/dtmpl-form.tsx +272 -0
- package/src/components/form/field-group-form.tsx +75 -0
- package/src/components/form/fields-form.tsx +51 -0
- package/src/components/form/form-Item-group.tsx +99 -0
- package/src/components/form/index.css +13 -0
- package/src/components/import/excel-import.tsx +316 -0
- package/src/components/import/index.css +54 -0
- package/src/components/import/template-builder.js +474 -0
- package/src/components/import/template.css +51 -0
- package/src/components/layout/MainPage.tsx +230 -0
- package/src/components/layout/footer/index.css +6 -0
- package/src/components/layout/footer/index.js +17 -0
- package/src/components/layout/header/index.css +86 -0
- package/src/components/layout/header/index.tsx +58 -0
- package/src/components/layout/menu/block.tsx +88 -0
- package/src/components/layout/menu/l2menu-message-bar.tsx +118 -0
- package/src/components/layout/menu/l2menu-quick-bar.tsx +132 -0
- package/src/components/layout/menu/menu-2layers.tsx +92 -0
- package/src/components/layout/menu/menu-render.tsx +49 -0
- package/src/components/layout/menu/reset-password.tsx +185 -0
- package/src/components/layout/menu/user-bar.tsx +97 -0
- package/src/components/layout/menu/userinfo-bar.tsx +70 -0
- package/src/components/layout/sidebar/index.css +26 -0
- package/src/components/layout/sidebar/index.tsx +38 -0
- package/src/components/login.js +137 -0
- package/src/components/module/criteria-page.tsx +175 -0
- package/src/components/module/dtmpl-page.tsx +70 -0
- package/src/components/module/ltmpl-page.tsx +181 -0
- package/src/components/routable/dtmpl-route.tsx +96 -0
- package/src/components/routable/import-route.tsx +28 -0
- package/src/components/routable/ltmpl-route.tsx +158 -0
- package/src/components/table/act-table.tsx +635 -0
- package/src/components/table/column/column-selector.tsx +79 -0
- package/src/components/table/column/index.css +14 -0
- package/src/components/table/index.css +45 -0
- package/src/components/table/l2-act-table.tsx +85 -0
- package/src/components/table/modal-select-table.tsx +248 -0
- package/src/components/table/pagination.css +15 -0
- package/src/components/table/pagination.tsx +72 -0
- package/src/components/table/query-table.tsx +331 -0
- package/src/components/table/relation-table.tsx +600 -0
- package/src/components/table/select-table.tsx +247 -0
- package/src/components/table/selected-rows-card.tsx +62 -0
- package/src/components/table/stat/restat.tsx +79 -0
- package/src/components/table/table-util.tsx +33 -0
- package/src/components/tmpl/control-type-supportor.tsx +97 -0
- package/src/components/tmpl/hc-data-source.tsx +230 -0
- package/src/components/tmpl/hcservice-v3.tsx +624 -0
- package/src/components/tmpl/interface.tsx +308 -0
- package/src/components/tmpl/superagent.js +93 -0
- package/src/components/tmpl/tmpl-config-analysis.tsx +111 -0
- package/src/components/units/EncryptUtils.js +38 -0
- package/src/components/units/image.d.ts +8 -0
- package/src/components/units/index.tsx +536 -0
- package/src/components/units/logo.png +0 -0
- package/src/components/units/storage.js +3 -0
- package/src/components/welcome/HCWelcome.js +232 -0
- package/src/components/welcome/index.css +13 -0
- package/src/components/welcome/logo.png +0 -0
- package/src/components/welcome/quick-entrance.tsx +77 -0
- package/src/components/welcome/workbench.tsx +76 -0
- package/src/index.js +4 -0
- package/src/style/common.css +79 -0
- package/src/style/coverstyle.css +49 -0
- package/src/style/transstyle.css +24 -0
- package/tsconfig.json +106 -0
|
@@ -0,0 +1,331 @@
|
|
|
1
|
+
import React from 'react'
|
|
2
|
+
import {Card, Collapse, Descriptions, List, Table} from 'antd';
|
|
3
|
+
import "./index.css"
|
|
4
|
+
import {
|
|
5
|
+
ActTableViewModel,
|
|
6
|
+
DtmplData,
|
|
7
|
+
FieldConfig,
|
|
8
|
+
PageInfo,
|
|
9
|
+
QueryData,
|
|
10
|
+
QueryKey,
|
|
11
|
+
SelectedRow,
|
|
12
|
+
} from "../tmpl/interface";
|
|
13
|
+
import HcserviceV3 from "../tmpl/hcservice-v3";
|
|
14
|
+
import Pagination from './pagination';
|
|
15
|
+
import {TableRowSelection} from "antd/lib/table/interface";
|
|
16
|
+
import {SortableContainer, SortableElement} from "react-sortable-hoc";
|
|
17
|
+
import {arrayMoveImmutable} from 'array-move';
|
|
18
|
+
import ViewControl from "../controls/view-control";
|
|
19
|
+
|
|
20
|
+
const {Panel} = Collapse;
|
|
21
|
+
const SortableItem = SortableElement(props => <tr {...props} />);
|
|
22
|
+
const SortableBody = SortableContainer(props => <tbody {...props} />);
|
|
23
|
+
|
|
24
|
+
|
|
25
|
+
interface CacheData {
|
|
26
|
+
dataSource: object[];
|
|
27
|
+
pageInfo: PageInfo;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
interface QueryTableProps {
|
|
31
|
+
viewModels?: ActTableViewModel[];
|
|
32
|
+
defaultPageSize?: number;
|
|
33
|
+
columns: any[];
|
|
34
|
+
queryKey: QueryKey;
|
|
35
|
+
onChangeRowSelection?: (selectedRows: SelectedRow[],selectedDatas: DtmplData[], allRowKeys: string[]) => void;
|
|
36
|
+
maxSelectedRows?: number;
|
|
37
|
+
selectedRows?: SelectedRow[];
|
|
38
|
+
hiddenRowCodes?: string[],
|
|
39
|
+
viewModel?: string;
|
|
40
|
+
columnConfigs?: FieldConfig[];
|
|
41
|
+
};
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
interface QueryTableStat {
|
|
45
|
+
queryDataCache: Map<string, CacheData>;
|
|
46
|
+
pageInfo: PageInfo;
|
|
47
|
+
dataSource: object[];
|
|
48
|
+
loading: boolean;
|
|
49
|
+
touchEnd: boolean;
|
|
50
|
+
total: number;
|
|
51
|
+
};
|
|
52
|
+
|
|
53
|
+
class QueryTable extends React.PureComponent<QueryTableProps, QueryTableStat> {
|
|
54
|
+
|
|
55
|
+
static defaultProps = {
|
|
56
|
+
hiddenRowCodes: [],
|
|
57
|
+
selectedRows: [],
|
|
58
|
+
viewModels: ['table']
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
state = {
|
|
62
|
+
queryDataCache: undefined,
|
|
63
|
+
pageInfo: undefined,
|
|
64
|
+
dataSource: undefined,
|
|
65
|
+
loading: true,
|
|
66
|
+
touchEnd: undefined,
|
|
67
|
+
total: undefined,
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
async componentDidMount() {
|
|
71
|
+
const {columns, queryKey, defaultPageSize} = this.props;
|
|
72
|
+
let pageInfo = {
|
|
73
|
+
pageNo: 1,
|
|
74
|
+
pageSize: defaultPageSize ? defaultPageSize : 10,
|
|
75
|
+
virtualEndPageNo: undefined,
|
|
76
|
+
}
|
|
77
|
+
if (queryKey) {
|
|
78
|
+
await this.loadData(queryKey.key, pageInfo);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
componentWillUnmount() {
|
|
83
|
+
this.setState = ()=>false;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
async componentDidUpdate(prevProps) {
|
|
87
|
+
const {queryKey: preQueryKey} = prevProps;
|
|
88
|
+
const {columns, queryKey, defaultPageSize} = this.props;
|
|
89
|
+
if (queryKey && preQueryKey?.key != queryKey.key) {
|
|
90
|
+
let pageInfo = {
|
|
91
|
+
pageNo: 1,
|
|
92
|
+
pageSize: defaultPageSize ? defaultPageSize : 10,
|
|
93
|
+
virtualEndPageNo: undefined,
|
|
94
|
+
}
|
|
95
|
+
await this.loadData(queryKey.key, pageInfo, true);
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
|
|
99
|
+
DraggableContainer = props => (
|
|
100
|
+
<SortableBody
|
|
101
|
+
useDragHandle
|
|
102
|
+
disableAutoscroll
|
|
103
|
+
helperClass="row-dragging"
|
|
104
|
+
onSortEnd={this.onSortEnd}
|
|
105
|
+
{...props}
|
|
106
|
+
/>
|
|
107
|
+
);
|
|
108
|
+
|
|
109
|
+
DraggableBodyRow = ({className, style, ...restProps}) => {
|
|
110
|
+
const {dataSource} = this.state;
|
|
111
|
+
if (dataSource) {
|
|
112
|
+
//let ds= this.getUnHidenDataSource();
|
|
113
|
+
// function findIndex base on Table rowKey props and should always be a right array index
|
|
114
|
+
// @ts-ignore
|
|
115
|
+
const index = dataSource.findIndex(x => x.key === restProps['data-row-key']);
|
|
116
|
+
return <SortableItem key={index} index={index} {...restProps} />;
|
|
117
|
+
} else {
|
|
118
|
+
return <></>
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
};
|
|
122
|
+
|
|
123
|
+
onSortEnd = ({oldIndex, newIndex}) => {
|
|
124
|
+
const {dataSource} = this.state;
|
|
125
|
+
if (oldIndex !== newIndex) {
|
|
126
|
+
const newData = arrayMoveImmutable([].concat(dataSource), oldIndex, newIndex).filter(
|
|
127
|
+
el => !!el,
|
|
128
|
+
);
|
|
129
|
+
console.log('Sorted items: ', newData);
|
|
130
|
+
this.setState({dataSource: newData});
|
|
131
|
+
}
|
|
132
|
+
};
|
|
133
|
+
|
|
134
|
+
loadData = async (queryKey: string, pageInfo: PageInfo, cleanCache?: boolean) => {
|
|
135
|
+
this.setState({
|
|
136
|
+
loading: true,
|
|
137
|
+
})
|
|
138
|
+
|
|
139
|
+
let {queryDataCache} = this.state;
|
|
140
|
+
let queryCache: Map<string, CacheData>;
|
|
141
|
+
if (cleanCache || !queryDataCache) {
|
|
142
|
+
queryCache = new Map<string, CacheData>();
|
|
143
|
+
} else {
|
|
144
|
+
queryCache = queryDataCache;
|
|
145
|
+
}
|
|
146
|
+
if (queryCache.has(pageInfo.pageNo + "_" + pageInfo.pageSize)) {
|
|
147
|
+
let cacheData = queryCache.get(pageInfo.pageNo + "_" + pageInfo.pageSize);
|
|
148
|
+
this.setState({
|
|
149
|
+
dataSource: cacheData.dataSource,
|
|
150
|
+
pageInfo: cacheData.pageInfo,
|
|
151
|
+
loading: false,
|
|
152
|
+
})
|
|
153
|
+
} else {
|
|
154
|
+
let queryData: QueryData = await HcserviceV3.requestQueryData(queryKey, pageInfo);
|
|
155
|
+
let dataSource: object[] = [];
|
|
156
|
+
pageInfo = queryData.pageInfo;
|
|
157
|
+
queryData.entities.forEach((item, index) => {
|
|
158
|
+
let row = {
|
|
159
|
+
key: item.code,
|
|
160
|
+
code: item.code,//增加code,为了删除操作
|
|
161
|
+
...item.fieldMap,
|
|
162
|
+
index,
|
|
163
|
+
};
|
|
164
|
+
dataSource.push(row);
|
|
165
|
+
})
|
|
166
|
+
let touchEnd = queryData.touchEnd;
|
|
167
|
+
//缓存数据
|
|
168
|
+
queryCache.set(pageInfo.pageNo + "_" + pageInfo.pageSize, {dataSource, pageInfo});
|
|
169
|
+
this.setState({
|
|
170
|
+
dataSource,
|
|
171
|
+
pageInfo,
|
|
172
|
+
queryDataCache: queryCache,
|
|
173
|
+
touchEnd,
|
|
174
|
+
loading: false,
|
|
175
|
+
total: undefined,
|
|
176
|
+
})
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
|
|
180
|
+
pageTo = async (pageNo: number, pageSize: number) => {
|
|
181
|
+
let pageInfo = {
|
|
182
|
+
pageNo,
|
|
183
|
+
pageSize: pageSize ? pageSize : 10,
|
|
184
|
+
virtualEndPageNo: undefined,
|
|
185
|
+
}
|
|
186
|
+
const {queryKey} = this.props;
|
|
187
|
+
await this.loadData(queryKey.key, pageInfo);
|
|
188
|
+
}
|
|
189
|
+
|
|
190
|
+
queryTotal = async () => {
|
|
191
|
+
const {queryKey} = this.props;
|
|
192
|
+
let total = await HcserviceV3.requestQueryCount(queryKey.key);
|
|
193
|
+
this.setState({
|
|
194
|
+
total
|
|
195
|
+
});
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
getRowSelection = () => {
|
|
199
|
+
|
|
200
|
+
const {columns, onChangeRowSelection, selectedRows, maxSelectedRows} = this.props;
|
|
201
|
+
let {dataSource} = this.state;
|
|
202
|
+
let selectedRowKeys = [];
|
|
203
|
+
|
|
204
|
+
for (let row of selectedRows) {
|
|
205
|
+
selectedRowKeys.push(row.code);
|
|
206
|
+
}
|
|
207
|
+
const allRowKeys: string[] = [];
|
|
208
|
+
if (dataSource) {
|
|
209
|
+
for (let d of dataSource) {
|
|
210
|
+
allRowKeys.push(d.code);
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
|
|
214
|
+
const rowSelection: TableRowSelection<any> = {
|
|
215
|
+
fixed: true,
|
|
216
|
+
type: maxSelectedRows == 1 ? 'radio' : 'checkbox',
|
|
217
|
+
selectedRowKeys,
|
|
218
|
+
onChange: (selectedRowKeys, selectedRows) => {
|
|
219
|
+
console.log('selectedRowKeys:', selectedRowKeys);
|
|
220
|
+
console.log('selectedRows:', selectedRows);
|
|
221
|
+
let selectedRows_: SelectedRow[] = [];
|
|
222
|
+
let selectedDatas: DtmplData[] = [];
|
|
223
|
+
let titleColId = null;
|
|
224
|
+
columns.forEach((col) => {
|
|
225
|
+
if (col.title != '序号' && titleColId == null) {
|
|
226
|
+
titleColId = col.dataIndex;
|
|
227
|
+
return;
|
|
228
|
+
}
|
|
229
|
+
})
|
|
230
|
+
selectedRows.forEach((item) => {
|
|
231
|
+
selectedRows_.push({code: item.code, title: item[titleColId]});
|
|
232
|
+
selectedDatas.push(item);
|
|
233
|
+
})
|
|
234
|
+
if (onChangeRowSelection) {
|
|
235
|
+
onChangeRowSelection(selectedRows_,selectedDatas, allRowKeys);
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
}
|
|
239
|
+
return rowSelection;
|
|
240
|
+
|
|
241
|
+
}
|
|
242
|
+
|
|
243
|
+
getUnHidenDataSource = () => {
|
|
244
|
+
const {dataSource} = this.state;
|
|
245
|
+
const {hiddenRowCodes} = this.props;
|
|
246
|
+
let ds: object[] = [];
|
|
247
|
+
if (dataSource) {
|
|
248
|
+
for (let d of dataSource) {
|
|
249
|
+
if (!hiddenRowCodes.includes(d.code)) {
|
|
250
|
+
ds.push(d);
|
|
251
|
+
}
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
|
|
255
|
+
return ds;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
initViewList = (data) => {
|
|
259
|
+
console.log("data:",data);
|
|
260
|
+
const {columns, columnConfigs} = this.props
|
|
261
|
+
const formItemList = [];
|
|
262
|
+
if (columnConfigs.length > 0) {
|
|
263
|
+
columnConfigs.forEach((item, index) => {
|
|
264
|
+
if (item.id != '10000' && item.title != '操作' && item.id != '20000' ) {
|
|
265
|
+
const title = item.title;
|
|
266
|
+
let fieldValue = data ? data[item.id] : undefined;
|
|
267
|
+
if(title=='序号'){
|
|
268
|
+
fieldValue=data.index;
|
|
269
|
+
}
|
|
270
|
+
//fieldValue 没有值时不能为null 要为 undefined。antd input所限制
|
|
271
|
+
fieldValue = fieldValue ? fieldValue : item.defaultValue ? item.defaultValue : undefined;
|
|
272
|
+
const fieldKey = item.id + Math.random() * 100;
|
|
273
|
+
|
|
274
|
+
const formItem = <Descriptions.Item label={item.title} key={index}
|
|
275
|
+
className='labelcss'
|
|
276
|
+
>
|
|
277
|
+
<ViewControl holderType={'table'} value={fieldValue} fieldConfig={item}/>
|
|
278
|
+
</Descriptions.Item>
|
|
279
|
+
formItemList.push(formItem);
|
|
280
|
+
}
|
|
281
|
+
});
|
|
282
|
+
}
|
|
283
|
+
return formItemList;
|
|
284
|
+
|
|
285
|
+
}
|
|
286
|
+
|
|
287
|
+
render() {
|
|
288
|
+
const {columns, viewModels} = this.props;
|
|
289
|
+
const {pageInfo, touchEnd, total, loading} = this.state;
|
|
290
|
+
return (
|
|
291
|
+
<>
|
|
292
|
+
{viewModels.includes('table') ?
|
|
293
|
+
<Table
|
|
294
|
+
rowSelection={this.getRowSelection()}
|
|
295
|
+
columns={columns ? columns : []}
|
|
296
|
+
dataSource={this.getUnHidenDataSource()}
|
|
297
|
+
bordered
|
|
298
|
+
pagination={false}
|
|
299
|
+
style={{display: columns ? "block" : "none"}}
|
|
300
|
+
loading={loading}
|
|
301
|
+
components={{
|
|
302
|
+
body: {
|
|
303
|
+
wrapper: this.DraggableContainer,
|
|
304
|
+
row: this.DraggableBodyRow,
|
|
305
|
+
},
|
|
306
|
+
}}
|
|
307
|
+
>
|
|
308
|
+
</Table> : ""}
|
|
309
|
+
<Pagination touchEnd={touchEnd} pageInfo={pageInfo} pageTo={this.pageTo} queryTotal={this.queryTotal}
|
|
310
|
+
total={total}/>
|
|
311
|
+
{viewModels.includes('verticalList') ?
|
|
312
|
+
<Card style={{marginTop: '10px'}}>
|
|
313
|
+
<List
|
|
314
|
+
dataSource={this.getUnHidenDataSource()}
|
|
315
|
+
renderItem={item => (
|
|
316
|
+
<List.Item key={item['id']}>
|
|
317
|
+
<Card><Descriptions column={4}>
|
|
318
|
+
{this.initViewList(item)}
|
|
319
|
+
</Descriptions></Card>
|
|
320
|
+
</List.Item>
|
|
321
|
+
)}
|
|
322
|
+
/>
|
|
323
|
+
</Card> : ""
|
|
324
|
+
}
|
|
325
|
+
</>
|
|
326
|
+
);
|
|
327
|
+
}
|
|
328
|
+
|
|
329
|
+
}
|
|
330
|
+
|
|
331
|
+
export default QueryTable;
|