Commit 1fc55cfa by 张杰

修复bug

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