@zgfe/modules-dm 1.0.56-zhongyuan.1 → 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/modules/CutsModal.d.ts +34 -0
- package/es/modules/dataManage/collectionAttributeList.js +9 -0
- package/es/modules/dataManage/collectionEventList.js +4 -1
- package/es/modules/dataManage/components/creditPop/index.d.ts +2 -1
- package/es/modules/dataManage/components/creditPop/index.less +121 -121
- package/es/modules/dataManage/components/depositPop/index.d.ts +2 -1
- package/es/modules/dataManage/components/depositPop/index.less +115 -115
- package/es/modules/dataManage/components/developModal/index.css +36 -36
- package/es/modules/dataManage/components/developModal/index.d.ts +2 -1
- package/es/modules/dataManage/components/developModal/index.less +36 -36
- package/es/modules/dataManage/components/editTxt/index.d.ts +1 -3
- package/es/modules/dataManage/components/editTxt/index.less +44 -44
- package/es/modules/dataManage/components/eventFilter/styles/index.less +72 -72
- package/es/modules/dataManage/components/importAttrDialog/demo/index.d.ts +2 -1
- package/es/modules/dataManage/components/importAttrDialog/index.js +3 -1
- package/es/modules/dataManage/components/importAttrDialog/styles/index.less +90 -90
- package/es/modules/dataManage/components/importMetaDialog/demo/index.d.ts +2 -1
- package/es/modules/dataManage/components/importMetaDialog/index.js +3 -1
- package/es/modules/dataManage/components/importMetaDialog/styles/index.less +91 -91
- package/es/modules/dataManage/components/tablePlus.js +2 -2
- package/es/modules/dataManage/demo/index.d.ts +2 -1
- package/es/modules/dataManage/detailedData/DetailedDataForm.d.ts +1 -1
- package/es/modules/dataManage/detailedData/index.js +1 -1
- package/es/modules/dataManage/styles/detailed.less +74 -74
- package/es/modules/dataManage/styles/index.less +1195 -1195
- package/es/modules/dataMap/component/drawerAdd.js +4 -1
- package/es/modules/dataMap/component/leftTree.d.ts +1 -0
- package/es/modules/dataMap/component/leftTree.js +44 -16
- package/es/modules/dataMap/component/rightDetail.d.ts +2 -1
- package/es/modules/dataMap/component/rightDetail.js +125 -137
- 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 +36 -6
- package/es/modules/dataMap/css/index.less +34 -1
- package/es/modules/dataMap/demo/index.d.ts +2 -1
- package/es/modules/dataMap/index.d.ts +2 -1
- package/es/modules/dataMap/mapDetail.js +11 -2
- package/es/modules/dataMap/mapSetting.js +23 -3
- package/es/modules/dataPlan/styles/index.less +316 -316
- package/es/modules/dataReal/demo/index.d.ts +2 -1
- package/es/modules/dataReal/index1.js +45 -14
- package/es/modules/dataReal/table.js +4 -1
- package/package.json +4 -2
- package/es/modules/dataMap/component/selectAttr.d.ts +0 -7
- package/es/modules/dataMap/component/selectAttr.js +0 -92
|
@@ -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;
|
|
@@ -4,6 +4,9 @@
|
|
|
4
4
|
.maidianMapIndex .info-upload-tip {
|
|
5
5
|
color: var(--io-N4-, #9aa1a9);
|
|
6
6
|
}
|
|
7
|
+
.mapSetting .ant-input[disabled] {
|
|
8
|
+
background-color: #fafafb !important;
|
|
9
|
+
}
|
|
7
10
|
.mapSetting_search {
|
|
8
11
|
display: grid;
|
|
9
12
|
grid-template-columns: 1fr 100px;
|
|
@@ -42,6 +45,28 @@
|
|
|
42
45
|
width: 42%;
|
|
43
46
|
text-align: left;
|
|
44
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
|
+
}
|
|
45
70
|
.mapSetting_addMap_propValueList {
|
|
46
71
|
display: flex;
|
|
47
72
|
align-items: center;
|
|
@@ -73,8 +98,13 @@
|
|
|
73
98
|
color: red;
|
|
74
99
|
}
|
|
75
100
|
.leftTreePage {
|
|
101
|
+
display: flex;
|
|
102
|
+
flex-direction: column;
|
|
76
103
|
background-color: white;
|
|
77
104
|
}
|
|
105
|
+
.leftTreePage-top {
|
|
106
|
+
flex: 1;
|
|
107
|
+
}
|
|
78
108
|
.leftTreePage_selectMap {
|
|
79
109
|
display: grid;
|
|
80
110
|
grid-gap: 10px;
|
|
@@ -110,7 +140,7 @@
|
|
|
110
140
|
display: grid;
|
|
111
141
|
grid-template-columns: 1fr 60px;
|
|
112
142
|
align-items: center;
|
|
113
|
-
padding:
|
|
143
|
+
padding: 20px;
|
|
114
144
|
background-color: #fafafb;
|
|
115
145
|
border: 1px solid #eee;
|
|
116
146
|
}
|
|
@@ -150,14 +180,14 @@
|
|
|
150
180
|
background-color: transparent;
|
|
151
181
|
}
|
|
152
182
|
.mapSetting .ant-dropdown-trigger.biz-select-handle.biz-condition-item-single-select::after {
|
|
153
|
-
content: "是";
|
|
154
|
-
display: inline-block;
|
|
155
183
|
position: absolute;
|
|
156
|
-
width: 100%;
|
|
157
|
-
background-color: white;
|
|
158
184
|
top: 0px;
|
|
159
185
|
left: 0;
|
|
186
|
+
display: inline-block;
|
|
187
|
+
width: 100%;
|
|
188
|
+
padding-top: 8px;
|
|
160
189
|
text-align: center;
|
|
161
190
|
vertical-align: middle;
|
|
162
|
-
|
|
191
|
+
background-color: white;
|
|
192
|
+
content: '是';
|
|
163
193
|
}
|
|
@@ -5,6 +5,9 @@
|
|
|
5
5
|
}
|
|
6
6
|
}
|
|
7
7
|
.mapSetting {
|
|
8
|
+
.ant-input[disabled] {
|
|
9
|
+
background-color: #fafafb !important;
|
|
10
|
+
}
|
|
8
11
|
&_search {
|
|
9
12
|
display: grid;
|
|
10
13
|
grid-template-columns: 1fr 100px;
|
|
@@ -44,6 +47,28 @@
|
|
|
44
47
|
width: 42%;
|
|
45
48
|
text-align: left;
|
|
46
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
|
+
}
|
|
47
72
|
&_propValueList {
|
|
48
73
|
display: flex;
|
|
49
74
|
align-items: center;
|
|
@@ -78,7 +103,15 @@
|
|
|
78
103
|
}
|
|
79
104
|
|
|
80
105
|
.leftTreePage {
|
|
106
|
+
display: flex;
|
|
107
|
+
flex-direction: column;
|
|
81
108
|
background-color: white;
|
|
109
|
+
&-top {
|
|
110
|
+
flex: 1;
|
|
111
|
+
}
|
|
112
|
+
&-tree {
|
|
113
|
+
// max-height: 100%;
|
|
114
|
+
}
|
|
82
115
|
&_selectMap {
|
|
83
116
|
display: grid;
|
|
84
117
|
grid-gap: 10px;
|
|
@@ -115,7 +148,7 @@
|
|
|
115
148
|
display: grid;
|
|
116
149
|
grid-template-columns: 1fr 60px;
|
|
117
150
|
align-items: center;
|
|
118
|
-
padding:
|
|
151
|
+
padding: 20px;
|
|
119
152
|
background-color: #fafafb;
|
|
120
153
|
border: 1px solid #eee;
|
|
121
154
|
}
|
|
@@ -23,6 +23,13 @@ var MapDetail = function MapDetail() {
|
|
|
23
23
|
var onCurrentMap = function onCurrentMap(value) {
|
|
24
24
|
setCurrentMap(value);
|
|
25
25
|
};
|
|
26
|
+
var _useState5 = useState(),
|
|
27
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
28
|
+
filterValue = _useState6[0],
|
|
29
|
+
setFilterValue = _useState6[1];
|
|
30
|
+
var onFilterValue = function onFilterValue(searchValue) {
|
|
31
|
+
setFilterValue(searchValue);
|
|
32
|
+
};
|
|
26
33
|
return /*#__PURE__*/React.createElement(Row, {
|
|
27
34
|
gutter: 24
|
|
28
35
|
}, /*#__PURE__*/React.createElement(Col, {
|
|
@@ -33,12 +40,14 @@ var MapDetail = function MapDetail() {
|
|
|
33
40
|
}
|
|
34
41
|
}, /*#__PURE__*/React.createElement(LeftTree, {
|
|
35
42
|
onChangeTree: onChangeTree,
|
|
36
|
-
onCurrentMap: onCurrentMap
|
|
43
|
+
onCurrentMap: onCurrentMap,
|
|
44
|
+
onFilterValue: onFilterValue
|
|
37
45
|
})), /*#__PURE__*/React.createElement(Col, {
|
|
38
46
|
span: 16
|
|
39
47
|
}, /*#__PURE__*/React.createElement(RightDetail, {
|
|
40
48
|
currentTreeData: currentTreeData && JSON.stringify(currentTreeData) != '{}' && currentTreeData,
|
|
41
|
-
currentMap: currentMap
|
|
49
|
+
currentMap: currentMap,
|
|
50
|
+
filterValue: filterValue
|
|
42
51
|
})));
|
|
43
52
|
};
|
|
44
53
|
export default MapDetail;
|
|
@@ -9,6 +9,7 @@ import { LeftOutlined, SearchOutlined } from '@ant-design/icons';
|
|
|
9
9
|
import React, { useEffect, useState, useRef, useContext } from 'react';
|
|
10
10
|
import { BizGlobalDataContext } from '@zgfe/business-lib';
|
|
11
11
|
import DrawerAdd from './component/drawerAdd';
|
|
12
|
+
import ViewMapSetting from './component/viewMapSetting';
|
|
12
13
|
import './css/index.less';
|
|
13
14
|
import apis from '../../constants/api';
|
|
14
15
|
import request from '../../utils/ajax';
|
|
@@ -29,7 +30,7 @@ var MapSetting = function MapSetting(props) {
|
|
|
29
30
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
30
31
|
openMapAdd = _useState4[0],
|
|
31
32
|
setOpenMapAdd = _useState4[1];
|
|
32
|
-
var currentMap = useRef();
|
|
33
|
+
var currentMap = useRef(undefined);
|
|
33
34
|
var onChange = function onChange(e) {
|
|
34
35
|
setSearchName(e.currentTarget.value);
|
|
35
36
|
};
|
|
@@ -88,6 +89,7 @@ var MapSetting = function MapSetting(props) {
|
|
|
88
89
|
}, [searchName]);
|
|
89
90
|
var handleClose = function handleClose() {
|
|
90
91
|
setOpenMapAdd(false);
|
|
92
|
+
currentMap.current = undefined;
|
|
91
93
|
props.getList(searchName);
|
|
92
94
|
};
|
|
93
95
|
// 删除
|
|
@@ -108,6 +110,14 @@ var MapSetting = function MapSetting(props) {
|
|
|
108
110
|
}
|
|
109
111
|
});
|
|
110
112
|
};
|
|
113
|
+
var _useState5 = useState(false),
|
|
114
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
115
|
+
openMapView = _useState6[0],
|
|
116
|
+
setOpenMapView = _useState6[1];
|
|
117
|
+
var handleViewClose = function handleViewClose() {
|
|
118
|
+
setOpenMapView(false);
|
|
119
|
+
currentMap.current = undefined;
|
|
120
|
+
};
|
|
111
121
|
return /*#__PURE__*/React.createElement("div", {
|
|
112
122
|
className: pageClassName
|
|
113
123
|
}, /*#__PURE__*/React.createElement(PageHeader, {
|
|
@@ -120,14 +130,20 @@ var MapSetting = function MapSetting(props) {
|
|
|
120
130
|
color: '#5f6085',
|
|
121
131
|
fontSize: '14px'
|
|
122
132
|
}
|
|
123
|
-
}, /*#__PURE__*/React.createElement(LeftOutlined,
|
|
133
|
+
}, /*#__PURE__*/React.createElement(LeftOutlined, {
|
|
134
|
+
onPointerEnterCapture: undefined,
|
|
135
|
+
onPointerLeaveCapture: undefined
|
|
136
|
+
}), ' ', "\u8FD4\u56DE"),
|
|
124
137
|
subTitle: "\u5730\u56FE\u8BBE\u7F6E"
|
|
125
138
|
}), /*#__PURE__*/React.createElement("div", {
|
|
126
139
|
className: "".concat(pageClassName, "_search")
|
|
127
140
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Input, {
|
|
128
141
|
className: "".concat(pageClassName, "_search_input"),
|
|
129
142
|
placeholder: "\u8BF7\u8F93\u5165\u5730\u56FE\u540D\u79F0",
|
|
130
|
-
prefix: /*#__PURE__*/React.createElement(SearchOutlined,
|
|
143
|
+
prefix: /*#__PURE__*/React.createElement(SearchOutlined, {
|
|
144
|
+
onPointerEnterCapture: undefined,
|
|
145
|
+
onPointerLeaveCapture: undefined
|
|
146
|
+
}),
|
|
131
147
|
value: searchName,
|
|
132
148
|
allowClear: true,
|
|
133
149
|
onChange: onChange
|
|
@@ -143,6 +159,10 @@ var MapSetting = function MapSetting(props) {
|
|
|
143
159
|
}), /*#__PURE__*/React.createElement(DrawerAdd, {
|
|
144
160
|
open: openMapAdd,
|
|
145
161
|
handleClose: handleClose
|
|
162
|
+
}), /*#__PURE__*/React.createElement(ViewMapSetting, {
|
|
163
|
+
open: openMapView,
|
|
164
|
+
handleClose: handleViewClose,
|
|
165
|
+
currentMap: currentMap.current
|
|
146
166
|
}));
|
|
147
167
|
};
|
|
148
168
|
export default MapSetting;
|