[update] 修改bug77937,77958,78028,78031
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div class="detail-page">
|
||||
<internal-detail-page :title="pageTitle" :loading="loading">
|
||||
<div class="detail-page-title">{{ model.title }}</div>
|
||||
<div class="detail-page-second-title">
|
||||
<!-- todo: 发帖人部门没有返回 -->
|
||||
@@ -105,7 +105,7 @@
|
||||
<img v-show="image" :src="imageUrl">
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</internal-detail-page>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
@@ -115,6 +115,7 @@ import { getFileAccessHttpUrl, downloadFile } from '@/api/manage'
|
||||
import { getQuizById, answerQuiz, setOrCancelTop, deleteAnswer } from '@/api/businessSupport'
|
||||
import { getFileInfo } from '@/api/api'
|
||||
import { previewPdf } from '@/utils/previewPdf'
|
||||
import InternalDetailPage from '@/components/InternalDetailPage'
|
||||
|
||||
// 支持预览的文件后缀
|
||||
const CAN_PREVIEW_FILE_SUFFIX = ['jpg', 'jpeg', 'png', 'raw', 'pdf', 'doc', 'docx', 'xls', 'xlsx', 'ppt', 'pptx', 'txt', 'mp3', 'mp4', 'flv']
|
||||
@@ -124,8 +125,11 @@ const Base64 = require('js-base64').Base64
|
||||
|
||||
export default {
|
||||
name: 'AnswerPage',
|
||||
components: { InternalDetailPage },
|
||||
data () {
|
||||
return {
|
||||
loading: false,
|
||||
pageTitle: '',
|
||||
model: {},
|
||||
answerArr: [],
|
||||
fileList: [],
|
||||
@@ -147,10 +151,16 @@ export default {
|
||||
this.userInfo = userInfo
|
||||
this.currentUser = Object.assign({}, userInfo)
|
||||
this.canAnswer = Number(this.$route.query.canAnswer)
|
||||
if (this.canAnswer === 1) {
|
||||
this.pageTitle = this.$t('businessSupport.questionAnswer.answerQuestionTitle')
|
||||
} else {
|
||||
this.pageTitle = this.$t('businessSupport.questionAnswer.questionDetail')
|
||||
}
|
||||
},
|
||||
methods: {
|
||||
// 初始化获取数据信息
|
||||
initData (id) {
|
||||
this.loading = true
|
||||
getQuizById({ id: id }).then(res => {
|
||||
if (res.success) {
|
||||
this.model = Object.assign({}, res.result)
|
||||
@@ -167,6 +177,8 @@ export default {
|
||||
}
|
||||
this.answerArr = this.model.answerList
|
||||
}
|
||||
}).finally(() => {
|
||||
this.loading = false
|
||||
})
|
||||
},
|
||||
// 获取头像
|
||||
|
||||
Reference in New Issue
Block a user