<template>
|
<div class="file-picture">
|
<div class="file-tell">
|
<div class="tell-title">上报</div>
|
<div class="tell-show">
|
<el-upload class="upload-demo" :show-file-list="false" action="http://42.193.1.25:8082/sccg/file/medias"
|
:headers="getToken()" multiple :limit="50">
|
<div class="my-demo">
|
<img src="https://axure-file.lanhuapp.com/90466432-c999-4bf0-80b8-ee3f96a2099e__ef98ada722c616eccb097d1352880862.svg"
|
alt="">
|
<div class="tip">
|
<div>【图片类型】上报</div>
|
<div>【上报时间】2022-09-08 14:23:34</div>
|
</div>
|
</div>
|
</el-upload>
|
<img src="https://axure-file.lanhuapp.com/90466432-c999-4bf0-80b8-ee3f96a2099e__ef98ada722c616eccb097d1352880862.svg"
|
alt="">
|
</div>
|
</div>
|
<div class="file-deal">
|
<div class="tell-title">处置</div>
|
<div class="tell-show">
|
<el-upload class="upload-demo" :show-file-list="false" action="http://42.193.1.25:8082/sccg/file/medias"
|
:headers="getToken()" multiple :limit="50">
|
<div class="my-demo">
|
<img src="https://axure-file.lanhuapp.com/90466432-c999-4bf0-80b8-ee3f96a2099e__ef98ada722c616eccb097d1352880862.svg"
|
alt="">
|
<div class="tip">
|
<div>【图片类型】处置</div>
|
<div>【上报时间】2022-09-08 14:23:34</div>
|
</div>
|
</div>
|
</el-upload>
|
<img src="https://axure-file.lanhuapp.com/90466432-c999-4bf0-80b8-ee3f96a2099e__ef98ada722c616eccb097d1352880862.svg"
|
alt="">
|
</div>
|
</div>
|
</div>
|
</template>
|
<script>
|
export default {
|
data() {
|
return {
|
|
}
|
},
|
methods: {
|
// 获取token
|
getToken() {
|
const token = sessionStorage.getItem('token');
|
const tokenHead = sessionStorage.getItem('tokenHead');
|
if (token && tokenHead) {
|
return { Authorization: tokenHead + token };
|
}
|
}
|
}
|
}
|
</script>
|
<style lang="scss" scoped>
|
.file-picture {
|
padding-top: 50px;
|
|
.file-tell,.file-deal {
|
.tell-title {
|
line-height: 40px;
|
}
|
|
.tell-show {
|
display: flex;
|
|
.upload-demo {
|
height: 159px;
|
|
.my-demo {
|
position: relative;
|
height: 100%;
|
}
|
|
.tip {
|
div {
|
line-height: 20px;
|
}
|
|
text-align: left;
|
position: absolute;
|
bottom: 80px;
|
}
|
}
|
}
|
}
|
}
|
</style>
|