@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,92 @@
|
|
|
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 _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
3
|
+
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."); }
|
|
4
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
5
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
6
|
+
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; }
|
|
7
|
+
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; }
|
|
8
|
+
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; }
|
|
9
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
10
|
+
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); }
|
|
11
|
+
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
12
|
+
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."); }
|
|
13
|
+
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; } }
|
|
14
|
+
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; }
|
|
15
|
+
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; } }
|
|
16
|
+
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
17
|
+
import React, { useEffect, useState } from 'react';
|
|
18
|
+
import { BizAttributeSelector, ValuesList } from '@zgfe/business-lib';
|
|
19
|
+
var SelectAttr = function SelectAttr(_ref) {
|
|
20
|
+
var event = _ref.event,
|
|
21
|
+
onChange = _ref.onChange,
|
|
22
|
+
onDelete = _ref.onDelete;
|
|
23
|
+
console.log(event, 'event');
|
|
24
|
+
var _useState = useState(),
|
|
25
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
26
|
+
attrArr = _useState2[0],
|
|
27
|
+
setAttrArr = _useState2[1];
|
|
28
|
+
var _useState3 = useState(),
|
|
29
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
30
|
+
currentData = _useState4[0],
|
|
31
|
+
setCurrentData = _useState4[1];
|
|
32
|
+
var _useState5 = useState(),
|
|
33
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
34
|
+
a = _useState6[0],
|
|
35
|
+
setA = _useState6[1];
|
|
36
|
+
var handleFlex = function handleFlex(value) {
|
|
37
|
+
setA(_objectSpread(_objectSpread({}, value), {}, {
|
|
38
|
+
operator: 'equal'
|
|
39
|
+
}));
|
|
40
|
+
};
|
|
41
|
+
var handleSelectFlexValues = function handleSelectFlexValues(value) {
|
|
42
|
+
console.log(value, 'ss');
|
|
43
|
+
value[0] && setCurrentData(function (pre) {
|
|
44
|
+
return _objectSpread(_objectSpread({}, a), {}, {
|
|
45
|
+
values: value
|
|
46
|
+
});
|
|
47
|
+
});
|
|
48
|
+
};
|
|
49
|
+
var deleteFlex = function deleteFlex() {
|
|
50
|
+
console.log(currentData, attrArr, 'current');
|
|
51
|
+
// onChange();
|
|
52
|
+
};
|
|
53
|
+
useEffect(function () {
|
|
54
|
+
console.log(currentData, attrArr);
|
|
55
|
+
// setAttrArr((pre) => [...pre, currentData]);
|
|
56
|
+
}, [currentData]);
|
|
57
|
+
var add = function add() {
|
|
58
|
+
attrArr ? setAttrArr(function (pre) {
|
|
59
|
+
return [].concat(_toConsumableArray(pre), [currentData]);
|
|
60
|
+
}) : setAttrArr([currentData]);
|
|
61
|
+
};
|
|
62
|
+
return /*#__PURE__*/React.createElement(React.Fragment, null, attrArr && attrArr.map(function (o, index) {
|
|
63
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
64
|
+
key: index
|
|
65
|
+
}, /*#__PURE__*/React.createElement(BizAttributeSelector, {
|
|
66
|
+
eventIdList: [event.id],
|
|
67
|
+
enableDelete: false,
|
|
68
|
+
enableEventProp: true,
|
|
69
|
+
enableEnvProp: true,
|
|
70
|
+
value: a,
|
|
71
|
+
enableUserProp: false,
|
|
72
|
+
placeholder: "\u8BF7\u9009\u62E9\u5C5E\u6027",
|
|
73
|
+
onChange: function onChange(e) {
|
|
74
|
+
handleFlex(e);
|
|
75
|
+
}
|
|
76
|
+
}), /*#__PURE__*/React.createElement("div", null, "\u662F"), /*#__PURE__*/React.createElement(ValuesList, {
|
|
77
|
+
theme: "secondary",
|
|
78
|
+
attr: a && a,
|
|
79
|
+
operate: "equal",
|
|
80
|
+
onChange: function onChange(value) {
|
|
81
|
+
handleSelectFlexValues(value);
|
|
82
|
+
}
|
|
83
|
+
}), /*#__PURE__*/React.createElement("a", {
|
|
84
|
+
onClick: deleteFlex
|
|
85
|
+
}, "\u5220\u9664"));
|
|
86
|
+
}), /*#__PURE__*/React.createElement("button", {
|
|
87
|
+
onClick: function onClick() {
|
|
88
|
+
return add();
|
|
89
|
+
}
|
|
90
|
+
}, "\u6DFB\u52A0"));
|
|
91
|
+
};
|
|
92
|
+
export default SelectAttr;
|
|
@@ -0,0 +1,163 @@
|
|
|
1
|
+
.maidianMapIndex {
|
|
2
|
+
height: 100%;
|
|
3
|
+
}
|
|
4
|
+
.maidianMapIndex .info-upload-tip {
|
|
5
|
+
color: var(--io-N4-, #9aa1a9);
|
|
6
|
+
}
|
|
7
|
+
.mapSetting_search {
|
|
8
|
+
display: grid;
|
|
9
|
+
grid-template-columns: 1fr 100px;
|
|
10
|
+
justify-content: space-between;
|
|
11
|
+
margin-bottom: 16px;
|
|
12
|
+
}
|
|
13
|
+
.mapSetting_search_input {
|
|
14
|
+
width: 320px;
|
|
15
|
+
margin: 0px 10px 0px 0px;
|
|
16
|
+
}
|
|
17
|
+
.mapSetting .ant-page-header {
|
|
18
|
+
padding-top: 0px;
|
|
19
|
+
padding-left: 0px;
|
|
20
|
+
}
|
|
21
|
+
.mapSetting_addMap_tip {
|
|
22
|
+
padding: 0px 0px 0px 16px;
|
|
23
|
+
color: #67727f;
|
|
24
|
+
line-height: 44px;
|
|
25
|
+
background: #f2f3f4;
|
|
26
|
+
}
|
|
27
|
+
.mapSetting_addMap_propTitle {
|
|
28
|
+
padding: 0px 0px 0px 16px;
|
|
29
|
+
color: #67727f;
|
|
30
|
+
color: #354354;
|
|
31
|
+
font-size: 14px;
|
|
32
|
+
line-height: 32px;
|
|
33
|
+
background: #f2f3f4;
|
|
34
|
+
}
|
|
35
|
+
.mapSetting_addMap_propTitleLeft {
|
|
36
|
+
display: inline-block;
|
|
37
|
+
width: 58%;
|
|
38
|
+
text-align: left;
|
|
39
|
+
}
|
|
40
|
+
.mapSetting_addMap_propTitleRight {
|
|
41
|
+
display: inline-block;
|
|
42
|
+
width: 42%;
|
|
43
|
+
text-align: left;
|
|
44
|
+
}
|
|
45
|
+
.mapSetting_addMap_propValueList {
|
|
46
|
+
display: flex;
|
|
47
|
+
align-items: center;
|
|
48
|
+
width: 100%;
|
|
49
|
+
margin-top: 8px;
|
|
50
|
+
}
|
|
51
|
+
.mapSetting_addMap_propValueList .ant-form-item {
|
|
52
|
+
margin: 0px;
|
|
53
|
+
}
|
|
54
|
+
.mapSetting_addMap_propValueflag {
|
|
55
|
+
display: inline-block;
|
|
56
|
+
margin: 0px 8px;
|
|
57
|
+
}
|
|
58
|
+
.mapSetting_addMap_content {
|
|
59
|
+
display: grid;
|
|
60
|
+
grid-template-columns: 1fr 30px 1fr;
|
|
61
|
+
}
|
|
62
|
+
.mapSetting_footer {
|
|
63
|
+
display: flex;
|
|
64
|
+
align-items: center;
|
|
65
|
+
justify-content: flex-end;
|
|
66
|
+
}
|
|
67
|
+
.mapSetting_closeIco {
|
|
68
|
+
margin: '0px 8px ';
|
|
69
|
+
color: '#9aa1a9';
|
|
70
|
+
vertical-align: 'middle';
|
|
71
|
+
}
|
|
72
|
+
.mapSetting_closeIco:hover {
|
|
73
|
+
color: red;
|
|
74
|
+
}
|
|
75
|
+
.leftTreePage {
|
|
76
|
+
background-color: white;
|
|
77
|
+
}
|
|
78
|
+
.leftTreePage_selectMap {
|
|
79
|
+
display: grid;
|
|
80
|
+
grid-gap: 10px;
|
|
81
|
+
grid-template-columns: 75px 1fr 60px;
|
|
82
|
+
align-items: center;
|
|
83
|
+
margin: 0px 0px 24px;
|
|
84
|
+
}
|
|
85
|
+
.leftTreePage_selectMap_setting {
|
|
86
|
+
margin-left: 10px;
|
|
87
|
+
color: #165dff;
|
|
88
|
+
cursor: pointer;
|
|
89
|
+
}
|
|
90
|
+
.leftTreePage_searchBtn {
|
|
91
|
+
width: 100%;
|
|
92
|
+
padding: 6px 0px;
|
|
93
|
+
background-color: transparent;
|
|
94
|
+
border: 1px solid #ddd;
|
|
95
|
+
cursor: pointer;
|
|
96
|
+
}
|
|
97
|
+
.leftTreePage_searchBtn:hover {
|
|
98
|
+
color: #165dff;
|
|
99
|
+
border: 1px solid #165dff;
|
|
100
|
+
}
|
|
101
|
+
.dataMapDetail_echartDiv {
|
|
102
|
+
display: grid;
|
|
103
|
+
flex-wrap: wrap;
|
|
104
|
+
grid-gap: 20px;
|
|
105
|
+
grid-template-columns: repeat(2, 1fr);
|
|
106
|
+
align-items: center;
|
|
107
|
+
margin-top: 24px;
|
|
108
|
+
}
|
|
109
|
+
.dataMapDetail_echartDiv_item {
|
|
110
|
+
display: grid;
|
|
111
|
+
grid-template-columns: 1fr 60px;
|
|
112
|
+
align-items: center;
|
|
113
|
+
padding: 16px;
|
|
114
|
+
background-color: #fafafb;
|
|
115
|
+
border: 1px solid #eee;
|
|
116
|
+
}
|
|
117
|
+
.dataMapDetail_echartDiv_leftText {
|
|
118
|
+
display: inline-block;
|
|
119
|
+
margin-left: 8px;
|
|
120
|
+
color: #354354;
|
|
121
|
+
}
|
|
122
|
+
.dataMapDetail_echartDiv_view {
|
|
123
|
+
color: #165dff;
|
|
124
|
+
}
|
|
125
|
+
.biz-attr-select-handle {
|
|
126
|
+
width: 100%;
|
|
127
|
+
max-width: 100%;
|
|
128
|
+
margin-bottom: 2px;
|
|
129
|
+
padding: 0;
|
|
130
|
+
}
|
|
131
|
+
.empty {
|
|
132
|
+
height: 100%;
|
|
133
|
+
color: #67727f;
|
|
134
|
+
text-align: center;
|
|
135
|
+
}
|
|
136
|
+
.empty .empty-img {
|
|
137
|
+
display: block;
|
|
138
|
+
width: 200px;
|
|
139
|
+
margin: 0px auto;
|
|
140
|
+
}
|
|
141
|
+
.mapSetting_addMap_form .biz-attr-condition-group-handle {
|
|
142
|
+
display: none;
|
|
143
|
+
}
|
|
144
|
+
.ziBackground .ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected {
|
|
145
|
+
padding: 2px 3px;
|
|
146
|
+
background-color: #bad8ff7d;
|
|
147
|
+
}
|
|
148
|
+
.mapSetting .ant-dropdown-trigger.biz-select-handle.biz-condition-item-single-select {
|
|
149
|
+
position: relative;
|
|
150
|
+
background-color: transparent;
|
|
151
|
+
}
|
|
152
|
+
.mapSetting .ant-dropdown-trigger.biz-select-handle.biz-condition-item-single-select::after {
|
|
153
|
+
content: "是";
|
|
154
|
+
display: inline-block;
|
|
155
|
+
position: absolute;
|
|
156
|
+
width: 100%;
|
|
157
|
+
background-color: white;
|
|
158
|
+
top: 0px;
|
|
159
|
+
left: 0;
|
|
160
|
+
text-align: center;
|
|
161
|
+
vertical-align: middle;
|
|
162
|
+
padding-top: 8px;
|
|
163
|
+
}
|
|
@@ -0,0 +1,177 @@
|
|
|
1
|
+
.maidianMapIndex {
|
|
2
|
+
height: 100%;
|
|
3
|
+
.info-upload-tip {
|
|
4
|
+
color: var(--io-N4-, #9aa1a9);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
.mapSetting {
|
|
8
|
+
&_search {
|
|
9
|
+
display: grid;
|
|
10
|
+
grid-template-columns: 1fr 100px;
|
|
11
|
+
justify-content: space-between;
|
|
12
|
+
margin-bottom: 16px;
|
|
13
|
+
&_input {
|
|
14
|
+
width: 320px;
|
|
15
|
+
margin: 0px 10px 0px 0px;
|
|
16
|
+
}
|
|
17
|
+
}
|
|
18
|
+
.ant-page-header {
|
|
19
|
+
padding-top: 0px;
|
|
20
|
+
padding-left: 0px;
|
|
21
|
+
}
|
|
22
|
+
&_addMap {
|
|
23
|
+
&_tip {
|
|
24
|
+
padding: 0px 0px 0px 16px;
|
|
25
|
+
color: #67727f;
|
|
26
|
+
line-height: 44px;
|
|
27
|
+
background: #f2f3f4;
|
|
28
|
+
}
|
|
29
|
+
&_propTitle {
|
|
30
|
+
padding: 0px 0px 0px 16px;
|
|
31
|
+
color: #67727f;
|
|
32
|
+
color: #354354;
|
|
33
|
+
font-size: 14px;
|
|
34
|
+
line-height: 32px;
|
|
35
|
+
background: #f2f3f4;
|
|
36
|
+
}
|
|
37
|
+
&_propTitleLeft {
|
|
38
|
+
display: inline-block;
|
|
39
|
+
width: 58%;
|
|
40
|
+
text-align: left;
|
|
41
|
+
}
|
|
42
|
+
&_propTitleRight {
|
|
43
|
+
display: inline-block;
|
|
44
|
+
width: 42%;
|
|
45
|
+
text-align: left;
|
|
46
|
+
}
|
|
47
|
+
&_propValueList {
|
|
48
|
+
display: flex;
|
|
49
|
+
align-items: center;
|
|
50
|
+
width: 100%;
|
|
51
|
+
margin-top: 8px;
|
|
52
|
+
.ant-form-item {
|
|
53
|
+
margin: 0px;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
&_propValueflag {
|
|
57
|
+
display: inline-block;
|
|
58
|
+
margin: 0px 8px;
|
|
59
|
+
}
|
|
60
|
+
&_content {
|
|
61
|
+
display: grid;
|
|
62
|
+
grid-template-columns: 1fr 30px 1fr;
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
&_footer {
|
|
66
|
+
display: flex;
|
|
67
|
+
align-items: center;
|
|
68
|
+
justify-content: flex-end;
|
|
69
|
+
}
|
|
70
|
+
&_closeIco {
|
|
71
|
+
margin: '0px 8px ';
|
|
72
|
+
color: '#9aa1a9';
|
|
73
|
+
vertical-align: 'middle';
|
|
74
|
+
&:hover {
|
|
75
|
+
color: red;
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
.leftTreePage {
|
|
81
|
+
background-color: white;
|
|
82
|
+
&_selectMap {
|
|
83
|
+
display: grid;
|
|
84
|
+
grid-gap: 10px;
|
|
85
|
+
grid-template-columns: 75px 1fr 60px;
|
|
86
|
+
align-items: center;
|
|
87
|
+
margin: 0px 0px 24px;
|
|
88
|
+
}
|
|
89
|
+
&_selectMap_setting {
|
|
90
|
+
margin-left: 10px;
|
|
91
|
+
color: #165dff;
|
|
92
|
+
cursor: pointer;
|
|
93
|
+
}
|
|
94
|
+
&_searchBtn {
|
|
95
|
+
width: 100%;
|
|
96
|
+
padding: 6px 0px;
|
|
97
|
+
background-color: transparent;
|
|
98
|
+
border: 1px solid #ddd;
|
|
99
|
+
cursor: pointer;
|
|
100
|
+
}
|
|
101
|
+
&_searchBtn:hover {
|
|
102
|
+
color: #165dff;
|
|
103
|
+
border: 1px solid #165dff;
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
.dataMapDetail_echartDiv {
|
|
108
|
+
display: grid;
|
|
109
|
+
flex-wrap: wrap;
|
|
110
|
+
grid-gap: 20px;
|
|
111
|
+
grid-template-columns: repeat(2, 1fr);
|
|
112
|
+
align-items: center;
|
|
113
|
+
margin-top: 24px;
|
|
114
|
+
&_item {
|
|
115
|
+
display: grid;
|
|
116
|
+
grid-template-columns: 1fr 60px;
|
|
117
|
+
align-items: center;
|
|
118
|
+
padding: 16px;
|
|
119
|
+
background-color: #fafafb;
|
|
120
|
+
border: 1px solid #eee;
|
|
121
|
+
}
|
|
122
|
+
&_leftText {
|
|
123
|
+
display: inline-block;
|
|
124
|
+
margin-left: 8px;
|
|
125
|
+
color: #354354;
|
|
126
|
+
}
|
|
127
|
+
&_view {
|
|
128
|
+
color: #165dff;
|
|
129
|
+
}
|
|
130
|
+
}
|
|
131
|
+
.biz-attr-select-handle {
|
|
132
|
+
width: 100%;
|
|
133
|
+
max-width: 100%;
|
|
134
|
+
margin-bottom: 2px;
|
|
135
|
+
padding: 0;
|
|
136
|
+
}
|
|
137
|
+
.empty {
|
|
138
|
+
height: 100%;
|
|
139
|
+
color: #67727f;
|
|
140
|
+
text-align: center;
|
|
141
|
+
.empty-img {
|
|
142
|
+
display: block;
|
|
143
|
+
width: 200px;
|
|
144
|
+
margin: 0px auto;
|
|
145
|
+
}
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.mapSetting_addMap_form {
|
|
149
|
+
.biz-attr-condition-group-handle {
|
|
150
|
+
display: none;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
.ziBackground {
|
|
154
|
+
.ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected {
|
|
155
|
+
padding: 2px 3px;
|
|
156
|
+
background-color: #bad8ff7d;
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.mapSetting {
|
|
161
|
+
.ant-dropdown-trigger.biz-select-handle.biz-condition-item-single-select {
|
|
162
|
+
position: relative;
|
|
163
|
+
background-color: transparent;
|
|
164
|
+
&::after {
|
|
165
|
+
position: absolute;
|
|
166
|
+
top: 0px;
|
|
167
|
+
left: 0;
|
|
168
|
+
display: inline-block;
|
|
169
|
+
width: 100%;
|
|
170
|
+
padding-top: 8px;
|
|
171
|
+
text-align: center;
|
|
172
|
+
vertical-align: middle;
|
|
173
|
+
background-color: white;
|
|
174
|
+
content: '是';
|
|
175
|
+
}
|
|
176
|
+
}
|
|
177
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import * as React from 'react';
|
|
2
|
+
import { DataMapView } from '@zgfe/modules-dm';
|
|
3
|
+
import DemoWrapper2 from '../../../components/demo';
|
|
4
|
+
export default (function () {
|
|
5
|
+
return /*#__PURE__*/React.createElement(DemoWrapper2, null, /*#__PURE__*/React.createElement(DataMapView, null));
|
|
6
|
+
});
|
|
Binary file
|
|
@@ -0,0 +1,80 @@
|
|
|
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 React, { useState, useEffect, useContext } from 'react';
|
|
8
|
+
import { Button, message, Spin } from 'antd';
|
|
9
|
+
import MapSetting from './mapSetting';
|
|
10
|
+
import MapDetail from './mapDetail';
|
|
11
|
+
import apis from '../../constants/api';
|
|
12
|
+
import { BizGlobalDataContext } from '@zgfe/business-lib';
|
|
13
|
+
import request from '../../utils/ajax';
|
|
14
|
+
import { mapContext } from '../CutsModal';
|
|
15
|
+
import emptyData from './img/empty-data.png';
|
|
16
|
+
function DataMapView() {
|
|
17
|
+
var _useState = useState(false),
|
|
18
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
19
|
+
mapViewFlg = _useState2[0],
|
|
20
|
+
setMapViewFlg = _useState2[1]; // 地图设置页面 是否显示
|
|
21
|
+
var _useContext = useContext(BizGlobalDataContext),
|
|
22
|
+
currentApp = _useContext.currentApp;
|
|
23
|
+
// 地图数据
|
|
24
|
+
var _useState3 = useState([]),
|
|
25
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
26
|
+
mapData = _useState4[0],
|
|
27
|
+
setMapData = _useState4[1];
|
|
28
|
+
// 接口是否请求完成
|
|
29
|
+
var _useState5 = useState(false),
|
|
30
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
31
|
+
apiDone = _useState6[0],
|
|
32
|
+
setApiDone = _useState6[1];
|
|
33
|
+
useEffect(function () {
|
|
34
|
+
getList();
|
|
35
|
+
}, []);
|
|
36
|
+
var getList = function getList() {
|
|
37
|
+
var searchName = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : '';
|
|
38
|
+
request(apis.dataMap.getList, {
|
|
39
|
+
method: 'get',
|
|
40
|
+
params: {
|
|
41
|
+
mapName: searchName,
|
|
42
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId
|
|
43
|
+
}
|
|
44
|
+
}).then(function (res) {
|
|
45
|
+
if (!res) return;
|
|
46
|
+
if ((res === null || res === void 0 ? void 0 : res.code) == '100000') {
|
|
47
|
+
setMapData(res.data);
|
|
48
|
+
} else {
|
|
49
|
+
message.error('查询列表失败!');
|
|
50
|
+
}
|
|
51
|
+
setApiDone(true);
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
55
|
+
className: "maidianMapIndex"
|
|
56
|
+
}, !apiDone && /*#__PURE__*/React.createElement(Spin, {
|
|
57
|
+
tip: "\u57FA\u7840\u6570\u636E\u52A0\u8F7D\u4E2D",
|
|
58
|
+
style: {
|
|
59
|
+
textAlign: 'center'
|
|
60
|
+
}
|
|
61
|
+
}), /*#__PURE__*/React.createElement(mapContext.Provider, {
|
|
62
|
+
value: {
|
|
63
|
+
setMapViewFlg: setMapViewFlg,
|
|
64
|
+
mapData: mapData
|
|
65
|
+
}
|
|
66
|
+
}, apiDone && (mapData === null || mapData === void 0 ? void 0 : mapData.length) > 0 && !mapViewFlg && /*#__PURE__*/React.createElement(MapDetail, null), apiDone && mapViewFlg && /*#__PURE__*/React.createElement(MapSetting, {
|
|
67
|
+
getList: getList
|
|
68
|
+
})), apiDone && (mapData === null || mapData === void 0 ? void 0 : mapData.length) < 1 && !mapViewFlg && (/*#__PURE__*/React.createElement("div", {
|
|
69
|
+
className: "empty"
|
|
70
|
+
}, /*#__PURE__*/React.createElement("img", {
|
|
71
|
+
src: emptyData,
|
|
72
|
+
className: "empty-img"
|
|
73
|
+
}), /*#__PURE__*/React.createElement("p", null, "\u8BF7\u5148\u5B8C\u6210\u5168\u57CB\u70B9\u8BBE\u7F6E"), /*#__PURE__*/React.createElement(Button, {
|
|
74
|
+
type: "primary",
|
|
75
|
+
onClick: function onClick() {
|
|
76
|
+
return setMapViewFlg(true);
|
|
77
|
+
}
|
|
78
|
+
}, "\u5F00\u59CB\u8BBE\u7F6E"))));
|
|
79
|
+
}
|
|
80
|
+
export default DataMapView;
|
|
@@ -0,0 +1,44 @@
|
|
|
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 { Row, Col } from 'antd';
|
|
8
|
+
import React, { useState } from 'react';
|
|
9
|
+
import LeftTree from './component/leftTree';
|
|
10
|
+
import RightDetail from './component/rightDetail';
|
|
11
|
+
var MapDetail = function MapDetail() {
|
|
12
|
+
var _useState = useState(),
|
|
13
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
14
|
+
currentTreeData = _useState2[0],
|
|
15
|
+
setCurrentTreeData = _useState2[1];
|
|
16
|
+
var onChangeTree = function onChangeTree(currentTreeData) {
|
|
17
|
+
setCurrentTreeData(currentTreeData);
|
|
18
|
+
};
|
|
19
|
+
var _useState3 = useState(),
|
|
20
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
21
|
+
currentMap = _useState4[0],
|
|
22
|
+
setCurrentMap = _useState4[1];
|
|
23
|
+
var onCurrentMap = function onCurrentMap(value) {
|
|
24
|
+
setCurrentMap(value);
|
|
25
|
+
};
|
|
26
|
+
return /*#__PURE__*/React.createElement(Row, {
|
|
27
|
+
gutter: 24
|
|
28
|
+
}, /*#__PURE__*/React.createElement(Col, {
|
|
29
|
+
span: 8,
|
|
30
|
+
style: {
|
|
31
|
+
backgroundColor: 'white',
|
|
32
|
+
padding: '20px'
|
|
33
|
+
}
|
|
34
|
+
}, /*#__PURE__*/React.createElement(LeftTree, {
|
|
35
|
+
onChangeTree: onChangeTree,
|
|
36
|
+
onCurrentMap: onCurrentMap
|
|
37
|
+
})), /*#__PURE__*/React.createElement(Col, {
|
|
38
|
+
span: 16
|
|
39
|
+
}, /*#__PURE__*/React.createElement(RightDetail, {
|
|
40
|
+
currentTreeData: currentTreeData && JSON.stringify(currentTreeData) != '{}' && currentTreeData,
|
|
41
|
+
currentMap: currentMap
|
|
42
|
+
})));
|
|
43
|
+
};
|
|
44
|
+
export default MapDetail;
|