Selaa lähdekoodia

提交新项目

chuwu 5 vuotta sitten
vanhempi
commit
95f86e6369

+ 2 - 1
src/framework/layout/layout-store.js

@@ -13,7 +13,7 @@ export default {
         userInfo: { username: 'admin' },
         permissions: { "system:role:delete": true, "system:role:create": true, "system:role:query": true, "system:role:setOpts": true },
         projectId: 'Pj4201050001',
-        projects: [{ name: '新华创新大厦', id: 'Pj1101080002' }, { name: '亚心医院', id: 'Pj4201050001' }],
+        projects: [{ name: '风雅园', id: 'Pj1101010001' }, { name: '亚心医院', id: 'Pj4201050001' }],
         breadcrumb: [],
         secret: "saga123456", //密码
         userId: "test", //用户id
@@ -62,6 +62,7 @@ export default {
         },
         setprojectId: (state, val) => {
             state.projectId = val
+            localStorage.setItem('projectId', val)
             storage.set(KEY_PROJECT_SELECTED, val)
         }
     },

+ 7 - 0
src/views/business_space/business_list/index.vue

@@ -402,6 +402,13 @@
                         this.$refs["graphy" + this.activeName][0].clearDimension();
                     }
                 }
+            },
+            projectId(){
+                this.param.ProjId = this.projectId
+                this.param.UserId = this.userId
+                this.param.secret = this.secret
+                this.getFloor()
+                this.getTypes()
             }
         }
     };