diff --git a/src/components/Header.vue b/src/components/Header.vue index d39112002566745ab867a6f4d11fe0b472c46e14..54d5f98a5bd8071efc42810751b81bc0a58db098 100644 --- a/src/components/Header.vue +++ b/src/components/Header.vue @@ -62,6 +62,7 @@ export default defineComponent({ } #system{ + height: 16px; background-color: red; border-radius: 30px; color: white; diff --git a/src/router/index.ts b/src/router/index.ts index 2b25eab782f047c1f17938291215516fe4bf48ef..b0ec1cdf75b5439c66d4214b4318a3561501d6b3 100644 --- a/src/router/index.ts +++ b/src/router/index.ts @@ -10,6 +10,9 @@ const routes: Array = [ path: '/home', name: 'home', component:()=>import('@/components/Home.vue'), + meta:{ + icon:'', + }, children:[ //首页 { @@ -18,7 +21,8 @@ const routes: Array = [ component: ()=>import('../views/HomePage.vue'), meta:{ title:'发热信息登记', - isshow:true + isshow:true, + icon:'', } }, //发热信息 @@ -28,7 +32,8 @@ const routes: Array = [ component: ()=>import('../views/FeverInformation.vue'), meta:{ title:'发热信息记录', - isshow:true + isshow:true, + icon:'', } }, //区县管理 @@ -38,7 +43,8 @@ const routes: Array = [ component:()=>import('../views/Area.vue'), meta:{ title:'区县管理', - isshow:true + isshow:true, + icon:'', } }, @@ -49,7 +55,8 @@ const routes: Array = [ component:()=>import('../views/Hospital.vue'), meta:{ title:'医院管理', - isshow:true + isshow:true, + icon:'', } }, //用户管理 @@ -59,7 +66,8 @@ const routes: Array = [ component:()=>import('../views/User.vue'), meta:{ title:'用户管理', - isshow:true + isshow:true, + icon:'', } }, //修改个人信息 @@ -69,7 +77,8 @@ const routes: Array = [ component:()=>import('../views/SelfEdit.vue'), meta:{ title:'修改个人信息', - isshow:true + isshow:true, + icon:'', } }, //修改密码 @@ -79,8 +88,19 @@ const routes: Array = [ component:()=>import('../views/ChangePassword.vue'), meta:{ title:'修改密码', - isshow:true + isshow:true, + icon:'', } + }, + { + path:'userchange', + name:'userchange', + component:()=>import('../views/userChange.vue') + }, + { + path:'doctor', + name:'doctor', + component:()=>import('../views/Doctor.vue') } ] }, diff --git a/src/router/router.ts b/src/router/router.ts deleted file mode 100644 index ebda1c4702946c08510af5520d6fd0790529fff5..0000000000000000000000000000000000000000 --- a/src/router/router.ts +++ /dev/null @@ -1,102 +0,0 @@ -import { createRouter, createWebHashHistory, RouteRecordRaw } from 'vue-router'; -// import layout from '@/views/layout/index.vue'; - -const routes: Array = [ - { - path: '/', - redirect: '/homepage' - }, - { - path: '/homepage', - name: 'homepage', - component:()=>import('@/views/HomePage.vue'), - meta: { - title: '发热信息登记', - isshow:true, - }, - }, - //login - { - path: '/login', - name: 'login', - component: () => import('../views/login/index.vue'), - }, - //404 - { - path: '/404', - name: '404', - component: () => import('../views/errorPage/404.vue'), - }, - // //首页 - // { - // path: 'homepage', - // name: 'homepage', - // component: ()=>import('../views/HomePage.vue'), - // meta:{title:'发热信息登记'} - // }, - //发热信息 - { - path: 'feverinformation', - name: 'feverinformation', - component: ()=>import('../views/FeverInformation.vue'), - meta:{ - title:'发热信息记录', - inshow:true - } - }, - //区县管理 - { - path:'area', - name:'area', - component:()=>import('../views/Area.vue'), - meta:{ - title:'区县管理', - isshow:true - } - - }, - //医院管理 - { - path:'hospital', - name:'hoapital', - component:()=>import('../views/Hospital.vue'), - meta:{ - title:'医院管理', - isshow:true - } - }, - { - path:'user', - name:'user', - component:()=>import('../views/User.vue'), - meta:{ - title:'用户管理', - isshow:true - } - }, - { - path:'/self', - name:'self', - component:()=>import('../views/SelfEdit.vue'), - meta:{ - title:'修改个人信息', - // isshow:true - } - }, - { - path:'/change', - name:'change', - component:()=>import('../views/ChangePassword.vue'), - meta:{ - title:'修改密码', - // isshow:true - } - } -]; - -const router = createRouter({ - history: createWebHashHistory(), - routes -}); - -export default router; diff --git a/src/type/homepage.ts b/src/type/homepage.ts new file mode 100644 index 0000000000000000000000000000000000000000..3ce8d0acfbde23c14e3c347322b1680018ee6278 --- /dev/null +++ b/src/type/homepage.ts @@ -0,0 +1,38 @@ + +export interface datanormrule{ + username:string; + gender:string; + age:string; + peoplenumber:string; + telephone:string; + live:string; + show:string; + have:boolean; + red:boolean; + inspect:string; + first:string; + way:string; + doctor:string; + time1:string; + time2:string +} + +export class datanorm { + datainfo:datanormrule = { + username:'', + gender:'', + age:'', + peoplenumber:'', + telephone:'', + live:'', + show:'', + have:false, + red:false, + inspect:'', + first:'', + way:'', + doctor:'', + time1:'', + time2:'', + } +} \ No newline at end of file diff --git a/src/views/HomePage.vue b/src/views/HomePage.vue index d34c8fd78d77fe9096381f051c3d7b5d7ebaaacc..7074ad9024f328ac016c86cb9f99ae38d7fb559b 100644 --- a/src/views/HomePage.vue +++ b/src/views/HomePage.vue @@ -1,21 +1,129 @@ \ No newline at end of file diff --git a/src/views/Hospital.vue b/src/views/Hospital.vue index 0bd1a24c0150be4959720b4ee1fa3a2ef9d90fdb..b39f28209351cb326b6e41a3e736ff6527488ba7 100644 --- a/src/views/Hospital.vue +++ b/src/views/Hospital.vue @@ -173,7 +173,7 @@ export default defineComponent({ } // 查看人员 const handleLook = (index:number,row:any)=>{ - router.push("/home/hospital/salesperson") + router.push("/home/doctor") } // 修改 const handleEdit = (index:number,row:any)=>{