n20-common-lib 2.21.3 → 2.21.5

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "n20-common-lib",
3
- "version": "2.21.3",
3
+ "version": "2.21.5",
4
4
  "private": false,
5
5
  "scripts": {
6
6
  "serve": "vue-cli-service serve",
@@ -184,7 +184,7 @@
184
184
  <el-button v-if="authList.includes('approval') && nextApproval && nextBtn" type="primary" @click="approvalNext">
185
185
  {{ btnsNames['approval'] }}{{ '并审批下一条' | $lc }}</el-button
186
186
  >
187
- <el-button v-if="showApprovalTo" type="primary" @click="approvalToV = true"
187
+ <el-button v-if="showApprovalTo && showApproveTo" type="primary" @click="approvalToV = true"
188
188
  >{{ btnsNames['approval'] }}{{ '至' | $lc }}</el-button
189
189
  >
190
190
  <el-button v-if="authList.includes('rejectTo')" plain @click="rejectToB">{{ btnsNames['rejectTo'] }}</el-button>
@@ -459,6 +459,8 @@ export default {
459
459
  data() {
460
460
  this.msgisSync = !!this.$listeners['update:message']
461
461
  return {
462
+ // 是否显示批准至(读取门户配置)
463
+ showApproveTo: true,
462
464
  attributes: undefined,
463
465
  isWyfk: false,
464
466
  nextEgwOutgoingNodeId: undefined,
@@ -512,7 +514,7 @@ export default {
512
514
  pass: this.$l('通过'),
513
515
  refuse: this.$l('拒绝'),
514
516
  takeOff: this.$l('请假'),
515
- reject: this.$l('驳回至发起人'),
517
+ reject: this.$l('驳回至申请人'),
516
518
  rejectPre: this.$l('驳回至上一节点'),
517
519
  approval: this.$l('批 准'),
518
520
  discard: this.$l('作 废'),
@@ -646,8 +648,9 @@ export default {
646
648
  // 意见是否必填
647
649
  getConfiguration() {
648
650
  getJsonc('portal/server-config.jsonc', null, true)
649
- .then(({ opinionRequired }) => {
651
+ .then(({ opinionRequired, showApproveTo }) => {
650
652
  this.requiredC = opinionRequired ?? this.required
653
+ this.showApproveTo = showApproveTo ?? true
651
654
  // 读取该工作流是否意见必填
652
655
  if (this.$route.query.remarkIsMust !== undefined) {
653
656
  this.requiredC = this.$route.query.remarkIsMust === '1'
@@ -738,9 +741,10 @@ export default {
738
741
  }
739
742
  })
740
743
  },
741
- // 获取是否显示驳回至按钮
744
+ // 获取是否显示驳回至批准按钮
742
745
  getShowApprovalTo() {
743
746
  if (this.showBtn && this.$route.query.state === '2') {
747
+ // 再读一个开关 false false
744
748
  axios
745
749
  .get(`/bems/activiti/sample/getTaskMoveVos/${this.$route.query.taskId}/1`, null, {
746
750
  noMsg: true
@@ -904,7 +908,7 @@ export default {
904
908
  if (!this.showFlowDialog) {
905
909
  this.beforeFn(this.beforeReject, () => {
906
910
  axios.post('/bems/activiti/admin/todo/reject', this.getParam()).then(({ data }) => {
907
- this.thenMsg(data, this.authList.includes('refuse') ? $lc('拒绝') : $lc('驳回至发起人'))
911
+ this.thenMsg(data, this.authList.includes('refuse') ? $lc('拒绝') : $lc('驳回至申请人'))
908
912
  })
909
913
  })
910
914
  }
@@ -913,7 +917,7 @@ export default {
913
917
  this.showFlowDialog = false
914
918
  this.beforeFn(this.beforeReject, () => {
915
919
  axios.post('/bems/activiti/admin/todo/reject', this.getParam()).then(({ data }) => {
916
- this.thenMsg(data, $lc('驳回至发起人'))
920
+ this.thenMsg(data, $lc('驳回至申请人'))
917
921
  })
918
922
  })
919
923
  },
@@ -300,7 +300,7 @@ export default {
300
300
  this.svgW.querySelector(`[data-element-id="${from}"]`).classList.add('activiti-node-reject')
301
301
  if (type === '1') {
302
302
  this.svgW.querySelector(`[data-element-id="${to}"]`).classList.add('activiti-node-reject')
303
- this.setRejectLink(from, to, $lc('驳回至发起人'))
303
+ this.setRejectLink(from, to, $lc('驳回至申请人'))
304
304
  } else if (type === '2') {
305
305
  this.setRejectLink(from, to, $lc('驳回至上一步'))
306
306
  } else if (type === '3') {
@@ -346,7 +346,7 @@ export default {
346
346
  this.svgW.querySelector(`[data-element-id="${from}"]`).classList.add('activiti-node-reject')
347
347
  if (type === '1') {
348
348
  this.svgW.querySelector(`[data-element-id="${to}"]`).classList.add('activiti-node-reject')
349
- this.setRejectLink(from, to, $lc('驳回至发起人'))
349
+ this.setRejectLink(from, to, $lc('驳回至申请人'))
350
350
  } else if (type === '2') {
351
351
  this.setRejectLink(from, to, $lc('驳回至上一步'))
352
352
  } else if (type === '3') {