eoss-ui 0.7.17 → 0.7.18

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.
@@ -24,7 +24,8 @@
24
24
  multiple
25
25
  mix
26
26
  :disableds="otherOrgDisabledObjId"
27
- :where="{ filid: 'other' }"
27
+ :where="{ filid: 'other',roleid :selectorParams.roleid }"
28
+
28
29
  @change="disposeAppUnit($event, 'nextOtherOrgObjSelect')"
29
30
  :types="foreignOrgSelectorTabs"
30
31
  :params="foreignOrgSelectorParams"
@@ -52,6 +53,7 @@ export default {
52
53
  type: String,
53
54
  default: 'left'
54
55
  },
56
+ selectorParams: { type: Object, default: () => {return {}} },
55
57
  params: {
56
58
  type: Object,
57
59
  default: () => {}
@@ -60,7 +62,7 @@ export default {
60
62
  type: String,
61
63
  default: ''
62
64
  },
63
- showOther:{type:Boolean,default:true}
65
+ showOther: { type: Boolean, default: true }
64
66
  },
65
67
  data() {
66
68
  return {
@@ -82,6 +84,8 @@ export default {
82
84
  };
83
85
  },
84
86
  mounted() {
87
+ this.foreignOrgSelectorParams.roleid = this.currentOrgSelectorParams.roleid =
88
+ this.selectorParams.roleid;
85
89
  this.getFreeTaskCircularRead();
86
90
  },
87
91
  methods: {
@@ -105,7 +109,6 @@ export default {
105
109
  util.ajax(param).then((res) => {
106
110
  this.loading.close();
107
111
  if (res.rCode == 0 || res.status == 'success') {
108
-
109
112
  if (!this.simpleTips) {
110
113
  this.$alert('提交成功', '', {
111
114
  confirmButtonText: '确定',
@@ -117,8 +120,10 @@ export default {
117
120
  } else {
118
121
  this.$parent.$emit('success');
119
122
  }
120
- }else{
121
- this.$message.error(res.message || res.msg || '系统错误,请联系管理员!');
123
+ } else {
124
+ this.$message.error(
125
+ res.message || res.msg || '系统错误,请联系管理员!'
126
+ );
122
127
  }
123
128
  });
124
129
  },
@@ -52,7 +52,9 @@
52
52
  ? ['enterprise', 'employee']
53
53
  : ['enterprise']
54
54
  "
55
- :params="type == 'startDraf' || type == 'unionExamine'?otherParams:params"
55
+ :params="
56
+ type == 'startDraf' || type == 'unionExamine' ? otherParams : params
57
+ "
56
58
  :tabs="currentOrgTabsParam"
57
59
  :disabled="disabled"
58
60
  :onlyName="onlyName"
@@ -65,7 +67,7 @@
65
67
  >
66
68
  <SelectUser
67
69
  :nextUser="infoList.nextOtherOrgObj"
68
- :where="{ filid: 'other' }"
70
+ :where="{ filid: 'other',roleid :selectorParams.roleid }"
69
71
  :multiple="newMultiple"
70
72
  @change="changeSelectUser($event, 'nextOtherOrgObj')"
71
73
  :mix="otherMix"
@@ -81,13 +83,13 @@
81
83
  :tabs="foreignOrgTabsParam"
82
84
  />
83
85
  </el-form-item>
84
- <!-- :rules="[
86
+ <!-- :rules="[
85
87
  { required: false, message: `请选择通知方式`, trigger: 'blur' }
86
88
  ]" -->
87
89
  <el-form-item
88
90
  prop="noticeType"
89
91
  label="通知方式"
90
- v-show="infoList.noticeList.length != 0"
92
+ v-show="infoList.noticeList.length != 0"
91
93
  >
92
94
  <el-checkbox-group
93
95
  v-model="infoList.noticeType"
@@ -166,8 +168,9 @@ export default {
166
168
  defaultOpinion: { type: String, default: '' },
167
169
  oldOption: { type: String, default: '' },
168
170
  disabled: { type: Boolean, default: false },
169
- simpleTips: { type: Boolean, default: true },
170
- multiple: { type: Boolean, default: true }
171
+ simpleTips: { type: Boolean, default: true },
172
+ multiple: { type: Boolean, default: true },
173
+ selectorParams: { type: Object, default: () => {return {}} }
171
174
  },
172
175
  inheritAttrs: false,
173
176
  data() {
@@ -185,13 +188,13 @@ export default {
185
188
  opinion: ''
186
189
  },
187
190
  onlyName: '',
188
- unionSealData:[],
191
+ unionSealData: [],
189
192
  currentOrgTabs: [],
190
193
  foreignOrgTabs: [],
191
194
  foreignOrgTabsParam: {},
192
195
  currentOrgTabsParam: {},
193
196
  currentOrgProcessKey: '',
194
- otherOrgDisabledObjId:[],
197
+ otherOrgDisabledObjId: [],
195
198
  isSubFlow: true,
196
199
  choiceDeptId: '',
197
200
  choiceOrgId: '',
@@ -211,7 +214,8 @@ export default {
211
214
  mounted() {
212
215
  this.loading = true;
213
216
  this.newMultiple = this.multiple;
214
- this.opinion = this.oldOption
217
+ this.otherParams.roleid = this.params.roleid = this.selectorParams.roleid;
218
+ this.opinion = this.oldOption;
215
219
  this.getNodeType();
216
220
  if (this.type === 'taskReview') return this.getTaskReview();
217
221
  this.getInfo();
@@ -252,7 +256,7 @@ export default {
252
256
  const { message, status } = res;
253
257
  this.loading = false;
254
258
  if (status === 'success') {
255
- this.simpleTips && this.$message.success('提交成功');
259
+ this.simpleTips && this.$message.success('提交成功');
256
260
  this.quit(true);
257
261
  } else {
258
262
  this.$message.error(message || '系统错误,请联系管理员!');
@@ -279,7 +283,7 @@ export default {
279
283
  const {
280
284
  data: { initiatorUser, taskExamine }
281
285
  } = res;
282
- if(taskExamine.opinion){
286
+ if (taskExamine.opinion) {
283
287
  this.opinion = taskExamine.opinion;
284
288
  }
285
289
  this.infoList.nextOtherOrgObj.push(initiatorUser.userId);
@@ -341,8 +345,8 @@ export default {
341
345
  }
342
346
  }
343
347
  } = res;
344
- if(otherOrgDisabledObjId){
345
- this.otherOrgDisabledObjId = otherOrgDisabledObjId.split(',')
348
+ if (otherOrgDisabledObjId) {
349
+ this.otherOrgDisabledObjId = otherOrgDisabledObjId.split(',');
346
350
  }
347
351
  if (res.data.customizedConfig) {
348
352
  if (res.data.customizedConfig.currentOrgSelectorCustomized) {
@@ -362,7 +366,7 @@ export default {
362
366
  filid:
363
367
  param[i] == 'my'
364
368
  ? (this.params.filid = JSON.parse(
365
- util.getStorage('mainConfig')
369
+ util.getStorage('mainConfig')
366
370
  ).userModel.orgId)
367
371
  : param[i]
368
372
  };
@@ -370,11 +374,11 @@ export default {
370
374
  } else {
371
375
  if (this.type == 'takeAdvice') {
372
376
  this.params.filid = JSON.parse(
373
- util.getStorage('mainConfig')
377
+ util.getStorage('mainConfig')
374
378
  ).userModel.orgId;
375
379
  }
376
380
  }
377
-
381
+
378
382
  if (res.data.customizedConfig.foreignOrgSelectorCustomized) {
379
383
  this.otherMix =
380
384
  res.data.customizedConfig.foreignOrgSelectorSelectMix ==
@@ -397,7 +401,7 @@ export default {
397
401
  notificationMessageReadOnly == 'true';
398
402
  this.isSinglePage = taskExamine.isSinglePage;
399
403
  this.isSubFlow = taskExamine.isSubFlow;
400
- if(taskExamine.opinion){
404
+ if (taskExamine.opinion) {
401
405
  this.opinion = taskExamine.opinion;
402
406
  }
403
407
  this.choiceDeptId = choiceDeptId;
@@ -411,17 +415,16 @@ export default {
411
415
  }
412
416
  this.isOpinionRequired = isOpinionRequired;
413
417
  if (this.type == 'unionSeal') {
414
- let names = unionDispatchOrgName.split(',')
415
- let ids = unionDispatchOrgId.split(',')
416
- names.map((x,i) => {
417
- if(x){
418
+ let names = unionDispatchOrgName.split(',');
419
+ let ids = unionDispatchOrgId.split(',');
420
+ names.map((x, i) => {
421
+ if (x) {
418
422
  this.unionSealData.push({
419
423
  showname: x,
420
424
  showid: ids[i]
421
- })
422
-
425
+ });
423
426
  }
424
- })
427
+ });
425
428
  // this.onlyName = unionDispatchOrgName;
426
429
  // this.infoList.nextOtherOrgObj.push(unionDispatchOrgId);
427
430
  }
@@ -502,9 +505,12 @@ export default {
502
505
  data: {
503
506
  opinion,
504
507
  pendingId,
505
- nextOtherOrgObj:this.type == 'unionSeal'?this.unionSealData.map(x => x.showid).join(',') : Array.isArray(nextOtherOrgObj)
506
- ? nextOtherOrgObj.join(',')
507
- : nextOtherOrgObj,
508
+ nextOtherOrgObj:
509
+ this.type == 'unionSeal'
510
+ ? this.unionSealData.map((x) => x.showid).join(',')
511
+ : Array.isArray(nextOtherOrgObj)
512
+ ? nextOtherOrgObj.join(',')
513
+ : nextOtherOrgObj,
508
514
  nextCurrentOrgObj: Array.isArray(nextCurrentOrgObj)
509
515
  ? nextCurrentOrgObj.join(',')
510
516
  : nextCurrentOrgObj,
@@ -524,7 +530,7 @@ export default {
524
530
  const { message, status } = res;
525
531
  this.loading = false;
526
532
  if (status == 'success') {
527
- this.simpleTips && this.$message.success('提交成功');
533
+ this.simpleTips && this.$message.success('提交成功');
528
534
  this.quit(true);
529
535
  } else {
530
536
  this.$message.error(message || '系统错误,请联系管理员!');
@@ -570,7 +576,7 @@ export default {
570
576
  params: {
571
577
  ccCode: 'notification_type',
572
578
  userId: util.getStorage('userId'),
573
- pendingId:this.pendingId
579
+ pendingId: this.pendingId
574
580
  }
575
581
  })
576
582
  .then((res) => {
@@ -292,7 +292,7 @@
292
292
  :disableds="currentOrgDisabledObjId"
293
293
  @change="disposeAppUnit($event, 'nextCurrentOrgObjSelect')"
294
294
  :types="['department', 'employee']"
295
- :params="{ filid: userModel.orgId }"
295
+ :params="{ filid: userModel.orgId,roleid:selectorParams.roleid }"
296
296
  />
297
297
  </el-form-item>
298
298
  <el-form-item
@@ -304,11 +304,12 @@
304
304
  :nextUser="nextOtherOrgObjSelect"
305
305
  multiple
306
306
  mix
307
- :where="{ filid: 'other' }"
307
+ :where="{ filid: 'other',roleid:selectorParams.roleid }"
308
308
  :disableds="otherOrgDisabledObjId"
309
309
  @change="disposeAppUnit($event, 'nextOtherOrgObjSelect')"
310
310
  :types="['enterprise']"
311
- :params="{ filid: 'all' }"
311
+ :params="{ filid: 'all',roleid:selectorParams.roleid }"
312
+
312
313
  />
313
314
  </el-form-item>
314
315
  <el-form-item
@@ -835,6 +836,7 @@ export default {
835
836
  userSelectRange: {
836
837
  type: String
837
838
  },
839
+ selectorParams: { type: Object, default: () => {return {}} },
838
840
  defaultProcessShowStrategy: { type: String, default: '' },
839
841
  taskParams: {
840
842
  type: Object,
@@ -38,7 +38,7 @@
38
38
  </div>
39
39
  </div>
40
40
  <CommonOpinions
41
- v-if="showOpinion"
41
+ v-if="showOpinion"
42
42
  class="es-common-opinions"
43
43
  v-show="!shrink"
44
44
  ref="commonOpinions"
@@ -85,7 +85,7 @@
85
85
  :businessId="businessIds"
86
86
  :label-position="formLabelPosition"
87
87
  ref="circulate"
88
- :selectorParams="params"
88
+ :selectorParams="selectorParams"
89
89
  :pending-id="pendingId"
90
90
  :showBtn="false"
91
91
  :formTitle="formTitle"
@@ -129,6 +129,7 @@
129
129
  :appId="resetAppId"
130
130
  :params="param"
131
131
  :showOther="showOther"
132
+ :selectorParams="selectorParams"
132
133
  :formLabelPosition="formLabelPosition"
133
134
  :simpleTips="simpleTips"
134
135
  />
@@ -718,7 +719,7 @@
718
719
  :processDefinitionId="nodeInfo.nextNode"
719
720
  :simpleTips="simpleTips"
720
721
  :showBtn="false"
721
- :selectorParams="params"
722
+ :selectorParams="selectorParams"
722
723
  :oldOption="value"
723
724
  @cancel="closeProcess($event, 'circulateVisible')"
724
725
  />
@@ -813,7 +814,7 @@
813
814
  class="es-button-agree-save"
814
815
  v-if="!isHideTemporarySave"
815
816
  @click="saveInfo()"
816
- >暂存</el-button
817
+ >{{ saveButtonName }}</el-button
817
818
  >
818
819
  </div>
819
820
  <div
@@ -835,7 +836,7 @@
835
836
  :style="btnStyle"
836
837
  @click="item.event === 'sub' ? subProcess() : saveInfo(false, item)"
837
838
  >
838
- {{ item.text }}
839
+ {{ item.event == 'save' ? saveButtonName : item.text }}
839
840
  </el-button>
840
841
 
841
842
  <div
@@ -886,7 +887,7 @@
886
887
  item.event === 'sub' ? subProcess() : saveInfo(false, item)
887
888
  "
888
889
  >
889
- {{ item.text }}
890
+ {{ item.event == 'save' ? saveButtonName : item.text }}
890
891
  </el-button>
891
892
  <el-dropdown
892
893
  v-if="
@@ -961,7 +962,7 @@
961
962
  :businessId="businessId"
962
963
  :processDefinitionId="nodeInfo.nextNode"
963
964
  :simpleTips="simpleTips"
964
- :selectorParams="params"
965
+ :selectorParams="selectorParams"
965
966
  :oldOption="value"
966
967
  @cancel="closeProcess($event, 'circulateVisible')"
967
968
  />
@@ -1096,6 +1097,7 @@
1096
1097
  :pendingId="pendingId"
1097
1098
  :defaultOpinion="nodeDefaultSubmitOpinion"
1098
1099
  :oldOption="value"
1100
+ :selectorParams="selectorParams"
1099
1101
  :type="flowType"
1100
1102
  :multiple="flowMultiple"
1101
1103
  :disabled="flowDisabled"
@@ -1237,6 +1239,7 @@ export default {
1237
1239
  type: Object,
1238
1240
  default: () => {}
1239
1241
  },
1242
+ selectorParams: { type: Object, default: () => {return {}} },
1240
1243
  width: {
1241
1244
  type: String
1242
1245
  },
@@ -1248,7 +1251,7 @@ export default {
1248
1251
  type: [String, Number],
1249
1252
  default: 10
1250
1253
  },
1251
- showOther:{
1254
+ showOther: {
1252
1255
  type: Boolean,
1253
1256
  default: true
1254
1257
  },
@@ -1261,7 +1264,7 @@ export default {
1261
1264
  endMessage: '',
1262
1265
  isHideTemporarySave: false,
1263
1266
  oldNextOperate: '',
1264
- showOpinion:true,
1267
+ showOpinion: true,
1265
1268
  taskOperationShiftedNodeList: null,
1266
1269
  currentNodeEnableItemHandleDescription: false,
1267
1270
  startFlowPageEmbeddedIntoStartFlowIndex: false,
@@ -1445,6 +1448,7 @@ export default {
1445
1448
  otherOrgName: '', //外单位名称
1446
1449
  needRetrialAuth: false, //是否二次鉴权
1447
1450
  msgTypeCount: 0,
1451
+ saveButtonName: '暂存',
1448
1452
  nodeInfo: {
1449
1453
  nextNode: '',
1450
1454
  nextUser: '',
@@ -1463,6 +1467,8 @@ export default {
1463
1467
  this.currentOrgSelectorParams.filid = JSON.parse(
1464
1468
  util.getStorage('mainConfig')
1465
1469
  ).userModel.orgId;
1470
+ this.foreignOrgSelectorParams.roleid = this.currentOrgSelectorParams.roleid =
1471
+ this.selectorParams.roleid;
1466
1472
  this.nextNode.nextNodeId = this.nextNodeId;
1467
1473
  if (!this.isFlow) {
1468
1474
  this.getInfo();
@@ -1530,8 +1536,7 @@ export default {
1530
1536
  }
1531
1537
  }
1532
1538
  if (this.nodeInfo.nextNode) {
1533
-
1534
- this.handleChange(this.nodeInfo.nextNode,true);
1539
+ this.handleChange(this.nodeInfo.nextNode, true);
1535
1540
  }
1536
1541
  }
1537
1542
  },
@@ -1651,6 +1656,9 @@ export default {
1651
1656
  };
1652
1657
  util.ajax(params).then((res) => {
1653
1658
  if (res.status == 'success') {
1659
+ if (res.data.temporarySaveButtonName) {
1660
+ this.saveButtonName = res.data.temporarySaveButtonName;
1661
+ }
1654
1662
  this.isHideTemporarySave =
1655
1663
  res.data.nodeExtAttr.isHideTemporarySave == 1;
1656
1664
  this.isBanInputOpinion = res.data.nodeExtAttr.isBanInputOpinion;
@@ -1668,9 +1676,9 @@ export default {
1668
1676
  // }
1669
1677
  this.optionsKey++;
1670
1678
  this.isOpinionRequired = res.data.nodeExtAttr.isOpinionRequired == 1;
1671
- this.showOpinion = false
1679
+ this.showOpinion = false;
1672
1680
  setTimeout(() => {
1673
- this.showOpinion = true
1681
+ this.showOpinion = true;
1674
1682
  }, 0);
1675
1683
  }
1676
1684
  });
@@ -1715,8 +1723,8 @@ export default {
1715
1723
  this.flowSuccess(true);
1716
1724
  // this.$emit('success');
1717
1725
  },
1718
- handleChange(val,isForStartFlow) {
1719
- this.getNodeInfoForStartFlow(val,isForStartFlow);
1726
+ handleChange(val, isForStartFlow) {
1727
+ this.getNodeInfoForStartFlow(val, isForStartFlow);
1720
1728
  this.$parent.$emit('flowChange', val);
1721
1729
  },
1722
1730
  getsubProcessColumns() {
@@ -2895,6 +2903,7 @@ export default {
2895
2903
  //pc返回数据
2896
2904
 
2897
2905
  this.loading.close();
2906
+
2898
2907
  if (res.status === 'success') {
2899
2908
  const {
2900
2909
  data: {
@@ -2903,6 +2912,7 @@ export default {
2903
2912
  isCustomPreset,
2904
2913
  presetTaskNodeKeyStr,
2905
2914
  presetTaskNodeMap,
2915
+ temporarySaveButtonName,
2906
2916
  circularReadParamsMap,
2907
2917
  isPreset,
2908
2918
  choiceOrgId,
@@ -2934,6 +2944,9 @@ export default {
2934
2944
  isCanPreAddSign
2935
2945
  }
2936
2946
  } = res;
2947
+ if (temporarySaveButtonName) {
2948
+ this.saveButtonName = temporarySaveButtonName;
2949
+ }
2937
2950
  if (simpleTips != undefined) {
2938
2951
  this.simpleTips = simpleTips;
2939
2952
  }
@@ -3201,6 +3214,10 @@ export default {
3201
3214
  this.$message.error(res.message || '系统错误,请联系管理员!');
3202
3215
  }
3203
3216
  }
3217
+ this.showOpinion = false;
3218
+ setTimeout(() => {
3219
+ this.showOpinion = true;
3220
+ }, 0);
3204
3221
  })
3205
3222
  .catch((err) => {
3206
3223
  this.loading.close();
@@ -3314,7 +3331,7 @@ export default {
3314
3331
  }
3315
3332
  }
3316
3333
  if (this.nodeInfo.nextNode) {
3317
- this.handleChange(this.nodeInfo.nextNode,true);
3334
+ this.handleChange(this.nodeInfo.nextNode, true);
3318
3335
  }
3319
3336
  if (
3320
3337
  this.showCirculate != undefined &&
@@ -3552,7 +3569,8 @@ export default {
3552
3569
  this.$refs['nextNode'].validate(async (valid) => {
3553
3570
  if (valid) {
3554
3571
  if (this.isFlow) {
3555
- if(this.isOpinionRequired && !this.$refs.commonOpinions.validate()) return
3572
+ if (this.isOpinionRequired && !this.$refs.commonOpinions.validate())
3573
+ return;
3556
3574
  if (this.directCreateCircularReadWhenFlowStarted) {
3557
3575
  this.circulateVisible = true;
3558
3576
  } else {
@@ -68,15 +68,12 @@
68
68
  :hidden="!ele.tips"
69
69
  :max="99"
70
70
  :value="typeof ele.tips !== 'boolean' ? ele.tips : 0"
71
- ><i
72
- :class="[
73
- unicode(ele.icons) ? ele.icons : 'es-icon',
74
- 'es-sub-system-icon',
75
- { 'es-icon-yingyong': !ele.icons }
76
- ]"
77
- v-html="unicode(ele.icons) ? '' : ele.icons"
78
- ></i
79
- ></el-badge>
71
+ >
72
+ <es-icon
73
+ class="es-sub-system-icon"
74
+ :contents="ele.icons || 'es-icon-yingyong'"
75
+ ></es-icon>
76
+ </el-badge>
80
77
  <div class="es-sub-system-title">{{ ele.text }}</div>
81
78
  </li>
82
79
  </ul>
@@ -88,27 +85,33 @@
88
85
  :class="item.icon"
89
86
  ></div>
90
87
  </el-popover>
91
- <el-badge
92
- class="es-badge"
93
- v-else-if="item.type === 'notice'"
94
- :value="noticeNum"
95
- :max="99"
96
- :hidden="noticeNum < 1"
88
+ <el-tooltip
89
+ v-else
90
+ :key="item.type"
91
+ effect="dark"
92
+ :content="item.title"
93
+ placement="bottom"
97
94
  >
98
- <div
95
+ <el-badge
96
+ class="es-badge"
97
+ v-if="item.type === 'notice'"
98
+ :value="noticeNum"
99
+ :max="99"
100
+ :hidden="noticeNum < 1"
101
+ >
102
+ <es-icon
103
+ class="es-handler-icon"
104
+ @click.stop="handleClick(item)"
105
+ :contents="item.icon"
106
+ ></es-icon>
107
+ </el-badge>
108
+ <es-icon
109
+ v-else
99
110
  class="es-handler-icon"
100
- :title="item.title"
101
- :class="item.icon"
102
111
  @click.stop="handleClick(item)"
103
- ></div>
104
- </el-badge>
105
- <div
106
- v-else
107
- class="es-handler-icon"
108
- :title="item.title"
109
- :class="item.icon"
110
- @click.stop="handleClick(item)"
111
- ></div>
112
+ :contents="item.icon"
113
+ ></es-icon>
114
+ </el-tooltip>
112
115
  </li>
113
116
  </template>
114
117
  </ul>
@@ -362,6 +365,7 @@ export default {
362
365
  return len;
363
366
  },
364
367
  handleClick(res) {
368
+ console.log(res);
365
369
  const { type, event } = res;
366
370
  if (event) {
367
371
  event();
@@ -65,7 +65,7 @@ export default {
65
65
  } else {
66
66
  this.code = val.code;
67
67
  this.className = val.class || val.className;
68
- this.event = val.events;
68
+ val.events && (this.event = val.events);
69
69
  }
70
70
  }
71
71
  }
@@ -77,11 +77,14 @@ export default {
77
77
  url: '',
78
78
  code: '',
79
79
  className: '',
80
- event: {}
80
+ event: { click: this.clickd }
81
81
  };
82
82
  },
83
83
  created() {},
84
84
  methods: {
85
+ clickd(e) {
86
+ this.$emit('click', e);
87
+ },
85
88
  unicode(res) {
86
89
  if (!res) {
87
90
  return false;
@@ -314,7 +314,6 @@ import store from 'eoss-ui/src/utils/store';
314
314
  import util from 'eoss-ui/src/utils/util';
315
315
  const isIE = /MSIE|Trident/.test(navigator.userAgent);
316
316
  const log = util.getParams('console');
317
- const appCode = util.getParams('appCode') || util.getParams('appcode');
318
317
  export default {
319
318
  name: 'MainDefault',
320
319
  inheritAttrs: false,
@@ -607,9 +606,6 @@ export default {
607
606
  isConsole() {
608
607
  return log ? true : this.console;
609
608
  },
610
- menuCode() {
611
- return appCode || this.appCode;
612
- },
613
609
  onlineUrl() {
614
610
  if (this.onlineView) {
615
611
  return typeof this.onlineView == 'string' ? this.onlineView : '';
@@ -1051,7 +1047,7 @@ export default {
1051
1047
  let jump = sessionStorage.getItem('jump');
1052
1048
  if (
1053
1049
  (!applicationid &&
1054
- !this.menuCode &&
1050
+ !this.appCode &&
1055
1051
  (!jump || !this.isHistory) &&
1056
1052
  (hash === '#/' || hash === '#/main')) ||
1057
1053
  jump == this.homePage
@@ -1297,7 +1293,7 @@ export default {
1297
1293
  this.setMenu(this.menus);
1298
1294
  return;
1299
1295
  }
1300
- let param = this.menuCode ? { menuCode: this.menuCode } : {};
1296
+ let param = this.appCode ? { menuCode: this.appCode } : {};
1301
1297
  let params = { ...this.param, ...param };
1302
1298
  util
1303
1299
  .ajax({ url: this.action, params: params })
@@ -13,6 +13,7 @@
13
13
  <main-default
14
14
  v-else
15
15
  :new-version="multiple"
16
+ :appCode="appCode"
16
17
  :scene="layout"
17
18
  v-bind="$attrs"
18
19
  ref="main"
@@ -111,7 +112,7 @@ export default {
111
112
  }
112
113
  this.params = util.getParams() || {};
113
114
  this.sysCode = this.params.sysCode;
114
- this.appCode = this.params.appCode;
115
+ this.appCode = this.params.appCode || this.params.appcode;
115
116
  if (
116
117
  this.params.cookie &&
117
118
  (this.params.cookie == true || this.params.cookie == 1)