|
|
@ -31,8 +31,8 @@ |
|
|
|
<div class="listtop"> |
|
|
|
<div class="tit">质物监测信息列表</div> |
|
|
|
<!-- 翻页分页 --> |
|
|
|
<pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" |
|
|
|
:limit.sync="listQuery.size" class="pagination" @pagination="getList" /> |
|
|
|
<!-- <pageye v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" |
|
|
|
:limit.sync="listQuery.size" class="pagination" @pagination="getList" /> --> |
|
|
|
</div> |
|
|
|
<div> |
|
|
|
<el-table :key="tableKey" v-loading="listLoading" :data="list" border style="width: 100%;" |
|
|
@ -53,12 +53,12 @@ |
|
|
|
</el-table-column> |
|
|
|
<el-table-column prop="jc" label="相似度对比" header-align="center" align="center"> |
|
|
|
<template slot-scope="{row}"> |
|
|
|
<div v-for="(item, index) in Datalista" :key="index"> |
|
|
|
<div> |
|
|
|
<div class="newslilefts"> |
|
|
|
<div class="newsli"> |
|
|
|
<div class="tu"><img :src="row.imgBrfore" alt="" /></div> |
|
|
|
<!-- <div class="tu"><img :src="require(imgUrl)" alt="" /></div> --> |
|
|
|
<div class="tu"><img :src="require('D:/resources/download/1/202306081713001.png')" alt="" /></div> |
|
|
|
<div class="rightwen"> |
|
|
|
<!-- <div class="time">拍照日期:{{ row.createTime }}</div> --> |
|
|
|
<div class="time" style="margin-top:10%">拍照时间:{{ row.createTime }}</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -68,7 +68,6 @@ |
|
|
|
<div class="newsli"> |
|
|
|
<div class="tu"><img :src="row.modifyTime" alt="" /></div> |
|
|
|
<div class="rightwen"> |
|
|
|
<!-- <div class="time">拍照日期:{{ row.createTime }}</div> --> |
|
|
|
<div class="time" style="margin-top:10%">拍照时间:{{ row.modifyTime }}</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -76,19 +75,17 @@ |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
|
|
|
|
<el-table-column label="操作" align="center" width="220px" class-name="small-padding fixed-width"> |
|
|
|
<template slot-scope="{row}"> |
|
|
|
<el-button size="mini" type="primary" @click="toShipin(row)">视频</el-button> |
|
|
|
<el-button size="mini" type="primary" @click="getVedioPcLive(row)">视频</el-button> |
|
|
|
<el-button size="mini" type="primary" @click="handleCheck(row)">详情</el-button> |
|
|
|
</template> |
|
|
|
</el-table-column> |
|
|
|
</el-table> |
|
|
|
</div> |
|
|
|
<div class="pages"> |
|
|
|
<!-- 翻页 --> |
|
|
|
<pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" |
|
|
|
:limit.sync="listQuery.size" class="pagination" @pagination="getList" /> |
|
|
|
<!-- <pagination v-show="list.length > 0" :total="listQuery.total" :page.sync="listQuery.current" |
|
|
|
:limit.sync="listQuery.size" class="pagination" @pagination="getList" /> --> |
|
|
|
</div> |
|
|
|
</div> |
|
|
|
</div> |
|
|
@ -112,7 +109,7 @@ import zhiwujianceAdd from './zhiwujianceAdd' |
|
|
|
import zhiwujianceInfo from './zhiwujianceInfo' |
|
|
|
import * as echarts from "echarts"; |
|
|
|
import PieChartrenyuan from '@/views/echarts/components/PieChartrenyuanb' |
|
|
|
import { getDeviceImagePage, getShiPinByChannelNo } from '@/api/deviceImage/deviceImage' |
|
|
|
import { getDeviceImagePage, getShiPinNormalByChannelNo } from '@/api/deviceImage/deviceImage' |
|
|
|
|
|
|
|
// 1.1完好率饼图 |
|
|
|
const wanhao_Chart = { |
|
|
@ -185,11 +182,19 @@ export default { |
|
|
|
}, |
|
|
|
data() { |
|
|
|
return { |
|
|
|
imgUrl: 'D:/resources/download/1/202306080924311.png', |
|
|
|
wanhao_Chart: wanhao_Chart, // 1.1 |
|
|
|
weixiu_Chart: weixiu_Chart, |
|
|
|
sunhai_Chart: sunhai_Chart, |
|
|
|
btndisabled: false, |
|
|
|
btnList: [ |
|
|
|
{ |
|
|
|
type: 'primary', |
|
|
|
size: 'small', |
|
|
|
icon: '', |
|
|
|
btnKey: 'toAdd', |
|
|
|
btnLabel: '设置定时' |
|
|
|
}, |
|
|
|
{ |
|
|
|
type: 'info', |
|
|
|
size: 'small', |
|
|
@ -204,35 +209,9 @@ export default { |
|
|
|
sids: [], |
|
|
|
// 查询 ----------- |
|
|
|
tableKey: 0, |
|
|
|
list: [ |
|
|
|
{ |
|
|
|
cangku: '仓库1003F3', name: '康师傅矿泉水', tuUrl: './image/tu1.jpg', createTime: '2023-05-03', createTime2: '18:26:38', changjia: '康师傅', shuliang: '1000', zhongliang: '500', |
|
|
|
nameb: '康师傅矿泉水2', tuUrlb: './image/tu2.jpg', createTimeb: '2023-05-03', createTime2: '18:26:38', changjiab: '康师傅', shuliangb: '1000', zhongliangb: '500' |
|
|
|
}, |
|
|
|
{ |
|
|
|
cangku: '仓库1003F3', name: '康师傅矿泉水', tuUrl: './image/tu1.jpg', createTime: '2023-05-03', createTime2: '18:26:38', changjia: '康师傅', shuliang: '1000', zhongliang: '500', |
|
|
|
nameb: '康师傅矿泉水2', tuUrlb: './image/tu2.jpg', createTimeb: '2023-05-03', createTime2: '18:26:38', changjiab: '康师傅', shuliangb: '1000', zhongliangb: '500' |
|
|
|
}, |
|
|
|
{ |
|
|
|
cangku: '仓库1003F3', name: '康师傅矿泉水', tuUrl: './image/tu1.jpg', createTime: '2023-05-03', createTime2: '18:26:38', changjia: '康师傅', shuliang: '1000', zhongliang: '500', |
|
|
|
nameb: '康师傅矿泉水2', tuUrlb: './image/tu2.jpg', createTimeb: '2023-05-03', createTime2: '18:26:38', changjiab: '康师傅', shuliangb: '1000', zhongliangb: '500' |
|
|
|
}, |
|
|
|
{ |
|
|
|
cangku: '仓库1003F3', name: '康师傅矿泉水', tuUrl: './image/tu1.jpg', createTime: '2023-05-03', createTime2: '18:26:38', changjia: '康师傅', shuliang: '1000', zhongliang: '500', |
|
|
|
nameb: '康师傅矿泉水2', tuUrlb: './image/tu2.jpg', createTimeb: '2023-05-03', createTime2: '18:26:38', changjiab: '康师傅', shuliangb: '1000', zhongliangb: '500' |
|
|
|
}, |
|
|
|
], |
|
|
|
|
|
|
|
Datalista: [ |
|
|
|
{ |
|
|
|
cangku: '仓库1003F3', name: '康师傅矿泉水', tuUrl: './image/tu1.jpg', createTime: '2023-05-03', createTime2: '18:26:38', changjia: '康师傅', shuliang: '1000', zhongliang: '500', |
|
|
|
nameb: '康师傅矿泉水2', tuUrlb: './image/tu2.jpg', createTimeb: '2023-05-03', createTime2: '18:26:38', changjiab: '康师傅', shuliangb: '1000', zhongliangb: '500' |
|
|
|
}, |
|
|
|
|
|
|
|
], |
|
|
|
list: [], |
|
|
|
Datalistb: [ |
|
|
|
{ name: '仓库1', cangku: '仓库1003F3', weizhi: '石家庄市长安区和平西路126号', huohao: 'F31006C102325', ren: '李舜华', dianhua: '13933263572' }, |
|
|
|
|
|
|
|
], |
|
|
|
listLoading: false, |
|
|
|
listQuery: { |
|
|
@ -283,8 +262,8 @@ export default { |
|
|
|
this.init() |
|
|
|
}, |
|
|
|
methods: { |
|
|
|
toShipin(row) { |
|
|
|
getShiPinByChannelNo({ channelNo: row.channelNo }).then(res => { |
|
|
|
getVedioPcLive(row) { |
|
|
|
getShiPinNormalByChannelNo({ channelNo: row.channelNo }).then(res => { |
|
|
|
this.spUrl = res.data |
|
|
|
this.dialogImage = true |
|
|
|
}) |
|
|
@ -360,20 +339,6 @@ export default { |
|
|
|
var pageindex = index + 1 + pagestart |
|
|
|
return pageindex |
|
|
|
}, |
|
|
|
// 查询列表信息 |
|
|
|
getList() { |
|
|
|
// this.listLoading = true |
|
|
|
// req.gysPagerList(this.listQuery).then((response) => { |
|
|
|
// this.listLoading = false |
|
|
|
// if (response.code === '200' && response.data && response.data.total > 0) { |
|
|
|
// this.list = response.data.records |
|
|
|
// this.listQuery.total = response.data.total |
|
|
|
// } else { |
|
|
|
// this.list = [] |
|
|
|
// this.listQuery.total = 0 |
|
|
|
// } |
|
|
|
// }) |
|
|
|
}, |
|
|
|
// 查询按钮 |
|
|
|
handleFilter() { |
|
|
|
this.listQuery.current = 1 |
|
|
@ -384,7 +349,7 @@ export default { |
|
|
|
// 打开添加对话框 |
|
|
|
toAdd() { |
|
|
|
this.viewState = 2 |
|
|
|
this.$refs['divadd'].showAdd(this.listQuery.createOrgSid) |
|
|
|
this.$refs['divadd'].showAdd() |
|
|
|
}, |
|
|
|
// 打开添加设备对话框 |
|
|
|
handleDddShebei() { |
|
|
@ -432,10 +397,6 @@ export default { |
|
|
|
return |
|
|
|
} |
|
|
|
}, |
|
|
|
handleEdit(row) { |
|
|
|
this.viewState = 2 |
|
|
|
this.$refs['divadd'].showAdd(this.listQuery.createOrgSid) |
|
|
|
}, |
|
|
|
// 打开查看 |
|
|
|
handleCheck(row) { |
|
|
|
this.viewState = 4 |
|
|
|