|
@@ -317,8 +317,8 @@ export default {
|
|
|
|
|
|
// 查询条件
|
|
|
queryParam: {
|
|
|
- beginDate:moment(new Date()).startOf("month").format("YYYY-MM-DD"),
|
|
|
- endDate:moment(new Date()).endOf("month").format("YYYY-MM-DD"),
|
|
|
+ beginDate:'',
|
|
|
+ endDate:'',
|
|
|
pageNo:''
|
|
|
},
|
|
|
pagination:{},
|
|
@@ -335,6 +335,7 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
this.getfullrateData()
|
|
|
+ this.getDefaultTime()
|
|
|
},
|
|
|
// html渲染出来后,操作dom
|
|
|
mounted() {
|
|
@@ -342,6 +343,12 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
moment,
|
|
|
+ getDefaultTime(){
|
|
|
+ this.queryParam.beginDate=moment(new Date()).startOf("month").format("YYYY-MM-DD")
|
|
|
+ var bb =new Date(this.queryParam.beginDate)
|
|
|
+ bb.setDate(bb.getDate() + 7)
|
|
|
+ this.queryParam.endDate = moment(bb).format("YYYY-MM-DD")
|
|
|
+ },
|
|
|
getfullrateData(){
|
|
|
this.$nextTick(() => {
|
|
|
this.loading = true
|
|
@@ -408,10 +415,7 @@ export default {
|
|
|
},
|
|
|
// 重置
|
|
|
searchReset() {
|
|
|
- this.queryParam = {
|
|
|
- beginDate:moment(new Date()).startOf("month").format("YYYY-MM-DD"),
|
|
|
- endDate:moment(new Date()).endOf("month").format("YYYY-MM-DD")
|
|
|
- }
|
|
|
+ this.getDefaultTime()
|
|
|
this.getfullrateData()
|
|
|
},
|
|
|
lineDetail(record){
|