Skip to content

Commit

Permalink
feat: 适配后端逻辑变化的调整--story=115998324
Browse files Browse the repository at this point in the history
  • Loading branch information
q15971095971 committed Sep 29, 2024
1 parent f94247b commit 7be694f
Showing 1 changed file with 5 additions and 11 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@
<!-- 2.版本首次在分组上线的情况,显示审批,点击审批直接通过 -->

<template
v-if="
v-else-if="
row.audit.spec.status === APPROVE_STATUS.PendApproval &&
row.strategy.approver_progress.includes(userInfo.username)
">
Expand All @@ -152,30 +152,24 @@
</template>
<!-- 审批驳回/已撤销才可显示 -->
<bk-button
v-if="
[APPROVE_STATUS.RejectedApproval, APPROVE_STATUS.RevokedPublish].includes(row.audit.spec.status)
v-else-if="
[APPROVE_STATUS.RejectedApproval, APPROVE_STATUS.RevokedPublish].includes(row.audit.spec.status) &&
row.app.creator === userInfo.username
"
class="action-btn"
text
theme="primary"
@click="retrySubmission(row)">
{{ t('再次提交') }}
</bk-button>
<template v-else>--</template>
<!-- 待上线/去审批状态 才显示更多操作;目前仅创建者有撤销权限 -->
<MoreActions
v-if="
[APPROVE_STATUS.PendApproval, APPROVE_STATUS.PendPublish].includes(row.audit.spec.status) &&
row.app.creator === userInfo.username
"
@handle-undo="handleConfirm(row, $event)" />
<!-- 当前登录用户在审批人和创建者名单都没有时,表示无权操作此条记录 -->
<template
v-if="
row.audit.spec.status === APPROVE_STATUS.AlreadyPublish ||
!`${row.strategy.approver_progress},${row.app.creator}`.includes(userInfo.username)
">
--
</template>
</div>
<template v-else>--</template>
</template>
Expand Down

0 comments on commit 7be694f

Please sign in to comment.