eoss 0.1.0-alpha.37 → 0.1.0-alpha.39

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.
Files changed (64) hide show
  1. package/lib/account-login.js +3729 -3725
  2. package/lib/ca-login.js +18 -8
  3. package/lib/checkbox-group.js +4329 -4329
  4. package/lib/data-table.js +3582 -3584
  5. package/lib/email-login.js +3525 -3522
  6. package/lib/eoss.common.js +468 -352
  7. package/lib/flow.js +27361 -27357
  8. package/lib/flows.js +5612 -5612
  9. package/lib/form.js +8 -8
  10. package/lib/index.js +1 -1
  11. package/lib/login.js +5982 -5978
  12. package/lib/lowcode-view.js +5263 -5258
  13. package/lib/lowcode.js +16885 -16884
  14. package/lib/main.js +129 -61
  15. package/lib/menu-item-group.js +4 -4
  16. package/lib/menu.js +10 -10
  17. package/lib/phone-login.js +3542 -3538
  18. package/lib/process-config.js +4105 -4080
  19. package/lib/process-module.js +3555 -3541
  20. package/lib/process-rule.js +4707 -4688
  21. package/lib/qrcode-login.js +3290 -3290
  22. package/lib/radio-group.js +3466 -3466
  23. package/lib/retrial-auth.js +3516 -3516
  24. package/lib/select.js +9354 -9354
  25. package/lib/selector-panel.js +6280 -6280
  26. package/lib/selector.js +5320 -5320
  27. package/lib/submenu.js +4 -4
  28. package/lib/table.js +16094 -16094
  29. package/lib/tips.js +3309 -3309
  30. package/lib/tree.js +6666 -6661
  31. package/lib/upload.js +7994 -7989
  32. package/lib/wujie.js +9 -3
  33. package/package.json +1 -1
  34. package/packages/account-login/src/account-login.vue +9 -15
  35. package/packages/ca-login/src/ca-login.vue +5 -6
  36. package/packages/data-table/src/data-table.vue +1 -3
  37. package/packages/email-login/src/email-login.vue +10 -11
  38. package/packages/flow/src/form.vue +2 -2
  39. package/packages/login/src/download.vue +2 -2
  40. package/packages/login/src/login.vue +3 -4
  41. package/packages/login/src/resetPassword.vue +3 -3
  42. package/packages/lowcode/src/attribute.vue +10 -9
  43. package/packages/lowcode-view/src/view.vue +3 -2
  44. package/packages/main/src/components/message.vue +7 -7
  45. package/packages/main/src/components/notice.vue +3 -2
  46. package/packages/main/src/components/pages.vue +63 -6
  47. package/packages/main/src/components/router-page.vue +6 -1
  48. package/packages/main/src/minxs.js +14 -10
  49. package/packages/menu/src/menu.vue +1 -1
  50. package/packages/menu/src/mixins.js +4 -4
  51. package/packages/phone-login/src/phone-login.vue +4 -4
  52. package/packages/process-config/src/FormList.vue +14 -8
  53. package/packages/process-config/src/NodeConfig.vue +50 -37
  54. package/packages/process-config/src/NodeForm.vue +37 -32
  55. package/packages/process-config/src/main.vue +50 -37
  56. package/packages/process-module/src/FormList.vue +16 -11
  57. package/packages/process-module/src/main.vue +52 -39
  58. package/packages/process-rule/src/FormList.vue +120 -105
  59. package/packages/process-rule/src/companyReportDetail.vue +13 -8
  60. package/packages/process-rule/src/main.vue +71 -52
  61. package/packages/tree/src/tree.vue +6 -5
  62. package/packages/upload/src/index.vue +3 -2
  63. package/packages/wujie/src/wujie.vue +7 -1
  64. package/src/index.js +1 -1
@@ -1391,13 +1391,13 @@ export default {
1391
1391
  this.setTips(this.business);
1392
1392
  this.setTips(this.systems);
1393
1393
  } else {
1394
- this.$message.error('未分配应用菜单权限,请联系管理员!');
1394
+ Message.error('未分配应用菜单权限,请联系管理员!');
1395
1395
  }
1396
1396
  this.getMenus(loadingInstance);
1397
1397
  } else {
1398
1398
  loadingInstance.close();
1399
1399
  let msg = res.msg || '系统错误,请联系管理员!';
1400
- this.$message.error(msg);
1400
+ Message.error(msg);
1401
1401
  }
1402
1402
  })
1403
1403
  .catch(() => {
@@ -1423,11 +1423,11 @@ export default {
1423
1423
  this.menus = res.results;
1424
1424
  this.renderMenus(this.menus);
1425
1425
  } else {
1426
- this.$message.error('未分配菜单权限,请联系管理员!');
1426
+ Message.error('未分配菜单权限,请联系管理员!');
1427
1427
  }
1428
1428
  } else {
1429
1429
  let msg = res.msg || '系统错误,请联系管理员!';
1430
- this.$message.error(msg);
1430
+ Message.error(msg);
1431
1431
  }
1432
1432
  })
1433
1433
  .catch(() => {
@@ -1479,11 +1479,11 @@ export default {
1479
1479
  }
1480
1480
  } else {
1481
1481
  let msg = res.msg || '系统错误,请联系管理员!';
1482
- this.$message.error(msg);
1482
+ Message.error(msg);
1483
1483
  }
1484
1484
  })
1485
1485
  .catch(() => {
1486
- this.$message.error('系统错误,请联系管理员!');
1486
+ Message.error('系统错误,请联系管理员!');
1487
1487
  });
1488
1488
  },
1489
1489
  /**
@@ -1585,7 +1585,7 @@ export default {
1585
1585
  } else {
1586
1586
  this.subMenus = null;
1587
1587
  this.showMenu = false;
1588
- this.$message.error('未分配菜单权限,请联系管理员!');
1588
+ Message.error('未分配菜单权限,请联系管理员!');
1589
1589
  }
1590
1590
  } else {
1591
1591
  let subMenus = this.getMenu(this.menus, this.appCode, 'appCode');
@@ -1609,7 +1609,7 @@ export default {
1609
1609
  } else {
1610
1610
  this.subMenus = null;
1611
1611
  this.showMenu = false;
1612
- this.$message.error('未分配菜单权限,请联系管理员!');
1612
+ Message.error('未分配菜单权限,请联系管理员!');
1613
1613
  }
1614
1614
  }
1615
1615
  } else if (
@@ -2274,7 +2274,11 @@ export default {
2274
2274
  if (tabs[i].method === 'iframe') {
2275
2275
  this.$set(this.tabs[i], 'url', timestampUrl(this.tabs[i].url));
2276
2276
  }
2277
- if (this.tabs[i].method === 'router') {
2277
+ // router/wujie 统一走 keys 变化触发刷新(点菜单=刷新一次)
2278
+ if (
2279
+ this.tabs[i].method === 'router' ||
2280
+ this.tabs[i].method === 'wujie'
2281
+ ) {
2278
2282
  this.$set(this.tabs[i], 'keys', uuid());
2279
2283
  }
2280
2284
  this.activeName = res.id;
@@ -2660,7 +2664,7 @@ export default {
2660
2664
  }
2661
2665
  }
2662
2666
  } else {
2663
- this.$message.error('没有此菜单!');
2667
+ Message.error('没有此菜单!');
2664
2668
  }
2665
2669
  },
2666
2670
  // 监听改变菜单
@@ -40,7 +40,7 @@
40
40
  :open-icon="openIcon"
41
41
  :close-icon="closeIcon"
42
42
  :isFourthTabs="isFourthTabs"
43
- :iconColor="getColor(index)"
43
+ :iconColor="getColor(index, item)"
44
44
  :iconColors="iconColors"
45
45
  ></component>
46
46
  </slot>
@@ -49,7 +49,7 @@ export default {
49
49
  return componentType;
50
50
  },
51
51
  // 获取菜单图标颜色
52
- getColor(index) {
52
+ getColor(index, item) {
53
53
  if (!this.iconColors) {
54
54
  return undefined;
55
55
  }
@@ -58,7 +58,7 @@ export default {
58
58
  if (!this._colorCache) {
59
59
  this._colorCache = {};
60
60
  }
61
-
61
+ const isParentMenuIcon = item.children && item.children.length || (this.isFourthTabs && item.fourthTabs && item.fourthTabs.length);
62
62
  const key = Array.isArray(this.iconColors) ? `index_${index % this.iconColors.length}` : 'single_color';
63
63
 
64
64
  if (!this._colorCache[key]) {
@@ -66,7 +66,7 @@ export default {
66
66
  this._colorCache[key] = {
67
67
  '--icon-bg-color': bgColor,
68
68
  '--icon-color': '#fff',
69
- '--icon-font-size': '12px'
69
+ '--icon-font-size': isParentMenuIcon ? '16px' : '12px'
70
70
  };
71
71
  }
72
72
 
@@ -89,7 +89,7 @@ export default {
89
89
  }
90
90
 
91
91
  const { id, index, open, extendData, ...rest } = item;
92
- const openStatus = open || Boolean(extendData.openStatus);
92
+ const openStatus = open || extendData ? Boolean(extendData.openStatus) : false;
93
93
  let props;
94
94
  if (this.isFourthTabs) {
95
95
  if ((item.children && item.children.length) || (item.fourthTabs && item.fourthTabs.length)) {
@@ -70,6 +70,7 @@ import EsButton from 'eoss/packages/button';
70
70
  import EsForm from 'eoss/packages/form';
71
71
  import EsFormItem from 'eoss/packages/form-item';
72
72
  import EsInput from 'eoss/packages/input';
73
+ import Message from 'eoss/packages/message';
73
74
  /**
74
75
  * 短信验证码登录组件
75
76
  * @description 用于通过短信验证码进行登录的组件
@@ -291,10 +292,9 @@ export default {
291
292
  if (rCode === 0) {
292
293
  this.$emit('success', results);
293
294
  } else {
294
- error(res.msg || '登录失败!', () => {
295
- this.$emit('error', res);
296
- this.getImgCode();
297
- });
295
+ Message.error(res.msg || '登录失败!');
296
+ this.$emit('error', res);
297
+ this.resetCode();
298
298
  }
299
299
  })
300
300
  .catch(() => {
@@ -11,6 +11,8 @@
11
11
  import { loading } from 'eoss/src/utils/util';
12
12
  import { ajax } from 'eoss/src/utils/ajax';
13
13
  import EsForm from 'eoss/packages/form';
14
+ import Message from 'eoss/packages/message';
15
+
14
16
  export default {
15
17
  name: 'FormList',
16
18
  components: { EsForm },
@@ -169,14 +171,18 @@ export default {
169
171
  ajax({
170
172
  url: this.url,
171
173
  params: { id: this.id }
172
- }).then((res) => {
173
- loadingInstance.close();
174
- if (res.rCode === 0) {
175
- this.formData = res.results;
176
- } else {
177
- return this.$message.error(res.msg);
178
- }
179
- });
174
+ })
175
+ .then((res) => {
176
+ loadingInstance.close();
177
+ if (res.rCode === 0) {
178
+ this.formData = res.results;
179
+ } else {
180
+ Message.error(res.msg);
181
+ }
182
+ })
183
+ .catch(() => {
184
+ loadingInstance.close();
185
+ });
180
186
  }
181
187
  }
182
188
  };
@@ -40,6 +40,7 @@ import {
40
40
  import NodeForm from './NodeForm';
41
41
  import EsDataTable from 'eoss/packages/data-table';
42
42
  import EsDialog from 'eoss/packages/dialog';
43
+ import Message from 'eoss/packages/message';
43
44
  export default {
44
45
  name: 'NodeConfig',
45
46
  components: { NodeForm, EsDataTable, EsDialog },
@@ -154,19 +155,23 @@ export default {
154
155
  method: 'post',
155
156
  url: `/${this.bootName}${nodeSave}`,
156
157
  data: { ...data, mainId: this.mainid }
157
- }).then((res) => {
158
- loadingInstance.close();
159
- if (res.rCode === 0) {
160
- this.show = false;
161
- this.$message({
162
- type: 'success',
163
- message: res.msg
164
- });
165
- this.$refs.table.getData();
166
- } else {
167
- return this.$message.error(res.msg);
168
- }
169
- });
158
+ })
159
+ .then((res) => {
160
+ loadingInstance.close();
161
+ if (res.rCode === 0) {
162
+ this.show = false;
163
+ Message({
164
+ type: 'success',
165
+ message: res.msg
166
+ });
167
+ this.$refs.table.getData();
168
+ } else {
169
+ return Message.error(res.msg);
170
+ }
171
+ })
172
+ .catch(() => {
173
+ loadingInstance.close();
174
+ });
170
175
  } else if (this.title === '编辑') {
171
176
  delete data.createTime;
172
177
  delete data.updateTime;
@@ -174,39 +179,47 @@ export default {
174
179
  method: 'post',
175
180
  url: `/${this.bootName}${nodeUpdate}`,
176
181
  params: { ...data, mainId: this.mainid }
177
- }).then((res) => {
182
+ })
183
+ .then((res) => {
184
+ loadingInstance.close();
185
+ if (res.rCode === 0) {
186
+ this.show = false;
187
+ Message({
188
+ type: 'success',
189
+ message: res.msg
190
+ });
191
+ this.$refs.table.getData();
192
+ } else {
193
+ return Message.error(res.msg);
194
+ }
195
+ })
196
+ .catch(() => {
197
+ loadingInstance.close();
198
+ });
199
+ }
200
+ },
201
+ handleDelete(id) {
202
+ const loadingInstance = loading('删除中...');
203
+ ajax({
204
+ method: 'post',
205
+ url: `/${this.bootName}${nodeDeleteJson}`,
206
+ data: { id }
207
+ })
208
+ .then((res) => {
178
209
  loadingInstance.close();
179
210
  if (res.rCode === 0) {
180
- this.show = false;
181
- this.$message({
211
+ Message({
182
212
  type: 'success',
183
213
  message: res.msg
184
214
  });
185
215
  this.$refs.table.getData();
186
216
  } else {
187
- return this.$message.error(res.msg);
217
+ return Message.error(res.msg);
188
218
  }
219
+ })
220
+ .catch(() => {
221
+ loadingInstance.close();
189
222
  });
190
- }
191
- },
192
- handleDelete(id) {
193
- const loadingInstance = loading('删除中...');
194
- ajax({
195
- method: 'post',
196
- url: `/${this.bootName}${nodeDeleteJson}`,
197
- data: { id }
198
- }).then((res) => {
199
- loadingInstance.close();
200
- if (res.rCode === 0) {
201
- this.$message({
202
- type: 'success',
203
- message: res.msg
204
- });
205
- this.$refs.table.getData();
206
- } else {
207
- return this.$message.error(res.msg);
208
- }
209
- });
210
223
  }
211
224
  }
212
225
  };
@@ -11,6 +11,7 @@
11
11
  import { loading } from 'eoss/src/utils/util';
12
12
  import { ajax } from 'eoss/src/utils/ajax';
13
13
 
14
+ import Message from 'eoss/packages/message';
14
15
  import EsForm from 'eoss/packages/form';
15
16
  export default {
16
17
  name: 'FormList',
@@ -195,44 +196,48 @@ export default {
195
196
  ajax({
196
197
  url: this.url,
197
198
  params: { id: this.id }
198
- }).then((res) => {
199
- loadingInstance.close();
200
- if (res.rCode === 0) {
201
- if (res.results) {
202
- res.results.nodeIsSms = res.results.nodeIsSms
203
- ? res.results.nodeIsSms + ''
204
- : '2';
205
- this.formData = res.results;
206
- this.$set(
207
- this.formData,
208
- 'info',
209
- `注:
199
+ })
200
+ .then((res) => {
201
+ loadingInstance.close();
202
+ if (res.rCode === 0) {
203
+ if (res.results) {
204
+ res.results.nodeIsSms = res.results.nodeIsSms
205
+ ? res.results.nodeIsSms + ''
206
+ : '2';
207
+ this.formData = res.results;
208
+ this.$set(
209
+ this.formData,
210
+ 'info',
211
+ `注:
210
212
  1、需要短信通知时,在指定的时间间隔内,当前节点对同一审核用户不再发送短信
211
213
  2、起始时间以第一次接收短信的时间为准
212
214
  3、时间间隔单位为分钟,0:始终发送短信 其它正整数:间隔时间内不再接收短信`
213
- );
214
- if (res.results.specifiedCompany) {
215
- let nameArr = res.results.specifiedCompany
216
- .split(',')
217
- .map((item) => {
218
- return { showname: item };
215
+ );
216
+ if (res.results.specifiedCompany) {
217
+ let nameArr = res.results.specifiedCompany
218
+ .split(',')
219
+ .map((item) => {
220
+ return { showname: item };
221
+ });
222
+ let idArr = res.results.specifiedCompanyid
223
+ .split(',')
224
+ .map((item) => {
225
+ return { showid: item };
226
+ });
227
+ let companyArr = nameArr.map((item, i) => {
228
+ item.showid = idArr[i].showid;
229
+ return item;
219
230
  });
220
- let idArr = res.results.specifiedCompanyid
221
- .split(',')
222
- .map((item) => {
223
- return { showid: item };
224
- });
225
- let companyArr = nameArr.map((item, i) => {
226
- item.showid = idArr[i].showid;
227
- return item;
228
- });
229
- this.formData.specifiedCompanyObj = companyArr;
231
+ this.formData.specifiedCompanyObj = companyArr;
232
+ }
230
233
  }
234
+ } else {
235
+ return Message.error(res.msg);
231
236
  }
232
- } else {
233
- return this.$message.error(res.msg);
234
- }
235
- });
237
+ })
238
+ .catch(() => {
239
+ loadingInstance.close();
240
+ });
236
241
  }
237
242
  }
238
243
  };
@@ -60,6 +60,7 @@ import FormList from './FormList';
60
60
  import NodeConfig from './NodeConfig';
61
61
  import EsDataTable from 'eoss/packages/data-table';
62
62
  import EsDialog from 'eoss/packages/dialog';
63
+ import Message from 'eoss/packages/message';
63
64
  export default {
64
65
  name: 'EsProcessConfig',
65
66
  components: { FormList, NodeConfig, EsDataTable, EsDialog },
@@ -200,19 +201,23 @@ export default {
200
201
  companyid: getStorage('orgId'),
201
202
  ...data
202
203
  }
203
- }).then((res) => {
204
- loadingInstance.close();
205
- if (res.rCode === 0) {
206
- this.show = false;
207
- this.$message({
208
- type: 'success',
209
- message: res.msg
210
- });
211
- this.$refs.table.getData();
212
- } else {
213
- return this.$message.error(res.msg);
214
- }
215
- });
204
+ })
205
+ .then((res) => {
206
+ loadingInstance.close();
207
+ if (res.rCode === 0) {
208
+ this.show = false;
209
+ Message({
210
+ type: 'success',
211
+ message: res.msg
212
+ });
213
+ this.$refs.table.getData();
214
+ } else {
215
+ return Message.error(res.msg);
216
+ }
217
+ })
218
+ .catch(() => {
219
+ loadingInstance.close();
220
+ });
216
221
  } else if (this.title === '编辑') {
217
222
  delete data.createTime;
218
223
  delete data.updateTime;
@@ -220,39 +225,47 @@ export default {
220
225
  method: 'post',
221
226
  url: `/${this.bootName}${processUpdate}`,
222
227
  params: data
223
- }).then((res) => {
228
+ })
229
+ .then((res) => {
230
+ loadingInstance.close();
231
+ if (res.rCode === 0) {
232
+ this.show = false;
233
+ Message({
234
+ type: 'success',
235
+ message: res.msg
236
+ });
237
+ this.$refs.table.getData();
238
+ } else {
239
+ return Message.error(res.msg);
240
+ }
241
+ })
242
+ .catch(() => {
243
+ loadingInstance.close();
244
+ });
245
+ }
246
+ },
247
+ handleDelete(id) {
248
+ const loadingInstance = loading('提交中...');
249
+ ajax({
250
+ method: 'post',
251
+ url: `/${this.bootName}${processDeleteJson}`,
252
+ data: { id }
253
+ })
254
+ .then((res) => {
224
255
  loadingInstance.close();
225
256
  if (res.rCode === 0) {
226
- this.show = false;
227
- this.$message({
257
+ Message({
228
258
  type: 'success',
229
259
  message: res.msg
230
260
  });
231
261
  this.$refs.table.getData();
232
262
  } else {
233
- return this.$message.error(res.msg);
263
+ return Message.error(res.msg);
234
264
  }
265
+ })
266
+ .catch(() => {
267
+ loadingInstance.close();
235
268
  });
236
- }
237
- },
238
- handleDelete(id) {
239
- const loadingInstance = loading('提交中...');
240
- ajax({
241
- method: 'post',
242
- url: `/${this.bootName}${processDeleteJson}`,
243
- data: { id }
244
- }).then((res) => {
245
- loadingInstance.close();
246
- if (res.rCode === 0) {
247
- this.$message({
248
- type: 'success',
249
- message: res.msg
250
- });
251
- this.$refs.table.getData();
252
- } else {
253
- return this.$message.error(res.msg);
254
- }
255
- });
256
269
  }
257
270
  }
258
271
  };
@@ -11,6 +11,7 @@
11
11
  import { loading } from 'eoss/src/utils/util';
12
12
  import { ajax } from 'eoss/src/utils/ajax';
13
13
  import EsForm from 'eoss/packages/form';
14
+ import Message from 'eoss/packages/message';
14
15
  export default {
15
16
  name: 'FormList',
16
17
  components: { EsForm },
@@ -159,17 +160,21 @@ export default {
159
160
  ajax({
160
161
  url: this.url,
161
162
  params: { id: this.id }
162
- }).then((res) => {
163
- loadingInstance.close();
164
- if (res.rCode === 0) {
165
- this.formData = res.results;
166
- this.formData.ruleRepeat = res.results.ruleRepeat
167
- ? res.results.ruleRepeat + ''
168
- : '1';
169
- } else {
170
- return this.$message.error(res.msg);
171
- }
172
- });
163
+ })
164
+ .then((res) => {
165
+ loadingInstance.close();
166
+ if (res.rCode === 0) {
167
+ this.formData = res.results;
168
+ this.formData.ruleRepeat = res.results.ruleRepeat
169
+ ? res.results.ruleRepeat + ''
170
+ : '1';
171
+ } else {
172
+ return Message.error(res.msg);
173
+ }
174
+ })
175
+ .catch(() => {
176
+ loadingInstance.close();
177
+ });
173
178
  },
174
179
  cancel() {
175
180
  this.$emit('close', false);
@@ -45,6 +45,7 @@ import {
45
45
  import FormList from './FormList';
46
46
  import EsDataTable from 'eoss/packages/data-table';
47
47
  import EsDialog from 'eoss/packages/dialog';
48
+ import Message from 'eoss/packages/message';
48
49
  export default {
49
50
  name: 'EsProcessModule',
50
51
  components: { FormList, EsDataTable, EsDialog },
@@ -165,20 +166,24 @@ export default {
165
166
  data: postData
166
167
 
167
168
  // headers: { 'Content-Type': 'application/x-www-form-urlencoded' }
168
- }).then((res) => {
169
- loadingInstance.close();
170
- if (res.rCode === 0) {
171
- this.show = false;
172
- this.row = '';
173
- this.$message({
174
- type: 'success',
175
- message: res.msg
176
- });
177
- this.$refs.table.getData();
178
- } else {
179
- return this.$message.error(res.msg);
180
- }
181
- });
169
+ })
170
+ .then((res) => {
171
+ loadingInstance.close();
172
+ if (res.rCode === 0) {
173
+ this.show = false;
174
+ this.row = '';
175
+ Message({
176
+ type: 'success',
177
+ message: res.msg
178
+ });
179
+ this.$refs.table.getData();
180
+ } else {
181
+ return Message.error(res.msg);
182
+ }
183
+ })
184
+ .catch(() => {
185
+ loadingInstance.close();
186
+ });
182
187
  } else if (this.title === '编辑') {
183
188
  delete data.createTime;
184
189
  delete data.updateTime;
@@ -186,40 +191,48 @@ export default {
186
191
  method: 'post',
187
192
  url: `/${this.bootName}${moduleUpdate}`,
188
193
  data: data
189
- }).then((res) => {
194
+ })
195
+ .then((res) => {
196
+ loadingInstance.close();
197
+ if (res.rCode === 0) {
198
+ this.show = false;
199
+ this.row = '';
200
+ Message({
201
+ type: 'success',
202
+ message: res.msg
203
+ });
204
+ this.$refs.table.getData();
205
+ } else {
206
+ return Message.error(res.msg);
207
+ }
208
+ })
209
+ .catch(() => {
210
+ loadingInstance.close();
211
+ });
212
+ }
213
+ },
214
+ handleDelete(id) {
215
+ const loadingInstance = loading('删除中...');
216
+ ajax({
217
+ method: 'post',
218
+ url: `/${this.bootName}${moduleDelete}`,
219
+ data: { id }
220
+ })
221
+ .then((res) => {
190
222
  loadingInstance.close();
191
223
  if (res.rCode === 0) {
192
- this.show = false;
193
- this.row = '';
194
- this.$message({
224
+ Message({
195
225
  type: 'success',
196
226
  message: res.msg
197
227
  });
198
228
  this.$refs.table.getData();
199
229
  } else {
200
- return this.$message.error(res.msg);
230
+ return Message.error(res.msg);
201
231
  }
232
+ })
233
+ .catch(() => {
234
+ loadingInstance.close();
202
235
  });
203
- }
204
- },
205
- handleDelete(id) {
206
- const loadingInstance = loading('删除中...');
207
- ajax({
208
- method: 'post',
209
- url: `/${this.bootName}${moduleDelete}`,
210
- data: { id }
211
- }).then((res) => {
212
- loadingInstance.close();
213
- if (res.rCode === 0) {
214
- this.$message({
215
- type: 'success',
216
- message: res.msg
217
- });
218
- this.$refs.table.getData();
219
- } else {
220
- return this.$message.error(res.msg);
221
- }
222
- });
223
236
  },
224
237
  closeDialog() {
225
238
  // this.$refs.formList.resetForm();