Browse Source

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

csx 5 years ago
parent
commit
d05d017650

+ 2 - 2
config/dev.env.js View File

12
   SRCM_HOST: '"http://test1.sgjyun.com"',
12
   SRCM_HOST: '"http://test1.sgjyun.com"',
13
   XT_HOST: '"http://xt.test.sgjyun.com"',
13
   XT_HOST: '"http://xt.test.sgjyun.com"',
14
   MIRCO_MALL_HOST: '"http://mall.test.sgjyun.com"',
14
   MIRCO_MALL_HOST: '"http://mall.test.sgjyun.com"',
15
-  CDM_HOST: '"http://cdm.test.sgjyun.com"',
16
-}
15
+  CDM_HOST: '"http://cdm.test.sgjyun.com"'
16
+};

+ 2 - 2
config/index.js View File

19
 
19
 
20
     // host: 'xt.test.sgjyun.com',
20
     // host: 'xt.test.sgjyun.com',
21
     // host: 'xt.kuyicloud.com',
21
     // host: 'xt.kuyicloud.com',
22
-    // host: 'xt.test.sgjyun.com',
23
-    host:'localhost',
22
+    host: 'xt.test.sgjyun.com',
23
+    //host:'localhost',
24
     port: 9528, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
24
     port: 9528, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
25
     autoOpenBrowser: true,
25
     autoOpenBrowser: true,
26
     errorOverlay: true,
26
     errorOverlay: true,

+ 10 - 7
src/views/layout/components/Sidebar/SidebarItem.vue View File

207
     }
207
     }
208
   }
208
   }
209
 }
209
 }
210
-.el-menu-item{
210
+.menu-wrapper{
211
+  .el-menu-item{
211
    background-color:#1F2D3D !important;
212
    background-color:#1F2D3D !important;
213
+  }
214
+  .el-menu{
215
+    background-color:#1F2D3D !important;
216
+  }
217
+  .el-submenu__title{
218
+    background-color:#1F2D3D !important;
219
+  }
212
 }
220
 }
213
-.el-menu{
214
-  background-color:#1F2D3D !important;
215
-}
216
-.el-submenu__title{
217
-  background-color:#1F2D3D !important;
218
-}
221
+
219
 </style>
222
 </style>

+ 14 - 14
src/xt_pages/dialysis/details/dialog/AssessmentAfterDislysis.vue View File

67
             </el-form-item>
67
             </el-form-item>
68
           </el-col>
68
           </el-col>
69
 
69
 
70
-          <el-col :span="8" v-if="isShow('压迫后内瘘震颤')">
71
-            <el-form-item label="压迫后内瘘震颤: ">
72
-              <el-select v-model="form.internal_fistula_tremor_ac">
73
-                <el-option :key="0" label="请选择" :value="0"></el-option>
74
-
75
-                <el-option
76
-                  v-for="item in internalFistulaTremorAcOptions"
77
-                  :label="item.name"
78
-                  :value="item.id"
79
-                  :key="item.id"
80
-                ></el-option>
81
-              </el-select>
82
-            </el-form-item>
83
-          </el-col>
70
+<!--          <el-col :span="8" v-if="isShow('压迫后内瘘震颤')">-->
71
+<!--            <el-form-item label="压迫后内瘘震颤: ">-->
72
+<!--              <el-select v-model="form.internal_fistula_tremor_ac">-->
73
+<!--                <el-option :key="0" label="请选择" :value="0"></el-option>-->
74
+
75
+<!--                <el-option-->
76
+<!--                  v-for="item in internalFistulaTremorAcOptions"-->
77
+<!--                  :label="item.name"-->
78
+<!--                  :value="item.id"-->
79
+<!--                  :key="item.id"-->
80
+<!--                ></el-option>-->
81
+<!--              </el-select>-->
82
+<!--            </el-form-item>-->
83
+<!--          </el-col>-->
84
 
84
 
85
           <el-col :span="8" v-if="isShow('并发症')">
85
           <el-col :span="8" v-if="isShow('并发症')">
86
             <el-form-item label="并发症: ">
86
             <el-form-item label="并发症: ">

+ 17 - 17
src/xt_pages/dialysis/details/dialog/assessmentBeforeDislysisDialog.vue View File

276
           </el-col>
276
           </el-col>
277
 
277
 
278
 
278
 
279
-          <el-col :span="8">
279
+<!--          <el-col :span="8">-->
280
 
280
 
281
-            <el-form-item label="位置: " v-if="isShow('位置')">
282
-              <el-select v-model="assessmentBeforeDislysis.venous_catheterization_part">
283
-                <el-option :key="0" label="请选择" :value="0"></el-option>
281
+<!--            <el-form-item label="位置: " v-if="isShow('位置')">-->
282
+<!--              <el-select v-model="assessmentBeforeDislysis.venous_catheterization_part">-->
283
+<!--                <el-option :key="0" label="请选择" :value="0"></el-option>-->
284
 
284
 
285
-                <el-option v-for="item in this.$store.getters.venous_catheterization_part" :label="item.name"
286
-                           :value="item.id"
287
-                           :key="item.id"></el-option>
288
-              </el-select>
289
-            </el-form-item>
290
-          </el-col>
285
+<!--                <el-option v-for="item in this.$store.getters.venous_catheterization_part" :label="item.name"-->
286
+<!--                           :value="item.id"-->
287
+<!--                           :key="item.id"></el-option>-->
288
+<!--              </el-select>-->
289
+<!--            </el-form-item>-->
290
+<!--          </el-col>-->
291
 
291
 
292
           <el-col :span="8">
292
           <el-col :span="8">
293
             <el-form-item label="其他位置:" v-if="isShow('其他位置')">
293
             <el-form-item label="其他位置:" v-if="isShow('其他位置')">
296
           </el-col>
296
           </el-col>
297
 
297
 
298
 
298
 
299
-          <el-col :span="8" v-if="isShow('导管')">
300
-            <el-form-item label="导管:">
301
-              <div>
302
-                <el-input v-model="assessmentBeforeDislysis.ductus_arantii" @focus="showInnerDialog('10')"></el-input>
303
-              </div>
304
-            </el-form-item>
305
-          </el-col>
299
+<!--          <el-col :span="8" v-if="isShow('导管')">-->
300
+<!--            <el-form-item label="导管:">-->
301
+<!--              <div>-->
302
+<!--                <el-input v-model="assessmentBeforeDislysis.ductus_arantii" @focus="showInnerDialog('10')"></el-input>-->
303
+<!--              </div>-->
304
+<!--            </el-form-item>-->
305
+<!--          </el-col>-->
306
 
306
 
307
 
307
 
308
           <el-col :span="8" v-if="isShow('其他中心静脉导管')">
308
           <el-col :span="8" v-if="isShow('其他中心静脉导管')">

+ 23 - 16
src/xt_permission.js View File

1
-import router from "./router";
2
-import store from "./store";
3
-import NProgress from "nprogress"; // progress bar
4
-import "nprogress/nprogress.css"; // progress bar style
1
+import router from './router'
2
+import store from './store'
3
+import NProgress from 'nprogress' // progress bar
4
+import 'nprogress/nprogress.css' // progress bar style
5
 
5
 
6
-NProgress.configure({ showSpinner: false }); // NProgress Configuration
6
+NProgress.configure({
7
+  showSpinner: false
8
+}) // NProgress Configuration
7
 
9
 
8
-const loginWhiteList = ["/token/verify", "/401", "/404"]; // 登录验证白名单
9
-const permissionWhiteList = loginWhiteList.concat(["/"]); // 权限验证白名单
10
+const loginWhiteList = ['/token/verify', '/401', '/404'] // 登录验证白名单
11
+const permissionWhiteList = loginWhiteList.concat(['/']) // 权限验证白名单
10
 
12
 
11
 router.beforeEach((to, from, next) => {
13
 router.beforeEach((to, from, next) => {
12
   // 线上注释
14
   // 线上注释
25
   // return
27
   // return
26
   // 线上注释
28
   // 线上注释
27
 
29
 
28
-  NProgress.start();
30
+  NProgress.start()
29
   // console.log(store.getters.current_role_urls.indexOf(to.path))
31
   // console.log(store.getters.current_role_urls.indexOf(to.path))
30
   // alert('path:' + to.path)
32
   // alert('path:' + to.path)
31
   // 如果 url 带有 lt (login_token)参数,则跳转到验证 token 时等待的页面
33
   // 如果 url 带有 lt (login_token)参数,则跳转到验证 token 时等待的页面
32
   if (to.query.lt != null && to.query.lt.length > 0) {
34
   if (to.query.lt != null && to.query.lt.length > 0) {
33
     // alert('will go to verify token: ' + to.query.lt)
35
     // alert('will go to verify token: ' + to.query.lt)
34
-    next({ path: "/token/verify", query: { token: to.query.lt } });
36
+    next({
37
+      path: '/token/verify',
38
+      query: {
39
+        token: to.query.lt
40
+      }
41
+    })
35
 
42
 
36
     // 否则 如果没有 user 信息,则前往 sso 登录
43
     // 否则 如果没有 user 信息,则前往 sso 登录
37
   } else if (store.getters.xt_user.user.id === 0) {
44
   } else if (store.getters.xt_user.user.id === 0) {
38
     if (loginWhiteList.indexOf(to.path) !== -1) {
45
     if (loginWhiteList.indexOf(to.path) !== -1) {
39
       // alert('登录白名单内,跳过登录')
46
       // alert('登录白名单内,跳过登录')
40
-      next();
47
+      next()
41
     } else {
48
     } else {
42
       // alert('前往登录')
49
       // alert('前往登录')
43
-      window.location.href = process.env.BASE_API + "/login"; // sso 地址
50
+      window.location.href = process.env.BASE_API + '/login' // sso 地址
44
     }
51
     }
45
 
52
 
46
     // 否则 如果当前 url 不需要验证访问权限,则通过
53
     // 否则 如果当前 url 不需要验证访问权限,则通过
47
   } else if (permissionWhiteList.indexOf(to.path) !== -1) {
54
   } else if (permissionWhiteList.indexOf(to.path) !== -1) {
48
     // alert('权限验证白名单内,直接进入')
55
     // alert('权限验证白名单内,直接进入')
49
-    next();
56
+    next()
50
 
57
 
51
     // 否则 如果拥有当前 url 的权限,则通过
58
     // 否则 如果拥有当前 url 的权限,则通过
52
     // } else if (store.getters.current_role_urls.indexOf(to.path) !== -1) {
59
     // } else if (store.getters.current_role_urls.indexOf(to.path) !== -1) {
58
     // console.log(store.getters.current_role_urls)
65
     // console.log(store.getters.current_role_urls)
59
     // console.log(store.getters.current_role_urls.indexOf(to.path))
66
     // console.log(store.getters.current_role_urls.indexOf(to.path))
60
     // alert('401')
67
     // alert('401')
61
-    next();
68
+    next()
62
     // next({ path: '/404' })
69
     // next({ path: '/404' })
63
   }
70
   }
64
-});
71
+})
65
 
72
 
66
 router.afterEach(() => {
73
 router.afterEach(() => {
67
-  NProgress.done();
68
-});
74
+  NProgress.done()
75
+})