| | |
| | | @on-sort-change="changeSort" |
| | | @on-selection-change="changeSelect" |
| | | ></Table> |
| | | <!-- |
| | | <Row type="flex" justify="end" class="page"> |
| | | <Page |
| | | :current="searchForm.pageNumber" |
| | |
| | | show-total |
| | | show-elevator |
| | | show-sizer |
| | | v-show="this.page" |
| | | ></Page> |
| | | |
| | | </Row> |
| | | --> |
| | | </Card> |
| | | |
| | | <!-- 编辑 --> |
| | |
| | | { |
| | | title: "车牌号", |
| | | key: "carNo", |
| | | width: 100, |
| | | width: 110, |
| | | align: "center", |
| | | }, |
| | | { |
| | | title: "开始使用日期", |
| | | key: "buyYear", |
| | | width: 150, |
| | | sortable: true, |
| | | align: "center", |
| | | }, |
| | | { |
| | | title: "使用年限", |
| | | key: "usefulLife", |
| | | width: 140, |
| | | sortable: true, |
| | | align: "center", |
| | | render: (h, params) => { |
| | | return h("div",1); |
| | |
| | | title: "本期行使里程(KM)", |
| | | key: "mileage", |
| | | width: 180, |
| | | sortable: true, |
| | | align: "center", |
| | | }, |
| | | { |
| | | title: "累计行使里程(KM)", |
| | | key: "allMileage", |
| | | width: 180, |
| | | sortable: true, |
| | | align: "center", |
| | | }, |
| | | { |
| | |
| | | }, |
| | | getDataList() { |
| | | this.loading = true; |
| | | if (this.value[0]!="" && this.value[1]!=""){ |
| | | if (this.value.length > 0){ |
| | | this.searchForm.beginTime = this.selectDate(this.value[0]); |
| | | this.searchForm.endTime = this.selectDate(this.value[1]); |
| | | this.page=false; |
| | | }else{ |
| | | this.searchForm.beginTime = ""; |
| | | this.searchForm.endTime = ""; |
| | | } |
| | | // else{ |
| | | // var date = new Date(); |
| | | // this.searchForm.endTime = this.selectDate(date); |
| | | // this.value[1] = this.searchForm.endTime; |
| | | // date.setDate(1); |
| | | // this.value[0] = date; |
| | | // this.searchForm.beginTime = this.selectDate(date); |
| | | // } |
| | | getInfo(this.searchForm).then((res) => { |
| | | this.loading = false; |
| | | if (res.success) { |
| | |
| | | this.init(); |
| | | }, |
| | | }; |
| | | </script> |
| | | </script> |