Commit a9283b9e by jack

增加常驻地按钮

1 parent d3838cf5
......@@ -78,6 +78,11 @@
<el-table-column label="最后GPS定位地址" prop="lastGpsAddress" show-overflow-tooltip width="240">
<template slot-scope="{row}">{{row.lastGpsAddress||'--'}}</template>
</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>
<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" />
......@@ -90,15 +95,18 @@
<script>
import { shutDownShortcuts } from "@/common";
import GlsxOrganization from "@/components/glsx-organization";
import { GET_ALARM_SHUTDOWN, ALARM_SHUTDOWN_EXPORT } from "@/services/alarmCenter";
import { deepClone, showToast,downFileByPath } from "@/utils/util";
import {
GET_ALARM_SHUTDOWN,
ALARM_SHUTDOWN_EXPORT,
} from "@/services/alarmCenter";
import { deepClone, showToast, downFileByPath } from "@/utils/util";
export default {
components: {
GlsxOrganization,
},
data() {
return {
searchForm: {stayRange:2},
searchForm: { stayRange: 2 },
currentPage: 1,
pageSizes: [10, 20, 30, 40],
pageSize: 10,
......@@ -157,8 +165,8 @@ export default {
oParams.pageSize = this.pageSize;
oParams.pageNumber = current || this.currentPage;
this.tloading = true;
if(current){
this.currentPage = current
if (current) {
this.currentPage = current;
}
GET_ALARM_SHUTDOWN(oParams).then((res) => {
this.tloading = false;
......@@ -197,10 +205,16 @@ export default {
if (res.code != 200) {
return false;
}
downFileByPath(res.data)
downFileByPath(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>
......@@ -215,7 +229,7 @@ export default {
.el_radio_group {
vertical-align: middle;
}
.table_box{
.table_box {
margin-top: 0;
}
</style>
\ 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!