Commit e5b9854d by jack

修复bug

1 parent 44761235
...@@ -23,6 +23,7 @@ ...@@ -23,6 +23,7 @@
<a href="javascript:void(0)" @click="goDetail(item.prop,row)">{{row[item.prop]}}</a> <a href="javascript:void(0)" @click="goDetail(item.prop,row)">{{row[item.prop]}}</a>
</template> </template>
</el-table-column> </el-table-column>
<el-table-column label="总计" prop="summation"></el-table-column>
</el-table> </el-table>
<div class="pagination_list"> <div class="pagination_list">
<el-pagination background layout="total,prev, pager, next, jumper" hide-on-single-page :total="totalElements" :page-size="pageSize" :current-page.sync="pageNumber" @current-change="getTableList" /> <el-pagination background layout="total,prev, pager, next, jumper" hide-on-single-page :total="totalElements" :page-size="pageSize" :current-page.sync="pageNumber" @current-change="getTableList" />
...@@ -115,12 +116,12 @@ export default { ...@@ -115,12 +116,12 @@ export default {
label: `${i}日`, label: `${i}日`,
prop: `dayNum${i}`, prop: `dayNum${i}`,
}); });
if (i == 31) { // if (i == 31) {
this.dayList.push({ // this.dayList.push({
label: "总计", // label: "总计",
prop: "summation", // prop: "summation",
}); // });
} // }
} }
this.getTableList(); this.getTableList();
...@@ -191,12 +192,10 @@ export default { ...@@ -191,12 +192,10 @@ export default {
let n = id.replace("dayNum", ""); let n = id.replace("dayNum", "");
console.log(n); console.log(n);
console.log(row); console.log(row);
if (n != "summation") {
this.$router.push({ this.$router.push({
name: "driverDetail", name: "driverDetail",
query: { day: `${row.statDate}-${n}`, vin: row.vin }, query: { day: `${row.statDate}-${n}`, vin: row.vin },
}); });
}
}, },
}, },
}; };
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!