Explorar el Código

修改盯盘跳转面包屑出现重复页面问题

liubei@c-top.com.cn hace 3 años
padre
commit
dbc9dab50d

+ 5 - 1
src/views/modules/stockWatch/modules/new-keepManage/account-newkeepManage.vue

@@ -511,7 +511,7 @@
                 oldLink: '',
                 linkVisible: false,
                 newLink: '',
-                accountId: this.$route.query.accountId,
+                accountId: '',
                 unitId: '',
                 bidType: '',
                 accountName: '',
@@ -568,6 +568,10 @@
             // }
         },
         mounted() {
+            if (localStorage.getItem('personalaccountId')) {
+                this.accountId = localStorage.getItem('personalaccountId')
+                localStorage.removeItem('personalaccountId')
+            }
             this.showColumn();
             this.showIndex();
             // 获取折线图

+ 4 - 2
src/views/modules/stockWatch/modules/new-keepManage/group-keepManage.vue

@@ -634,10 +634,12 @@
                 this.showColumn();
             },
             accountNameClick(row) {
-                this.$router.push({ path: '/modules/stockWatch/modules/new-keepManage/account-newkeepManage', query: { accountId: row.accountId } })
+                localStorage.setItem("personalaccountId",row.accountId)
+                this.$router.push({ path: '/modules/stockWatch/modules/new-keepManage/account-newkeepManage'})
             },
             userNameClick(row) {
-                this.$router.push({ path: '/modules/stockWatch/modules/new-keepManage/personal-keepManage', query: { userId: row.userId } })
+                localStorage.setItem("personalUserId",row.userId)
+                this.$router.push({ path: '/modules/stockWatch/modules/new-keepManage/personal-keepManage' })
             },
             // 运营组数据
             getOperationGroupData() {

+ 7 - 3
src/views/modules/stockWatch/modules/new-keepManage/personal-keepManage.vue

@@ -42,7 +42,7 @@
                     <div slot="title">
                         <span style="font-weight: bolder;">运营个人数据</span><span>({{userName}})</span>
                     </div>
-                    <div style="width: 100%;height: 315px;">
+                    <div style="width: 100%;height: 315px;margin-left: 50px;">
                         <ul class="group-keep-ul">
                             <li>
                                 今日消耗: <span style="font-weight: bold;">{{todayCost | formatNum}}</span> 
@@ -204,7 +204,7 @@
                 listNum:[],
                 dateMiddleProject:[moment(), moment()],
                 echartsDataProject:[],
-                queryUserId:this.$route.query.userId,
+                queryUserId:'',
                 echartsLoading: false,
                 projectAccount:'a',
                 target: 'cost',
@@ -310,11 +310,15 @@
             },
         },
         mounted() {
+            if (localStorage.getItem('personalUserId')) {
+                this.queryUserId = localStorage.getItem('personalUserId')
+                localStorage.removeItem('personalUserId')
+            }
             this.showColumn()
             this.getQueryNewlyData();
             this.personalData();
             this.getItemList();
-
+            
         },
         methods: {
             ...mapGetters([ 'userInfo']),