Commit 7a282fad by 张杰

Merge branch 'dev_zj_1.7.0' into 'v1.7.0'

v1.7.0版本需求代码合并

See merge request !10
2 parents ffc51e4c a9283b9e
...@@ -78,6 +78,11 @@ ...@@ -78,6 +78,11 @@
<el-table-column label="最后GPS定位地址" prop="lastGpsAddress" show-overflow-tooltip width="240"> <el-table-column label="最后GPS定位地址" prop="lastGpsAddress" show-overflow-tooltip width="240">
<template slot-scope="{row}">{{row.lastGpsAddress||'--'}}</template> <template slot-scope="{row}">{{row.lastGpsAddress||'--'}}</template>
</el-table-column> </el-table-column>
<el-table-column label="操作" prop="lastGpsAddress">
<template slot-scope="{row}">
<el-link class="el_link" type="primary" @click="lookDetail(row)">常住地</el-link>
</template>
</el-table-column>
</el-table> </el-table>
<div class="pagination_list"> <div class="pagination_list">
<el-pagination background layout="sizes, total,prev, pager, next, jumper" :total="pageTotal" :current-page.sync="currentPage" :page-size="pageSize" :page-sizes="pageSizes" @current-change="getList" @size-change="changePageSize" /> <el-pagination background layout="sizes, total,prev, pager, next, jumper" :total="pageTotal" :current-page.sync="currentPage" :page-size="pageSize" :page-sizes="pageSizes" @current-change="getList" @size-change="changePageSize" />
...@@ -90,15 +95,18 @@ ...@@ -90,15 +95,18 @@
<script> <script>
import { shutDownShortcuts } from "@/common"; import { shutDownShortcuts } from "@/common";
import GlsxOrganization from "@/components/glsx-organization"; import GlsxOrganization from "@/components/glsx-organization";
import { GET_ALARM_SHUTDOWN, ALARM_SHUTDOWN_EXPORT } from "@/services/alarmCenter"; import {
import { deepClone, showToast,downFileByPath } from "@/utils/util"; GET_ALARM_SHUTDOWN,
ALARM_SHUTDOWN_EXPORT,
} from "@/services/alarmCenter";
import { deepClone, showToast, downFileByPath } from "@/utils/util";
export default { export default {
components: { components: {
GlsxOrganization, GlsxOrganization,
}, },
data() { data() {
return { return {
searchForm: {stayRange:2}, searchForm: { stayRange: 2 },
currentPage: 1, currentPage: 1,
pageSizes: [10, 20, 30, 40], pageSizes: [10, 20, 30, 40],
pageSize: 10, pageSize: 10,
...@@ -157,8 +165,8 @@ export default { ...@@ -157,8 +165,8 @@ export default {
oParams.pageSize = this.pageSize; oParams.pageSize = this.pageSize;
oParams.pageNumber = current || this.currentPage; oParams.pageNumber = current || this.currentPage;
this.tloading = true; this.tloading = true;
if(current){ if (current) {
this.currentPage = current this.currentPage = current;
} }
GET_ALARM_SHUTDOWN(oParams).then((res) => { GET_ALARM_SHUTDOWN(oParams).then((res) => {
this.tloading = false; this.tloading = false;
...@@ -197,10 +205,16 @@ export default { ...@@ -197,10 +205,16 @@ export default {
if (res.code != 200) { if (res.code != 200) {
return false; return false;
} }
downFileByPath(res.data) downFileByPath(res.data);
//window.open(res.data); //window.open(res.data);
}); });
}, },
// 查看常驻地
lookDetail(row) {
let path = `/oEshield#/monitor/resident?sn=${row.sn}&name=${encodeURI(row.ownerName)}&standno=${row.vin}&locationType=${row.locationType}`;
window.open(path);
},
}, },
}; };
</script> </script>
...@@ -215,7 +229,7 @@ export default { ...@@ -215,7 +229,7 @@ export default {
.el_radio_group { .el_radio_group {
vertical-align: middle; vertical-align: middle;
} }
.table_box{ .table_box {
margin-top: 0; margin-top: 0;
} }
</style> </style>
\ No newline at end of file \ No newline at end of file
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!