|
@@ -44,11 +44,11 @@
|
|
|
style="width: 850px; height: 350px"
|
|
style="width: 850px; height: 350px"
|
|
|
>
|
|
>
|
|
|
<!-- <PDF :src="resSrc" :width="850" :height="350" /> -->
|
|
<!-- <PDF :src="resSrc" :width="850" :height="350" /> -->
|
|
|
|
|
+ <FilePreviewer :fileUrl="resSrc" :fileName="resName" :fileType="fileType" />
|
|
|
|
|
|
|
|
<a-image width="200px" height="220px" :src="pdfRes" :preview="false" @click="handleDownload(resSrc)" />
|
|
<a-image width="200px" height="220px" :src="pdfRes" :preview="false" @click="handleDownload(resSrc)" />
|
|
|
<!-- <a-button type="primary" @click="handleDownload(resSrc)">去预览</a-button> -->
|
|
<!-- <a-button type="primary" @click="handleDownload(resSrc)">去预览</a-button> -->
|
|
|
</div>
|
|
</div>
|
|
|
-
|
|
|
|
|
<div style="height: 20px"></div>
|
|
<div style="height: 20px"></div>
|
|
|
<!-- 用户信息部分 -->
|
|
<!-- 用户信息部分 -->
|
|
|
<div class="user-info" style="display: flex; flex-direction: column">
|
|
<div class="user-info" style="display: flex; flex-direction: column">
|
|
@@ -119,10 +119,10 @@
|
|
|
<span style="font-weight: bold; margin-right: 10px">所属院系: </span>
|
|
<span style="font-weight: bold; margin-right: 10px">所属院系: </span>
|
|
|
<span style="display: block">{{ department }}</span>
|
|
<span style="display: block">{{ department }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
- <div style="display: flex; align-items: center">
|
|
|
|
|
|
|
+ <!-- <div style="display: flex; align-items: center">
|
|
|
<span style="font-weight: bold; margin-right: 10px">所属专业: </span>
|
|
<span style="font-weight: bold; margin-right: 10px">所属专业: </span>
|
|
|
<span style="display: block">{{ major }}</span>
|
|
<span style="display: block">{{ major }}</span>
|
|
|
- </div>
|
|
|
|
|
|
|
+ </div> -->
|
|
|
<div style="display: flex; align-items: center">
|
|
<div style="display: flex; align-items: center">
|
|
|
<span style="font-weight: bold; margin-right: 10px">资源类型: </span>
|
|
<span style="font-weight: bold; margin-right: 10px">资源类型: </span>
|
|
|
<span style="display: block">{{ courseType }}</span>
|
|
<span style="display: block">{{ courseType }}</span>
|
|
@@ -168,6 +168,7 @@
|
|
|
import { useRoute } from 'vue-router'
|
|
import { useRoute } from 'vue-router'
|
|
|
import sysConfig from '@/config/index'
|
|
import sysConfig from '@/config/index'
|
|
|
import pdfRes from '@/assets/images/pdf.png'
|
|
import pdfRes from '@/assets/images/pdf.png'
|
|
|
|
|
+ import FilePreviewer from './FilePreviewer.vue'
|
|
|
import EventBus from '@/utils/EventBus'
|
|
import EventBus from '@/utils/EventBus'
|
|
|
// import pdfView from 'pdfvuer'
|
|
// import pdfView from 'pdfvuer'
|
|
|
// import 'pdfvuer/dist/pdfvuer.css'
|
|
// import 'pdfvuer/dist/pdfvuer.css'
|
|
@@ -177,6 +178,7 @@
|
|
|
// type: Object,
|
|
// type: Object,
|
|
|
// default: () => {}
|
|
// default: () => {}
|
|
|
// }
|
|
// }
|
|
|
|
|
+ //是否从资源列表来 1 是 0 否
|
|
|
isState: {
|
|
isState: {
|
|
|
type: Number,
|
|
type: Number,
|
|
|
default: () => null
|
|
default: () => null
|
|
@@ -186,6 +188,7 @@
|
|
|
const starTag = ref(false)
|
|
const starTag = ref(false)
|
|
|
const ShareDialogRef = ref(null)
|
|
const ShareDialogRef = ref(null)
|
|
|
const resSrc = ref('')
|
|
const resSrc = ref('')
|
|
|
|
|
+ const fileType = ref('')
|
|
|
const resName = ref('资源名称')
|
|
const resName = ref('资源名称')
|
|
|
|
|
|
|
|
const teacherName = ref('王某某')
|
|
const teacherName = ref('王某某')
|
|
@@ -268,6 +271,7 @@
|
|
|
console.log('应该施舍你们', tags.value)
|
|
console.log('应该施舍你们', tags.value)
|
|
|
//关键的资源在线地址
|
|
//关键的资源在线地址
|
|
|
resSrc.value = sysConfig.FILE_URL + itemData.value.priviewFileUrl
|
|
resSrc.value = sysConfig.FILE_URL + itemData.value.priviewFileUrl
|
|
|
|
|
+ fileType.value = itemData.value.suffix
|
|
|
// imagess.value = ''+itemData.value.coverImagePath
|
|
// imagess.value = ''+itemData.value.coverImagePath
|
|
|
// imagess.value = 'http://192.168.1.245:10005/education/' + itemData.value.priviewFileUrl
|
|
// imagess.value = 'http://192.168.1.245:10005/education/' + itemData.value.priviewFileUrl
|
|
|
|
|
|