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 @@
</el-table-column>
</el-table>
<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>
</template>
......@@ -69,32 +69,33 @@ export default {
data() {
return {
currentPage: 1,
pageSizeNum: 10,
};
},
created() {
this.pageSizeNum = this.pageSize;
//console.log(this.$scopedSlots);
},
mounted() {
},
mounted() {},
methods: {
/**
* 每页展示
*/
changePageSize: function (e) {
this.pageSize = e;
this.pageSizeNum = e;
this.$emit("change", { pageSize: e });
//this.getList();
},
// 获取列表
getList(current) {
this.$emit("change", { pageNumber: current, pageSize: this.pageSize });
this.$emit("change", { pageNumber: current, pageSize: this.pageSizeNum });
},
// 重置
rest() {
this.currentPage = 1;
this.pageSize = 10
this.pageSizeNum = 10;
},
},
};
......
......@@ -180,6 +180,15 @@ const routes = [
}
},
{
path: '/reportManage/offline',
name: 'pseudoOfflineReport',
component: () => import('../views/reportManage/offline.vue'),
meta: {
title: '假性离线报表',
keepAlive: true
}
},
{
path: '/specialShop',
name: 'specialShop',
component: () => import('../views/specialShop/index.vue'),
......
import { REPORT_API } from '@/config/config'
import request from '@/services/request'
import store from "@/store";
const BASEURL = store.state.baseURL
// 获取报表列表
function getList (params) {
......@@ -106,7 +109,24 @@ export const GET_JOURNEYS_DAILYEXPORT = params => {
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 }
.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
......@@ -67,6 +67,14 @@
<el-table-column label="设备号" prop="sn"></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="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="alarmAddress"></el-table-column>
<el-table-column label="报警生效时间" prop="alarmBeginTime"></el-table-column>
......@@ -245,7 +253,11 @@ export default {
oParams.name = row.ownerName;
oParams.standNo = row.vin;
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);
},
......
......@@ -88,6 +88,7 @@ import GlsxOrganization from "@/components/glsx-organization";
import { GETOFFLINESEARCH, ALARM_OFFLINE_EXPORT } from "@/services/alarmCenter";
import { deepClone, showToast } from "@/utils/util";
import store from "@/store";
import qs from 'qs'
export default {
components: {
GlsxOrganization,
......@@ -281,11 +282,11 @@ export default {
oParams.bsLat = row.bsAlarmLat;
oParams.bsAddress = row.bsAlarmAddress;
oParams.bsTime = row.lastBsTime;
let a = window.location.origin;
let path = `/oEshield#/monitor/activeLocation`;
// window.open(path)
history.pushState(oParams, "报警位置点", path);
//let a = window.location.origin;
let path = `/oEshield#/monitor/activeLocation?${qs.stringify(oParams)}`;
this.$root.parentCommon.setBreadCrumbs(path);
window.open(path)
//history.pushState(oParams, "报警位置点", path);
},
},
};
......
......@@ -255,7 +255,7 @@ export default {
oParams.lng = row.gpsLng;
oParams.lat = row.gpsLat;
oParams.address = row.firstGpsAddress;
oParams.name = row.ownerName;
oParams.name = row.ownerName||'--';
oParams.standNo = row.vin;
oParams.time = row.activeDate;
oParams.bsLng = row.bsLng;
......
......@@ -26,17 +26,25 @@
<!-- 列表数据 开始 -->
<basic-table ref="vehicleForm" :beforeSearchFn="beforeSearchFn" :tableParams="vehicleTableParams" :getListApi="getListApi" :searchForm="searchForm" @dataFinished="tableDataFinished" :hasNum="false">
<span slot="table-button" slot-scope="scope">
<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.adjFreq === 1" type="text" size="mini" @click="btnClick('freq', scope.scope)">一键调频</el-button> -->
<el-dropdown v-if="scope.scope.adjFreq" @command="handleCommand" style="margin-left:5px">
<el-button size="mini">
<i class="el-icon-arrow-down"></i>
</el-button>
<el-dropdown-menu slot="dropdown">
<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>
<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-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-dropdown v-if="scope.scope.adjFreq" @command="handleCommand" style="margin-left:5px">
<el-button size="mini">
<i class="el-icon-arrow-down"></i>
</el-button>
<el-dropdown-menu slot="dropdown">
<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>
</template>
</span>
</basic-table>
<!-- 列表数据 end -->
......@@ -889,7 +897,7 @@ export default {
created() {
this.vehicleListPromise = new Promise((resolve, reject) => {
this.getModels();
resolve()
resolve();
});
},
mounted() {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!