Commit 25826774 by jack

修复bug

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