|
@@ -58,7 +58,7 @@
|
|
|
<el-table-column label="相关图片" align="center" prop="detail" />
|
|
|
<el-table-column label="相关图片" align="center" class-name="small-padding fixed-width">
|
|
|
<template slot-scope="scope">
|
|
|
- {{getCount(scope.row.pics)}}
|
|
|
+ {{getCount(scope.row.pics)+getCount(scope.row.dealPics)}}
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
<el-table-column label="上报人" align="center" prop="createByName" />
|
|
@@ -106,7 +106,7 @@
|
|
|
margin-top:10rem">
|
|
|
<el-row type="flex" class="row-bg">
|
|
|
<el-col :span="5"><div style="float:right">区域:</div></el-col>
|
|
|
- <el-col :span="19"><div style="padding-left:2rem">{{detailObj.area}}</div></el-col>
|
|
|
+ <el-col :span="19"><div style="padding-left:2rem">{{getAreaName(detailObj.area)}}</div></el-col>
|
|
|
</el-row>
|
|
|
<el-row type="flex" class="row-bg" style="margin-top:2rem">
|
|
|
<el-col :span="5"><div style="float:right">位置:</div></el-col>
|
|
@@ -166,16 +166,16 @@
|
|
|
<img :src='getImage()' style="width: 88.7rem;height: 50.7rem;"/>
|
|
|
</div>
|
|
|
<div v-if="detailObj.pics" style="display:flex; flex-direction: row;margin-top:3rem;padding-left:5rem">
|
|
|
- <div v-for="(pic,index) in detailObj.pics.split(',')">
|
|
|
+ <div v-for="(pic,index) in detailObj.picList.split(',')">
|
|
|
<div :class='selectindex === index?"imgSelect":""' @click="selectImg(index)" style="margin-left:1rem">
|
|
|
<img :src='getImageUrl(pic)' style="width: 11.7rem;height: 8.7rem;"/>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div v-for="(pic,index) in detailObj.dealPics.split(',')">
|
|
|
+ <!-- <div v-for="(pic,index) in detailObj.dealPics.split(',')">
|
|
|
<div :class='selectindex === index?"imgSelect":""' @click="selectImg(index)" style="margin-left:1rem">
|
|
|
<img :src='getImageUrl(pic)' style="width: 11.7rem;height: 8.7rem;"/>
|
|
|
</div>
|
|
|
- </div>
|
|
|
+ </div> -->
|
|
|
</div>
|
|
|
</div>
|
|
|
</el-col>
|
|
@@ -203,7 +203,8 @@ export default {
|
|
|
dicts: ['tl_xun_area'],
|
|
|
data() {
|
|
|
return {
|
|
|
-
|
|
|
+ pageList:[],
|
|
|
+
|
|
|
picImage:'',
|
|
|
|
|
|
detailObj:{},
|
|
@@ -288,9 +289,18 @@ export default {
|
|
|
//console.log(index);
|
|
|
//this.detailObj.index = index;
|
|
|
this.selectindex=index;
|
|
|
- this.picImage = this.detailObj.pics.split(',')[index];
|
|
|
+ this.picImage = this.detailObj.picList.split(',')[index];
|
|
|
+ console.log(this.picImage);
|
|
|
//console.log(this.detailObj.index);
|
|
|
},
|
|
|
+ getAreaName(id){
|
|
|
+ console.log(this.dict.type.tl_xun_area);
|
|
|
+ for(var index in this.dict.type.tl_xun_area){
|
|
|
+ if(this.dict.type.tl_xun_area[index].value == id){
|
|
|
+ return this.dict.type.tl_xun_area[index].label
|
|
|
+ }
|
|
|
+ }
|
|
|
+ },
|
|
|
getImage (){
|
|
|
return process.env.VUE_APP_BASE_API+this.picImage
|
|
|
},
|
|
@@ -301,7 +311,8 @@ export default {
|
|
|
//console.log(obj);
|
|
|
this.dialogVisible = true
|
|
|
this.detailObj = obj
|
|
|
- console.log(this.detailObj);
|
|
|
+ console.log(this.detailObj.dealPics);
|
|
|
+ this.detailObj.picList = this.detailObj.pics+','+this.detailObj.dealPics
|
|
|
this.picImage = this.detailObj.pics.split(',')[0];
|
|
|
this.selectindex = 0;
|
|
|
console.log(this.picImage);
|