eoss 0.1.0-alpha.38 → 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 (59) 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 +426 -337
  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 +99 -58
  15. package/lib/phone-login.js +3542 -3538
  16. package/lib/process-config.js +4105 -4080
  17. package/lib/process-module.js +3555 -3541
  18. package/lib/process-rule.js +4707 -4688
  19. package/lib/qrcode-login.js +3290 -3290
  20. package/lib/radio-group.js +3466 -3466
  21. package/lib/retrial-auth.js +3516 -3516
  22. package/lib/select.js +9354 -9354
  23. package/lib/selector-panel.js +6280 -6280
  24. package/lib/selector.js +5320 -5320
  25. package/lib/table.js +16094 -16094
  26. package/lib/tips.js +3309 -3309
  27. package/lib/tree.js +6666 -6661
  28. package/lib/upload.js +7994 -7989
  29. package/lib/wujie.js +9 -3
  30. package/package.json +1 -1
  31. package/packages/account-login/src/account-login.vue +9 -15
  32. package/packages/ca-login/src/ca-login.vue +5 -6
  33. package/packages/data-table/src/data-table.vue +1 -3
  34. package/packages/email-login/src/email-login.vue +10 -11
  35. package/packages/flow/src/form.vue +2 -2
  36. package/packages/login/src/download.vue +2 -2
  37. package/packages/login/src/login.vue +3 -4
  38. package/packages/login/src/resetPassword.vue +3 -3
  39. package/packages/lowcode/src/attribute.vue +10 -9
  40. package/packages/lowcode-view/src/view.vue +3 -2
  41. package/packages/main/src/components/message.vue +7 -7
  42. package/packages/main/src/components/notice.vue +3 -2
  43. package/packages/main/src/components/pages.vue +28 -2
  44. package/packages/main/src/components/router-page.vue +6 -1
  45. package/packages/main/src/minxs.js +14 -10
  46. package/packages/phone-login/src/phone-login.vue +4 -4
  47. package/packages/process-config/src/FormList.vue +14 -8
  48. package/packages/process-config/src/NodeConfig.vue +50 -37
  49. package/packages/process-config/src/NodeForm.vue +37 -32
  50. package/packages/process-config/src/main.vue +50 -37
  51. package/packages/process-module/src/FormList.vue +16 -11
  52. package/packages/process-module/src/main.vue +52 -39
  53. package/packages/process-rule/src/FormList.vue +120 -105
  54. package/packages/process-rule/src/companyReportDetail.vue +13 -8
  55. package/packages/process-rule/src/main.vue +71 -52
  56. package/packages/tree/src/tree.vue +6 -5
  57. package/packages/upload/src/index.vue +3 -2
  58. package/packages/wujie/src/wujie.vue +7 -1
  59. package/src/index.js +1 -1
@@ -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();