返回刷新修改

This commit is contained in:
na.guo
2020-08-10 15:35:30 +08:00
parent d67ea8ebb4
commit f4797300d8

View File

@@ -90,6 +90,9 @@ export default {
}
},
watch: {
'$route' (to, from) {
this.reload()
},
tableData(value) {
if (value.length == 0) {
this.items=[]
@@ -118,6 +121,12 @@ export default {
}
},
methods: {
reload () {
this.manageLv=this.$route.params.manageLv;
this.manageCode=this.$route.params.manageCode
this.getlComPremDetil()
},
formatterYear(type, val) {
if (type === 'year') {
return val + '年'
@@ -229,10 +238,7 @@ export default {
// setInterval(this.getCurrentDate, 1000 * 60)
this.dateVal = util.getMonthLastDay()
this.manageLv=this.$route.params.manageLv;
this.manageCode=this.$route.params.manageCode
this.getlComPremDetil()
this.reload()
}
}
</script>