Commit 0fc62e89 authored by xxx's avatar xxx

1

parent c161b682
...@@ -40,9 +40,9 @@ ...@@ -40,9 +40,9 @@
<div id="echarts2" class="echarts2" style="margin-top:1vh"></div> <div id="echarts2" class="echarts2" style="margin-top:1vh"></div>
<div class="aiAnalysisViews_1">报警车辆信息</div> <div class="aiAnalysisViews_1">报警车辆信息</div>
<el-table :data="aiAnalysisTableData" border style="width: 98%" height="24.5vh"> <el-table :data="aiAnalysisTableData" border style="width: 98%" height="24.5vh">
<el-table-column prop="carNo" label="车牌号" align="center"></el-table-column> <el-table-column prop="vid" label="车牌号" align="center"></el-table-column>
<el-table-column prop="type" label="报警类型" align="center"></el-table-column> <el-table-column prop="atpStr" label="报警类型" align="center"></el-table-column>
<el-table-column prop="createTime" label="报警时间" align="center"></el-table-column> <el-table-column prop="stm" label="报警时间" align="center" :formatter="changeTime1"></el-table-column>
<el-table-column label="查看" align="center"> <el-table-column label="查看" align="center">
<template slot-scope="scope"> <template slot-scope="scope">
<el-image style="width: 70px; height: 50px" :src="imgSrcStart + 'avatar/' + scope.row.photo" :preview-src-list="[imgSrcStart + 'avatar/' + scope.row.photo]"></el-image> <el-image style="width: 70px; height: 50px" :src="imgSrcStart + 'avatar/' + scope.row.photo" :preview-src-list="[imgSrcStart + 'avatar/' + scope.row.photo]"></el-image>
...@@ -145,6 +145,7 @@ export default { ...@@ -145,6 +145,7 @@ export default {
} }
}, },
aiTabPositionFn(){ aiTabPositionFn(){
let that = this;
if(this.aiTabPosition == '今天'){ if(this.aiTabPosition == '今天'){
let start = this.currentTime1(new Date(new Date(new Date().toLocaleDateString()).getTime())); let start = this.currentTime1(new Date(new Date(new Date().toLocaleDateString()).getTime()));
let end = this.currentTime1(new Date(new Date(new Date().toLocaleDateString()).getTime() + 24 * 60 * 60 * 1000 - 1)); let end = this.currentTime1(new Date(new Date(new Date().toLocaleDateString()).getTime() + 24 * 60 * 60 * 1000 - 1));
...@@ -161,7 +162,8 @@ export default { ...@@ -161,7 +162,8 @@ export default {
} }
}).then(function (response) { }).then(function (response) {
console.log(response.data.alarms); console.log(response.data.alarms);
}) that.aiAnalysisTableData = response.data.alarms;
})
} }
}, },
...@@ -345,6 +347,9 @@ export default { ...@@ -345,6 +347,9 @@ export default {
let currentFormatDate = year + "-" + month + "-" + day + " " + hours + ":" + minutes + ":" + seconds; let currentFormatDate = year + "-" + month + "-" + day + " " + hours + ":" + minutes + ":" + seconds;
return currentFormatDate; return currentFormatDate;
}, },
changeTime1(row){
return this.currentTime1(row.stm);
}
}, },
//销毁 //销毁
beforeDestroy() { beforeDestroy() {
......
...@@ -47,7 +47,7 @@ module.exports = { ...@@ -47,7 +47,7 @@ module.exports = {
} }
}, },
'/jiankong': { '/jiankong': {
target: 'http://120.224.103.84:8088/StandardApiAction_queryAlarmDetail.action', target: 'http://oa.gemho.cn:8088/StandardApiAction_queryAlarmDetail.action',
changeOrigin: true, changeOrigin: true,
pathRewrite: { pathRewrite: {
'^/jiankong': '' '^/jiankong': ''
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment