@zgfe/modules-dm 1.0.42-alpha.9 → 1.0.56-zhongyuan.5
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/es/components/demo.js +1 -1
- package/es/constants/api.d.ts +37 -0
- package/es/constants/api.js +62 -1
- package/es/index.d.ts +3 -1
- package/es/index.js +3 -1
- package/es/modules/CutsModal.d.ts +66 -0
- package/es/modules/CutsModal.js +52 -0
- package/es/modules/dataManage/collectionAttributeList.d.ts +3 -0
- package/es/modules/dataManage/collectionAttributeList.js +524 -80
- package/es/modules/dataManage/collectionEventList.d.ts +6 -0
- package/es/modules/dataManage/collectionEventList.js +482 -62
- package/es/modules/dataManage/components/createAttrDrawer.d.ts +4 -0
- package/es/modules/dataManage/components/createAttrDrawer.js +264 -0
- package/es/modules/dataManage/components/createMetaDrawer.d.ts +4 -0
- package/es/modules/dataManage/components/createMetaDrawer.js +618 -0
- package/es/modules/dataManage/components/createVirtualDrawer.js +19 -19
- package/es/modules/dataManage/components/creditPop/imgs/link.png +0 -0
- package/es/modules/dataManage/components/creditPop/imgs/png01.png +0 -0
- package/es/modules/dataManage/components/creditPop/imgs/png02.png +0 -0
- package/es/modules/dataManage/components/creditPop/imgs/png03.png +0 -0
- package/es/modules/dataManage/components/creditPop/imgs/png04.png +0 -0
- package/es/modules/dataManage/components/creditPop/index.d.ts +6 -0
- package/es/modules/dataManage/components/creditPop/index.js +89 -0
- package/es/modules/dataManage/components/creditPop/index.less +121 -0
- package/es/modules/dataManage/components/deleteConfirm.d.ts +9 -0
- package/es/modules/dataManage/components/deleteConfirm.js +36 -0
- package/es/modules/dataManage/components/deleteUserAttrConfirm.d.ts +9 -0
- package/es/modules/dataManage/components/deleteUserAttrConfirm.js +57 -0
- package/es/modules/dataManage/components/depositPop/imgs/link.png +0 -0
- package/es/modules/dataManage/components/depositPop/imgs/png01.png +0 -0
- package/es/modules/dataManage/components/depositPop/imgs/png02.png +0 -0
- package/es/modules/dataManage/components/depositPop/index.d.ts +6 -0
- package/es/modules/dataManage/components/depositPop/index.js +89 -0
- package/es/modules/dataManage/components/depositPop/index.less +115 -0
- package/es/modules/dataManage/components/developModal/index.css +36 -0
- package/es/modules/dataManage/components/developModal/index.d.ts +6 -0
- package/es/modules/dataManage/components/developModal/index.js +224 -0
- package/es/modules/dataManage/components/developModal/index.less +36 -0
- package/es/modules/dataManage/components/editTxt/index.d.ts +3 -0
- package/es/modules/dataManage/components/editTxt/index.js +123 -0
- package/es/modules/dataManage/components/editTxt/index.less +44 -0
- package/es/modules/dataManage/components/editTxt/types.d.ts +48 -0
- package/es/modules/dataManage/components/editTxt/types.js +1 -0
- package/es/modules/dataManage/components/eventFilter/index.js +13 -13
- package/es/modules/dataManage/components/eventFilter/styles/index.less +72 -72
- package/es/modules/dataManage/components/eventGroupingDrawer.js +41 -44
- package/es/modules/dataManage/components/importAttrDialog/demo/index.d.ts +3 -0
- package/es/modules/dataManage/components/importAttrDialog/demo/index.js +28 -0
- package/es/modules/dataManage/components/importAttrDialog/index.d.ts +7 -0
- package/es/modules/dataManage/components/importAttrDialog/index.js +159 -0
- package/es/modules/dataManage/components/importAttrDialog/styles/index.less +90 -0
- package/es/modules/dataManage/components/importMetaDialog/demo/index.d.ts +3 -0
- package/es/modules/dataManage/components/importMetaDialog/demo/index.js +28 -0
- package/es/modules/dataManage/components/importMetaDialog/index.d.ts +7 -0
- package/es/modules/dataManage/components/importMetaDialog/index.js +159 -0
- package/es/modules/dataManage/components/importMetaDialog/styles/index.less +91 -0
- package/es/modules/dataManage/components/selectAttributes.js +10 -10
- package/es/modules/dataManage/components/tablePlus.d.ts +4 -0
- package/es/modules/dataManage/components/tablePlus.js +625 -94
- package/es/modules/dataManage/components/virtualTablePlus.js +7 -7
- package/es/modules/dataManage/demo/index.d.ts +2 -1
- package/es/modules/dataManage/demo/index.js +79 -16
- package/es/modules/dataManage/detailedData/DetailedDataForm.d.ts +5 -0
- package/es/modules/dataManage/detailedData/DetailedDataForm.js +216 -0
- package/es/modules/dataManage/detailedData/index.d.ts +24 -0
- package/es/modules/dataManage/detailedData/index.js +403 -0
- package/es/modules/dataManage/detailedData/useColumns.d.ts +34 -0
- package/es/modules/dataManage/detailedData/useColumns.js +135 -0
- package/es/modules/dataManage/index.d.ts +9 -4
- package/es/modules/dataManage/index.js +142 -50
- package/es/modules/dataManage/styles/detailed.less +74 -0
- package/es/modules/dataManage/styles/index.less +1195 -841
- package/es/modules/dataManage/types.d.ts +8 -0
- package/es/modules/dataManage/virtualEventList.js +13 -13
- package/es/modules/dataMap/component/data.d.ts +7 -0
- package/es/modules/dataMap/component/data.js +257 -0
- package/es/modules/dataMap/component/drawerAdd.d.ts +6 -0
- package/es/modules/dataMap/component/drawerAdd.js +379 -0
- package/es/modules/dataMap/component/leftTree.d.ts +6 -0
- package/es/modules/dataMap/component/leftTree.js +232 -0
- package/es/modules/dataMap/component/rightDetail.d.ts +7 -0
- package/es/modules/dataMap/component/rightDetail.js +694 -0
- package/es/modules/dataMap/component/selectAttr.d.ts +7 -0
- package/es/modules/dataMap/component/selectAttr.js +92 -0
- package/es/modules/dataMap/css/index.css +163 -0
- package/es/modules/dataMap/css/index.less +177 -0
- package/es/modules/dataMap/demo/index.d.ts +3 -0
- package/es/modules/dataMap/demo/index.js +6 -0
- package/es/modules/dataMap/img/empty-data.png +0 -0
- package/es/modules/dataMap/index.d.ts +3 -0
- package/es/modules/dataMap/index.js +80 -0
- package/es/modules/dataMap/mapDetail.d.ts +3 -0
- package/es/modules/dataMap/mapDetail.js +44 -0
- package/es/modules/dataMap/mapSetting.d.ts +6 -0
- package/es/modules/dataMap/mapSetting.js +156 -0
- package/es/modules/dataPlan/addEventOrUser.js +31 -30
- package/es/modules/dataPlan/addPlan.js +29 -27
- package/es/modules/dataPlan/eventList.js +2 -2
- package/es/modules/dataPlan/index.js +10 -10
- package/es/modules/dataPlan/search.js +6 -5
- package/es/modules/dataPlan/styles/index.less +316 -316
- package/es/modules/dataPlan/tablePlus.js +3 -3
- package/es/modules/dataPlan/userAttributeList.js +5 -5
- package/es/modules/dataReal/css/index.css +48 -0
- package/es/modules/dataReal/css/index.less +51 -0
- package/es/modules/dataReal/demo/index.d.ts +3 -0
- package/es/modules/dataReal/demo/index.js +6 -0
- package/es/modules/dataReal/index1.d.ts +28 -0
- package/es/modules/dataReal/index1.js +247 -0
- package/es/modules/dataReal/table.d.ts +5 -0
- package/es/modules/dataReal/table.js +260 -0
- package/es/store/index.js +11 -11
- package/es/utils/index.d.ts +1 -0
- package/es/utils/index.js +9 -1
- package/package.json +64 -58
|
@@ -0,0 +1,90 @@
|
|
|
1
|
+
@import '~@zgfe/business-lib/es/assets/styles/inner.less';
|
|
2
|
+
|
|
3
|
+
.import-meta-modal {
|
|
4
|
+
&-icon-file {
|
|
5
|
+
color: @primary-color;
|
|
6
|
+
font-size: 48px !important;
|
|
7
|
+
}
|
|
8
|
+
&-icon-export {
|
|
9
|
+
margin-right: @margin-xss;
|
|
10
|
+
}
|
|
11
|
+
&-export-btn {
|
|
12
|
+
display: block;
|
|
13
|
+
width: fit-content;
|
|
14
|
+
// margin-top: @margin-md;
|
|
15
|
+
}
|
|
16
|
+
.ant-upload.ant-upload-drag {
|
|
17
|
+
background: #fafafb;
|
|
18
|
+
/* io/中性/N2-置灰信息 */
|
|
19
|
+
border: 1px dashed #ccd0d4;
|
|
20
|
+
}
|
|
21
|
+
.ant-upload.ant-upload-drag .ant-upload {
|
|
22
|
+
padding: 40px 0;
|
|
23
|
+
}
|
|
24
|
+
&-export-container {
|
|
25
|
+
&-h1 {
|
|
26
|
+
margin-top: -8px;
|
|
27
|
+
margin-bottom: 4px;
|
|
28
|
+
}
|
|
29
|
+
&-h2 {
|
|
30
|
+
color: @text-color-secondary;
|
|
31
|
+
font-size: 12px;
|
|
32
|
+
}
|
|
33
|
+
}
|
|
34
|
+
|
|
35
|
+
&-show-container {
|
|
36
|
+
display: flex;
|
|
37
|
+
align-items: center;
|
|
38
|
+
justify-content: space-between;
|
|
39
|
+
padding: 24px;
|
|
40
|
+
background: #fafafb;
|
|
41
|
+
/* io/中性/N1-按钮边框 线色 */
|
|
42
|
+
border: 1px solid #e6e7ea;
|
|
43
|
+
border-radius: 4px;
|
|
44
|
+
&-content {
|
|
45
|
+
display: flex;
|
|
46
|
+
align-items: center;
|
|
47
|
+
&-icon {
|
|
48
|
+
margin-right: 12px;
|
|
49
|
+
color: @primary-color;
|
|
50
|
+
font-size: 40px !important;
|
|
51
|
+
}
|
|
52
|
+
&-file {
|
|
53
|
+
&-title {
|
|
54
|
+
font-size: 16px;
|
|
55
|
+
}
|
|
56
|
+
&-size {
|
|
57
|
+
color: @text-color-secondary;
|
|
58
|
+
font-size: 12px;
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
|
|
64
|
+
&-spin {
|
|
65
|
+
background: #fafafb;
|
|
66
|
+
border: 1px solid #e6e7ea;
|
|
67
|
+
border-radius: 4px;
|
|
68
|
+
&-icon.anticon {
|
|
69
|
+
color: @primary-color;
|
|
70
|
+
font-size: 24px;
|
|
71
|
+
}
|
|
72
|
+
.ant-spin-text {
|
|
73
|
+
margin-top: @margin-xs;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
&-upload-txt {
|
|
78
|
+
font-size: 16px;
|
|
79
|
+
}
|
|
80
|
+
|
|
81
|
+
.ant-modal-body {
|
|
82
|
+
padding-top: 8px !important;
|
|
83
|
+
}
|
|
84
|
+
&-footer {
|
|
85
|
+
display: flex;
|
|
86
|
+
flex-direction: row;
|
|
87
|
+
align-items: center;
|
|
88
|
+
justify-content: space-between;
|
|
89
|
+
}
|
|
90
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
2
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
4
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
|
+
import { IconFont } from '@zgfe/business-lib';
|
|
8
|
+
import React, { useState } from 'react';
|
|
9
|
+
import ImportModal from '..';
|
|
10
|
+
import { Button } from 'antd';
|
|
11
|
+
export default (function () {
|
|
12
|
+
var _useState = useState(false),
|
|
13
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
14
|
+
openImportModal = _useState2[0],
|
|
15
|
+
setOpenImportModal = _useState2[1];
|
|
16
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
|
|
17
|
+
icon: /*#__PURE__*/React.createElement(IconFont, {
|
|
18
|
+
type: "tianjia1"
|
|
19
|
+
}),
|
|
20
|
+
onClick: function onClick() {
|
|
21
|
+
return setOpenImportModal(true);
|
|
22
|
+
}
|
|
23
|
+
}, "\u5BFC\u5165"), openImportModal ? /*#__PURE__*/React.createElement(ImportModal, {
|
|
24
|
+
onCancel: function onCancel() {
|
|
25
|
+
return setOpenImportModal(false);
|
|
26
|
+
}
|
|
27
|
+
}) : null);
|
|
28
|
+
});
|
|
@@ -0,0 +1,159 @@
|
|
|
1
|
+
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
+
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
|
+
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
+
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
5
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
|
+
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
8
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
10
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
11
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
12
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
13
|
+
import { BizDialog, BizGlobalDataContext, IconFont } from '@zgfe/business-lib';
|
|
14
|
+
import React, { useContext, useState } from 'react';
|
|
15
|
+
import { Upload, Spin, message, Button } from 'antd';
|
|
16
|
+
import { LoadingOutlined } from '@ant-design/icons';
|
|
17
|
+
import './styles/index.less';
|
|
18
|
+
import apis from '../../../../constants/api';
|
|
19
|
+
import request from '../../../../utils/ajax';
|
|
20
|
+
var Dragger = Upload.Dragger;
|
|
21
|
+
var classPrefix = 'import-meta-modal';
|
|
22
|
+
var ImportModal = function ImportModal(props) {
|
|
23
|
+
var _useState = useState(),
|
|
24
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
25
|
+
fileData = _useState2[0],
|
|
26
|
+
setFileData = _useState2[1];
|
|
27
|
+
var _useState3 = useState(false),
|
|
28
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
29
|
+
uploading = _useState4[0],
|
|
30
|
+
setUploading = _useState4[1];
|
|
31
|
+
var _useState5 = useState(false),
|
|
32
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
33
|
+
loading = _useState6[0],
|
|
34
|
+
setLoading = _useState6[1];
|
|
35
|
+
var _useContext = useContext(BizGlobalDataContext),
|
|
36
|
+
currentApp = _useContext.currentApp,
|
|
37
|
+
isDemo = _useContext.isDemo;
|
|
38
|
+
var UploadProps = {
|
|
39
|
+
name: 'file',
|
|
40
|
+
maxCount: 1,
|
|
41
|
+
accept: '.xls,.xlsx',
|
|
42
|
+
showUploadList: false,
|
|
43
|
+
onChange: function onChange(info) {
|
|
44
|
+
var _info$file = info.file,
|
|
45
|
+
status = _info$file.status,
|
|
46
|
+
size = _info$file.size;
|
|
47
|
+
var isLt10M = size / 1024 / 1024 < 10;
|
|
48
|
+
setUploading(status === 'uploading');
|
|
49
|
+
if (status !== 'uploading') {
|
|
50
|
+
if (info.fileList.length > 0 && isLt10M) {
|
|
51
|
+
setFileData(info.fileList[0].originFileObj);
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
if (status === 'removed') {} else if (status === 'error') {}
|
|
55
|
+
},
|
|
56
|
+
beforeUpload: function beforeUpload(file) {
|
|
57
|
+
var isLt10M = file.size / 1024 / 1024 < 10;
|
|
58
|
+
if (!isLt10M) {
|
|
59
|
+
message.error('支持 xls、xlsx 格式,最大10M');
|
|
60
|
+
}
|
|
61
|
+
return false;
|
|
62
|
+
}
|
|
63
|
+
};
|
|
64
|
+
// 下载模板
|
|
65
|
+
var onDownloadTemplate = function onDownloadTemplate() {
|
|
66
|
+
window.open("/\u5143\u6570\u636E-\u6279\u91CF\u4E0A\u4F20\u4E8B\u4EF6\u6A21\u677F.xlsx");
|
|
67
|
+
};
|
|
68
|
+
// 上传文件
|
|
69
|
+
var onOk = function onOk() {
|
|
70
|
+
if (!fileData) {
|
|
71
|
+
message.warning('请选择文件');
|
|
72
|
+
return;
|
|
73
|
+
}
|
|
74
|
+
var formData = new FormData();
|
|
75
|
+
formData.append('appId', currentApp.appId);
|
|
76
|
+
formData.append('file', fileData);
|
|
77
|
+
setLoading(true);
|
|
78
|
+
request(apis.uploadEvent, {
|
|
79
|
+
method: 'post',
|
|
80
|
+
data: formData
|
|
81
|
+
}).then(function (res) {
|
|
82
|
+
if (!res) return;
|
|
83
|
+
message.success('导入成功');
|
|
84
|
+
props.onSuccess && props.onSuccess();
|
|
85
|
+
}).catch(function (e) {
|
|
86
|
+
console.log(e);
|
|
87
|
+
}).finally(function () {
|
|
88
|
+
setLoading(false);
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
return /*#__PURE__*/React.createElement(BizDialog, {
|
|
92
|
+
title: "\u5BFC\u5165\u4E8B\u4EF6",
|
|
93
|
+
open: true,
|
|
94
|
+
className: classPrefix,
|
|
95
|
+
onCancel: props.onCancel,
|
|
96
|
+
onOk: onOk,
|
|
97
|
+
confirmLoading: loading,
|
|
98
|
+
okButtonProps: {
|
|
99
|
+
disabled: isDemo
|
|
100
|
+
},
|
|
101
|
+
closable: true,
|
|
102
|
+
closeIcon: /*#__PURE__*/React.createElement(IconFont, {
|
|
103
|
+
type: "qingchu"
|
|
104
|
+
}),
|
|
105
|
+
footer: /*#__PURE__*/React.createElement("div", {
|
|
106
|
+
className: "".concat(classPrefix, "-footer")
|
|
107
|
+
}, /*#__PURE__*/React.createElement("a", {
|
|
108
|
+
className: "".concat(classPrefix, "-export-btn"),
|
|
109
|
+
onClick: onDownloadTemplate
|
|
110
|
+
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
111
|
+
type: "xiazai1",
|
|
112
|
+
className: "".concat(classPrefix, "-icon-export")
|
|
113
|
+
}), "\u4E0B\u8F7D\u5BFC\u5165\u6A21\u7248"), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
|
|
114
|
+
onClick: props.onCancel
|
|
115
|
+
}, "\u53D6\u6D88"), /*#__PURE__*/React.createElement(Button, {
|
|
116
|
+
type: "primary",
|
|
117
|
+
onClick: onOk
|
|
118
|
+
}, "\u786E\u5B9A")))
|
|
119
|
+
}, /*#__PURE__*/React.createElement(Spin, {
|
|
120
|
+
className: "".concat(classPrefix, "-spin"),
|
|
121
|
+
spinning: uploading,
|
|
122
|
+
tip: "\u4E0A\u4F20\u4E2D",
|
|
123
|
+
indicator: /*#__PURE__*/React.createElement(LoadingOutlined, {
|
|
124
|
+
className: "".concat(classPrefix, "-spin-icon"),
|
|
125
|
+
spin: true,
|
|
126
|
+
onPointerEnterCapture: undefined,
|
|
127
|
+
onPointerLeaveCapture: undefined
|
|
128
|
+
})
|
|
129
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
130
|
+
style: {
|
|
131
|
+
marginBottom: 16
|
|
132
|
+
}
|
|
133
|
+
}, "\u300C\u6279\u91CF\u4E0A\u4F20\u300D\u529F\u80FD\u652F\u6301\u521B\u5EFA\u5143\u4E8B\u4EF6\uFF0C\u4EE5\u53CA\u5173\u8054\u4E8B\u4EF6\u4E0E\u5C5E\u6027\u7684\u5173\u7CFB\uFF0C\u4E0D\u652F\u6301\u66F4\u65B0\u5143\u4E8B\u4EF6\u3002"), fileData ? (/*#__PURE__*/React.createElement("div", {
|
|
134
|
+
className: "".concat(classPrefix, "-show-container")
|
|
135
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
136
|
+
className: "".concat(classPrefix, "-show-container-content")
|
|
137
|
+
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
138
|
+
type: "file-excel",
|
|
139
|
+
className: "".concat(classPrefix, "-show-container-content-icon")
|
|
140
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
141
|
+
className: "".concat(classPrefix, "-show-container-content-file")
|
|
142
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
143
|
+
className: "".concat(classPrefix, "-show-container-content-file-title")
|
|
144
|
+
}, fileData.name), /*#__PURE__*/React.createElement("div", {
|
|
145
|
+
className: "".concat(classPrefix, "-show-container-content-file-size")
|
|
146
|
+
}, fileData.size ? (fileData.size / 1024).toFixed(1) : '', " kb"))), /*#__PURE__*/React.createElement(Upload, _objectSpread({}, UploadProps), /*#__PURE__*/React.createElement("a", {
|
|
147
|
+
className: "".concat(classPrefix, "-upload-txt")
|
|
148
|
+
}, "\u91CD\u65B0\u4E0A\u4F20")))) : (/*#__PURE__*/React.createElement(Dragger, _objectSpread({
|
|
149
|
+
className: "".concat(classPrefix, "-export-container")
|
|
150
|
+
}, UploadProps), /*#__PURE__*/React.createElement(IconFont, {
|
|
151
|
+
type: "file-add",
|
|
152
|
+
className: "".concat(classPrefix, "-icon-file")
|
|
153
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
154
|
+
className: "".concat(classPrefix, "-export-container-h1")
|
|
155
|
+
}, "\u5C06\u6570\u636E\u6587\u4EF6\u62D6\u5230\u6B64\u5904 \u6216", /*#__PURE__*/React.createElement("a", null, "\u70B9\u51FB\u4E0A\u4F20")), /*#__PURE__*/React.createElement("div", {
|
|
156
|
+
className: "".concat(classPrefix, "-export-container-h2")
|
|
157
|
+
}, "\u652F\u6301 xls\u3001xlsx \u683C\u5F0F\uFF0C\u6700\u592710M")))));
|
|
158
|
+
};
|
|
159
|
+
export default ImportModal;
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
@import '~@zgfe/business-lib/es/assets/styles/inner.less';
|
|
2
|
+
|
|
3
|
+
.import-meta-modal {
|
|
4
|
+
&-icon-file {
|
|
5
|
+
color: @primary-color;
|
|
6
|
+
font-size: 48px !important;
|
|
7
|
+
}
|
|
8
|
+
&-icon-export {
|
|
9
|
+
margin-right: @margin-xss;
|
|
10
|
+
}
|
|
11
|
+
&-export-btn {
|
|
12
|
+
display: block;
|
|
13
|
+
width: fit-content;
|
|
14
|
+
// margin-top: @margin-md;
|
|
15
|
+
}
|
|
16
|
+
.ant-upload.ant-upload-drag {
|
|
17
|
+
background: #fafafb;
|
|
18
|
+
/* io/中性/N2-置灰信息 */
|
|
19
|
+
border: 1px dashed #ccd0d4;
|
|
20
|
+
}
|
|
21
|
+
.ant-upload.ant-upload-drag .ant-upload {
|
|
22
|
+
padding: 40px 0;
|
|
23
|
+
}
|
|
24
|
+
&-export-container {
|
|
25
|
+
border-radius: 4px;
|
|
26
|
+
&-h1 {
|
|
27
|
+
margin-top: -8px;
|
|
28
|
+
margin-bottom: 4px;
|
|
29
|
+
}
|
|
30
|
+
&-h2 {
|
|
31
|
+
color: @text-color-secondary;
|
|
32
|
+
font-size: 12px;
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
&-show-container {
|
|
37
|
+
display: flex;
|
|
38
|
+
align-items: center;
|
|
39
|
+
justify-content: space-between;
|
|
40
|
+
padding: 24px;
|
|
41
|
+
background: #fafafb;
|
|
42
|
+
/* io/中性/N1-按钮边框 线色 */
|
|
43
|
+
border: 1px solid #e6e7ea;
|
|
44
|
+
border-radius: 4px;
|
|
45
|
+
&-content {
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
&-icon {
|
|
49
|
+
margin-right: 12px;
|
|
50
|
+
color: @primary-color;
|
|
51
|
+
font-size: 40px !important;
|
|
52
|
+
}
|
|
53
|
+
&-file {
|
|
54
|
+
&-title {
|
|
55
|
+
font-size: 16px;
|
|
56
|
+
}
|
|
57
|
+
&-size {
|
|
58
|
+
color: @text-color-secondary;
|
|
59
|
+
font-size: 12px;
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
&-spin {
|
|
66
|
+
background: #fafafb;
|
|
67
|
+
border: 1px solid #e6e7ea;
|
|
68
|
+
border-radius: 4px;
|
|
69
|
+
&-icon.anticon {
|
|
70
|
+
color: @primary-color;
|
|
71
|
+
font-size: 24px;
|
|
72
|
+
}
|
|
73
|
+
.ant-spin-text {
|
|
74
|
+
margin-top: @margin-xs;
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
|
|
78
|
+
&-upload-txt {
|
|
79
|
+
font-size: 16px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.ant-modal-body {
|
|
83
|
+
padding-top: 8px !important;
|
|
84
|
+
}
|
|
85
|
+
&-footer {
|
|
86
|
+
display: flex;
|
|
87
|
+
flex-direction: row;
|
|
88
|
+
align-items: center;
|
|
89
|
+
justify-content: space-between;
|
|
90
|
+
}
|
|
91
|
+
}
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
function _toConsumableArray(
|
|
1
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
2
2
|
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
3
|
-
function _iterableToArray(
|
|
4
|
-
function _arrayWithoutHoles(
|
|
5
|
-
function _slicedToArray(
|
|
3
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
4
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
5
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
6
6
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
7
|
-
function _unsupportedIterableToArray(
|
|
8
|
-
function _arrayLikeToArray(
|
|
9
|
-
function _iterableToArrayLimit(
|
|
10
|
-
function _arrayWithHoles(
|
|
7
|
+
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
8
|
+
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
9
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
10
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
11
11
|
import { IconFont, BizSearchInput } from '@zgfe/business-lib';
|
|
12
12
|
import { Select, Modal, Dropdown, Checkbox, message } from 'antd';
|
|
13
13
|
import { useEffect } from 'react';
|
|
@@ -133,7 +133,7 @@ var SelectAttributes = function SelectAttributes(props) {
|
|
|
133
133
|
return selectAttributesData.map(function (item) {
|
|
134
134
|
if (item.id === selectEventId) {
|
|
135
135
|
return item.attrList.map(function (_item) {
|
|
136
|
-
return attrShowList.indexOf(_item.label) !== -1 ? /*#__PURE__*/React.createElement("div", {
|
|
136
|
+
return attrShowList.indexOf(_item.label) !== -1 ? (/*#__PURE__*/React.createElement("div", {
|
|
137
137
|
className: "".concat(selectValue.indexOf(_item.id) !== -1 ? 'active' : ''),
|
|
138
138
|
key: _item.id
|
|
139
139
|
}, /*#__PURE__*/React.createElement(Checkbox, {
|
|
@@ -141,7 +141,7 @@ var SelectAttributes = function SelectAttributes(props) {
|
|
|
141
141
|
onChange: function onChange() {
|
|
142
142
|
return onSelectAttributesChange(_item.label);
|
|
143
143
|
}
|
|
144
|
-
}, _item.alias ? "".concat(_item.alias, "(").concat(_item.label, ")") : _item.label)) : null;
|
|
144
|
+
}, _item.alias ? "".concat(_item.alias, "(").concat(_item.label, ")") : _item.label))) : null;
|
|
145
145
|
});
|
|
146
146
|
}
|
|
147
147
|
});
|
|
@@ -16,6 +16,7 @@ interface DataType {
|
|
|
16
16
|
_groupId?: number;
|
|
17
17
|
mark_type: number;
|
|
18
18
|
owner: string;
|
|
19
|
+
triggeringOccasion: string;
|
|
19
20
|
}
|
|
20
21
|
interface queryPlanType {
|
|
21
22
|
unexpectedPropList: string[];
|
|
@@ -33,6 +34,9 @@ interface TablePlusType {
|
|
|
33
34
|
pageSizeChange?: Function;
|
|
34
35
|
total: number;
|
|
35
36
|
groupData: DataType[];
|
|
37
|
+
selectEventList?: any;
|
|
38
|
+
setSelectEventList?: (data: any) => void;
|
|
39
|
+
isSingleSelect?: boolean;
|
|
36
40
|
}
|
|
37
41
|
declare const TablePlus: React.FC<TablePlusType>;
|
|
38
42
|
export default TablePlus;
|