|
|
|
|
@ -5,7 +5,7 @@
|
|
|
|
|
<a-row :gutter="12">
|
|
|
|
|
<a-col :span="8" style="text-align: left">
|
|
|
|
|
<a-form-item label="工单号">
|
|
|
|
|
<a-input v-model="queryParam.con_code" placeholder="请输入" />
|
|
|
|
|
<a-input v-model="queryParam.orderNum" placeholder="请输入"/>
|
|
|
|
|
</a-form-item>
|
|
|
|
|
</a-col>
|
|
|
|
|
<a-col :span="8">
|
|
|
|
|
@ -29,11 +29,46 @@
|
|
|
|
|
:pagination="pagination"
|
|
|
|
|
@change="handleGetHistoryList"
|
|
|
|
|
>
|
|
|
|
|
<span slot="pic" slot-scope="text">
|
|
|
|
|
<template>
|
|
|
|
|
<span v-if="text.putPath || text.goodsPath ||text.outputPath">
|
|
|
|
|
<!-- {{text.putPath}} {{text.goodsPath}} {{text.outputPath}}-->
|
|
|
|
|
<img class="historyImg" :src="imgUrl+text.putPath" alt="">
|
|
|
|
|
<img class="historyImg" :src="imgUrl+text.goodsPath" alt="">
|
|
|
|
|
<img class="historyImg" :src="imgUrl+text.outputPath" alt="">
|
|
|
|
|
</span>
|
|
|
|
|
<span v-else>
|
|
|
|
|
暂无图片
|
|
|
|
|
</span>
|
|
|
|
|
</template>
|
|
|
|
|
</span>
|
|
|
|
|
<span slot="status" slot-scope="text">
|
|
|
|
|
<span :style="text.status == 1 ?' color:red': ''">
|
|
|
|
|
{{ text.status == null ? '-' : text.status == 0 ? '正常' : '告警' }}
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
<span slot="videoPath1" slot-scope="text">
|
|
|
|
|
<a-button type="link" v-if="text.videoPath1">
|
|
|
|
|
查看视频
|
|
|
|
|
</a-button>
|
|
|
|
|
<span v-else>
|
|
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
<span slot="videoPath2" slot-scope="text">
|
|
|
|
|
<a-button type="link" v-if="text.videoPath2">
|
|
|
|
|
查看视频
|
|
|
|
|
</a-button>
|
|
|
|
|
<span v-else>
|
|
|
|
|
|
|
|
|
|
</span>
|
|
|
|
|
</span>
|
|
|
|
|
</a-table>
|
|
|
|
|
</div>
|
|
|
|
|
</template>
|
|
|
|
|
|
|
|
|
|
<script>
|
|
|
|
|
import {imgUrl, videoUrl} from "@/api/importExcel";
|
|
|
|
|
export default {
|
|
|
|
|
name: "historyMonitoring",
|
|
|
|
|
components: {
|
|
|
|
|
@ -56,6 +91,7 @@ export default {
|
|
|
|
|
onShowSizeChange: (current, pageSize) => this.pageSize = pageSize // 改变每页数量时更新显示
|
|
|
|
|
},
|
|
|
|
|
loading: false,
|
|
|
|
|
imgUrl: imgUrl,
|
|
|
|
|
columns: [
|
|
|
|
|
{
|
|
|
|
|
title: "工单号",
|
|
|
|
|
@ -76,15 +112,17 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "时间",
|
|
|
|
|
dataIndex: "time",
|
|
|
|
|
dataIndex: "startTime",
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "照片(入库 货位 出库)",
|
|
|
|
|
dataIndex: "pic",
|
|
|
|
|
// dataIndex: "pic",
|
|
|
|
|
scopedSlots: {customRender: 'pic'}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "视频状态",
|
|
|
|
|
dataIndex: "status",
|
|
|
|
|
// dataIndex: "status",
|
|
|
|
|
scopedSlots: {customRender: 'status'}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "视频时长",
|
|
|
|
|
@ -92,11 +130,13 @@ export default {
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "球机1",
|
|
|
|
|
dataIndex: "camera1",
|
|
|
|
|
// dataIndex: "videoPath1",
|
|
|
|
|
scopedSlots: {customRender: 'videoPath1'}
|
|
|
|
|
},
|
|
|
|
|
{
|
|
|
|
|
title: "球机2",
|
|
|
|
|
dataIndex: "camera2",
|
|
|
|
|
// dataIndex: "videoPath2",
|
|
|
|
|
scopedSlots: {customRender: 'videoPath2'}
|
|
|
|
|
},
|
|
|
|
|
],
|
|
|
|
|
};
|
|
|
|
|
@ -125,27 +165,28 @@ export default {
|
|
|
|
|
this.request();
|
|
|
|
|
},
|
|
|
|
|
request() {
|
|
|
|
|
// this.$api.httpApi.queryList({
|
|
|
|
|
// data: {
|
|
|
|
|
// pageNum:this.pageNum,
|
|
|
|
|
// pageSize:this.pageSize,
|
|
|
|
|
// ...this.queryParam
|
|
|
|
|
// }
|
|
|
|
|
// }).then(res => {
|
|
|
|
|
// console.log(res)
|
|
|
|
|
// }).catch(err => {
|
|
|
|
|
//
|
|
|
|
|
// });
|
|
|
|
|
this.$api.httpApi.queryList({
|
|
|
|
|
data: {
|
|
|
|
|
pageNum: this.pageNum,
|
|
|
|
|
pageSize: this.pageSize,
|
|
|
|
|
...this.queryParam
|
|
|
|
|
}
|
|
|
|
|
}).then(res => {
|
|
|
|
|
console.log(res)
|
|
|
|
|
this.data = res.data
|
|
|
|
|
}).catch(err => {
|
|
|
|
|
|
|
|
|
|
});
|
|
|
|
|
},
|
|
|
|
|
onTimeChange(date, dateString) {
|
|
|
|
|
console.log(date)
|
|
|
|
|
console.log(date[0].format('X'))
|
|
|
|
|
this.queryParam.start_time = date[0].format('X')
|
|
|
|
|
this.queryParam.end_time = date[1].format('X')
|
|
|
|
|
this.queryParam.startTimestamp = date[0].format('X')
|
|
|
|
|
this.queryParam.endTimestamp = date[1].format('X')
|
|
|
|
|
},
|
|
|
|
|
handleReset() {
|
|
|
|
|
this.queryParam.start_time=""
|
|
|
|
|
this.queryParam.end_time=""
|
|
|
|
|
this.queryParam.startTimestamp = ""
|
|
|
|
|
this.queryParam.endTimestamp = ""
|
|
|
|
|
this.time = ""
|
|
|
|
|
},
|
|
|
|
|
},
|
|
|
|
|
@ -159,11 +200,18 @@ export default {
|
|
|
|
|
.ant-drawer-content-wrapper {
|
|
|
|
|
height: auto !important;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ant-drawer-body {
|
|
|
|
|
text-align: center;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.ant-advanced-search-form .ant-form-item {
|
|
|
|
|
display: flex;
|
|
|
|
|
width: 100%;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
.historyImg {
|
|
|
|
|
width: 80px;
|
|
|
|
|
margin: 5px;
|
|
|
|
|
}
|
|
|
|
|
</style>
|
|
|
|
|
|