ztxkui 4.0.9 → 4.1.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.
|
@@ -54,7 +54,7 @@ var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
|
54
54
|
* @author 陈亚雄
|
|
55
55
|
* @description
|
|
56
56
|
*/
|
|
57
|
-
import React, { useEffect, useRef, useState, useImperativeHandle } from 'react';
|
|
57
|
+
import React, { useEffect, useRef, useState, useImperativeHandle, useCallback, } from 'react';
|
|
58
58
|
// redux
|
|
59
59
|
// ztxkui公共组件
|
|
60
60
|
import { Button, Spin, message, Modal, Dropdown, Menu } from '../../index';
|
|
@@ -68,7 +68,6 @@ import { createDownloadUrlNoBase, createDownloadUrl, } from 'ztxkutils/dist/file
|
|
|
68
68
|
import { dataURLtoFile, setPositionLocal, getPositionLocal, setPositionDom, setPositionDeviation, useInitSetPostion, } from './handle';
|
|
69
69
|
import { createTask } from './lodop';
|
|
70
70
|
import { useNeedLodop } from './utils';
|
|
71
|
-
import { useCallback } from '@storybook/addons';
|
|
72
71
|
var fontTTF = {
|
|
73
72
|
data: '',
|
|
74
73
|
};
|
|
@@ -504,7 +503,7 @@ var PrintContainer = function (_a) {
|
|
|
504
503
|
for (var i = 0; i < styleSheetTag.length; i++) {
|
|
505
504
|
var item = styleSheetTag[i];
|
|
506
505
|
var href = item.getAttribute('href');
|
|
507
|
-
var origin_1 = window.origin.indexOf('localhost
|
|
506
|
+
var origin_1 = window.origin.indexOf('http://localhost') !== -1
|
|
508
507
|
? 'http://192.168.0.83:18885'
|
|
509
508
|
: window.origin;
|
|
510
509
|
item.setAttribute('href', "" + origin_1 + href);
|
|
@@ -1,3 +1,8 @@
|
|
|
1
|
+
var __spreadArray = (this && this.__spreadArray) || function (to, from) {
|
|
2
|
+
for (var i = 0, il = from.length, j = to.length; i < il; i++, j++)
|
|
3
|
+
to[j] = from[i];
|
|
4
|
+
return to;
|
|
5
|
+
};
|
|
1
6
|
import React from 'react';
|
|
2
7
|
import { Table } from '../../../../index';
|
|
3
8
|
var tableScrollHeight = {
|
|
@@ -12,9 +17,9 @@ var tableScrollHeight = {
|
|
|
12
17
|
y: 'calc(100vh - 43px - 40px - 47px - 40px - 10px)',
|
|
13
18
|
};
|
|
14
19
|
var TableList = function (_a) {
|
|
15
|
-
var records = _a.records;
|
|
20
|
+
var records = _a.records, type = _a.type;
|
|
16
21
|
// 表格列表配置
|
|
17
|
-
var columns = [
|
|
22
|
+
var columns = __spreadArray(__spreadArray([
|
|
18
23
|
{
|
|
19
24
|
title: '序号',
|
|
20
25
|
width: 60,
|
|
@@ -28,20 +33,24 @@ var TableList = function (_a) {
|
|
|
28
33
|
width: 120,
|
|
29
34
|
dataIndex: 'code',
|
|
30
35
|
key: 'code',
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
36
|
+
}
|
|
37
|
+
], (type === '01'
|
|
38
|
+
? [
|
|
39
|
+
{
|
|
40
|
+
title: '国家',
|
|
41
|
+
width: 100,
|
|
42
|
+
dataIndex: 'extra',
|
|
43
|
+
key: 'extra',
|
|
44
|
+
},
|
|
45
|
+
]
|
|
46
|
+
: [])), [
|
|
38
47
|
{
|
|
39
48
|
title: '描述',
|
|
40
49
|
// width: 160,
|
|
41
50
|
dataIndex: 'name',
|
|
42
51
|
key: 'name',
|
|
43
52
|
},
|
|
44
|
-
];
|
|
53
|
+
]);
|
|
45
54
|
return (React.createElement(Table, { columns: columns, dataSource: records || [], rowKey: "id", scroll: tableScrollHeight }));
|
|
46
55
|
};
|
|
47
56
|
export default TableList;
|
|
@@ -30,11 +30,11 @@ var CodeQuery = function (_a) {
|
|
|
30
30
|
},
|
|
31
31
|
]; }, [total, current, pageSize, onPageChange]);
|
|
32
32
|
return (React.createElement(React.Fragment, null,
|
|
33
|
-
React.createElement(Drawer, { className: "zt-codeQuery-drawer", visible: visible, closable: false, placement: "right", onClose: onCancel, width: "
|
|
33
|
+
React.createElement(Drawer, { className: "zt-codeQuery-drawer", visible: visible, closable: false, placement: "right", onClose: onCancel, width: "700", title: React.createElement("div", { className: "zt-codeQuery-drawer-title-wrapper" },
|
|
34
34
|
React.createElement("div", { className: "zt-codeQuery-drawer-title-tag" }),
|
|
35
35
|
React.createElement("div", { className: "zt-codeQuery-drawer-title" }, "\u7F16\u7801\u67E5\u8BE2\u5DE5\u5177")), footer: React.createElement(React.Fragment, null,
|
|
36
36
|
React.createElement(Footer, { footerDom: footerDom })) },
|
|
37
37
|
React.createElement(SearchForm, { codeTypeList: codeTypeList, onSearch: onSearchHandle, request: request }),
|
|
38
|
-
React.createElement(TableList, { records: records }))));
|
|
38
|
+
React.createElement(TableList, { records: records, type: params === null || params === void 0 ? void 0 : params.type }))));
|
|
39
39
|
};
|
|
40
40
|
export default memo(CodeQuery);
|