Commit 25ac4bdc by 张杰

1111

1 parent b62aef47
......@@ -112,8 +112,8 @@ export default {
justify-content: space-between;
padding: 10px 0;
.name {
font-size: 18px;
font-weight: bold;
font-size: 16px;
font-weight: normal;
color: #666;
}
}
......
......@@ -133,15 +133,15 @@ const routes = [
keepAlive: true
}
},
// {
// path: '/reportManage/summary',
// name: 'summary',
// component: () => import('../views/reportManage/summary.vue'),
// meta: {
// title: '汇总统计',
// keepAlive: true
// }
// },
{
path: '/reportManage/summary',
name: 'summary',
component: () => import('../views/reportManage/summary.vue'),
meta: {
title: '汇总统计',
keepAlive: true
}
},
{
path: '/specialShop',
name: 'specialShop',
......
.page_title{
margin-bottom:30px;
.h2,.h3{
font-weight: normal;
margin: 0;
padding:0;
line-height: 2;
}
.h2{
font-size:18px;
font-weight: bold;
color:#666;
}
.h3{
font-size:14px;
color:#999;
}
}
.sort_select {
width: 100px;
}
......
<template>
<div class="">
<div class="page_title">
<h2 class="h2">大数据研判警情</h2>
<h3 class="h3">用于统计展示车辆黑区、聚集、二押警情,数据信息按自然日统计生成</h3>
</div>
<!-- 搜索区域 开始 -->
<div class="search_box">
<el-form :inline="true" size="small">
......@@ -28,8 +33,8 @@
<el-form-item label="报警状态:">
<el-select v-model="searchForm.alarmStatus" class="small_select" placeholder="请选择">
<el-option label="全部" value=""></el-option>
<el-option label="生效" value="1"></el-option>
<el-option label="失效" value="2"></el-option>
<el-option label="生效" :value="1"></el-option>
<el-option label="失效" :value="2"></el-option>
</el-select>
</el-form-item>
<el-form-item label="关键字">
......@@ -38,6 +43,9 @@
<el-form-item>
<el-button icon="el-icon-search" type="primary" @click="getList()">搜索</el-button>
</el-form-item>
<el-form-item>
<el-button icon="el-icon-refresh" type="default" @click="rest()">重置</el-button>
</el-form-item>
</el-form>
</div>
<!-- 搜索区域 end -->
......@@ -165,13 +173,27 @@ export default {
filterVisible: false,
orgInfo: {},
dloading: false,
tloading:false
tloading: false,
};
},
created() {
let o = history.state;
if (o.alarmStatus) {
let n = moment().format("YYYY-MM-DD");
this.$set(this.searchForm,'timeDate',[n, n])
this.$set(this.searchForm,'alarmStatus',o.alarmStatus)
}
},
mounted() {
this.getList();
},
methods: {
// 重置
rest() {
this.searchForm = {};
this.getList();
},
// 获取查询参数
getParams() {
let oParams = deepClone(this.searchForm);
......@@ -190,9 +212,9 @@ export default {
let oParams = this.getParams();
oParams.pageSize = this.pageSize;
oParams.pageNumber = current || this.currentPage;
this.tloading = true
this.tloading = true;
GETJUDGMENTSEARCH(oParams).then((res) => {
this.tloading = false
this.tloading = false;
let obj = res.data || {};
this.tableData = obj.list;
this.pageTotal = obj.totalElements;
......
<template>
<div class="">
<div class="page_title">
<h2 class="h2">离线报警信息</h2>
<h3 class="h3">用于统计设备离线信息</h3>
</div>
<!-- 搜索区域 开始 -->
<div class="search_box">
<el-form :inline="true" size="small">
......@@ -35,6 +40,9 @@
<el-form-item>
<el-button icon="el-icon-search" type="primary" @click="getList()">搜索</el-button>
</el-form-item>
<el-form-item>
<el-button icon="el-icon-refresh" type="default" @click="rest()">重置</el-button>
</el-form-item>
</el-form>
</div>
<!-- 搜索区域 end -->
......@@ -171,13 +179,19 @@ export default {
filterVisible: false,
orgInfo: {},
dloading: false,
tloading:false
tloading: false,
};
},
mounted() {
this.getList();
},
methods: {
// 重置
rest() {
this.searchForm = {};
this.getList();
},
// 获取查询参数
getParams() {
let oParams = deepClone(this.searchForm);
......@@ -204,9 +218,9 @@ export default {
let oParams = this.getParams();
oParams.pageSize = this.pageSize;
oParams.pageNumber = current || this.currentPage;
this.tloading = true
this.tloading = true;
GETOFFLINESEARCH(oParams).then((res) => {
this.tloading = false
this.tloading = false;
let obj = res.data || {};
this.tableData = obj.list;
this.pageTotal = obj.totalElements;
......
<template>
<div class="">
<div class="page_title">
<h2 class="h2">防拆报警</h2>
<h3 class="h3">用于有线设备的断电报警和无线设备的光感报警,断电报警和光感报警统称防拆报警</h3>
</div>
<!-- 搜索区域 开始 -->
<div class="search_box">
<el-form :inline="true" size="small">
......@@ -27,8 +32,8 @@
<el-form-item label="报警状态:">
<el-select v-model="searchForm.alarmStatus" class="small_select" placeholder="请选择">
<el-option label="全部" value=""></el-option>
<el-option label="生效" value="1"></el-option>
<el-option label="失效" value="2"></el-option>
<el-option label="生效" :value="1"></el-option>
<el-option label="失效" :value="2"></el-option>
</el-select>
</el-form-item>
<el-form-item label="关键字">
......@@ -37,6 +42,9 @@
<el-form-item>
<el-button icon="el-icon-search" type="primary" @click="getList()">搜索</el-button>
</el-form-item>
<el-form-item>
<el-button icon="el-icon-refresh" type="default" @click="rest()">重置</el-button>
</el-form-item>
</el-form>
</div>
<!-- 搜索区域 end -->
......@@ -83,7 +91,6 @@ import {
ALARM_COMMONTEARDOWN_EXPORT,
} from "@/services/alarmCenter";
import { deepClone, showToast } from "@/utils/util";
import store from "@/store";
export default {
components: {
GlsxOrganization,
......@@ -167,13 +174,27 @@ export default {
filterVisible: false,
orgInfo: {},
dloading: false,
tloading:false
tloading: false,
};
},
created() {
let o = history.state;
if (o.alarmStatus) {
let n = moment().format("YYYY-MM-DD");
this.$set(this.searchForm,'timeDate',[n, n])
this.$set(this.searchForm,'alarmStatus',o.alarmStatus)
}
},
mounted() {
this.getList();
},
methods: {
// 重置
rest() {
this.searchForm = {};
this.getList();
},
// 获取查询参数
getParams() {
let oParams = deepClone(this.searchForm);
......@@ -192,9 +213,9 @@ export default {
let oParams = this.getParams();
oParams.pageSize = this.pageSize;
oParams.pageNumber = current || this.currentPage;
this.tloading = true
this.tloading = true;
GETCOMMONTEARDOWNSEARCH(oParams).then((res) => {
this.tloading = false
this.tloading = false;
let obj = res.data || {};
this.tableData = obj.list;
this.pageTotal = obj.totalElements;
......
......@@ -5,15 +5,24 @@
<!-- 搜索区域 开始 -->
<div class="search_box">
<el-form :model="searchForm" :inline="true" size="medium">
<el-form :model="searchForm" :inline="true" size="small">
<el-form-item label="关键字:">
<el-input v-model="searchForm.dddd" placeholder="特约店编码|店名称"></el-input>
</el-form-item>
<el-form-item label="车辆归属:">
<el-popover v-model="filterVisible" placement="bottom-start" width="400" trigger="click">
<div>
<glsx-organization @change="onChange"></glsx-organization>
</div>
<el-input v-model="searchForm.orgName" :placeholder="searchForm.specialShopName || '所属组织'" slot="reference" readonly clearable>
</el-input>
</el-popover>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search">搜索</el-button>
</el-form-item>
<el-form-item>
<el-button type="default" icon="el-icon-refresh">重置</el-button>
<el-button type="default" icon="el-icon-refresh" @click="rest()">重置</el-button>
</el-form-item>
</el-form>
</div>
......@@ -22,7 +31,7 @@
<!-- 按钮区域 开始 -->
<div class="links_group">
<span>试乘试驾汇总信息</span>
<el-button class="pull-right" type="primary" icon="el-icon-download" size="medium" @click="btnClick('export')">导出Excel</el-button>
<el-button class="pull-right" type="primary" icon="el-icon-download" size="small" @click="btnClick('export')">导出Excel</el-button>
</div>
<!-- 按钮区域 end -->
......@@ -37,7 +46,12 @@
<script>
import GlsxTable from "@/components/glsx-table";
import { getList } from "services/report";
import GlsxOrganization from "@/components/glsx-organization";
export default {
components: {
GlsxTable,
GlsxOrganization,
},
data() {
return {
searchForm: {},
......@@ -56,15 +70,20 @@ export default {
{ label: "是否关联", prop: "" },
],
pageTotal: 0,
filterVisible:false
};
},
components: {
GlsxTable,
},
mounted() {
this.getTableList();
},
methods: {
// 重置
rest(){
this.searchForm = {}
this.getTableList()
},
// 获取列表
getTableList(options) {
let oParams = {};
......@@ -86,6 +105,18 @@ export default {
// history.pushState(query, path, path);
this.$router.push({ name: "mileageDetail" });
},
// 监听树
onChange(e) {
this.filterVisible = false;
console.log(e);
if (e) {
this.orgInfo = e.origin;
this.searchForm.orgId = e.origin.orgId;
this.searchForm.orgName = e.origin.orgName;
}
},
},
};
</script>
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!