From a98611c848aaaf67f80539bfe3605b8b0eaefd0a Mon Sep 17 00:00:00 2001 From: wanggongfeng <1305282856@qq.com> Date: Thu, 9 Apr 2020 11:19:18 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=A8=E6=8A=A5=E9=A1=B5=E9=9D=A2=E8=B7=B3?= =?UTF-8?q?=E8=BD=AC=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/views/modules/workRecord/weekrecordinfo.vue | 6 +++--- src/views/modules/workRecord/weekrecordinfoDetail.vue | 11 ++++++++--- 2 files changed, 11 insertions(+), 6 deletions(-) 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(() => {})