@zgfe/modules-dm 1.0.56-zhongyuan.12 → 1.0.56-zhongyuan.13

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.
@@ -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;
@@ -1,163 +1,193 @@
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
- }
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
+ }