@zgfe/modules-dm 1.0.6 → 1.0.8
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.
|
@@ -93,9 +93,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
93
93
|
});
|
|
94
94
|
setUserAttrData(afterData);
|
|
95
95
|
setLoading(false);
|
|
96
|
-
}).catch(function (err) {
|
|
97
|
-
console.error('查询列表失败', err);
|
|
98
|
-
}).finally(function () {});
|
|
96
|
+
}).catch(function (err) {}).finally(function () {});
|
|
99
97
|
};
|
|
100
98
|
|
|
101
99
|
useEffect(function () {
|
|
@@ -147,13 +145,13 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
147
145
|
|
|
148
146
|
if (source == 'user') {
|
|
149
147
|
queryUserPropMeta();
|
|
148
|
+
} else {
|
|
149
|
+
props.Refresh();
|
|
150
150
|
}
|
|
151
151
|
|
|
152
152
|
state.updateEventMetas && state.updateEventMetas(); // 更新store
|
|
153
153
|
}
|
|
154
|
-
}).catch(function (err) {
|
|
155
|
-
message.error('修改失败');
|
|
156
|
-
}).finally(function () {});
|
|
154
|
+
}).catch(function (err) {}).finally(function () {});
|
|
157
155
|
}; // 表格列
|
|
158
156
|
|
|
159
157
|
|
|
@@ -374,9 +372,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
374
372
|
setBatchId(res.batch_id);
|
|
375
373
|
setAttrExcelData(res.values);
|
|
376
374
|
}
|
|
377
|
-
}).catch(function (err) {
|
|
378
|
-
message.error('上传失败');
|
|
379
|
-
});
|
|
375
|
+
}).catch(function (err) {});
|
|
380
376
|
return false;
|
|
381
377
|
}
|
|
382
378
|
}; // 清空属性值别名excel数据
|
|
@@ -408,9 +404,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
|
|
|
408
404
|
message.success('操作成功');
|
|
409
405
|
setAttrAliasNameShow(false);
|
|
410
406
|
}
|
|
411
|
-
}).catch(function (err) {
|
|
412
|
-
message.error('操作失败');
|
|
413
|
-
});
|
|
407
|
+
}).catch(function (err) {});
|
|
414
408
|
}; // 获取已设置的属性值别名列表
|
|
415
409
|
|
|
416
410
|
|
|
@@ -149,9 +149,7 @@ var CollectionEventList = function CollectionEventList(props) {
|
|
|
149
149
|
}).then(function (res) {
|
|
150
150
|
if (!res) throw new Error();
|
|
151
151
|
dataFinish(res.data, refreshFlag);
|
|
152
|
-
}).catch(function (err) {
|
|
153
|
-
console.error('查询列表失败', err);
|
|
154
|
-
}).finally(function () {});
|
|
152
|
+
}).catch(function (err) {}).finally(function () {});
|
|
155
153
|
}; // 初始化列表
|
|
156
154
|
|
|
157
155
|
|
|
@@ -193,9 +191,7 @@ var CollectionEventList = function CollectionEventList(props) {
|
|
|
193
191
|
message.success('创建成功');
|
|
194
192
|
queryList();
|
|
195
193
|
}
|
|
196
|
-
}).catch(function (err) {
|
|
197
|
-
message.error('创建失败');
|
|
198
|
-
}).finally(function () {
|
|
194
|
+
}).catch(function (err) {}).finally(function () {
|
|
199
195
|
setEventNameInput('');
|
|
200
196
|
setEventNameShow(false);
|
|
201
197
|
});
|
|
@@ -530,7 +526,8 @@ var CollectionEventList = function CollectionEventList(props) {
|
|
|
530
526
|
isOpen: props.isOpen,
|
|
531
527
|
queryPlanData: props.queryPlanData,
|
|
532
528
|
eventAttrsData: eventAttrsData,
|
|
533
|
-
source: "event"
|
|
529
|
+
source: "event",
|
|
530
|
+
Refresh: refreshHandle
|
|
534
531
|
})), /*#__PURE__*/React.createElement(Modal, {
|
|
535
532
|
title: "\u521B\u5EFA\u5206\u7EC4",
|
|
536
533
|
className: "creact-group",
|
|
@@ -68,9 +68,7 @@ var TablePlus = function TablePlus(props) {
|
|
|
68
68
|
props.Refresh();
|
|
69
69
|
state.updateEventMetas && state.updateEventMetas(); // 更新store
|
|
70
70
|
}
|
|
71
|
-
}).catch(function (err) {
|
|
72
|
-
message.error('修改失败');
|
|
73
|
-
}).finally(function () {
|
|
71
|
+
}).catch(function (err) {}).finally(function () {
|
|
74
72
|
setAliasFocusData('');
|
|
75
73
|
});
|
|
76
74
|
}; // 表格class处理
|
|
@@ -123,9 +121,7 @@ var TablePlus = function TablePlus(props) {
|
|
|
123
121
|
message.success('修改成功');
|
|
124
122
|
props.Refresh();
|
|
125
123
|
}
|
|
126
|
-
}).catch(function (err) {
|
|
127
|
-
message.error('修改失败');
|
|
128
|
-
}).finally(function () {
|
|
124
|
+
}).catch(function (err) {}).finally(function () {
|
|
129
125
|
setEventNameShow(false);
|
|
130
126
|
});
|
|
131
127
|
}; // 删除分组
|
|
@@ -155,9 +151,7 @@ var TablePlus = function TablePlus(props) {
|
|
|
155
151
|
message.success('删除成功');
|
|
156
152
|
props.Refresh();
|
|
157
153
|
}
|
|
158
|
-
}).catch(function (err) {
|
|
159
|
-
message.error('删除失败');
|
|
160
|
-
}).finally(function () {});
|
|
154
|
+
}).catch(function (err) {}).finally(function () {});
|
|
161
155
|
}
|
|
162
156
|
});
|
|
163
157
|
}; // 删除事件
|
|
@@ -183,9 +177,7 @@ var TablePlus = function TablePlus(props) {
|
|
|
183
177
|
message.success('删除成功');
|
|
184
178
|
props.Refresh();
|
|
185
179
|
}
|
|
186
|
-
}).catch(function (err) {
|
|
187
|
-
message.error('删除失败');
|
|
188
|
-
}).finally(function () {});
|
|
180
|
+
}).catch(function (err) {}).finally(function () {});
|
|
189
181
|
}
|
|
190
182
|
});
|
|
191
183
|
}; // 修改:显示状态 | 采集状态 | 收藏&取消收藏
|
|
@@ -224,9 +216,7 @@ var TablePlus = function TablePlus(props) {
|
|
|
224
216
|
message.success('修改成功');
|
|
225
217
|
props.Refresh();
|
|
226
218
|
state.updateEventMetas && state.updateEventMetas(); // 更新store
|
|
227
|
-
}).catch(function (err) {
|
|
228
|
-
message.error('修改失败');
|
|
229
|
-
}).finally(function () {});
|
|
219
|
+
}).catch(function (err) {}).finally(function () {});
|
|
230
220
|
}; // 复制事件名称
|
|
231
221
|
|
|
232
222
|
|
|
@@ -304,9 +294,7 @@ var TablePlus = function TablePlus(props) {
|
|
|
304
294
|
delete _groupCheckedData[eventGroupId];
|
|
305
295
|
setGroupCheckedData({});
|
|
306
296
|
}
|
|
307
|
-
}).catch(function (err) {
|
|
308
|
-
message.error('失败');
|
|
309
|
-
}).finally(function () {
|
|
297
|
+
}).catch(function (err) {}).finally(function () {
|
|
310
298
|
props.Refresh();
|
|
311
299
|
});
|
|
312
300
|
};
|
|
@@ -64,9 +64,7 @@ var AddPlan = function AddPlan(props) {
|
|
|
64
64
|
}).then(function (res) {
|
|
65
65
|
// console.log('获取详情', res.data);
|
|
66
66
|
tableDataHandle(res.data, res.data.propPlanAndRealDataDiff, 'detail');
|
|
67
|
-
}).catch(function (err) {
|
|
68
|
-
message.error('获取详情数据失败');
|
|
69
|
-
}).finally(function () {
|
|
67
|
+
}).catch(function (err) {}).finally(function () {
|
|
70
68
|
setSpinning(false);
|
|
71
69
|
});
|
|
72
70
|
}
|
|
@@ -492,9 +490,7 @@ var AddPlan = function AddPlan(props) {
|
|
|
492
490
|
message.success('保存成功');
|
|
493
491
|
closeDrawer('save');
|
|
494
492
|
}
|
|
495
|
-
}).catch(function (err) {
|
|
496
|
-
message.error('保存失败');
|
|
497
|
-
});
|
|
493
|
+
}).catch(function (err) {});
|
|
498
494
|
}; // 存储选中的keys
|
|
499
495
|
|
|
500
496
|
|
|
@@ -58,9 +58,7 @@ var PlanList = function PlanList(props) {
|
|
|
58
58
|
}).then(function (res) {
|
|
59
59
|
message.success('删除成功');
|
|
60
60
|
queryList();
|
|
61
|
-
}).catch(function (err) {
|
|
62
|
-
message.error('删除失败');
|
|
63
|
-
}).finally(function () {});
|
|
61
|
+
}).catch(function (err) {}).finally(function () {});
|
|
64
62
|
}
|
|
65
63
|
});
|
|
66
64
|
}; // 时间戳转换
|
|
@@ -128,9 +126,7 @@ var PlanList = function PlanList(props) {
|
|
|
128
126
|
}
|
|
129
127
|
}).then(function (res) {
|
|
130
128
|
res.data && res.data.planList && setListData(res.data.planList);
|
|
131
|
-
}).catch(function (err) {
|
|
132
|
-
console.error('查询列表失败', err);
|
|
133
|
-
}).finally(function () {});
|
|
129
|
+
}).catch(function (err) {}).finally(function () {});
|
|
134
130
|
};
|
|
135
131
|
|
|
136
132
|
useEffect(function () {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-dm",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.8",
|
|
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": "a83c525d974ce83017af5406cfd7d1bde6fd50e1",
|
|
57
57
|
"gitHooks": {
|
|
58
58
|
"pre-commit": "lint-staged"
|
|
59
59
|
}
|