Commit 9ee78ced by 张晓玮

Merge branch 'zxw-v1.8.0' into 'v1.8.0'

Zxw v1.8.0

See merge request !41
2 parents e0ad5dd3 2f4ca57f
...@@ -76,7 +76,7 @@ import moment from "moment"; ...@@ -76,7 +76,7 @@ import moment from "moment";
import GlsxOrganization from "@/components/glsx-organization"; import GlsxOrganization from "@/components/glsx-organization";
import GlsxTable from "@/components/glsx-table/table"; import GlsxTable from "@/components/glsx-table/table";
import { GET_ALARM_LIST, GET_ALARM_EXPORT } from "@/services/alarmCenter"; import { GET_ALARM_LIST, GET_ALARM_EXPORT } from "@/services/alarmCenter";
import { deepClone, showToast } from "@/utils/util"; import { deepClone, showToast, downFileByPath } from "@/utils/util";
// import { alarmShortcuts } from "@/common" // import { alarmShortcuts } from "@/common"
import qs from 'qs' import qs from 'qs'
export default { export default {
...@@ -188,7 +188,8 @@ export default { ...@@ -188,7 +188,8 @@ export default {
if (res.code != 200) { if (res.code != 200) {
return false; return false;
} }
window.open(res.data); // window.open(res.data);
downFileByPath(res.data)
}); });
}, },
......
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
<div class="search_box"> <div class="search_box">
<el-form :inline="true" size="small"> <el-form :inline="true" size="small">
<el-form-item label="关键字"> <el-form-item label="关键字">
<el-input v-model.trim="searchForm.keywords" maxlength="20" placeholder="设备号|车架号|姓名|工单号"></el-input> <el-input v-model.trim="searchForm.keywords" class="longInput" maxlength="20" placeholder="设备号|车架号|姓名|业务工单号"></el-input>
</el-form-item> </el-form-item>
<el-form-item label="车辆归属:"> <el-form-item label="车辆归属:">
<el-popover v-model="filterVisible" placement="bottom-start" width="400" trigger="click"> <el-popover v-model="filterVisible" placement="bottom-start" width="400" trigger="click">
...@@ -25,6 +25,11 @@ ...@@ -25,6 +25,11 @@
<el-date-picker v-model="searchForm.offDate" type="daterange" class="data_picker" :clearable="false" unlink-panels range-separator="~" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd" :picker-options="offPickerOptions"> <el-date-picker v-model="searchForm.offDate" type="daterange" class="data_picker" :clearable="false" unlink-panels range-separator="~" start-placeholder="开始日期" end-placeholder="结束日期" value-format="yyyy-MM-dd" :picker-options="offPickerOptions">
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="报警等级:">
<el-select v-model="searchForm.alarmLevel" class="small_select">
<el-option v-for="(item, index) in alarmLevelList" :key="index" :label="item.name" :value="item.id"></el-option>
</el-select>
</el-form-item>
<el-form-item> <el-form-item>
<el-button icon="el-icon-search" type="primary" @click="searchEvent()">搜索</el-button> <el-button icon="el-icon-search" type="primary" @click="searchEvent()">搜索</el-button>
</el-form-item> </el-form-item>
...@@ -57,7 +62,7 @@ ...@@ -57,7 +62,7 @@
<script> <script>
import moment from "moment"; import moment from "moment";
import { GET_ALARM_HANDLE_LOG, GET_ALARM_HANDLE_LOG_EXPORT } from "@/services/alarmCenter"; import { GET_ALARM_HANDLE_LOG, GET_ALARM_HANDLE_LOG_EXPORT } from "@/services/alarmCenter";
import { deepClone } from "@/utils/util"; import { deepClone, downFileByPath } from "@/utils/util";
import GlsxOrganization from "@/components/glsx-organization"; import GlsxOrganization from "@/components/glsx-organization";
import { alarmLogShortcuts } from "@/common" import { alarmLogShortcuts } from "@/common"
import GlsxTable from "@/components/glsx-table/table"; import GlsxTable from "@/components/glsx-table/table";
...@@ -69,7 +74,7 @@ export default { ...@@ -69,7 +74,7 @@ export default {
}, },
data() { data() {
return { return {
searchForm: {offDate: ["", ""]}, searchForm: {offDate: ["", ""], alarmLevel: ""},
offPickerOptions: { offPickerOptions: {
shortcuts: alarmLogShortcuts, shortcuts: alarmLogShortcuts,
}, },
...@@ -85,7 +90,15 @@ export default { ...@@ -85,7 +90,15 @@ export default {
{ label: "处理时间", prop: "processTime" }, { label: "处理时间", prop: "processTime" },
], ],
tableParams: {}, tableParams: {},
GET_ALARM_HANDLE_LOG GET_ALARM_HANDLE_LOG,
alarmLevelList:[
{name:'全部',id:''},
{name:'1级',id:'1'},
{name:'2级',id:'2'},
{name:'3级',id:'3'},
{name:'4级',id:'4'},
// {name:'5级',id:'5'},
]
}; };
}, },
created() { created() {
...@@ -103,7 +116,7 @@ export default { ...@@ -103,7 +116,7 @@ export default {
// 重置 // 重置
rest() { rest() {
// this.defaultDate(); // this.defaultDate();
this.searchForm = {offDate: ["", ""]} this.searchForm = {offDate: ["", ""], alarmLevel: ""}
this.$refs.glsxTable.restParams() this.$refs.glsxTable.restParams()
this.tableParams = this.getParams(); this.tableParams = this.getParams();
}, },
...@@ -155,7 +168,8 @@ export default { ...@@ -155,7 +168,8 @@ export default {
if (res.code != 200) { if (res.code != 200) {
return false; return false;
} }
window.open(res.data); // window.open(res.data);
downFileByPath(res.data)
}); });
}, },
...@@ -174,6 +188,11 @@ export default { ...@@ -174,6 +188,11 @@ export default {
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
@import "@/styles/hadoop.scss"; @import "@/styles/hadoop.scss";
.search_box{
.longInput{
width: 220px;
}
}
</style> </style>
<style lang="scss"> <style lang="scss">
.alarmLog{ .alarmLog{
......
...@@ -61,7 +61,7 @@ import { ...@@ -61,7 +61,7 @@ import {
GET_OPEREPORT_VEHICLE_SEARCH, GET_OPEREPORT_VEHICLE_SEARCH,
} from "services/report"; } from "services/report";
import GlsxOrganization from "@/components/glsx-organization"; import GlsxOrganization from "@/components/glsx-organization";
import { deepClone, showToast } from "@/utils/util"; import { deepClone, showToast, downFileByPath } from "@/utils/util";
import GlsxDialog from "@/components/dialog"; import GlsxDialog from "@/components/dialog";
import { staticReportCarShortcuts } from "@/common"; import { staticReportCarShortcuts } from "@/common";
export default { export default {
...@@ -155,7 +155,8 @@ export default { ...@@ -155,7 +155,8 @@ export default {
if (res.code != 200) { if (res.code != 200) {
return false; return false;
} }
window.open(res.data); // window.open(res.data);
downFileByPath(res.data);
}); });
}, },
......
...@@ -61,7 +61,7 @@ import { ...@@ -61,7 +61,7 @@ import {
GET_OPEREPORT_DEVICE_EXPORT, GET_OPEREPORT_DEVICE_EXPORT,
} from "services/report"; } from "services/report";
import GlsxOrganization from "@/components/glsx-organization"; import GlsxOrganization from "@/components/glsx-organization";
import { deepClone, showToast } from "@/utils/util"; import { deepClone, showToast, downFileByPath } from "@/utils/util";
import GlsxDialog from "@/components/dialog"; import GlsxDialog from "@/components/dialog";
import {staticReportCarShortcuts} from '@/common' import {staticReportCarShortcuts} from '@/common'
export default { export default {
...@@ -155,7 +155,8 @@ export default { ...@@ -155,7 +155,8 @@ export default {
if (res.code != 200) { if (res.code != 200) {
return false; return false;
} }
window.open(res.data); // window.open(res.data);
downFileByPath(res.data)
}); });
}, },
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!