From a654c8fd0b7ff9920eada1edf80438338ca3f5fa Mon Sep 17 00:00:00 2001
From: wl <173@qq.com>
Date: 星期五, 28 十月 2022 18:21:12 +0800
Subject: [PATCH] Merge branch 'master' of http://42.193.1.25:9521/r/sccg_ui into master
---
src/components/filePictrue/index.vue | 119 +++++++++++++++++++++++++++++++++++++----------------------
1 files changed, 75 insertions(+), 44 deletions(-)
diff --git a/src/components/filePictrue/index.vue b/src/components/filePictrue/index.vue
index 7690f8b..8260292 100644
--- a/src/components/filePictrue/index.vue
+++ b/src/components/filePictrue/index.vue
@@ -2,48 +2,51 @@
<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="tell-show" v-for="item in imgSource" :key="item.id">
+ <div v-if="item.type == '01'" style="display:flex">
+ <div class="my-demo" v-for="childer in item.url">
+ <img class="img" :src="childer" alt="">
<div class="tip">
- <div>銆愬浘鐗囩被鍨嬨�戜笂鎶�</div>
- <div>銆愪笂鎶ユ椂闂淬��2022-09-08 14:23:34</div>
+ <div>銆愬浘鐗囩被鍨嬨�戜笂鎶�</div>
+ <div>銆愪笂浼犳椂闂淬�憑{ changeTime(item.createTime) }}</div>
</div>
</div>
- </el-upload>
- <img src="https://axure-file.lanhuapp.com/90466432-c999-4bf0-80b8-ee3f96a2099e__ef98ada722c616eccb097d1352880862.svg"
- alt="">
+ </div>
</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="tell-show" v-for="item in imgSource" :key="item.id">
+ <div v-if="item.type == '02'" class="tell-demo">
+ <div class="my-demo" v-for="childer in item.url">
+ <img class="img" :src="childer" alt="">
<div class="tip">
- <div>銆愬浘鐗囩被鍨嬨�戝缃�</div>
- <div>銆愪笂鎶ユ椂闂淬��2022-09-08 14:23:34</div>
+ <!-- <div>銆愬浘鐗囩被鍨嬨�戝缃�</div> -->
+ <div>銆愪笂浼犳椂闂淬�憑{ changeTime(item.createTime) }}</div>
</div>
</div>
- </el-upload>
- <img src="https://axure-file.lanhuapp.com/90466432-c999-4bf0-80b8-ee3f96a2099e__ef98ada722c616eccb097d1352880862.svg"
- alt="">
+ </div>
+ <!-- <img src="https://axure-file.lanhuapp.com/90466432-c999-4bf0-80b8-ee3f96a2099e__ef98ada722c616eccb097d1352880862.svg"
+ alt=""> -->
</div>
</div>
</div>
</template>
<script>
+import { parseTime } from "@/utils/index"
export default {
data() {
return {
-
+ imgSource: []
}
+ },
+ props: ['filesPictureVo', 'mycode'],
+ created() {
+ // this.imgSource =this.filesPictureVo
+ const { filesPictureVo: { imageResources: imgList } } = this
+ // this.createTime=this.filesPictureVo.imageResources[0].createTime;
+ // console.log(this.imgSource);
+ this.getEventInfo(this.mycode);
},
methods: {
// 鑾峰彇token
@@ -53,7 +56,28 @@
if (token && tokenHead) {
return { Authorization: tokenHead + token };
}
- }
+ },
+ changeTime(time) {
+ if (time) {
+ return parseTime(time)
+ }
+ },
+ getEventInfo(mycode) {
+ this.$axios({
+ method: 'get',
+ url: `sccg/base_case/baseCaseDetail/${mycode}`
+ })
+ .then(res => {
+ console.log(res);
+ this.info = res.data;
+ this.dialogView = true;
+ let pic = res.data.filesPictureVo.imageResources;
+ pic.forEach(item => {
+ item.url = item.url.split(',')
+ })
+ this.imgSource = pic;
+ })
+ },
}
}
</script>
@@ -61,33 +85,40 @@
.file-picture {
padding-top: 50px;
- .file-tell,.file-deal {
+ .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;
- }
+ .tell-demo {
+ display: flex;
+ flex-wrap: wrap;
+ width: 100%;
}
}
}
+
+ .my-demo {
+ position: relative;
+ height: 159px;
+ padding: 10px;
+ }
+
+ .tip {
+ div {
+ line-height: 20px;
+ }
+
+ text-align: left;
+ position: absolute;
+ bottom: 0px;
+ }
+
+ .img {
+ width: 226px;
+ height: 159px;
+ }
}
</style>
\ No newline at end of file
--
Gitblit v1.8.0