|  | @ -53,6 +53,12 @@ export const pageRoutes = [ | 
		
	
		
			
				|  |  |     name: 'detail', |  |  |     name: 'detail', | 
		
	
		
			
				|  |  |     meta: { title: '患者360', isTab: true }, |  |  |     meta: { title: '患者360', isTab: true }, | 
		
	
		
			
				|  |  |     component: () => import('@/components/360View/index.vue') |  |  |     component: () => import('@/components/360View/index.vue') | 
		
	
		
			
				|  |  |  |  |  |   }, | 
		
	
		
			
				|  |  |  |  |  |   { | 
		
	
		
			
				|  |  |  |  |  |     path: '/outpatientManagement-call', | 
		
	
		
			
				|  |  |  |  |  |     component: () => import('@/page-subspecialty/views/modules/outpatientManagement/call'), | 
		
	
		
			
				|  |  |  |  |  |     name: 'outpatientManagement', | 
		
	
		
			
				|  |  |  |  |  |     meta: { title: '日常出诊', isTab: true } | 
		
	
		
			
				|  |  |   } |  |  |   } | 
		
	
		
			
				|  |  | ] |  |  | ] | 
		
	
		
			
				|  |  | 
 |  |  | 
 | 
		
	
	
		
			
				|  | @ -153,6 +159,8 @@ router.beforeEach((to, from, next) => { | 
		
	
		
			
				|  |  |   if (window.SITE_CONFIG['dynamicMenuRoutesHasAdded'] || fnCurrentRouteIsPageRoute(to, pageRoutes)) { |  |  |   if (window.SITE_CONFIG['dynamicMenuRoutesHasAdded'] || fnCurrentRouteIsPageRoute(to, pageRoutes)) { | 
		
	
		
			
				|  |  |     if (to.name === 'detail' && to.query.doctorId) { |  |  |     if (to.name === 'detail' && to.query.doctorId) { | 
		
	
		
			
				|  |  |       loginByDocId(to.query.doctorId, next, to) |  |  |       loginByDocId(to.query.doctorId, next, to) | 
		
	
		
			
				|  |  |  |  |  |     } else if (to.name === 'outpatientManagement' && to.query.userIdNumber) { | 
		
	
		
			
				|  |  |  |  |  |       loginByUserId(to.query.userIdNumber, to.query.caUserSign, next, to) | 
		
	
		
			
				|  |  |     } else { |  |  |     } else { | 
		
	
		
			
				|  |  |       return next() |  |  |       return next() | 
		
	
		
			
				|  |  |     } |  |  |     } | 
		
	
	
		
			
				|  | @ -239,7 +247,6 @@ function loginByDocId(doctorId, next, to) { | 
		
	
		
			
				|  |  |     if (res.code !== 0) { |  |  |     if (res.code !== 0) { | 
		
	
		
			
				|  |  |       return this.$message.error(res.msg) |  |  |       return this.$message.error(res.msg) | 
		
	
		
			
				|  |  |     } |  |  |     } | 
		
	
		
			
				|  |  |     // Cookies.set('xa-token', res.data.token)
 |  |  |  | 
		
	
		
			
				|  |  |     window.sessionStorage.setItem('xa-token', res.data.token) |  |  |     window.sessionStorage.setItem('xa-token', res.data.token) | 
		
	
		
			
				|  |  |     window.sessionStorage.setItem('qg-userData', JSON.stringify(res.data.currentUser)) |  |  |     window.sessionStorage.setItem('qg-userData', JSON.stringify(res.data.currentUser)) | 
		
	
		
			
				|  |  |     if (to.name !== 'detail') { |  |  |     if (to.name !== 'detail') { | 
		
	
	
		
			
				|  | @ -249,6 +256,23 @@ function loginByDocId(doctorId, next, to) { | 
		
	
		
			
				|  |  |     return next() |  |  |     return next() | 
		
	
		
			
				|  |  |   }).catch(() => { }) |  |  |   }).catch(() => { }) | 
		
	
		
			
				|  |  | } |  |  | } | 
		
	
		
			
				|  |  |  |  |  | function loginByUserId(userIdNumber, caUserSign, next, to) { | 
		
	
		
			
				|  |  |  |  |  |   const params = { | 
		
	
		
			
				|  |  |  |  |  |     caUserSign: caUserSign, | 
		
	
		
			
				|  |  |  |  |  |     userIdNumber: userIdNumber | 
		
	
		
			
				|  |  |  |  |  |   } | 
		
	
		
			
				|  |  |  |  |  |   http.post('/loginByPidNum', params).then(({ data: res }) => { | 
		
	
		
			
				|  |  |  |  |  |     if (res.code !== 0) { | 
		
	
		
			
				|  |  |  |  |  |       return this.$message.error(res.msg) | 
		
	
		
			
				|  |  |  |  |  |     } | 
		
	
		
			
				|  |  |  |  |  |     console.log(111111,res.data) | 
		
	
		
			
				|  |  |  |  |  |     window.sessionStorage.setItem('xa-token', res.data.token) | 
		
	
		
			
				|  |  |  |  |  |     window.sessionStorage.setItem('qg-userData', JSON.stringify(res.data.currentUser)) | 
		
	
		
			
				|  |  |  |  |  |     // getNavList(next)
 | 
		
	
		
			
				|  |  |  |  |  |     // muneList(next)
 | 
		
	
		
			
				|  |  |  |  |  |     return next() | 
		
	
		
			
				|  |  |  |  |  |   }).catch(() => { }) | 
		
	
		
			
				|  |  |  |  |  | } | 
		
	
		
			
				|  |  | 
 |  |  | 
 | 
		
	
		
			
				|  |  | /** |  |  | /** | 
		
	
		
			
				|  |  |  * 判断当前路由是否为页面路由 |  |  |  * 判断当前路由是否为页面路由 | 
		
	
	
		
			
				|  | 
 |