|
@@ -116,10 +116,11 @@
|
|
|
</el-col>
|
|
|
</el-form>
|
|
|
</el-row>
|
|
|
- <!-- 附件-->
|
|
|
- <UpLoadComponent ref="uploadComponent"></UpLoadComponent>
|
|
|
+
|
|
|
|
|
|
</el-form>
|
|
|
+ <!-- 附件-->
|
|
|
+ <UpLoadComponent ref="uploadComponent"></UpLoadComponent>
|
|
|
|
|
|
</div>
|
|
|
</div>
|
|
@@ -141,6 +142,10 @@
|
|
|
formReadOnly: {
|
|
|
type: Boolean,
|
|
|
default: false
|
|
|
+ },
|
|
|
+ status: {
|
|
|
+ type: String,
|
|
|
+ default: ''
|
|
|
}
|
|
|
},
|
|
|
data () {
|
|
@@ -289,11 +294,14 @@
|
|
|
} else {
|
|
|
this.inputForm.auditPeopleList = ''
|
|
|
}
|
|
|
- if (this.formReadOnly === true && this.status === 'audit') {
|
|
|
- this.$refs.uploadComponent.newUpload('view', this.inputForm.workAttachmentDtoList, 'program_audit', null, null, true)
|
|
|
- }
|
|
|
- if (this.formReadOnly === true && this.status !== 'audit') {
|
|
|
+ if (this.formReadOnly === true && this.status === 'taskFormDetail') {
|
|
|
+ this.$refs.uploadComponent.newUpload('view', this.inputForm.workAttachmentDtoList, 'program_audit')
|
|
|
+ } else if (this.formReadOnly === true && this.status === 'audit') {
|
|
|
+ this.$refs.uploadComponent.newUpload('view', this.inputForm.workAttachmentDtoList, 'program_audit', null, null, true, JSON.parse(localStorage.getItem('user')).name)
|
|
|
+ } else if (this.formReadOnly === true && this.status !== 'audit' && this.status !== 'taskFormDetail') {
|
|
|
this.$refs.uploadComponent.newUpload('view', this.inputForm.workAttachmentDtoList, 'program_audit')
|
|
|
+ } else {
|
|
|
+ this.$refs.uploadComponent.newUpload('view', this.inputForm.workAttachmentDtoList, 'program_audit', null, null, true, JSON.parse(localStorage.getItem('user')).name)
|
|
|
}
|
|
|
this.loading = false
|
|
|
})
|