@zgfe/modules-dm 1.0.56-zhongyuan.16 → 1.0.56-zhongyuan.18
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.
|
@@ -452,7 +452,7 @@ var CreateMeta = function CreateMeta(props) {
|
|
|
452
452
|
validateStatus: validateContainsUnderscore(inputText) ? '' : 'error',
|
|
453
453
|
help: validateContainsUnderscore(inputText) ? '' : inputText == '' ? '请输入事件名称' : "\u8BF7\u6839\u636E\u9875\u9762\u5C42\u7EA7\u547D\u540D\uFF0C\u5982\uFF1A".concat(props.selectTreeName)
|
|
454
454
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
455
|
-
placeholder: "\u8BF7\
|
|
455
|
+
placeholder: "".concat(props.selectTreeName ? "\u8BF7\u6839\u636E\u9875\u9762\u5C42\u7EA7\u547D\u540D\uFF0C\u5982\uFF1A".concat(props.selectTreeName) : '请输入事件名称'),
|
|
456
456
|
showCount: true,
|
|
457
457
|
maxLength: 128,
|
|
458
458
|
onChange: function onChange(e) {
|
|
@@ -471,11 +471,7 @@ var CreateMeta = function CreateMeta(props) {
|
|
|
471
471
|
}
|
|
472
472
|
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
473
473
|
name: "demandId",
|
|
474
|
-
label: "\u9700\u6C42ID"
|
|
475
|
-
rules: [{
|
|
476
|
-
required: true,
|
|
477
|
-
message: "\u8BF7\u8F93\u5165\u9700\u6C42ID"
|
|
478
|
-
}]
|
|
474
|
+
label: "\u9700\u6C42ID"
|
|
479
475
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
480
476
|
placeholder: "\u8BF7\u8F93\u5165\u9700\u6C42ID",
|
|
481
477
|
showCount: true,
|
|
@@ -112,10 +112,12 @@ var RightDetail = function RightDetail(props) {
|
|
|
112
112
|
}
|
|
113
113
|
};
|
|
114
114
|
var handleRemoveFile = function handleRemoveFile(file) {
|
|
115
|
+
console.log(file, imageUrl, 'kk');
|
|
115
116
|
var newArr = imageUrl === null || imageUrl === void 0 ? void 0 : imageUrl.filter(function (o) {
|
|
116
117
|
return o.name != file.name;
|
|
117
118
|
});
|
|
118
119
|
setImageUrl(newArr);
|
|
120
|
+
setImagePath('');
|
|
119
121
|
};
|
|
120
122
|
var uploadImg = function uploadImg(file) {
|
|
121
123
|
var data = new FormData();
|
|
@@ -194,22 +196,21 @@ var RightDetail = function RightDetail(props) {
|
|
|
194
196
|
pageName: currentTreeData === null || currentTreeData === void 0 ? void 0 : currentTreeData.pageAttrName
|
|
195
197
|
}
|
|
196
198
|
}).then(function (res) {
|
|
197
|
-
var _res$data, _res$data2, _res$data3, _res$data4, _res$data5, _res$data6;
|
|
199
|
+
var _res$data, _res$data2, _res$data3, _res$data4, _res$data5, _res$data6, _res$data7;
|
|
198
200
|
setLoadingDetail(false);
|
|
199
|
-
if (!res) return;
|
|
200
|
-
setCurrentTreeDetail(res === null || res === void 0 ? void 0 : res.data);
|
|
201
201
|
pageDetailForm.setFieldsValue({
|
|
202
202
|
pageName: currentTreeData === null || currentTreeData === void 0 ? void 0 : currentTreeData.pageAttrName,
|
|
203
|
-
remarkName: currentTreeData === null || currentTreeData === void 0 ? void 0 : currentTreeData.remarkAttrName,
|
|
203
|
+
remarkName: res.data.remark || (currentTreeData === null || currentTreeData === void 0 ? void 0 : currentTreeData.remarkAttrName),
|
|
204
204
|
description: (res === null || res === void 0 ? void 0 : (_res$data = res.data) === null || _res$data === void 0 ? void 0 : _res$data.pageDescribe) || ''
|
|
205
205
|
});
|
|
206
|
+
setCurrentTreeDetail(res === null || res === void 0 ? void 0 : res.data);
|
|
206
207
|
setImagePath(res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.pagePath);
|
|
207
|
-
(res === null || res === void 0 ? void 0 : (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.pageUrl)
|
|
208
|
+
(res === null || res === void 0 ? void 0 : (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.pageUrl) ? setImageUrl([{
|
|
208
209
|
status: 'done',
|
|
209
|
-
name:
|
|
210
|
-
url: (res === null || res === void 0 ? void 0 : (_res$
|
|
211
|
-
uid: res === null || res === void 0 ? void 0 : (_res$
|
|
212
|
-
}]);
|
|
210
|
+
name: res === null || res === void 0 ? void 0 : (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.pagePath,
|
|
211
|
+
url: (res === null || res === void 0 ? void 0 : (_res$data5 = res.data) === null || _res$data5 === void 0 ? void 0 : _res$data5.pageUrl) && getImgUrl(res === null || res === void 0 ? void 0 : (_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : _res$data6.pageUrl, '-99'),
|
|
212
|
+
uid: res === null || res === void 0 ? void 0 : (_res$data7 = res.data) === null || _res$data7 === void 0 ? void 0 : _res$data7.pagePath
|
|
213
|
+
}]) : setImageUrl([]);
|
|
213
214
|
});
|
|
214
215
|
}
|
|
215
216
|
}, [currentTreeData]);
|
|
@@ -228,6 +229,7 @@ var RightDetail = function RightDetail(props) {
|
|
|
228
229
|
data: {
|
|
229
230
|
mapId: currentTreeData === null || currentTreeData === void 0 ? void 0 : currentTreeData.mapId,
|
|
230
231
|
pageName: currentTreeData.pageAttrName,
|
|
232
|
+
remark: values.remarkName,
|
|
231
233
|
pagePath: imagePath,
|
|
232
234
|
pageDescribe: values.description
|
|
233
235
|
}
|
|
@@ -493,8 +495,8 @@ var RightDetail = function RightDetail(props) {
|
|
|
493
495
|
userGroup: [0]
|
|
494
496
|
}
|
|
495
497
|
}).then(function (res) {
|
|
496
|
-
var _res$
|
|
497
|
-
resolve((res === null || res === void 0 ? void 0 : (_res$
|
|
498
|
+
var _res$data8, _res$data8$series, _res$data8$series$, _res$data8$series$$va;
|
|
499
|
+
resolve((res === null || res === void 0 ? void 0 : (_res$data8 = res.data) === null || _res$data8 === void 0 ? void 0 : (_res$data8$series = _res$data8.series) === null || _res$data8$series === void 0 ? void 0 : (_res$data8$series$ = _res$data8$series[0]) === null || _res$data8$series$ === void 0 ? void 0 : (_res$data8$series$$va = _res$data8$series$.values) === null || _res$data8$series$$va === void 0 ? void 0 : _res$data8$series$$va[0]) || 0);
|
|
498
500
|
});
|
|
499
501
|
});
|
|
500
502
|
};
|
|
@@ -510,10 +512,11 @@ var RightDetail = function RightDetail(props) {
|
|
|
510
512
|
bordered: false,
|
|
511
513
|
extra: isEdit ? (/*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Button, {
|
|
512
514
|
onClick: function onClick() {
|
|
515
|
+
setImagePath('');
|
|
513
516
|
(currentTreeDetail === null || currentTreeDetail === void 0 ? void 0 : currentTreeDetail.pageUrl) ? setImageUrl([{
|
|
514
517
|
status: 'done',
|
|
515
518
|
// name: currentTreeDetail?.pageUrl,
|
|
516
|
-
name:
|
|
519
|
+
name: currentTreeDetail === null || currentTreeDetail === void 0 ? void 0 : currentTreeDetail.pagePath,
|
|
517
520
|
url: (currentTreeDetail === null || currentTreeDetail === void 0 ? void 0 : currentTreeDetail.pageUrl) && getImgUrl(currentTreeDetail === null || currentTreeDetail === void 0 ? void 0 : currentTreeDetail.pageUrl, '-99'),
|
|
518
521
|
uid: currentTreeDetail === null || currentTreeDetail === void 0 ? void 0 : currentTreeDetail.pagePath
|
|
519
522
|
}]) : setImageUrl([]);
|
|
@@ -553,7 +556,6 @@ var RightDetail = function RightDetail(props) {
|
|
|
553
556
|
message: '请输入页面名称'
|
|
554
557
|
}]
|
|
555
558
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
556
|
-
disabled: true,
|
|
557
559
|
showCount: true,
|
|
558
560
|
maxLength: 20
|
|
559
561
|
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
@@ -563,9 +565,7 @@ var RightDetail = function RightDetail(props) {
|
|
|
563
565
|
required: true,
|
|
564
566
|
message: '请输入备注名称'
|
|
565
567
|
}]
|
|
566
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
567
|
-
disabled: true
|
|
568
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
568
|
+
}, /*#__PURE__*/React.createElement(Input, null)), /*#__PURE__*/React.createElement(Form.Item, {
|
|
569
569
|
label: "\u9875\u9762\u5C55\u793A"
|
|
570
570
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Upload, {
|
|
571
571
|
listType: "picture-card",
|
|
@@ -608,7 +608,7 @@ var RightDetail = function RightDetail(props) {
|
|
|
608
608
|
onPointerLeaveCapture: undefined
|
|
609
609
|
}), /*#__PURE__*/React.createElement("div", {
|
|
610
610
|
className: "".concat(pageName, "_echartDiv_leftText")
|
|
611
|
-
}, "\
|
|
611
|
+
}, "\u9875\u9762\u5206\u6790\u8BE6\u60C5")), /*#__PURE__*/React.createElement("a", {
|
|
612
612
|
className: "".concat(pageName, "_echartDiv_view"),
|
|
613
613
|
onClick: function onClick() {
|
|
614
614
|
return handleButtonPage('buttonAnalyzeParams');
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
margin-bottom: 16px;
|
|
15
15
|
}
|
|
16
16
|
.mapSetting_search_input {
|
|
17
|
-
width: 320px;
|
|
17
|
+
width: 320px !important;
|
|
18
18
|
margin: 0px 10px 0px 0px;
|
|
19
19
|
}
|
|
20
20
|
.mapSetting .ant-page-header {
|
|
@@ -191,6 +191,6 @@
|
|
|
191
191
|
text-align: center;
|
|
192
192
|
vertical-align: middle;
|
|
193
193
|
background-color: white;
|
|
194
|
-
content: '是';
|
|
195
194
|
border-radius: 4px;
|
|
195
|
+
content: '是';
|
|
196
196
|
}
|
|
@@ -1,213 +1,213 @@
|
|
|
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
|
-
pointer-events: none;
|
|
198
|
-
&::after {
|
|
199
|
-
position: absolute;
|
|
200
|
-
top: 0px;
|
|
201
|
-
left: -10px;
|
|
202
|
-
display: inline-block;
|
|
203
|
-
width: 120%;
|
|
204
|
-
height: 112%;
|
|
205
|
-
padding-top: 8px;
|
|
206
|
-
text-align: center;
|
|
207
|
-
vertical-align: middle;
|
|
208
|
-
background-color: white;
|
|
209
|
-
border-radius: 4px;
|
|
210
|
-
content: '是';
|
|
211
|
-
}
|
|
212
|
-
}
|
|
213
|
-
}
|
|
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 !important;
|
|
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
|
+
pointer-events: none;
|
|
198
|
+
&::after {
|
|
199
|
+
position: absolute;
|
|
200
|
+
top: 0px;
|
|
201
|
+
left: -10px;
|
|
202
|
+
display: inline-block;
|
|
203
|
+
width: 120%;
|
|
204
|
+
height: 112%;
|
|
205
|
+
padding-top: 8px;
|
|
206
|
+
text-align: center;
|
|
207
|
+
vertical-align: middle;
|
|
208
|
+
background-color: white;
|
|
209
|
+
border-radius: 4px;
|
|
210
|
+
content: '是';
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
}
|
|
@@ -32,15 +32,18 @@ var DataRealView = function DataRealView() {
|
|
|
32
32
|
var _useContext = useContext(BizGlobalDataContext),
|
|
33
33
|
currentApp = _useContext.currentApp,
|
|
34
34
|
currentUser = _useContext.currentUser;
|
|
35
|
-
var
|
|
36
|
-
var _useState = useState([]),
|
|
35
|
+
var _useState = useState(false),
|
|
37
36
|
_useState2 = _slicedToArray(_useState, 2),
|
|
38
|
-
|
|
39
|
-
|
|
37
|
+
textStatus = _useState2[0],
|
|
38
|
+
setTextStatus = _useState2[1];
|
|
40
39
|
var _useState3 = useState([]),
|
|
41
40
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
oldList = _useState4[0],
|
|
42
|
+
setOldList = _useState4[1]; // 未筛选的数据
|
|
43
|
+
var _useState5 = useState([]),
|
|
44
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
45
|
+
list = _useState6[0],
|
|
46
|
+
setList = _useState6[1]; // 表格筛选完成的数据
|
|
44
47
|
var ws = useRef(null);
|
|
45
48
|
var _Form$useForm = Form.useForm(),
|
|
46
49
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
@@ -49,10 +52,10 @@ var DataRealView = function DataRealView() {
|
|
|
49
52
|
var eventName = Form.useWatch('eventName', form);
|
|
50
53
|
var searchUserId = Form.useWatch('searchUserId', form);
|
|
51
54
|
var filterData = Form.useWatch('filterData', form);
|
|
52
|
-
var
|
|
53
|
-
|
|
54
|
-
currentMessageObj =
|
|
55
|
-
setCurrentMessageObj =
|
|
55
|
+
var _useState7 = useState(),
|
|
56
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
57
|
+
currentMessageObj = _useState8[0],
|
|
58
|
+
setCurrentMessageObj = _useState8[1];
|
|
56
59
|
var initWebsocket = function initWebsocket(params) {
|
|
57
60
|
// 创建 WebSocket 连接
|
|
58
61
|
var socket = new WebSocket(webSocketUrl);
|
|
@@ -142,28 +145,25 @@ var DataRealView = function DataRealView() {
|
|
|
142
145
|
};
|
|
143
146
|
var handleRefresh = /*#__PURE__*/function () {
|
|
144
147
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
145
|
-
var _ws$current, params;
|
|
146
148
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
147
149
|
while (1) switch (_context.prev = _context.next) {
|
|
148
150
|
case 0:
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
initWebsocket(params);
|
|
166
|
-
case 7:
|
|
151
|
+
setTextStatus(function (pre) {
|
|
152
|
+
if (pre) {
|
|
153
|
+
var _ws$current;
|
|
154
|
+
(_ws$current = ws.current) === null || _ws$current === void 0 ? void 0 : _ws$current.close(); // 停止刷新 关闭链接
|
|
155
|
+
ws.current = null;
|
|
156
|
+
return false;
|
|
157
|
+
}
|
|
158
|
+
var params = {
|
|
159
|
+
appId: getAppID(currentApp),
|
|
160
|
+
userId: currentUser === null || currentUser === void 0 ? void 0 : currentUser.userId,
|
|
161
|
+
appKey: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appKey
|
|
162
|
+
};
|
|
163
|
+
initWebsocket(params);
|
|
164
|
+
return !pre;
|
|
165
|
+
});
|
|
166
|
+
case 1:
|
|
167
167
|
case "end":
|
|
168
168
|
return _context.stop();
|
|
169
169
|
}
|
|
@@ -180,24 +180,21 @@ var DataRealView = function DataRealView() {
|
|
|
180
180
|
// 模拟异步保存数据到本地存储
|
|
181
181
|
var unloadWs = /*#__PURE__*/function () {
|
|
182
182
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
183
|
+
var _ws$current2;
|
|
183
184
|
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
184
185
|
while (1) switch (_context2.prev = _context2.next) {
|
|
185
186
|
case 0:
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
case
|
|
193
|
-
_context2.prev = 5;
|
|
194
|
-
_context2.t0 = _context2["catch"](0);
|
|
195
|
-
console.error('websocket:', _context2.t0);
|
|
196
|
-
case 8:
|
|
187
|
+
try {
|
|
188
|
+
(_ws$current2 = ws.current) === null || _ws$current2 === void 0 ? void 0 : _ws$current2.close(); // 停止刷新 关闭链接
|
|
189
|
+
ws.current = null;
|
|
190
|
+
} catch (error) {
|
|
191
|
+
console.error('websocket:', error);
|
|
192
|
+
}
|
|
193
|
+
case 1:
|
|
197
194
|
case "end":
|
|
198
195
|
return _context2.stop();
|
|
199
196
|
}
|
|
200
|
-
}, _callee2
|
|
197
|
+
}, _callee2);
|
|
201
198
|
}));
|
|
202
199
|
return function unloadWs() {
|
|
203
200
|
return _ref2.apply(this, arguments);
|
|
@@ -287,12 +284,12 @@ var DataRealView = function DataRealView() {
|
|
|
287
284
|
}))), /*#__PURE__*/React.createElement(Button, {
|
|
288
285
|
type: "primary",
|
|
289
286
|
onClick: handleRefresh,
|
|
290
|
-
icon: textStatus
|
|
287
|
+
icon: textStatus ? /*#__PURE__*/React.createElement(IconFont, {
|
|
291
288
|
type: "zanting"
|
|
292
289
|
}) : /*#__PURE__*/React.createElement(IconFont, {
|
|
293
290
|
type: "bofang"
|
|
294
291
|
})
|
|
295
|
-
}, textStatus
|
|
292
|
+
}, textStatus ? '停止刷新' : '开始刷新')), /*#__PURE__*/React.createElement("div", {
|
|
296
293
|
className: "".concat(classNameBase, "_table")
|
|
297
294
|
}, /*#__PURE__*/React.createElement("h4", {
|
|
298
295
|
className: "".concat(classNameBase, "_table_tip")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-dm",
|
|
3
|
-
"version": "1.0.56-zhongyuan.
|
|
3
|
+
"version": "1.0.56-zhongyuan.18",
|
|
4
4
|
"license": "ISC",
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"typings": "es/index.d.ts",
|
|
@@ -57,7 +57,7 @@
|
|
|
57
57
|
"umi-request": "^1.4.0",
|
|
58
58
|
"yorkie": "^2.0.0"
|
|
59
59
|
},
|
|
60
|
-
"gitHead": "
|
|
60
|
+
"gitHead": "c7d5e8ec5ea8956767cb47c4f83781c9f8409053",
|
|
61
61
|
"gitHooks": {
|
|
62
62
|
"pre-commit": "lint-staged"
|
|
63
63
|
}
|