|
@@ -1,6 +1,6 @@
|
|
|
<template>
|
|
|
<div class="container">
|
|
|
- <save-form inline :model="search" @submit="FetchDetail" @reset="FetchDetail">
|
|
|
+ <save-form inline :model="search" @submit="FetchDetail" @reset="reset">
|
|
|
<el-form-item prop="year">
|
|
|
<el-date-picker
|
|
|
v-model="search.year"
|
|
@@ -89,10 +89,14 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
mounted () {
|
|
|
- this.FetchDetail();
|
|
|
+ this.reset()
|
|
|
this.$store.dispatch('setBranchs')
|
|
|
},
|
|
|
methods: {
|
|
|
+ reset() {
|
|
|
+ this.$set(this.search, 'year', this.$helpers.dayjs())
|
|
|
+ this.FetchDetail()
|
|
|
+ },
|
|
|
async FetchDetail() {
|
|
|
const data = {}
|
|
|
try {
|