@zgfe/modules-dm 1.0.42-alpha.9 → 1.0.56-zhongyuan.10
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 +100 -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 +624 -93
- 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 +7 -0
- package/es/modules/dataMap/component/leftTree.js +255 -0
- package/es/modules/dataMap/component/rightDetail.d.ts +8 -0
- package/es/modules/dataMap/component/rightDetail.js +668 -0
- package/es/modules/dataMap/component/rightDetail1.d.ts +7 -0
- package/es/modules/dataMap/component/rightDetail1.js +643 -0
- package/es/modules/dataMap/component/viewMapSetting.d.ts +24 -0
- package/es/modules/dataMap/component/viewMapSetting.js +161 -0
- package/es/modules/dataMap/css/index.css +193 -0
- package/es/modules/dataMap/css/index.less +210 -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 +53 -0
- package/es/modules/dataMap/mapSetting.d.ts +6 -0
- package/es/modules/dataMap/mapSetting.js +168 -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 +246 -0
- package/es/modules/dataReal/table.d.ts +5 -0
- package/es/modules/dataReal/table.js +261 -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 +10 -4
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import React from 'react';
|
|
2
|
+
export interface mapRowType {
|
|
3
|
+
appId: number;
|
|
4
|
+
attributeJson: string;
|
|
5
|
+
createdTime: string;
|
|
6
|
+
eventId: number;
|
|
7
|
+
eventName: string;
|
|
8
|
+
filterJson: string;
|
|
9
|
+
id: number;
|
|
10
|
+
isDelete: number;
|
|
11
|
+
lastUpdatedTime: null | string;
|
|
12
|
+
mapName: string;
|
|
13
|
+
moduleAttrName: string;
|
|
14
|
+
pageAttrName: string;
|
|
15
|
+
remarkAttrName: string;
|
|
16
|
+
status: number;
|
|
17
|
+
updatedTime: string;
|
|
18
|
+
}
|
|
19
|
+
declare const ViewMapSetting: React.FC<{
|
|
20
|
+
open: boolean;
|
|
21
|
+
handleClose: Function;
|
|
22
|
+
currentMap: mapRowType | undefined;
|
|
23
|
+
}>;
|
|
24
|
+
export default ViewMapSetting;
|
|
@@ -0,0 +1,161 @@
|
|
|
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, { useEffect, useState } from 'react';
|
|
8
|
+
import { Input, Drawer, Form } from 'antd';
|
|
9
|
+
import { IconFont } from '@zgfe/business-lib';
|
|
10
|
+
var pageClassName = 'mapSetting';
|
|
11
|
+
var ViewMapSetting = function ViewMapSetting(props) {
|
|
12
|
+
var _useState = useState(false),
|
|
13
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
14
|
+
isOpen = _useState2[0],
|
|
15
|
+
setIsOpen = _useState2[1];
|
|
16
|
+
var _Form$useForm = Form.useForm(),
|
|
17
|
+
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
18
|
+
form = _Form$useForm2[0];
|
|
19
|
+
// 关闭抽屉并重置表单
|
|
20
|
+
useEffect(function () {
|
|
21
|
+
setIsOpen(props.open);
|
|
22
|
+
}, [props.open]);
|
|
23
|
+
var closeDrawer = function closeDrawer() {
|
|
24
|
+
setIsOpen(false);
|
|
25
|
+
setFilter(undefined);
|
|
26
|
+
form.validateFields();
|
|
27
|
+
props.handleClose();
|
|
28
|
+
};
|
|
29
|
+
// 筛选属性组
|
|
30
|
+
var _useState3 = useState(),
|
|
31
|
+
_useState4 = _slicedToArray(_useState3, 2),
|
|
32
|
+
filter = _useState4[0],
|
|
33
|
+
setFilter = _useState4[1];
|
|
34
|
+
// 查看 回填
|
|
35
|
+
useEffect(function () {
|
|
36
|
+
if (props.currentMap) {
|
|
37
|
+
var _props$currentMap, _props$currentMap2, _props$currentMap3, _props$currentMap4, _props$currentMap5, _props$currentMap6, _props$currentMap7;
|
|
38
|
+
form.setFieldsValue({
|
|
39
|
+
name: (_props$currentMap = props.currentMap) === null || _props$currentMap === void 0 ? void 0 : _props$currentMap.mapName,
|
|
40
|
+
event: (_props$currentMap2 = props.currentMap) === null || _props$currentMap2 === void 0 ? void 0 : _props$currentMap2.eventName,
|
|
41
|
+
inquire: (props === null || props === void 0 ? void 0 : props.currentMap) && (props === null || props === void 0 ? void 0 : props.currentMap.attributeJson) && JSON.parse(props === null || props === void 0 ? void 0 : props.currentMap.attributeJson),
|
|
42
|
+
page: (_props$currentMap3 = props.currentMap) === null || _props$currentMap3 === void 0 ? void 0 : _props$currentMap3.pageAttrName,
|
|
43
|
+
remark: (_props$currentMap4 = props.currentMap) === null || _props$currentMap4 === void 0 ? void 0 : _props$currentMap4.remarkAttrName,
|
|
44
|
+
model: (_props$currentMap5 = props.currentMap) === null || _props$currentMap5 === void 0 ? void 0 : _props$currentMap5.moduleAttrName
|
|
45
|
+
});
|
|
46
|
+
setFilter((props === null || props === void 0 ? void 0 : (_props$currentMap6 = props.currentMap) === null || _props$currentMap6 === void 0 ? void 0 : _props$currentMap6.filterJson) && JSON.parse(props === null || props === void 0 ? void 0 : (_props$currentMap7 = props.currentMap) === null || _props$currentMap7 === void 0 ? void 0 : _props$currentMap7.filterJson));
|
|
47
|
+
} else {
|
|
48
|
+
setFilter(undefined);
|
|
49
|
+
}
|
|
50
|
+
}, [props.currentMap]);
|
|
51
|
+
return /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Drawer, {
|
|
52
|
+
title: "\u67E5\u770B\u5730\u56FE",
|
|
53
|
+
placement: "right",
|
|
54
|
+
onClose: closeDrawer,
|
|
55
|
+
open: isOpen,
|
|
56
|
+
width: "800px",
|
|
57
|
+
footer: null
|
|
58
|
+
}, /*#__PURE__*/React.createElement("p", {
|
|
59
|
+
className: "".concat(pageClassName, "_addMap_tip")
|
|
60
|
+
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
61
|
+
type: "tishi"
|
|
62
|
+
}), " \u5730\u56FE\u6570\u636E\u6BCF\u65E5\u66F4\u65B0\u4E00\u6B21\uFF0C\u65B0\u5EFA\u4E0E\u4FEE\u6539\u5730\u56FE\u6B21\u65E5\u5B8C\u6210\u66F4\u65B0"), /*#__PURE__*/React.createElement("div", {
|
|
63
|
+
className: "".concat(pageClassName)
|
|
64
|
+
}, /*#__PURE__*/React.createElement(Form, {
|
|
65
|
+
form: form,
|
|
66
|
+
labelCol: {
|
|
67
|
+
span: 4
|
|
68
|
+
},
|
|
69
|
+
wrapperCol: {
|
|
70
|
+
span: 20
|
|
71
|
+
},
|
|
72
|
+
labelAlign: "left",
|
|
73
|
+
initialValues: {
|
|
74
|
+
inquire: null
|
|
75
|
+
},
|
|
76
|
+
disabled: true,
|
|
77
|
+
className: "mapSetting_addMap_form"
|
|
78
|
+
}, /*#__PURE__*/React.createElement(Form.Item, {
|
|
79
|
+
label: "\u5730\u56FE\u540D\u79F0",
|
|
80
|
+
name: "name",
|
|
81
|
+
rules: [{
|
|
82
|
+
required: true,
|
|
83
|
+
message: '地图名称不可为空'
|
|
84
|
+
}]
|
|
85
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
86
|
+
placeholder: "\u4E3A\u586B\u5199\u5730\u56FE\u540D\u79F0"
|
|
87
|
+
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
88
|
+
label: "\u5730\u56FE\u4E8B\u4EF6",
|
|
89
|
+
name: "event",
|
|
90
|
+
rules: [{
|
|
91
|
+
required: true,
|
|
92
|
+
message: '地图事件不可为空'
|
|
93
|
+
}]
|
|
94
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
95
|
+
placeholder: "\u672A\u9009\u5730\u56FE\u4E8B\u4EF6"
|
|
96
|
+
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
97
|
+
label: "\u5C55\u793A\u9875\u9762",
|
|
98
|
+
name: "page",
|
|
99
|
+
rules: [{
|
|
100
|
+
required: true,
|
|
101
|
+
message: '展示页面不可为空'
|
|
102
|
+
}]
|
|
103
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
104
|
+
placeholder: "\u672A\u9009\u5C55\u793A\u9875\u9762"
|
|
105
|
+
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
106
|
+
label: "\u5907\u6CE8\u540D\u79F0",
|
|
107
|
+
name: "remark",
|
|
108
|
+
rules: [{
|
|
109
|
+
required: true,
|
|
110
|
+
message: '备注名称不可为空'
|
|
111
|
+
}]
|
|
112
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
113
|
+
placeholder: "\u672A\u9009\u5907\u6CE8"
|
|
114
|
+
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
115
|
+
label: "\u6240\u5C5E\u6A21\u5757",
|
|
116
|
+
name: "model",
|
|
117
|
+
rules: [{
|
|
118
|
+
required: true,
|
|
119
|
+
message: '所属模块不可为空'
|
|
120
|
+
}]
|
|
121
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
122
|
+
placeholder: "\u672A\u9009\u6240\u5C5E\u6A21\u5757"
|
|
123
|
+
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
124
|
+
label: "\u56FA\u5B9A\u7B5B\u9009"
|
|
125
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
126
|
+
className: "".concat(pageClassName, "_addMap_propTitle")
|
|
127
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
128
|
+
className: "".concat(pageClassName, "_addMap_propTitleLeft")
|
|
129
|
+
}, "\u5C5E\u6027\u540D"), /*#__PURE__*/React.createElement("span", {
|
|
130
|
+
className: "".concat(pageClassName, "_addMap_propTitleRight")
|
|
131
|
+
}, "\u5C5E\u6027\u503C")), /*#__PURE__*/React.createElement("div", {
|
|
132
|
+
className: "".concat(pageClassName, "_addMap_propContent")
|
|
133
|
+
}, filter && (filter === null || filter === void 0 ? void 0 : filter.conditions) && (filter === null || filter === void 0 ? void 0 : filter.conditions.map(function (o, index) {
|
|
134
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
135
|
+
key: index,
|
|
136
|
+
style: {
|
|
137
|
+
margin: '10px 0px 10px'
|
|
138
|
+
}
|
|
139
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
140
|
+
className: "".concat(pageClassName, "_addMap_propContentLeft"),
|
|
141
|
+
value: o.label
|
|
142
|
+
}), /*#__PURE__*/React.createElement("span", {
|
|
143
|
+
className: "".concat(pageClassName, "_addMap_propContentC")
|
|
144
|
+
}, "\u662F"), /*#__PURE__*/React.createElement(Input, {
|
|
145
|
+
className: "".concat(pageClassName, "_addMap_propContentRight"),
|
|
146
|
+
value: o.values
|
|
147
|
+
}));
|
|
148
|
+
})))), /*#__PURE__*/React.createElement(Form.Item, {
|
|
149
|
+
label: "\u67E5\u8BE2\u5C5E\u6027"
|
|
150
|
+
}, props.currentMap && props.currentMap.attributeJson && JSON.parse(props.currentMap.attributeJson).map(function (o, index) {
|
|
151
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
152
|
+
key: index,
|
|
153
|
+
style: {
|
|
154
|
+
margin: '0px 0px 10px'
|
|
155
|
+
}
|
|
156
|
+
}, /*#__PURE__*/React.createElement(Input, {
|
|
157
|
+
value: o.inquire.label
|
|
158
|
+
}));
|
|
159
|
+
}))))));
|
|
160
|
+
};
|
|
161
|
+
export default ViewMapSetting;
|
|
@@ -0,0 +1,193 @@
|
|
|
1
|
+
.maidianMapIndex {
|
|
2
|
+
height: 100%;
|
|
3
|
+
}
|
|
4
|
+
.maidianMapIndex .info-upload-tip {
|
|
5
|
+
color: var(--io-N4-, #9aa1a9);
|
|
6
|
+
}
|
|
7
|
+
.mapSetting .ant-input[disabled] {
|
|
8
|
+
background-color: #fafafb !important;
|
|
9
|
+
}
|
|
10
|
+
.mapSetting_search {
|
|
11
|
+
display: grid;
|
|
12
|
+
grid-template-columns: 1fr 100px;
|
|
13
|
+
justify-content: space-between;
|
|
14
|
+
margin-bottom: 16px;
|
|
15
|
+
}
|
|
16
|
+
.mapSetting_search_input {
|
|
17
|
+
width: 320px;
|
|
18
|
+
margin: 0px 10px 0px 0px;
|
|
19
|
+
}
|
|
20
|
+
.mapSetting .ant-page-header {
|
|
21
|
+
padding-top: 0px;
|
|
22
|
+
padding-left: 0px;
|
|
23
|
+
}
|
|
24
|
+
.mapSetting_addMap_tip {
|
|
25
|
+
padding: 0px 0px 0px 16px;
|
|
26
|
+
color: #67727f;
|
|
27
|
+
line-height: 44px;
|
|
28
|
+
background: #f2f3f4;
|
|
29
|
+
}
|
|
30
|
+
.mapSetting_addMap_propTitle {
|
|
31
|
+
padding: 0px 0px 0px 16px;
|
|
32
|
+
color: #67727f;
|
|
33
|
+
color: #354354;
|
|
34
|
+
font-size: 14px;
|
|
35
|
+
line-height: 32px;
|
|
36
|
+
background: #f2f3f4;
|
|
37
|
+
}
|
|
38
|
+
.mapSetting_addMap_propTitleLeft {
|
|
39
|
+
display: inline-block;
|
|
40
|
+
width: 58%;
|
|
41
|
+
text-align: left;
|
|
42
|
+
}
|
|
43
|
+
.mapSetting_addMap_propTitleRight {
|
|
44
|
+
display: inline-block;
|
|
45
|
+
width: 42%;
|
|
46
|
+
text-align: left;
|
|
47
|
+
}
|
|
48
|
+
.mapSetting_addMap_propContent {
|
|
49
|
+
padding: 0px 0px 0px 0px;
|
|
50
|
+
color: #67727f;
|
|
51
|
+
color: #354354;
|
|
52
|
+
font-size: 14px;
|
|
53
|
+
line-height: 32px;
|
|
54
|
+
}
|
|
55
|
+
.mapSetting_addMap_propContentLeft {
|
|
56
|
+
display: inline-block;
|
|
57
|
+
width: 50%;
|
|
58
|
+
text-align: left;
|
|
59
|
+
}
|
|
60
|
+
.mapSetting_addMap_propContentRight {
|
|
61
|
+
display: inline-block;
|
|
62
|
+
width: 40%;
|
|
63
|
+
text-align: left;
|
|
64
|
+
}
|
|
65
|
+
.mapSetting_addMap_propContentC {
|
|
66
|
+
display: inline-block;
|
|
67
|
+
width: 10%;
|
|
68
|
+
text-align: center;
|
|
69
|
+
}
|
|
70
|
+
.mapSetting_addMap_propValueList {
|
|
71
|
+
display: flex;
|
|
72
|
+
align-items: center;
|
|
73
|
+
width: 100%;
|
|
74
|
+
margin-top: 8px;
|
|
75
|
+
}
|
|
76
|
+
.mapSetting_addMap_propValueList .ant-form-item {
|
|
77
|
+
margin: 0px;
|
|
78
|
+
}
|
|
79
|
+
.mapSetting_addMap_propValueflag {
|
|
80
|
+
display: inline-block;
|
|
81
|
+
margin: 0px 8px;
|
|
82
|
+
}
|
|
83
|
+
.mapSetting_addMap_content {
|
|
84
|
+
display: grid;
|
|
85
|
+
grid-template-columns: 1fr 30px 1fr;
|
|
86
|
+
}
|
|
87
|
+
.mapSetting_footer {
|
|
88
|
+
display: flex;
|
|
89
|
+
align-items: center;
|
|
90
|
+
justify-content: flex-end;
|
|
91
|
+
}
|
|
92
|
+
.mapSetting_closeIco {
|
|
93
|
+
margin: '0px 8px ';
|
|
94
|
+
color: '#9aa1a9';
|
|
95
|
+
vertical-align: 'middle';
|
|
96
|
+
}
|
|
97
|
+
.mapSetting_closeIco:hover {
|
|
98
|
+
color: red;
|
|
99
|
+
}
|
|
100
|
+
.leftTreePage {
|
|
101
|
+
display: flex;
|
|
102
|
+
flex-direction: column;
|
|
103
|
+
background-color: white;
|
|
104
|
+
}
|
|
105
|
+
.leftTreePage-top {
|
|
106
|
+
flex: 1;
|
|
107
|
+
}
|
|
108
|
+
.leftTreePage_selectMap {
|
|
109
|
+
display: grid;
|
|
110
|
+
grid-gap: 10px;
|
|
111
|
+
grid-template-columns: 75px 1fr 60px;
|
|
112
|
+
align-items: center;
|
|
113
|
+
margin: 0px 0px 24px;
|
|
114
|
+
}
|
|
115
|
+
.leftTreePage_selectMap_setting {
|
|
116
|
+
margin-left: 10px;
|
|
117
|
+
color: #165dff;
|
|
118
|
+
cursor: pointer;
|
|
119
|
+
}
|
|
120
|
+
.leftTreePage_searchBtn {
|
|
121
|
+
width: 100%;
|
|
122
|
+
padding: 6px 0px;
|
|
123
|
+
background-color: transparent;
|
|
124
|
+
border: 1px solid #ddd;
|
|
125
|
+
cursor: pointer;
|
|
126
|
+
}
|
|
127
|
+
.leftTreePage_searchBtn:hover {
|
|
128
|
+
color: #165dff;
|
|
129
|
+
border: 1px solid #165dff;
|
|
130
|
+
}
|
|
131
|
+
.dataMapDetail_echartDiv {
|
|
132
|
+
display: grid;
|
|
133
|
+
flex-wrap: wrap;
|
|
134
|
+
grid-gap: 20px;
|
|
135
|
+
grid-template-columns: repeat(2, 1fr);
|
|
136
|
+
align-items: center;
|
|
137
|
+
margin-top: 24px;
|
|
138
|
+
}
|
|
139
|
+
.dataMapDetail_echartDiv_item {
|
|
140
|
+
display: grid;
|
|
141
|
+
grid-template-columns: 1fr 60px;
|
|
142
|
+
align-items: center;
|
|
143
|
+
padding: 20px;
|
|
144
|
+
background-color: #fafafb;
|
|
145
|
+
border: 1px solid #eee;
|
|
146
|
+
}
|
|
147
|
+
.dataMapDetail_echartDiv_leftText {
|
|
148
|
+
display: inline-block;
|
|
149
|
+
margin-left: 8px;
|
|
150
|
+
color: #354354;
|
|
151
|
+
}
|
|
152
|
+
.dataMapDetail_echartDiv_view {
|
|
153
|
+
color: #165dff;
|
|
154
|
+
}
|
|
155
|
+
.biz-attr-select-handle {
|
|
156
|
+
width: 100%;
|
|
157
|
+
max-width: 100%;
|
|
158
|
+
margin-bottom: 2px;
|
|
159
|
+
padding: 0;
|
|
160
|
+
}
|
|
161
|
+
.empty {
|
|
162
|
+
height: 100%;
|
|
163
|
+
color: #67727f;
|
|
164
|
+
text-align: center;
|
|
165
|
+
}
|
|
166
|
+
.empty .empty-img {
|
|
167
|
+
display: block;
|
|
168
|
+
width: 200px;
|
|
169
|
+
margin: 0px auto;
|
|
170
|
+
}
|
|
171
|
+
.mapSetting_addMap_form .biz-attr-condition-group-handle {
|
|
172
|
+
display: none;
|
|
173
|
+
}
|
|
174
|
+
.ziBackground .ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected {
|
|
175
|
+
padding: 2px 3px;
|
|
176
|
+
background-color: #bad8ff7d;
|
|
177
|
+
}
|
|
178
|
+
.mapSetting .ant-dropdown-trigger.biz-select-handle.biz-condition-item-single-select {
|
|
179
|
+
position: relative;
|
|
180
|
+
background-color: transparent;
|
|
181
|
+
}
|
|
182
|
+
.mapSetting .ant-dropdown-trigger.biz-select-handle.biz-condition-item-single-select::after {
|
|
183
|
+
position: absolute;
|
|
184
|
+
top: 0px;
|
|
185
|
+
left: 0;
|
|
186
|
+
display: inline-block;
|
|
187
|
+
width: 100%;
|
|
188
|
+
padding-top: 8px;
|
|
189
|
+
text-align: center;
|
|
190
|
+
vertical-align: middle;
|
|
191
|
+
background-color: white;
|
|
192
|
+
content: '是';
|
|
193
|
+
}
|
|
@@ -0,0 +1,210 @@
|
|
|
1
|
+
.maidianMapIndex {
|
|
2
|
+
height: 100%;
|
|
3
|
+
.info-upload-tip {
|
|
4
|
+
color: var(--io-N4-, #9aa1a9);
|
|
5
|
+
}
|
|
6
|
+
}
|
|
7
|
+
.mapSetting {
|
|
8
|
+
.ant-input[disabled] {
|
|
9
|
+
background-color: #fafafb !important;
|
|
10
|
+
}
|
|
11
|
+
&_search {
|
|
12
|
+
display: grid;
|
|
13
|
+
grid-template-columns: 1fr 100px;
|
|
14
|
+
justify-content: space-between;
|
|
15
|
+
margin-bottom: 16px;
|
|
16
|
+
&_input {
|
|
17
|
+
width: 320px;
|
|
18
|
+
margin: 0px 10px 0px 0px;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
.ant-page-header {
|
|
22
|
+
padding-top: 0px;
|
|
23
|
+
padding-left: 0px;
|
|
24
|
+
}
|
|
25
|
+
&_addMap {
|
|
26
|
+
&_tip {
|
|
27
|
+
padding: 0px 0px 0px 16px;
|
|
28
|
+
color: #67727f;
|
|
29
|
+
line-height: 44px;
|
|
30
|
+
background: #f2f3f4;
|
|
31
|
+
}
|
|
32
|
+
&_propTitle {
|
|
33
|
+
padding: 0px 0px 0px 16px;
|
|
34
|
+
color: #67727f;
|
|
35
|
+
color: #354354;
|
|
36
|
+
font-size: 14px;
|
|
37
|
+
line-height: 32px;
|
|
38
|
+
background: #f2f3f4;
|
|
39
|
+
}
|
|
40
|
+
&_propTitleLeft {
|
|
41
|
+
display: inline-block;
|
|
42
|
+
width: 58%;
|
|
43
|
+
text-align: left;
|
|
44
|
+
}
|
|
45
|
+
&_propTitleRight {
|
|
46
|
+
display: inline-block;
|
|
47
|
+
width: 42%;
|
|
48
|
+
text-align: left;
|
|
49
|
+
}
|
|
50
|
+
&_propContent {
|
|
51
|
+
padding: 0px 0px 0px 0px;
|
|
52
|
+
color: #67727f;
|
|
53
|
+
color: #354354;
|
|
54
|
+
font-size: 14px;
|
|
55
|
+
line-height: 32px;
|
|
56
|
+
}
|
|
57
|
+
&_propContentLeft {
|
|
58
|
+
display: inline-block;
|
|
59
|
+
width: 50%;
|
|
60
|
+
text-align: left;
|
|
61
|
+
}
|
|
62
|
+
&_propContentRight {
|
|
63
|
+
display: inline-block;
|
|
64
|
+
width: 40%;
|
|
65
|
+
text-align: left;
|
|
66
|
+
}
|
|
67
|
+
&_propContentC {
|
|
68
|
+
display: inline-block;
|
|
69
|
+
width: 10%;
|
|
70
|
+
text-align: center;
|
|
71
|
+
}
|
|
72
|
+
&_propValueList {
|
|
73
|
+
display: flex;
|
|
74
|
+
align-items: center;
|
|
75
|
+
width: 100%;
|
|
76
|
+
margin-top: 8px;
|
|
77
|
+
.ant-form-item {
|
|
78
|
+
margin: 0px;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
&_propValueflag {
|
|
82
|
+
display: inline-block;
|
|
83
|
+
margin: 0px 8px;
|
|
84
|
+
}
|
|
85
|
+
&_content {
|
|
86
|
+
display: grid;
|
|
87
|
+
grid-template-columns: 1fr 30px 1fr;
|
|
88
|
+
}
|
|
89
|
+
}
|
|
90
|
+
&_footer {
|
|
91
|
+
display: flex;
|
|
92
|
+
align-items: center;
|
|
93
|
+
justify-content: flex-end;
|
|
94
|
+
}
|
|
95
|
+
&_closeIco {
|
|
96
|
+
margin: '0px 8px ';
|
|
97
|
+
color: '#9aa1a9';
|
|
98
|
+
vertical-align: 'middle';
|
|
99
|
+
&:hover {
|
|
100
|
+
color: red;
|
|
101
|
+
}
|
|
102
|
+
}
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
.leftTreePage {
|
|
106
|
+
display: flex;
|
|
107
|
+
flex-direction: column;
|
|
108
|
+
background-color: white;
|
|
109
|
+
&-top {
|
|
110
|
+
flex: 1;
|
|
111
|
+
}
|
|
112
|
+
&-tree {
|
|
113
|
+
// max-height: 100%;
|
|
114
|
+
}
|
|
115
|
+
&_selectMap {
|
|
116
|
+
display: grid;
|
|
117
|
+
grid-gap: 10px;
|
|
118
|
+
grid-template-columns: 75px 1fr 60px;
|
|
119
|
+
align-items: center;
|
|
120
|
+
margin: 0px 0px 24px;
|
|
121
|
+
}
|
|
122
|
+
&_selectMap_setting {
|
|
123
|
+
margin-left: 10px;
|
|
124
|
+
color: #165dff;
|
|
125
|
+
cursor: pointer;
|
|
126
|
+
}
|
|
127
|
+
&_searchBtn {
|
|
128
|
+
width: 100%;
|
|
129
|
+
padding: 6px 0px;
|
|
130
|
+
background-color: transparent;
|
|
131
|
+
border: 1px solid #ddd;
|
|
132
|
+
cursor: pointer;
|
|
133
|
+
}
|
|
134
|
+
&_searchBtn:hover {
|
|
135
|
+
color: #165dff;
|
|
136
|
+
border: 1px solid #165dff;
|
|
137
|
+
}
|
|
138
|
+
}
|
|
139
|
+
|
|
140
|
+
.dataMapDetail_echartDiv {
|
|
141
|
+
display: grid;
|
|
142
|
+
flex-wrap: wrap;
|
|
143
|
+
grid-gap: 20px;
|
|
144
|
+
grid-template-columns: repeat(2, 1fr);
|
|
145
|
+
align-items: center;
|
|
146
|
+
margin-top: 24px;
|
|
147
|
+
&_item {
|
|
148
|
+
display: grid;
|
|
149
|
+
grid-template-columns: 1fr 60px;
|
|
150
|
+
align-items: center;
|
|
151
|
+
padding: 20px;
|
|
152
|
+
background-color: #fafafb;
|
|
153
|
+
border: 1px solid #eee;
|
|
154
|
+
}
|
|
155
|
+
&_leftText {
|
|
156
|
+
display: inline-block;
|
|
157
|
+
margin-left: 8px;
|
|
158
|
+
color: #354354;
|
|
159
|
+
}
|
|
160
|
+
&_view {
|
|
161
|
+
color: #165dff;
|
|
162
|
+
}
|
|
163
|
+
}
|
|
164
|
+
.biz-attr-select-handle {
|
|
165
|
+
width: 100%;
|
|
166
|
+
max-width: 100%;
|
|
167
|
+
margin-bottom: 2px;
|
|
168
|
+
padding: 0;
|
|
169
|
+
}
|
|
170
|
+
.empty {
|
|
171
|
+
height: 100%;
|
|
172
|
+
color: #67727f;
|
|
173
|
+
text-align: center;
|
|
174
|
+
.empty-img {
|
|
175
|
+
display: block;
|
|
176
|
+
width: 200px;
|
|
177
|
+
margin: 0px auto;
|
|
178
|
+
}
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.mapSetting_addMap_form {
|
|
182
|
+
.biz-attr-condition-group-handle {
|
|
183
|
+
display: none;
|
|
184
|
+
}
|
|
185
|
+
}
|
|
186
|
+
.ziBackground {
|
|
187
|
+
.ant-tree .ant-tree-node-content-wrapper.ant-tree-node-selected {
|
|
188
|
+
padding: 2px 3px;
|
|
189
|
+
background-color: #bad8ff7d;
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
.mapSetting {
|
|
194
|
+
.ant-dropdown-trigger.biz-select-handle.biz-condition-item-single-select {
|
|
195
|
+
position: relative;
|
|
196
|
+
background-color: transparent;
|
|
197
|
+
&::after {
|
|
198
|
+
position: absolute;
|
|
199
|
+
top: 0px;
|
|
200
|
+
left: 0;
|
|
201
|
+
display: inline-block;
|
|
202
|
+
width: 100%;
|
|
203
|
+
padding-top: 8px;
|
|
204
|
+
text-align: center;
|
|
205
|
+
vertical-align: middle;
|
|
206
|
+
background-color: white;
|
|
207
|
+
content: '是';
|
|
208
|
+
}
|
|
209
|
+
}
|
|
210
|
+
}
|
|
@@ -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;
|