Commit 1fc55cfa by 张杰

修复bug

1 parent d359bba1
...@@ -176,7 +176,7 @@ export default { ...@@ -176,7 +176,7 @@ export default {
lookDetail(row) { lookDetail(row) {
console.log(row); console.log(row);
let query = { vin: row.vin }; let query = { vin: row.vin };
let path = "/trialRun#/reportManage/mileageGeneralDetail?vin=" + row.vin; let path = "/trialRun#/reportManage/mileageGeneralDetail?sn=" + row.sn;
history.pushState(query, path, path); history.pushState(query, path, path);
//this.$router.push({ name: "mileageDetail", query: { vin: row.vin } }); //this.$router.push({ name: "mileageDetail", query: { vin: row.vin } });
}, },
......
...@@ -12,12 +12,8 @@ ...@@ -12,12 +12,8 @@
</el-date-picker> </el-date-picker>
</el-form-item> </el-form-item>
<el-form-item label="设备号:"> <el-form-item label="设备号:">
<!-- <el-input placeholder="工单号|车架号|姓名|设备" v-model="searchForm.input3"> <el-input placeholder="设备号" v-model="searchForm.sn">
<template slot="prepend">设备号</template> </el-input>
</el-input> -->
<el-select v-model="searchForm.sn">
<el-option v-for="item in snList" :key="item" :label="item" :value="item"></el-option>
</el-select>
</el-form-item> </el-form-item>
<el-form-item> <el-form-item>
<el-button type="primary" icon="el-icon-search" @click="getList()">搜索</el-button> <el-button type="primary" icon="el-icon-search" @click="getList()">搜索</el-button>
...@@ -72,7 +68,7 @@ import moment from "moment"; ...@@ -72,7 +68,7 @@ import moment from "moment";
export default { export default {
data() { data() {
return { return {
searchForm: {}, searchForm: {sn:this.$route.query.sn},
snList: [], snList: [],
dateTime: [], dateTime: [],
tableData: [], tableData: [],
...@@ -169,11 +165,10 @@ export default { ...@@ -169,11 +165,10 @@ export default {
GlsxTable, GlsxTable,
}, },
created() { created() {
this.getSn(); //this.getSn();
}, },
mounted() { mounted() {
const startDate = moment().weekday(1).format("YYYY-MM-DD"); this.getList()
console.log(startDate);
//this.getTableList(); //this.getTableList();
}, },
methods: { methods: {
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!