修复物料管理的查看图片
This commit is contained in:
parent
c79553cb0e
commit
959afef0e8
@ -42,7 +42,7 @@ if (process.env.NODE_ENV == 'development') {
|
||||
// axios.defaults.baseURL = 'http://192.168.34.117:6023/' // 杨杰本地
|
||||
// axios.defaults.baseURL = 'http://139.9.66.234:6324/' // 河南春笋
|
||||
// axios.defaults.baseURL ='http://124.71.67.160:8088/' //中建四局线上
|
||||
// axios.defaults.baseURL ='http://182.90.224.147:100/' //演示平台/
|
||||
axios.defaults.baseURL ='http://182.90.224.147:100/' //演示平台/
|
||||
// axios.defaults.baseURL = 'http://192.168.34.125:6023/' //杨意本地 http/1.1
|
||||
// axios.defaults.baseURL ='http://47.97.202.104:6023/' //金林湾线上
|
||||
// axios.defaults.baseURL = 'http://192.168.34.231:6023/'; //杨思瑞本地
|
||||
@ -74,7 +74,7 @@ if (process.env.NODE_ENV == 'development') {
|
||||
// axios.defaults.baseURL = 'http://183.234.150.152:9090/' //华发 huaxin 123456789
|
||||
// axios.defaults.baseURL = 'http://182.90.224.147:18170' //瑞士恒通线上
|
||||
// axios.defaults.baseURL = 'http://58.250.210.9:9090' //深汕线上
|
||||
axios.defaults.baseURL = 'http://192.168.34.221:8188' //郭圣雄本地
|
||||
// axios.defaults.baseURL = 'http://192.168.34.221:8200' //郭圣雄本地
|
||||
|
||||
} else if (process.env.NODE_ENV == 'debug') {
|
||||
axios.defaults.baseURL = 'https://www.ceshi.com'
|
||||
|
||||
@ -39,7 +39,7 @@
|
||||
<script>
|
||||
import LeftOne from './leftOne'
|
||||
import LeftTwo from './leftTwo'
|
||||
import LeftThree from './LeftThree'
|
||||
import LeftThree from './leftThree'
|
||||
import LeftFour from './leftFour'
|
||||
import Center from './center'
|
||||
import CenterBOne from './centerBOne'
|
||||
|
||||
@ -26,10 +26,10 @@
|
||||
<el-table-column prop="netWeight" label="净重" align="center"></el-table-column>
|
||||
<el-table-column prop="tareTime" label="毛重时间" align="center"></el-table-column>
|
||||
<el-table-column prop="grossTime" label="皮重时间" align="center"></el-table-column>
|
||||
<el-table-column label="操作" align="center" width="300">
|
||||
<el-table-column label="操作" align="center">
|
||||
<template slot-scope="scope">
|
||||
<div class="tableBtns">
|
||||
<div @click="seePhonegrap(scope.row)" class="operationText">
|
||||
<div @click="seePhonegrap(scope.row.weighPicList)" class="operationText">
|
||||
<i class="el-icon-delete" style="color: #eb5760; font-size: 16px; margin-right: 2px"></i>
|
||||
<span>查看过磅照片</span>
|
||||
</div>
|
||||
@ -49,21 +49,31 @@
|
||||
:total="Number(total)"
|
||||
></el-pagination>
|
||||
</vue-scroll>
|
||||
<el-dialog title="过磅照片" :visible.sync="dialogVisiblePhone" width="40%" :before-close="handleClose">
|
||||
<el-dialog title="过磅照片" :modal-append-to-body="false" :visible.sync="dialogVisiblePhone" width="40%" :before-close="handleClose" @close="closeDialog">
|
||||
<div>
|
||||
<div>
|
||||
<h6>第一次称重照片</h6>
|
||||
<img src="@/assets/images/test.png" alt="" />
|
||||
<img src="@/assets/images/test.png" alt="" />
|
||||
<img src="@/assets/images/test.png" alt="" />
|
||||
<img src="@/assets/images/test.png" alt="" />
|
||||
<div v-if="srcList.length !== 0">
|
||||
<el-image class="imgStyle" :src="`${imgUrl}/image/${phoneList.emptyPic1}`" :preview-src-list="srcList"> </el-image>
|
||||
<el-image class="imgStyle" :src="`${imgUrl}/image/${phoneList.emptyPic2}`" :preview-src-list="srcList"> </el-image>
|
||||
<el-image class="imgStyle" :src="`${imgUrl}/image/${phoneList.emptyPic3}`" :preview-src-list="srcList"> </el-image>
|
||||
<el-image class="imgStyle" :src="`${imgUrl}/image/${phoneList.emptyPic4}`" :preview-src-list="srcList"> </el-image>
|
||||
</div>
|
||||
<div v-else>
|
||||
暂无数据
|
||||
</div>
|
||||
</div>
|
||||
<div>
|
||||
<h6>第二次称重照片</h6>
|
||||
<img src="@/assets/images/test.png" alt="" />
|
||||
<img src="@/assets/images/test.png" alt="" />
|
||||
<img src="@/assets/images/test.png" alt="" />
|
||||
<img src="@/assets/images/test.png" alt="" />
|
||||
<div v-if="srcList.length !== 0">
|
||||
<el-image class="imgStyle" :src="`${imgUrl}/image/${phoneList.fullPic1}`" :preview-src-list="srcList"> </el-image>
|
||||
<el-image class="imgStyle" :src="`${imgUrl}/image/${phoneList.fullPic2}`" :preview-src-list="srcList"> </el-image>
|
||||
<el-image class="imgStyle" :src="`${imgUrl}/image/${phoneList.fullPic3}`" :preview-src-list="srcList"> </el-image>
|
||||
<el-image class="imgStyle" :src="`${imgUrl}/image/${phoneList.fullPic4}`" :preview-src-list="srcList"> </el-image>
|
||||
</div>
|
||||
<div v-else>
|
||||
暂无数据
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</el-dialog>
|
||||
@ -80,6 +90,7 @@ import {
|
||||
deleteWeighInfoItem,
|
||||
weighTypeList
|
||||
} from '@/assets/js/api/quality.js'
|
||||
import axios from 'axios'
|
||||
|
||||
export default {
|
||||
components: {
|
||||
@ -97,8 +108,9 @@ export default {
|
||||
pageSize: -1,
|
||||
total: 0,
|
||||
dialogVisiblePhone: false,
|
||||
devId: '',
|
||||
fuel: ''
|
||||
phoneList: [],
|
||||
imgUrl: axios.defaults.baseURL,
|
||||
srcList: []
|
||||
}
|
||||
},
|
||||
created() {
|
||||
@ -107,12 +119,27 @@ export default {
|
||||
},
|
||||
methods: {
|
||||
seePhonegrap(val) {
|
||||
console.log(val)
|
||||
this.dialogVisiblePhone = true
|
||||
if (val) {
|
||||
this.phoneList = val[0]
|
||||
}else{
|
||||
this.phoneList = []
|
||||
}
|
||||
console.log(this.phoneList)
|
||||
let arr = Object.values(this.phoneList)
|
||||
arr.forEach((item, index, array) => {
|
||||
if (index !== 0 && index < 9) {
|
||||
this.srcList.push(`${this.imgUrl}/image/${array[index]}`)
|
||||
}
|
||||
})
|
||||
},
|
||||
handleClose(done) {
|
||||
done()
|
||||
},
|
||||
closeDialog(){
|
||||
this.srcList.splice(0, this.srcList.length)
|
||||
console.log("关闭",this.srcList);
|
||||
},
|
||||
//获取列表数据
|
||||
getListData() {
|
||||
let data = {
|
||||
@ -203,4 +230,9 @@ th {
|
||||
text-overflow: ellipsis;
|
||||
white-space: nowrap;
|
||||
}
|
||||
.imgStyle {
|
||||
width: 170px;
|
||||
height: 100px;
|
||||
margin-left: 10px;
|
||||
}
|
||||
</style>
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user