@bit-sun/business-component 2.0.22 → 2.0.23
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/dist/components/Functional/ExportFunctions/ExportIcon/index.d.ts +9 -4
- package/dist/index.d.ts +0 -1
- package/dist/index.esm.js +48 -219
- package/dist/index.js +46 -219
- package/package.json +2 -2
- package/src/components/Functional/AddSelect/index.tsx +1 -1
- package/src/components/Functional/DataImport/index.tsx +1 -1
- package/src/components/Functional/DataValidation/index.tsx +1 -1
- package/src/components/Functional/ExportFunctions/ExportIcon/index.md +37 -0
- package/src/components/Functional/ExportFunctions/ExportIcon/index.tsx +41 -27
- package/src/components/Functional/SearchSelect/index.tsx +1 -1
- package/src/index.ts +0 -1
- package/dist/components/Functional/ExportFunctions/ExportHistoryDrawer/index.d.ts +0 -2
- package/src/components/Functional/ExportFunctions/ExportHistoryDrawer/index.less +0 -24
- package/src/components/Functional/ExportFunctions/ExportHistoryDrawer/index.tsx +0 -150
|
@@ -1,7 +1,12 @@
|
|
|
1
1
|
interface exportIconType {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
/** others选填,使用axios发请求,*/
|
|
3
|
+
request: {
|
|
4
|
+
url: string;
|
|
5
|
+
params: Function | Object;
|
|
6
|
+
others?: Object;
|
|
7
|
+
};
|
|
8
|
+
/** BsSulaQueryTable的tableRef*/
|
|
9
|
+
tableRef: any;
|
|
5
10
|
}
|
|
6
|
-
declare const ExportIcon: ({
|
|
11
|
+
declare const ExportIcon: ({ request, tableRef }: exportIconType) => JSX.Element;
|
|
7
12
|
export default ExportIcon;
|
package/dist/index.d.ts
CHANGED
|
@@ -14,4 +14,3 @@ export { default as BusinessTreeSearchSelect } from './components/Business/TreeS
|
|
|
14
14
|
export { default as StateFlow } from './components/Business/StateFlow';
|
|
15
15
|
export { default as GuideWrapper } from './components/Business/CommonGuideWrapper';
|
|
16
16
|
export { default as ExportIcon } from './components/Functional/ExportFunctions/ExportIcon';
|
|
17
|
-
export { default as ExportHistoryIcon } from './components/Functional/ExportFunctions/ExportHistoryDrawer';
|
package/dist/index.esm.js
CHANGED
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import axios from 'axios';
|
|
2
2
|
import React, { createContext, useContext, useEffect, forwardRef, createElement, useState, useImperativeHandle, useRef, useMemo, Component } from 'react';
|
|
3
|
-
import { message, Menu, Space, Dropdown, Tooltip, Button, Checkbox, Input, Modal, Select, Form, Divider, Spin, Table, TreeSelect, Tag, InputNumber, Popover
|
|
3
|
+
import { message, Menu, Space, Dropdown, Tooltip, Button, Checkbox, Input, Modal, Select, Form, Divider, Spin, Table, TreeSelect, Tag, InputNumber, Popover } from 'antd';
|
|
4
4
|
import { DragDropContext, Droppable, Draggable } from 'react-beautiful-dnd';
|
|
5
5
|
import classNames from 'classnames';
|
|
6
|
-
import _ from '
|
|
6
|
+
import _, { omit } from 'lodash';
|
|
7
7
|
import { useDebounceFn } from 'ahooks';
|
|
8
8
|
import { stringify } from 'querystring';
|
|
9
9
|
import { Resizable } from 'react-resizable';
|
|
10
|
-
import dayjs from 'dayjs';
|
|
11
10
|
|
|
12
11
|
var resposne = JSON.parse(localStorage.getItem('userInfo') || '{}');
|
|
13
12
|
function handleRequestAuthHeader(config) {
|
|
@@ -414,6 +413,16 @@ function _regeneratorRuntime() {
|
|
|
414
413
|
}, exports;
|
|
415
414
|
}
|
|
416
415
|
|
|
416
|
+
function _typeof(obj) {
|
|
417
|
+
"@babel/helpers - typeof";
|
|
418
|
+
|
|
419
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
420
|
+
return typeof obj;
|
|
421
|
+
} : function (obj) {
|
|
422
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
423
|
+
}, _typeof(obj);
|
|
424
|
+
}
|
|
425
|
+
|
|
417
426
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
418
427
|
try {
|
|
419
428
|
var info = gen[key](arg);
|
|
@@ -826,14 +835,14 @@ function _objectWithoutProperties$1(source, excluded) {
|
|
|
826
835
|
return target;
|
|
827
836
|
}
|
|
828
837
|
|
|
829
|
-
function _typeof(obj) {
|
|
838
|
+
function _typeof$1(obj) {
|
|
830
839
|
"@babel/helpers - typeof";
|
|
831
840
|
|
|
832
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
841
|
+
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
833
842
|
return typeof obj;
|
|
834
843
|
} : function (obj) {
|
|
835
844
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
836
|
-
}, _typeof(obj);
|
|
845
|
+
}, _typeof$1(obj);
|
|
837
846
|
}
|
|
838
847
|
|
|
839
848
|
/**
|
|
@@ -1738,7 +1747,7 @@ function warning$1(valid, message) {
|
|
|
1738
1747
|
warningOnce(valid, "[@ant-design/icons] ".concat(message));
|
|
1739
1748
|
}
|
|
1740
1749
|
function isIconDefinition(target) {
|
|
1741
|
-
return _typeof(target) === 'object' && typeof target.name === 'string' && typeof target.theme === 'string' && (_typeof(target.icon) === 'object' || typeof target.icon === 'function');
|
|
1750
|
+
return _typeof$1(target) === 'object' && typeof target.name === 'string' && typeof target.theme === 'string' && (_typeof$1(target.icon) === 'object' || typeof target.icon === 'function');
|
|
1742
1751
|
}
|
|
1743
1752
|
function normalizeAttrs() {
|
|
1744
1753
|
var attrs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
@@ -8997,21 +9006,44 @@ GuideWrapper.Field = Field;
|
|
|
8997
9006
|
var exportlogo = "data:image/png;base64,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";
|
|
8998
9007
|
|
|
8999
9008
|
var ExportIcon = function ExportIcon(_ref) {
|
|
9000
|
-
var
|
|
9001
|
-
|
|
9002
|
-
|
|
9009
|
+
var request = _ref.request,
|
|
9010
|
+
tableRef = _ref.tableRef;
|
|
9011
|
+
var url = request.url,
|
|
9012
|
+
params = request.params,
|
|
9013
|
+
others = request.others;
|
|
9003
9014
|
return /*#__PURE__*/React.createElement("div", {
|
|
9004
9015
|
style: {
|
|
9005
9016
|
cursor: 'pointer'
|
|
9006
9017
|
}
|
|
9007
|
-
}, /*#__PURE__*/React.createElement(
|
|
9008
|
-
title:
|
|
9009
|
-
|
|
9018
|
+
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
9019
|
+
title: "\u5BFC\u51FA\u6570\u636E"
|
|
9020
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
9021
|
+
width: 32,
|
|
9022
|
+
src: exportlogo,
|
|
9023
|
+
onClick: function onClick() {
|
|
9024
|
+
var _tableRef$current, _convertedParams$sele, _convertedParams$sele2;
|
|
9025
|
+
|
|
9026
|
+
var convertedParams = tableRef === null || tableRef === void 0 ? void 0 : (_tableRef$current = tableRef.current) === null || _tableRef$current === void 0 ? void 0 : _tableRef$current.getExportParams();
|
|
9027
|
+
var requestData;
|
|
9028
|
+
|
|
9029
|
+
if (typeof params === 'function') {
|
|
9030
|
+
requestData = _objectSpread2({}, omit(params(convertedParams), 'selectedRows'));
|
|
9031
|
+
} else if (_typeof(params) === 'object') {
|
|
9032
|
+
requestData = _objectSpread2({}, params);
|
|
9033
|
+
}
|
|
9034
|
+
|
|
9035
|
+
if (!params) {
|
|
9036
|
+
requestData = omit(convertedParams, 'selectedRows');
|
|
9037
|
+
}
|
|
9038
|
+
|
|
9039
|
+
requestData['qp-id-in'] = convertedParams === null || convertedParams === void 0 ? void 0 : (_convertedParams$sele = convertedParams.selectedRows) === null || _convertedParams$sele === void 0 ? void 0 : (_convertedParams$sele2 = _convertedParams$sele.map(function (d) {
|
|
9040
|
+
return d.id;
|
|
9041
|
+
})) === null || _convertedParams$sele2 === void 0 ? void 0 : _convertedParams$sele2.join(',');
|
|
9010
9042
|
axios(_objectSpread2({
|
|
9011
9043
|
url: url,
|
|
9012
9044
|
method: 'POST',
|
|
9013
|
-
data:
|
|
9014
|
-
},
|
|
9045
|
+
data: requestData
|
|
9046
|
+
}, others)).then(function (result) {
|
|
9015
9047
|
result = result.data;
|
|
9016
9048
|
|
|
9017
9049
|
if (result.code !== '000000') {
|
|
@@ -9024,210 +9056,7 @@ var ExportIcon = function ExportIcon(_ref) {
|
|
|
9024
9056
|
message.success('任务已排入导出队列');
|
|
9025
9057
|
});
|
|
9026
9058
|
}
|
|
9027
|
-
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
9028
|
-
title: "\u5BFC\u51FA\u6570\u636E"
|
|
9029
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
9030
|
-
width: 32,
|
|
9031
|
-
src: exportlogo
|
|
9032
|
-
}))));
|
|
9033
|
-
};
|
|
9034
|
-
|
|
9035
|
-
var upExport = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3Exinglan-icon-message%E5%A4%87%E4%BB%BD%205%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Crect%20id%3D%22path-1%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3C%2Frect%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22%E5%AF%BC%E5%87%BA%E5%8A%9F%E8%83%BD%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E5%AF%BC%E5%87%BA%E5%8A%9F%E8%83%BD-%E5%AF%BC%E5%87%BA%E6%95%B0%E6%8D%AE%E8%BD%AC%E5%85%A5%E5%90%8E%E5%8F%B0%E6%8F%90%E7%A4%BA%22%20transform%3D%22translate%28-1659.000000%2C%20-18.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E5%AF%BC%E5%85%A5%E3%80%81%E5%AF%BC%E5%87%BA%E8%AE%B0%E5%BD%95icon%22%20transform%3D%22translate%281659.000000%2C%2018.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cmask%20id%3D%22mask-2%22%20fill%3D%22white%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fmask%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20id%3D%22xinglan-icon-message%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22responsetime%22%20mask%3D%22url%28%23mask-2%29%22%20fill%3D%22%23000000%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22translate%283.000000%2C%202.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M5.21516417%2C6.74357406%20L4.07552238%2C7.8711358%20L0%2C3.83881343%20L3.87940299%2C0%20L5.02011939%2C1.12756173%20L3.05785074%2C3.06796734%20L9.4438209%2C3.06903059%20C14.112%2C3.06903059%2017.9075821%2C6.76802848%2017.9978507%2C11.3659924%20L18%2C11.5345153%20C18%2C16.2095638%2014.1689552%2C20%209.4438209%2C20%20C4.71814925%2C20%200.887104494%2C16.2095638%200.887104469%2C11.5345153%20L2.49904477%2C11.5345153%20C2.49904477%2C15.3292044%205.6084776%2C18.4051461%209.4438209%2C18.4051461%20C13.2786269%2C18.4051461%2016.3880597%2C15.3292044%2016.3880597%2C11.5345153%20C16.3880597%2C7.73982616%2013.2786269%2C4.66388453%209.4438209%2C4.66388453%20L3.11265671%2C4.66335292%20L5.21516417%2C6.74357406%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M10.4%2C7.2%20L10.399%2C12.381%20L12.4660494%2C10.315207%20L13.6934831%2C11.5426407%20L9.55833777%2C15.677786%20L5.2%2C11.5508424%20L6.44018239%2C10.31066%20L8.599%2C12.309%20L8.6%2C7.2%20L10.4%2C7.2%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%E7%BB%93%E5%90%88%22%20transform%3D%22translate%289.446742%2C%2011.438893%29%20scale%281%2C%20-1%29%20translate%28-9.446742%2C%20-11.438893%29%20%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
9036
|
-
|
|
9037
|
-
var exportProcessing = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2240px%22%20height%3D%2242px%22%20viewBox%3D%220%200%2040%2042%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%2017%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E5%AF%BC%E5%87%BA%E5%8A%9F%E8%83%BD%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-13%22%20transform%3D%22translate%28-14.000000%2C%20-74.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-21%E5%A4%87%E4%BB%BD-20%22%20transform%3D%22translate%280.000000%2C%2064.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-17%22%20transform%3D%22translate%2814.000000%2C%2010.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20stroke%3D%22%23979797%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20x%3D%220.5%22%20y%3D%220.5%22%20width%3D%2239%22%20height%3D%2241%22%3E%3C%2Frect%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-6%22%20transform%3D%22translate%286.000000%2C%206.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M4%2C28%20L4%2C2%20C4%2C0.8954305%204.8954305%2C-1.91384796e-17%206%2C0%20L20.1028879%2C0%20L20.1028879%2C0%20L28%2C7.2545499%20L28%2C28%20C28%2C29.1045695%2027.1045695%2C30%2026%2C30%20L6%2C30%20C4.8954305%2C30%204%2C29.1045695%204%2C28%20Z%22%20id%3D%22%E8%B7%AF%E5%BE%84-6%22%20fill%3D%22%231B79FF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-2%22%20transform%3D%22translate%280.000000%2C%209.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M11%2C0.5%20C11.4142136%2C0.5%2011.7892136%2C0.667893219%2012.0606602%2C0.939339828%20C12.3321068%2C1.21078644%2012.5%2C1.58578644%2012.5%2C2%20L12.5%2C2%20L12.5%2C11%20C12.5%2C11.4142136%2012.3321068%2C11.7892136%2012.0606602%2C12.0606602%20C11.7892136%2C12.3321068%2011.4142136%2C12.5%2011%2C12.5%20L11%2C12.5%20L2%2C12.5%20C1.58578644%2C12.5%201.21078644%2C12.3321068%200.939339828%2C12.0606602%20C0.667893219%2C11.7892136%200.5%2C11.4142136%200.5%2C11%20L0.5%2C11%20L0.5%2C2%20C0.5%2C1.58578644%200.667893219%2C1.21078644%200.939339828%2C0.939339828%20C1.21078644%2C0.667893219%201.58578644%2C0.5%202%2C0.5%20L2%2C0.5%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20stroke%3D%22%23005CFF%22%20fill%3D%22%23FFFFFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22X%22%20transform%3D%22translate%283.986000%2C%204.100000%29%22%20fill%3D%22%23005CFF%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpolygon%20id%3D%22%E8%B7%AF%E5%BE%84%22%20points%3D%223.598%204.9%202.583%203.381%201.582%204.9%200%204.9%201.785%202.422%200.077%200%201.638%200%202.618%201.414%203.584%200%205.082%200%203.374%202.366%205.194%204.9%22%3E%3C%2Fpolygon%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M15%2C10%20L18%2C10%20C18.5522847%2C10%2019%2C10.4477153%2019%2C11%20L19%2C12%20C19%2C12.5522847%2018.5522847%2C13%2018%2C13%20L15%2C13%20C14.4477153%2C13%2014%2C12.5522847%2014%2C12%20L14%2C11%20C14%2C10.4477153%2014.4477153%2C10%2015%2C10%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-7%22%20fill%3D%22%23005CFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M21%2C10%20L24%2C10%20C24.5522847%2C10%2025%2C10.4477153%2025%2C11%20L25%2C12%20C25%2C12.5522847%2024.5522847%2C13%2024%2C13%20L21%2C13%20C20.4477153%2C13%2020%2C12.5522847%2020%2C12%20L20%2C11%20C20%2C10.4477153%2020.4477153%2C10%2021%2C10%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-18%22%20fill%3D%22%23005CFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M15%2C14%20L18%2C14%20C18.5522847%2C14%2019%2C14.4477153%2019%2C15%20L19%2C16%20C19%2C16.5522847%2018.5522847%2C17%2018%2C17%20L15%2C17%20C14.4477153%2C17%2014%2C16.5522847%2014%2C16%20L14%2C15%20C14%2C14.4477153%2014.4477153%2C14%2015%2C14%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-20%22%20fill%3D%22%23005CFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M21%2C14%20L24%2C14%20C24.5522847%2C14%2025%2C14.4477153%2025%2C15%20L25%2C16%20C25%2C16.5522847%2024.5522847%2C17%2024%2C17%20L21%2C17%20C20.4477153%2C17%2020%2C16.5522847%2020%2C16%20L20%2C15%20C20%2C14.4477153%2020.4477153%2C14%2021%2C14%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-19%22%20fill%3D%22%23005CFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M15%2C18%20L18%2C18%20C18.5522847%2C18%2019%2C18.4477153%2019%2C19%20L19%2C20%20C19%2C20.5522847%2018.5522847%2C21%2018%2C21%20L15%2C21%20C14.4477153%2C21%2014%2C20.5522847%2014%2C20%20L14%2C19%20C14%2C18.4477153%2014.4477153%2C18%2015%2C18%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-22%22%20fill%3D%22%23005CFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M21%2C18%20L24%2C18%20C24.5522847%2C18%2025%2C18.4477153%2025%2C19%20L25%2C20%20C25%2C20.5522847%2024.5522847%2C21%2024%2C21%20L21%2C21%20C20.4477153%2C21%2020%2C20.5522847%2020%2C20%20L20%2C19%20C20%2C18.4477153%2020.4477153%2C18%2021%2C18%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-21%22%20fill%3D%22%23005CFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpolygon%20id%3D%22%E8%B7%AF%E5%BE%84-19%22%20fill%3D%22%23005CFF%22%20points%3D%2220.1168478%200%2020.1168478%207.2545499%2028%207.2545499%22%3E%3C%2Fpolygon%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
9038
|
-
|
|
9039
|
-
var exportSuccess = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2240px%22%20height%3D%2242px%22%20viewBox%3D%220%200%2040%2042%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%2019%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E5%AF%BC%E5%87%BA%E5%8A%9F%E8%83%BD%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-13%22%20transform%3D%22translate%28-14.000000%2C%20-200.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-21%E5%A4%87%E4%BB%BD-22%22%20transform%3D%22translate%280.000000%2C%20188.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-19%22%20transform%3D%22translate%2814.000000%2C%2012.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20stroke%3D%22%23979797%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20x%3D%220.5%22%20y%3D%220.5%22%20width%3D%2239%22%20height%3D%2241%22%3E%3C%2Frect%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-16%22%20transform%3D%22translate%286.000000%2C%204.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-6%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M4%2C28%20L4%2C2%20C4%2C0.8954305%204.8954305%2C-1.91384796e-17%206%2C0%20L20.1028879%2C0%20L20.1028879%2C0%20L28%2C7.2545499%20L28%2C28%20C28%2C29.1045695%2027.1045695%2C30%2026%2C30%20L6%2C30%20C4.8954305%2C30%204%2C29.1045695%204%2C28%20Z%22%20id%3D%22%E8%B7%AF%E5%BE%84-6%22%20fill%3D%22%231B79FF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-2%22%20transform%3D%22translate%280.000000%2C%209.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M11%2C0.5%20C11.4142136%2C0.5%2011.7892136%2C0.667893219%2012.0606602%2C0.939339828%20C12.3321068%2C1.21078644%2012.5%2C1.58578644%2012.5%2C2%20L12.5%2C2%20L12.5%2C11%20C12.5%2C11.4142136%2012.3321068%2C11.7892136%2012.0606602%2C12.0606602%20C11.7892136%2C12.3321068%2011.4142136%2C12.5%2011%2C12.5%20L11%2C12.5%20L2%2C12.5%20C1.58578644%2C12.5%201.21078644%2C12.3321068%200.939339828%2C12.0606602%20C0.667893219%2C11.7892136%200.5%2C11.4142136%200.5%2C11%20L0.5%2C11%20L0.5%2C2%20C0.5%2C1.58578644%200.667893219%2C1.21078644%200.939339828%2C0.939339828%20C1.21078644%2C0.667893219%201.58578644%2C0.5%202%2C0.5%20L2%2C0.5%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20stroke%3D%22%23005CFF%22%20fill%3D%22%23FFFFFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22X%22%20transform%3D%22translate%283.986000%2C%204.100000%29%22%20fill%3D%22%23005CFF%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpolygon%20id%3D%22%E8%B7%AF%E5%BE%84%22%20points%3D%223.598%204.9%202.583%203.381%201.582%204.9%200%204.9%201.785%202.422%200.077%200%201.638%200%202.618%201.414%203.584%200%205.082%200%203.374%202.366%205.194%204.9%22%3E%3C%2Fpolygon%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M15%2C10%20L18%2C10%20C18.5522847%2C10%2019%2C10.4477153%2019%2C11%20L19%2C12%20C19%2C12.5522847%2018.5522847%2C13%2018%2C13%20L15%2C13%20C14.4477153%2C13%2014%2C12.5522847%2014%2C12%20L14%2C11%20C14%2C10.4477153%2014.4477153%2C10%2015%2C10%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-7%22%20fill%3D%22%23005CFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M21%2C10%20L24%2C10%20C24.5522847%2C10%2025%2C10.4477153%2025%2C11%20L25%2C12%20C25%2C12.5522847%2024.5522847%2C13%2024%2C13%20L21%2C13%20C20.4477153%2C13%2020%2C12.5522847%2020%2C12%20L20%2C11%20C20%2C10.4477153%2020.4477153%2C10%2021%2C10%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-18%22%20fill%3D%22%23005CFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M15%2C14%20L18%2C14%20C18.5522847%2C14%2019%2C14.4477153%2019%2C15%20L19%2C16%20C19%2C16.5522847%2018.5522847%2C17%2018%2C17%20L15%2C17%20C14.4477153%2C17%2014%2C16.5522847%2014%2C16%20L14%2C15%20C14%2C14.4477153%2014.4477153%2C14%2015%2C14%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-20%22%20fill%3D%22%23005CFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M21%2C14%20L24%2C14%20C24.5522847%2C14%2025%2C14.4477153%2025%2C15%20L25%2C16%20C25%2C16.5522847%2024.5522847%2C17%2024%2C17%20L21%2C17%20C20.4477153%2C17%2020%2C16.5522847%2020%2C16%20L20%2C15%20C20%2C14.4477153%2020.4477153%2C14%2021%2C14%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-19%22%20fill%3D%22%23005CFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M15%2C18%20L18%2C18%20C18.5522847%2C18%2019%2C18.4477153%2019%2C19%20L19%2C20%20C19%2C20.5522847%2018.5522847%2C21%2018%2C21%20L15%2C21%20C14.4477153%2C21%2014%2C20.5522847%2014%2C20%20L14%2C19%20C14%2C18.4477153%2014.4477153%2C18%2015%2C18%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-22%22%20fill%3D%22%23005CFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M21%2C18%20L24%2C18%20C24.5522847%2C18%2025%2C18.4477153%2025%2C19%20L25%2C20%20C25%2C20.5522847%2024.5522847%2C21%2024%2C21%20L21%2C21%20C20.4477153%2C21%2020%2C20.5522847%2020%2C20%20L20%2C19%20C20%2C18.4477153%2020.4477153%2C18%2021%2C18%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-21%22%20fill%3D%22%23005CFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpolygon%20id%3D%22%E8%B7%AF%E5%BE%84-19%22%20fill%3D%22%23005CFF%22%20points%3D%2220.1168478%200%2020.1168478%207.2545499%2028%207.2545499%22%3E%3C%2Fpolygon%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-8%22%20transform%3D%22translate%2817.000000%2C%2019.000000%29%22%20stroke%3D%22%23FFFFFF%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Ccircle%20id%3D%22%E6%A4%AD%E5%9C%86%E5%BD%A2%22%20fill%3D%22%2314C255%22%20cx%3D%228%22%20cy%3D%228%22%20r%3D%227.5%22%3E%3C%2Fcircle%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpolyline%20id%3D%22%E8%B7%AF%E5%BE%84-20%22%20stroke-width%3D%221.13795117%22%20stroke-linecap%3D%22round%22%20points%3D%224%207.78993765%207.25875897%2011%2012%205%22%3E%3C%2Fpolyline%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
9040
|
-
|
|
9041
|
-
var exportFail = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2240px%22%20height%3D%2242px%22%20viewBox%3D%220%200%2040%2042%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%2018%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E5%AF%BC%E5%87%BA%E5%8A%9F%E8%83%BD%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-13%22%20transform%3D%22translate%28-14.000000%2C%20-138.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-21%E5%A4%87%E4%BB%BD-21%22%20transform%3D%22translate%280.000000%2C%20126.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-18%22%20transform%3D%22translate%2814.000000%2C%2012.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20stroke%3D%22%23979797%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20x%3D%220.5%22%20y%3D%220.5%22%20width%3D%2239%22%20height%3D%2241%22%3E%3C%2Frect%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-10%22%20transform%3D%22translate%286.000000%2C%204.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-6%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M4%2C28%20L4%2C2%20C4%2C0.8954305%204.8954305%2C-1.91384796e-17%206%2C0%20L20.1028879%2C0%20L20.1028879%2C0%20L28%2C7.2545499%20L28%2C28%20C28%2C29.1045695%2027.1045695%2C30%2026%2C30%20L6%2C30%20C4.8954305%2C30%204%2C29.1045695%204%2C28%20Z%22%20id%3D%22%E8%B7%AF%E5%BE%84-6%22%20fill%3D%22%231B79FF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-2%22%20transform%3D%22translate%280.000000%2C%209.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M11%2C0.5%20C11.4142136%2C0.5%2011.7892136%2C0.667893219%2012.0606602%2C0.939339828%20C12.3321068%2C1.21078644%2012.5%2C1.58578644%2012.5%2C2%20L12.5%2C2%20L12.5%2C11%20C12.5%2C11.4142136%2012.3321068%2C11.7892136%2012.0606602%2C12.0606602%20C11.7892136%2C12.3321068%2011.4142136%2C12.5%2011%2C12.5%20L11%2C12.5%20L2%2C12.5%20C1.58578644%2C12.5%201.21078644%2C12.3321068%200.939339828%2C12.0606602%20C0.667893219%2C11.7892136%200.5%2C11.4142136%200.5%2C11%20L0.5%2C11%20L0.5%2C2%20C0.5%2C1.58578644%200.667893219%2C1.21078644%200.939339828%2C0.939339828%20C1.21078644%2C0.667893219%201.58578644%2C0.5%202%2C0.5%20L2%2C0.5%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20stroke%3D%22%23005CFF%22%20fill%3D%22%23FFFFFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22X%22%20transform%3D%22translate%283.986000%2C%204.100000%29%22%20fill%3D%22%23005CFF%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpolygon%20id%3D%22%E8%B7%AF%E5%BE%84%22%20points%3D%223.598%204.9%202.583%203.381%201.582%204.9%200%204.9%201.785%202.422%200.077%200%201.638%200%202.618%201.414%203.584%200%205.082%200%203.374%202.366%205.194%204.9%22%3E%3C%2Fpolygon%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M15%2C10%20L18%2C10%20C18.5522847%2C10%2019%2C10.4477153%2019%2C11%20L19%2C12%20C19%2C12.5522847%2018.5522847%2C13%2018%2C13%20L15%2C13%20C14.4477153%2C13%2014%2C12.5522847%2014%2C12%20L14%2C11%20C14%2C10.4477153%2014.4477153%2C10%2015%2C10%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-7%22%20fill%3D%22%23005CFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M21%2C10%20L24%2C10%20C24.5522847%2C10%2025%2C10.4477153%2025%2C11%20L25%2C12%20C25%2C12.5522847%2024.5522847%2C13%2024%2C13%20L21%2C13%20C20.4477153%2C13%2020%2C12.5522847%2020%2C12%20L20%2C11%20C20%2C10.4477153%2020.4477153%2C10%2021%2C10%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-18%22%20fill%3D%22%23005CFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M15%2C14%20L18%2C14%20C18.5522847%2C14%2019%2C14.4477153%2019%2C15%20L19%2C16%20C19%2C16.5522847%2018.5522847%2C17%2018%2C17%20L15%2C17%20C14.4477153%2C17%2014%2C16.5522847%2014%2C16%20L14%2C15%20C14%2C14.4477153%2014.4477153%2C14%2015%2C14%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-20%22%20fill%3D%22%23005CFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M21%2C14%20L24%2C14%20C24.5522847%2C14%2025%2C14.4477153%2025%2C15%20L25%2C16%20C25%2C16.5522847%2024.5522847%2C17%2024%2C17%20L21%2C17%20C20.4477153%2C17%2020%2C16.5522847%2020%2C16%20L20%2C15%20C20%2C14.4477153%2020.4477153%2C14%2021%2C14%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-19%22%20fill%3D%22%23005CFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M15%2C18%20L18%2C18%20C18.5522847%2C18%2019%2C18.4477153%2019%2C19%20L19%2C20%20C19%2C20.5522847%2018.5522847%2C21%2018%2C21%20L15%2C21%20C14.4477153%2C21%2014%2C20.5522847%2014%2C20%20L14%2C19%20C14%2C18.4477153%2014.4477153%2C18%2015%2C18%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-22%22%20fill%3D%22%23005CFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M21%2C18%20L24%2C18%20C24.5522847%2C18%2025%2C18.4477153%2025%2C19%20L25%2C20%20C25%2C20.5522847%2024.5522847%2C21%2024%2C21%20L21%2C21%20C20.4477153%2C21%2020%2C20.5522847%2020%2C20%20L20%2C19%20C20%2C18.4477153%2020.4477153%2C18%2021%2C18%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-21%22%20fill%3D%22%23005CFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpolygon%20id%3D%22%E8%B7%AF%E5%BE%84-19%22%20fill%3D%22%23005CFF%22%20points%3D%2220.1168478%200%2020.1168478%207.2545499%2028%207.2545499%22%3E%3C%2Fpolygon%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-8%22%20transform%3D%22translate%2817.000000%2C%2019.000000%29%22%20stroke%3D%22%23FFFFFF%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Ccircle%20id%3D%22%E6%A4%AD%E5%9C%86%E5%BD%A2%22%20fill%3D%22%23FE0300%22%20cx%3D%228%22%20cy%3D%228%22%20r%3D%227.5%22%3E%3C%2Fcircle%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-9%22%20transform%3D%22translate%285.000000%2C%205.000000%29%22%20stroke-linecap%3D%22round%22%20stroke-width%3D%221.13795117%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpolyline%20id%3D%22%E8%B7%AF%E5%BE%84-20%22%20transform%3D%22translate%283.181981%2C%203.181981%29%20rotate%28-315.000000%29%20translate%28-3.181981%2C%20-3.181981%29%20%22%20points%3D%223.18198052%207.18198052%203.18198052%201.99975567%203.18198052%20-0.818019485%22%3E%3C%2Fpolyline%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpolyline%20id%3D%22%E8%B7%AF%E5%BE%84-20%E5%A4%87%E4%BB%BD%22%20transform%3D%22translate%283.181981%2C%203.181981%29%20scale%28-1%2C%201%29%20rotate%28-315.000000%29%20translate%28-3.181981%2C%20-3.181981%29%20%22%20points%3D%223.18198052%207.18198052%203.18198052%201.99975567%203.18198052%20-0.818019485%22%3E%3C%2Fpolyline%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
9042
|
-
|
|
9043
|
-
var css_248z$8 = ".pictureWrap {\n position: relative;\n width: 44px;\n}\n.pictureWrap::before {\n content: '';\n width: 1px;\n height: 27px;\n position: absolute;\n right: 0;\n top: 10px;\n background-color: #CACACA;\n}\n.tableWrapper :global .ant-table-thead {\n display: none;\n}\n.tableWrapper :global .bs_table_styl {\n padding: 0!important;\n}\n";
|
|
9044
|
-
styleInject(css_248z$8);
|
|
9045
|
-
|
|
9046
|
-
function downloadExcel(data, fileName, isResUrl) {
|
|
9047
|
-
var resUrl = isResUrl ? data : window.URL.createObjectURL(new Blob([data], {
|
|
9048
|
-
type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
|
|
9049
|
-
}));
|
|
9050
|
-
var save_link = document.createElement('a');
|
|
9051
|
-
save_link.href = resUrl;
|
|
9052
|
-
|
|
9053
|
-
if (fileName) {
|
|
9054
|
-
save_link.download = fileName; /// 设置下载文件名
|
|
9055
|
-
}
|
|
9056
|
-
|
|
9057
|
-
save_link.click();
|
|
9058
|
-
}
|
|
9059
|
-
function handleCommonTimeRender(text, format) {
|
|
9060
|
-
var formatType = format || 'YYYY-MM-DD HH:mm:ss';
|
|
9061
|
-
return text && dayjs(text).format(formatType);
|
|
9062
|
-
}
|
|
9063
|
-
|
|
9064
|
-
var ExportHistoryIcon = function ExportHistoryIcon() {
|
|
9065
|
-
var _useState = useState({
|
|
9066
|
-
visible: false,
|
|
9067
|
-
title: '导出列表',
|
|
9068
|
-
width: '420',
|
|
9069
|
-
placement: 'right',
|
|
9070
|
-
onClose: function onClose() {
|
|
9071
|
-
return setExportHistoryParams(_objectSpread2(_objectSpread2({}, exportHistoryParams), {}, {
|
|
9072
|
-
visible: false
|
|
9073
|
-
}));
|
|
9074
|
-
}
|
|
9075
|
-
}),
|
|
9076
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
9077
|
-
exportHistoryParams = _useState2[0],
|
|
9078
|
-
setExportHistoryParams = _useState2[1];
|
|
9079
|
-
|
|
9080
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
9081
|
-
style: {
|
|
9082
|
-
cursor: 'pointer'
|
|
9083
|
-
}
|
|
9084
|
-
}, /*#__PURE__*/React.createElement(Tooltip, {
|
|
9085
|
-
title: "\u5BFC\u51FA\u8BB0\u5F55"
|
|
9086
|
-
}, /*#__PURE__*/React.createElement("img", {
|
|
9087
|
-
width: 24,
|
|
9088
|
-
src: upExport,
|
|
9089
|
-
onClick: function onClick() {
|
|
9090
|
-
return setExportHistoryParams(_objectSpread2(_objectSpread2({}, exportHistoryParams), {}, {
|
|
9091
|
-
visible: true
|
|
9092
|
-
}));
|
|
9093
|
-
}
|
|
9094
|
-
})), exportHistoryParams.visible && /*#__PURE__*/React.createElement(ExportHistoryDrawer, _objectSpread2({}, exportHistoryParams)));
|
|
9095
|
-
};
|
|
9096
|
-
|
|
9097
|
-
var ExportHistoryDrawer = function ExportHistoryDrawer(props) {
|
|
9098
|
-
var _useState3 = useState([]),
|
|
9099
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
9100
|
-
dataSource = _useState4[0],
|
|
9101
|
-
setDataSource = _useState4[1];
|
|
9102
|
-
|
|
9103
|
-
var _useState5 = useState({
|
|
9104
|
-
current: 1,
|
|
9105
|
-
pageSize: 20,
|
|
9106
|
-
total: undefined
|
|
9107
|
-
}),
|
|
9108
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
9109
|
-
pagination = _useState6[0],
|
|
9110
|
-
setPagination = _useState6[1];
|
|
9111
|
-
|
|
9112
|
-
var remoteData = function remoteData(pag) {
|
|
9113
|
-
axios({
|
|
9114
|
-
url: '/oms-ops/businessImport',
|
|
9115
|
-
method: 'get',
|
|
9116
|
-
params: {
|
|
9117
|
-
'qp-type-eq': 100,
|
|
9118
|
-
currentPage: (pag === null || pag === void 0 ? void 0 : pag.current) || pagination.current,
|
|
9119
|
-
pageSize: (pag === null || pag === void 0 ? void 0 : pag.pageSize) || pagination.pageSize
|
|
9120
|
-
}
|
|
9121
|
-
}).then(function (result) {
|
|
9122
|
-
var _result$data, _result$data$data, _result$data2, _result$data2$data, _result$data3, _result$data3$data, _result$data4, _result$data4$data;
|
|
9123
|
-
|
|
9124
|
-
setDataSource(result === null || result === void 0 ? void 0 : (_result$data = result.data) === null || _result$data === void 0 ? void 0 : (_result$data$data = _result$data.data) === null || _result$data$data === void 0 ? void 0 : _result$data$data.items);
|
|
9125
|
-
setPagination({
|
|
9126
|
-
current: result === null || result === void 0 ? void 0 : (_result$data2 = result.data) === null || _result$data2 === void 0 ? void 0 : (_result$data2$data = _result$data2.data) === null || _result$data2$data === void 0 ? void 0 : _result$data2$data.page,
|
|
9127
|
-
pageSize: result === null || result === void 0 ? void 0 : (_result$data3 = result.data) === null || _result$data3 === void 0 ? void 0 : (_result$data3$data = _result$data3.data) === null || _result$data3$data === void 0 ? void 0 : _result$data3$data.size,
|
|
9128
|
-
total: result === null || result === void 0 ? void 0 : (_result$data4 = result.data) === null || _result$data4 === void 0 ? void 0 : (_result$data4$data = _result$data4.data) === null || _result$data4$data === void 0 ? void 0 : _result$data4$data.total
|
|
9129
|
-
});
|
|
9130
|
-
});
|
|
9131
|
-
};
|
|
9132
|
-
|
|
9133
|
-
useEffect(function () {
|
|
9134
|
-
remoteData();
|
|
9135
|
-
}, []);
|
|
9136
|
-
var columns = [{
|
|
9137
|
-
title: false,
|
|
9138
|
-
key: 'name',
|
|
9139
|
-
dataIndex: 'name',
|
|
9140
|
-
render: function render(text, record) {
|
|
9141
|
-
var importStatus = record.importStatus,
|
|
9142
|
-
createTime = record.createTime;
|
|
9143
|
-
var resultIcon;
|
|
9144
|
-
|
|
9145
|
-
switch (importStatus) {
|
|
9146
|
-
case '10':
|
|
9147
|
-
resultIcon = /*#__PURE__*/React.createElement("img", {
|
|
9148
|
-
src: exportProcessing
|
|
9149
|
-
});
|
|
9150
|
-
break;
|
|
9151
|
-
|
|
9152
|
-
case '20':
|
|
9153
|
-
resultIcon = /*#__PURE__*/React.createElement("img", {
|
|
9154
|
-
src: exportSuccess
|
|
9155
|
-
});
|
|
9156
|
-
break;
|
|
9157
|
-
|
|
9158
|
-
case '30':
|
|
9159
|
-
resultIcon = /*#__PURE__*/React.createElement("img", {
|
|
9160
|
-
src: exportFail
|
|
9161
|
-
});
|
|
9162
|
-
}
|
|
9163
|
-
|
|
9164
|
-
return /*#__PURE__*/React.createElement("div", {
|
|
9165
|
-
style: {
|
|
9166
|
-
display: 'flex'
|
|
9167
|
-
}
|
|
9168
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
9169
|
-
className: css_248z$8.pictureWrap
|
|
9170
|
-
}, resultIcon), /*#__PURE__*/React.createElement("div", {
|
|
9171
|
-
style: {
|
|
9172
|
-
marginLeft: '4px'
|
|
9173
|
-
}
|
|
9174
|
-
}, /*#__PURE__*/React.createElement("div", {
|
|
9175
|
-
style: {
|
|
9176
|
-
fontSize: '14px',
|
|
9177
|
-
marginBottom: '-3px'
|
|
9178
|
-
}
|
|
9179
|
-
}, text), /*#__PURE__*/React.createElement("div", {
|
|
9180
|
-
style: {
|
|
9181
|
-
color: '#BFBFBF',
|
|
9182
|
-
fontSize: '12px',
|
|
9183
|
-
lineHeight: '16px'
|
|
9184
|
-
}
|
|
9185
|
-
}, (record === null || record === void 0 ? void 0 : record.importStatus) === '10' ? '导出进行中...' : handleCommonTimeRender(createTime))));
|
|
9186
|
-
}
|
|
9187
|
-
}, {
|
|
9188
|
-
title: false,
|
|
9189
|
-
dataIndex: '2',
|
|
9190
|
-
render: function render(text, record) {
|
|
9191
|
-
return /*#__PURE__*/React.createElement(Space, null, record.importStatus == 20 && /*#__PURE__*/React.createElement(Button, {
|
|
9192
|
-
style: {
|
|
9193
|
-
padding: 0
|
|
9194
|
-
},
|
|
9195
|
-
type: 'link',
|
|
9196
|
-
onClick: function onClick() {
|
|
9197
|
-
downloadExcel(record.importUrl, record.name, true);
|
|
9198
|
-
}
|
|
9199
|
-
}, "\u4E0B\u8F7D"), record.importStatus !== 10 && /*#__PURE__*/React.createElement(Popconfirm, {
|
|
9200
|
-
title: '确定要删除吗?',
|
|
9201
|
-
onConfirm: function onConfirm() {
|
|
9202
|
-
axios({
|
|
9203
|
-
url: "/oms-ops/businessImport/".concat(record.id),
|
|
9204
|
-
method: 'DELETE'
|
|
9205
|
-
}).then(function (result) {
|
|
9206
|
-
message.success('删除成功');
|
|
9207
|
-
remoteData();
|
|
9208
|
-
});
|
|
9209
|
-
}
|
|
9210
|
-
}, /*#__PURE__*/React.createElement(Button, {
|
|
9211
|
-
style: {
|
|
9212
|
-
padding: 0
|
|
9213
|
-
},
|
|
9214
|
-
type: 'link',
|
|
9215
|
-
danger: true
|
|
9216
|
-
}, "\u5220\u9664")));
|
|
9217
|
-
}
|
|
9218
|
-
}];
|
|
9219
|
-
return /*#__PURE__*/React.createElement(Drawer, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
9220
|
-
bodyStyle: {
|
|
9221
|
-
padding: 0
|
|
9222
|
-
}
|
|
9223
|
-
}), /*#__PURE__*/React.createElement("div", {
|
|
9224
|
-
className: css_248z$8.tableWrapper
|
|
9225
|
-
}, /*#__PURE__*/React.createElement(Table, {
|
|
9226
|
-
columns: columns,
|
|
9227
|
-
dataSource: dataSource,
|
|
9228
|
-
pagination: pagination,
|
|
9229
|
-
onChange: remoteData
|
|
9230
9059
|
})));
|
|
9231
9060
|
};
|
|
9232
9061
|
|
|
9233
|
-
export { AddSelect, AddSkuSelect, BillEntry, BusinessSearchSelect$1 as BusinessSearchSelect, index$1 as BusinessTreeSearchSelect, index as CheckOneUser, CommodityEntry, DataImport, DataValidation,
|
|
9062
|
+
export { AddSelect, AddSkuSelect, BillEntry, BusinessSearchSelect$1 as BusinessSearchSelect, index$1 as BusinessTreeSearchSelect, index as CheckOneUser, CommodityEntry, DataImport, DataValidation, ExportIcon, GuideWrapper, QueryMutipleInput, SearchSelect, index$2 as StateFlow, TreeSearchSelect };
|
package/dist/index.js
CHANGED
|
@@ -7,11 +7,10 @@ var React = require('react');
|
|
|
7
7
|
var antd = require('antd');
|
|
8
8
|
var reactBeautifulDnd = require('react-beautiful-dnd');
|
|
9
9
|
var classNames = require('classnames');
|
|
10
|
-
var _ = require('
|
|
10
|
+
var _ = require('lodash');
|
|
11
11
|
var ahooks = require('ahooks');
|
|
12
12
|
var querystring = require('querystring');
|
|
13
13
|
var reactResizable = require('react-resizable');
|
|
14
|
-
var dayjs = require('dayjs');
|
|
15
14
|
|
|
16
15
|
function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
|
|
17
16
|
|
|
@@ -19,7 +18,6 @@ var axios__default = /*#__PURE__*/_interopDefaultLegacy(axios);
|
|
|
19
18
|
var React__default = /*#__PURE__*/_interopDefaultLegacy(React);
|
|
20
19
|
var classNames__default = /*#__PURE__*/_interopDefaultLegacy(classNames);
|
|
21
20
|
var ___default = /*#__PURE__*/_interopDefaultLegacy(_);
|
|
22
|
-
var dayjs__default = /*#__PURE__*/_interopDefaultLegacy(dayjs);
|
|
23
21
|
|
|
24
22
|
var resposne = JSON.parse(localStorage.getItem('userInfo') || '{}');
|
|
25
23
|
function handleRequestAuthHeader(config) {
|
|
@@ -426,6 +424,16 @@ function _regeneratorRuntime() {
|
|
|
426
424
|
}, exports;
|
|
427
425
|
}
|
|
428
426
|
|
|
427
|
+
function _typeof(obj) {
|
|
428
|
+
"@babel/helpers - typeof";
|
|
429
|
+
|
|
430
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
431
|
+
return typeof obj;
|
|
432
|
+
} : function (obj) {
|
|
433
|
+
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
434
|
+
}, _typeof(obj);
|
|
435
|
+
}
|
|
436
|
+
|
|
429
437
|
function asyncGeneratorStep(gen, resolve, reject, _next, _throw, key, arg) {
|
|
430
438
|
try {
|
|
431
439
|
var info = gen[key](arg);
|
|
@@ -838,14 +846,14 @@ function _objectWithoutProperties$1(source, excluded) {
|
|
|
838
846
|
return target;
|
|
839
847
|
}
|
|
840
848
|
|
|
841
|
-
function _typeof(obj) {
|
|
849
|
+
function _typeof$1(obj) {
|
|
842
850
|
"@babel/helpers - typeof";
|
|
843
851
|
|
|
844
|
-
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
852
|
+
return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) {
|
|
845
853
|
return typeof obj;
|
|
846
854
|
} : function (obj) {
|
|
847
855
|
return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj;
|
|
848
|
-
}, _typeof(obj);
|
|
856
|
+
}, _typeof$1(obj);
|
|
849
857
|
}
|
|
850
858
|
|
|
851
859
|
/**
|
|
@@ -1750,7 +1758,7 @@ function warning$1(valid, message) {
|
|
|
1750
1758
|
warningOnce(valid, "[@ant-design/icons] ".concat(message));
|
|
1751
1759
|
}
|
|
1752
1760
|
function isIconDefinition(target) {
|
|
1753
|
-
return _typeof(target) === 'object' && typeof target.name === 'string' && typeof target.theme === 'string' && (_typeof(target.icon) === 'object' || typeof target.icon === 'function');
|
|
1761
|
+
return _typeof$1(target) === 'object' && typeof target.name === 'string' && typeof target.theme === 'string' && (_typeof$1(target.icon) === 'object' || typeof target.icon === 'function');
|
|
1754
1762
|
}
|
|
1755
1763
|
function normalizeAttrs() {
|
|
1756
1764
|
var attrs = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {};
|
|
@@ -9009,21 +9017,44 @@ GuideWrapper.Field = Field;
|
|
|
9009
9017
|
var exportlogo = "data:image/png;base64,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";
|
|
9010
9018
|
|
|
9011
9019
|
var ExportIcon = function ExportIcon(_ref) {
|
|
9012
|
-
var
|
|
9013
|
-
|
|
9014
|
-
|
|
9020
|
+
var request = _ref.request,
|
|
9021
|
+
tableRef = _ref.tableRef;
|
|
9022
|
+
var url = request.url,
|
|
9023
|
+
params = request.params,
|
|
9024
|
+
others = request.others;
|
|
9015
9025
|
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
9016
9026
|
style: {
|
|
9017
9027
|
cursor: 'pointer'
|
|
9018
9028
|
}
|
|
9019
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.
|
|
9020
|
-
title:
|
|
9021
|
-
|
|
9029
|
+
}, /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
9030
|
+
title: "\u5BFC\u51FA\u6570\u636E"
|
|
9031
|
+
}, /*#__PURE__*/React__default['default'].createElement("img", {
|
|
9032
|
+
width: 32,
|
|
9033
|
+
src: exportlogo,
|
|
9034
|
+
onClick: function onClick() {
|
|
9035
|
+
var _tableRef$current, _convertedParams$sele, _convertedParams$sele2;
|
|
9036
|
+
|
|
9037
|
+
var convertedParams = tableRef === null || tableRef === void 0 ? void 0 : (_tableRef$current = tableRef.current) === null || _tableRef$current === void 0 ? void 0 : _tableRef$current.getExportParams();
|
|
9038
|
+
var requestData;
|
|
9039
|
+
|
|
9040
|
+
if (typeof params === 'function') {
|
|
9041
|
+
requestData = _objectSpread2({}, _.omit(params(convertedParams), 'selectedRows'));
|
|
9042
|
+
} else if (_typeof(params) === 'object') {
|
|
9043
|
+
requestData = _objectSpread2({}, params);
|
|
9044
|
+
}
|
|
9045
|
+
|
|
9046
|
+
if (!params) {
|
|
9047
|
+
requestData = _.omit(convertedParams, 'selectedRows');
|
|
9048
|
+
}
|
|
9049
|
+
|
|
9050
|
+
requestData['qp-id-in'] = convertedParams === null || convertedParams === void 0 ? void 0 : (_convertedParams$sele = convertedParams.selectedRows) === null || _convertedParams$sele === void 0 ? void 0 : (_convertedParams$sele2 = _convertedParams$sele.map(function (d) {
|
|
9051
|
+
return d.id;
|
|
9052
|
+
})) === null || _convertedParams$sele2 === void 0 ? void 0 : _convertedParams$sele2.join(',');
|
|
9022
9053
|
axios__default['default'](_objectSpread2({
|
|
9023
9054
|
url: url,
|
|
9024
9055
|
method: 'POST',
|
|
9025
|
-
data:
|
|
9026
|
-
},
|
|
9056
|
+
data: requestData
|
|
9057
|
+
}, others)).then(function (result) {
|
|
9027
9058
|
result = result.data;
|
|
9028
9059
|
|
|
9029
9060
|
if (result.code !== '000000') {
|
|
@@ -9036,209 +9067,6 @@ var ExportIcon = function ExportIcon(_ref) {
|
|
|
9036
9067
|
antd.message.success('任务已排入导出队列');
|
|
9037
9068
|
});
|
|
9038
9069
|
}
|
|
9039
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
9040
|
-
title: "\u5BFC\u51FA\u6570\u636E"
|
|
9041
|
-
}, /*#__PURE__*/React__default['default'].createElement("img", {
|
|
9042
|
-
width: 32,
|
|
9043
|
-
src: exportlogo
|
|
9044
|
-
}))));
|
|
9045
|
-
};
|
|
9046
|
-
|
|
9047
|
-
var upExport = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2224px%22%20height%3D%2224px%22%20viewBox%3D%220%200%2024%2024%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3Exinglan-icon-message%E5%A4%87%E4%BB%BD%205%3C%2Ftitle%3E%20%20%20%20%3Cdefs%3E%20%20%20%20%20%20%20%20%3Crect%20id%3D%22path-1%22%20x%3D%220%22%20y%3D%220%22%20width%3D%2224%22%20height%3D%2224%22%3E%3C%2Frect%3E%20%20%20%20%3C%2Fdefs%3E%20%20%20%20%3Cg%20id%3D%22%E5%AF%BC%E5%87%BA%E5%8A%9F%E8%83%BD%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E5%AF%BC%E5%87%BA%E5%8A%9F%E8%83%BD-%E5%AF%BC%E5%87%BA%E6%95%B0%E6%8D%AE%E8%BD%AC%E5%85%A5%E5%90%8E%E5%8F%B0%E6%8F%90%E7%A4%BA%22%20transform%3D%22translate%28-1659.000000%2C%20-18.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E5%AF%BC%E5%85%A5%E3%80%81%E5%AF%BC%E5%87%BA%E8%AE%B0%E5%BD%95icon%22%20transform%3D%22translate%281659.000000%2C%2018.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cmask%20id%3D%22mask-2%22%20fill%3D%22white%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fmask%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cuse%20id%3D%22xinglan-icon-message%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20xlink%3Ahref%3D%22%23path-1%22%3E%3C%2Fuse%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22responsetime%22%20mask%3D%22url%28%23mask-2%29%22%20fill%3D%22%23000000%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20transform%3D%22translate%283.000000%2C%202.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M5.21516417%2C6.74357406%20L4.07552238%2C7.8711358%20L0%2C3.83881343%20L3.87940299%2C0%20L5.02011939%2C1.12756173%20L3.05785074%2C3.06796734%20L9.4438209%2C3.06903059%20C14.112%2C3.06903059%2017.9075821%2C6.76802848%2017.9978507%2C11.3659924%20L18%2C11.5345153%20C18%2C16.2095638%2014.1689552%2C20%209.4438209%2C20%20C4.71814925%2C20%200.887104494%2C16.2095638%200.887104469%2C11.5345153%20L2.49904477%2C11.5345153%20C2.49904477%2C15.3292044%205.6084776%2C18.4051461%209.4438209%2C18.4051461%20C13.2786269%2C18.4051461%2016.3880597%2C15.3292044%2016.3880597%2C11.5345153%20C16.3880597%2C7.73982616%2013.2786269%2C4.66388453%209.4438209%2C4.66388453%20L3.11265671%2C4.66335292%20L5.21516417%2C6.74357406%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M10.4%2C7.2%20L10.399%2C12.381%20L12.4660494%2C10.315207%20L13.6934831%2C11.5426407%20L9.55833777%2C15.677786%20L5.2%2C11.5508424%20L6.44018239%2C10.31066%20L8.599%2C12.309%20L8.6%2C7.2%20L10.4%2C7.2%20Z%22%20id%3D%22%E5%BD%A2%E7%8A%B6%E7%BB%93%E5%90%88%22%20transform%3D%22translate%289.446742%2C%2011.438893%29%20scale%281%2C%20-1%29%20translate%28-9.446742%2C%20-11.438893%29%20%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
9048
|
-
|
|
9049
|
-
var exportProcessing = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2240px%22%20height%3D%2242px%22%20viewBox%3D%220%200%2040%2042%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%2017%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E5%AF%BC%E5%87%BA%E5%8A%9F%E8%83%BD%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-13%22%20transform%3D%22translate%28-14.000000%2C%20-74.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-21%E5%A4%87%E4%BB%BD-20%22%20transform%3D%22translate%280.000000%2C%2064.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-17%22%20transform%3D%22translate%2814.000000%2C%2010.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20stroke%3D%22%23979797%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20x%3D%220.5%22%20y%3D%220.5%22%20width%3D%2239%22%20height%3D%2241%22%3E%3C%2Frect%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-6%22%20transform%3D%22translate%286.000000%2C%206.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M4%2C28%20L4%2C2%20C4%2C0.8954305%204.8954305%2C-1.91384796e-17%206%2C0%20L20.1028879%2C0%20L20.1028879%2C0%20L28%2C7.2545499%20L28%2C28%20C28%2C29.1045695%2027.1045695%2C30%2026%2C30%20L6%2C30%20C4.8954305%2C30%204%2C29.1045695%204%2C28%20Z%22%20id%3D%22%E8%B7%AF%E5%BE%84-6%22%20fill%3D%22%231B79FF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-2%22%20transform%3D%22translate%280.000000%2C%209.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M11%2C0.5%20C11.4142136%2C0.5%2011.7892136%2C0.667893219%2012.0606602%2C0.939339828%20C12.3321068%2C1.21078644%2012.5%2C1.58578644%2012.5%2C2%20L12.5%2C2%20L12.5%2C11%20C12.5%2C11.4142136%2012.3321068%2C11.7892136%2012.0606602%2C12.0606602%20C11.7892136%2C12.3321068%2011.4142136%2C12.5%2011%2C12.5%20L11%2C12.5%20L2%2C12.5%20C1.58578644%2C12.5%201.21078644%2C12.3321068%200.939339828%2C12.0606602%20C0.667893219%2C11.7892136%200.5%2C11.4142136%200.5%2C11%20L0.5%2C11%20L0.5%2C2%20C0.5%2C1.58578644%200.667893219%2C1.21078644%200.939339828%2C0.939339828%20C1.21078644%2C0.667893219%201.58578644%2C0.5%202%2C0.5%20L2%2C0.5%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20stroke%3D%22%23005CFF%22%20fill%3D%22%23FFFFFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22X%22%20transform%3D%22translate%283.986000%2C%204.100000%29%22%20fill%3D%22%23005CFF%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpolygon%20id%3D%22%E8%B7%AF%E5%BE%84%22%20points%3D%223.598%204.9%202.583%203.381%201.582%204.9%200%204.9%201.785%202.422%200.077%200%201.638%200%202.618%201.414%203.584%200%205.082%200%203.374%202.366%205.194%204.9%22%3E%3C%2Fpolygon%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M15%2C10%20L18%2C10%20C18.5522847%2C10%2019%2C10.4477153%2019%2C11%20L19%2C12%20C19%2C12.5522847%2018.5522847%2C13%2018%2C13%20L15%2C13%20C14.4477153%2C13%2014%2C12.5522847%2014%2C12%20L14%2C11%20C14%2C10.4477153%2014.4477153%2C10%2015%2C10%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-7%22%20fill%3D%22%23005CFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M21%2C10%20L24%2C10%20C24.5522847%2C10%2025%2C10.4477153%2025%2C11%20L25%2C12%20C25%2C12.5522847%2024.5522847%2C13%2024%2C13%20L21%2C13%20C20.4477153%2C13%2020%2C12.5522847%2020%2C12%20L20%2C11%20C20%2C10.4477153%2020.4477153%2C10%2021%2C10%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-18%22%20fill%3D%22%23005CFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M15%2C14%20L18%2C14%20C18.5522847%2C14%2019%2C14.4477153%2019%2C15%20L19%2C16%20C19%2C16.5522847%2018.5522847%2C17%2018%2C17%20L15%2C17%20C14.4477153%2C17%2014%2C16.5522847%2014%2C16%20L14%2C15%20C14%2C14.4477153%2014.4477153%2C14%2015%2C14%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-20%22%20fill%3D%22%23005CFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M21%2C14%20L24%2C14%20C24.5522847%2C14%2025%2C14.4477153%2025%2C15%20L25%2C16%20C25%2C16.5522847%2024.5522847%2C17%2024%2C17%20L21%2C17%20C20.4477153%2C17%2020%2C16.5522847%2020%2C16%20L20%2C15%20C20%2C14.4477153%2020.4477153%2C14%2021%2C14%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-19%22%20fill%3D%22%23005CFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M15%2C18%20L18%2C18%20C18.5522847%2C18%2019%2C18.4477153%2019%2C19%20L19%2C20%20C19%2C20.5522847%2018.5522847%2C21%2018%2C21%20L15%2C21%20C14.4477153%2C21%2014%2C20.5522847%2014%2C20%20L14%2C19%20C14%2C18.4477153%2014.4477153%2C18%2015%2C18%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-22%22%20fill%3D%22%23005CFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M21%2C18%20L24%2C18%20C24.5522847%2C18%2025%2C18.4477153%2025%2C19%20L25%2C20%20C25%2C20.5522847%2024.5522847%2C21%2024%2C21%20L21%2C21%20C20.4477153%2C21%2020%2C20.5522847%2020%2C20%20L20%2C19%20C20%2C18.4477153%2020.4477153%2C18%2021%2C18%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-21%22%20fill%3D%22%23005CFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpolygon%20id%3D%22%E8%B7%AF%E5%BE%84-19%22%20fill%3D%22%23005CFF%22%20points%3D%2220.1168478%200%2020.1168478%207.2545499%2028%207.2545499%22%3E%3C%2Fpolygon%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
9050
|
-
|
|
9051
|
-
var exportSuccess = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2240px%22%20height%3D%2242px%22%20viewBox%3D%220%200%2040%2042%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%2019%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E5%AF%BC%E5%87%BA%E5%8A%9F%E8%83%BD%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-13%22%20transform%3D%22translate%28-14.000000%2C%20-200.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-21%E5%A4%87%E4%BB%BD-22%22%20transform%3D%22translate%280.000000%2C%20188.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-19%22%20transform%3D%22translate%2814.000000%2C%2012.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20stroke%3D%22%23979797%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20x%3D%220.5%22%20y%3D%220.5%22%20width%3D%2239%22%20height%3D%2241%22%3E%3C%2Frect%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-16%22%20transform%3D%22translate%286.000000%2C%204.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-6%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M4%2C28%20L4%2C2%20C4%2C0.8954305%204.8954305%2C-1.91384796e-17%206%2C0%20L20.1028879%2C0%20L20.1028879%2C0%20L28%2C7.2545499%20L28%2C28%20C28%2C29.1045695%2027.1045695%2C30%2026%2C30%20L6%2C30%20C4.8954305%2C30%204%2C29.1045695%204%2C28%20Z%22%20id%3D%22%E8%B7%AF%E5%BE%84-6%22%20fill%3D%22%231B79FF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-2%22%20transform%3D%22translate%280.000000%2C%209.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M11%2C0.5%20C11.4142136%2C0.5%2011.7892136%2C0.667893219%2012.0606602%2C0.939339828%20C12.3321068%2C1.21078644%2012.5%2C1.58578644%2012.5%2C2%20L12.5%2C2%20L12.5%2C11%20C12.5%2C11.4142136%2012.3321068%2C11.7892136%2012.0606602%2C12.0606602%20C11.7892136%2C12.3321068%2011.4142136%2C12.5%2011%2C12.5%20L11%2C12.5%20L2%2C12.5%20C1.58578644%2C12.5%201.21078644%2C12.3321068%200.939339828%2C12.0606602%20C0.667893219%2C11.7892136%200.5%2C11.4142136%200.5%2C11%20L0.5%2C11%20L0.5%2C2%20C0.5%2C1.58578644%200.667893219%2C1.21078644%200.939339828%2C0.939339828%20C1.21078644%2C0.667893219%201.58578644%2C0.5%202%2C0.5%20L2%2C0.5%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20stroke%3D%22%23005CFF%22%20fill%3D%22%23FFFFFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22X%22%20transform%3D%22translate%283.986000%2C%204.100000%29%22%20fill%3D%22%23005CFF%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpolygon%20id%3D%22%E8%B7%AF%E5%BE%84%22%20points%3D%223.598%204.9%202.583%203.381%201.582%204.9%200%204.9%201.785%202.422%200.077%200%201.638%200%202.618%201.414%203.584%200%205.082%200%203.374%202.366%205.194%204.9%22%3E%3C%2Fpolygon%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M15%2C10%20L18%2C10%20C18.5522847%2C10%2019%2C10.4477153%2019%2C11%20L19%2C12%20C19%2C12.5522847%2018.5522847%2C13%2018%2C13%20L15%2C13%20C14.4477153%2C13%2014%2C12.5522847%2014%2C12%20L14%2C11%20C14%2C10.4477153%2014.4477153%2C10%2015%2C10%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-7%22%20fill%3D%22%23005CFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M21%2C10%20L24%2C10%20C24.5522847%2C10%2025%2C10.4477153%2025%2C11%20L25%2C12%20C25%2C12.5522847%2024.5522847%2C13%2024%2C13%20L21%2C13%20C20.4477153%2C13%2020%2C12.5522847%2020%2C12%20L20%2C11%20C20%2C10.4477153%2020.4477153%2C10%2021%2C10%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-18%22%20fill%3D%22%23005CFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M15%2C14%20L18%2C14%20C18.5522847%2C14%2019%2C14.4477153%2019%2C15%20L19%2C16%20C19%2C16.5522847%2018.5522847%2C17%2018%2C17%20L15%2C17%20C14.4477153%2C17%2014%2C16.5522847%2014%2C16%20L14%2C15%20C14%2C14.4477153%2014.4477153%2C14%2015%2C14%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-20%22%20fill%3D%22%23005CFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M21%2C14%20L24%2C14%20C24.5522847%2C14%2025%2C14.4477153%2025%2C15%20L25%2C16%20C25%2C16.5522847%2024.5522847%2C17%2024%2C17%20L21%2C17%20C20.4477153%2C17%2020%2C16.5522847%2020%2C16%20L20%2C15%20C20%2C14.4477153%2020.4477153%2C14%2021%2C14%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-19%22%20fill%3D%22%23005CFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M15%2C18%20L18%2C18%20C18.5522847%2C18%2019%2C18.4477153%2019%2C19%20L19%2C20%20C19%2C20.5522847%2018.5522847%2C21%2018%2C21%20L15%2C21%20C14.4477153%2C21%2014%2C20.5522847%2014%2C20%20L14%2C19%20C14%2C18.4477153%2014.4477153%2C18%2015%2C18%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-22%22%20fill%3D%22%23005CFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M21%2C18%20L24%2C18%20C24.5522847%2C18%2025%2C18.4477153%2025%2C19%20L25%2C20%20C25%2C20.5522847%2024.5522847%2C21%2024%2C21%20L21%2C21%20C20.4477153%2C21%2020%2C20.5522847%2020%2C20%20L20%2C19%20C20%2C18.4477153%2020.4477153%2C18%2021%2C18%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-21%22%20fill%3D%22%23005CFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpolygon%20id%3D%22%E8%B7%AF%E5%BE%84-19%22%20fill%3D%22%23005CFF%22%20points%3D%2220.1168478%200%2020.1168478%207.2545499%2028%207.2545499%22%3E%3C%2Fpolygon%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-8%22%20transform%3D%22translate%2817.000000%2C%2019.000000%29%22%20stroke%3D%22%23FFFFFF%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Ccircle%20id%3D%22%E6%A4%AD%E5%9C%86%E5%BD%A2%22%20fill%3D%22%2314C255%22%20cx%3D%228%22%20cy%3D%228%22%20r%3D%227.5%22%3E%3C%2Fcircle%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpolyline%20id%3D%22%E8%B7%AF%E5%BE%84-20%22%20stroke-width%3D%221.13795117%22%20stroke-linecap%3D%22round%22%20points%3D%224%207.78993765%207.25875897%2011%2012%205%22%3E%3C%2Fpolyline%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
9052
|
-
|
|
9053
|
-
var exportFail = "data:image/svg+xml,%3C%3Fxml%20version%3D%221.0%22%20encoding%3D%22UTF-8%22%3F%3E%3Csvg%20width%3D%2240px%22%20height%3D%2242px%22%20viewBox%3D%220%200%2040%2042%22%20version%3D%221.1%22%20xmlns%3D%22http%3A%2F%2Fwww.w3.org%2F2000%2Fsvg%22%20xmlns%3Axlink%3D%22http%3A%2F%2Fwww.w3.org%2F1999%2Fxlink%22%3E%20%20%20%20%3Ctitle%3E%E7%BC%96%E7%BB%84%2018%3C%2Ftitle%3E%20%20%20%20%3Cg%20id%3D%22%E5%AF%BC%E5%87%BA%E5%8A%9F%E8%83%BD%22%20stroke%3D%22none%22%20stroke-width%3D%221%22%20fill%3D%22none%22%20fill-rule%3D%22evenodd%22%3E%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-13%22%20transform%3D%22translate%28-14.000000%2C%20-138.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-21%E5%A4%87%E4%BB%BD-21%22%20transform%3D%22translate%280.000000%2C%20126.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-18%22%20transform%3D%22translate%2814.000000%2C%2012.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Crect%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20stroke%3D%22%23979797%22%20fill%3D%22%23D8D8D8%22%20opacity%3D%220%22%20x%3D%220.5%22%20y%3D%220.5%22%20width%3D%2239%22%20height%3D%2241%22%3E%3C%2Frect%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-10%22%20transform%3D%22translate%286.000000%2C%204.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-6%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M4%2C28%20L4%2C2%20C4%2C0.8954305%204.8954305%2C-1.91384796e-17%206%2C0%20L20.1028879%2C0%20L20.1028879%2C0%20L28%2C7.2545499%20L28%2C28%20C28%2C29.1045695%2027.1045695%2C30%2026%2C30%20L6%2C30%20C4.8954305%2C30%204%2C29.1045695%204%2C28%20Z%22%20id%3D%22%E8%B7%AF%E5%BE%84-6%22%20fill%3D%22%231B79FF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-2%22%20transform%3D%22translate%280.000000%2C%209.000000%29%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M11%2C0.5%20C11.4142136%2C0.5%2011.7892136%2C0.667893219%2012.0606602%2C0.939339828%20C12.3321068%2C1.21078644%2012.5%2C1.58578644%2012.5%2C2%20L12.5%2C2%20L12.5%2C11%20C12.5%2C11.4142136%2012.3321068%2C11.7892136%2012.0606602%2C12.0606602%20C11.7892136%2C12.3321068%2011.4142136%2C12.5%2011%2C12.5%20L11%2C12.5%20L2%2C12.5%20C1.58578644%2C12.5%201.21078644%2C12.3321068%200.939339828%2C12.0606602%20C0.667893219%2C11.7892136%200.5%2C11.4142136%200.5%2C11%20L0.5%2C11%20L0.5%2C2%20C0.5%2C1.58578644%200.667893219%2C1.21078644%200.939339828%2C0.939339828%20C1.21078644%2C0.667893219%201.58578644%2C0.5%202%2C0.5%20L2%2C0.5%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%22%20stroke%3D%22%23005CFF%22%20fill%3D%22%23FFFFFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22X%22%20transform%3D%22translate%283.986000%2C%204.100000%29%22%20fill%3D%22%23005CFF%22%20fill-rule%3D%22nonzero%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpolygon%20id%3D%22%E8%B7%AF%E5%BE%84%22%20points%3D%223.598%204.9%202.583%203.381%201.582%204.9%200%204.9%201.785%202.422%200.077%200%201.638%200%202.618%201.414%203.584%200%205.082%200%203.374%202.366%205.194%204.9%22%3E%3C%2Fpolygon%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M15%2C10%20L18%2C10%20C18.5522847%2C10%2019%2C10.4477153%2019%2C11%20L19%2C12%20C19%2C12.5522847%2018.5522847%2C13%2018%2C13%20L15%2C13%20C14.4477153%2C13%2014%2C12.5522847%2014%2C12%20L14%2C11%20C14%2C10.4477153%2014.4477153%2C10%2015%2C10%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-7%22%20fill%3D%22%23005CFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M21%2C10%20L24%2C10%20C24.5522847%2C10%2025%2C10.4477153%2025%2C11%20L25%2C12%20C25%2C12.5522847%2024.5522847%2C13%2024%2C13%20L21%2C13%20C20.4477153%2C13%2020%2C12.5522847%2020%2C12%20L20%2C11%20C20%2C10.4477153%2020.4477153%2C10%2021%2C10%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-18%22%20fill%3D%22%23005CFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M15%2C14%20L18%2C14%20C18.5522847%2C14%2019%2C14.4477153%2019%2C15%20L19%2C16%20C19%2C16.5522847%2018.5522847%2C17%2018%2C17%20L15%2C17%20C14.4477153%2C17%2014%2C16.5522847%2014%2C16%20L14%2C15%20C14%2C14.4477153%2014.4477153%2C14%2015%2C14%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-20%22%20fill%3D%22%23005CFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M21%2C14%20L24%2C14%20C24.5522847%2C14%2025%2C14.4477153%2025%2C15%20L25%2C16%20C25%2C16.5522847%2024.5522847%2C17%2024%2C17%20L21%2C17%20C20.4477153%2C17%2020%2C16.5522847%2020%2C16%20L20%2C15%20C20%2C14.4477153%2020.4477153%2C14%2021%2C14%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-19%22%20fill%3D%22%23005CFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M15%2C18%20L18%2C18%20C18.5522847%2C18%2019%2C18.4477153%2019%2C19%20L19%2C20%20C19%2C20.5522847%2018.5522847%2C21%2018%2C21%20L15%2C21%20C14.4477153%2C21%2014%2C20.5522847%2014%2C20%20L14%2C19%20C14%2C18.4477153%2014.4477153%2C18%2015%2C18%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-22%22%20fill%3D%22%23005CFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpath%20d%3D%22M21%2C18%20L24%2C18%20C24.5522847%2C18%2025%2C18.4477153%2025%2C19%20L25%2C20%20C25%2C20.5522847%2024.5522847%2C21%2024%2C21%20L21%2C21%20C20.4477153%2C21%2020%2C20.5522847%2020%2C20%20L20%2C19%20C20%2C18.4477153%2020.4477153%2C18%2021%2C18%20Z%22%20id%3D%22%E7%9F%A9%E5%BD%A2%E5%A4%87%E4%BB%BD-21%22%20fill%3D%22%23005CFF%22%3E%3C%2Fpath%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpolygon%20id%3D%22%E8%B7%AF%E5%BE%84-19%22%20fill%3D%22%23005CFF%22%20points%3D%2220.1168478%200%2020.1168478%207.2545499%2028%207.2545499%22%3E%3C%2Fpolygon%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-8%22%20transform%3D%22translate%2817.000000%2C%2019.000000%29%22%20stroke%3D%22%23FFFFFF%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Ccircle%20id%3D%22%E6%A4%AD%E5%9C%86%E5%BD%A2%22%20fill%3D%22%23FE0300%22%20cx%3D%228%22%20cy%3D%228%22%20r%3D%227.5%22%3E%3C%2Fcircle%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cg%20id%3D%22%E7%BC%96%E7%BB%84-9%22%20transform%3D%22translate%285.000000%2C%205.000000%29%22%20stroke-linecap%3D%22round%22%20stroke-width%3D%221.13795117%22%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpolyline%20id%3D%22%E8%B7%AF%E5%BE%84-20%22%20transform%3D%22translate%283.181981%2C%203.181981%29%20rotate%28-315.000000%29%20translate%28-3.181981%2C%20-3.181981%29%20%22%20points%3D%223.18198052%207.18198052%203.18198052%201.99975567%203.18198052%20-0.818019485%22%3E%3C%2Fpolyline%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3Cpolyline%20id%3D%22%E8%B7%AF%E5%BE%84-20%E5%A4%87%E4%BB%BD%22%20transform%3D%22translate%283.181981%2C%203.181981%29%20scale%28-1%2C%201%29%20rotate%28-315.000000%29%20translate%28-3.181981%2C%20-3.181981%29%20%22%20points%3D%223.18198052%207.18198052%203.18198052%201.99975567%203.18198052%20-0.818019485%22%3E%3C%2Fpolyline%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%20%20%20%20%3C%2Fg%3E%20%20%20%20%3C%2Fg%3E%3C%2Fsvg%3E";
|
|
9054
|
-
|
|
9055
|
-
var css_248z$8 = ".pictureWrap {\n position: relative;\n width: 44px;\n}\n.pictureWrap::before {\n content: '';\n width: 1px;\n height: 27px;\n position: absolute;\n right: 0;\n top: 10px;\n background-color: #CACACA;\n}\n.tableWrapper :global .ant-table-thead {\n display: none;\n}\n.tableWrapper :global .bs_table_styl {\n padding: 0!important;\n}\n";
|
|
9056
|
-
styleInject(css_248z$8);
|
|
9057
|
-
|
|
9058
|
-
function downloadExcel(data, fileName, isResUrl) {
|
|
9059
|
-
var resUrl = isResUrl ? data : window.URL.createObjectURL(new Blob([data], {
|
|
9060
|
-
type: 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'
|
|
9061
|
-
}));
|
|
9062
|
-
var save_link = document.createElement('a');
|
|
9063
|
-
save_link.href = resUrl;
|
|
9064
|
-
|
|
9065
|
-
if (fileName) {
|
|
9066
|
-
save_link.download = fileName; /// 设置下载文件名
|
|
9067
|
-
}
|
|
9068
|
-
|
|
9069
|
-
save_link.click();
|
|
9070
|
-
}
|
|
9071
|
-
function handleCommonTimeRender(text, format) {
|
|
9072
|
-
var formatType = format || 'YYYY-MM-DD HH:mm:ss';
|
|
9073
|
-
return text && dayjs__default['default'](text).format(formatType);
|
|
9074
|
-
}
|
|
9075
|
-
|
|
9076
|
-
var ExportHistoryIcon = function ExportHistoryIcon() {
|
|
9077
|
-
var _useState = React.useState({
|
|
9078
|
-
visible: false,
|
|
9079
|
-
title: '导出列表',
|
|
9080
|
-
width: '420',
|
|
9081
|
-
placement: 'right',
|
|
9082
|
-
onClose: function onClose() {
|
|
9083
|
-
return setExportHistoryParams(_objectSpread2(_objectSpread2({}, exportHistoryParams), {}, {
|
|
9084
|
-
visible: false
|
|
9085
|
-
}));
|
|
9086
|
-
}
|
|
9087
|
-
}),
|
|
9088
|
-
_useState2 = _slicedToArray(_useState, 2),
|
|
9089
|
-
exportHistoryParams = _useState2[0],
|
|
9090
|
-
setExportHistoryParams = _useState2[1];
|
|
9091
|
-
|
|
9092
|
-
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
9093
|
-
style: {
|
|
9094
|
-
cursor: 'pointer'
|
|
9095
|
-
}
|
|
9096
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Tooltip, {
|
|
9097
|
-
title: "\u5BFC\u51FA\u8BB0\u5F55"
|
|
9098
|
-
}, /*#__PURE__*/React__default['default'].createElement("img", {
|
|
9099
|
-
width: 24,
|
|
9100
|
-
src: upExport,
|
|
9101
|
-
onClick: function onClick() {
|
|
9102
|
-
return setExportHistoryParams(_objectSpread2(_objectSpread2({}, exportHistoryParams), {}, {
|
|
9103
|
-
visible: true
|
|
9104
|
-
}));
|
|
9105
|
-
}
|
|
9106
|
-
})), exportHistoryParams.visible && /*#__PURE__*/React__default['default'].createElement(ExportHistoryDrawer, _objectSpread2({}, exportHistoryParams)));
|
|
9107
|
-
};
|
|
9108
|
-
|
|
9109
|
-
var ExportHistoryDrawer = function ExportHistoryDrawer(props) {
|
|
9110
|
-
var _useState3 = React.useState([]),
|
|
9111
|
-
_useState4 = _slicedToArray(_useState3, 2),
|
|
9112
|
-
dataSource = _useState4[0],
|
|
9113
|
-
setDataSource = _useState4[1];
|
|
9114
|
-
|
|
9115
|
-
var _useState5 = React.useState({
|
|
9116
|
-
current: 1,
|
|
9117
|
-
pageSize: 20,
|
|
9118
|
-
total: undefined
|
|
9119
|
-
}),
|
|
9120
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
9121
|
-
pagination = _useState6[0],
|
|
9122
|
-
setPagination = _useState6[1];
|
|
9123
|
-
|
|
9124
|
-
var remoteData = function remoteData(pag) {
|
|
9125
|
-
axios__default['default']({
|
|
9126
|
-
url: '/oms-ops/businessImport',
|
|
9127
|
-
method: 'get',
|
|
9128
|
-
params: {
|
|
9129
|
-
'qp-type-eq': 100,
|
|
9130
|
-
currentPage: (pag === null || pag === void 0 ? void 0 : pag.current) || pagination.current,
|
|
9131
|
-
pageSize: (pag === null || pag === void 0 ? void 0 : pag.pageSize) || pagination.pageSize
|
|
9132
|
-
}
|
|
9133
|
-
}).then(function (result) {
|
|
9134
|
-
var _result$data, _result$data$data, _result$data2, _result$data2$data, _result$data3, _result$data3$data, _result$data4, _result$data4$data;
|
|
9135
|
-
|
|
9136
|
-
setDataSource(result === null || result === void 0 ? void 0 : (_result$data = result.data) === null || _result$data === void 0 ? void 0 : (_result$data$data = _result$data.data) === null || _result$data$data === void 0 ? void 0 : _result$data$data.items);
|
|
9137
|
-
setPagination({
|
|
9138
|
-
current: result === null || result === void 0 ? void 0 : (_result$data2 = result.data) === null || _result$data2 === void 0 ? void 0 : (_result$data2$data = _result$data2.data) === null || _result$data2$data === void 0 ? void 0 : _result$data2$data.page,
|
|
9139
|
-
pageSize: result === null || result === void 0 ? void 0 : (_result$data3 = result.data) === null || _result$data3 === void 0 ? void 0 : (_result$data3$data = _result$data3.data) === null || _result$data3$data === void 0 ? void 0 : _result$data3$data.size,
|
|
9140
|
-
total: result === null || result === void 0 ? void 0 : (_result$data4 = result.data) === null || _result$data4 === void 0 ? void 0 : (_result$data4$data = _result$data4.data) === null || _result$data4$data === void 0 ? void 0 : _result$data4$data.total
|
|
9141
|
-
});
|
|
9142
|
-
});
|
|
9143
|
-
};
|
|
9144
|
-
|
|
9145
|
-
React.useEffect(function () {
|
|
9146
|
-
remoteData();
|
|
9147
|
-
}, []);
|
|
9148
|
-
var columns = [{
|
|
9149
|
-
title: false,
|
|
9150
|
-
key: 'name',
|
|
9151
|
-
dataIndex: 'name',
|
|
9152
|
-
render: function render(text, record) {
|
|
9153
|
-
var importStatus = record.importStatus,
|
|
9154
|
-
createTime = record.createTime;
|
|
9155
|
-
var resultIcon;
|
|
9156
|
-
|
|
9157
|
-
switch (importStatus) {
|
|
9158
|
-
case '10':
|
|
9159
|
-
resultIcon = /*#__PURE__*/React__default['default'].createElement("img", {
|
|
9160
|
-
src: exportProcessing
|
|
9161
|
-
});
|
|
9162
|
-
break;
|
|
9163
|
-
|
|
9164
|
-
case '20':
|
|
9165
|
-
resultIcon = /*#__PURE__*/React__default['default'].createElement("img", {
|
|
9166
|
-
src: exportSuccess
|
|
9167
|
-
});
|
|
9168
|
-
break;
|
|
9169
|
-
|
|
9170
|
-
case '30':
|
|
9171
|
-
resultIcon = /*#__PURE__*/React__default['default'].createElement("img", {
|
|
9172
|
-
src: exportFail
|
|
9173
|
-
});
|
|
9174
|
-
}
|
|
9175
|
-
|
|
9176
|
-
return /*#__PURE__*/React__default['default'].createElement("div", {
|
|
9177
|
-
style: {
|
|
9178
|
-
display: 'flex'
|
|
9179
|
-
}
|
|
9180
|
-
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
9181
|
-
className: css_248z$8.pictureWrap
|
|
9182
|
-
}, resultIcon), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
9183
|
-
style: {
|
|
9184
|
-
marginLeft: '4px'
|
|
9185
|
-
}
|
|
9186
|
-
}, /*#__PURE__*/React__default['default'].createElement("div", {
|
|
9187
|
-
style: {
|
|
9188
|
-
fontSize: '14px',
|
|
9189
|
-
marginBottom: '-3px'
|
|
9190
|
-
}
|
|
9191
|
-
}, text), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
9192
|
-
style: {
|
|
9193
|
-
color: '#BFBFBF',
|
|
9194
|
-
fontSize: '12px',
|
|
9195
|
-
lineHeight: '16px'
|
|
9196
|
-
}
|
|
9197
|
-
}, (record === null || record === void 0 ? void 0 : record.importStatus) === '10' ? '导出进行中...' : handleCommonTimeRender(createTime))));
|
|
9198
|
-
}
|
|
9199
|
-
}, {
|
|
9200
|
-
title: false,
|
|
9201
|
-
dataIndex: '2',
|
|
9202
|
-
render: function render(text, record) {
|
|
9203
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.Space, null, record.importStatus == 20 && /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
9204
|
-
style: {
|
|
9205
|
-
padding: 0
|
|
9206
|
-
},
|
|
9207
|
-
type: 'link',
|
|
9208
|
-
onClick: function onClick() {
|
|
9209
|
-
downloadExcel(record.importUrl, record.name, true);
|
|
9210
|
-
}
|
|
9211
|
-
}, "\u4E0B\u8F7D"), record.importStatus !== 10 && /*#__PURE__*/React__default['default'].createElement(antd.Popconfirm, {
|
|
9212
|
-
title: '确定要删除吗?',
|
|
9213
|
-
onConfirm: function onConfirm() {
|
|
9214
|
-
axios__default['default']({
|
|
9215
|
-
url: "/oms-ops/businessImport/".concat(record.id),
|
|
9216
|
-
method: 'DELETE'
|
|
9217
|
-
}).then(function (result) {
|
|
9218
|
-
antd.message.success('删除成功');
|
|
9219
|
-
remoteData();
|
|
9220
|
-
});
|
|
9221
|
-
}
|
|
9222
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Button, {
|
|
9223
|
-
style: {
|
|
9224
|
-
padding: 0
|
|
9225
|
-
},
|
|
9226
|
-
type: 'link',
|
|
9227
|
-
danger: true
|
|
9228
|
-
}, "\u5220\u9664")));
|
|
9229
|
-
}
|
|
9230
|
-
}];
|
|
9231
|
-
return /*#__PURE__*/React__default['default'].createElement(antd.Drawer, _objectSpread2(_objectSpread2({}, props), {}, {
|
|
9232
|
-
bodyStyle: {
|
|
9233
|
-
padding: 0
|
|
9234
|
-
}
|
|
9235
|
-
}), /*#__PURE__*/React__default['default'].createElement("div", {
|
|
9236
|
-
className: css_248z$8.tableWrapper
|
|
9237
|
-
}, /*#__PURE__*/React__default['default'].createElement(antd.Table, {
|
|
9238
|
-
columns: columns,
|
|
9239
|
-
dataSource: dataSource,
|
|
9240
|
-
pagination: pagination,
|
|
9241
|
-
onChange: remoteData
|
|
9242
9070
|
})));
|
|
9243
9071
|
};
|
|
9244
9072
|
|
|
@@ -9251,7 +9079,6 @@ exports.CheckOneUser = index;
|
|
|
9251
9079
|
exports.CommodityEntry = CommodityEntry;
|
|
9252
9080
|
exports.DataImport = DataImport;
|
|
9253
9081
|
exports.DataValidation = DataValidation;
|
|
9254
|
-
exports.ExportHistoryIcon = ExportHistoryIcon;
|
|
9255
9082
|
exports.ExportIcon = ExportIcon;
|
|
9256
9083
|
exports.GuideWrapper = GuideWrapper;
|
|
9257
9084
|
exports.QueryMutipleInput = QueryMutipleInput;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bit-sun/business-component",
|
|
3
|
-
"version": "2.0.
|
|
3
|
+
"version": "2.0.23",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "dumi dev",
|
|
6
6
|
"docs:build": "dumi build",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"axios": "^0.24.0",
|
|
33
33
|
"classnames": "^2.3.1",
|
|
34
34
|
"dayjs": "^1.11.5",
|
|
35
|
-
"
|
|
35
|
+
"lodash": "^4.7.21",
|
|
36
36
|
"querystring": "^0.2.1",
|
|
37
37
|
"react": "^16.12.0",
|
|
38
38
|
"react-beautiful-dnd": "10.0.0",
|
|
@@ -5,7 +5,7 @@ import { Input, Button, Modal, Select, InputNumber, message, Spin, Form, Table,
|
|
|
5
5
|
import { SearchOutlined, CopyOutlined, CloseCircleOutlined } from '@ant-design/icons';
|
|
6
6
|
import axios from 'axios';
|
|
7
7
|
import { stringify } from 'querystring';
|
|
8
|
-
import _ from "
|
|
8
|
+
import _ from "lodash"
|
|
9
9
|
import './index.less';
|
|
10
10
|
import { BusinessSearchSelect, QueryMutipleInput } from '@/index';
|
|
11
11
|
import { Resizable } from 'react-resizable';
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
---
|
|
2
|
+
title: 导出按钮
|
|
3
|
+
order: 5
|
|
4
|
+
nav:
|
|
5
|
+
title: 组件
|
|
6
|
+
order: 1
|
|
7
|
+
group:
|
|
8
|
+
path: /components/functional
|
|
9
|
+
order: 0
|
|
10
|
+
title: 功能组件
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
## ExportIcon
|
|
14
|
+
|
|
15
|
+
导出按钮demo
|
|
16
|
+
|
|
17
|
+
```tsx
|
|
18
|
+
import React, { useState, useRef } from 'react';
|
|
19
|
+
import {ExportIcon} from '../../../../index';
|
|
20
|
+
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
export default () => {
|
|
24
|
+
|
|
25
|
+
const tableRef = useRef()
|
|
26
|
+
|
|
27
|
+
return (
|
|
28
|
+
<div>
|
|
29
|
+
<ExportIcon request={{url:'abc'}} tableRef={tableRef}/>
|
|
30
|
+
</div>
|
|
31
|
+
);
|
|
32
|
+
};
|
|
33
|
+
```
|
|
34
|
+
|
|
35
|
+
<API></API>
|
|
36
|
+
|
|
37
|
+
More skills for writing demo: https://d.umijs.org/guide/demo-principle
|
|
@@ -2,41 +2,55 @@ import React, {Ref} from 'react'
|
|
|
2
2
|
import {message, Popconfirm, Tooltip} from "antd";
|
|
3
3
|
import axios from 'axios'
|
|
4
4
|
import exportlogo from '../../../../assets/exportlogo.png'
|
|
5
|
-
|
|
5
|
+
import {omit} from 'lodash'
|
|
6
6
|
interface exportIconType{
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
7
|
+
/** others选填,使用axios发请求,*/
|
|
8
|
+
request:{
|
|
9
|
+
url: string,
|
|
10
|
+
params: Function | Object,
|
|
11
|
+
others?: Object
|
|
12
|
+
},
|
|
13
|
+
/** BsSulaQueryTable的tableRef*/
|
|
14
|
+
tableRef: any,
|
|
10
15
|
}
|
|
11
16
|
|
|
12
|
-
const ExportIcon = ({
|
|
13
|
-
|
|
17
|
+
const ExportIcon = ({request, tableRef}: exportIconType) => {
|
|
18
|
+
const {url, params, others} = request
|
|
14
19
|
|
|
15
20
|
return (
|
|
16
21
|
<div style={{ cursor: 'pointer' }}>
|
|
17
|
-
<Popconfirm
|
|
18
|
-
title={'确定要导出当前数据吗?'}
|
|
19
|
-
onConfirm={() => {
|
|
20
|
-
axios({
|
|
21
|
-
url,
|
|
22
|
-
method:'POST',
|
|
23
|
-
data:params?.current || params(),
|
|
24
|
-
...otherParams,
|
|
25
|
-
})
|
|
26
|
-
.then((result: any) => {
|
|
27
|
-
result = result.data;
|
|
28
|
-
if (result.code !== '000000') {
|
|
29
|
-
message.error(result?.msg);
|
|
30
|
-
return;
|
|
31
|
-
}
|
|
32
|
-
message.success('任务已排入导出队列')
|
|
33
|
-
})
|
|
34
|
-
}}
|
|
35
|
-
>
|
|
36
22
|
<Tooltip title="导出数据">
|
|
37
|
-
<img width={32} src={exportlogo}
|
|
23
|
+
<img width={32} src={exportlogo} onClick={() =>{
|
|
24
|
+
const convertedParams = tableRef?.current?.getExportParams()
|
|
25
|
+
let requestData: any
|
|
26
|
+
|
|
27
|
+
if(typeof params === 'function'){
|
|
28
|
+
requestData = {...omit(params(convertedParams),'selectedRows')}
|
|
29
|
+
}else if(typeof params === 'object'){
|
|
30
|
+
requestData = {...params}
|
|
31
|
+
}
|
|
32
|
+
if(!params){
|
|
33
|
+
requestData = omit(convertedParams, 'selectedRows')
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
requestData['qp-id-in'] = convertedParams?.selectedRows?.map((d: any) => d.id)?.join(',')
|
|
37
|
+
|
|
38
|
+
axios({
|
|
39
|
+
url,
|
|
40
|
+
method:'POST',
|
|
41
|
+
data:requestData,
|
|
42
|
+
...others,
|
|
43
|
+
})
|
|
44
|
+
.then((result: any) => {
|
|
45
|
+
result = result.data;
|
|
46
|
+
if (result.code !== '000000') {
|
|
47
|
+
message.error(result?.msg);
|
|
48
|
+
return;
|
|
49
|
+
}
|
|
50
|
+
message.success('任务已排入导出队列')
|
|
51
|
+
})
|
|
52
|
+
}} />
|
|
38
53
|
</Tooltip>
|
|
39
|
-
</Popconfirm>
|
|
40
54
|
</div>
|
|
41
55
|
)
|
|
42
56
|
}
|
|
@@ -5,7 +5,7 @@ import { Input, Button, Modal, Select, Divider, message, Spin, Form, Table, Chec
|
|
|
5
5
|
import { SearchOutlined, CopyOutlined, CaretLeftOutlined } from '@ant-design/icons';
|
|
6
6
|
import axios from 'axios';
|
|
7
7
|
import { stringify } from 'querystring';
|
|
8
|
-
import _ from "
|
|
8
|
+
import _ from "lodash"
|
|
9
9
|
import './index.less';
|
|
10
10
|
import { BusinessSearchSelect, QueryMutipleInput } from '@/index';
|
|
11
11
|
|
package/src/index.ts
CHANGED
|
@@ -23,4 +23,3 @@ export { default as BusinessTreeSearchSelect } from './components/Business/TreeS
|
|
|
23
23
|
export { default as StateFlow } from './components/Business/StateFlow';
|
|
24
24
|
export { default as GuideWrapper } from './components/Business/CommonGuideWrapper';
|
|
25
25
|
export { default as ExportIcon } from './components/Functional/ExportFunctions/ExportIcon'
|
|
26
|
-
export { default as ExportHistoryIcon } from './components/Functional/ExportFunctions/ExportHistoryDrawer'
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
.pictureWrap{
|
|
2
|
-
position: relative;
|
|
3
|
-
width: 44px;
|
|
4
|
-
}
|
|
5
|
-
.pictureWrap::before{
|
|
6
|
-
content:'';
|
|
7
|
-
width: 1px;
|
|
8
|
-
height: 27px;
|
|
9
|
-
position: absolute;
|
|
10
|
-
right: 0;
|
|
11
|
-
top: 10px;
|
|
12
|
-
background-color: #CACACA;
|
|
13
|
-
}
|
|
14
|
-
|
|
15
|
-
.tableWrapper {
|
|
16
|
-
:global {
|
|
17
|
-
.ant-table-thead {
|
|
18
|
-
display: none
|
|
19
|
-
}
|
|
20
|
-
.bs_table_styl {
|
|
21
|
-
padding: 0!important;
|
|
22
|
-
}
|
|
23
|
-
}
|
|
24
|
-
}
|
|
@@ -1,150 +0,0 @@
|
|
|
1
|
-
import React, { useEffect, useState } from 'react';
|
|
2
|
-
import {Drawer, Tooltip, Table, Space, Button, message, Popconfirm} from 'antd';
|
|
3
|
-
import upExport from '../../../../assets/upExport.svg';
|
|
4
|
-
import exportProcessing from '../../../../assets/exportProcessing.svg';
|
|
5
|
-
import exportSuccess from '../../../../assets/exportSuccess.svg';
|
|
6
|
-
import exportFail from '../../../../assets/exportFail.svg';
|
|
7
|
-
import styles from './index.less';
|
|
8
|
-
import { downloadExcel, handleCommonTimeRender } from '@/utils/utils';
|
|
9
|
-
import axios from 'axios';
|
|
10
|
-
|
|
11
|
-
const ExportHistoryIcon = () => {
|
|
12
|
-
const [exportHistoryParams, setExportHistoryParams] = useState({
|
|
13
|
-
visible: false,
|
|
14
|
-
title: '导出列表',
|
|
15
|
-
width: '420',
|
|
16
|
-
placement: 'right',
|
|
17
|
-
onClose: () =>
|
|
18
|
-
setExportHistoryParams({
|
|
19
|
-
...exportHistoryParams,
|
|
20
|
-
visible: false,
|
|
21
|
-
}),
|
|
22
|
-
});
|
|
23
|
-
|
|
24
|
-
return (
|
|
25
|
-
<div style={{ cursor: 'pointer' }}>
|
|
26
|
-
<Tooltip title="导出记录">
|
|
27
|
-
<img
|
|
28
|
-
width={24}
|
|
29
|
-
src={upExport}
|
|
30
|
-
onClick={() =>
|
|
31
|
-
setExportHistoryParams({
|
|
32
|
-
...exportHistoryParams,
|
|
33
|
-
visible: true,
|
|
34
|
-
})
|
|
35
|
-
}
|
|
36
|
-
/>
|
|
37
|
-
</Tooltip>
|
|
38
|
-
{exportHistoryParams.visible && (
|
|
39
|
-
<ExportHistoryDrawer {...exportHistoryParams} />
|
|
40
|
-
)}
|
|
41
|
-
</div>
|
|
42
|
-
);
|
|
43
|
-
};
|
|
44
|
-
|
|
45
|
-
const ExportHistoryDrawer = (props: any) => {
|
|
46
|
-
const [dataSource, setDataSource] = useState([]);
|
|
47
|
-
const [pagination, setPagination] = useState({
|
|
48
|
-
current: 1,
|
|
49
|
-
pageSize: 20,
|
|
50
|
-
total: undefined
|
|
51
|
-
})
|
|
52
|
-
const remoteData = (pag?: any) => {
|
|
53
|
-
axios({
|
|
54
|
-
url: '/oms-ops/businessImport',
|
|
55
|
-
method: 'get',
|
|
56
|
-
params: {
|
|
57
|
-
'qp-type-eq': 100,
|
|
58
|
-
currentPage: pag?.current || pagination.current,
|
|
59
|
-
pageSize: pag?.pageSize || pagination.pageSize,
|
|
60
|
-
},
|
|
61
|
-
}).then((result) => {
|
|
62
|
-
setDataSource(result?.data?.data?.items);
|
|
63
|
-
setPagination({
|
|
64
|
-
current: result?.data?.data?.page,
|
|
65
|
-
pageSize:result?.data?.data?.size,
|
|
66
|
-
total: result?.data?.data?.total
|
|
67
|
-
})
|
|
68
|
-
});
|
|
69
|
-
}
|
|
70
|
-
|
|
71
|
-
useEffect(() => {
|
|
72
|
-
remoteData()
|
|
73
|
-
}, []);
|
|
74
|
-
const columns = [
|
|
75
|
-
{
|
|
76
|
-
title: false,
|
|
77
|
-
key: 'name',
|
|
78
|
-
dataIndex: 'name',
|
|
79
|
-
render: (text: any, record: any) => {
|
|
80
|
-
const { importStatus, createTime } = record;
|
|
81
|
-
let resultIcon;
|
|
82
|
-
switch (importStatus) {
|
|
83
|
-
case '10':
|
|
84
|
-
resultIcon = <img src={exportProcessing} />;
|
|
85
|
-
break;
|
|
86
|
-
case '20':
|
|
87
|
-
resultIcon = <img src={exportSuccess} />;
|
|
88
|
-
break;
|
|
89
|
-
case '30':
|
|
90
|
-
resultIcon = <img src={exportFail} />;
|
|
91
|
-
}
|
|
92
|
-
return (
|
|
93
|
-
<div style={{ display: 'flex' }}>
|
|
94
|
-
<div className={styles.pictureWrap}>{resultIcon}</div>
|
|
95
|
-
<div style={{ marginLeft: '4px' }}>
|
|
96
|
-
<div style={{ fontSize: '14px', marginBottom: '-3px' }}>
|
|
97
|
-
{text}
|
|
98
|
-
</div>
|
|
99
|
-
<div
|
|
100
|
-
style={{
|
|
101
|
-
color: '#BFBFBF',
|
|
102
|
-
fontSize: '12px',
|
|
103
|
-
lineHeight: '16px',
|
|
104
|
-
}}
|
|
105
|
-
>
|
|
106
|
-
{record?.importStatus === '10'
|
|
107
|
-
? '导出进行中...'
|
|
108
|
-
: handleCommonTimeRender(createTime)}
|
|
109
|
-
</div>
|
|
110
|
-
</div>
|
|
111
|
-
</div>
|
|
112
|
-
);
|
|
113
|
-
},
|
|
114
|
-
},
|
|
115
|
-
{
|
|
116
|
-
title: false,
|
|
117
|
-
dataIndex: '2',
|
|
118
|
-
render: (text: any, record: any) => {
|
|
119
|
-
return (
|
|
120
|
-
<Space>
|
|
121
|
-
{record.importStatus == 20 && <Button style={{padding: 0}} type={'link'} onClick={() => {
|
|
122
|
-
downloadExcel(record.importUrl, record.name, true);
|
|
123
|
-
}}>下载</Button>}
|
|
124
|
-
{record.importStatus !== 10 && <Popconfirm title={'确定要删除吗?'} onConfirm={() => {
|
|
125
|
-
axios({
|
|
126
|
-
url:`/oms-ops/businessImport/${record.id}`,
|
|
127
|
-
method:'DELETE',
|
|
128
|
-
})
|
|
129
|
-
.then((result) => {
|
|
130
|
-
message.success('删除成功')
|
|
131
|
-
remoteData()
|
|
132
|
-
})
|
|
133
|
-
}}>
|
|
134
|
-
<Button style={{padding: 0}} type={'link'} danger={true} >删除</Button>
|
|
135
|
-
</Popconfirm>}
|
|
136
|
-
</Space>
|
|
137
|
-
);
|
|
138
|
-
},
|
|
139
|
-
},
|
|
140
|
-
];
|
|
141
|
-
|
|
142
|
-
return (
|
|
143
|
-
<Drawer {...props} bodyStyle={{ padding: 0 }}>
|
|
144
|
-
<div className={styles.tableWrapper}>
|
|
145
|
-
<Table columns={columns} dataSource={dataSource} pagination={pagination} onChange={remoteData} />
|
|
146
|
-
</div>
|
|
147
|
-
</Drawer>
|
|
148
|
-
);
|
|
149
|
-
};
|
|
150
|
-
export default ExportHistoryIcon;
|