@zgfe/modules-dm 1.0.2-y.3 → 1.0.2

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
 
@@ -234,7 +234,6 @@ var CollectionEventList = function CollectionEventList(props) {
234
234
 
235
235
 
236
236
  useEffect(function () {
237
- // console.log('filterTypeData', filterTypeData);
238
237
  // 判断不同type的筛选条件
239
238
  var _judgeFun = function _judgeFun(item, filterItem) {
240
239
  switch (filterItem.type) {
@@ -119,14 +119,15 @@ var TablePlus = function TablePlus(props) {
119
119
  platform: 0
120
120
  }
121
121
  }).then(function (res) {
122
- if (res) {
122
+ if (res.code == '00') {
123
123
  message.success('修改成功');
124
- setEventNameShow(false);
125
124
  props.Refresh();
126
125
  }
127
126
  }).catch(function (err) {
128
127
  message.error('修改失败');
129
- }).finally(function () {});
128
+ }).finally(function () {
129
+ setEventNameShow(false);
130
+ });
130
131
  }; // 删除分组
131
132
 
132
133
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-dm",
3
- "version": "1.0.2-y.3",
3
+ "version": "1.0.2",
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": "91dcdf96b6e035082def9a2070b8fbf05cf9bfe4",
56
+ "gitHead": "cd9fd2e3960cec9cfa728fcbdad0d4da60809a2d",
57
57
  "gitHooks": {
58
58
  "pre-commit": "lint-staged"
59
59
  }