| | |
| | | @on-sort-change="changeSort" |
| | | @on-selection-change="changeSelect" |
| | | ></Table> |
| | | <!-- |
| | | <Row type="flex" justify="end" class="page"> |
| | | <Page |
| | | :current="searchForm.pageNumber" |
| | |
| | | show-elevator |
| | | show-sizer |
| | | ></Page> |
| | | |
| | | </Row> |
| | | --> |
| | | </Card> |
| | | |
| | | <!-- 编辑 --> |
| | |
| | | }, |
| | | 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{ |
| | | 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); |
| | | } |
| | | // 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.data = res.result; |
| | | this.total = res.result.total; |
| | | this.total = res.result.length; |
| | | } |
| | | }); |
| | | }, |
| | |
| | | this.init(); |
| | | }, |
| | | }; |
| | | </script> |
| | | </script> |