@zgfe/modules-dm 1.0.6 → 1.0.7

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 () {
@@ -151,9 +149,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
151
149
 
152
150
  state.updateEventMetas && state.updateEventMetas(); // 更新store
153
151
  }
154
- }).catch(function (err) {
155
- message.error('修改失败');
156
- }).finally(function () {});
152
+ }).catch(function (err) {}).finally(function () {});
157
153
  }; // 表格列
158
154
 
159
155
 
@@ -374,9 +370,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
374
370
  setBatchId(res.batch_id);
375
371
  setAttrExcelData(res.values);
376
372
  }
377
- }).catch(function (err) {
378
- message.error('上传失败');
379
- });
373
+ }).catch(function (err) {});
380
374
  return false;
381
375
  }
382
376
  }; // 清空属性值别名excel数据
@@ -408,9 +402,7 @@ var CollectionAttributeList = function CollectionAttributeList(props) {
408
402
  message.success('操作成功');
409
403
  setAttrAliasNameShow(false);
410
404
  }
411
- }).catch(function (err) {
412
- message.error('操作失败');
413
- });
405
+ }).catch(function (err) {});
414
406
  }; // 获取已设置的属性值别名列表
415
407
 
416
408
 
@@ -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
  });
@@ -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.6",
3
+ "version": "1.0.7",
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": "0b74d7c11e9ee7ed65f5dbf1f12bed9c55ce4e50",
56
+ "gitHead": "d675516811c6d4e9edd92f37f1c3b6c10114fd2d",
57
57
  "gitHooks": {
58
58
  "pre-commit": "lint-staged"
59
59
  }