eoss-ui 0.6.69 → 0.6.71

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/button-group.js +100 -79
  2. package/lib/button.js +100 -79
  3. package/lib/calogin.js +115 -92
  4. package/lib/checkbox-group.js +100 -79
  5. package/lib/config/api.js +3 -0
  6. package/lib/data-table-form.js +100 -79
  7. package/lib/data-table.js +100 -79
  8. package/lib/date-picker.js +100 -79
  9. package/lib/dialog.js +100 -79
  10. package/lib/eoss-ui.common.js +662 -433
  11. package/lib/flow-group.js +100 -79
  12. package/lib/flow-list.js +105 -84
  13. package/lib/flow.js +386 -192
  14. package/lib/form.js +100 -79
  15. package/lib/handle-user.js +101 -80
  16. package/lib/handler.js +101 -80
  17. package/lib/icon.js +101 -80
  18. package/lib/index.js +1 -1
  19. package/lib/input-number.js +100 -79
  20. package/lib/input.js +100 -79
  21. package/lib/login.js +191 -172
  22. package/lib/main.js +149 -129
  23. package/lib/nav.js +100 -79
  24. package/lib/notify.js +85 -81
  25. package/lib/page.js +100 -79
  26. package/lib/pagination.js +100 -79
  27. package/lib/player.js +100 -79
  28. package/lib/qr-code.js +100 -79
  29. package/lib/radio-group.js +100 -79
  30. package/lib/retrial-auth.js +102 -81
  31. package/lib/select-ganged.js +100 -79
  32. package/lib/select.js +100 -79
  33. package/lib/selector-panel.js +115 -98
  34. package/lib/selector.js +157 -96
  35. package/lib/sizer.js +100 -79
  36. package/lib/steps.js +100 -79
  37. package/lib/switch.js +100 -79
  38. package/lib/table-form.js +100 -79
  39. package/lib/tabs.js +100 -79
  40. package/lib/theme-chalk/index.css +1 -1
  41. package/lib/theme-chalk/login.css +1 -1
  42. package/lib/tips.js +101 -80
  43. package/lib/tree-group.js +100 -79
  44. package/lib/tree.js +100 -79
  45. package/lib/upload.js +107 -86
  46. package/lib/utils/util.js +18 -1
  47. package/lib/wujie.js +100 -79
  48. package/lib/wxlogin.js +100 -79
  49. package/package.json +1 -1
  50. package/packages/.DS_Store +0 -0
  51. package/packages/calogin/.DS_Store +0 -0
  52. package/packages/calogin/src/main.vue +12 -10
  53. package/packages/flow/.DS_Store +0 -0
  54. package/packages/flow/src/component/Circulate.vue +9 -2
  55. package/packages/flow/src/component/taskUnionExamine.vue +8 -0
  56. package/packages/flow/src/main.vue +50 -7
  57. package/packages/login/.DS_Store +0 -0
  58. package/packages/login/src/main.vue +36 -46
  59. package/packages/main/.DS_Store +0 -0
  60. package/packages/main/src/public/search.vue +5 -9
  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 +56 -14
  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.71",
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
@@ -1054,7 +1092,7 @@ export default {
1054
1092
  return {
1055
1093
  styles: {},
1056
1094
  optionsKey: 0,
1057
- showCirculate: false,
1095
+ showCirculate: undefined,
1058
1096
  circulateForm: { nextNodeId: '111' },
1059
1097
  userModel: {},
1060
1098
  simpleTips: true,
@@ -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: {},
@@ -1242,15 +1281,17 @@ export default {
1242
1281
  mounted() {
1243
1282
  this.businessIds = this.businessId;
1244
1283
  this.nextNode.nextNodeId = this.nextNodeId;
1245
- this.getInfo();
1284
+ if(!this.isFlow){
1285
+ this.getInfo();
1286
+ }
1246
1287
  },
1247
1288
  watch: {
1248
1289
  isCirculate: {
1249
1290
  handler(val) {
1250
- this.showCirculate = val;
1251
- if (!val) {
1291
+ if (!val && this.showCirculate != undefined) {
1252
1292
  this.getInfo();
1253
1293
  }
1294
+ this.showCirculate = val;
1254
1295
  },
1255
1296
  deep: true,
1256
1297
  immediate: true
@@ -2589,6 +2630,7 @@ export default {
2589
2630
  circularReadParamsMap,
2590
2631
  isPreset,
2591
2632
  choiceOrgId,
2633
+ nextOperateCheckType,
2592
2634
  choiceDeptId,
2593
2635
  readOnlyNotificationType,
2594
2636
  notificationMessageReadOnly,
@@ -2618,7 +2660,8 @@ export default {
2618
2660
  this.$emit('startTaskRead', res);
2619
2661
  this.$emit('start-task-read', res);
2620
2662
  this.circularReadParamsMap = circularReadParamsMap || {};
2621
- this.currentOrgName = currentOrgName;
2663
+ this.currentOrgName =
2664
+ this.nextOperateCheckType = nextOperateCheckType;
2622
2665
  this.currentNodeIsCircularReadNode =
2623
2666
  nodeInfoMap.nodeExtAttr.currentNodeIsCircularReadNode == 1;
2624
2667
  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
@@ -131,7 +131,7 @@
131
131
  </el-tab-pane>
132
132
  </template>
133
133
  </el-tabs>
134
- <es-dialog :title="title" :visible.sync="visible" size="lg">
134
+ <es-dialog :title="title" :visible.sync="visible" size="max">
135
135
  <iframe width="100%" height="100%" frameborder="0" :src="url"></iframe>
136
136
  </es-dialog>
137
137
  </div>
@@ -325,20 +325,16 @@ export default {
325
325
  this.isLoading = false;
326
326
  this.types[i].records = this.searchData(this.menus, keyWords);
327
327
  this.types[i].totalCount = this.types[i].records.length;
328
- this.types[i].pageCount = Math.ceil(
329
- this.types[i].records.length / this.pageSize
330
- );
331
- this.types[i].pageNum = 0;
328
+ this.types[i].pageCount = 1;
329
+ this.types[i].pageNum = 1;
332
330
  this.$set(this.loadings, item.id || String(i), false);
333
331
  this.$set(this.noMore, item.id || String(i), true);
334
332
  } else if (item.name == '应用' && this.apps.length) {
335
333
  this.isLoading = false;
336
334
  this.types[i].records = this.searchData(this.apps, keyWords);
337
335
  this.types[i].totalCount = this.types[i].records.length;
338
- this.types[i].pageCount = Math.ceil(
339
- this.types[i].records.length / this.pageSize
340
- );
341
- this.types[i].pageNum = 0;
336
+ this.types[i].pageCount = 1;
337
+ this.types[i].pageNum = 1;
342
338
  this.$set(this.loadings, item.id || String(i), false);
343
339
  this.$set(this.noMore, item.id || String(i), true);
344
340
  } else if (item.dataRequestUrl) {
@@ -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
@@ -39,9 +39,7 @@
39
39
  @close="deleteTag($event, selected[0])"
40
40
  >
41
41
  <span class="el-select__tags-text">
42
- {{
43
- isObject(selected[0]) ? selected[0][labelKey] : selected[0]
44
- }}
42
+ {{ getLabel(selected[0]) }}
45
43
  </span>
46
44
  </el-tag>
47
45
  <el-tag
@@ -181,7 +179,10 @@
181
179
  class="es-selector-dropdown-item"
182
180
  :class="{ 'es-selected': item.selected }"
183
181
  >
184
- <span>{{ item[labelKey] }}</span>
182
+ <span>
183
+ {{ getDep(item) }}
184
+ {{ item[labelKey] }}
185
+ </span>
185
186
  </li>
186
187
  </el-scrollbar>
187
188
  <p v-if="options.length == 0" class="el-select-dropdown__empty">
@@ -224,7 +225,7 @@
224
225
  </template>
225
226
  <script>
226
227
  import util from 'eoss-ui/src/utils/util.js';
227
- import { getSelectorOrgDetail } from 'eoss-ui/src/config/api.js';
228
+ import { getSelectorOrgDetail, getSysParam } from 'eoss-ui/src/config/api.js';
228
229
  import Clickoutside from 'eoss-element/src/utils/clickoutside';
229
230
  export default {
230
231
  name: 'EsSelector',
@@ -316,7 +317,14 @@ export default {
316
317
  type: [String, Number],
317
318
  default: -1
318
319
  },
320
+ //是否显示搜索框
319
321
  filterable: Boolean,
322
+ //搜索列表是否显示部门信息
323
+ showFilterListDep: {
324
+ type: Boolean,
325
+ default: true
326
+ },
327
+ //是否根据搜索值创建新的数据
320
328
  createable: Boolean,
321
329
  showButton: Boolean,
322
330
  button: Object,
@@ -458,10 +466,16 @@ export default {
458
466
  clearTimeout(this.timer);
459
467
  this.timer = setTimeout(this.handleSearch, 500);
460
468
  }
469
+ },
470
+ mix(val) {
471
+ if (val) {
472
+ this.getSysParam();
473
+ }
461
474
  }
462
475
  },
463
476
  created() {
464
477
  this.reference = this.$refs.esSelector;
478
+ this.mix && this.getSysParam();
465
479
  },
466
480
  mounted() {
467
481
  this.resetInputHeight();
@@ -478,8 +492,31 @@ export default {
478
492
  }
479
493
  },
480
494
  methods: {
481
- isObject(obj) {
482
- return util.isObject(obj);
495
+ getSysParam() {
496
+ if (util.getStorage('sysorgname') && util.getStorage('sysdepname')) {
497
+ return;
498
+ }
499
+ util
500
+ .ajax({
501
+ url: getSysParam,
502
+ params: {
503
+ paramCode: 'sysorgname,sysdepname'
504
+ }
505
+ })
506
+ .then((res) => {
507
+ if (res.rCode === 0) {
508
+ let params = res.results.split(',');
509
+ sessionStorage.setItem('sysorgname', params[0]);
510
+ sessionStorage.setItem('sysdepname', params[1]);
511
+ }
512
+ });
513
+ },
514
+ getDep(res) {
515
+ if (!this.showFilterListDep) {
516
+ return '';
517
+ }
518
+ const attr = res.attr ? JSON.parse(res.attr) : null;
519
+ return attr && attr.depShortName ? `[${attr.depShortName}]` : '';
483
520
  },
484
521
  getValueKey(obj) {
485
522
  return util.isObject(obj) ? obj[this.valueKey] : obj;
@@ -598,13 +635,14 @@ export default {
598
635
  },
599
636
  handleConfirm(res) {
600
637
  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);
638
+ let val = util.isObject(res) ? [res] : res;
639
+ if (this.mix) {
640
+ val.forEach((item, index) => {
641
+ val[index]._typeName = util.getTypeName(item.stype);
642
+ });
607
643
  }
644
+ this.$emit('input', val);
645
+ this.$emit('confirm', val, this.businessData);
608
646
  let inputChildNodes = this.$refs.reference
609
647
  ? this.$refs.reference.$el.childNodes
610
648
  : null;
@@ -666,10 +704,14 @@ export default {
666
704
  let tag = '';
667
705
  if (this.mix) {
668
706
  tag = util.getTypeName(res.stype);
707
+ } else if (this.showFilterListDep) {
708
+ tag = this.getDep(res);
669
709
  }
670
710
  return (
671
711
  tag +
672
- (res[this.labelKey]
712
+ (typeof res == 'string'
713
+ ? res
714
+ : res[this.labelKey]
673
715
  ? res[this.labelKey]
674
716
  : res.label || res[this.valueKey])
675
717
  );
@@ -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
  }