| | |
| | | return time |
| | | }, |
| | | getDataList() { |
| | | console.log(this.value.length,'value-----') |
| | | 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; |
| | |
| | | this.init(); |
| | | }, |
| | | }; |
| | | </script> |
| | | </script> |
| | |
| | | }, |
| | | 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; |
| | |
| | | this.init(); |
| | | }, |
| | | }; |
| | | </script> |
| | | </script> |
| | |
| | | }, |
| | | 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]); |
| | | }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); |
| | | // } |
| | | getCar(this.searchForm).then((res) => { |
| | | this.loading = false; |
| | | if (res.success) { |
| | |
| | | this.init(); |
| | | }, |
| | | }; |
| | | </script> |
| | | </script> |
| | |
| | | }, |
| | | 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.init(); |
| | | }, |
| | | }; |
| | | </script> |
| | | </script> |
| | |
| | | text-align: center; |
| | | } |
| | | |
| | | .Sign .ivu-table td { |
| | | border-bottom: 0; |
| | | } |
| | | .isshow{ |
| | | // .Sign .ivu-table td { |
| | | // border-bottom: 0; |
| | | // } |
| | | |
| | | .isshow { |
| | | display: block; |
| | | } |
| | | |
| | | //设置表格的样式 |
| | | .ivu-table table { |
| | | table-layout: fixed; |
| | | width: 125px; |
| | | } |
| | | |
| | | .ivu-table td.no_border>.ivu-table-cell { |
| | | padding-left: 0; |
| | | padding-right: 0; |
| | |
| | | |
| | | .init-button { |
| | | margin-left: 8px; |
| | | } |
| | | } |