Commit ec4bbb04 by 胡悦

Merge branch 'v1.5.0' into 'develop'

V1.5.0版本已上线,先需要吧代码合并到develop

See merge request !4
2 parents dd804ffe f85ce04e
<template>
<div class="dialog_page">
<el-dialog ref="glsxDialogCom" :title="title" :visible.sync="show" :width="width" :append-to-body="appendtobody" :show-close="showClose" custom-class="glsx_dialog" :close-on-press-escape="false" :close-on-click-modal="false" @close="onCancel" @opened="onDialogOpened">
<div slot="title" class="test" v-if="slotInfo.title">
<slot name="title" />
</div>
<div class="dialog_content">
<slot />
</div>
<div class="dialog_footer" v-show="hasFooter">
<slot name="footer"></slot>
</div>
</el-dialog>
</div>
</template>
<script>
export default {
name: "GlsxDialog",
props: {
show: {
type: Boolean,
default: false,
},
title: {
type: String,
default: "提示",
},
width: {
type: String,
default: "46%",
},
cancel: {
required: false,
type: Function,
},
confirm: {
required: false,
type: Function,
},
usefooter: {
required: false,
type: Boolean,
default: false,
},
appendtobody: {
required: false,
type: Boolean,
default: false,
},
value: {
type: Boolean,
default: false,
},
showClose: {
required: false,
type: Boolean,
default: true,
},
},
data() {
return {
hasFooter: false,
hasTitle: false,
slotInfo: {},
};
},
created() {
let o = this.$slots;
this.hasFooter = o.footer;
this.hasTitle = o.title;
this.slotInfo = o;
},
mounted: function () {
//this.$refs.glsxDialogCom.rendered = true;
},
methods: {
/**
* 取消关闭弹框
*/
onCancel: function () {
// 兼容以前的页面
this.$emit("close");
//this.$emit("input", false);
},
/**
* 确定
*/
onConfirm: function () {},
//
onDialogOpened() {},
},
};
</script>
<style lang="scss">
.glsx_dialog {
.el-dialog__header {
border-bottom: 1px solid #ddd !important;
padding-top: 10px;
font-size: 14px;
}
.el-dialog__headerbtn {
top: 10px;
right: 10px;
}
.el-dialog__body {
padding: 0;
}
.el-dialog__footer {
border-top: 1px solid #ddd;
}
}
</style>
<style lang="scss" scoped>
.dialog_content {
max-height: 600px;
overflow-y: auto;
padding: 20px;
}
.dialog_footer {
padding: 10px 15px;
border-top: 1px solid #e1e1e1;
text-align: right;
}
</style>
...@@ -9,7 +9,7 @@ ...@@ -9,7 +9,7 @@
</el-table-column> </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" hide-on-single-page :total="pageTotal" :page-size="pageSize" :page-sizes="pageSizes" :current-page.sync="currentPage" @current-change="getList" @size-change="changePageSize" /> <el-pagination background layout="sizes, total,prev, pager, next, jumper" :total="pageTotal" :page-size.sync="pageSizeNum" :page-sizes="pageSizes" :current-page.sync="currentPage" @current-change="getList" @size-change="changePageSize" />
</div> </div>
</div> </div>
</template> </template>
...@@ -69,32 +69,33 @@ export default { ...@@ -69,32 +69,33 @@ export default {
data() { data() {
return { return {
currentPage: 1, currentPage: 1,
pageSizeNum: 10,
}; };
}, },
created() { created() {
this.pageSizeNum = this.pageSize;
//console.log(this.$scopedSlots); //console.log(this.$scopedSlots);
}, },
mounted() { mounted() {},
},
methods: { methods: {
/** /**
* 每页展示 * 每页展示
*/ */
changePageSize: function (e) { changePageSize: function (e) {
this.pageSize = e; this.pageSizeNum = e;
this.$emit("change", { pageSize: e }); this.$emit("change", { pageSize: e });
//this.getList(); //this.getList();
}, },
// 获取列表 // 获取列表
getList(current) { getList(current) {
this.$emit("change", { pageNumber: current, pageSize: this.pageSize }); this.$emit("change", { pageNumber: current, pageSize: this.pageSizeNum });
}, },
// 重置 // 重置
rest() { rest() {
this.currentPage = 1; this.currentPage = 1;
this.pageSize = 10 this.pageSizeNum = 10;
}, },
}, },
}; };
......
...@@ -180,6 +180,15 @@ const routes = [ ...@@ -180,6 +180,15 @@ const routes = [
} }
}, },
{ {
path: '/reportManage/offline',
name: 'pseudoOfflineReport',
component: () => import('../views/reportManage/offline.vue'),
meta: {
title: '假性离线报表',
keepAlive: true
}
},
{
path: '/specialShop', path: '/specialShop',
name: 'specialShop', name: 'specialShop',
component: () => import('../views/specialShop/index.vue'), component: () => import('../views/specialShop/index.vue'),
......
import { REPORT_API } from '@/config/config' import { REPORT_API } from '@/config/config'
import request from '@/services/request' import request from '@/services/request'
import store from "@/store";
const BASEURL = store.state.baseURL
// 获取报表列表 // 获取报表列表
function getList (params) { function getList (params) {
...@@ -106,7 +109,24 @@ export const GET_JOURNEYS_DAILYEXPORT = params => { ...@@ -106,7 +109,24 @@ export const GET_JOURNEYS_DAILYEXPORT = params => {
return request(params, '/trialdrive/journeys/dailyExport') return request(params, '/trialdrive/journeys/dailyExport')
} }
// 报表管理-假性离线报警-获取列表
export const GET_FAKEOFFLINE_LIST = params => {
return request(params, '/trialdrive/fakeoffline/search')
}
// 报表管理-假性离线报警-导出excel
export const GET_FAKEOFFLINE_EXPORT = params => {
return request(params, '/trialdrive/fakeoffline/export')
}
// 报表管理-假性离线报警-下载模板
//export const GET_FAKEOFFLINE_TEMPLATEFILES = BASEURL + "/trialdrive/fakeoffline/downloadtemplate";
export const GET_FAKEOFFLINE_TEMPLATEFILES = params => {
return request(params, '/trialdrive/fakeoffline/downloadtemplate')
}
// 报表管理-假性离线报警-导入excel
export const IMPORT_FAKEOFFLINE_FILES = BASEURL + '/trialdrive/fakeoffline/import'
export { getList, getYears, getOutStoreList } export { getList, getYears, getOutStoreList }
.title_tips {
font-size: 14px;
}
.links_group {
display: flex;
align-items: center;
justify-content: space-between;
.pull-right {
margin-left: 10px;
}
}
.search_box {
.a_input {
width: 320px;
}
}
.upload_box {
.input_box {
display: flex;
align-items: center;
.a_input {
margin-right: 10px;
width: 320px;
}
}
.tips {
font-size: 12px;
color: #999;
line-height: 2;
}
}
.dialog_links {
display: flex;
align-items: center;
justify-content: space-between;
}
.upload_result {
display: flex;
justify-content: center;
.cell {
position: relative;
//width: 200px;
flex:1;
display: flex;
flex-direction: column;
text-align: center;
span {
line-height: 2;
}
.num {
font-size: 18px;
font-weight: bold;
color: #666;
}
.cred {
color: #f00;
}
}
.cell:after {
display: block;
content: "";
width: 1px;
background: #d8d8d8;
position: absolute;
top: 50%;
right: 0;
height: 70%;
transform: translateY(-50%);
opacity: 0.8;
}
.cell:last-child:after {
display: none;
}
}
\ No newline at end of file \ No newline at end of file
...@@ -67,6 +67,14 @@ ...@@ -67,6 +67,14 @@
<el-table-column label="设备号" prop="sn"></el-table-column> <el-table-column label="设备号" prop="sn"></el-table-column>
<el-table-column label="报警类型" prop="alarmTypeStr"></el-table-column> <el-table-column label="报警类型" prop="alarmTypeStr"></el-table-column>
<el-table-column label="报警状态" prop="alarmStatusStr"></el-table-column> <el-table-column label="报警状态" prop="alarmStatusStr"></el-table-column>
<el-table-column label="报警次数" prop="alarmCount">
<template slot-scope="{row}">
{{row.alarmStatus == 2?'--':(row.alarmCount||0)}}
</template>
</el-table-column>
<el-table-column label="风险等级" prop="alarmLevel"></el-table-column>
<el-table-column label="报警编号" prop="geoCode"></el-table-column> <el-table-column label="报警编号" prop="geoCode"></el-table-column>
<el-table-column label="报警地点" prop="alarmAddress"></el-table-column> <el-table-column label="报警地点" prop="alarmAddress"></el-table-column>
<el-table-column label="报警生效时间" prop="alarmBeginTime"></el-table-column> <el-table-column label="报警生效时间" prop="alarmBeginTime"></el-table-column>
...@@ -245,7 +253,11 @@ export default { ...@@ -245,7 +253,11 @@ export default {
oParams.name = row.ownerName; oParams.name = row.ownerName;
oParams.standNo = row.vin; oParams.standNo = row.vin;
oParams.time = row.alarmBeginTime; oParams.time = row.alarmBeginTime;
let path = `/oEshield#/monitor/activeLocation`; let path = `/oEshield/#/monitor/activeLocation`;
let o = window.location.origin;
//this.$root.parentCommon.setBreadCrumbs(path);
//window.open(`${o}${path}?vin=${row.vin}`)
history.pushState(oParams, "报警位置点", path); history.pushState(oParams, "报警位置点", path);
}, },
......
...@@ -88,6 +88,7 @@ import GlsxOrganization from "@/components/glsx-organization"; ...@@ -88,6 +88,7 @@ import GlsxOrganization from "@/components/glsx-organization";
import { GETOFFLINESEARCH, ALARM_OFFLINE_EXPORT } from "@/services/alarmCenter"; import { GETOFFLINESEARCH, ALARM_OFFLINE_EXPORT } from "@/services/alarmCenter";
import { deepClone, showToast } from "@/utils/util"; import { deepClone, showToast } from "@/utils/util";
import store from "@/store"; import store from "@/store";
import qs from 'qs'
export default { export default {
components: { components: {
GlsxOrganization, GlsxOrganization,
...@@ -281,11 +282,11 @@ export default { ...@@ -281,11 +282,11 @@ export default {
oParams.bsLat = row.bsAlarmLat; oParams.bsLat = row.bsAlarmLat;
oParams.bsAddress = row.bsAlarmAddress; oParams.bsAddress = row.bsAlarmAddress;
oParams.bsTime = row.lastBsTime; oParams.bsTime = row.lastBsTime;
let a = window.location.origin; //let a = window.location.origin;
let path = `/oEshield#/monitor/activeLocation`; let path = `/oEshield#/monitor/activeLocation?${qs.stringify(oParams)}`;
this.$root.parentCommon.setBreadCrumbs(path);
// window.open(path) window.open(path)
history.pushState(oParams, "报警位置点", path); //history.pushState(oParams, "报警位置点", path);
}, },
}, },
}; };
......
...@@ -255,7 +255,7 @@ export default { ...@@ -255,7 +255,7 @@ export default {
oParams.lng = row.gpsLng; oParams.lng = row.gpsLng;
oParams.lat = row.gpsLat; oParams.lat = row.gpsLat;
oParams.address = row.firstGpsAddress; oParams.address = row.firstGpsAddress;
oParams.name = row.ownerName; oParams.name = row.ownerName||'--';
oParams.standNo = row.vin; oParams.standNo = row.vin;
oParams.time = row.activeDate; oParams.time = row.activeDate;
oParams.bsLng = row.bsLng; oParams.bsLng = row.bsLng;
......
...@@ -26,6 +26,12 @@ ...@@ -26,6 +26,12 @@
<!-- 列表数据 开始 --> <!-- 列表数据 开始 -->
<basic-table ref="vehicleForm" :beforeSearchFn="beforeSearchFn" :tableParams="vehicleTableParams" :getListApi="getListApi" :searchForm="searchForm" @dataFinished="tableDataFinished" :hasNum="false"> <basic-table ref="vehicleForm" :beforeSearchFn="beforeSearchFn" :tableParams="vehicleTableParams" :getListApi="getListApi" :searchForm="searchForm" @dataFinished="tableDataFinished" :hasNum="false">
<span slot="table-button" slot-scope="scope"> <span slot="table-button" slot-scope="scope">
<template v-if="scope.scope.permitType == 'r'">
<!-- <el-button type="view" size="mini" plain @click="btnClick('view', scope.scope)">查看</el-button> -->
<el-link type="primary" size="mini" plain @click="btnClick('view', scope.scope)">查看</el-link>
</template>
<template v-else>
<el-button v-for="(j, idx) in vehicleTableParams.tableOption.btnList" :key="idx" :type="j.type || 'text'" size="mini" plain @click="btnClick(j.pType, scope.scope)">{{j.name}}</el-button> <el-button v-for="(j, idx) in vehicleTableParams.tableOption.btnList" :key="idx" :type="j.type || 'text'" size="mini" plain @click="btnClick(j.pType, scope.scope)">{{j.name}}</el-button>
<el-button v-if="scope.scope.sns" type="text" size="mini" @click="btnClick('unbind', scope.scope)">解绑</el-button> <el-button v-if="scope.scope.sns" type="text" size="mini" @click="btnClick('unbind', scope.scope)">解绑</el-button>
<!-- <el-button v-if="scope.scope.adjFreq === 1" type="text" size="mini" @click="btnClick('freq', scope.scope)">一键调频</el-button> --> <!-- <el-button v-if="scope.scope.adjFreq === 1" type="text" size="mini" @click="btnClick('freq', scope.scope)">一键调频</el-button> -->
...@@ -37,6 +43,8 @@ ...@@ -37,6 +43,8 @@
<el-dropdown-item v-if="scope.scope.adjFreq===1" :command="getCommand('freq', scope.scope.sn, scope.scope.enableFre)">一键调频</el-dropdown-item> <el-dropdown-item v-if="scope.scope.adjFreq===1" :command="getCommand('freq', scope.scope.sn, scope.scope.enableFre)">一键调频</el-dropdown-item>
</el-dropdown-menu> </el-dropdown-menu>
</el-dropdown> </el-dropdown>
</template>
</span> </span>
</basic-table> </basic-table>
<!-- 列表数据 end --> <!-- 列表数据 end -->
...@@ -889,7 +897,7 @@ export default { ...@@ -889,7 +897,7 @@ export default {
created() { created() {
this.vehicleListPromise = new Promise((resolve, reject) => { this.vehicleListPromise = new Promise((resolve, reject) => {
this.getModels(); this.getModels();
resolve() resolve();
}); });
}, },
mounted() { mounted() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!