|
@@ -75,8 +75,35 @@
|
|
|
}
|
|
|
},
|
|
|
created() {
|
|
|
- this.getMenuData()
|
|
|
-
|
|
|
+ if (!this.$route?.query?.taskInfo) {
|
|
|
+ this.getMenuData()
|
|
|
+ if (window.sessionStorage.getItem('routeTags')) {
|
|
|
+ this.routeTags = JSON.parse(window.sessionStorage.getItem('routeTags'))
|
|
|
+ if (this.$route?.path === '/') {
|
|
|
+ this.$router.push({
|
|
|
+ path: this.routeTags[0].index
|
|
|
+ })
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.routeTags = [{
|
|
|
+ index: '/home',
|
|
|
+ name: '考评首页'
|
|
|
+ }]
|
|
|
+ this.$router.push({
|
|
|
+ path: this.routeTags[0].index
|
|
|
+ })
|
|
|
+ window.sessionStorage.setItem('routeTags', JSON.stringify(this.routeTags))
|
|
|
+ }
|
|
|
+ if (window.sessionStorage.getItem('user')) {
|
|
|
+ let obj = JSON.parse(window.sessionStorage.getItem('user'))
|
|
|
+ this.userName = obj.name
|
|
|
+ this.getPersonMsg(obj.id)
|
|
|
+ }
|
|
|
+ } else {
|
|
|
+ this.$router.push({ path: "/taskCenter", query: this.$route.query})
|
|
|
+ }
|
|
|
+
|
|
|
+
|
|
|
// this.forecastDatas = [{
|
|
|
// index: '/home',
|
|
|
// name: '考评首页',
|
|
@@ -253,28 +280,7 @@
|
|
|
// ]
|
|
|
// },
|
|
|
// ]
|
|
|
- if (window.sessionStorage.getItem('routeTags')) {
|
|
|
- this.routeTags = JSON.parse(window.sessionStorage.getItem('routeTags'))
|
|
|
- if (this.$route?.path === '/') {
|
|
|
- this.$router.push({
|
|
|
- path: this.routeTags[0].index
|
|
|
- })
|
|
|
- }
|
|
|
- } else {
|
|
|
- this.routeTags = [{
|
|
|
- index: '/home',
|
|
|
- name: '考评首页'
|
|
|
- }]
|
|
|
- this.$router.push({
|
|
|
- path: this.routeTags[0].index
|
|
|
- })
|
|
|
- window.sessionStorage.setItem('routeTags', JSON.stringify(this.routeTags))
|
|
|
- }
|
|
|
- if (window.sessionStorage.getItem('user')) {
|
|
|
- let obj = JSON.parse(window.sessionStorage.getItem('user'))
|
|
|
- this.userName = obj.name
|
|
|
- this.getPersonMsg(obj.id)
|
|
|
- }
|
|
|
+
|
|
|
},
|
|
|
mounted() {
|
|
|
|