|
|
@@ -1,6 +1,13 @@
|
|
|
<!-- -->
|
|
|
<template>
|
|
|
<el-dialog title="查看藏品" :visible="dialogFormVisible" @close="btnOK()">
|
|
|
+ <!-- 点击查看弹出高清图片 -->
|
|
|
+ <div class="bigImg" v-show="bigImgShow">
|
|
|
+ <img :src="bigImg" alt="">
|
|
|
+ <div class="btnX">
|
|
|
+ <el-button @click="bigImgShow=false">关 闭</el-button>
|
|
|
+ </div>
|
|
|
+ </div>
|
|
|
<div class="title">
|
|
|
<div :class="{ active: index === 0 }" @click="change(0)">藏品信息</div>
|
|
|
<div :class="{ active: index === 1 }" @click="change(1)">附件</div>
|
|
|
@@ -104,6 +111,12 @@
|
|
|
<el-table-column prop="name" label="附件名称" width="235">
|
|
|
</el-table-column>
|
|
|
<el-table-column prop="updateTime" label="上传时间"> </el-table-column>
|
|
|
+ <el-table-column label="操作" width="150">
|
|
|
+ <template #default='{row}'>
|
|
|
+ <a href="javascript:;" class="mydown" @click="imgLook(row.filePath)" v-show="select==='img'">查 看</a>
|
|
|
+ <a :href="baseURL + row.filePath" target="_blank" :download="baseURL + row.filePath" class="mydown">下 载</a>
|
|
|
+ </template>
|
|
|
+ </el-table-column>
|
|
|
</el-table>
|
|
|
</div>
|
|
|
<el-button type="primary" class="confirm" @click="btnOK">确 定</el-button>
|
|
|
@@ -131,6 +144,8 @@ export default {
|
|
|
},
|
|
|
data () {
|
|
|
return {
|
|
|
+ bigImg: '',
|
|
|
+ bigImgShow: false,
|
|
|
options: [],
|
|
|
baseURL: '',
|
|
|
index: 0,
|
|
|
@@ -165,20 +180,12 @@ export default {
|
|
|
},
|
|
|
// 方法集合
|
|
|
methods: {
|
|
|
- getFujian () {
|
|
|
- // this.fujianLook.forEach(v=>{
|
|
|
-
|
|
|
- // })
|
|
|
+ // 点击查看
|
|
|
+ imgLook (url) {
|
|
|
+ this.bigImgShow = true
|
|
|
+ this.bigImg = this.baseURL + url
|
|
|
},
|
|
|
- // 获取附件列表
|
|
|
- // async getFileList (id, select) {
|
|
|
- // const res = await getFileList(id, select)
|
|
|
- // // console.log(666, res)
|
|
|
- // this.tableData = res.data
|
|
|
- // this.tableData.forEach(v => {
|
|
|
- // v.updateTime = v.updateTime.slice(0, 10)
|
|
|
- // })
|
|
|
- // },
|
|
|
+
|
|
|
// 切换上面的信息和附件
|
|
|
change (index) {
|
|
|
this.index = index
|
|
|
@@ -220,6 +227,32 @@ export default {
|
|
|
}
|
|
|
</script>
|
|
|
<style lang='less' scoped>
|
|
|
+.bigImg{
|
|
|
+ display: flex;
|
|
|
+ justify-content: center;
|
|
|
+ align-items: center;
|
|
|
+ position:fixed;
|
|
|
+ left: 0;
|
|
|
+ top: 0;
|
|
|
+ width: 100vw;
|
|
|
+ height: 100vh;
|
|
|
+ z-index: 9999;
|
|
|
+ background-color: rgba(0,0,0,.7);
|
|
|
+ &>img{
|
|
|
+ max-height: 80%;
|
|
|
+ max-width: 80%;
|
|
|
+ }
|
|
|
+ .btnX{
|
|
|
+ position: absolute;
|
|
|
+ bottom: 20px;
|
|
|
+ left: 50%;
|
|
|
+ transform: translateX(-50%);
|
|
|
+ }
|
|
|
+}
|
|
|
+ .mydown {
|
|
|
+ color: #40a9ff;
|
|
|
+ margin: 4px;
|
|
|
+ }
|
|
|
.title {
|
|
|
height: 32px;
|
|
|
border: 1px solid #ccc;
|