修改办公模块预览组件,屏蔽通过条件下依然可以文件上传问题
This commit is contained in:
@@ -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 () {
|
||||
|
||||
Reference in New Issue
Block a user