From cbb07baa7fec84a79914651daa22ba214f4e0260 Mon Sep 17 00:00:00 2001
From: 阳洁 <2077506045@qq.com>
Date: 星期三, 31 一月 2024 17:36:27 +0800
Subject: [PATCH] Merge branch 'APIFan' of http://47.107.238.89:10801/r/TAI_OTS_BROWSER into APIFan
---
src/views/exam/paper/finish.vue | 46 +++++++++++++++++++++++++++++-----------------
1 files changed, 29 insertions(+), 17 deletions(-)
diff --git a/src/views/exam/paper/finish.vue b/src/views/exam/paper/finish.vue
index 053124f..1c7ac73 100644
--- a/src/views/exam/paper/finish.vue
+++ b/src/views/exam/paper/finish.vue
@@ -4,14 +4,17 @@
<el-header class="align-center" style="height: 0px; margin: 8%;">
</el-header>
<el-main class="align-center">
- <H1 v-if="content!==null && content.trim()!==''">{{content}}</H1>
- <H1 v-else>{{$t('finishMsg')}}</H1>
+ <H2 v-if="content!==null && content.trim()!==''">{{content}}</H2>
+ <H2 v-else>{{$t('finishMsg')}}</H2>
<!-- 鏂板涓嬭浇鎶ュ憡鎻愮ず璇� -->
- <H1 v-if ="downDisable">{{$t('finishPersonalityDownInfo')}}</H1>
+ <H2 v-if ="downDisable">{{$t('finishPersonalityDownInfo')}}</H2>
<el-button type="danger" v-if ="downDisable" @click="downReport" round>{{$t('down')}}</el-button>
<!-- 鏂板棰勮鎻愮ず璇� -->
- <H1 v-if ="viewDisable">{{$t('finishViewReportInfo')}}</H1>
- <el-button type="danger" v-if ="viewDisable" @click="viewReport" round>{{$t('view')}}</el-button>
+<!-- <H1 v-if ="viewDisable">{{$t('finishViewReportInfo')}}</H1>-->
+<!-- <el-button type="danger" v-if ="viewDisable" @click="viewReport" round>{{$t('view')}}</el-button>-->
+ <!-- -->
+ <H2 v-if ="type == 'CIAQ'">{{$t('finishViewReportInfo')}}</H2>
+ <el-button type="danger" v-if ="type == 'CIAQ'" @click="viewReportH5" round>{{$t('view')}}</el-button>
</el-main>
</el-container>
</div>
@@ -46,17 +49,17 @@
}
})
- // 鏌ヨ鎶ュ憡鏂囦欢鍚�
- examPaperApi.selectTesterReportUrl(_this.tokenId).then(re => {
- if (re.code === 0) {
- _this.viewDisable = true
- // 璁剧疆棰勮璺緞
- _this.viewUrl = re.msg
- console.log(re)
- } else {
- console.log(re)
- }
- })
+ // CIAQ PDF棰勮Url
+ // examPaperApi.selectTesterReportUrl(_this.tokenId).then(re => {
+ // if (re.code === 0) {
+ // _this.viewDisable = true
+ // // 璁剧疆棰勮璺緞
+ // _this.viewUrl = re.msg
+ // console.log(re)
+ // } else {
+ // console.log(re)
+ // }
+ // })
},
mounted () {
@@ -72,7 +75,16 @@
// 棰勮鎶ュ憡
viewReport: function () {
let _this = this
- _this.$router.push({ path: '/pdf/view', query: { fileUrl: _this.viewUrl } })
+ _this.$router.push({ path: '/report/view', query: { fileUrl: _this.viewUrl } })
+ },
+ // 棰勮鎶ュ憡(H5)
+ viewReportH5: function () {
+ let _this = this
+ _this.$router.push({ path: '/report/h5', query: { tokenId: _this.tokenId } })
+ },
+ isMobile () {
+ let flag = navigator.userAgent.match(/(phone|pad|pod|iPhone|iPod|ios|iPad|Android|Mobile|BlackBerry|IEMobile|MQQBrowser|JUC|Fennec|wOSBrowser|BrowserNG|WebOS|Symbian|Windows Phone)/i)
+ return flag
}
},
computed: {
--
Gitblit v1.9.1