|
@@ -121,7 +121,7 @@ export default {
|
|
|
"Content-Type": "application/json",
|
|
|
},
|
|
|
data: data,
|
|
|
- }).then(({data}) => {
|
|
|
+ }).then(({ data }) => {
|
|
|
// console.log(res,'data');
|
|
|
// this.total = count;
|
|
|
this.table_list = data;
|
|
@@ -142,20 +142,27 @@ export default {
|
|
|
// }
|
|
|
},
|
|
|
handleSearch(data) {
|
|
|
+ let obj = {
|
|
|
+ ...data,
|
|
|
+ time: data.time
|
|
|
+ ? this.$formatDate(this.table_search.time, "YYYY-MM")
|
|
|
+ : "",
|
|
|
+ };
|
|
|
this.table_search = data;
|
|
|
+
|
|
|
this.handleReset();
|
|
|
- this.handleInit({...data});
|
|
|
+ this.handleInit({ ...obj });
|
|
|
},
|
|
|
handleChange(page) {
|
|
|
this.page = page;
|
|
|
- this.handleInit({...this.table_search});
|
|
|
+ this.handleInit({ ...this.table_search });
|
|
|
},
|
|
|
handleReset() {
|
|
|
this.page = 1;
|
|
|
},
|
|
|
},
|
|
|
mounted() {
|
|
|
- this.handleInit({});
|
|
|
+ this.handleInit({time:''});
|
|
|
},
|
|
|
};
|
|
|
</script>
|