|
@@ -220,20 +220,23 @@ export default {
|
|
|
},
|
|
|
created() {
|
|
|
this.formatDate()
|
|
|
+ this.routdata()
|
|
|
},
|
|
|
mounted() {
|
|
|
- if (Object.keys(this.$route.query).length !== 0) {
|
|
|
- const { beginDate, endDate, places, proxyId } = this.$route.query
|
|
|
+ },
|
|
|
+ activated(){
|
|
|
+ if (Object.keys(this.$route.params).length !== 0) {
|
|
|
+ const { beginDate, endDate, places, proxyId } = this.$route.params
|
|
|
this.queryData.beginDate = beginDate
|
|
|
this.queryData.endDate = endDate
|
|
|
- if (typeof places == 'string') {
|
|
|
- this.queryData.places = [places]
|
|
|
- } else {
|
|
|
- this.queryData.places = places
|
|
|
+ if (places&&typeof places == 'string') {
|
|
|
+ this.FormData.places = [places]
|
|
|
+ }
|
|
|
+ if(places&&typeof places != 'string') {
|
|
|
+ this.FormData.places = places
|
|
|
}
|
|
|
this.queryData.proxyId = proxyId
|
|
|
}
|
|
|
- this.routdata()
|
|
|
this.relationDate()
|
|
|
},
|
|
|
methods: {
|
|
@@ -422,10 +425,10 @@ export default {
|
|
|
},
|
|
|
change() {
|
|
|
let param = JSON.parse(JSON.stringify(this.queryData))
|
|
|
- param.places = param.places[0]
|
|
|
this.$router.push({
|
|
|
path: './cargoRelevanceTable',
|
|
|
- query: this.queryData,
|
|
|
+ name:'CargoRelevanceTable',
|
|
|
+ params: param,
|
|
|
})
|
|
|
},
|
|
|
init(arr, arrx, Low, firs, pt, strictly, datas) {
|