Commit 25826774 by jack

修复bug

1 parent aa3d264c
......@@ -11,7 +11,7 @@
</el-form-item>
<el-form-item label="试驾是/否有效:">
<el-select v-model="searchForm.validDriveType" placeholder="请选择">
<!-- <el-option label="全部" value=""></el-option> -->
<el-option label="全部" value=""></el-option>
<el-option label="有效" value="1"></el-option>
<el-option label="无效" value="2"></el-option>
</el-select>
......@@ -76,6 +76,14 @@ export default {
pickerOptions: {
shortcuts: [
{
text: "全部",
onClick(picker) {
const end = '';
const start = '';
picker.$emit("pick", [start, end]);
},
},
{
text: "昨日",
onClick(picker) {
const end = new Date();
......
......@@ -18,7 +18,7 @@
</el-popover>
</el-form-item>
<el-form-item label="">
<el-input placeholder="工单号|车架号|姓名|设备" v-model="searchText">
<el-input placeholder="工单号|车架号|姓名|设备" class="a_input" v-model="searchText">
<el-select class="pre_select" v-model="preText" slot="prepend" placeholder="请选择">
<el-option label="工单号" value="orderNo"></el-option>
<el-option label="车架号" value="vin"></el-option>
......@@ -39,7 +39,7 @@
<!-- 按钮区域 开始 -->
<div class="links_group">
<span>里程统计</span>
<span>里程信息</span>
<div>
<el-popover placement="bottom-end" v-model="showPopover" trigger="click">
<div class="el_popover">
......@@ -311,4 +311,9 @@ export default {
margin: 10px 0 0 0;
}
}
.search_box{
.a_input{
width:320px;
}
}
</style>>
\ No newline at end of file
......@@ -62,8 +62,12 @@
<script>
import GlsxTable from "@/components/glsx-table";
import { MILEAGE_GETDAILYSEARCH, MILEAGE_GETSN,MILEAGE_STATISTICS_EXPORT } from "services/report";
import { deepClone,showToast } from "@/utils/util";
import {
MILEAGE_GETDAILYSEARCH,
MILEAGE_GETSN,
MILEAGE_STATISTICS_EXPORT,
} from "services/report";
import { deepClone, showToast } from "@/utils/util";
import moment from "moment";
export default {
data() {
......@@ -97,6 +101,14 @@ export default {
pickerOptions: {
shortcuts: [
{
text: "全部",
onClick(picker) {
const end = "";
const start = "";
picker.$emit("pick", [start, end]);
},
},
{
text: "昨日",
onClick(picker) {
const end = new Date();
......@@ -150,7 +162,7 @@ export default {
},
],
},
dloading:false
dloading: false,
};
},
components: {
......@@ -185,7 +197,7 @@ export default {
oParams.pageNumber = options ? options.pageNumber || 1 : 1;
MILEAGE_GETDAILYSEARCH(oParams).then((res) => {
let { data } = res;
let { list, totalElements } = data||{};
let { list, totalElements } = data || {};
this.pageTotal = totalElements;
this.tableData = list;
});
......@@ -197,7 +209,7 @@ export default {
MILEAGE_GETSN(oParams).then((res) => {
let list = res.data || [];
this.snList = res.data || [];
this.$set(this.searchForm,'sn',list[0] || "")
this.$set(this.searchForm, "sn", list[0] || "");
this.getList();
});
},
......@@ -236,13 +248,12 @@ export default {
},
// 重置
rest(){
rest() {
this.searchForm = {};
this.dateTime = []
this.dateTime = [];
this.getList();
this.$refs.glsxTable.rest();
},
},
};
</script>
......
......@@ -42,7 +42,7 @@
<!-- 按钮区域 开始 -->
<div class="links_group">
<span>油耗统计</span>
<span>油耗信息</span>
<el-button class="pull-right" type="primary" icon="el-icon-download" size="mini" :loading="dloading" @click="downloadExcel()">导出Excel</el-button>
</div>
<!-- 按钮区域 end -->
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!