[update] 是否显示加签按钮用待办列表的countersignFlag字段判断

This commit is contained in:
lideqin
2024-07-30 10:35:24 +08:00
parent 5cc3bda70f
commit d1c00d6809
4 changed files with 7 additions and 6 deletions
@@ -128,6 +128,8 @@
</div>
<!-- 操作按钮 -->
<div v-if="!isLook" class="detail-page-bottom-operate-box">
<!-- 加签 -->
<a-button v-if="$route.query.countersignFlag + '' === '1'" type="primary" ghost :loading="loading" @click="handleAddSign" icon="plus">{{ $t('countersign') }}</a-button>
<!-- 发起节点 -->
<template v-if="currentNode === 1">
<!-- 保存 -->
@@ -136,8 +138,6 @@
<a-button type="primary" :loading="loading" @click="handleStart" icon="upload">{{ $t('submit') }}</a-button>
</template>
<template v-else>
<!-- 加签 -->
<a-button type="primary" ghost :loading="loading" @click="handleAddSign" icon="plus">{{ $t('countersign') }}</a-button>
<!-- 转办 -->
<a-button type="primary" ghost :loading="loading" @click="handleTurnTo" icon="arrow-up">{{ $t('turnTo') }}</a-button>
<!-- 保存 -->
@@ -99,6 +99,8 @@
</div>
<!-- 操作按钮 -->
<div v-if="!isLook" class="detail-page-bottom-operate-box">
<!-- 加签 -->
<a-button v-if="$route.query.countersignFlag + '' === '1'" type="primary" ghost :loading="loading" @click="handleAddSign" icon="plus">{{ $t('countersign') }}</a-button>
<!-- 发起节点 -->
<template v-if="currentNode === 1">
<!-- 保存 -->
@@ -107,8 +109,6 @@
<a-button type="primary" :loading="loading" @click="handleStart" icon="upload">{{ $t('submit') }}</a-button>
</template>
<template v-else>
<!-- 加签 -->
<a-button type="primary" ghost :loading="loading" @click="handleAddSign" icon="plus">{{ $t('countersign') }}</a-button>
<!-- 转办 -->
<a-button type="primary" ghost :loading="loading" @click="handleTurnTo" icon="arrow-up">{{ $t('turnTo') }}</a-button>
<!-- 保存 -->
@@ -251,6 +251,7 @@ export default {
query.processInstanceId = record.processInstanceId // 流程实例id,必须传人员信息右侧表格查询需要用
query.nodeId = record.nodeId // 节点的id
query.prcType = record.prcType // 流程类型,加签需要传
query.countersignFlag = record.countersignFlag // 是否加签节点
this.$router.push({
path: path,
query: query
@@ -130,6 +130,8 @@
</div>
<!-- 操作按钮 -->
<div v-if="!isLook" class="detail-page-bottom-operate-box">
<!-- 加签 -->
<a-button v-if="$route.query.countersignFlag + '' === '1'" type="primary" ghost :loading="loading" @click="handleAddSign" icon="plus">{{ $t('countersign') }}</a-button>
<!-- 发起节点 -->
<template v-if="currentNode === 1">
<!-- 保存 -->
@@ -177,8 +179,6 @@
<a-button type="danger" ghost :loading="loading" @click="handleReject" icon="close">{{ $t('reject') }}</a-button>
</template>
<template v-else>
<!-- 加签 -->
<a-button type="primary" ghost :loading="loading" @click="handleAddSign" icon="plus">{{ $t('countersign') }}</a-button>
<!-- 转办 -->
<a-button type="primary" ghost :loading="loading" @click="handleTurnTo" icon="arrow-up">{{ $t('turnTo') }}</a-button>
<!-- 保存 -->