eoss-ui 0.6.69 → 0.6.70

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 (73) hide show
  1. package/lib/.DS_Store +0 -0
  2. package/lib/button-group.js +100 -79
  3. package/lib/button.js +100 -79
  4. package/lib/calogin.js +115 -92
  5. package/lib/checkbox-group.js +100 -79
  6. package/lib/config/api.js +3 -0
  7. package/lib/data-table-form.js +100 -79
  8. package/lib/data-table.js +100 -79
  9. package/lib/date-picker.js +100 -79
  10. package/lib/dialog.js +100 -79
  11. package/lib/eoss-ui.common.js +619 -408
  12. package/lib/flow-group.js +100 -79
  13. package/lib/flow-list.js +105 -84
  14. package/lib/flow.js +380 -188
  15. package/lib/form.js +100 -79
  16. package/lib/handle-user.js +101 -80
  17. package/lib/handler.js +101 -80
  18. package/lib/icon.js +101 -80
  19. package/lib/index.js +1 -1
  20. package/lib/input-number.js +100 -79
  21. package/lib/input.js +100 -79
  22. package/lib/login.js +191 -172
  23. package/lib/main.js +137 -117
  24. package/lib/nav.js +100 -79
  25. package/lib/notify.js +85 -81
  26. package/lib/page.js +100 -79
  27. package/lib/pagination.js +100 -79
  28. package/lib/player.js +100 -79
  29. package/lib/qr-code.js +100 -79
  30. package/lib/radio-group.js +100 -79
  31. package/lib/retrial-auth.js +102 -81
  32. package/lib/select-ganged.js +100 -79
  33. package/lib/select.js +100 -79
  34. package/lib/selector-panel.js +115 -98
  35. package/lib/selector.js +132 -87
  36. package/lib/sizer.js +100 -79
  37. package/lib/steps.js +100 -79
  38. package/lib/switch.js +100 -79
  39. package/lib/table-form.js +100 -79
  40. package/lib/tabs.js +100 -79
  41. package/lib/theme-chalk/index.css +1 -1
  42. package/lib/theme-chalk/login.css +1 -1
  43. package/lib/tips.js +101 -80
  44. package/lib/tree-group.js +100 -79
  45. package/lib/tree.js +100 -79
  46. package/lib/upload.js +107 -86
  47. package/lib/utils/util.js +18 -1
  48. package/lib/wujie.js +100 -79
  49. package/lib/wxlogin.js +100 -79
  50. package/package.json +1 -1
  51. package/packages/.DS_Store +0 -0
  52. package/packages/calogin/.DS_Store +0 -0
  53. package/packages/calogin/src/main.vue +12 -10
  54. package/packages/flow/.DS_Store +0 -0
  55. package/packages/flow/src/component/Circulate.vue +9 -2
  56. package/packages/flow/src/component/taskUnionExamine.vue +8 -0
  57. package/packages/flow/src/main.vue +44 -3
  58. package/packages/login/.DS_Store +0 -0
  59. package/packages/login/src/main.vue +36 -46
  60. package/packages/main/.DS_Store +0 -0
  61. package/packages/main/src/simplicity/avatar.vue +0 -1
  62. package/packages/selector/.DS_Store +0 -0
  63. package/packages/selector/src/main.vue +33 -7
  64. package/packages/selector-panel/.DS_Store +0 -0
  65. package/packages/selector-panel/src/main.vue +5 -5
  66. package/packages/selector-panel/src/selection.vue +3 -10
  67. package/packages/theme-chalk/lib/index.css +1 -1
  68. package/packages/theme-chalk/lib/login.css +1 -1
  69. package/packages/theme-chalk/src/login.scss +4 -1
  70. package/src/.DS_Store +0 -0
  71. package/src/config/api.js +3 -0
  72. package/src/index.js +1 -1
  73. package/src/utils/util.js +60 -43
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "eoss-ui",
3
- "version": "0.6.69",
3
+ "version": "0.6.70",
4
4
  "description": "eoss内部业务组件",
5
5
  "main": "lib/eoss-ui.common.js",
6
6
  "files": [
Binary file
Binary file
@@ -41,7 +41,9 @@ export default {
41
41
  type: Array,
42
42
  default: () => []
43
43
  },
44
- success: Function
44
+ success: Function,
45
+ // 是否显示证书选择框,默认为true
46
+ showSelect: Boolean
45
47
  },
46
48
  data() {
47
49
  return {
@@ -56,7 +58,7 @@ export default {
56
58
  computed: {
57
59
  param() {
58
60
  // 生成不重复的 DLL 名称列表
59
- const dllnames = [...new Set(this.dllnames.concat(this.dllname))];
61
+ const dllnames = Array.from(new Set(this.dllnames.concat(this.dllname)));
60
62
 
61
63
  return `<?xml version="1.0" encoding="utf-8"?>
62
64
  <authinfo>
@@ -104,12 +106,12 @@ export default {
104
106
  } catch (e) {
105
107
  if (this.installPath) {
106
108
  this.$confirm('未安装控件,请进行安装控件!', '控件下载', {
107
- confirmButtonText: '确定',
109
+ confirmButtonText: '下载',
108
110
  cancelButtonText: '取消',
109
111
  type: 'warning'
110
112
  })
111
113
  .then(() => {
112
- window.open(this.installPath);
114
+ util.downloadFile(this.installPath);
113
115
  })
114
116
  .catch(() => {});
115
117
  } else {
@@ -126,8 +128,8 @@ export default {
126
128
  caPlugin.clearFilter();
127
129
  // 初始化vctk控件
128
130
  caPlugin.initialize('', this.param);
129
- // 控制证书为一个时,不弹出证书选择框
130
- caPlugin.setChooseSingleCert(1);
131
+ // 控制证书为一个时,并且不显示选择框时,不弹出证书选择框
132
+ !this.showSelect && caPlugin.setChooseSingleCert(1);
131
133
 
132
134
  // 生成签名信息
133
135
  this.signedData = caPlugin.p7SignString(
@@ -184,8 +186,8 @@ export default {
184
186
  return;
185
187
  }
186
188
  const userList = retValue.split('&&&');
187
- if (userList.length === 1) {
188
- //如果只有一个证书,直接获取证书信息
189
+ if (userList.length === 1 && !this.showSelect) {
190
+ //如果只有一个证书,并且不显示选择框时,直接获取证书信息
189
191
  this.certId = userList[0].split('||')[1];
190
192
  this.getCertInfo(this.certId);
191
193
  } else {
@@ -216,13 +218,13 @@ export default {
216
218
  '请检查是否安装并启用证书助手控件!',
217
219
  '控件下载',
218
220
  {
219
- confirmButtonText: '确定',
221
+ confirmButtonText: '下载',
220
222
  cancelButtonText: '取消',
221
223
  type: 'warning'
222
224
  }
223
225
  )
224
226
  .then(() => {
225
- window.open(this.installPath);
227
+ util.downloadFile(this.installPath);
226
228
  })
227
229
  .catch(() => {});
228
230
  } else {
Binary file
@@ -144,6 +144,7 @@ export default {
144
144
  isOpinionRequired: 0,
145
145
  otherParams: { filid: 'other' },
146
146
  loading: false,
147
+ subLoading:null,
147
148
  userModel:{}
148
149
  };
149
150
  },
@@ -224,13 +225,19 @@ export default {
224
225
  if(!this.showBtn){
225
226
  param.data.pendingId = this.pendingId;
226
227
  delete param.data.processDefinitionId;
228
+ this.subLoading = util.loading(this.$loading, '加载中...');
229
+ }else{
230
+ this.loading = true;
227
231
  }
228
- this.loading = true;
229
232
  util
230
233
  .ajax(param)
231
234
  .then((res) => {
232
235
  const { message, status,rCode } = res;
233
- this.loading = false;
236
+ if(!this.showBtn){
237
+ this.subLoading.close();
238
+ }else{
239
+ this.loading = false;
240
+ }
234
241
  if (status == 'success' || rCode == 0) {
235
242
  this.simpleTips && this.$message.success('提交成功');
236
243
  this.quit(true);
@@ -65,6 +65,7 @@
65
65
  :multiple="newMultiple"
66
66
  @change="changeSelectUser($event, 'nextOtherOrgObj')"
67
67
  :mix="otherMix"
68
+ :disableds="otherOrgDisabledObjId"
68
69
  :types="
69
70
  foreignOrgTabs.length > 0
70
71
  ? foreignOrgTabs
@@ -184,6 +185,7 @@ export default {
184
185
  foreignOrgTabsParam: {},
185
186
  currentOrgTabsParam: {},
186
187
  currentOrgProcessKey: '',
188
+ otherOrgDisabledObjId:[],
187
189
  isSubFlow: true,
188
190
  choiceDeptId: '',
189
191
  choiceOrgId: '',
@@ -321,6 +323,7 @@ export default {
321
323
  readOnlyNotificationType,
322
324
  notificationMessageReadOnly,
323
325
  unionDispatchOrgId,
326
+ otherOrgDisabledObjId,
324
327
  orgNames,
325
328
  nodeInfoMap: {
326
329
  nodeExtAttr: {
@@ -332,6 +335,11 @@ export default {
332
335
  }
333
336
  }
334
337
  } = res;
338
+ console.log(otherOrgDisabledObjId,'otherOrgDisabledObjId')
339
+ if(otherOrgDisabledObjId){
340
+ this.otherOrgDisabledObjId = otherOrgDisabledObjId.split(',')
341
+ console.log( this.otherOrgDisabledObjId,otherOrgDisabledObjId.split(','))
342
+ }
335
343
  if (res.data.customizedConfig) {
336
344
  if (res.data.customizedConfig.currentOrgSelectorCustomized) {
337
345
  this.currentMix =
@@ -6,6 +6,34 @@
6
6
  v-if="!shrinkAbled"
7
7
  >
8
8
  <div v-if="showCirculate">
9
+ <div class="es-flow-top">
10
+ <div class="es-flow-title">
11
+ <span v-show="!shrink"
12
+ >当前节点:{{ isFlow ? nodeName || '拟稿' : NodeName }}</span
13
+ >
14
+ <es-button
15
+ v-if="showShrink"
16
+ size="medium"
17
+ class="es-icon"
18
+ :icon="shrink ? 'es-icon-indent' : 'es-icon-increase'"
19
+ @click="setShrink"
20
+ ></es-button>
21
+ </div>
22
+ <div class="es-opinion" v-show="!shrink">
23
+ <span class="es-eidt-title" :style="`${!isFlow ? 'color:red' : ''}`"
24
+ >填写意见</span
25
+ >
26
+ <!-- <span
27
+ v-show="!isFlow && newTypeCode != 'fenyue'"
28
+ class="es-opinion-file"
29
+ @click="showFileList = true"
30
+ ><i class="es-icon-fujian"></i>意见附件<span
31
+ class="es-file-num"
32
+ v-show="fileNum > 0"
33
+ >({{ fileNum }})</span
34
+ ></span> -->
35
+ </div>
36
+ </div>
9
37
  <CommonOpinions
10
38
  class="es-common-opinions"
11
39
  v-show="!shrink"
@@ -18,10 +46,11 @@
18
46
  :nodeFixedOpinionSelectList="nodeFixedOpinionSelectList"
19
47
  />
20
48
  <el-form ref="form" :model="circulateForm" label-width="120px">
21
- <el-form-item prop="nextNodeId" label="下步节点">
49
+ <el-form-item style="margin-top:20px" prop="nextNodeId" label="下步节点">
22
50
  <el-select
23
51
  v-if="nextNodeCheckType == 'select'"
24
52
  v-model="circulateForm.nextNodeId"
53
+ style="width: 100% !important;"
25
54
  :placeholder="`请选择下步节点`"
26
55
  >
27
56
  <el-option label="传阅" value="111"></el-option>
@@ -37,7 +66,7 @@
37
66
  </el-form>
38
67
  <circulate
39
68
  style="margin-top: 10px"
40
- :businessId="businessId"
69
+ :businessId="businessIds"
41
70
  ref="circulate"
42
71
  :selectorParams="params"
43
72
  :pending-id="pendingId"
@@ -312,6 +341,7 @@
312
341
  ]"
313
342
  >
314
343
  <el-select
344
+ v-if="nextOperateCheckType == 'select'"
315
345
  v-model="nextNode.nextOperate"
316
346
  :placeholder="`请选择下步操作`"
317
347
  :disabled="operationList && operationList.length == 1"
@@ -324,6 +354,14 @@
324
354
  :value="items.key"
325
355
  ></el-option>
326
356
  </el-select>
357
+ <es-radio-group
358
+ v-else-if="nextOperateCheckType == 'radio'"
359
+ v-model="nextNode.nextOperate"
360
+ :data="operationList"
361
+ @change="selecNext($event, true)"
362
+ value-key="key"
363
+ label-key="value"
364
+ ></es-radio-group>
327
365
  </el-form-item>
328
366
  <div>
329
367
  <el-form-item
@@ -1067,6 +1105,7 @@ export default {
1067
1105
  showCustomLimitTimeText: false,
1068
1106
  currentOrgDisabledObjId: [],
1069
1107
  nextNodeCheckType: 'select',
1108
+ nextOperateCheckType:'select',
1070
1109
  readOnlyNotificationType: '',
1071
1110
  circularReadParamsMap: { circularReadOrgRoleCode: '' },
1072
1111
  taskParams: {},
@@ -2589,6 +2628,7 @@ export default {
2589
2628
  circularReadParamsMap,
2590
2629
  isPreset,
2591
2630
  choiceOrgId,
2631
+ nextOperateCheckType,
2592
2632
  choiceDeptId,
2593
2633
  readOnlyNotificationType,
2594
2634
  notificationMessageReadOnly,
@@ -2618,7 +2658,8 @@ export default {
2618
2658
  this.$emit('startTaskRead', res);
2619
2659
  this.$emit('start-task-read', res);
2620
2660
  this.circularReadParamsMap = circularReadParamsMap || {};
2621
- this.currentOrgName = currentOrgName;
2661
+ this.currentOrgName =
2662
+ this.nextOperateCheckType = nextOperateCheckType;
2622
2663
  this.currentNodeIsCircularReadNode =
2623
2664
  nodeInfoMap.nodeExtAttr.currentNodeIsCircularReadNode == 1;
2624
2665
  this.readOnlyNotificationType = readOnlyNotificationType;
Binary file
@@ -18,6 +18,7 @@
18
18
  </div>
19
19
  <img v-if="loginLogoImg" class="es-login-logo" :src="loginLogoImg" />
20
20
  <slot></slot>
21
+ <slot name="warning" :contents="warningText"></slot>
21
22
  <div
22
23
  class="es-login"
23
24
  v-loading.fullscreen.lock="submit"
@@ -49,28 +50,28 @@
49
50
  'es-login-model': modelLength == 2 || mode == 'complex'
50
51
  }"
51
52
  >
52
- <template
53
- v-if="this.mode == 'complex' && loginModel.indexOf('3') > -1"
54
- >
55
- <template v-for="item in switchs">
56
- <div
57
- v-if="item.tips"
58
- v-show="switchActive != item.type"
59
- class="es-login-model-tips"
60
- :key="item.type + '_0'"
61
- :style="getBackground(item.background)"
62
- >
63
- {{ item.tips }}
64
- </div>
65
- <span
66
- v-show="switchActive != item.type"
67
- class="es-icon-box"
68
- @click="switchLoginType(item)"
69
- :title="modelLength > 2 ? item.name : ''"
70
- :key="item.type + '_1'"
71
- >
72
- <i :class="[item.icon, 'es-icon']"></i>
73
- </span>
53
+ <template v-if="this.mode == 'complex'">
54
+ <template v-if="loginModel.indexOf('3') > -1">
55
+ <template v-for="item in switchs">
56
+ <div
57
+ v-if="item.tips"
58
+ v-show="switchActive != item.type"
59
+ class="es-login-model-tips"
60
+ :key="item.type + '_0'"
61
+ :style="getBackground(item.background)"
62
+ >
63
+ {{ item.tips }}
64
+ </div>
65
+ <span
66
+ v-show="switchActive != item.type"
67
+ class="es-icon-box"
68
+ @click="switchLoginType(item)"
69
+ :title="modelLength > 2 ? item.name : ''"
70
+ :key="item.type + '_1'"
71
+ >
72
+ <i :class="[item.icon, 'es-icon']"></i>
73
+ </span>
74
+ </template>
74
75
  </template>
75
76
  </template>
76
77
  <template v-else>
@@ -391,8 +392,8 @@
391
392
  >初次使用请下载一键安装包</span
392
393
  >
393
394
  </div>
394
- <div class="es-warning" v-if="warnInfo">
395
- {{ warnInfo }}
395
+ <div class="es-warning" v-if="showWarnInfo">
396
+ {{ warningText }}
396
397
  </div>
397
398
  </div>
398
399
  </div>
@@ -501,6 +502,7 @@
501
502
  <es-ca-login
502
503
  v-if="isCaLogin"
503
504
  ref="calogin"
505
+ :showSelect="showKeySelect"
504
506
  :install-path="installPath"
505
507
  :ca-model="caLoginModel"
506
508
  :identifyingId="identifyingId"
@@ -712,10 +714,7 @@ export default {
712
714
  default: true
713
715
  },
714
716
  storage: String,
715
- warning: {
716
- type: [Boolean, String],
717
- default: false
718
- },
717
+ warning: String,
719
718
  copyrightStyle: {
720
719
  type: Object,
721
720
  default() {
@@ -777,7 +776,8 @@ export default {
777
776
  }
778
777
  },
779
778
  caModel: String,
780
- caInstallPath: String
779
+ caInstallPath: String,
780
+ showKeySelect: Boolean
781
781
  },
782
782
  computed: {
783
783
  transform() {
@@ -820,21 +820,12 @@ export default {
820
820
  return window.location.href || window.href;
821
821
  }
822
822
  },
823
- warnInfo() {
824
- if (this.warning === false && !this.warningText) {
825
- return false;
826
- }
827
- if (
828
- this.warningText &&
829
- this.warningText !== 'true' &&
830
- this.warningText !== true
831
- ) {
832
- return this.warningText;
833
- }
834
- if (this.warning && typeof this.warning === 'string') {
835
- return this.warning;
836
- }
837
- return '本系统为非涉密系统,禁止上传和处理任何涉密文件';
823
+ showWarnInfo() {
824
+ return this.$slots.warning || this.$scopedSlots.warning
825
+ ? false
826
+ : this.warningText
827
+ ? true
828
+ : false;
838
829
  },
839
830
  modelLength() {
840
831
  return Array.isArray(this.loginModel)
@@ -885,7 +876,6 @@ export default {
885
876
  types.forEach((item) => {
886
877
  icon.push(this.iconfonts[item]);
887
878
  });
888
- console.log(icon);
889
879
  return icon;
890
880
  },
891
881
  isCaLogin() {
@@ -1019,7 +1009,7 @@ export default {
1019
1009
  checkCode: '',
1020
1010
  showAssistance: false,
1021
1011
  doAssistance: null,
1022
- warningText: '',
1012
+ warningText: this.warning,
1023
1013
  safes: {
1024
1014
  paste: (event) => {
1025
1015
  event.preventDefault();
Binary file
@@ -56,7 +56,6 @@ export default {
56
56
  computed: {
57
57
  //用户头像
58
58
  _userHead() {
59
- console.log(this.user);
60
59
  return this.userHead ? this.userHead : this.user.userHeadUrl;
61
60
  }
62
61
  },
Binary file
@@ -224,7 +224,7 @@
224
224
  </template>
225
225
  <script>
226
226
  import util from 'eoss-ui/src/utils/util.js';
227
- import { getSelectorOrgDetail } from 'eoss-ui/src/config/api.js';
227
+ import { getSelectorOrgDetail, getSysParam } from 'eoss-ui/src/config/api.js';
228
228
  import Clickoutside from 'eoss-element/src/utils/clickoutside';
229
229
  export default {
230
230
  name: 'EsSelector',
@@ -458,10 +458,16 @@ export default {
458
458
  clearTimeout(this.timer);
459
459
  this.timer = setTimeout(this.handleSearch, 500);
460
460
  }
461
+ },
462
+ mix(val) {
463
+ if (val) {
464
+ this.getSysParam();
465
+ }
461
466
  }
462
467
  },
463
468
  created() {
464
469
  this.reference = this.$refs.esSelector;
470
+ this.mix && this.getSysParam();
465
471
  },
466
472
  mounted() {
467
473
  this.resetInputHeight();
@@ -478,6 +484,25 @@ export default {
478
484
  }
479
485
  },
480
486
  methods: {
487
+ getSysParam() {
488
+ if (util.getStorage('sysorgname') && util.getStorage('sysdepname')) {
489
+ return;
490
+ }
491
+ util
492
+ .ajax({
493
+ url: getSysParam,
494
+ params: {
495
+ paramCode: 'sysorgname,sysdepname'
496
+ }
497
+ })
498
+ .then((res) => {
499
+ if (res.rCode === 0) {
500
+ let params = res.results.split(',');
501
+ sessionStorage.setItem('sysorgname', params[0]);
502
+ sessionStorage.setItem('sysdepname', params[1]);
503
+ }
504
+ });
505
+ },
481
506
  isObject(obj) {
482
507
  return util.isObject(obj);
483
508
  },
@@ -598,13 +623,14 @@ export default {
598
623
  },
599
624
  handleConfirm(res) {
600
625
  this.visible = false;
601
- if (util.isObject(res)) {
602
- this.$emit('input', [res]);
603
- this.$emit('confirm', [res], this.businessData);
604
- } else {
605
- this.$emit('input', res);
606
- this.$emit('confirm', res, this.businessData);
626
+ let val = util.isObject(res) ? [res] : res;
627
+ if (this.mix) {
628
+ val.forEach((item, index) => {
629
+ val[index]._typeName = util.getTypeName(item.stype);
630
+ });
607
631
  }
632
+ this.$emit('input', val);
633
+ this.$emit('confirm', val, this.businessData);
608
634
  let inputChildNodes = this.$refs.reference
609
635
  ? this.$refs.reference.$el.childNodes
610
636
  : null;
@@ -340,7 +340,7 @@ export default {
340
340
  selection: [],
341
341
  value: [],
342
342
  param: {
343
- showarea: 2,
343
+ showarea: 0,
344
344
  id: 0,
345
345
  filid: 'all'
346
346
  }
@@ -368,7 +368,7 @@ export default {
368
368
  selection: [],
369
369
  value: [],
370
370
  param: {
371
- showarea: 2,
371
+ showarea: 0,
372
372
  id: 0,
373
373
  filid: 'all'
374
374
  }
@@ -396,7 +396,7 @@ export default {
396
396
  name: 'filgroup',
397
397
  url: getSelectorOrgTree,
398
398
  param: {
399
- showarea: 3,
399
+ showarea: 4,
400
400
  id: 0,
401
401
  filid: 'all'
402
402
  }
@@ -410,7 +410,7 @@ export default {
410
410
  selection: [],
411
411
  value: [],
412
412
  param: {
413
- showarea: 4,
413
+ showarea: 5,
414
414
  id: 0,
415
415
  filid: 'all'
416
416
  }
@@ -452,7 +452,7 @@ export default {
452
452
  selection: [],
453
453
  value: [],
454
454
  param: {
455
- showarea: 13,
455
+ showarea: 14,
456
456
  id: 0,
457
457
  filid: 'all'
458
458
  }
@@ -141,16 +141,9 @@ export default {
141
141
  },
142
142
  methods: {
143
143
  getLabel(res) {
144
- let tag = '';
145
- if (this.mix) {
146
- tag = util.getTypeName(res.stype);
147
- }
148
- return (
149
- tag +
150
- (res[this.labelKey]
151
- ? res[this.labelKey]
152
- : res.label || res[this.valueKey])
153
- );
144
+ return res[this.labelKey]
145
+ ? res[this.labelKey]
146
+ : res.label || res[this.valueKey];
154
147
  },
155
148
  handleSort(res) {
156
149
  this.$emit('sort', res);