소스 검색

体征接口例外给安卓分机用

allen 3 년 전
부모
커밋
b897ee033e
6개의 변경된 파일43개의 추가작업 그리고 4개의 파일을 삭제
  1. 2 1
      build/index.js
  2. 15 0
      public/vital_sign_log.html
  3. 1 1
      src/permission.js
  4. 5 1
      src/router/index.js
  5. 2 1
      src/utils/request.js
  6. 18 0
      src/views/vital-sign/index.vue

+ 2 - 1
build/index.js

@@ -19,7 +19,8 @@ if (process.env.npm_config_preview || rawArgv.includes('--preview')) {
   app.use(
     publicPath,
     serveStatic('./dist', {
-      index: ['index.html', '/']
+      index: ['index.html', '/'],
+      vitalSignLog: ['vital_sign_log.html','/vital_sign_log']
     })
   )
 

+ 15 - 0
public/vital_sign_log.html

@@ -0,0 +1,15 @@
+<!DOCTYPE html>
+<html>
+<head>
+    <meta charset="utf-8">
+    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
+    <meta name="renderer" content="webkit">
+    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
+    <link rel="icon" href="<%= BASE_URL %>favicon.ico">
+    <title>abc</title>
+</head>
+<body>
+<div id="app"></div>
+<!-- built files will be auto injected -->
+</body>
+</html>

+ 1 - 1
src/permission.js

@@ -7,7 +7,7 @@ import getPageTitle from '@/utils/get-page-title'
 
 NProgress.configure({ showSpinner: false }) // NProgress Configuration
 
-const whiteList = ['/login', '/auth-redirect'] // no redirect whitelist
+const whiteList = ['/login', '/vital_sign_log', '/auth-redirect'] // no redirect whitelist
 
 router.beforeEach(async(to, from, next) => {
   // start progress bar

+ 5 - 1
src/router/index.js

@@ -84,8 +84,12 @@ export const constantRoutes = [
         meta: { title: '首页', icon: 'dashboard', affix: true }
       }
     ]
+  },
+  {
+    path: '/vital_sign_log',
+    component: () => import('@/views/vital-sign/index'),
+    hidden: true
   }
-
 ]
 export const partRoutes = [
   // {

+ 2 - 1
src/utils/request.js

@@ -160,8 +160,9 @@ const closeLoading = (target) => {
 }
 
 export default function request(options) {
+  console.log(options.url.toLocaleLowerCase())
   // 如果是请求【刷新token、登录、退出】不需要检查token,直接请求。
-  if (/mgr\/refresh_token|mgr\/login|mgr\/logout/.test(options.url.toLocaleLowerCase())) {
+  if (/mgr\/refresh_token|mgr\/login|mgr\/logout|care/.test(options.url.toLocaleLowerCase())) {
     return service(options)
   }
   return new Promise((resolve, reject) => {

+ 18 - 0
src/views/vital-sign/index.vue

@@ -0,0 +1,18 @@
+<template>
+  <div>
+      <vital-sign-log :member-id="member_id" :active-name="'vital_signs1'"/>
+  </div>
+</template>
+
+<script>
+import vitalSignLog from '@/views/vital-sign/log'
+export default {
+    name: 'vitalSignIndex',
+    components: {vitalSignLog},
+    data:function () {
+        return {
+            member_id: this.$route.query.id
+        }
+    }
+}
+</script>