瀏覽代碼

Merge branch 'master' of http://git.shengws.com/csx/Pad_New

XMLWAN 4 年之前
父節點
當前提交
8922f53c8d

+ 14 - 0
src/api/admin_user.js 查看文件

@@ -173,6 +173,20 @@ export function GetFunctionRoleInfo(params){
173 173
 
174 174
 
175 175
 
176
+export function GetAllRole(){
177
+  return request({
178
+    url:'/m/api/role',
179
+    method:'get',
180
+  })
181
+}
182
+
183
+
184
+
185
+
186
+
187
+
188
+
189
+
176 190
 
177 191
 
178 192
 

二進制
src/assets/images/App.png 查看文件


二進制
src/assets/images/advice.png 查看文件


二進制
src/assets/images/monitoring.png 查看文件


二進制
src/assets/images/pad.png 查看文件


二進制
src/assets/images/toparrow.png 查看文件


+ 65 - 45
src/pages/console/managementConsole/staff_role/addStaff/index.vue 查看文件

@@ -7,12 +7,7 @@
7 7
     </div>
8 8
     <div class="editStaffTip">必填</div>
9 9
     <div class="staffBox">
10
-      <van-field
11
-        v-model="name"
12
-        label="姓名"
13
-        clearable
14
-        placeholder="请输入姓名"
15
-      />
10
+      <van-field v-model="name" label="姓名" clearable placeholder="请输入姓名" />
16 11
       <van-field
17 12
         v-model="tel"
18 13
         type="tel"
@@ -27,13 +22,33 @@
27 22
           <span class="custom-title">角色</span>
28 23
           <div style="width:76%;margin-left:3.3rem">
29 24
             <van-checkbox-group v-model="role_ids">
30
-              <van-checkbox style="width: 30%;" :name="item.id" shape="square" v-for="(item, index) in roles" :key="index"
31
-                >{{item.name}}</van-checkbox
32
-              >
25
+              <van-checkbox
26
+                style="width: 30%;"
27
+                :name="item.id"
28
+                shape="square"
29
+                v-for="(item, index) in roles"
30
+                :key="index"
31
+              >{{item.name}}</van-checkbox>
33 32
             </van-checkbox-group>
34 33
           </div>
35 34
         </template>
36 35
       </van-cell>
36
+      <van-cell class="newCell">
37
+        <!-- 使用 title 插槽来自定义标题 -->
38
+        <template slot="title">
39
+          <span class="custom-title" style="width:90px">职称</span>
40
+          <div style="display:flex;">
41
+            <div style="margin-right:2rem;display: flex;align-items: center;" @click="show1 = true">
42
+              <span>请选择</span>
43
+              <van-icon name="arrow-down" />
44
+            </div>
45
+            <div style="margin-right:2rem;display: flex;align-items: center;">
46
+              <span>请选择</span>
47
+              <van-icon name="arrow-down" />
48
+            </div>
49
+          </div>
50
+        </template>
51
+      </van-cell>
37 52
     </div>
38 53
     <div class="editStaffTip">选填</div>
39 54
     <div class="staffBox">
@@ -43,43 +58,51 @@
43 58
       <van-icon class="addIcon" name="add" />
44 59
       <p>保存并继续新增员工</p>
45 60
     </div>
61
+    <van-popup v-model="show1" position="bottom" :style="{ height: '40%' }">
62
+      <van-picker show-toolbar :columns="columns" @cancel="onCancel" @confirm="onConfirm" />
63
+    </van-popup>
64
+    <van-popup v-model="show2" position="bottom" :style="{ height: '40%' }">
65
+      <van-picker show-toolbar :columns="columns" @cancel="onCancel" @confirm="onConfirm" />
66
+    </van-popup>
46 67
   </div>
47 68
 </template>
48 69
 
49 70
 <script>
50
-  import { AdminInitData,CreateAdminUser } from "@/api/admin_user";
51
-  import { checkMobile } from "@/utils/tools";
52
-  import { setRem } from "@/libs/functionRem";
53
-
71
+import { AdminInitData, CreateAdminUser } from "@/api/admin_user";
72
+import { checkMobile } from "@/utils/tools";
73
+import { setRem } from "@/libs/functionRem";
54 74
 
55 75
 export default {
56 76
   data() {
57 77
     return {
58
-      name:"",
59
-      tel:"",
78
+      name: "",
79
+      tel: "",
60 80
       role_ids: [],
61
-      title:"",
81
+      title: "",
62 82
       value1: "",
63
-      roles:[],
83
+      roles: [],
84
+      show1: false,
85
+      show2: false,
86
+      columns: ["杭州", "宁波", "温州", "嘉兴", "湖州"]
64 87
     };
65
-  },methods:{
66
-    GetAdminUserInitData(){
88
+  },
89
+  methods: {
90
+    GetAdminUserInitData() {
67 91
       AdminInitData().then(response => {
68 92
         if (response.data.state === 1) {
69
-          for (let i =0; i < response.data.data.roles.length; i++){
70
-            if(!response.data.data.roles[i].is_super_admin){
71
-              this.roles.push(response.data.data.roles[i])
93
+          for (let i = 0; i < response.data.data.roles.length; i++) {
94
+            if (!response.data.data.roles[i].is_super_admin) {
95
+              this.roles.push(response.data.data.roles[i]);
72 96
             }
73 97
           }
74
-
75 98
         } else {
76 99
           this.$toast({
77 100
             message: response.data.msg
78 101
           });
79 102
         }
80 103
       });
81
-    },save(type){
82
-
104
+    },
105
+    save(type) {
83 106
       if (this.name.trim().length == 0) {
84 107
         this.$toast({
85 108
           message: "姓名不能为空!"
@@ -100,22 +123,22 @@ export default {
100 123
       }
101 124
 
102 125
       let params = {
103
-        name:this.name,
126
+        name: this.name,
104 127
         mobile: this.tel,
105
-        role_ids:  this.role_ids.join(","),
106
-        title : this.title,
107
-      }
108
-      console.log(params)
128
+        role_ids: this.role_ids.join(","),
129
+        title: this.title
130
+      };
131
+      console.log(params);
109 132
       CreateAdminUser(params).then(response => {
110 133
         if (response.data.state === 1) {
111
-          this.$toast({message: "新增成功"});
112
-          if(type == 1) {
113
-            this.$router.go(-1)
114
-          }else{
115
-            this.name = ""
116
-            this.mobile = ""
117
-            this.role_ids = []
118
-            this.title = ""
134
+          this.$toast({ message: "新增成功" });
135
+          if (type == 1) {
136
+            this.$router.go(-1);
137
+          } else {
138
+            this.name = "";
139
+            this.mobile = "";
140
+            this.role_ids = [];
141
+            this.title = "";
119 142
           }
120 143
         } else {
121 144
           this.$toast({
@@ -124,13 +147,10 @@ export default {
124 147
         }
125 148
       });
126 149
     }
127
-
128
-  },created(){
129
-    this.GetAdminUserInitData()
130
-    setRem()
131
-
132
-
133
-
150
+  },
151
+  created() {
152
+    this.GetAdminUserInitData();
153
+    setRem();
134 154
   }
135 155
 };
136 156
 </script>

+ 22 - 18
src/pages/console/managementConsole/staff_role/editRole/index.vue 查看文件

@@ -40,7 +40,8 @@
40 40
 
41 41
 <script>
42 42
   import {setRem} from "@/libs/functionRem";
43
-  import {GetAllPurview,GetRoleInfo,EditRoleInfo,DeleteRoleInfo,EditPurview} from "@/api/admin_user";
43
+  import {GetAllPurview,GetRoleInfo,EditRoleInfo,DeleteRoleInfo,EditPurview,GetAllRole} from "@/api/admin_user";
44
+  import {Dialog} from "vant";
44 45
 
45 46
   export default {
46 47
     data() {
@@ -64,7 +65,7 @@
64 65
         let purview_ids  = ""
65 66
         let type = 0
66 67
         if (value.pid == 0){ //当前页面只存在pid为0的数据,而且会出现开关按钮的情况只会是拥有一个子节点
67
-          console.log(value.sub_purview)
68
+
68 69
           if(value.sub_purview.length > 0) {
69 70
 
70 71
             purview_ids = value.id + "," + value.sub_purview[0].id
@@ -117,24 +118,27 @@
117 118
 
118 119
       },
119 120
       del(){
120
-        let params = {
121
-          role_id: this.$route.query.id,
122
-          enable:false,
123
-        }
124
-        DeleteRoleInfo(params).then(response => {
125
-          if (response.data.state === 1) {
126
-            this.$toast({
127
-              message: "删除成功"
128
-            });
129
-            this.$router.go(-1)
130
-          } else {
131
-            this.$toast({
132
-              message: response.data.msg
133
-            });
121
+        Dialog.confirm({
122
+          message: "是否删除该角色?"
123
+        }).then(() => {
124
+          let params = {
125
+            role_id: this.$route.query.id,
126
+            enable:false,
134 127
           }
135
-        });
136
-
128
+          DeleteRoleInfo(params).then(response => {
129
+            if (response.data.state === 1) {
130
+              this.$toast({
131
+                message: "删除成功"
132
+              });
133
+              this.$router.go(-1)
134
+            } else {
135
+              this.$toast({
136
+                message: response.data.msg
137
+              });
138
+            }
139
+          });
137 140
 
141
+        });
138 142
       },
139 143
       editRole(){
140 144
         let params = {

+ 10 - 5
src/pages/console/managementConsole/staff_role/employeeList/index.vue 查看文件

@@ -16,7 +16,7 @@
16 16
         @change="onChange"
17 17
       >
18 18
         <div class="checkOne" v-for="(item, index) in admin_user" :key="index">
19
-          <van-checkbox :name="item.id"></van-checkbox>
19
+          <van-checkbox :name="item.id" @change="onChange"></van-checkbox>
20 20
           <div class="checkUserBox">
21 21
             <img v-if="item.avatar.length > 0" :src="item.avatar" alt="" />
22 22
             <img
@@ -45,6 +45,13 @@ export default {
45 45
   },
46 46
   methods: {
47 47
     save() {
48
+      if(this.result.length == 0){
49
+        this.$toast({
50
+          message: "至少选择一个用户"
51
+        });
52
+        return
53
+      }
54
+
48 55
       let params = {
49 56
         id: this.$route.query.id,
50 57
         ids: this.result.join(",")
@@ -89,7 +96,7 @@ export default {
89 96
     checkAll() {
90 97
       if (this.allChecked == false) {
91 98
         for (let i = 0; i < this.admin_user.length; i++) {
92
-          this.result.push(this.admin_user[i].user_id);
99
+          this.result.push(this.admin_user[i].id);
93 100
         }
94 101
         this.allChecked = true;
95 102
       } else {
@@ -97,12 +104,10 @@ export default {
97 104
       }
98 105
     },
99 106
     onChange() {
100
-      if (this.result.length == this.list.length) {
107
+      if (this.result.length == this.admin_user.length) {
101 108
         this.allChecked = true;
102
-        this.$refs.checkboxes.toggle();
103 109
       } else {
104 110
         this.allChecked = false;
105
-        this.$refs.checkboxes.toggle();
106 111
       }
107 112
     }
108 113
   },

+ 2 - 2
src/pages/console/managementConsole/staff_role/privilegeManagement/index.vue 查看文件

@@ -52,7 +52,7 @@
52 52
 
53 53
 <script>
54 54
   // import "../libs/rem.js";
55
-  import {AdminInitData} from "@/api/admin_user";
55
+  import {GetAllRole} from "@/api/admin_user";
56 56
   import {setRem} from "@/libs/functionRem";
57 57
 
58 58
   export default {
@@ -63,7 +63,7 @@
63 63
     },
64 64
     methods: {
65 65
       GetInitRoles() {
66
-        AdminInitData().then(response => {
66
+        GetAllRole().then(response => {
67 67
           if (response.data.state === 1) {
68 68
             console.log(response.data.data.roles.length)
69 69
             for (let i = 0; i < response.data.data.roles.length; i++) {

+ 18 - 0
src/pages/main/RecordPage.vue 查看文件

@@ -158,6 +158,14 @@
158 158
         @clear_search_keyword="clearKeyword"
159 159
       ></dialysis-area>
160 160
     </div>
161
+    <div class="fixedBox">
162
+      <div @click="goMonitoring" style="margin-bottom:0.375rem">
163
+        <img src="../../assets/images/monitoring.png" alt />
164
+      </div>
165
+      <div @click="goAdvice">
166
+        <img src="../../assets/images/advice.png" alt />
167
+      </div>
168
+    </div>
161 169
   </div>
162 170
 </template>
163 171
 
@@ -413,6 +421,16 @@ export default {
413 421
     vertical-align: middle;
414 422
   }
415 423
 }
424
+
425
+.fixedBox {
426
+  position: fixed;
427
+  bottom: 0.625rem;
428
+  right: 0.625rem;
429
+  img {
430
+    width: 1.875rem;
431
+    height: 1.875rem;
432
+  }
433
+}
416 434
 </style>
417 435
 <style lang="scss">
418 436
 .newinput {

+ 45 - 0
src/pages/my/invite.vue 查看文件

@@ -0,0 +1,45 @@
1
+<template>
2
+  <div class="page_invite">
3
+    <div class="inviteTitle">
4
+      <i class="iconfont icon-zuojiantou jiantou" @click="$router.go(-1)"></i>
5
+      <span class="titleName">邀请好友</span>
6
+    </div>
7
+    <div class="imgBox">
8
+      <img src="../../assets/images/pad.png" alt />
9
+    </div>
10
+    <div class="imgBox">
11
+      <img src="../../assets/images/App.png" alt />
12
+    </div>
13
+  </div>
14
+</template>
15
+
16
+<style lang="scss" scoped>
17
+.page_invite {
18
+  height: 100%;
19
+  overflow-y: auto;
20
+  background: #fafafa;
21
+  .inviteTitle {
22
+    background: #fff;
23
+    padding: 0 1.125rem;
24
+    height: 3.125rem;
25
+    display: flex;
26
+    align-items: center;
27
+  }
28
+  .jiantou {
29
+    font-size: 1.5rem;
30
+    font-weight: 600;
31
+    margin-right: 7rem;
32
+  }
33
+  .titleName {
34
+    font-size: 1.125rem;
35
+    font-weight: 600;
36
+  }
37
+  .imgBox {
38
+    img {
39
+      width: 9.375rem;
40
+      margin: 3.125rem auto 1.25rem;
41
+      display: block;
42
+    }
43
+  }
44
+}
45
+</style>

+ 1 - 0
src/pages/my/modifyPassword.vue 查看文件

@@ -15,6 +15,7 @@
15 15
               v-model="forgetForm.phone"
16 16
               v-on:input="watchNum"
17 17
               maxlength="11"
18
+              readonly
18 19
               @input="change(forgetForm.phone)"
19 20
             ></el-input>
20 21
           </div>

+ 8 - 10
src/permission.js 查看文件

@@ -1,8 +1,8 @@
1
-import router from './router'
2
-import store from './store'
3
-import isLogin from '@/api/login'
1
+import router from "./router";
2
+import store from "./store";
3
+import  isLogin  from "@/api/login";
4 4
 
5
-const loginWhiteList = ['/', '/login', '/privacy', '/forgetPassword', '/userAgreement', '/nopassword', '/forget', '/register', '/setname', '/join', '/createorg'] // 登录验证白名单
5
+const loginWhiteList = ["/", "/login", "/privacy", "/forgetPassword", "/userAgreement","/nopassword","/forget","/register","/setname",'/join','/createorg']; // 登录验证白名单
6 6
 
7 7
 router.beforeEach((to, from, next) => {
8 8
   // 线上注释
@@ -10,13 +10,11 @@ router.beforeEach((to, from, next) => {
10 10
   //   return
11 11
   if (store.getters.user.admin == null) {
12 12
     if (loginWhiteList.indexOf(to.path) !== -1) {
13
-      next()
13
+      next();
14 14
     } else {
15
-      next({
16
-        path: '/'
17
-      })
15
+      next({ path: "/" });
18 16
     }
19 17
   } else {
20
-    next()
18
+    next();
21 19
   }
22
-})
20
+});

+ 230 - 214
src/router/index.js 查看文件

@@ -1,140 +1,148 @@
1
-import Vue from 'vue'
2
-import Router from 'vue-router'
1
+import Vue from "vue";
2
+import Router from "vue-router";
3 3
 
4
-Vue.use(Router)
4
+Vue.use(Router);
5 5
 
6 6
 export default new Router({
7
-  routes: [{
8
-      path: '/',
9
-      name: 'Home',
10
-      component: () => import('@/pages/home/verifyToken')
7
+  routes: [
8
+    {
9
+      path: "/",
10
+      name: "Home",
11
+      component: () => import("@/pages/home/verifyToken")
11 12
     },
12 13
     {
13
-      path: '/login',
14
-      name: 'Home',
15
-      component: () => import('@/pages/home/login')
14
+      path: "/login",
15
+      name: "Home",
16
+      component: () => import("@/pages/home/login")
16 17
     },
17 18
     {
18
-      path: '/nopassword',
19
-      name: 'Home',
20
-      component: () => import('@/pages/home/noPassword')
19
+      path: "/nopassword",
20
+      name: "Home",
21
+      component: () => import("@/pages/home/noPassword")
21 22
     },
22 23
     {
23
-      path: '/setname',
24
-      name: 'Home',
25
-      component: () => import('@/pages/home/register/name')
24
+      path: "/setname",
25
+      name: "Home",
26
+      component: () => import("@/pages/home/register/name")
26 27
     },
27 28
     {
28
-      path: '/register',
29
-      name: 'Home',
30
-      component: () => import('@/pages/home/register/register')
29
+      path: "/register",
30
+      name: "Home",
31
+      component: () => import("@/pages/home/register/register")
31 32
     },
32 33
     {
33
-      path: '/join',
34
-      name: 'Home',
35
-      component: () => import('@/pages/home/noJoinedGroup')
34
+      path: "/join",
35
+      name: "Home",
36
+      component: () => import("@/pages/home/noJoinedGroup")
36 37
     },
37 38
     {
38
-      path: '/forget',
39
-      name: 'Home',
40
-      component: () => import('@/pages/home/forgetPassword')
39
+      path: "/forget",
40
+      name: "Home",
41
+      component: () => import("@/pages/home/forgetPassword")
41 42
     },
42 43
     {
43
-      path: '/createorg',
44
-      name: 'Home',
45
-      component: () => import('@/pages/home/createOrg')
44
+      path: "/createorg",
45
+      name: "Home",
46
+      component: () => import("@/pages/home/createOrg")
46 47
     },
47 48
     // 首页
48 49
     {
49
-      path: '/myIndex',
50
-      name: 'myIndex',
51
-      component: () => import('@/pages/home/index'),
52
-      children: [{
53
-          path: '/homeIndex',
54
-          component: () => import('@/pages/homeIndex/index.vue'),
50
+      path: "/myIndex",
51
+      name: "myIndex",
52
+      component: () => import("@/pages/home/index"),
53
+      children: [
54
+        {
55
+          path: "/homeIndex",
56
+          component: () => import("@/pages/homeIndex/index.vue"),
55 57
           meta: {
56 58
             noCache: true // 不会被 <keep-alive> 缓存
57 59
           }
58 60
         },
59 61
         // 我的
60 62
         {
61
-          path: '/newMy',
62
-          name: 'newMy',
63
-          component: () => import('@/pages/my/index')
63
+          path: "/newMy",
64
+          name: "newMy",
65
+          component: () => import("@/pages/my/index")
64 66
         },
65 67
         // 商城
66 68
         {
67
-          path: '/shop',
68
-          name: 'shop',
69
-          component: () => import('@/pages/shop/index')
69
+          path: "/shop",
70
+          name: "shop",
71
+          component: () => import("@/pages/shop/index")
70 72
         }
71 73
       ]
72 74
     },
73 75
 
74 76
     {
75
-      path: '/perfectOrg',
76
-      component: () => import('@/pages/org'),
77
+      path: "/perfectOrg",
78
+      component: () => import("@/pages/org"),
77 79
       meta: {
78 80
         noCache: true // 不会被 <keep-alive> 缓存
79 81
       }
80 82
     },
81 83
     {
82
-      path: '/manageconsole',
83
-      name: 'console',
84
-      component: () => import('@/pages/console/managementConsole')
84
+      path: "/manageconsole",
85
+      name: "console",
86
+      component: () => import("@/pages/console/managementConsole")
85 87
     },
86 88
     {
87
-      path: '/manageconsole/staff',
88
-      name: 'staff',
89
+      path: "/manageconsole/staff",
90
+      name: "staff",
89 91
       component: () =>
90
-        import('@/pages/console/managementConsole/staff_role/staffManagement')
92
+        import("@/pages/console/managementConsole/staff_role/staffManagement")
91 93
     },
92 94
     {
93
-      path: '/staff/editstaff',
94
-      name: 'editstaff',
95
+      path: "/staff/editstaff",
96
+      name: "editstaff",
95 97
       component: () =>
96
-        import('@/pages/console/managementConsole/staff_role/editStaff')
97
-    }, {
98
-      path: '/staff/addstaff',
99
-      name: 'addstaff',
98
+        import("@/pages/console/managementConsole/staff_role/editStaff")
99
+    },
100
+    {
101
+      path: "/staff/addstaff",
102
+      name: "addstaff",
100 103
       component: () =>
101
-        import('@/pages/console/managementConsole/staff_role/addStaff')
104
+        import("@/pages/console/managementConsole/staff_role/addStaff")
102 105
     },
103 106
 
104 107
     {
105
-      path: '/manageconsole/role',
106
-      name: 'role',
108
+      path: "/manageconsole/role",
109
+      name: "role",
107 110
       component: () =>
108
-        import('@/pages/console/managementConsole/staff_role/privilegeManagement')
111
+        import(
112
+          "@/pages/console/managementConsole/staff_role/privilegeManagement"
113
+        )
109 114
     },
110 115
 
111 116
     {
112
-      path: '/role/user',
113
-      name: 'user',
117
+      path: "/role/user",
118
+      name: "user",
114 119
       component: () =>
115
-        import('@/pages/console/managementConsole/staff_role/newUser')
120
+        import("@/pages/console/managementConsole/staff_role/newUser")
116 121
     },
117 122
 
118 123
     {
119
-      path: '/role/addnewuser',
120
-      name: 'user',
124
+      path: "/role/addnewuser",
125
+      name: "user",
121 126
       component: () =>
122
-        import('@/pages/console/managementConsole/staff_role/newAddStaff')
123
-    }, {
124
-      path: '/role/stafflist',
125
-      name: 'user',
127
+        import("@/pages/console/managementConsole/staff_role/newAddStaff")
128
+    },
129
+    {
130
+      path: "/role/stafflist",
131
+      name: "user",
126 132
       component: () =>
127
-        import('@/pages/console/managementConsole/staff_role/employeeList')
128
-    }, {
129
-      path: '/role/usermanage',
130
-      name: 'user',
133
+        import("@/pages/console/managementConsole/staff_role/employeeList")
134
+    },
135
+    {
136
+      path: "/role/usermanage",
137
+      name: "user",
131 138
       component: () =>
132
-        import('@/pages/console/managementConsole/staff_role/userManage')
133
-    }, {
134
-      path: '/role/addrole',
135
-      name: 'add_role',
139
+        import("@/pages/console/managementConsole/staff_role/userManage")
140
+    },
141
+    {
142
+      path: "/role/addrole",
143
+      name: "add_role",
136 144
       component: () =>
137
-        import('@/pages/console/managementConsole/staff_role/newAddRole')
145
+        import("@/pages/console/managementConsole/staff_role/newAddRole")
138 146
     },
139 147
 
140 148
     //
@@ -146,149 +154,156 @@ export default new Router({
146 154
     // },
147 155
 
148 156
     {
149
-      path: '/role/editrole',
150
-      name: 'editrole',
157
+      path: "/role/editrole",
158
+      name: "editrole",
151 159
       component: () =>
152
-        import('@/pages/console/managementConsole/staff_role/editRole')
160
+        import("@/pages/console/managementConsole/staff_role/editRole")
153 161
     },
154 162
     {
155
-      path: '/role/subpurview',
156
-      name: 'purview',
163
+      path: "/role/subpurview",
164
+      name: "purview",
157 165
       component: () =>
158
-        import('@/pages/console/managementConsole/staff_role/subPurview')
166
+        import("@/pages/console/managementConsole/staff_role/subPurview")
159 167
     },
160 168
     {
161
-      path: '/role/otherpurview',
162
-      name: 'purview',
169
+      path: "/role/otherpurview",
170
+      name: "purview",
163 171
       component: () =>
164
-        import('@/pages/console/managementConsole/staff_role/otherPurview')
165
-    }, {
166
-      path: '/role/functionpurview',
167
-      name: 'purview',
172
+        import("@/pages/console/managementConsole/staff_role/otherPurview")
173
+    },
174
+    {
175
+      path: "/role/functionpurview",
176
+      name: "purview",
168 177
       component: () =>
169
-        import('@/pages/console/managementConsole/staff_role/functionPurview')
178
+        import("@/pages/console/managementConsole/staff_role/functionPurview")
170 179
     },
171 180
     // 患者中心
172 181
     {
173
-      path: '/patients',
174
-      name: 'patients',
175
-      component: () => import('@/pages/patientManagement/patientManagement')
182
+      path: "/patients",
183
+      name: "patients",
184
+      component: () => import("@/pages/patientManagement/patientManagement")
176 185
     },
177 186
     // 新增病人
178 187
     {
179
-      path: '/addPatints',
180
-      name: 'addpatients',
181
-      component: () => import('@/pages/patients/addPatient')
188
+      path: "/addPatints",
189
+      name: "addpatients",
190
+      component: () => import("@/pages/patients/addPatient")
182 191
     },
183 192
     // 全部病程
184 193
     {
185
-      path: '/coursedetail',
186
-      name: 'coursedetail',
187
-      component: () => import('@/pages/allCourseManagement/index')
194
+      path: "/coursedetail",
195
+      name: "coursedetail",
196
+      component: () => import("@/pages/allCourseManagement/index")
188 197
     },
189 198
     // 全部干体重
190 199
     {
191
-      path: '/dryweight',
192
-      name: 'dryweight',
193
-      component: () => import('@/pages/allDryWeight/index')
200
+      path: "/dryweight",
201
+      name: "dryweight",
202
+      component: () => import("@/pages/allDryWeight/index")
194 203
     },
195 204
     // 基本信息
196 205
     {
197
-      path: '/editPatient',
198
-      name: 'editPatient',
199
-      component: () => import('@/pages/patients/editPatient')
206
+      path: "/editPatient",
207
+      name: "editPatient",
208
+      component: () => import("@/pages/patients/editPatient")
200 209
     },
201 210
     // 全部排班
202 211
     {
203
-      path: '/editScheduling',
204
-      name: 'editscheduling',
205
-      component: () => import('@/pages/allScheduling/index')
212
+      path: "/editScheduling",
213
+      name: "editscheduling",
214
+      component: () => import("@/pages/allScheduling/index")
206 215
     },
207 216
     // 全部透后宣教
208 217
     {
209
-      path: '/editEducation',
210
-      name: 'editeducation',
211
-      component: () => import('@/pages/allEducation/index')
218
+      path: "/editEducation",
219
+      name: "editeducation",
220
+      component: () => import("@/pages/allEducation/index")
212 221
     },
213 222
     // 全部抢救记录
214 223
     {
215
-      path: '/rescuerecord',
216
-      name: 'rescuerecord',
217
-      component: () => import('@/pages/allRescue/index')
224
+      path: "/rescuerecord",
225
+      name: "rescuerecord",
226
+      component: () => import("@/pages/allRescue/index")
218 227
     },
219 228
     //
220 229
     {
221
-      path: '/patientdetail',
222
-      name: 'patientdetail',
223
-      component: () => import('@/pages/doctorAdvice/index')
230
+      path: "/patientdetail",
231
+      name: "patientdetail",
232
+      component: () => import("@/pages/doctorAdvice/index")
224 233
     },
225 234
     // 搜索
226 235
     {
227
-      path: '/search',
228
-      name: 'search',
229
-      component: () => import('@/pages/search/index')
236
+      path: "/search",
237
+      name: "search",
238
+      component: () => import("@/pages/search/index")
230 239
     },
231 240
     // 我的信息
232 241
     {
233
-      path: '/myInfo',
234
-      name: 'myInfo',
235
-      component: () => import('@/pages/my/myInfo')
242
+      path: "/myInfo",
243
+      name: "myInfo",
244
+      component: () => import("@/pages/my/myInfo")
236 245
     },
237 246
     // 意见反馈
238 247
     {
239
-      path: '/feedBack',
240
-      name: 'feedBack',
241
-      component: () => import('@/pages/my/feedBack')
248
+      path: "/feedBack",
249
+      name: "feedBack",
250
+      component: () => import("@/pages/my/feedBack")
242 251
     },
243 252
     // 关于我们
244 253
     {
245
-      path: '/about',
246
-      name: 'about',
247
-      component: () => import('@/pages/my/aboutUs')
254
+      path: "/about",
255
+      name: "about",
256
+      component: () => import("@/pages/my/aboutUs")
248 257
     },
249 258
     // 公司介绍
250 259
     {
251
-      path: '/introduce',
252
-      name: 'introduce',
253
-      component: () => import('@/pages/my/companyIntroduction')
260
+      path: "/introduce",
261
+      name: "introduce",
262
+      component: () => import("@/pages/my/companyIntroduction")
254 263
     },
255 264
     // 更改名字
256 265
     {
257
-      path: '/editname',
258
-      name: 'editname',
259
-      component: () => import('@/pages/my/modifyingName')
266
+      path: "/editname",
267
+      name: "editname",
268
+      component: () => import("@/pages/my/modifyingName")
260 269
     },
261 270
     // 更改名字
262 271
     {
263
-      path: '/personalsign',
264
-      name: 'personalsign',
265
-      component: () => import('@/pages/my/personalSign')
272
+      path: "/personalsign",
273
+      name: "personalsign",
274
+      component: () => import("@/pages/my/personalSign")
275
+    },
276
+    // 邀请好友
277
+    {
278
+      path: "/invite",
279
+      name: "invite",
280
+      component: () => import("@/pages/my/invite")
266 281
     },
267 282
 
268 283
     // 全部长期透析记录
269 284
 
270 285
     {
271
-      path: '/alllongdialysis',
272
-      name: 'longdialysis',
273
-      component: () => import('@/pages/allLongDialysis/index')
286
+      path: "/alllongdialysis",
287
+      name: "longdialysis",
288
+      component: () => import("@/pages/allLongDialysis/index")
274 289
     },
275 290
     //, 
276 291
     {
277
-      path: '/alldoctoradvice',
278
-      name: '/alldoctoradvice',
279
-      component: () => import('@/pages/allDoctorAdvice/index')
292
+      path: "/alldoctoradvice",
293
+      name: "/alldoctoradvice",
294
+      component: () => import("@/pages/allDoctorAdvice/index")
280 295
     },
281 296
     // 配置中心
282 297
     {
283
-      path: '/configurecenter',
284
-      name: 'configurecenter',
285
-      component: () => import('@/pages/configureCenter/index')
298
+      path: "/configurecenter",
299
+      name: "configurecenter",
300
+      component: () => import("@/pages/configureCenter/index")
286 301
     },
287 302
     // 新增分区
288 303
     {
289
-      path: '/addpartition',
290
-      name: '/addpartition',
291
-      component: () => import('@/pages/configureCenter/newPartition')
304
+      path: "/addpartition",
305
+      name: "/addpartition",
306
+      component: () => import("@/pages/configureCenter/newPartition")
292 307
     },
293 308
     // 编辑分区
294 309
     {
@@ -305,15 +320,15 @@ export default new Router({
305 320
     },
306 321
     // 新增分组
307 322
     {
308
-      path: '/addgroup',
309
-      name: '/addgroup',
310
-      component: () => import('@/pages/configureCenter/newGrouping')
323
+      path: "/addgroup",
324
+      name: "/addgroup",
325
+      component: () => import("@/pages/configureCenter/newGrouping")
311 326
     },
312 327
     // 新增床位号
313 328
     {
314
-      path: '/addbed',
315
-      name: '/addbed',
316
-      component: () => import('@/pages/configureCenter/newBed')
329
+      path: "/addbed",
330
+      name: "/addbed",
331
+      component: () => import("@/pages/configureCenter/newBed")
317 332
     },
318 333
     // 编辑床位号
319 334
     {
@@ -330,101 +345,102 @@ export default new Router({
330 345
     },
331 346
     // 我的页面管理
332 347
     {
333
-      path: '/editorg',
334
-      name: '/editorg',
335
-      component: () => import('@/pages/patientCenter/editOrg/index')
348
+      path: "/editorg",
349
+      name: "/editorg",
350
+      component: () => import("@/pages/patientCenter/editOrg/index")
336 351
     },
337 352
     {
338
-      path: '/organizationinfo',
339
-      name: '/organizationinfo',
340
-      component: () => import('@/pages/my/organizationInfo')
353
+      path: "/organizationinfo",
354
+      name: "/organizationinfo",
355
+      component: () => import("@/pages/my/organizationInfo")
341 356
     },
342 357
     {
343
-      path: '/main',
344
-      name: 'main',
345
-      component: () => import('@/pages/main/index'),
358
+      path: "/main",
359
+      name: "main",
360
+      component: () => import("@/pages/main/index"),
346 361
       meta: {
347 362
         noCache: true // 不会被 <keep-alive> 缓存
348 363
       }
349 364
     },
350 365
     {
351
-      path: '/product',
352
-      name: 'Product',
353
-      component: () => import('@/pages/product/index')
366
+      path: "/product",
367
+      name: "Product",
368
+      component: () => import("@/pages/product/index")
369
+    },
370
+    {
371
+      path: "/monitoring",
372
+      name: "monitorPage",
373
+      component: () => import("@/pages/monitoring/index")
354 374
     },
355 375
     {
356
-      path: '/monitoring',
357
-      name: 'monitorPage',
358
-      component: () => import('@/pages/monitoring/index')
376
+      path: "/details",
377
+      name: "details",
378
+      component: () => import("@/pages/main/DetailsPage")
359 379
     },
360 380
     {
361
-      path: '/details',
362
-      name: 'details',
363
-      component: () => import('@/pages/main/DetailsPage')
381
+      path: "/monitoring",
382
+      name: "monitorPage",
383
+      component: () => import("@/pages/monitoring/index")
364 384
     },
365 385
     {
366
-      path: '/monitoring',
367
-      name: 'monitorPage',
368
-      component: () => import('@/pages/monitoring/index')
386
+      path: "/my",
387
+      name: "my",
388
+      component: () => import("@/pages/personal/index")
369 389
     },
370 390
     {
371
-      path: '/my',
372
-      name: 'my',
373
-      component: () => import('@/pages/personal/index')
391
+      path: "/advice",
392
+      name: "doctorAdvice",
393
+      component: () => import("@/pages/advice/index")
374 394
     },
375 395
     {
376
-      path: '/advice',
377
-      name: 'doctorAdvice',
378
-      component: () => import('@/pages/advice/index')
396
+      path: "/EditPersonal",
397
+      name: "EditPersonal",
398
+      component: () => import("@/pages/personal/EditPersonal")
379 399
     },
380 400
     {
381
-      path: '/EditPersonal',
382
-      name: 'EditPersonal',
383
-      component: () => import('@/pages/personal/EditPersonal')
401
+      path: "/ElectronicSignature",
402
+      name: "ElectronicSignature",
403
+      component: () => import("@/pages/personal/ElectronicSignature")
384 404
     },
385 405
     {
386
-      path: '/ElectronicSignature',
387
-      name: 'ElectronicSignature',
388
-      component: () => import('@/pages/personal/ElectronicSignature')
406
+      path: "/Print",
407
+      name: "Print",
408
+      component: () => import("@/pages/main/PrintIndex")
389 409
     },
390 410
     {
391
-      path: '/Print',
392
-      name: 'Print',
393
-      component: () => import('@/pages/main/PrintIndex')
411
+      path: "/add_urgent_schedule",
412
+      name: "AddUrgentSchedule",
413
+      component: () => import("@/pages/main/add_urgent_schedule")
394 414
     },
395 415
     {
396
-      path: '/add_urgent_schedule',
397
-      name: 'AddUrgentSchedule',
398
-      component: () => import('@/pages/main/add_urgent_schedule')
416
+      path: "/Prints",
417
+      name: "Prints",
418
+      component: () => import("@/pages/main/Print")
399 419
     },
400 420
     {
401
-      path: '/Prints',
402
-      name: 'Prints',
403
-      component: () => import('@/pages/main/Print')
421
+      path: "/forgetPassword",
422
+      name: "forgetPassword",
423
+      component: () => import("@/pages/personal/ForgetPassword")
404 424
     },
405 425
     {
406
-      path: '/forgetPassword',
407
-      name: 'forgetPassword',
408
-      component: () => import('@/pages/personal/ForgetPassword')
426
+      path: "/changePassword",
427
+      name: "changePassword",
428
+      component: () => import("@/pages/personal/ChangePassword")
409 429
     },
410 430
     {
411
-      path: '/changePassword',
412
-      name: 'changePassword',
413
-      component: () => import('@/pages/personal/ChangePassword')
431
+      path: "/privacy",
432
+      name: "privacy",
433
+      component: () => import("@/pages/privacy/index")
414 434
     },
415 435
     {
416
-      path: '/privacy',
417
-      name: 'privacy',
418
-      component: () => import('@/pages/privacy/index')
436
+      path: "/userAgreement",
437
+      name: "userAgreement",
438
+      component: () => import("@/pages/userAgreement/index")
419 439
     },
420 440
     {
421
-      path: '/userAgreement',
422
-      name: 'userAgreement',
423
-      component: () => import('@/pages/userAgreement/index')
424
-    }, {
425
-      path: '/modifypsw',
426
-      name: 'modifyPassword',
427
-      component: () => import('@/pages/my/modifyPassword')
441
+      path: "/modifypsw",
442
+      name: "modifyPassword",
443
+      component: () => import("@/pages/my/modifyPassword")
428 444
     }
429 445
   ]
430
-})
446
+});

+ 0 - 2
src/utils/request.js 查看文件

@@ -36,8 +36,6 @@ service.interceptors.response.use(
36 36
     }
37 37
   },
38 38
   error => {
39
-    console.log(error);
40
-    Toast(error);
41 39
     if (error.message.includes("timeout")) {
42 40
       // 判断请求异常信息中是否含有超时timeout字符串
43 41
       return Promise.reject(error); // reject这个错误信息