@zgfe/modules-settings 2.0.0-zhongyuan.35 → 2.0.0-zhongyuan.37
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/constants/api.js +1 -1
- package/es/modules/createDemand/constants.d.ts +1 -1
- package/es/modules/createDemand/constants.js +3 -2
- package/es/modules/createDemand/index.js +113 -82
- package/es/modules/pointMap/createMetaDrawer.js +7 -30
- package/es/modules/pointMap/pageInfo.js +172 -160
- package/es/modules/pointMap/record.d.ts +1 -1
- package/es/modules/pointMap/record.js +4 -4
- package/es/modules/pointMap/styles/pageInfo.less +1 -2
- package/package.json +2 -2
package/es/constants/api.js
CHANGED
|
@@ -211,7 +211,7 @@ var apis = {
|
|
|
211
211
|
// 查询应用埋点控制开关
|
|
212
212
|
getAppAutoEvent: '/zg/web/v2/approve/getAppAutoEvent',
|
|
213
213
|
//埋点日志
|
|
214
|
-
getEventLog: '/zg/web/v2/approve/
|
|
214
|
+
getEventLog: '/zg/web/v2/approve/point/event/log',
|
|
215
215
|
// 事件新增
|
|
216
216
|
addEvent: '/zg/web/v2/event/addEvent',
|
|
217
217
|
// menuCode
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { ColumnsType } from 'antd/es/table/interface';
|
|
2
|
-
declare const columnsEvent: (gotoPage?: Function, isControl?: boolean) => ColumnsType<{
|
|
2
|
+
declare const columnsEvent: (gotoPage?: Function, isControl?: boolean, getPointMap?: Function) => ColumnsType<{
|
|
3
3
|
pageId: number;
|
|
4
4
|
}>;
|
|
5
5
|
declare const demandTabList: ({
|
|
@@ -8,7 +8,7 @@ import { IconFont } from '@zgfe/business-lib';
|
|
|
8
8
|
import { Image } from 'antd';
|
|
9
9
|
import React from 'react';
|
|
10
10
|
var classPrefix = 'system-setting-create-demand';
|
|
11
|
-
var columnsEvent = function columnsEvent(gotoPage, isControl) {
|
|
11
|
+
var columnsEvent = function columnsEvent(gotoPage, isControl, getPointMap) {
|
|
12
12
|
return [{
|
|
13
13
|
title: '页面名称',
|
|
14
14
|
dataIndex: 'pageName',
|
|
@@ -51,12 +51,13 @@ var columnsEvent = function columnsEvent(gotoPage, isControl) {
|
|
|
51
51
|
dataIndex: 'eventName',
|
|
52
52
|
width: 153,
|
|
53
53
|
ellipsis: true,
|
|
54
|
-
render: function render(eventName) {
|
|
54
|
+
render: function render(eventName, data) {
|
|
55
55
|
return /*#__PURE__*/React.createElement("a", {
|
|
56
56
|
onClick: function onClick() {
|
|
57
57
|
return gotoPage && gotoPage('event', eventName);
|
|
58
58
|
}
|
|
59
59
|
}, eventName);
|
|
60
|
+
//新 getPointMap && getPointMap(data)
|
|
60
61
|
}
|
|
61
62
|
}].concat(_toConsumableArray(isControl ? [{
|
|
62
63
|
title: '审批详情',
|
|
@@ -35,6 +35,7 @@ import BackConfirm from './backConfirm';
|
|
|
35
35
|
import constants from '../../utils/constants';
|
|
36
36
|
import { jsPDF } from 'jspdf';
|
|
37
37
|
import domtoimage from 'dom-to-image';
|
|
38
|
+
import CreateMetaDrawer from '../pointMap/createMetaDrawer';
|
|
38
39
|
var getImgUrl = function getImgUrl(src, pageId) {
|
|
39
40
|
return constants.regExp.url.test(src) ? src : "".concat(window.location.origin, "/web/img/report/").concat(pageId, "/").concat(src);
|
|
40
41
|
// return constants.regExp.url.test(src)
|
|
@@ -84,98 +85,101 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
84
85
|
_useState16 = _slicedToArray(_useState15, 2),
|
|
85
86
|
isHandle = _useState16[0],
|
|
86
87
|
setIsHandle = _useState16[1];
|
|
87
|
-
|
|
88
|
+
// const [isWithdraw, setIsWithdraw] = useState(false);
|
|
89
|
+
var _useState17 = useState(void 0),
|
|
88
90
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
var _useState19 = useState(
|
|
92
|
-
_useState20 = _slicedToArray(_useState19,
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
91
|
+
currentNodenumber = _useState18[0],
|
|
92
|
+
setCurrentNodenumber = _useState18[1];
|
|
93
|
+
var _useState19 = useState(props.isRead),
|
|
94
|
+
_useState20 = _slicedToArray(_useState19, 1),
|
|
95
|
+
isRead = _useState20[0];
|
|
96
|
+
var _useState21 = useState(false),
|
|
97
|
+
_useState22 = _slicedToArray(_useState21, 2),
|
|
98
|
+
isShowBackConfirm = _useState22[0],
|
|
99
|
+
setIsShowBackConfirm = _useState22[1];
|
|
98
100
|
var _useState23 = useState(false),
|
|
99
101
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
102
|
+
isEdit = _useState24[0],
|
|
103
|
+
setIsEdit = _useState24[1];
|
|
104
|
+
// const [processingNode, setProcessingNode] = useState();
|
|
105
|
+
var _useState25 = useState(),
|
|
103
106
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
var _useState27 = useState(),
|
|
107
|
+
demandData = _useState26[0],
|
|
108
|
+
setDemandData = _useState26[1];
|
|
109
|
+
var _useState27 = useState(0),
|
|
107
110
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
var _useState29 = useState(),
|
|
111
|
-
_useState30 = _slicedToArray(_useState29, 2),
|
|
112
|
-
demandData = _useState30[0],
|
|
113
|
-
setDemandData = _useState30[1];
|
|
114
|
-
var _useState31 = useState(0),
|
|
115
|
-
_useState32 = _slicedToArray(_useState31, 2),
|
|
116
|
-
demandStatus = _useState32[0],
|
|
117
|
-
setDemandStatus = _useState32[1];
|
|
111
|
+
demandStatus = _useState28[0],
|
|
112
|
+
setDemandStatus = _useState28[1];
|
|
118
113
|
//需求操作类型
|
|
119
|
-
var
|
|
120
|
-
|
|
121
|
-
demandType =
|
|
114
|
+
var _useState29 = useState((props === null || props === void 0 ? void 0 : (_props$data = props.data) === null || _props$data === void 0 ? void 0 : _props$data.type) || 'get'),
|
|
115
|
+
_useState30 = _slicedToArray(_useState29, 1),
|
|
116
|
+
demandType = _useState30[0];
|
|
122
117
|
//埋点列表选择key
|
|
123
|
-
var
|
|
124
|
-
|
|
125
|
-
selectedRowKeys =
|
|
126
|
-
setSelectedRowKeys =
|
|
118
|
+
var _useState31 = useState([]),
|
|
119
|
+
_useState32 = _slicedToArray(_useState31, 2),
|
|
120
|
+
selectedRowKeys = _useState32[0],
|
|
121
|
+
setSelectedRowKeys = _useState32[1];
|
|
127
122
|
//公司用户列表
|
|
128
|
-
var
|
|
123
|
+
var _useState33 = useState([]),
|
|
124
|
+
_useState34 = _slicedToArray(_useState33, 2),
|
|
125
|
+
userList = _useState34[0],
|
|
126
|
+
setUserList = _useState34[1];
|
|
127
|
+
var _useState35 = useState(false),
|
|
128
|
+
_useState36 = _slicedToArray(_useState35, 2),
|
|
129
|
+
showUser = _useState36[0],
|
|
130
|
+
setShowUser = _useState36[1];
|
|
131
|
+
var _useState37 = useState({}),
|
|
129
132
|
_useState38 = _slicedToArray(_useState37, 2),
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
var _useState39 = useState(
|
|
133
|
+
userSelect = _useState38[0],
|
|
134
|
+
setUserSelect = _useState38[1];
|
|
135
|
+
var _useState39 = useState(''),
|
|
133
136
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
+
userSelectType = _useState40[0],
|
|
138
|
+
setUserSelectType = _useState40[1];
|
|
139
|
+
//评论参数列表
|
|
140
|
+
var _useState41 = useState('comment'),
|
|
137
141
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
var _useState43 = useState(
|
|
142
|
+
tabKey = _useState42[0],
|
|
143
|
+
setTabKey = _useState42[1];
|
|
144
|
+
var _useState43 = useState([]),
|
|
141
145
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
var _useState45 = useState('comment'),
|
|
146
|
+
comments = _useState44[0],
|
|
147
|
+
setComments = _useState44[1];
|
|
148
|
+
var _useState45 = useState(''),
|
|
146
149
|
_useState46 = _slicedToArray(_useState45, 2),
|
|
147
|
-
|
|
148
|
-
|
|
150
|
+
commentText = _useState46[0],
|
|
151
|
+
setCommentText = _useState46[1];
|
|
149
152
|
var _useState47 = useState([]),
|
|
150
153
|
_useState48 = _slicedToArray(_useState47, 2),
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
var _useState49 = useState(
|
|
154
|
+
operateList = _useState48[0],
|
|
155
|
+
setOperateList = _useState48[1];
|
|
156
|
+
var _useState49 = useState(false),
|
|
154
157
|
_useState50 = _slicedToArray(_useState49, 2),
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
+
showComment = _useState50[0],
|
|
159
|
+
setShowComment = _useState50[1];
|
|
160
|
+
//上线时间
|
|
161
|
+
var _useState51 = useState(false),
|
|
158
162
|
_useState52 = _slicedToArray(_useState51, 2),
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
var _useState53 = useState(
|
|
163
|
+
showOnlineTime = _useState52[0],
|
|
164
|
+
setShowOnlineTime = _useState52[1];
|
|
165
|
+
var _useState53 = useState(),
|
|
162
166
|
_useState54 = _slicedToArray(_useState53, 2),
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
var _useState55 = useState(
|
|
167
|
+
onlineTime = _useState54[0],
|
|
168
|
+
setOnlineTime = _useState54[1];
|
|
169
|
+
//设置时间
|
|
170
|
+
var _useState55 = useState(1),
|
|
167
171
|
_useState56 = _slicedToArray(_useState55, 2),
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
172
|
+
tabIndex = _useState56[0],
|
|
173
|
+
setTabIndex = _useState56[1];
|
|
174
|
+
//查看埋点内容
|
|
175
|
+
var _useState57 = useState(false),
|
|
171
176
|
_useState58 = _slicedToArray(_useState57, 2),
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
var _useState59 = useState(1),
|
|
177
|
+
createMetaShow = _useState58[0],
|
|
178
|
+
setCreateMetaShow = _useState58[1];
|
|
179
|
+
var _useState59 = useState({}),
|
|
176
180
|
_useState60 = _slicedToArray(_useState59, 2),
|
|
177
|
-
|
|
178
|
-
|
|
181
|
+
metaData = _useState60[0],
|
|
182
|
+
setMetaData = _useState60[1];
|
|
179
183
|
useEffect(function () {
|
|
180
184
|
if (props.demandId) {
|
|
181
185
|
getDemand();
|
|
@@ -246,7 +250,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
246
250
|
});
|
|
247
251
|
}) : []);
|
|
248
252
|
setIsHandle(res === null || res === void 0 ? void 0 : res.data.isHandle);
|
|
249
|
-
setIsWithdraw(res
|
|
253
|
+
// setIsWithdraw(res?.data.revocation);
|
|
250
254
|
setNodeData((res === null || res === void 0 ? void 0 : res.data.nodes) ? res === null || res === void 0 ? void 0 : res.data.nodes.map(function (item) {
|
|
251
255
|
return _objectSpread(_objectSpread({}, item), {}, {
|
|
252
256
|
nodeName: item.currentStepName,
|
|
@@ -282,7 +286,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
282
286
|
type: 'node_point'
|
|
283
287
|
});
|
|
284
288
|
}));
|
|
285
|
-
setProcessingNode(res.data.processingNode);
|
|
289
|
+
// setProcessingNode(res.data.processingNode);
|
|
286
290
|
}
|
|
287
291
|
});
|
|
288
292
|
};
|
|
@@ -350,7 +354,8 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
350
354
|
}),
|
|
351
355
|
pointEventStatus: type != 'flow' ? pointEventInfo === null || pointEventInfo === void 0 ? void 0 : pointEventInfo.map(function (item) {
|
|
352
356
|
return item.status;
|
|
353
|
-
}) : []
|
|
357
|
+
}) : [],
|
|
358
|
+
eventList: pointEventInfo
|
|
354
359
|
}, data)
|
|
355
360
|
}).then(function (res) {
|
|
356
361
|
if ((res === null || res === void 0 ? void 0 : res.code) === '100000') {
|
|
@@ -593,7 +598,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
593
598
|
style: {
|
|
594
599
|
color: '#fda145'
|
|
595
600
|
}
|
|
596
|
-
}, "\
|
|
601
|
+
}, "\u8BBE\u8BA1\u4E2D");
|
|
597
602
|
} else {
|
|
598
603
|
return /*#__PURE__*/React.createElement("div", {
|
|
599
604
|
style: {
|
|
@@ -673,7 +678,7 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
673
678
|
};
|
|
674
679
|
// 新的埋点表格列表
|
|
675
680
|
var newColumns = function newColumns() {
|
|
676
|
-
var columns = [].concat(_toConsumableArray(columnsEvent(gotoPage, isControl)), [{
|
|
681
|
+
var columns = [].concat(_toConsumableArray(columnsEvent(gotoPage, isControl, getPointMap)), [{
|
|
677
682
|
title: '状态',
|
|
678
683
|
width: 120,
|
|
679
684
|
dataIndex: 'status',
|
|
@@ -887,6 +892,11 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
887
892
|
})[0];
|
|
888
893
|
return data[key];
|
|
889
894
|
};
|
|
895
|
+
//查看埋点详情
|
|
896
|
+
var getPointMap = function getPointMap(data) {
|
|
897
|
+
setMetaData(data);
|
|
898
|
+
setCreateMetaShow(true);
|
|
899
|
+
};
|
|
890
900
|
return /*#__PURE__*/React.createElement("div", {
|
|
891
901
|
className: classPrefix
|
|
892
902
|
}, /*#__PURE__*/React.createElement("div", {
|
|
@@ -1077,18 +1087,19 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
1077
1087
|
className: "button",
|
|
1078
1088
|
onClick: function onClick() {
|
|
1079
1089
|
props.setIsShowSelectList && props.setIsShowSelectList(function (val) {
|
|
1080
|
-
setPointEventInfo(val.map(function (val) {
|
|
1090
|
+
setPointEventInfo([].concat(_toConsumableArray(pointEventInfo || []), _toConsumableArray(val.map(function (val) {
|
|
1081
1091
|
return _objectSpread(_objectSpread({}, val), {}, {
|
|
1082
1092
|
status: 0
|
|
1083
1093
|
});
|
|
1084
|
-
}));
|
|
1094
|
+
}))));
|
|
1085
1095
|
onCreate('save', {
|
|
1086
1096
|
pointEventIds: val.map(function (res) {
|
|
1087
1097
|
return res.id;
|
|
1088
1098
|
}),
|
|
1089
1099
|
pointEventStatus: val.map(function (res) {
|
|
1090
1100
|
return 0;
|
|
1091
|
-
})
|
|
1101
|
+
}),
|
|
1102
|
+
eventList: val
|
|
1092
1103
|
});
|
|
1093
1104
|
}, pointEventInfo);
|
|
1094
1105
|
}
|
|
@@ -1114,7 +1125,8 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
1114
1125
|
}),
|
|
1115
1126
|
pointEventStatus: list.map(function (res) {
|
|
1116
1127
|
return res.status;
|
|
1117
|
-
})
|
|
1128
|
+
}),
|
|
1129
|
+
eventList: list
|
|
1118
1130
|
});
|
|
1119
1131
|
}
|
|
1120
1132
|
}, "\u79FB\u9664")), isRead ? null : (demandStatus == 3 || demandStatus == 4) && (/*#__PURE__*/React.createElement(Button, {
|
|
@@ -1264,7 +1276,18 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
1264
1276
|
type: 'primary',
|
|
1265
1277
|
className: "commentBtn",
|
|
1266
1278
|
onClick: function onClick() {
|
|
1267
|
-
return
|
|
1279
|
+
return Modal.confirm({
|
|
1280
|
+
wrapClassName: "".concat(classPrefix, "-confirm"),
|
|
1281
|
+
title: '提示',
|
|
1282
|
+
icon: null,
|
|
1283
|
+
closable: true,
|
|
1284
|
+
content: '您确定要重新设计需求?',
|
|
1285
|
+
okText: '确定',
|
|
1286
|
+
cancelText: '取消',
|
|
1287
|
+
onOk: function onOk() {
|
|
1288
|
+
submitApproval(2);
|
|
1289
|
+
}
|
|
1290
|
+
});
|
|
1268
1291
|
}
|
|
1269
1292
|
}, "\u91CD\u65B0\u8BBE\u8BA1")))), isShowBackConfirm ? (/*#__PURE__*/React.createElement(BackConfirm, {
|
|
1270
1293
|
onOk: function onOk() {
|
|
@@ -1350,6 +1373,14 @@ var CreateDemand = function CreateDemand(props) {
|
|
|
1350
1373
|
},
|
|
1351
1374
|
showTime: true,
|
|
1352
1375
|
disabled: isRead
|
|
1353
|
-
}))
|
|
1376
|
+
})), /*#__PURE__*/React.createElement(CreateMetaDrawer, {
|
|
1377
|
+
isShow: createMetaShow,
|
|
1378
|
+
data: metaData,
|
|
1379
|
+
isEdit: false,
|
|
1380
|
+
// selectTreeName={props.selectTreeName}
|
|
1381
|
+
onClose: function onClose() {
|
|
1382
|
+
return setCreateMetaShow(false);
|
|
1383
|
+
}
|
|
1384
|
+
}));
|
|
1354
1385
|
};
|
|
1355
1386
|
export default CreateDemand;
|
|
@@ -217,7 +217,7 @@ var CreateMeta = function CreateMeta(props) {
|
|
|
217
217
|
title: '属性别名',
|
|
218
218
|
dataIndex: 'aliasName',
|
|
219
219
|
key: 'aliasName',
|
|
220
|
-
width:
|
|
220
|
+
width: 234,
|
|
221
221
|
render: function render(aliasName, record, index) {
|
|
222
222
|
return /*#__PURE__*/React.createElement("div", {
|
|
223
223
|
style: {
|
|
@@ -427,7 +427,7 @@ var CreateMeta = function CreateMeta(props) {
|
|
|
427
427
|
};
|
|
428
428
|
//页面加载完成后才能获取到对应的元素及其位置
|
|
429
429
|
useEffect(function () {
|
|
430
|
-
var _Y = getTableScroll(
|
|
430
|
+
var _Y = getTableScroll(545, 'dataManageCreateMetaTable');
|
|
431
431
|
setScrollY(_Y);
|
|
432
432
|
}, []);
|
|
433
433
|
var onClose = function onClose() {
|
|
@@ -440,34 +440,12 @@ var CreateMeta = function CreateMeta(props) {
|
|
|
440
440
|
// 是否复制的开关
|
|
441
441
|
var changeSwitch = function changeSwitch(event) {
|
|
442
442
|
setIsCopy(event);
|
|
443
|
-
if (event) {
|
|
444
|
-
onChangeEvent({
|
|
445
|
-
alias: '页面滚动',
|
|
446
|
-
name: 'scroll',
|
|
447
|
-
clickAnalysis: false,
|
|
448
|
-
eventHidden: 0,
|
|
449
|
-
id: 1000448,
|
|
450
|
-
isDelete: 0,
|
|
451
|
-
isStop: false,
|
|
452
|
-
owner: 'zg_abp',
|
|
453
|
-
attrList: [{
|
|
454
|
-
alias: '',
|
|
455
|
-
id: 1001917,
|
|
456
|
-
eventId: 1000488,
|
|
457
|
-
label: 'login_id',
|
|
458
|
-
type: 1,
|
|
459
|
-
encryptionType: 0
|
|
460
|
-
}]
|
|
461
|
-
});
|
|
462
|
-
}
|
|
463
443
|
};
|
|
464
|
-
var onChangeEvent = function onChangeEvent(
|
|
465
|
-
|
|
444
|
+
var onChangeEvent = function onChangeEvent(_ref2) {
|
|
445
|
+
var event = _ref2.event;
|
|
466
446
|
form.setFieldsValue({
|
|
467
447
|
aliasName: event.alias,
|
|
468
|
-
eventName: event.name
|
|
469
|
-
triggeringOccasion: event.triggeringOccasion,
|
|
470
|
-
eventId: event.id
|
|
448
|
+
eventName: event.name
|
|
471
449
|
});
|
|
472
450
|
setInputText(event.name);
|
|
473
451
|
if (event.attrList) {
|
|
@@ -478,7 +456,6 @@ var CreateMeta = function CreateMeta(props) {
|
|
|
478
456
|
});
|
|
479
457
|
})));
|
|
480
458
|
}
|
|
481
|
-
setIsCopy(false);
|
|
482
459
|
};
|
|
483
460
|
// 自定义验证规则
|
|
484
461
|
var _useState17 = useState(''),
|
|
@@ -545,7 +522,7 @@ var CreateMeta = function CreateMeta(props) {
|
|
|
545
522
|
}],
|
|
546
523
|
validateStatus: validateContainsUnderscore(inputText) ? '' : 'error',
|
|
547
524
|
help: validateContainsUnderscore(inputText) ? '' : inputText == '' ? '请输入事件名称' : "\u8BF7\u6839\u636E\u9875\u9762\u5C42\u7EA7\u547D\u540D\uFF0C\u5982\uFF1A".concat(props.selectTreeName)
|
|
548
|
-
}, isCopy ? (/*#__PURE__*/React.createElement(BizEventSelector, {
|
|
525
|
+
}, isCopy ? (/*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(BizEventSelector, {
|
|
549
526
|
showAllEvent: true,
|
|
550
527
|
multiple: false,
|
|
551
528
|
key: "eventProp",
|
|
@@ -554,7 +531,7 @@ var CreateMeta = function CreateMeta(props) {
|
|
|
554
531
|
defaultSelectAble: false,
|
|
555
532
|
onChange: onChangeEvent,
|
|
556
533
|
placeholder: "\u8BF7\u9009\u62E9\u4E8B\u4EF6"
|
|
557
|
-
})) : (/*#__PURE__*/React.createElement(Input, {
|
|
534
|
+
}))) : (/*#__PURE__*/React.createElement(Input, {
|
|
558
535
|
disabled: homeType == 'update' || homeType == 'get',
|
|
559
536
|
placeholder: "".concat(props.selectTreeName ? "\u8BF7\u6839\u636E\u9875\u9762\u5C42\u7EA7\u547D\u540D\uFF0C\u5982\uFF1A".concat(props.selectTreeName) : '请输入事件名称'),
|
|
560
537
|
showCount: true,
|
|
@@ -2,15 +2,15 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
2
2
|
function _regeneratorRuntime() { "use strict"; /*! regenerator-runtime -- Copyright (c) 2014-present, Facebook, Inc. -- license (MIT): https://github.com/facebook/regenerator/blob/main/LICENSE */ _regeneratorRuntime = function _regeneratorRuntime() { return e; }; var t, e = {}, r = Object.prototype, n = r.hasOwnProperty, o = Object.defineProperty || function (t, e, r) { t[e] = r.value; }, i = "function" == typeof Symbol ? Symbol : {}, a = i.iterator || "@@iterator", c = i.asyncIterator || "@@asyncIterator", u = i.toStringTag || "@@toStringTag"; function define(t, e, r) { return Object.defineProperty(t, e, { value: r, enumerable: !0, configurable: !0, writable: !0 }), t[e]; } try { define({}, ""); } catch (t) { define = function define(t, e, r) { return t[e] = r; }; } function wrap(t, e, r, n) { var i = e && e.prototype instanceof Generator ? e : Generator, a = Object.create(i.prototype), c = new Context(n || []); return o(a, "_invoke", { value: makeInvokeMethod(t, r, c) }), a; } function tryCatch(t, e, r) { try { return { type: "normal", arg: t.call(e, r) }; } catch (t) { return { type: "throw", arg: t }; } } e.wrap = wrap; var h = "suspendedStart", l = "suspendedYield", f = "executing", s = "completed", y = {}; function Generator() {} function GeneratorFunction() {} function GeneratorFunctionPrototype() {} var p = {}; define(p, a, function () { return this; }); var d = Object.getPrototypeOf, v = d && d(d(values([]))); v && v !== r && n.call(v, a) && (p = v); var g = GeneratorFunctionPrototype.prototype = Generator.prototype = Object.create(p); function defineIteratorMethods(t) { ["next", "throw", "return"].forEach(function (e) { define(t, e, function (t) { return this._invoke(e, t); }); }); } function AsyncIterator(t, e) { function invoke(r, o, i, a) { var c = tryCatch(t[r], t, o); if ("throw" !== c.type) { var u = c.arg, h = u.value; return h && "object" == _typeof(h) && n.call(h, "__await") ? e.resolve(h.__await).then(function (t) { invoke("next", t, i, a); }, function (t) { invoke("throw", t, i, a); }) : e.resolve(h).then(function (t) { u.value = t, i(u); }, function (t) { return invoke("throw", t, i, a); }); } a(c.arg); } var r; o(this, "_invoke", { value: function value(t, n) { function callInvokeWithMethodAndArg() { return new e(function (e, r) { invoke(t, n, e, r); }); } return r = r ? r.then(callInvokeWithMethodAndArg, callInvokeWithMethodAndArg) : callInvokeWithMethodAndArg(); } }); } function makeInvokeMethod(e, r, n) { var o = h; return function (i, a) { if (o === f) throw Error("Generator is already running"); if (o === s) { if ("throw" === i) throw a; return { value: t, done: !0 }; } for (n.method = i, n.arg = a;;) { var c = n.delegate; if (c) { var u = maybeInvokeDelegate(c, n); if (u) { if (u === y) continue; return u; } } if ("next" === n.method) n.sent = n._sent = n.arg;else if ("throw" === n.method) { if (o === h) throw o = s, n.arg; n.dispatchException(n.arg); } else "return" === n.method && n.abrupt("return", n.arg); o = f; var p = tryCatch(e, r, n); if ("normal" === p.type) { if (o = n.done ? s : l, p.arg === y) continue; return { value: p.arg, done: n.done }; } "throw" === p.type && (o = s, n.method = "throw", n.arg = p.arg); } }; } function maybeInvokeDelegate(e, r) { var n = r.method, o = e.iterator[n]; if (o === t) return r.delegate = null, "throw" === n && e.iterator.return && (r.method = "return", r.arg = t, maybeInvokeDelegate(e, r), "throw" === r.method) || "return" !== n && (r.method = "throw", r.arg = new TypeError("The iterator does not provide a '" + n + "' method")), y; var i = tryCatch(o, e.iterator, r.arg); if ("throw" === i.type) return r.method = "throw", r.arg = i.arg, r.delegate = null, y; var a = i.arg; return a ? a.done ? (r[e.resultName] = a.value, r.next = e.nextLoc, "return" !== r.method && (r.method = "next", r.arg = t), r.delegate = null, y) : a : (r.method = "throw", r.arg = new TypeError("iterator result is not an object"), r.delegate = null, y); } function pushTryEntry(t) { var e = { tryLoc: t[0] }; 1 in t && (e.catchLoc = t[1]), 2 in t && (e.finallyLoc = t[2], e.afterLoc = t[3]), this.tryEntries.push(e); } function resetTryEntry(t) { var e = t.completion || {}; e.type = "normal", delete e.arg, t.completion = e; } function Context(t) { this.tryEntries = [{ tryLoc: "root" }], t.forEach(pushTryEntry, this), this.reset(!0); } function values(e) { if (e || "" === e) { var r = e[a]; if (r) return r.call(e); if ("function" == typeof e.next) return e; if (!isNaN(e.length)) { var o = -1, i = function next() { for (; ++o < e.length;) if (n.call(e, o)) return next.value = e[o], next.done = !1, next; return next.value = t, next.done = !0, next; }; return i.next = i; } } throw new TypeError(_typeof(e) + " is not iterable"); } return GeneratorFunction.prototype = GeneratorFunctionPrototype, o(g, "constructor", { value: GeneratorFunctionPrototype, configurable: !0 }), o(GeneratorFunctionPrototype, "constructor", { value: GeneratorFunction, configurable: !0 }), GeneratorFunction.displayName = define(GeneratorFunctionPrototype, u, "GeneratorFunction"), e.isGeneratorFunction = function (t) { var e = "function" == typeof t && t.constructor; return !!e && (e === GeneratorFunction || "GeneratorFunction" === (e.displayName || e.name)); }, e.mark = function (t) { return Object.setPrototypeOf ? Object.setPrototypeOf(t, GeneratorFunctionPrototype) : (t.__proto__ = GeneratorFunctionPrototype, define(t, u, "GeneratorFunction")), t.prototype = Object.create(g), t; }, e.awrap = function (t) { return { __await: t }; }, defineIteratorMethods(AsyncIterator.prototype), define(AsyncIterator.prototype, c, function () { return this; }), e.AsyncIterator = AsyncIterator, e.async = function (t, r, n, o, i) { void 0 === i && (i = Promise); var a = new AsyncIterator(wrap(t, r, n, o), i); return e.isGeneratorFunction(r) ? a : a.next().then(function (t) { return t.done ? t.value : a.next(); }); }, defineIteratorMethods(g), define(g, u, "Generator"), define(g, a, function () { return this; }), define(g, "toString", function () { return "[object Generator]"; }), e.keys = function (t) { var e = Object(t), r = []; for (var n in e) r.push(n); return r.reverse(), function next() { for (; r.length;) { var t = r.pop(); if (t in e) return next.value = t, next.done = !1, next; } return next.done = !0, next; }; }, e.values = values, Context.prototype = { constructor: Context, reset: function reset(e) { if (this.prev = 0, this.next = 0, this.sent = this._sent = t, this.done = !1, this.delegate = null, this.method = "next", this.arg = t, this.tryEntries.forEach(resetTryEntry), !e) for (var r in this) "t" === r.charAt(0) && n.call(this, r) && !isNaN(+r.slice(1)) && (this[r] = t); }, stop: function stop() { this.done = !0; var t = this.tryEntries[0].completion; if ("throw" === t.type) throw t.arg; return this.rval; }, dispatchException: function dispatchException(e) { if (this.done) throw e; var r = this; function handle(n, o) { return a.type = "throw", a.arg = e, r.next = n, o && (r.method = "next", r.arg = t), !!o; } for (var o = this.tryEntries.length - 1; o >= 0; --o) { var i = this.tryEntries[o], a = i.completion; if ("root" === i.tryLoc) return handle("end"); if (i.tryLoc <= this.prev) { var c = n.call(i, "catchLoc"), u = n.call(i, "finallyLoc"); if (c && u) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } else if (c) { if (this.prev < i.catchLoc) return handle(i.catchLoc, !0); } else { if (!u) throw Error("try statement without catch or finally"); if (this.prev < i.finallyLoc) return handle(i.finallyLoc); } } } }, abrupt: function abrupt(t, e) { for (var r = this.tryEntries.length - 1; r >= 0; --r) { var o = this.tryEntries[r]; if (o.tryLoc <= this.prev && n.call(o, "finallyLoc") && this.prev < o.finallyLoc) { var i = o; break; } } i && ("break" === t || "continue" === t) && i.tryLoc <= e && e <= i.finallyLoc && (i = null); var a = i ? i.completion : {}; return a.type = t, a.arg = e, i ? (this.method = "next", this.next = i.finallyLoc, y) : this.complete(a); }, complete: function complete(t, e) { if ("throw" === t.type) throw t.arg; return "break" === t.type || "continue" === t.type ? this.next = t.arg : "return" === t.type ? (this.rval = this.arg = t.arg, this.method = "return", this.next = "end") : "normal" === t.type && e && (this.next = e), y; }, finish: function finish(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.finallyLoc === t) return this.complete(r.completion, r.afterLoc), resetTryEntry(r), y; } }, catch: function _catch(t) { for (var e = this.tryEntries.length - 1; e >= 0; --e) { var r = this.tryEntries[e]; if (r.tryLoc === t) { var n = r.completion; if ("throw" === n.type) { var o = n.arg; resetTryEntry(r); } return o; } } throw Error("illegal catch attempt"); }, delegateYield: function delegateYield(e, r, n) { return this.delegate = { iterator: values(e), resultName: r, nextLoc: n }, "next" === this.method && (this.arg = t), y; } }, e; }
|
|
3
3
|
function asyncGeneratorStep(n, t, e, r, o, a, c) { try { var i = n[a](c), u = i.value; } catch (n) { return void e(n); } i.done ? t(u) : Promise.resolve(u).then(r, o); }
|
|
4
4
|
function _asyncToGenerator(n) { return function () { var t = this, e = arguments; return new Promise(function (r, o) { var a = n.apply(t, e); function _next(n) { asyncGeneratorStep(a, r, o, _next, _throw, "next", n); } function _throw(n) { asyncGeneratorStep(a, r, o, _next, _throw, "throw", n); } _next(void 0); }); }; }
|
|
5
|
+
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
6
|
+
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
7
|
+
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
8
|
+
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
5
9
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
6
10
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
7
11
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
8
12
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
9
13
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
10
|
-
function _toConsumableArray(r) { return _arrayWithoutHoles(r) || _iterableToArray(r) || _unsupportedIterableToArray(r) || _nonIterableSpread(); }
|
|
11
|
-
function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
12
|
-
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
13
|
-
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
14
14
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
15
15
|
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."); }
|
|
16
16
|
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; } }
|
|
@@ -37,6 +37,7 @@ var getImgUrl = function getImgUrl(src, pageId) {
|
|
|
37
37
|
// : `${'https://test01.zhugeapi.com'}/web/img/report/${pageId}/${src}`;
|
|
38
38
|
};
|
|
39
39
|
var PageInfo = function PageInfo(props) {
|
|
40
|
+
console.log(props, 'props');
|
|
40
41
|
var classPrefix = 'setting-point-map-page';
|
|
41
42
|
var _useContext = useContext(BizGlobalDataContext),
|
|
42
43
|
currentApp = _useContext.currentApp,
|
|
@@ -78,63 +79,61 @@ var PageInfo = function PageInfo(props) {
|
|
|
78
79
|
_useState18 = _slicedToArray(_useState17, 2),
|
|
79
80
|
isChange = _useState18[0],
|
|
80
81
|
setIsChange = _useState18[1];
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
var _useState21 = useState(
|
|
82
|
+
// props.isSelect
|
|
83
|
+
var _useState19 = useState(props.isSelect),
|
|
84
|
+
_useState20 = _slicedToArray(_useState19, 1),
|
|
85
|
+
isSelect = _useState20[0];
|
|
86
|
+
var _useState21 = useState(),
|
|
86
87
|
_useState22 = _slicedToArray(_useState21, 2),
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
88
|
+
circleImg = _useState22[0],
|
|
89
|
+
setCircleImg = _useState22[1];
|
|
90
|
+
// const [isReadPicCircle, setIsReadPicCircle] = useState(false);
|
|
91
|
+
// const [isEditPicCircle, setIsEditPicCircle] = useState(false);
|
|
92
|
+
var _useState23 = useState(isSelect ? [] : props.selectPoint),
|
|
90
93
|
_useState24 = _slicedToArray(_useState23, 2),
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
var _useState25 = useState(
|
|
94
|
+
selectPoint = _useState24[0],
|
|
95
|
+
setSelectPoint = _useState24[1];
|
|
96
|
+
var _useState25 = useState(false),
|
|
94
97
|
_useState26 = _slicedToArray(_useState25, 2),
|
|
95
|
-
|
|
96
|
-
|
|
98
|
+
isEmpty = _useState26[0],
|
|
99
|
+
setIsEmpty = _useState26[1];
|
|
97
100
|
var _useState27 = useState(false),
|
|
98
101
|
_useState28 = _slicedToArray(_useState27, 2),
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
var _useState29 = useState(
|
|
102
|
+
isEdit = _useState28[0],
|
|
103
|
+
setIsEdit = _useState28[1];
|
|
104
|
+
var _useState29 = useState(),
|
|
102
105
|
_useState30 = _slicedToArray(_useState29, 2),
|
|
103
|
-
|
|
104
|
-
|
|
106
|
+
imgPath = _useState30[0],
|
|
107
|
+
setImgPath = _useState30[1];
|
|
105
108
|
var _useState31 = useState(),
|
|
106
109
|
_useState32 = _slicedToArray(_useState31, 2),
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
var _useState33 = useState(),
|
|
110
|
+
imgUrl = _useState32[0],
|
|
111
|
+
setImgUrl = _useState32[1];
|
|
112
|
+
var _useState33 = useState(false),
|
|
110
113
|
_useState34 = _slicedToArray(_useState33, 2),
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
var _useState35 = useState(false),
|
|
114
|
-
_useState36 = _slicedToArray(_useState35, 2),
|
|
115
|
-
isHasData = _useState36[0],
|
|
116
|
-
setIsHasData = _useState36[1];
|
|
114
|
+
isHasData = _useState34[0],
|
|
115
|
+
setIsHasData = _useState34[1];
|
|
117
116
|
// 记录删除的有id的页面埋点
|
|
118
|
-
var
|
|
117
|
+
var _useState35 = useState([]),
|
|
118
|
+
_useState36 = _slicedToArray(_useState35, 2),
|
|
119
|
+
deleteEventIds = _useState36[0],
|
|
120
|
+
setDeleteEventIds = _useState36[1];
|
|
121
|
+
var _useState37 = useState(''),
|
|
119
122
|
_useState38 = _slicedToArray(_useState37, 2),
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
var _useState39 = useState(
|
|
123
|
+
eventKey = _useState38[0],
|
|
124
|
+
setEventKey = _useState38[1];
|
|
125
|
+
var _useState39 = useState(),
|
|
123
126
|
_useState40 = _slicedToArray(_useState39, 2),
|
|
124
|
-
|
|
125
|
-
|
|
127
|
+
id = _useState40[0],
|
|
128
|
+
setId = _useState40[1];
|
|
126
129
|
var _useState41 = useState(),
|
|
127
130
|
_useState42 = _slicedToArray(_useState41, 2),
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
var _useState43 = useState(),
|
|
131
|
+
showIndex = _useState42[0],
|
|
132
|
+
setShowIndex = _useState42[1];
|
|
133
|
+
var _useState43 = useState({}),
|
|
131
134
|
_useState44 = _slicedToArray(_useState43, 2),
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
var _useState45 = useState({}),
|
|
135
|
-
_useState46 = _slicedToArray(_useState45, 2),
|
|
136
|
-
eventData = _useState46[0],
|
|
137
|
-
setEventData = _useState46[1];
|
|
135
|
+
eventData = _useState44[0],
|
|
136
|
+
setEventData = _useState44[1];
|
|
138
137
|
var changeItemInfo = function changeItemInfo(i, key, v) {
|
|
139
138
|
var dealData = _.clone(eventAttrList);
|
|
140
139
|
dealData[i]['isEdit'] = true;
|
|
@@ -142,7 +141,7 @@ var PageInfo = function PageInfo(props) {
|
|
|
142
141
|
setEventAttrList(dealData);
|
|
143
142
|
};
|
|
144
143
|
//埋点筛选
|
|
145
|
-
var
|
|
144
|
+
var _useState45 = useState([{
|
|
146
145
|
label: '在线埋点',
|
|
147
146
|
sum: 0,
|
|
148
147
|
value: 0
|
|
@@ -151,28 +150,28 @@ var PageInfo = function PageInfo(props) {
|
|
|
151
150
|
sum: 0,
|
|
152
151
|
value: 1
|
|
153
152
|
}]),
|
|
153
|
+
_useState46 = _slicedToArray(_useState45, 2),
|
|
154
|
+
navList = _useState46[0],
|
|
155
|
+
setNavList = _useState46[1];
|
|
156
|
+
var _useState47 = useState(0),
|
|
154
157
|
_useState48 = _slicedToArray(_useState47, 2),
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
var _useState49 = useState(0),
|
|
158
|
-
_useState50 = _slicedToArray(_useState49, 2),
|
|
159
|
-
navIndex = _useState50[0],
|
|
160
|
-
setNavIndex = _useState50[1];
|
|
158
|
+
navIndex = _useState48[0],
|
|
159
|
+
setNavIndex = _useState48[1];
|
|
161
160
|
//创建元事件
|
|
162
|
-
var
|
|
163
|
-
|
|
164
|
-
createMetaShow =
|
|
165
|
-
setCreateMetaShow =
|
|
161
|
+
var _useState49 = useState(false),
|
|
162
|
+
_useState50 = _slicedToArray(_useState49, 2),
|
|
163
|
+
createMetaShow = _useState50[0],
|
|
164
|
+
setCreateMetaShow = _useState50[1];
|
|
166
165
|
//元事件内容
|
|
167
|
-
var
|
|
168
|
-
|
|
169
|
-
metaData =
|
|
170
|
-
setMetaData =
|
|
166
|
+
var _useState51 = useState(),
|
|
167
|
+
_useState52 = _slicedToArray(_useState51, 2),
|
|
168
|
+
metaData = _useState52[0],
|
|
169
|
+
setMetaData = _useState52[1];
|
|
171
170
|
//日志管理
|
|
172
|
-
var
|
|
173
|
-
|
|
174
|
-
recordShow =
|
|
175
|
-
setRecordShow =
|
|
171
|
+
var _useState53 = useState(false),
|
|
172
|
+
_useState54 = _slicedToArray(_useState53, 2),
|
|
173
|
+
recordShow = _useState54[0],
|
|
174
|
+
setRecordShow = _useState54[1];
|
|
176
175
|
useEffect(function () {
|
|
177
176
|
// console.log('props.pageData', props.pageData);
|
|
178
177
|
if (!props.pageData) {
|
|
@@ -206,39 +205,37 @@ var PageInfo = function PageInfo(props) {
|
|
|
206
205
|
uuid: res.data.detail.uuid,
|
|
207
206
|
zosFileKey: res.data.detail.zosFileKey
|
|
208
207
|
} : undefined);
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
// }),
|
|
241
|
-
// );
|
|
208
|
+
if (!isSelect) {
|
|
209
|
+
// getPointTree()
|
|
210
|
+
setEventAttrList(res.data.eventInfos ? res.data.eventInfos.map(function (item, index) {
|
|
211
|
+
return {
|
|
212
|
+
id: item.id,
|
|
213
|
+
eventId: item.eventId,
|
|
214
|
+
eventName: item.eventName,
|
|
215
|
+
describe: item.pointDescribe,
|
|
216
|
+
pointSelect: item.pointSelect,
|
|
217
|
+
pv: item.pv,
|
|
218
|
+
imgPath: item.zosImgUrl ? getImgUrl(item.zosImgUrl, props.pageData.id) : '',
|
|
219
|
+
key: uuid(),
|
|
220
|
+
index: index,
|
|
221
|
+
approvalStatus: item.approvalStatus,
|
|
222
|
+
operationType: item.operationType,
|
|
223
|
+
del: item.del || 1
|
|
224
|
+
};
|
|
225
|
+
}) : []);
|
|
226
|
+
//计算出当前上线和下线总合数量
|
|
227
|
+
setNavList(navList.map(function (nav) {
|
|
228
|
+
var sum = 0;
|
|
229
|
+
res.data.eventInfos && res.data.eventInfos.map(function (item, index) {
|
|
230
|
+
if (nav.value == item.del) {
|
|
231
|
+
sum += 1;
|
|
232
|
+
}
|
|
233
|
+
});
|
|
234
|
+
return _objectSpread(_objectSpread({}, nav), {}, {
|
|
235
|
+
sum: sum
|
|
236
|
+
});
|
|
237
|
+
}));
|
|
238
|
+
}
|
|
242
239
|
}
|
|
243
240
|
}).catch(function (err) {
|
|
244
241
|
console.log(err);
|
|
@@ -409,7 +406,7 @@ var PageInfo = function PageInfo(props) {
|
|
|
409
406
|
return false;
|
|
410
407
|
} else {
|
|
411
408
|
return !!selectPoint.filter(function (item) {
|
|
412
|
-
return item.id === record.id;
|
|
409
|
+
return isSelect ? item.eventName === record.eventName : item.id === record.id;
|
|
413
410
|
}).length;
|
|
414
411
|
}
|
|
415
412
|
};
|
|
@@ -463,15 +460,15 @@ var PageInfo = function PageInfo(props) {
|
|
|
463
460
|
props.onChangeSelectObj && props.onChangeSelectObj(_selectPoint);
|
|
464
461
|
};
|
|
465
462
|
// 表格列表筛选项
|
|
466
|
-
var
|
|
463
|
+
var _useState55 = useState(0),
|
|
464
|
+
_useState56 = _slicedToArray(_useState55, 2),
|
|
465
|
+
type = _useState56[0],
|
|
466
|
+
setType = _useState56[1];
|
|
467
|
+
var _useState57 = useState(-1),
|
|
467
468
|
_useState58 = _slicedToArray(_useState57, 2),
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
var
|
|
471
|
-
_useState60 = _slicedToArray(_useState59, 2),
|
|
472
|
-
encryption_type = _useState60[0],
|
|
473
|
-
setEncryptionType = _useState60[1];
|
|
474
|
-
var columns = [].concat(_toConsumableArray(props.isSelect && !isEdit ? [{
|
|
469
|
+
encryption_type = _useState58[0],
|
|
470
|
+
setEncryptionType = _useState58[1];
|
|
471
|
+
var columns = [].concat(_toConsumableArray(!isEdit ? [{
|
|
475
472
|
title: (/*#__PURE__*/React.createElement(Checkbox, {
|
|
476
473
|
checked: checkedAllHandle(),
|
|
477
474
|
onChange: function onChange(e) {
|
|
@@ -518,21 +515,24 @@ var PageInfo = function PageInfo(props) {
|
|
|
518
515
|
placement: "topLeft"
|
|
519
516
|
}, /*#__PURE__*/React.createElement("a", {
|
|
520
517
|
onClick: function onClick() {
|
|
521
|
-
if (
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
518
|
+
if (!isSelect) {
|
|
519
|
+
if (isEdit) {
|
|
520
|
+
props.setIsShowSelectList && props.setIsShowSelectList(function (data) {
|
|
521
|
+
var item = data.selectEventList[0];
|
|
522
|
+
changeItemInfo(index, 'eventId', item && item.event_id ? item.event_id : undefined);
|
|
523
|
+
changeItemInfo(index, 'eventName', item && item.event_id ? item.event_name : undefined);
|
|
524
|
+
changeItemInfo(index, 'approvalStatus', item && item.event_id ? item.approvalStatus : undefined);
|
|
525
|
+
changeItemInfo(index, 'operationType', item && item.event_id ? item.operationType : undefined);
|
|
526
|
+
changeItemInfo(index, 'pv');
|
|
527
|
+
}, record);
|
|
528
|
+
} else {
|
|
529
|
+
window.open('/webapp/app/' + (currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId) + '/plat/0/analytics/dataCollectManage?key=' + eventName, '_blank');
|
|
530
|
+
}
|
|
530
531
|
} else {
|
|
531
|
-
|
|
532
|
+
//打开元事件
|
|
533
|
+
setCreateMetaShow(true);
|
|
534
|
+
setMetaData(record);
|
|
532
535
|
}
|
|
533
|
-
//打开元事件
|
|
534
|
-
// setCreateMetaShow(true);
|
|
535
|
-
// setMetaData(record);
|
|
536
536
|
}
|
|
537
537
|
}, eventName ? eventName : '选择元事件', !eventName && /*#__PURE__*/React.createElement(IconFont, {
|
|
538
538
|
type: "zhuanfa",
|
|
@@ -572,9 +572,9 @@ var PageInfo = function PageInfo(props) {
|
|
|
572
572
|
ellipsis: true,
|
|
573
573
|
width: 198,
|
|
574
574
|
render: function render(describe, record, index) {
|
|
575
|
-
if (isEdit) {
|
|
575
|
+
if (isEdit || isSelect) {
|
|
576
576
|
return /*#__PURE__*/React.createElement(BizEditText, {
|
|
577
|
-
canEdit: isEdit,
|
|
577
|
+
canEdit: isEdit || isSelect,
|
|
578
578
|
value: describe,
|
|
579
579
|
max: 20,
|
|
580
580
|
isHideIcon: true,
|
|
@@ -608,7 +608,7 @@ var PageInfo = function PageInfo(props) {
|
|
|
608
608
|
}
|
|
609
609
|
})) : (/*#__PURE__*/React.createElement(IconFont, {
|
|
610
610
|
type: "tianjiatupian"
|
|
611
|
-
})), isEdit && (/*#__PURE__*/React.createElement("div", {
|
|
611
|
+
})), (isEdit || isSelect) && (/*#__PURE__*/React.createElement("div", {
|
|
612
612
|
className: "".concat(classPrefix, "-content-img-select-btn"),
|
|
613
613
|
onClick: function onClick() {
|
|
614
614
|
if (!imgPath) {
|
|
@@ -639,7 +639,7 @@ var PageInfo = function PageInfo(props) {
|
|
|
639
639
|
title: '昨日',
|
|
640
640
|
dataIndex: 'time1',
|
|
641
641
|
key: 'time1',
|
|
642
|
-
width:
|
|
642
|
+
width: 80,
|
|
643
643
|
render: function render(value) {
|
|
644
644
|
return /*#__PURE__*/React.createElement("div", {
|
|
645
645
|
className: "".concat(classPrefix, "-content-select")
|
|
@@ -649,7 +649,7 @@ var PageInfo = function PageInfo(props) {
|
|
|
649
649
|
title: '近7天',
|
|
650
650
|
dataIndex: 'time1',
|
|
651
651
|
key: 'time1',
|
|
652
|
-
width:
|
|
652
|
+
width: 80,
|
|
653
653
|
render: function render(value) {
|
|
654
654
|
return /*#__PURE__*/React.createElement("div", {
|
|
655
655
|
className: "".concat(classPrefix, "-content-select")
|
|
@@ -659,14 +659,14 @@ var PageInfo = function PageInfo(props) {
|
|
|
659
659
|
title: '近30天',
|
|
660
660
|
dataIndex: 'time1',
|
|
661
661
|
key: 'time1',
|
|
662
|
-
width:
|
|
662
|
+
width: 80,
|
|
663
663
|
render: function render(value) {
|
|
664
664
|
return /*#__PURE__*/React.createElement("div", {
|
|
665
665
|
className: "".concat(classPrefix, "-content-select")
|
|
666
666
|
}, value || value === 0 ? value : '-');
|
|
667
667
|
}
|
|
668
668
|
}]
|
|
669
|
-
}], _toConsumableArray(isEdit ? [{
|
|
669
|
+
}], _toConsumableArray(isEdit || isSelect ? [{
|
|
670
670
|
title: '操作',
|
|
671
671
|
dataIndex: 'set',
|
|
672
672
|
key: 'set',
|
|
@@ -694,10 +694,10 @@ var PageInfo = function PageInfo(props) {
|
|
|
694
694
|
}
|
|
695
695
|
}]));
|
|
696
696
|
var DealDom = function DealDom(props) {
|
|
697
|
-
var
|
|
698
|
-
|
|
699
|
-
open =
|
|
700
|
-
setOpen =
|
|
697
|
+
var _useState59 = useState(false),
|
|
698
|
+
_useState60 = _slicedToArray(_useState59, 2),
|
|
699
|
+
open = _useState60[0],
|
|
700
|
+
setOpen = _useState60[1];
|
|
701
701
|
var handleOpenChange = function handleOpenChange(newOpen) {
|
|
702
702
|
setOpen(newOpen);
|
|
703
703
|
};
|
|
@@ -744,10 +744,10 @@ var PageInfo = function PageInfo(props) {
|
|
|
744
744
|
}
|
|
745
745
|
}, "\u79FB\u9664"));
|
|
746
746
|
};
|
|
747
|
-
var
|
|
748
|
-
|
|
749
|
-
scrollY =
|
|
750
|
-
setScrollY =
|
|
747
|
+
var _useState61 = useState(''),
|
|
748
|
+
_useState62 = _slicedToArray(_useState61, 2),
|
|
749
|
+
scrollY = _useState62[0],
|
|
750
|
+
setScrollY = _useState62[1];
|
|
751
751
|
//页面加载完成后才能获取到对应的元素及其位置
|
|
752
752
|
var onClose = function onClose() {
|
|
753
753
|
if (isChange) {
|
|
@@ -851,28 +851,30 @@ var PageInfo = function PageInfo(props) {
|
|
|
851
851
|
};
|
|
852
852
|
var addNewEvent = function addNewEvent() {
|
|
853
853
|
//新埋点管理
|
|
854
|
-
|
|
855
|
-
|
|
856
|
-
|
|
857
|
-
|
|
858
|
-
|
|
859
|
-
|
|
860
|
-
|
|
861
|
-
|
|
862
|
-
|
|
863
|
-
|
|
864
|
-
|
|
865
|
-
|
|
866
|
-
|
|
867
|
-
|
|
868
|
-
setShowIndex(
|
|
869
|
-
|
|
854
|
+
if (isSelect) {
|
|
855
|
+
setMetaData(undefined);
|
|
856
|
+
setCreateMetaShow(true);
|
|
857
|
+
} else {
|
|
858
|
+
//老埋点
|
|
859
|
+
setEventAttrList([{
|
|
860
|
+
eventId: void 0,
|
|
861
|
+
eventName: '',
|
|
862
|
+
describe: '',
|
|
863
|
+
pointSelect: '',
|
|
864
|
+
imgPath: '',
|
|
865
|
+
index: eventAttrList.length,
|
|
866
|
+
key: new Date() * 1
|
|
867
|
+
}].concat(_toConsumableArray(eventAttrList)));
|
|
868
|
+
setShowIndex(eventAttrList.length);
|
|
869
|
+
setTimeout(function () {
|
|
870
|
+
setShowIndex(void 0);
|
|
871
|
+
}, 3000);
|
|
872
|
+
}
|
|
870
873
|
};
|
|
871
874
|
//设置新添加的元事件
|
|
872
875
|
var onEventSet = function onEventSet(data, type) {
|
|
873
876
|
if (type == 'create') {
|
|
874
877
|
setEventAttrList([{
|
|
875
|
-
eventId: data.eventId,
|
|
876
878
|
eventName: data.eventName,
|
|
877
879
|
triggeringOccasion: data.triggeringOccasion,
|
|
878
880
|
aliasName: data.aliasName,
|
|
@@ -927,7 +929,7 @@ var PageInfo = function PageInfo(props) {
|
|
|
927
929
|
}, "\u53D6\u6D88"), /*#__PURE__*/React.createElement(Button, {
|
|
928
930
|
type: 'primary',
|
|
929
931
|
onClick: submit
|
|
930
|
-
}, "\u786E\u5B9A"))) : props.pageData && props.pageData.currentPointVersion !== '全部' ? null : (/*#__PURE__*/React.createElement("div", null, /*#__PURE__*/React.createElement(Button, {
|
|
932
|
+
}, "\u786E\u5B9A"))) : props.pageData && props.pageData.currentPointVersion !== '全部' ? null : (/*#__PURE__*/React.createElement("div", null, !isSelect && (/*#__PURE__*/React.createElement(Button, {
|
|
931
933
|
disabled: !authority[1724922835],
|
|
932
934
|
shape: "round",
|
|
933
935
|
className: "button bianji1-button",
|
|
@@ -939,7 +941,7 @@ var PageInfo = function PageInfo(props) {
|
|
|
939
941
|
style: {
|
|
940
942
|
marginRight: 8
|
|
941
943
|
}
|
|
942
|
-
}), "\u7F16\u8F91")))), /*#__PURE__*/React.createElement("div", {
|
|
944
|
+
}), "\u7F16\u8F91"))))), /*#__PURE__*/React.createElement("div", {
|
|
943
945
|
className: "".concat(classPrefix, "-content")
|
|
944
946
|
}, /*#__PURE__*/React.createElement("div", {
|
|
945
947
|
className: "".concat(classPrefix, "-info")
|
|
@@ -1056,8 +1058,7 @@ var PageInfo = function PageInfo(props) {
|
|
|
1056
1058
|
return setEventKey(e.target.value);
|
|
1057
1059
|
},
|
|
1058
1060
|
placeholder: '请输入埋点事件名称搜索'
|
|
1059
|
-
}), isEdit && (/*#__PURE__*/React.createElement(Button, {
|
|
1060
|
-
disabled: !isEdit,
|
|
1061
|
+
}), (isEdit || isSelect) && (/*#__PURE__*/React.createElement(Button, {
|
|
1061
1062
|
shape: "round",
|
|
1062
1063
|
className: "button",
|
|
1063
1064
|
onClick: addNewEvent
|
|
@@ -1066,7 +1067,18 @@ var PageInfo = function PageInfo(props) {
|
|
|
1066
1067
|
style: {
|
|
1067
1068
|
marginRight: 8
|
|
1068
1069
|
}
|
|
1069
|
-
}), "\u6DFB\u52A0\u9875\u9762\u57CB\u70B9")))), /*#__PURE__*/React.createElement(
|
|
1070
|
+
}), "\u6DFB\u52A0\u9875\u9762\u57CB\u70B9")))), !props.isSelect && !isEdit && (/*#__PURE__*/React.createElement("div", {
|
|
1071
|
+
className: "".concat(classPrefix, "-info")
|
|
1072
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
1073
|
+
className: "".concat(classPrefix, "-info-nav")
|
|
1074
|
+
}, navList.map(function (res) {
|
|
1075
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
1076
|
+
className: "".concat(classPrefix, "-info-nav-item ").concat(navIndex == res.value ? "".concat(classPrefix, "-info-nav-itemActive") : ''),
|
|
1077
|
+
onClick: function onClick() {
|
|
1078
|
+
setNavIndex(res.value);
|
|
1079
|
+
}
|
|
1080
|
+
}, res.label, ": ", res.sum);
|
|
1081
|
+
})))), /*#__PURE__*/React.createElement(Table, {
|
|
1070
1082
|
className: "".concat(classPrefix, "-table"),
|
|
1071
1083
|
rowClassName: function rowClassName(record) {
|
|
1072
1084
|
return record.index === showIndex ? 'isShowF2F3F4' : '';
|
|
@@ -1120,7 +1132,7 @@ var PageInfo = function PageInfo(props) {
|
|
|
1120
1132
|
onChange: setCircleImg
|
|
1121
1133
|
}))), /*#__PURE__*/React.createElement(Drawer, {
|
|
1122
1134
|
className: "".concat(classPrefix, "-drawer"),
|
|
1123
|
-
width: '
|
|
1135
|
+
width: '65%',
|
|
1124
1136
|
title: /*#__PURE__*/React.createElement("div", null, "\u57CB\u70B9\u65E5\u5FD7"),
|
|
1125
1137
|
placement: "right",
|
|
1126
1138
|
destroyOnClose: true,
|
|
@@ -1129,12 +1141,12 @@ var PageInfo = function PageInfo(props) {
|
|
|
1129
1141
|
},
|
|
1130
1142
|
open: recordShow
|
|
1131
1143
|
}, /*#__PURE__*/React.createElement(RecordDom, {
|
|
1132
|
-
|
|
1144
|
+
id: eventData.id,
|
|
1133
1145
|
eventName: eventData.eventName
|
|
1134
1146
|
})), /*#__PURE__*/React.createElement(CreateMetaDrawer, {
|
|
1135
1147
|
isShow: createMetaShow,
|
|
1136
1148
|
data: metaData,
|
|
1137
|
-
isEdit:
|
|
1149
|
+
isEdit: true,
|
|
1138
1150
|
onSubmit: function onSubmit(event, type) {
|
|
1139
1151
|
setCreateMetaShow(false);
|
|
1140
1152
|
onEventSet(event, type);
|
|
@@ -304,14 +304,14 @@ var record = function record(props) {
|
|
|
304
304
|
};
|
|
305
305
|
useEffect(function () {
|
|
306
306
|
getEventLog();
|
|
307
|
-
}, [props.
|
|
307
|
+
}, [props.id]);
|
|
308
308
|
//埋点日志查询
|
|
309
309
|
var getEventLog = function getEventLog() {
|
|
310
310
|
request(apis.getEventLog, {
|
|
311
311
|
method: 'post',
|
|
312
312
|
data: {
|
|
313
313
|
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
314
|
-
|
|
314
|
+
pointId: props.id
|
|
315
315
|
}
|
|
316
316
|
}).then(function (res) {
|
|
317
317
|
if (res && res.code === '100000') {
|
|
@@ -336,7 +336,7 @@ var record = function record(props) {
|
|
|
336
336
|
var list = [];
|
|
337
337
|
res.data.map(function (item) {
|
|
338
338
|
if (nameItem.name == item.logDesc) {
|
|
339
|
-
if (nameItem.name
|
|
339
|
+
if (nameItem.name !== '属性修改') {
|
|
340
340
|
var valueList = [];
|
|
341
341
|
for (var key in item.logDetail) {
|
|
342
342
|
valueList.push({
|
|
@@ -442,7 +442,7 @@ var record = function record(props) {
|
|
|
442
442
|
className: "".concat(classPrefix, "-record-content-timeList-nav-icon"),
|
|
443
443
|
style: {
|
|
444
444
|
backgroundColor: res.iconColor,
|
|
445
|
-
|
|
445
|
+
boxShadow: '0 0 0 5px' + res.iconColor + '50'
|
|
446
446
|
}
|
|
447
447
|
}), /*#__PURE__*/React.createElement("div", {
|
|
448
448
|
className: "".concat(classPrefix, "-record-content-timeList-nav-name")
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-settings",
|
|
3
|
-
"version": "2.0.0-zhongyuan.
|
|
3
|
+
"version": "2.0.0-zhongyuan.37",
|
|
4
4
|
"private": false,
|
|
5
5
|
"module": "es/index.js",
|
|
6
6
|
"typings": "es/index.d.ts",
|
|
@@ -67,7 +67,7 @@
|
|
|
67
67
|
"publishConfig": {
|
|
68
68
|
"access": "public"
|
|
69
69
|
},
|
|
70
|
-
"gitHead": "
|
|
70
|
+
"gitHead": "a667f46efb6a9e7877b79b29b3d15cc5eb53a53e",
|
|
71
71
|
"gitHooks": {
|
|
72
72
|
"pre-commit": "lint-staged"
|
|
73
73
|
}
|