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 +1 -1
- package/src/components/ApprovalButtons/index.vue +10 -6
- package/src/components/ApprovalRecord/approvalImgPro/child.vue +1 -1
- package/src/components/ApprovalRecord/approvalImgPro/index.vue +1 -1
- package/theme/blue.css +1 -1
- package/theme/cctcRed.css +1 -1
- package/theme/green.css +1 -1
- package/theme/lightBlue.css +1 -1
- package/theme/orange.css +1 -1
- package/theme/purple.css +1 -1
- package/theme/red.css +1 -1
- package/theme/yellow.css +1 -1
package/package.json
CHANGED
|
@@ -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') {
|