diff --git a/src/views/modules/workRecord/weekrecordinfo.vue b/src/views/modules/workRecord/weekrecordinfo.vue index b2ffd65a..1bdebf50 100644 --- a/src/views/modules/workRecord/weekrecordinfo.vue +++ b/src/views/modules/workRecord/weekrecordinfo.vue @@ -49,7 +49,7 @@ {{ $t('add') }} --> - {{ $t('add') }} + {{ $t('add') }} {{ $t('export') }} @@ -73,8 +73,8 @@ diff --git a/src/views/modules/workRecord/weekrecordinfoDetail.vue b/src/views/modules/workRecord/weekrecordinfoDetail.vue index f4d31a2a..0c5b7a56 100644 --- a/src/views/modules/workRecord/weekrecordinfoDetail.vue +++ b/src/views/modules/workRecord/weekrecordinfoDetail.vue @@ -132,8 +132,13 @@ export default { // this.uploadFileUrl = `http://219.146.91.110:10000/epdc-api/oss/file/uploadAllFile?token=${Cookies.get('token')}` }, mounted () { - this.pageDisabled = this.$route.query.disabled - this.hideUpload = this.$route.query.disabled + if (this.$route.query.disabled === '0') { + this.pageDisabled = false + this.hideUpload = false + } else { + this.pageDisabled = true + this.hideUpload = true + } this.getFormDataInfo() }, methods: { @@ -239,7 +244,7 @@ export default { ...res.data } // 判断是否存在九张照片,九张照片隐藏上传操作按钮(非查看状态下) - if (!this.$route.query.disabled) { + if (this.$route.query.disabled === '0') { this.hideUpload = this.dataForm.images.length >= 9 } }).catch(() => {})