Commit 0bf9e56c by zhangxw

Merge branch 'v1.7.0' of http://192.168.3.233:8090/micro-customization-system/mi…

…cro-trialrun into v1.6.0
2 parents 775cf58b 7d4527bc
...@@ -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" :total="pageTotal" :page-size.sync="currentPage" :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="pageSize" :page-sizes="pageSizes" :current-page.sync="currentPage" @current-change="getList" @size-change="changePageSize" />
</div> </div>
</div> </div>
</template> </template>
...@@ -73,17 +73,27 @@ export default { ...@@ -73,17 +73,27 @@ export default {
return { return {
currentPage: 1, currentPage: 1,
pageSize: 10, pageSize: 10,
pageTotal:0, pageTotal: 0,
tableData:[], tableData: [],
loading:false loading: false,
}; };
}, },
created() {}, watch: {
mounted() { params: {
if (this.request) { handler: function (n, o) {
if (n) {
this.getList(); this.getList();
} }
}, },
immediate: true,
},
},
created() {},
mounted() {
// if (this.request) {
// this.getList();
// }
},
methods: { methods: {
/** /**
* 每页展示 * 每页展示
...@@ -94,28 +104,32 @@ export default { ...@@ -94,28 +104,32 @@ export default {
}, },
// 获取参数 // 获取参数
getParams(current){ getParams(current) {
let oParams = {...this.params}; let oParams = { ...this.params };
oParams.pageSize = this.pageSize; oParams.pageSize = this.pageSize;
oParams.pageNumber = current || this.currentPage; oParams.pageNumber = current || this.currentPage;
return oParams return oParams;
}, },
// 获取列表 // 获取列表
getList(current) { getList(current) {
let request = this.request; let request = this.request;
let oParams = this.getParams(current); let oParams = this.getParams(current);
this.loading = true this.loading = true;
request(oParams).then((res) => { request(oParams)
this.loading = false .then((res) => {
if(res.code != 200){ this.loading = false;
if (res.code != 200) {
return false; return false;
} }
let {data:{list,totalElements}} = res; let {
this.tableData = list||[] data: { list, totalElements },
this.pageTotal = totalElements } = res;
}).catch(error => { this.tableData = list || [];
this.loading = false this.pageTotal = totalElements;
})
.catch((error) => {
this.loading = false;
}); });
}, },
......
...@@ -56,3 +56,14 @@ export const GET_FENCEALARM_LIST = (params) => { ...@@ -56,3 +56,14 @@ export const GET_FENCEALARM_LIST = (params) => {
export const ALARM_FENCEALARM_EXPORT = (params) => { export const ALARM_FENCEALARM_EXPORT = (params) => {
return request(params, "/alarmcenternew/fencealarm/export"); return request(params, "/alarmcenternew/fencealarm/export");
} }
// 警情中心-超速报警-获取列表
export const GET_SPEEDING_SEARCH = (params) => {
return request(params, "/alarmcenternew/speeding/search");
}
// 警情中心-超速报警-获取列表-导出excel
export const GET_SPEEDING_EXPORT = (params) => {
return request(params, "/alarmcenternew/speeding/export");
}
...@@ -5,18 +5,18 @@ import store from "@/store"; ...@@ -5,18 +5,18 @@ import store from "@/store";
const BASEURL = store.state.baseURL const BASEURL = store.state.baseURL
// 获取报表列表 // 获取报表列表
function getList (params) { function getList(params) {
const url = REPORT_API.REPORT_SEARCH const url = REPORT_API.REPORT_SEARCH
return request(params, url) return request(params, url)
} }
// 获取报表列表 // 获取报表列表
function getYears (params) { function getYears(params) {
const url = REPORT_API.REPORT_YEARS const url = REPORT_API.REPORT_YEARS
return request(params, url) return request(params, url)
} }
function getOutStoreList (params) { function getOutStoreList(params) {
return request(params, '/trialdrive/notinstorereport/search') return request(params, '/trialdrive/notinstorereport/search')
} }
...@@ -138,4 +138,26 @@ export const EXPORT_BATTERY_LIST = params => { ...@@ -138,4 +138,26 @@ export const EXPORT_BATTERY_LIST = params => {
return request(params, '/alarmcenternew/battery/export') return request(params, '/alarmcenternew/battery/export')
} }
// 报表管理-运营报表统计-获取设备维度列表
export const GET_OPEREPORT_DEVICE_SEARCH = params => {
return request(params, '/trialdrive/opereport/device/search')
}
// 报表管理-运营报表统计-设备维度列表-导出excel
export const GET_OPEREPORT_DEVICE_EXPORT = params => {
return request(params, '/trialdrive/opereport/device/export')
}
// 报表管理-运营报表统计-获取车辆维度列表
export const GET_OPEREPORT_VEHICLE_SEARCH = params => {
return request(params, '/trialdrive/opereport/vehicle/search')
}
// 报表管理-运营报表统计-获取车辆维度列表
export const GET_OPEREPORT_VEHICLE_EXPORT = params => {
return request(params, '/trialdrive/opereport/vehicle/export')
}
export { getList, getYears, getOutStoreList } export { getList, getYears, getOutStoreList }
...@@ -159,7 +159,7 @@ ...@@ -159,7 +159,7 @@
} }
.small_select { .small_select {
width: 120px; width: 140px;
} }
} }
......
...@@ -74,10 +74,10 @@ import { fenceShortcuts } from "@/common"; ...@@ -74,10 +74,10 @@ import { fenceShortcuts } from "@/common";
import GlsxOrganization from "@/components/glsx-organization"; import GlsxOrganization from "@/components/glsx-organization";
import { import {
GET_FENCEALARM_LIST, GET_FENCEALARM_LIST,
ALARM_FENCEALARM_EXPORT, GET_SPEEDING_EXPORT,
GET_SPEEDING_SEARCH
} from "@/services/alarmCenter"; } from "@/services/alarmCenter";
import { deepClone, showToast, downFileByPath } from "@/utils/util"; import { deepClone, showToast, downFileByPath } from "@/utils/util";
import { FENCE_MONITOR_LIST } from "@/common/constants";
export default { export default {
components: { components: {
GlsxOrganization, GlsxOrganization,
...@@ -101,13 +101,9 @@ export default { ...@@ -101,13 +101,9 @@ export default {
orgInfo: {}, orgInfo: {},
dloading: false, dloading: false,
tloading: false, tloading: false,
FENCE_MONITOR_LIST,
fenceId: "",
}; };
}, },
created() { created() {
console.log(history.state);
this.fenceId = history.state.fenceId;
this.getList(); this.getList();
}, },
mounted() {}, mounted() {},
...@@ -126,12 +122,8 @@ export default { ...@@ -126,12 +122,8 @@ export default {
let oParams = deepClone(this.searchForm); let oParams = deepClone(this.searchForm);
let m = oParams.timeDate; let m = oParams.timeDate;
if (m && m.length > 0) { if (m && m.length > 0) {
oParams.alarmStartTime = m[0]; oParams.startTime = m[0];
oParams.alarmEndTime = m[1]; oParams.endTime = m[1];
}
if (this.fenceId) {
oParams.fenceId = this.fenceId;
} }
delete oParams.orgName; delete oParams.orgName;
...@@ -148,7 +140,7 @@ export default { ...@@ -148,7 +140,7 @@ export default {
if (current) { if (current) {
this.currentPage = current; this.currentPage = current;
} }
GET_FENCEALARM_LIST(oParams).then((res) => { GET_SPEEDING_SEARCH(oParams).then((res) => {
this.tloading = false; this.tloading = false;
let obj = res.data || {}; let obj = res.data || {};
this.tableData = obj.list || []; this.tableData = obj.list || [];
...@@ -180,7 +172,7 @@ export default { ...@@ -180,7 +172,7 @@ export default {
let oParams = this.getParams(); let oParams = this.getParams();
_this.dloading = true; _this.dloading = true;
ALARM_FENCEALARM_EXPORT(oParams).then((res) => { GET_SPEEDING_EXPORT(oParams).then((res) => {
_this.dloading = false; _this.dloading = false;
if (res.code != 200) { if (res.code != 200) {
return false; return false;
...@@ -190,22 +182,6 @@ export default { ...@@ -190,22 +182,6 @@ export default {
}); });
}, },
// 查看轨迹回放
lookDetail(row) {
let startTime = row.alarmTime
? moment(row.alarmTime).format("x") - 120000
: "";
let sTime = moment(startTime).format("yyyy-MM-DD HH:mm:ss");
let endTime = row.endTime || "";
let eTime = moment(endTime).format("yyyy-MM-DD HH:mm:ss");
if (!row.endTime) {
eTime = moment(startTime + 3600000).format("yyyy-MM-DD HH:mm:ss");
}
console.log(sTime + "---" + eTime);
let path = `/oEshield#/monitor/replay?sn=${row.sn}&name=${row.ownerName}&standno=${row.vin}&startTime=${sTime}&endTime=${eTime}&fenceId=${row.fenceId}&isInitFence=1`;
//this.$root.parentCommon.setBreadCrumbs(path);
window.open(path);
},
}, },
}; };
</script> </script>
......
...@@ -10,7 +10,9 @@ ...@@ -10,7 +10,9 @@
<el-tab-pane label="车辆纬度" name="car"> <el-tab-pane label="车辆纬度" name="car">
<statistics-car></statistics-car> <statistics-car></statistics-car>
</el-tab-pane> </el-tab-pane>
<el-tab-pane label="设备纬度" name="device">设备纬度</el-tab-pane> <el-tab-pane label="设备纬度" name="device">
<statistics-device></statistics-device>
</el-tab-pane>
</el-tabs> </el-tabs>
</div> </div>
...@@ -19,9 +21,11 @@ ...@@ -19,9 +21,11 @@
<script> <script>
import {} from "services/report"; import {} from "services/report";
import StatisticsCar from './statistics_car' import StatisticsCar from './statistics_car'
import StatisticsDevice from './statistics_device'
export default { export default {
components: { components: {
StatisticsCar StatisticsCar,
StatisticsDevice
}, },
data() { data() {
return { return {
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<div class="search_box"> <div class="search_box">
<el-form :model="searchForm" :inline="true" size="small"> <el-form :model="searchForm" :inline="true" size="small">
<el-form-item label="关键字:"> <el-form-item label="关键字:">
<el-input placeholder="设备号|姓名|车架号|业务工单号" class="a_input" maxlength="20" v-model.trim="searchForm.keywords"> <el-input placeholder="业务工单|姓名|车架号|设备号" class="a_input" maxlength="20" v-model.trim="searchForm.term">
</el-input> </el-input>
</el-form-item> </el-form-item>
<el-form-item label="车辆归属:"> <el-form-item label="车辆归属:">
...@@ -19,7 +19,17 @@ ...@@ -19,7 +19,17 @@
</el-popover> </el-popover>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="getList()">搜索</el-button> <div class="pre_select_box">
<el-select v-model="searchForm.queryTimeType" class="small_select mr5" placeholder="请选择">
<el-option label="车辆激活时间" :value="1"></el-option>
<el-option label="工单接收时间" :value="2"></el-option>
</el-select>
<el-date-picker v-model="searchForm.timeDate" class="data_picker" value-format="yyyy-MM-dd" type="daterange" range-separator="~" start-placeholder="开始日期" end-placeholder="结束日期">
</el-date-picker>
</div>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="searchEvent()">搜索</el-button>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-refresh" size="mini" @click="rest()">重置</el-button> <el-button type="primary" icon="el-icon-refresh" size="mini" @click="rest()">重置</el-button>
...@@ -36,10 +46,7 @@ ...@@ -36,10 +46,7 @@
<!-- 按钮区域 end --> <!-- 按钮区域 end -->
<!-- 列表 开始 --> <!-- 列表 开始 -->
<glsx-table ref="glsxTable" v-loading="loading" :request="GET_FAKEOFFLINE_LIST" :column="columnList" :pageTotal="pageTotal" @change="getList"> <glsx-table ref="glsxTable" v-loading="loading" :params="tableParams" :request="GET_OPEREPORT_VEHICLE_SEARCH" :column="columnList">
<div slot="operate" slot-scope="{scope}">
<el-link type="primary" :underline="false" @click="lookDetail(scope)" v-if="scope.locationFlag == 1">查看位置</el-link>
</div>
</glsx-table> </glsx-table>
<!-- 列表 end --> <!-- 列表 end -->
</div> </div>
...@@ -50,21 +57,14 @@ ...@@ -50,21 +57,14 @@
<script> <script>
import GlsxTable from "@/components/glsx-table/table"; import GlsxTable from "@/components/glsx-table/table";
import { import {
GET_JOURNEYS_SEARCH, GET_OPEREPORT_VEHICLE_EXPORT,
GET_JOURNEYS_EXPORT, GET_OPEREPORT_VEHICLE_SEARCH,
GET_JOURNEYS_DAILYEXPORT,
GET_FAKEOFFLINE_LIST,
GET_FAKEOFFLINE_EXPORT,
GET_FAKEOFFLINE_TEMPLATEFILES,
IMPORT_FAKEOFFLINE_FILES,
} 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 } from "@/utils/util";
import store from "@/store";
import moment, { max } from "moment";
import GlsxDialog from "@/components/dialog"; import GlsxDialog from "@/components/dialog";
export default { export default {
name:'StatisticsCar', name: "StatisticsCar",
components: { components: {
GlsxTable, GlsxTable,
GlsxOrganization, GlsxOrganization,
...@@ -72,102 +72,60 @@ export default { ...@@ -72,102 +72,60 @@ export default {
}, },
data() { data() {
return { return {
searchForm: {}, searchForm: { queryTimeType: 1 },
tableData: [], tableData: [],
columnList: [ columnList: [
{ label: "工单号", prop: "bizOrderNo" }, { label: "业务工单号", prop: "bizOrderNo" },
{ label: "车牌号", prop: "licensePlate" },
{ label: "姓名", prop: "ownerName" }, { label: "姓名", prop: "ownerName" },
{ label: "设备号", prop: "sns" },
{ label: "车架号", prop: "vin" }, { label: "车架号", prop: "vin" },
{ label: "假性离线原因", prop: "reason" }, { label: "设备号", prop: "sns" },
{ label: "设备组合", prop: "deviceCompose" },
{ label: "工单接收时间", prop: "createdDate" },
{ label: "车辆激活时间", prop: "activateTime" },
{ label: "所属组织", prop: "belongLevels" },
{ label: "车型", prop: "modelName" },
{ label: "激活人", prop: "activator" },
], ],
pageTotal: 0, pageTotal: 0,
pageSize: 10, pageSize: 10,
filterVisible: false, filterVisible: false,
dloading: false, dloading: false,
showPopover: false, showPopover: false,
cloading: false,
loading: false, loading: false,
aloading: false, GET_OPEREPORT_VEHICLE_SEARCH,
isTimeOut: false, tableParams: {},
sTime: "",
eTime: "",
pickerOptions: {
onPick: ({ maxDate, minDate }) => {
this.sTime = minDate || "";
this.eTime = maxDate || "";
if (maxDate && minDate) {
let m = moment(maxDate).diff(moment(minDate), "days");
if (m > 60) {
this.isTimeOut = true;
} else {
this.isTimeOut = false;
}
this.eTime = "";
this.sTime = "";
}
},
},
showDialog: false,
uploadFile: {},
showResult: false,
uploadHeaders: {},
uploadResult: {},
IMPORT_FAKEOFFLINE_FILES,
fileList: [],
acceptFile: ".xlsx,.xls",
GET_FAKEOFFLINE_LIST
}; };
}, },
mounted() { mounted() {},
let token = localStorage.getItem("token");
this.uploadHeaders = { Authorization: token };
//this.getList();
},
methods: { methods: {
// 获取查询参数 // 获取查询参数
getParams() { getParams() {
let oParams = deepClone(this.searchForm); let oParams = deepClone(this.searchForm);
let m = oParams.timeDate;
let startIds = {
1: "activateBeginDate",
2: "orderBeginDate",
};
let endIds = {
1: "activateEndDate",
2: "orderEndDate",
};
if (m && m.length > 0) {
oParams[startIds[oParams.queryTimeType]] = m[0];
oParams[endIds[oParams.queryTimeType]] = m[1];
}
delete oParams.queryTimeType;
delete oParams.timeDate;
delete oParams.orgName; delete oParams.orgName;
return oParams; return oParams;
}, },
// 获取列表 // 搜索
getList(options) { searchEvent() {
let oParams = this.getParams(); this.tableParams = this.getParams();
console.log(options);
console.log(this.$refs.glsxTable.pageSizeNum);
oParams.pageSize = options
? options.pageSize
: this.$refs.glsxTable.pageSizeNum;
oParams.pageNumber = options ? options.pageNumber || 1 : 1;
this.loading = true;
GET_FAKEOFFLINE_LIST(oParams)
.then((res) => {
this.loading = false;
let { data } = res;
let { list, totalElements } = data;
this.pageTotal = totalElements || 0;
this.tableData = list || [];
})
.catch((error) => {
this.loading = false;
});
},
// 查看详情
lookDetail(row) {
console.log(row);
let o = window.location.origin;
let query = { vin: row.vin };
//let path = "/trialRun#/reportManage/map";
let path = `/oEshield/#/monitor/activeLocation`;
//history.pushState(query, path, path);
this.$root.parentCommon.setBreadCrumbs(path);
window.open(path + "?sns=" + row.sns);
//this.$router.push({ name: "mileageDetail", query: { vin: row.vin } });
}, },
// 监听树 // 监听树
...@@ -188,111 +146,20 @@ export default { ...@@ -188,111 +146,20 @@ export default {
let oParams = this.getParams(); let oParams = this.getParams();
_this.dloading = true; _this.dloading = true;
GET_FAKEOFFLINE_EXPORT(oParams).then((res) => { GET_OPEREPORT_VEHICLE_EXPORT(oParams).then((res) => {
_this.dloading = false; _this.dloading = false;
if (res.code != 200) { if (res.code != 200) {
return false; return false;
} }
window.open(res.data); window.open(res.data);
}); });
// _this.$Common.exportExcel({
// url: `${store.state.baseURL}${MILEAGESTATISTICSEXPORT}`,
// method: "GET",
// data: oParams,
// fileName: "里程统计报表",
// success: () => {
// _this.dloading = false;
// },
// fail: () => {
// _this.dloading = false;
// },
// });
}, },
// 重置 // 重置
rest() { rest() {
this.tableParams = {};
this.searchForm = {}; this.searchForm = {};
this.$refs.glsxTable.rest(); this.$refs.glsxTable.rest();
this.getList();
},
// 监听文件导入
onFileChange(file, fileList) {
console.log(file);
if (!file.response) {
this.uploadFile = file;
this.fileList = [file];
}
},
// 打开批量导入弹框
openDialog() {
this.showDialog = true;
},
// 关闭弹框
closeDialog() {
this.showDialog = false;
this.uploadFile = {};
this.uploadResult = {};
this.showResult = false;
},
// 上传文件
saveFile() {
let o = this.uploadFile;
console.log(o);
if (!this.uploadFile.name) {
showToast({
message: "请选择上传文件",
});
return false;
}
let list = o.name.split(".");
let acceptFile = this.acceptFile;
let _type = list[list.length - 1];
console.log(_type);
let idx = acceptFile.includes(_type);
if (!idx) {
showToast({
message: `导入文件只支持${acceptFile}`,
});
return false;
}
this.aloading = true;
this.$refs.elUpload.submit();
},
// 监听文件上传成功
onSuccess(response, file, fileList) {
this.aloading = false;
if (response.code != 200) {
showToast({
message: response.message,
});
this.uploadFile = {};
this.$refs.elUpload.clearFiles();
return false;
}
this.uploadResult = response.data;
this.showResult = true;
this.getList();
},
// 下载模板
downloadTemplate() {
GET_FAKEOFFLINE_TEMPLATEFILES().then((res) => {
window.open(res.data);
});
},
// 下载失败模板
downloadFail() {
let o = this.uploadResult;
window.open(o.failFile);
}, },
}, },
}; };
......
<template>
<div class="system-container">
<div class="container">
<!-- 搜索区域 开始 -->
<div class="search_box">
<el-form :model="searchForm" :inline="true" size="small">
<el-form-item label="关键字:">
<el-input placeholder="业务工单|姓名|车架号|设备号" class="a_input" maxlength="20" v-model.trim="searchForm.term">
</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>
</el-input>
</el-popover>
</el-form-item>
<el-form-item>
<div class="pre_select_box">
<el-select v-model="searchForm.queryTimeType" class="small_select mr5" placeholder="请选择">
<el-option label="设备激活时间" :value="1"></el-option>
<el-option label="定位时间" :value="2"></el-option>
</el-select>
<el-date-picker v-model="searchForm.timeDate" class="data_picker" value-format="yyyy-MM-dd" type="daterange" range-separator="~" start-placeholder="开始日期" end-placeholder="结束日期">
</el-date-picker>
</div>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-search" size="mini" @click="searchEvent()">搜索</el-button>
</el-form-item>
<el-form-item>
<el-button type="primary" icon="el-icon-refresh" size="mini" @click="rest()">重置</el-button>
</el-form-item>
</el-form>
</div>
<!-- 搜索区域 end -->
<!-- 按钮区域 开始 -->
<div class="links_group">
<span>统计列表详情-设备纬度</span>
<el-button class="pull-right" type="primary" icon="el-icon-download" size="mini" :loading="dloading" @click="downloadExcel">导出Excel</el-button>
</div>
<!-- 按钮区域 end -->
<!-- 列表 开始 -->
<glsx-table ref="glsxTable" v-loading="loading" :params="tableParams" :request="GET_OPEREPORT_DEVICE_SEARCH" :column="columnList">
</glsx-table>
<!-- 列表 end -->
</div>
</div>
</template>
<script>
import GlsxTable from "@/components/glsx-table/table";
import {
GET_OPEREPORT_DEVICE_SEARCH,
GET_OPEREPORT_DEVICE_EXPORT,
} from "services/report";
import GlsxOrganization from "@/components/glsx-organization";
import { deepClone, showToast } from "@/utils/util";
import GlsxDialog from "@/components/dialog";
export default {
name: "StatisticsDevice",
components: {
GlsxTable,
GlsxOrganization,
GlsxDialog,
},
data() {
return {
searchForm: { queryTimeType: 1 },
tableData: [],
columnList: [
{ label: "业务工单号", prop: "bizOrderNo" },
{ label: "设备号", prop: "sns" },
{ label: "车牌号", prop: "licensePlate" },
{ label: "姓名", prop: "ownerName" },
{ label: "车架号", prop: "vin" },
{ label: "所属组织", prop: "belongLevels" },
{ label: "设备激活时间", prop: "activateTime" },
{ label: "定位时间", prop: "gpsTime" },
{ label: "定位地点", prop: "gpsAddress" },
{ label: "工单激活时间", prop: "woActivateTime" },
],
pageTotal: 0,
pageSize: 10,
filterVisible: false,
dloading: false,
showPopover: false,
loading: false,
GET_OPEREPORT_DEVICE_SEARCH,
tableParams: {},
};
},
mounted() {},
methods: {
// 获取查询参数
getParams() {
let oParams = deepClone(this.searchForm);
let m = oParams.timeDate;
let startIds = {
1: "activateBeginDate",
2: "gpsBeginDate",
};
let endIds = {
1: "activateEndDate",
2: "gpsEndDate",
};
if (m && m.length > 0) {
oParams[startIds[oParams.queryTimeType]] = m[0];
oParams[endIds[oParams.queryTimeType]] = m[1];
}
delete oParams.queryTimeType;
delete oParams.timeDate;
delete oParams.orgName;
return oParams;
},
// 搜索
searchEvent() {
this.tableParams = this.getParams();
},
// 监听树
onChange(e) {
this.filterVisible = false;
console.log(e);
if (e) {
this.orgInfo = e.origin;
this.searchForm.orgId = e.origin.orgId;
this.searchForm.orgType = e.origin.type;
this.searchForm.orgName = e.origin.orgName;
}
},
// 导出excel
downloadExcel() {
let _this = this;
let oParams = this.getParams();
_this.dloading = true;
GET_OPEREPORT_DEVICE_EXPORT(oParams).then((res) => {
_this.dloading = false;
if (res.code != 200) {
return false;
}
window.open(res.data);
});
},
// 重置
rest() {
this.tableParams = {};
this.searchForm = {};
this.$refs.glsxTable.rest();
},
},
};
</script>
<style lang="scss" scoped>
@import "@/styles/offline.scss";
</style>>
\ No newline at end of file \ No newline at end of file
...@@ -69,7 +69,11 @@ ...@@ -69,7 +69,11 @@
<el-form-item label="车型/车系:" prop="carIds" class="long_form_item"> <el-form-item label="车型/车系:" prop="carIds" class="long_form_item">
<el-cascader v-model="snForm.carIds" :options="vehicleList" :props="vehicleProps" class="el_cascader"></el-cascader> <el-cascader v-model="snForm.carIds" :options="vehicleList" :props="vehicleProps" class="el_cascader"></el-cascader>
</el-form-item> </el-form-item>
<el-form-item label="排量:" class="long_form_item"> <el-form-item label="是否结清:">
<el-switch v-model="snForm.value1" active-text="已结清" inactive-text="未结清">
</el-switch>
</el-form-item>
<el-form-item label="排量:">
<el-input v-model="snForm.displacement" maxlength="50" clearable></el-input> <el-input v-model="snForm.displacement" maxlength="50" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item label="车辆标签:" prop="vehicleType"> <el-form-item label="车辆标签:" prop="vehicleType">
......
...@@ -214,7 +214,14 @@ ...@@ -214,7 +214,14 @@
<el-form-item label="车型/车系:" prop="carIds" class="long_form_item"> <el-form-item label="车型/车系:" prop="carIds" class="long_form_item">
<el-cascader v-model="snForm.carIds" :options="vehicleList" :props="vehicleProps" class="el_cascader"></el-cascader> <el-cascader v-model="snForm.carIds" :options="vehicleList" :props="vehicleProps" class="el_cascader"></el-cascader>
</el-form-item> </el-form-item>
<el-form-item label="排量:" class="long_form_item"> <el-form-item label="是否结清:">
<div class="el_switch_box">
<el-switch v-model="snForm.value1">
</el-switch>
<span class="tips">{{snForm.value1?'已结清':'未结清'}}</span>
</div>
</el-form-item>
<el-form-item label="排量:">
<el-input v-model="snForm.displacement" maxlength="50" clearable></el-input> <el-input v-model="snForm.displacement" maxlength="50" clearable></el-input>
</el-form-item> </el-form-item>
<el-form-item label="车辆标签:" prop="vehicleType"> <el-form-item label="车辆标签:" prop="vehicleType">
...@@ -826,7 +833,6 @@ export default { ...@@ -826,7 +833,6 @@ export default {
this.getModels(); this.getModels();
resolve(); resolve();
}); });
}, },
mounted() { mounted() {
let _this = this; let _this = this;
...@@ -1827,4 +1833,13 @@ export default { ...@@ -1827,4 +1833,13 @@ export default {
border-color: #c6e2ff; border-color: #c6e2ff;
background: #ecf5ff; background: #ecf5ff;
} }
.el_switch_box{
display:flex;
align-items: center;
.tips{
font-size:12px;
color:#333;
margin-left:10px;
}
}
</style> </style>
\ No newline at end of file \ 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!