5 changed files with 798 additions and 500 deletions
After Width: | Height: | Size: 3.7 MiB |
File diff suppressed because it is too large
@ -0,0 +1,276 @@ |
|||||
|
<template> |
||||
|
<div class="yxt-containers"> |
||||
|
|
||||
|
<span class="title">一起拼搏(汇融惠享项目)</span> |
||||
|
|
||||
|
<div class="layout"> |
||||
|
|
||||
|
<div class="layout-left"> |
||||
|
|
||||
|
<div class="layout-left-top"> |
||||
|
<span class="layout-left-top-title">累计订货量</span> |
||||
|
|
||||
|
<div class="layout-left-top-label"> |
||||
|
<span >品类</span> |
||||
|
<span>数量(单位:公斤/升)</span> |
||||
|
</div> |
||||
|
|
||||
|
<div v-for="(item,index) in ztsj" :index="index" class="layout-left-top-list"> |
||||
|
|
||||
|
<div class="layout-left-top-list-item"> |
||||
|
<span class="layout-left-top-list-name" >{{ item.typeName }}</span> |
||||
|
<span class="layout-left-top-list-value">{{ item.allData }}</span> |
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
|
||||
|
|
||||
|
</div> |
||||
|
|
||||
|
<div class="layout-left-contre"> |
||||
|
|
||||
|
</div> |
||||
|
|
||||
|
|
||||
|
<div class="layout-left-bom"> |
||||
|
|
||||
|
</div> |
||||
|
|
||||
|
|
||||
|
</div> |
||||
|
|
||||
|
<div class="layout-contre"> |
||||
|
|
||||
|
</div> |
||||
|
|
||||
|
<div class="layout-right"> |
||||
|
|
||||
|
</div> |
||||
|
|
||||
|
</div> |
||||
|
|
||||
|
|
||||
|
</div> |
||||
|
</template> |
||||
|
|
||||
|
<script> |
||||
|
import req from '@/api/gd36524/store' |
||||
|
import { |
||||
|
zhj_ztsj |
||||
|
} from '@/demodata/zhj_ztsj.js' |
||||
|
import { |
||||
|
zhj_zhpm |
||||
|
} from '@/demodata/zhj_zhpm.js' |
||||
|
export default { |
||||
|
data() { |
||||
|
return { |
||||
|
ztsj: [], |
||||
|
zhpm: [] |
||||
|
} |
||||
|
}, |
||||
|
created() { |
||||
|
this.loadList() |
||||
|
}, |
||||
|
methods: { |
||||
|
loadList() { |
||||
|
this.ztsj = zhj_ztsj.rows |
||||
|
this.zhpm = zhj_zhpm.rows |
||||
|
console.log('11', this.ztsj) |
||||
|
}, |
||||
|
getReportInventory() { |
||||
|
req.getReportInventory().then(res => { |
||||
|
console.log('getReportInventory:', res) |
||||
|
|
||||
|
this.chartData2 = { |
||||
|
date: res.data.date, |
||||
|
changwencang: res.data.changwencang, |
||||
|
gongyinglian: res.data.gongyinglian, |
||||
|
cancipin: res.data.cancipin, |
||||
|
mendian: res.data.mendian, |
||||
|
ycMendian: res.data.ycMendian |
||||
|
|
||||
|
} |
||||
|
}).catch(e => { |
||||
|
console.log('GdinventoryLog-loadList-ee:', e) |
||||
|
}) |
||||
|
}, |
||||
|
getInventory() { |
||||
|
req.getInventory(this.times).then(res => { |
||||
|
console.log('getInventory:', res) |
||||
|
|
||||
|
this.inventoryList = res.data |
||||
|
}).catch(e => { |
||||
|
console.log('GdinventoryLog-loadList-ee:', e) |
||||
|
}) |
||||
|
}, |
||||
|
handleCloseJK() { |
||||
|
this.dialogImageJK = false |
||||
|
}, |
||||
|
getStatusCount() { |
||||
|
req.getStatusCount().then(res => { |
||||
|
console.log('getStatusCount:', res) |
||||
|
this.StatusCountInfo = res.data |
||||
|
}).catch(e => { |
||||
|
console.log('GdinventoryLog-loadList-ee:', e) |
||||
|
}) |
||||
|
}, |
||||
|
getOtherList() { |
||||
|
req.getOtherList().then(res => { |
||||
|
console.log('getOtherList:', res) |
||||
|
this.cameraList = res.data |
||||
|
|
||||
|
this.cameraInfo = res.data[0] |
||||
|
this.getVedioPcLiveById(res.data[0].id) |
||||
|
}).catch(e => { |
||||
|
console.log('GdinventoryLog-loadList-ee:', e) |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
// 实时 |
||||
|
getVedioPcLiveById(id) { |
||||
|
req.getVedioPcLiveById(id).then(res => { |
||||
|
console.log('getVedioPcLiveById:', res) |
||||
|
this.spUrl = res.data |
||||
|
}).catch(e => { |
||||
|
console.log('GdinventoryLog-loadList-ee:', e) |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
// 回放 |
||||
|
getVedioPcRecById(id) { |
||||
|
req.getVedioPcRecById(id).then(res => { |
||||
|
console.log('getVedioPcRecById:', res) |
||||
|
this.spUrl = res.data |
||||
|
}).catch(e => { |
||||
|
console.log('GdinventoryLog-loadList-ee:', e) |
||||
|
}) |
||||
|
}, |
||||
|
|
||||
|
selectTime(val) { |
||||
|
console.log('val:', val) |
||||
|
this.times = val |
||||
|
this.loadList() |
||||
|
this.getInventory() |
||||
|
// this.getOtherList(); |
||||
|
// this.getStatusCount(); |
||||
|
}, |
||||
|
|
||||
|
cameraClock(index) { |
||||
|
var item = this.cameraList[index] |
||||
|
this.cameraInfo = item |
||||
|
this.getVedioPcLiveById(item.id) |
||||
|
}, |
||||
|
|
||||
|
cameraType() { |
||||
|
console.log('cameraInfo:', this.cameraInfo) |
||||
|
this.videos = !this.videos |
||||
|
|
||||
|
if (this.videos) { |
||||
|
this.getVedioPcLiveById(this.cameraInfo.id) |
||||
|
} else { |
||||
|
this.getVedioPcRecById(this.cameraInfo.id) |
||||
|
} |
||||
|
}, |
||||
|
clivideo() { |
||||
|
// this.lookvideo = true |
||||
|
|
||||
|
this.dialogImageJK = true |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
</script> |
||||
|
<style lang="scss" scoped> |
||||
|
.yxt-containers { |
||||
|
display: flex; |
||||
|
background-color: #040C2B; |
||||
|
color: #39D6FE; |
||||
|
flex-direction: column; |
||||
|
width: 100%; |
||||
|
height: 100%; |
||||
|
margin: 0px; |
||||
|
padding: 0px; |
||||
|
|
||||
|
.title { |
||||
|
margin-top: 25px; |
||||
|
color: #39D6FE; |
||||
|
font-size: 30px; |
||||
|
margin-left: 20px; |
||||
|
font-weight: 1000; |
||||
|
font-family: sans-serif; |
||||
|
} |
||||
|
|
||||
|
.layout { |
||||
|
display: flex; |
||||
|
flex-direction: row; |
||||
|
padding: 20px; |
||||
|
|
||||
|
.layout-left{ |
||||
|
width: 25%; |
||||
|
display: flex; |
||||
|
flex-direction: column; |
||||
|
.layout-left-top{ |
||||
|
background-color: #031249; |
||||
|
display: flex; |
||||
|
flex-direction: column; |
||||
|
padding: 20px; |
||||
|
.layout-left-top-title{ |
||||
|
font-size: 25px; |
||||
|
font-weight: 600; |
||||
|
font-family: sans-serif; |
||||
|
} |
||||
|
.layout-left-top-label{ |
||||
|
display: flex; |
||||
|
flex-direction: row; |
||||
|
align-items: center; |
||||
|
justify-content: space-between; |
||||
|
span{ |
||||
|
margin-top: 10px; |
||||
|
font-size: 20px; |
||||
|
font-weight: 600; |
||||
|
font-family: sans-serif; |
||||
|
} |
||||
|
|
||||
|
} |
||||
|
.layout-left-top-list{ |
||||
|
margin-top: 10px; |
||||
|
display: flex; |
||||
|
flex-direction: column; |
||||
|
.layout-left-top-list-item{ |
||||
|
display: flex; |
||||
|
margin-top: 5px; |
||||
|
margin-bottom: 5px; |
||||
|
flex-direction: row; |
||||
|
align-items: center; |
||||
|
justify-content: space-between; |
||||
|
.layout-left-top-list-name{ |
||||
|
|
||||
|
} |
||||
|
.layout-left-top-list-value{ |
||||
|
|
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
.layout-left-contre{ |
||||
|
margin-top: 15px; |
||||
|
background-color: #031249; |
||||
|
display: flex; |
||||
|
flex-direction: column; |
||||
|
} |
||||
|
.layout-left-bom{ |
||||
|
margin-top: 15px; |
||||
|
background-color: #031249; |
||||
|
display: flex; |
||||
|
flex-direction: column; |
||||
|
} |
||||
|
} |
||||
|
.layout-contre{ |
||||
|
width: 40%; |
||||
|
} |
||||
|
.layout-right{ |
||||
|
width: 25%; |
||||
|
} |
||||
|
} |
||||
|
} |
||||
|
</style> |
Loading…
Reference in new issue