@zgfe/modules-dm 1.0.2-y.2 → 1.0.2-y.4
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.
|
@@ -189,15 +189,15 @@ var CollectionEventList = function CollectionEventList(props) {
|
|
|
189
189
|
platform: 0
|
|
190
190
|
}
|
|
191
191
|
}).then(function (res) {
|
|
192
|
-
if (res) {
|
|
192
|
+
if (res.code == '00') {
|
|
193
193
|
message.success('创建成功');
|
|
194
|
-
setEventNameShow(false);
|
|
195
194
|
queryList();
|
|
196
195
|
}
|
|
197
196
|
}).catch(function (err) {
|
|
198
197
|
message.error('创建失败');
|
|
199
198
|
}).finally(function () {
|
|
200
199
|
setEventNameInput('');
|
|
200
|
+
setEventNameShow(false);
|
|
201
201
|
});
|
|
202
202
|
}; // 筛选:显示状态 | 采集状态
|
|
203
203
|
|
|
@@ -25,8 +25,7 @@ var DataCollection = function DataCollection(props) {
|
|
|
25
25
|
isDemo = _useContext.isDemo;
|
|
26
26
|
|
|
27
27
|
var classPrefix = 'data-collection'; // const { updateEventMetas } = props;
|
|
28
|
-
|
|
29
|
-
console.log('①埋点方案', currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId, getAppID(currentApp));
|
|
28
|
+
// console.log('①埋点方案', currentApp?.appId, getAppID(currentApp));
|
|
30
29
|
|
|
31
30
|
var _useState = useState(1),
|
|
32
31
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -105,6 +105,11 @@ var TablePlus = function TablePlus(props) {
|
|
|
105
105
|
|
|
106
106
|
|
|
107
107
|
var eventNameEdit = function eventNameEdit() {
|
|
108
|
+
if (eventNameInput.length > 20) {
|
|
109
|
+
message.error('名称不可超过20字符');
|
|
110
|
+
return;
|
|
111
|
+
}
|
|
112
|
+
|
|
108
113
|
request(apis.upsertEventGroup, {
|
|
109
114
|
method: 'post',
|
|
110
115
|
data: {
|
|
@@ -114,14 +119,15 @@ var TablePlus = function TablePlus(props) {
|
|
|
114
119
|
platform: 0
|
|
115
120
|
}
|
|
116
121
|
}).then(function (res) {
|
|
117
|
-
if (res) {
|
|
122
|
+
if (res.code == '00') {
|
|
118
123
|
message.success('修改成功');
|
|
119
|
-
setEventNameShow(false);
|
|
120
124
|
props.Refresh();
|
|
121
125
|
}
|
|
122
126
|
}).catch(function (err) {
|
|
123
127
|
message.error('修改失败');
|
|
124
|
-
}).finally(function () {
|
|
128
|
+
}).finally(function () {
|
|
129
|
+
setEventNameShow(false);
|
|
130
|
+
});
|
|
125
131
|
}; // 删除分组
|
|
126
132
|
|
|
127
133
|
|
|
@@ -25,9 +25,9 @@ var PlanList = function PlanList(props) {
|
|
|
25
25
|
|
|
26
26
|
var _useContext = useContext(BizGlobalDataContext),
|
|
27
27
|
currentApp = _useContext.currentApp,
|
|
28
|
-
isDemo = _useContext.isDemo;
|
|
28
|
+
isDemo = _useContext.isDemo; // console.log('②埋点方案管理', currentApp?.appId, getAppID(currentApp));
|
|
29
|
+
// 查看方案
|
|
29
30
|
|
|
30
|
-
console.log('②埋点方案管理', currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId, getAppID(currentApp)); // 查看方案
|
|
31
31
|
|
|
32
32
|
var tableSee = function tableSee(data) {
|
|
33
33
|
setDetailId(data.id);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-dm",
|
|
3
|
-
"version": "1.0.2-y.
|
|
3
|
+
"version": "1.0.2-y.4",
|
|
4
4
|
"module": "es/index.js",
|
|
5
5
|
"typings": "es/index.d.ts",
|
|
6
6
|
"license": "ISC",
|
|
@@ -53,7 +53,7 @@
|
|
|
53
53
|
"umi-request": "^1.4.0",
|
|
54
54
|
"yorkie": "^2.0.0"
|
|
55
55
|
},
|
|
56
|
-
"gitHead": "
|
|
56
|
+
"gitHead": "13ed362169422636e37311fa754f4d80b266d8f3",
|
|
57
57
|
"gitHooks": {
|
|
58
58
|
"pre-commit": "lint-staged"
|
|
59
59
|
}
|