eoss-ui 0.4.94 → 0.4.96

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 (51) hide show
  1. package/lib/button-group.js +32 -25
  2. package/lib/button.js +32 -25
  3. package/lib/checkbox-group.js +32 -25
  4. package/lib/data-table-form.js +32 -25
  5. package/lib/data-table.js +32 -25
  6. package/lib/date-picker.js +32 -25
  7. package/lib/dialog.js +32 -25
  8. package/lib/eoss-ui.common.js +106 -107
  9. package/lib/flow-group.js +32 -25
  10. package/lib/flow-list.js +32 -25
  11. package/lib/flow.js +41 -29
  12. package/lib/form.js +32 -25
  13. package/lib/handle-user.js +32 -25
  14. package/lib/handler.js +32 -25
  15. package/lib/index.js +1 -1
  16. package/lib/input-number.js +32 -25
  17. package/lib/input.js +32 -25
  18. package/lib/login.js +32 -25
  19. package/lib/main.js +86 -92
  20. package/lib/nav.js +32 -25
  21. package/lib/page.js +32 -25
  22. package/lib/player.js +32 -25
  23. package/lib/qr-code.js +32 -25
  24. package/lib/radio-group.js +32 -25
  25. package/lib/retrial-auth.js +32 -25
  26. package/lib/select-ganged.js +32 -25
  27. package/lib/select.js +32 -25
  28. package/lib/selector-panel.js +32 -25
  29. package/lib/selector.js +32 -25
  30. package/lib/sizer.js +32 -25
  31. package/lib/steps.js +32 -25
  32. package/lib/switch.js +32 -25
  33. package/lib/table-form.js +32 -25
  34. package/lib/tabs.js +32 -25
  35. package/lib/theme-chalk/index.css +1 -1
  36. package/lib/theme-chalk/toolbar.css +1 -1
  37. package/lib/tips.js +32 -25
  38. package/lib/tree-group.js +32 -25
  39. package/lib/tree.js +32 -25
  40. package/lib/upload.js +32 -25
  41. package/lib/utils/util.js +32 -25
  42. package/lib/wujie.js +32 -25
  43. package/lib/wxlogin.js +32 -25
  44. package/package.json +1 -1
  45. package/packages/flow/src/main.vue +58 -51
  46. package/packages/main/src/main.vue +36 -39
  47. package/packages/theme-chalk/lib/index.css +1 -1
  48. package/packages/theme-chalk/lib/toolbar.css +1 -1
  49. package/packages/theme-chalk/src/toolbar.scss +7 -0
  50. package/src/index.js +1 -1
  51. package/src/utils/util.js +64 -57
@@ -274,7 +274,7 @@
274
274
  />
275
275
  </el-form-item>
276
276
  <el-form-item
277
- v-if="isMainSubProcess"
277
+ v-if="isMainSubProcess && isNodeShowProcess"
278
278
  prop="mainSubId"
279
279
  label="主办"
280
280
  >
@@ -501,7 +501,7 @@
501
501
  "
502
502
  trigger="click"
503
503
  placement="top"
504
- style="border-left:1px solid #d9d9d9"
504
+ style="border-left: 1px solid #d9d9d9"
505
505
  >
506
506
  <el-button>...</el-button>
507
507
  <el-dropdown-menu slot="dropdown">
@@ -778,6 +778,7 @@ export default {
778
778
  isHideCurrentOrg: false, //是否隐藏本单位(承办)
779
779
  isHideOtherOrg: false, //是否隐藏外单位(承办)
780
780
  isMainSubProcess: false, // 判断是否子-主流程
781
+ isNodeShowProcess: false, //是否展示主办
781
782
  isNextUser: false,
782
783
  isShowNode: false,
783
784
  nextNodeList: [],
@@ -945,7 +946,7 @@ export default {
945
946
  },
946
947
  methods: {
947
948
  getsubProcessColumns() {
948
- if (!this.isMainSubProcess) return [];
949
+ if (!this.isMainSubProcess || !this.isNodeShowProcess) return [];
949
950
  let data = [];
950
951
  let obj = { name: '[部门员工]-' };
951
952
  if (this.nextCurrentOrgObjSelect.length > 0) {
@@ -1644,6 +1645,9 @@ export default {
1644
1645
  this.nodeType = data.nodeExtAttr.nodeType;
1645
1646
  //如果当前为承办节点/会签节点,则展示本单位外单位办理人选择
1646
1647
  if (this.nodeType === 1 || this.nodeType === 2) {
1648
+ this.isMainSubProcess === true
1649
+ ? (this.isNodeShowProcess = true)
1650
+ : (this.isNodeShowProcess = false);
1647
1651
  this.isMainSubProcess === true
1648
1652
  ? (this.isMainSubProcess = true)
1649
1653
  : (this.isMainSubProcess = false);
@@ -1655,6 +1659,7 @@ export default {
1655
1659
  } else {
1656
1660
  this.isHideCurrentOrg = false;
1657
1661
  this.isHideOtherOrg = false;
1662
+ this.isNodeShowProcess = false;
1658
1663
  this.isMainSubProcess = false;
1659
1664
  this.isNextUser = true;
1660
1665
  // this.isMainSubProcess === true
@@ -1748,6 +1753,7 @@ export default {
1748
1753
  this.isNextUser = false;
1749
1754
  this.isShowNode = false;
1750
1755
  this.isMainSubProcess = false;
1756
+ this.isNodeShowProcess = false;
1751
1757
  this.nextNode.nextNodeId = '';
1752
1758
  this.nextNode.isReturnSubmitter = 0;
1753
1759
  this.nextNode.isUndertakeReply = 0;
@@ -2255,7 +2261,7 @@ export default {
2255
2261
  this.value = this.value.replace(RegExp('同意。', 'g'), '');
2256
2262
  this.value = val + this.value;
2257
2263
  }
2258
- if(!this.validInfo()) return
2264
+ if (!this.validInfo()) return;
2259
2265
  if (this.beforeSubmit == undefined) {
2260
2266
  this.subFun(this.sendData);
2261
2267
  } else {
@@ -2269,58 +2275,59 @@ export default {
2269
2275
  });
2270
2276
  },
2271
2277
  validInfo() {
2272
- if (
2273
- !this.endFlow &&
2274
- this.newTypeCode != 'fenyue' &&
2275
- !this.shrink &&
2276
- this.nextNode.isAddSign != '1' &&
2277
- this.nextNode.isRemoveSign != '1' &&
2278
- this.isSpecial &&
2279
- !this.isReject &&
2280
- this.nodeInfos.length != 0 &&
2281
- this.isNextUser
2282
- ) {
2283
- if (this.isShowNextUser) {
2284
- if (
2285
- this.nextNode.nextUserId == '' ||
2286
- (this.multiple && this.nextNode.nextUserId.length == 0)
2287
- ) {
2288
- this.$message.warning('请选择下步办理人');
2289
- return false
2290
- }
2291
- } else {
2292
- if (
2293
- this.nextNode.nextOrgId == '' ||
2294
- (this.multiple && this.nextNode.nextOrgId.length == 0)
2295
- ) {
2296
- this.$message.warning('请选择办理对象');
2297
- return false
2298
- }
2299
- }
2300
- }
2301
-
2302
- if (
2303
- this.nextNode.isAddSign == '1' &&
2304
- this.nextNode.addSignUserId.length == 0
2305
- )
2306
- {this.$message.warning('请选择加签办理人');
2307
- return false}
2278
+ if (
2279
+ !this.endFlow &&
2280
+ this.newTypeCode != 'fenyue' &&
2281
+ !this.shrink &&
2282
+ this.nextNode.isAddSign != '1' &&
2283
+ this.nextNode.isRemoveSign != '1' &&
2284
+ this.isSpecial &&
2285
+ !this.isReject &&
2286
+ this.nodeInfos.length != 0 &&
2287
+ this.isNextUser
2288
+ ) {
2289
+ if (this.isShowNextUser) {
2308
2290
  if (
2309
- this.nextNode.isRemoveSign == '1' &&
2310
- this.nextNode.removeSignUserId.length == 0
2311
- ){
2312
- this.$message.warning('请选择减签办理人');
2313
- return false
2314
- }
2315
- if (!this.value && this.isOpinionRequired === 1) {
2316
- this.$message.warning('请选择输入审批意见');
2291
+ this.nextNode.nextUserId == '' ||
2292
+ (this.multiple && this.nextNode.nextUserId.length == 0)
2293
+ ) {
2294
+ this.$message.warning('请选择下步办理人');
2317
2295
  return false;
2318
2296
  }
2319
- if (this.isHideCurrentOrg && !this.nextNode.nextCurrentOrgObjJson) {
2320
- this.$message.warning(`请选择${this.currentOrgName || '本单位'}`);
2297
+ } else {
2298
+ if (
2299
+ this.nextNode.nextOrgId == '' ||
2300
+ (this.multiple && this.nextNode.nextOrgId.length == 0)
2301
+ ) {
2302
+ this.$message.warning('请选择办理对象');
2321
2303
  return false;
2322
2304
  }
2323
- return true
2305
+ }
2306
+ }
2307
+
2308
+ if (
2309
+ this.nextNode.isAddSign == '1' &&
2310
+ this.nextNode.addSignUserId.length == 0
2311
+ ) {
2312
+ this.$message.warning('请选择加签办理人');
2313
+ return false;
2314
+ }
2315
+ if (
2316
+ this.nextNode.isRemoveSign == '1' &&
2317
+ this.nextNode.removeSignUserId.length == 0
2318
+ ) {
2319
+ this.$message.warning('请选择减签办理人');
2320
+ return false;
2321
+ }
2322
+ if (!this.value && this.isOpinionRequired === 1) {
2323
+ this.$message.warning('请选择输入审批意见');
2324
+ return false;
2325
+ }
2326
+ if (this.isHideCurrentOrg && !this.nextNode.nextCurrentOrgObjJson) {
2327
+ this.$message.warning(`请选择${this.currentOrgName || '本单位'}`);
2328
+ return false;
2329
+ }
2330
+ return true;
2324
2331
  },
2325
2332
  sendData() {
2326
2333
  this.$refs['nextNode'].validate(async (valid) => {
@@ -666,20 +666,6 @@ export default {
666
666
  Object.prototype.hasOwnProperty.call(query, 'serverId') &&
667
667
  Object.prototype.hasOwnProperty.call(query, 'authType')
668
668
  ) {
669
- let url = util.win.top.location.href;
670
- if (query.openType) {
671
- switch (query.openType) {
672
- case 'self':
673
- url = util.win.location.href;
674
- break;
675
- case 'blank':
676
- url = util.win.open(url);
677
- break;
678
- case 'parent':
679
- url = util.win.parent.location.href;
680
- break;
681
- }
682
- }
683
669
  await util
684
670
  .ajax({
685
671
  method: 'post',
@@ -691,9 +677,8 @@ export default {
691
677
  let { results } = res;
692
678
  switch (results.statusCode) {
693
679
  case 0:
694
- const storage = getStorage('storage');
695
- setStorage({
696
- type: storage,
680
+ util.setStorage({
681
+ type: this.storage,
697
682
  key: {
698
683
  ssId: results.ssId,
699
684
  token: results.token,
@@ -701,41 +686,53 @@ export default {
701
686
  deviceUnique: results.deviceUnique
702
687
  }
703
688
  });
704
- this.getConfig();
705
- if (this.socket) {
706
- this.initWebSocket();
707
- }
708
- break;
709
- case 1:
710
- break;
711
- case 2:
712
- break;
713
- case 3:
714
- const href = results.authorizeUrl.replace(
715
- '{redirectUri}',
716
- encodeURIComponent(url)
717
- );
718
689
  if (query.openType) {
690
+ let url = util.win.top.location.href;
691
+ let newUrl = util.delUrlParam({
692
+ url: url,
693
+ key: ['serverId', 'authType', 'openType']
694
+ });
719
695
  switch (query.openType) {
720
696
  case 'self':
721
- util.win.location.href = href;
697
+ util.win.location.href = newUrl;
722
698
  break;
723
699
  case 'blank':
724
- util.win.open(href);
725
- break;
726
- case 'top':
727
- util.win.top.location.href = href;
700
+ util.win.open(newUrl);
728
701
  break;
729
702
  case 'parent':
730
703
  util.win.parent.location.href = href;
731
704
  break;
705
+ default:
706
+ util.win.top.location.href = href;
732
707
  }
733
708
  } else {
734
- if (open) {
709
+ this.getConfig();
710
+ if (this.socket) {
711
+ this.initWebSocket();
712
+ }
713
+ }
714
+ break;
715
+ case 1:
716
+ break;
717
+ case 2:
718
+ break;
719
+ case 3:
720
+ const href = results.authorizeUrl.replace(
721
+ '{redirectUri}',
722
+ encodeURIComponent(url)
723
+ );
724
+ switch (query.openType) {
725
+ case 'self':
726
+ util.win.location.href = href;
727
+ break;
728
+ case 'blank':
735
729
  util.win.open(href);
736
- } else {
730
+ break;
731
+ case 'parent':
732
+ util.win.parent.location.href = href;
733
+ break;
734
+ default:
737
735
  util.win.top.location.href = href;
738
- }
739
736
  }
740
737
  break;
741
738
  case 4: