|
@@ -212,6 +212,13 @@ export default {
|
|
|
mounted () {
|
|
|
this.initData()
|
|
|
},
|
|
|
+ beforeRouteEnter(to,from,next){
|
|
|
+ next(vm =>{
|
|
|
+ if(from.name === 'RequisitionOrderEdit'){
|
|
|
+ vm.initData()
|
|
|
+ }
|
|
|
+ })
|
|
|
+ },
|
|
|
methods: {
|
|
|
initData () {
|
|
|
this.searchData.start_time = parseInt(new Date(this.searchData.time[0]).getTime() / 1000) || ''
|
|
@@ -223,7 +230,6 @@ export default {
|
|
|
...this.searchData
|
|
|
}
|
|
|
}).then((res) => {
|
|
|
- console.log(res)
|
|
|
this.tableData = res.data.data
|
|
|
this.total = res.data.total
|
|
|
}).catch((err) => { });
|