@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
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
4
|
-
function _defineProperty(
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
7
|
-
function _slicedToArray(
|
|
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
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(
|
|
10
|
-
function _arrayLikeToArray(
|
|
11
|
-
function _iterableToArrayLimit(
|
|
12
|
-
function _arrayWithHoles(
|
|
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
13
|
import { Tooltip, message } from 'antd';
|
|
14
14
|
import React, { useEffect, useRef, useState } from 'react';
|
|
15
15
|
import { BizEventSelector, BizAttrConditionGroup, IconFont } from '@zgfe/business-lib';
|
|
@@ -127,7 +127,7 @@ var EventFilter = function EventFilter(props) {
|
|
|
127
127
|
onClick: function onClick() {
|
|
128
128
|
return onAdd();
|
|
129
129
|
}
|
|
130
|
-
}))), (filter || isAdd) && /*#__PURE__*/React.createElement("div", {
|
|
130
|
+
}))), (filter || isAdd) && (/*#__PURE__*/React.createElement("div", {
|
|
131
131
|
className: "".concat(count > 0 ? 'attr-box-show' : '', " top")
|
|
132
132
|
}, /*#__PURE__*/React.createElement(BizAttrConditionGroup, {
|
|
133
133
|
ref: conditionRef,
|
|
@@ -140,7 +140,7 @@ var EventFilter = function EventFilter(props) {
|
|
|
140
140
|
eventIdList: (event === null || event === void 0 ? void 0 : event.eventId) ? [event === null || event === void 0 ? void 0 : event.eventId] : [],
|
|
141
141
|
onChange: onChangeFilters,
|
|
142
142
|
onConditionsCount: setCount
|
|
143
|
-
})), /*#__PURE__*/React.createElement("div", {
|
|
143
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
144
144
|
className: "delete-box",
|
|
145
145
|
onClick: function onClick() {
|
|
146
146
|
return remove(index);
|
|
@@ -1,72 +1,72 @@
|
|
|
1
|
-
.virtual-event-eventfilter-box {
|
|
2
|
-
position: relative;
|
|
3
|
-
width: 100%;
|
|
4
|
-
padding: 20px;
|
|
5
|
-
overflow: hidden;
|
|
6
|
-
border: 1px solid #ecedf0;
|
|
7
|
-
border-radius: 8px;
|
|
8
|
-
.not-clickable-mask {
|
|
9
|
-
position: absolute;
|
|
10
|
-
top: 0;
|
|
11
|
-
left: 0;
|
|
12
|
-
width: 100%;
|
|
13
|
-
height: 100%;
|
|
14
|
-
cursor: not-allowed;
|
|
15
|
-
}
|
|
16
|
-
&-eventSelector {
|
|
17
|
-
display: flex;
|
|
18
|
-
> :nth-child(1) {
|
|
19
|
-
width: 20px;
|
|
20
|
-
height: 20px;
|
|
21
|
-
margin: 6px 19px 6px 0;
|
|
22
|
-
color: #fff;
|
|
23
|
-
line-height: 20px;
|
|
24
|
-
text-align: center;
|
|
25
|
-
background: #165dff;
|
|
26
|
-
border-radius: 4px;
|
|
27
|
-
}
|
|
28
|
-
.biz-event-select,
|
|
29
|
-
.biz-attr-select {
|
|
30
|
-
width: 208px;
|
|
31
|
-
margin-right: 16px;
|
|
32
|
-
}
|
|
33
|
-
.shaixuan {
|
|
34
|
-
margin-top: 2px;
|
|
35
|
-
color: #9aa1a9;
|
|
36
|
-
font-size: 20px !important;
|
|
37
|
-
cursor: pointer;
|
|
38
|
-
}
|
|
39
|
-
.shaixuan:hover {
|
|
40
|
-
color: #165dff;
|
|
41
|
-
}
|
|
42
|
-
.disable {
|
|
43
|
-
color: #ccd0d4 !important;
|
|
44
|
-
cursor: not-allowed !important;
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
&-eventSelector.hasattr {
|
|
48
|
-
margin-bottom: 4px;
|
|
49
|
-
padding-bottom: 4px;
|
|
50
|
-
}
|
|
51
|
-
.delete-box {
|
|
52
|
-
position: absolute;
|
|
53
|
-
top: -32px;
|
|
54
|
-
right: -32px;
|
|
55
|
-
width: 64px;
|
|
56
|
-
height: 64px;
|
|
57
|
-
background: #f2f3f4;
|
|
58
|
-
border-radius: 50%;
|
|
59
|
-
.shanchu {
|
|
60
|
-
position: absolute;
|
|
61
|
-
bottom: 5px;
|
|
62
|
-
left: 11px;
|
|
63
|
-
font-size: 17px !important;
|
|
64
|
-
cursor: pointer;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
.delete-box:hover {
|
|
68
|
-
.shanchu {
|
|
69
|
-
color: #fb5547;
|
|
70
|
-
}
|
|
71
|
-
}
|
|
72
|
-
}
|
|
1
|
+
.virtual-event-eventfilter-box {
|
|
2
|
+
position: relative;
|
|
3
|
+
width: 100%;
|
|
4
|
+
padding: 20px;
|
|
5
|
+
overflow: hidden;
|
|
6
|
+
border: 1px solid #ecedf0;
|
|
7
|
+
border-radius: 8px;
|
|
8
|
+
.not-clickable-mask {
|
|
9
|
+
position: absolute;
|
|
10
|
+
top: 0;
|
|
11
|
+
left: 0;
|
|
12
|
+
width: 100%;
|
|
13
|
+
height: 100%;
|
|
14
|
+
cursor: not-allowed;
|
|
15
|
+
}
|
|
16
|
+
&-eventSelector {
|
|
17
|
+
display: flex;
|
|
18
|
+
> :nth-child(1) {
|
|
19
|
+
width: 20px;
|
|
20
|
+
height: 20px;
|
|
21
|
+
margin: 6px 19px 6px 0;
|
|
22
|
+
color: #fff;
|
|
23
|
+
line-height: 20px;
|
|
24
|
+
text-align: center;
|
|
25
|
+
background: #165dff;
|
|
26
|
+
border-radius: 4px;
|
|
27
|
+
}
|
|
28
|
+
.biz-event-select,
|
|
29
|
+
.biz-attr-select {
|
|
30
|
+
width: 208px;
|
|
31
|
+
margin-right: 16px;
|
|
32
|
+
}
|
|
33
|
+
.shaixuan {
|
|
34
|
+
margin-top: 2px;
|
|
35
|
+
color: #9aa1a9;
|
|
36
|
+
font-size: 20px !important;
|
|
37
|
+
cursor: pointer;
|
|
38
|
+
}
|
|
39
|
+
.shaixuan:hover {
|
|
40
|
+
color: #165dff;
|
|
41
|
+
}
|
|
42
|
+
.disable {
|
|
43
|
+
color: #ccd0d4 !important;
|
|
44
|
+
cursor: not-allowed !important;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
&-eventSelector.hasattr {
|
|
48
|
+
margin-bottom: 4px;
|
|
49
|
+
padding-bottom: 4px;
|
|
50
|
+
}
|
|
51
|
+
.delete-box {
|
|
52
|
+
position: absolute;
|
|
53
|
+
top: -32px;
|
|
54
|
+
right: -32px;
|
|
55
|
+
width: 64px;
|
|
56
|
+
height: 64px;
|
|
57
|
+
background: #f2f3f4;
|
|
58
|
+
border-radius: 50%;
|
|
59
|
+
.shanchu {
|
|
60
|
+
position: absolute;
|
|
61
|
+
bottom: 5px;
|
|
62
|
+
left: 11px;
|
|
63
|
+
font-size: 17px !important;
|
|
64
|
+
cursor: pointer;
|
|
65
|
+
}
|
|
66
|
+
}
|
|
67
|
+
.delete-box:hover {
|
|
68
|
+
.shanchu {
|
|
69
|
+
color: #fb5547;
|
|
70
|
+
}
|
|
71
|
+
}
|
|
72
|
+
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
function _typeof(
|
|
2
|
-
function ownKeys(
|
|
3
|
-
function _objectSpread(
|
|
4
|
-
function _defineProperty(
|
|
5
|
-
function _toPropertyKey(
|
|
6
|
-
function _toPrimitive(
|
|
7
|
-
function _slicedToArray(
|
|
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
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(
|
|
10
|
-
function _arrayLikeToArray(
|
|
11
|
-
function _iterableToArrayLimit(
|
|
12
|
-
function _arrayWithHoles(
|
|
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
13
|
import { BizGlobalDataContext, IconFont, BizLoading } from '@zgfe/business-lib';
|
|
14
14
|
import { Input, Modal, message, Drawer, Popover, Checkbox, Select, Button } from 'antd';
|
|
15
15
|
import request from '../../../utils/ajax';
|
|
@@ -137,22 +137,19 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
137
137
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
138
138
|
eventMoveShow = _useState8[0],
|
|
139
139
|
setEventMoveShow = _useState8[1];
|
|
140
|
-
var
|
|
140
|
+
var eventMoveChangeId = -1;
|
|
141
|
+
var _useState9 = useState([]),
|
|
141
142
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
var _useState11 = useState(
|
|
143
|
+
eventMoveOption = _useState10[0],
|
|
144
|
+
setEventMoveOption = _useState10[1];
|
|
145
|
+
var _useState11 = useState(0),
|
|
145
146
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
var _useState13 = useState(
|
|
147
|
+
eventMoveLength = _useState12[0],
|
|
148
|
+
setEventMoveLength = _useState12[1];
|
|
149
|
+
var _useState13 = useState(''),
|
|
149
150
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
var _useState15 = useState(''),
|
|
153
|
-
_useState16 = _slicedToArray(_useState15, 2),
|
|
154
|
-
eventMoveIds = _useState16[0],
|
|
155
|
-
setEventMoveIds = _useState16[1];
|
|
151
|
+
eventMoveIds = _useState14[0],
|
|
152
|
+
setEventMoveIds = _useState14[1];
|
|
156
153
|
var eventMove = function eventMove(groupId) {
|
|
157
154
|
var data = eventMoveData(groupId, groupingData, setGroupingData);
|
|
158
155
|
setEventMoveOption(data.groupingOption);
|
|
@@ -160,7 +157,7 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
160
157
|
setEventMoveIds(data.ids);
|
|
161
158
|
if (data.length > 0) {
|
|
162
159
|
setEventMoveShow(groupId);
|
|
163
|
-
|
|
160
|
+
eventMoveChangeId = data.groupingOption[0].value;
|
|
164
161
|
} else {
|
|
165
162
|
setEventMoveShow(undefined);
|
|
166
163
|
}
|
|
@@ -194,6 +191,7 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
194
191
|
});
|
|
195
192
|
};
|
|
196
193
|
var moveContent = function moveContent() {
|
|
194
|
+
eventMoveChangeId = eventMoveOption[0].value || -1;
|
|
197
195
|
return /*#__PURE__*/React.createElement("div", {
|
|
198
196
|
className: "move-content"
|
|
199
197
|
}, /*#__PURE__*/React.createElement("div", null, "\u5C06", eventMoveLength, "\u4E2A\u6307\u6807\u79FB\u52A8\u5230\u4EE5\u4E0B\u5206\u7EC4"), /*#__PURE__*/React.createElement("div", null, "\u9009\u62E9\u5206\u7EC4", ' ', /*#__PURE__*/React.createElement(Select, {
|
|
@@ -202,7 +200,7 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
202
200
|
width: 120
|
|
203
201
|
},
|
|
204
202
|
onChange: function onChange(id) {
|
|
205
|
-
|
|
203
|
+
eventMoveChangeId = id;
|
|
206
204
|
},
|
|
207
205
|
options: eventMoveOption
|
|
208
206
|
})), /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
|
|
@@ -218,18 +216,18 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
218
216
|
}, "\u786E\u5B9A")));
|
|
219
217
|
};
|
|
220
218
|
// 创建分组 & 修改分组名
|
|
221
|
-
var
|
|
219
|
+
var _useState15 = useState(null),
|
|
220
|
+
_useState16 = _slicedToArray(_useState15, 2),
|
|
221
|
+
createOrEditGrpup = _useState16[0],
|
|
222
|
+
setCreateOrEditGrpup = _useState16[1];
|
|
223
|
+
var _useState17 = useState(-1),
|
|
222
224
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
var _useState19 = useState(
|
|
225
|
+
grpupModalSelectGrpupId = _useState18[0],
|
|
226
|
+
setGrpupModalSelectGrpupId = _useState18[1];
|
|
227
|
+
var _useState19 = useState(''),
|
|
226
228
|
_useState20 = _slicedToArray(_useState19, 2),
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
var _useState21 = useState(''),
|
|
230
|
-
_useState22 = _slicedToArray(_useState21, 2),
|
|
231
|
-
grpupNameInput = _useState22[0],
|
|
232
|
-
setGrpupNameInput = _useState22[1];
|
|
229
|
+
grpupNameInput = _useState20[0],
|
|
230
|
+
setGrpupNameInput = _useState20[1];
|
|
233
231
|
var GrpupModalHandle = function GrpupModalHandle() {
|
|
234
232
|
if (grpupNameInput === '') {
|
|
235
233
|
message.error('请填写分组名');
|
|
@@ -260,7 +258,6 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
260
258
|
}
|
|
261
259
|
});
|
|
262
260
|
};
|
|
263
|
-
|
|
264
261
|
var GrpupModalClose = function GrpupModalClose() {
|
|
265
262
|
setCreateOrEditGrpup(null);
|
|
266
263
|
setGrpupModalSelectGrpupId(-1);
|
|
@@ -286,17 +283,17 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
286
283
|
className: "operate-left"
|
|
287
284
|
}, /*#__PURE__*/React.createElement("div", {
|
|
288
285
|
id: "create-or-edit-grpup-modal"
|
|
289
|
-
}, item.open && /*#__PURE__*/React.createElement(IconFont, {
|
|
286
|
+
}, item.open && (/*#__PURE__*/React.createElement(IconFont, {
|
|
290
287
|
type: "fangxiangxia",
|
|
291
288
|
onClick: function onClick() {
|
|
292
289
|
return openChange(item.groupId);
|
|
293
290
|
}
|
|
294
|
-
}), !item.open && /*#__PURE__*/React.createElement(IconFont, {
|
|
291
|
+
})), !item.open && (/*#__PURE__*/React.createElement(IconFont, {
|
|
295
292
|
type: "fangxiangshang",
|
|
296
293
|
onClick: function onClick() {
|
|
297
294
|
return openChange(item.groupId);
|
|
298
295
|
}
|
|
299
|
-
}), /*#__PURE__*/React.createElement("div", null, item.groupName ? item.groupName : '未分组'), item.groupName && /*#__PURE__*/React.createElement(IconFont, {
|
|
296
|
+
})), /*#__PURE__*/React.createElement("div", null, item.groupName ? item.groupName : '未分组'), item.groupName && (/*#__PURE__*/React.createElement(IconFont, {
|
|
300
297
|
type: "zhongmingming",
|
|
301
298
|
onClick: function onClick() {
|
|
302
299
|
if (!authority[source === 'virtual' ? 1700636172 : 1700636344]) {
|
|
@@ -307,9 +304,9 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
307
304
|
setGrpupNameInput(item.groupName ? item.groupName : '未分组');
|
|
308
305
|
setGrpupModalSelectGrpupId(item.groupId);
|
|
309
306
|
}
|
|
310
|
-
})), /*#__PURE__*/React.createElement("div", null, item.count, "\u4E2A\u6307\u6807")), /*#__PURE__*/React.createElement("div", {
|
|
307
|
+
}))), /*#__PURE__*/React.createElement("div", null, item.count, "\u4E2A\u6307\u6807")), /*#__PURE__*/React.createElement("div", {
|
|
311
308
|
className: "operate-right"
|
|
312
|
-
}, item.count > 0 && /*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Checkbox, {
|
|
309
|
+
}, item.count > 0 && (/*#__PURE__*/React.createElement(Fragment, null, /*#__PURE__*/React.createElement(Checkbox, {
|
|
313
310
|
checked: item.checked,
|
|
314
311
|
onChange: function onChange() {
|
|
315
312
|
return onChangeAll(item.groupId);
|
|
@@ -337,12 +334,12 @@ var EventGroupingDrawer = function EventGroupingDrawer(props) {
|
|
|
337
334
|
onClick: function onClick() {
|
|
338
335
|
return eventShowOrHidden(1, item.groupId);
|
|
339
336
|
}
|
|
340
|
-
}, "\u9690\u85CF")), item.groupName && /*#__PURE__*/React.createElement("span", {
|
|
337
|
+
}, "\u9690\u85CF"))), item.groupName && (/*#__PURE__*/React.createElement("span", {
|
|
341
338
|
className: "handle-delete",
|
|
342
339
|
onClick: function onClick() {
|
|
343
340
|
return groupDelete(item.groupId);
|
|
344
341
|
}
|
|
345
|
-
}, "\u5220\u9664"), /*#__PURE__*/React.createElement(DragHandle, null))), /*#__PURE__*/React.createElement("div", {
|
|
342
|
+
}, "\u5220\u9664")), /*#__PURE__*/React.createElement(DragHandle, null))), /*#__PURE__*/React.createElement("div", {
|
|
346
343
|
className: "".concat(classPrefix, "-box-content ").concat(item.open ? 'open' : 'close')
|
|
347
344
|
}, /*#__PURE__*/React.createElement(EventItem, {
|
|
348
345
|
componnetData: item.eventList,
|
|
@@ -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\u7528\u6237\u5C5E\u6027\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.uploadUserPropMeta, {
|
|
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\u5C5E\u6027",
|
|
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\u7528\u6237\u5C5E\u6027\uFF0C\u4E0D\u652F\u6301\u66F4\u65B0\u7528\u6237\u5C5E\u6027\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;
|