修改办公模块预览组件,屏蔽通过条件下依然可以文件上传问题

This commit is contained in:
2026-04-15 16:52:27 +08:00
parent 5e25d68faf
commit 9c64dd8451
6 changed files with 109 additions and 132 deletions

View File

@@ -1,5 +1,5 @@
<template>
<BizDetailContainer :bizId="currentBizId" bizType="appropriation">
<BizDetailContainer :bizId="currentBizId" bizType="appropriation" :preview="preview">
<template slot-scope="{ detail }">
<div>
<!-- 拨款金额信息 -->
@@ -59,7 +59,8 @@ export default {
name: 'AppropriationDetail',
props: {
bizId: { type: [String, Number], default: null },
embedded: { type: Boolean, default: false }
embedded: { type: Boolean, default: false },
preview: { type: Boolean, default: false }
},
components: {
FilePreview,
@@ -114,8 +115,7 @@ export default {
return this.detail.status === 'pending' && (this.currentTask?.assigneeUserName === this.$store.getters.name || this.currentTask?.assigneeUserId === this.$store.getters.id)
},
canWithdraw () {
return false;
return this.detail.status === 'pending' && this.detail.createBy === this.$store.getters.name
return false
}
},
created () {