update 流程按钮调整

This commit is contained in:
danshihao
2023-12-04 09:34:33 +08:00
parent 1db81491a6
commit 513c812ea9
10 changed files with 89 additions and 87 deletions
@@ -85,13 +85,13 @@
<div class="detail-page-bottom-operate-box">
<!--未参加-->
<a-button v-if="1 & btn" type="primary" :loading="loading" @click="handleUncommitted" ghost icon="arrow-up">{{ $t('turnTo') }}</a-button>
<a-button v-if="btn.includes('uncommitted')" type="primary" :loading="loading" @click="handleUncommitted" ghost>{{ $t('workCenter.postMeetingManageProcess.uncommitted') }}</a-button>
<!--转办-->
<a-button v-if="2 & btn" type="primary" :loading="loading" @click="handleTurnTo" ghost icon="arrow-up">{{ $t('turnTo') }}</a-button>
<a-button v-if="btn.includes('transfer')" type="primary" :loading="loading" @click="handleTurnTo" ghost icon="arrow-up">{{ $t('turnTo') }}</a-button>
<!--保存-->
<a-button v-if="4 & btn" type="primary" :loading="loading" @click="handleSave" ghost><i class="iconfont icon-save" />{{ $t('preservation') }}</a-button>
<a-button v-if="btn.includes('save')" type="primary" :loading="loading" @click="handleSave" ghost><i class="iconfont icon-save" />{{ $t('preservation') }}</a-button>
<!--提交-->
<a-button v-if="8 & btn" type="primary" :loading="loading" @click="handleSubmit" icon="upload">{{ $t('submit') }}</a-button>
<a-button v-if="btn.includes('submit')" type="primary" :loading="loading" @click="handleSubmit" icon="upload">{{ $t('submit') }}</a-button>
</div>
<!--转办选人-->
<user-select-modal ref="userSelectModal" check-required @change="continueTurnTo" />
@@ -149,7 +149,7 @@ export default {
currentNodeName: '',
// 项目id
projectId: '',
btn: 0,
btn: [],
validatorRules: {
// 流程名称
processName: {
@@ -200,11 +200,11 @@ export default {
this.currentNode = nodeId || PostMeetingManage.initiate.value
this.currentNodeName = taskName || PostMeetingManage.initiate.text
this.projectId = projectId
this.btn = PostMeetingManage.propertyOfValue('btn', this.currentNode) || 0
this.btn = PostMeetingManage.propertyOfValue('btn', this.currentNode) || []
// 如果有nodeId,但是匹配不到任何节点,就是是增加的审批节点
if (nodeId && !PostMeetingManage.keyOfValue(nodeId)) {
// 审批和同意按钮
this.btn = 8
// 提交按钮
this.btn = ['submit']
}
// 查询人员信息
this.getPersonInfoStructure(this.processKey, () => {