@zgfe/modules-dm 1.0.56-zhongyuan.15 → 1.0.56-zhongyuan.17
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/dataManage/components/createMetaDrawer.js +1 -1
- package/es/modules/dataMap/component/drawerAdd.js +2 -0
- package/es/modules/dataMap/component/rightDetail.js +10 -61
- package/es/modules/dataMap/css/index.css +2 -2
- package/es/modules/dataMap/css/index.less +213 -213
- package/es/modules/dataMap/mapSetting.js +1 -1
- package/es/modules/dataReal/css/index.css +2 -0
- package/es/modules/dataReal/css/index.less +2 -0
- package/es/modules/dataReal/index1.js +47 -36
- package/es/modules/dataReal/table.js +40 -7
- package/package.json +2 -2
|
@@ -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) {
|
|
@@ -40,6 +40,7 @@ var DrawerAdd = function DrawerAdd(props) {
|
|
|
40
40
|
}, [props.open]);
|
|
41
41
|
var closeDrawer = function closeDrawer() {
|
|
42
42
|
setIsOpen(false);
|
|
43
|
+
setEvent({});
|
|
43
44
|
form.resetFields(); // 表单重置
|
|
44
45
|
conditionRef.current.deleteAll(); // 重置固定筛选数组
|
|
45
46
|
props.handleClose();
|
|
@@ -183,6 +184,7 @@ var DrawerAdd = function DrawerAdd(props) {
|
|
|
183
184
|
placement: "right",
|
|
184
185
|
onClose: onClose,
|
|
185
186
|
open: isOpen,
|
|
187
|
+
destroyOnClose: true,
|
|
186
188
|
width: "800px",
|
|
187
189
|
footer: /*#__PURE__*/React.createElement("div", {
|
|
188
190
|
className: "".concat(pageClassName, "_footer")
|
|
@@ -194,7 +194,7 @@ var RightDetail = function RightDetail(props) {
|
|
|
194
194
|
pageName: currentTreeData === null || currentTreeData === void 0 ? void 0 : currentTreeData.pageAttrName
|
|
195
195
|
}
|
|
196
196
|
}).then(function (res) {
|
|
197
|
-
var _res$data, _res$data2, _res$data3, _res$data4, _res$data5;
|
|
197
|
+
var _res$data, _res$data2, _res$data3, _res$data4, _res$data5, _res$data6;
|
|
198
198
|
setLoadingDetail(false);
|
|
199
199
|
if (!res) return;
|
|
200
200
|
setCurrentTreeDetail(res === null || res === void 0 ? void 0 : res.data);
|
|
@@ -204,11 +204,11 @@ var RightDetail = function RightDetail(props) {
|
|
|
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
206
|
setImagePath(res === null || res === void 0 ? void 0 : (_res$data2 = res.data) === null || _res$data2 === void 0 ? void 0 : _res$data2.pagePath);
|
|
207
|
-
setImageUrl([{
|
|
207
|
+
(res === null || res === void 0 ? void 0 : (_res$data3 = res.data) === null || _res$data3 === void 0 ? void 0 : _res$data3.pageUrl) && setImageUrl([{
|
|
208
208
|
status: 'done',
|
|
209
209
|
name: '',
|
|
210
|
-
url: (res === null || res === void 0 ? void 0 : (_res$
|
|
211
|
-
uid: res === null || res === void 0 ? void 0 : (_res$
|
|
210
|
+
url: (res === null || res === void 0 ? void 0 : (_res$data4 = res.data) === null || _res$data4 === void 0 ? void 0 : _res$data4.pageUrl) && getImgUrl(res === null || res === void 0 ? void 0 : (_res$data5 = res.data) === null || _res$data5 === void 0 ? void 0 : _res$data5.pageUrl, '-99'),
|
|
211
|
+
uid: res === null || res === void 0 ? void 0 : (_res$data6 = res.data) === null || _res$data6 === void 0 ? void 0 : _res$data6.pagePath
|
|
212
212
|
}]);
|
|
213
213
|
});
|
|
214
214
|
}
|
|
@@ -493,59 +493,11 @@ var RightDetail = function RightDetail(props) {
|
|
|
493
493
|
userGroup: [0]
|
|
494
494
|
}
|
|
495
495
|
}).then(function (res) {
|
|
496
|
-
var _res$
|
|
497
|
-
resolve((res === null || res === void 0 ? void 0 : (_res$
|
|
496
|
+
var _res$data7, _res$data7$series, _res$data7$series$, _res$data7$series$$va;
|
|
497
|
+
resolve((res === null || res === void 0 ? void 0 : (_res$data7 = res.data) === null || _res$data7 === void 0 ? void 0 : (_res$data7$series = _res$data7.series) === null || _res$data7$series === void 0 ? void 0 : (_res$data7$series$ = _res$data7$series[0]) === null || _res$data7$series$ === void 0 ? void 0 : (_res$data7$series$$va = _res$data7$series$.values) === null || _res$data7$series$$va === void 0 ? void 0 : _res$data7$series$$va[0]) || 0);
|
|
498
498
|
});
|
|
499
499
|
});
|
|
500
500
|
};
|
|
501
|
-
var getPageView = function getPageView(params) {
|
|
502
|
-
return new Promise(function (resolve, reject) {
|
|
503
|
-
// console.log(eventNameMap);
|
|
504
|
-
var haveEventName = eventNameMap === null || eventNameMap === void 0 ? void 0 : eventNameMap[params.name];
|
|
505
|
-
if (haveEventName) {
|
|
506
|
-
var haveFilter = haveEventName.attrList.filter(function (m) {
|
|
507
|
-
var _params$attrs$filters;
|
|
508
|
-
return (_params$attrs$filters = params.attrs.filters) === null || _params$attrs$filters === void 0 ? void 0 : _params$attrs$filters.includes(m.label);
|
|
509
|
-
});
|
|
510
|
-
var pinParams = [];
|
|
511
|
-
haveFilter.forEach(function (o) {
|
|
512
|
-
pinParams.push({
|
|
513
|
-
propCategory: 'eventProp',
|
|
514
|
-
type: 1,
|
|
515
|
-
attrId: o.id,
|
|
516
|
-
attrName: o.label
|
|
517
|
-
});
|
|
518
|
-
});
|
|
519
|
-
// console.log(pinParams, 'pinParams');
|
|
520
|
-
var pageId = haveEventName.attrList.filter(function (m) {
|
|
521
|
-
return (m === null || m === void 0 ? void 0 : m.key) == params.attrs.page;
|
|
522
|
-
});
|
|
523
|
-
var resultParams = {
|
|
524
|
-
data: {
|
|
525
|
-
chartType: 'line',
|
|
526
|
-
module: 'insight',
|
|
527
|
-
userGroup: [0],
|
|
528
|
-
globalDimensions: pinParams,
|
|
529
|
-
targets: [{
|
|
530
|
-
alias: haveEventName.name,
|
|
531
|
-
filters: (currentMap === null || currentMap === void 0 ? void 0 : currentMap.filterJson) && JSON.parse(currentMap === null || currentMap === void 0 ? void 0 : currentMap.filterJson),
|
|
532
|
-
analysisDimension: {
|
|
533
|
-
analysisIndex: 'number'
|
|
534
|
-
},
|
|
535
|
-
eventGroupId: 0,
|
|
536
|
-
eventId: haveEventName.id,
|
|
537
|
-
eventName: haveEventName.name,
|
|
538
|
-
type: 'event'
|
|
539
|
-
}]
|
|
540
|
-
}
|
|
541
|
-
};
|
|
542
|
-
resolve(resultParams);
|
|
543
|
-
throw Error('用来终止循环的');
|
|
544
|
-
} else {
|
|
545
|
-
resolve(false);
|
|
546
|
-
}
|
|
547
|
-
});
|
|
548
|
-
};
|
|
549
501
|
return /*#__PURE__*/React.createElement(React.Fragment, null, loadingDetail ? (/*#__PURE__*/React.createElement(Spin, {
|
|
550
502
|
tip: "\u52A0\u8F7D\u4E2D"
|
|
551
503
|
})) : (currentTreeData === null || currentTreeData === void 0 ? void 0 : currentTreeData.pageAttrName) ? (/*#__PURE__*/React.createElement(Card, {
|
|
@@ -558,13 +510,13 @@ var RightDetail = function RightDetail(props) {
|
|
|
558
510
|
bordered: false,
|
|
559
511
|
extra: isEdit ? (/*#__PURE__*/React.createElement(Space, null, /*#__PURE__*/React.createElement(Button, {
|
|
560
512
|
onClick: function onClick() {
|
|
561
|
-
(currentTreeDetail === null || currentTreeDetail === void 0 ? void 0 : currentTreeDetail.pageUrl)
|
|
513
|
+
(currentTreeDetail === null || currentTreeDetail === void 0 ? void 0 : currentTreeDetail.pageUrl) ? setImageUrl([{
|
|
562
514
|
status: 'done',
|
|
563
515
|
// name: currentTreeDetail?.pageUrl,
|
|
564
516
|
name: '',
|
|
565
517
|
url: (currentTreeDetail === null || currentTreeDetail === void 0 ? void 0 : currentTreeDetail.pageUrl) && getImgUrl(currentTreeDetail === null || currentTreeDetail === void 0 ? void 0 : currentTreeDetail.pageUrl, '-99'),
|
|
566
518
|
uid: currentTreeDetail === null || currentTreeDetail === void 0 ? void 0 : currentTreeDetail.pagePath
|
|
567
|
-
}]);
|
|
519
|
+
}]) : setImageUrl([]);
|
|
568
520
|
setIsEdit(false);
|
|
569
521
|
}
|
|
570
522
|
}, "\u53D6\u6D88"), /*#__PURE__*/React.createElement(Button, {
|
|
@@ -601,7 +553,6 @@ var RightDetail = function RightDetail(props) {
|
|
|
601
553
|
message: '请输入页面名称'
|
|
602
554
|
}]
|
|
603
555
|
}, /*#__PURE__*/React.createElement(Input, {
|
|
604
|
-
disabled: true,
|
|
605
556
|
showCount: true,
|
|
606
557
|
maxLength: 20
|
|
607
558
|
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
@@ -611,9 +562,7 @@ var RightDetail = function RightDetail(props) {
|
|
|
611
562
|
required: true,
|
|
612
563
|
message: '请输入备注名称'
|
|
613
564
|
}]
|
|
614
|
-
}, /*#__PURE__*/React.createElement(Input, {
|
|
615
|
-
disabled: true
|
|
616
|
-
})), /*#__PURE__*/React.createElement(Form.Item, {
|
|
565
|
+
}, /*#__PURE__*/React.createElement(Input, null)), /*#__PURE__*/React.createElement(Form.Item, {
|
|
617
566
|
label: "\u9875\u9762\u5C55\u793A"
|
|
618
567
|
}, /*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Upload, {
|
|
619
568
|
listType: "picture-card",
|
|
@@ -656,7 +605,7 @@ var RightDetail = function RightDetail(props) {
|
|
|
656
605
|
onPointerLeaveCapture: undefined
|
|
657
606
|
}), /*#__PURE__*/React.createElement("div", {
|
|
658
607
|
className: "".concat(pageName, "_echartDiv_leftText")
|
|
659
|
-
}, "\
|
|
608
|
+
}, "\u9875\u9762\u5206\u6790\u8BE6\u60C5")), /*#__PURE__*/React.createElement("a", {
|
|
660
609
|
className: "".concat(pageName, "_echartDiv_view"),
|
|
661
610
|
onClick: function onClick() {
|
|
662
611
|
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
|
+
}
|
|
@@ -152,7 +152,7 @@ var MapSetting = function MapSetting(props) {
|
|
|
152
152
|
value: searchName,
|
|
153
153
|
allowClear: true,
|
|
154
154
|
onChange: onChange
|
|
155
|
-
}), "\
|
|
155
|
+
}), "\u5171 ", mapData === null || mapData === void 0 ? void 0 : mapData.length, " \u6761"), /*#__PURE__*/React.createElement(Button, {
|
|
156
156
|
type: "primary",
|
|
157
157
|
onClick: function onClick() {
|
|
158
158
|
return setOpenMapAdd(true);
|
|
@@ -15,7 +15,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
15
15
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
16
16
|
import { BizGlobalDataContext, IconFont } from '@zgfe/business-lib';
|
|
17
17
|
import { Button, Form, Input } from 'antd';
|
|
18
|
-
import React, { useContext, useEffect, useMemo, useState } from 'react';
|
|
18
|
+
import React, { useContext, useEffect, useMemo, useRef, useState } from 'react';
|
|
19
19
|
import moment from 'moment';
|
|
20
20
|
import { getAppID } from '../../utils';
|
|
21
21
|
import './css/index.less';
|
|
@@ -44,10 +44,7 @@ var DataRealView = function DataRealView() {
|
|
|
44
44
|
_useState6 = _slicedToArray(_useState5, 2),
|
|
45
45
|
list = _useState6[0],
|
|
46
46
|
setList = _useState6[1]; // 表格筛选完成的数据
|
|
47
|
-
var
|
|
48
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
|
49
|
-
ws = _useState8[0],
|
|
50
|
-
setWs = _useState8[1];
|
|
47
|
+
var ws = useRef(null);
|
|
51
48
|
var _Form$useForm = Form.useForm(),
|
|
52
49
|
_Form$useForm2 = _slicedToArray(_Form$useForm, 1),
|
|
53
50
|
form = _Form$useForm2[0];
|
|
@@ -55,10 +52,10 @@ var DataRealView = function DataRealView() {
|
|
|
55
52
|
var eventName = Form.useWatch('eventName', form);
|
|
56
53
|
var searchUserId = Form.useWatch('searchUserId', form);
|
|
57
54
|
var filterData = Form.useWatch('filterData', form);
|
|
58
|
-
var
|
|
59
|
-
|
|
60
|
-
currentMessageObj =
|
|
61
|
-
setCurrentMessageObj =
|
|
55
|
+
var _useState7 = useState(),
|
|
56
|
+
_useState8 = _slicedToArray(_useState7, 2),
|
|
57
|
+
currentMessageObj = _useState8[0],
|
|
58
|
+
setCurrentMessageObj = _useState8[1];
|
|
62
59
|
var initWebsocket = function initWebsocket(params) {
|
|
63
60
|
// 创建 WebSocket 连接
|
|
64
61
|
var socket = new WebSocket(webSocketUrl);
|
|
@@ -112,7 +109,7 @@ var DataRealView = function DataRealView() {
|
|
|
112
109
|
console.log('WebSocket disconnected:', event.reason);
|
|
113
110
|
};
|
|
114
111
|
// 设置 WebSocket
|
|
115
|
-
|
|
112
|
+
ws.current = socket;
|
|
116
113
|
};
|
|
117
114
|
var filterPro = function filterPro(str, event) {
|
|
118
115
|
// 定义正则表达式,匹配"$eid":"具体值"这种格式中的具体值部分
|
|
@@ -148,28 +145,25 @@ var DataRealView = function DataRealView() {
|
|
|
148
145
|
};
|
|
149
146
|
var handleRefresh = /*#__PURE__*/function () {
|
|
150
147
|
var _ref = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee() {
|
|
151
|
-
var params;
|
|
152
148
|
return _regeneratorRuntime().wrap(function _callee$(_context) {
|
|
153
149
|
while (1) switch (_context.prev = _context.next) {
|
|
154
150
|
case 0:
|
|
155
|
-
setTextStatus(
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
initWebsocket(params);
|
|
172
|
-
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:
|
|
173
167
|
case "end":
|
|
174
168
|
return _context.stop();
|
|
175
169
|
}
|
|
@@ -181,15 +175,32 @@ var DataRealView = function DataRealView() {
|
|
|
181
175
|
}();
|
|
182
176
|
useEffect(function () {
|
|
183
177
|
// 组件挂载时执行的操作
|
|
184
|
-
console.log('组件挂载');
|
|
185
178
|
// 返回一个清理函数,在组件卸载时执行
|
|
186
179
|
return function () {
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
180
|
+
// 模拟异步保存数据到本地存储
|
|
181
|
+
var unloadWs = /*#__PURE__*/function () {
|
|
182
|
+
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime().mark(function _callee2() {
|
|
183
|
+
var _ws$current2;
|
|
184
|
+
return _regeneratorRuntime().wrap(function _callee2$(_context2) {
|
|
185
|
+
while (1) switch (_context2.prev = _context2.next) {
|
|
186
|
+
case 0:
|
|
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:
|
|
194
|
+
case "end":
|
|
195
|
+
return _context2.stop();
|
|
196
|
+
}
|
|
197
|
+
}, _callee2);
|
|
198
|
+
}));
|
|
199
|
+
return function unloadWs() {
|
|
200
|
+
return _ref2.apply(this, arguments);
|
|
201
|
+
};
|
|
202
|
+
}();
|
|
203
|
+
unloadWs();
|
|
193
204
|
};
|
|
194
205
|
}, []);
|
|
195
206
|
useMemo(function () {
|
|
@@ -13,15 +13,30 @@ var DataRealViewTable = function DataRealViewTable(_ref) {
|
|
|
13
13
|
title: '触发时间',
|
|
14
14
|
field: 'time',
|
|
15
15
|
width: 160,
|
|
16
|
-
sort: true
|
|
16
|
+
sort: true,
|
|
17
|
+
headerStyle: {
|
|
18
|
+
fontSize: 14,
|
|
19
|
+
color: '#021429',
|
|
20
|
+
fontWeight: 400
|
|
21
|
+
}
|
|
17
22
|
}, {
|
|
18
23
|
title: '事件名',
|
|
19
24
|
field: 'eventName',
|
|
20
|
-
width: 160
|
|
25
|
+
width: 160,
|
|
26
|
+
headerStyle: {
|
|
27
|
+
fontSize: 14,
|
|
28
|
+
color: '#021429',
|
|
29
|
+
fontWeight: 400
|
|
30
|
+
}
|
|
21
31
|
}, {
|
|
22
32
|
title: '用户ID',
|
|
23
33
|
field: 'userId',
|
|
24
|
-
width: 160
|
|
34
|
+
width: 160,
|
|
35
|
+
headerStyle: {
|
|
36
|
+
fontSize: 14,
|
|
37
|
+
color: '#021429',
|
|
38
|
+
fontWeight: 400
|
|
39
|
+
}
|
|
25
40
|
}, {
|
|
26
41
|
title: '数据',
|
|
27
42
|
field: 'data',
|
|
@@ -29,6 +44,11 @@ var DataRealViewTable = function DataRealViewTable(_ref) {
|
|
|
29
44
|
style: {
|
|
30
45
|
autoWrapText: true,
|
|
31
46
|
lineHeight: 30
|
|
47
|
+
},
|
|
48
|
+
headerStyle: {
|
|
49
|
+
fontSize: 14,
|
|
50
|
+
color: '#021429',
|
|
51
|
+
fontWeight: 400
|
|
32
52
|
}
|
|
33
53
|
// customRender(args: any) {
|
|
34
54
|
// const { dataValue } = args;
|
|
@@ -139,11 +159,16 @@ var DataRealViewTable = function DataRealViewTable(_ref) {
|
|
|
139
159
|
maxCharactersNumber: 1000000,
|
|
140
160
|
autoWrapText: true,
|
|
141
161
|
defaultHeaderRowHeight: 70,
|
|
142
|
-
|
|
143
|
-
defaultRowHeight: 470,
|
|
162
|
+
defaultRowHeight: 'auto',
|
|
163
|
+
// defaultRowHeight: 470,
|
|
144
164
|
enableLineBreak: true,
|
|
145
165
|
rowSeriesNumber: {
|
|
146
|
-
title: '序号'
|
|
166
|
+
title: '序号',
|
|
167
|
+
headerStyle: {
|
|
168
|
+
fontSize: 14,
|
|
169
|
+
color: '#021429',
|
|
170
|
+
fontWeight: 400
|
|
171
|
+
}
|
|
147
172
|
},
|
|
148
173
|
keyboardOptions: {
|
|
149
174
|
// 快捷键配置
|
|
@@ -151,7 +176,15 @@ var DataRealViewTable = function DataRealViewTable(_ref) {
|
|
|
151
176
|
copySelected: true,
|
|
152
177
|
pasteValueToCell: true
|
|
153
178
|
},
|
|
154
|
-
editor:
|
|
179
|
+
editor: function editor(args) {
|
|
180
|
+
var tempInput = document.createElement('input');
|
|
181
|
+
tempInput.value = args.value;
|
|
182
|
+
document.body.appendChild(tempInput);
|
|
183
|
+
tempInput.select();
|
|
184
|
+
document.execCommand('copy');
|
|
185
|
+
document.body.removeChild(tempInput);
|
|
186
|
+
return args.value;
|
|
187
|
+
},
|
|
155
188
|
autoFillWidth: true,
|
|
156
189
|
emptyTip: {
|
|
157
190
|
// 空数据提示
|
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.17",
|
|
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": "8a5e9f3df4613e312ec87f2d66911511156de122",
|
|
61
61
|
"gitHooks": {
|
|
62
62
|
"pre-commit": "lint-staged"
|
|
63
63
|
}
|