Quellcode durchsuchen

Merge branch 'new_pad_branch' of http://git.shengws.com/zhangbj/xt_pad into new_pad_branch

csx vor 4 Jahren
Ursprung
Commit
238b6328fb

+ 1 - 1
build/cdn.json Datei anzeigen

@@ -1,3 +1,3 @@
1 1
 {
2
-  "version": "1.1.402"
2
+  "version": "1.1.512"
3 3
 }

+ 2 - 2
config/prod.env.js Datei anzeigen

@@ -1,9 +1,9 @@
1 1
 "use strict";
2 2
 module.exports = {
3 3
   NODE_ENV: '"production"',
4
-  // BASE_API: '"https://api.xt.kuyicloud.com"'
4
+  BASE_API: '"https://api.xt.kuyicloud.com"'
5 5
 
6
-   BASE_API: '"http://api.xt.test.sgjyun.com"'
6
+   // BASE_API: '"http://api.xt.test.sgjyun.com"'
7 7
   // http://api.xt.test.sgjyun.com
8 8
   // '"http://api.xt.kuyicloud.com"', //'"http://api.xt.kuyicloud.com"','"http://api.xt.test.sgjyun.com"'
9 9
 };

+ 1 - 1
src/api/login.js Datei anzeigen

@@ -10,4 +10,4 @@ export function loginByPwd(mobile, password) {
10 10
         method: "post",
11 11
         params: params,
12 12
     })
13
-}
13
+}

+ 4 - 4
src/pages/main/dialog/subMenu/MsgTip.vue Datei anzeigen

@@ -63,7 +63,7 @@
63 63
         <div class="content" style="margin-top:5px;margin-left:0;">
64 64
           <span class="text" style="text-align:left;display:block;height:0.4rem;" id="txms">透后称重:<span style="color:#ec6618;display:inline-block;text-align:center;margin:0 2px;">{{getAfterWeight(record)}}</span>kg=
65 65
           透后总重:<span style="color:#ec6618;display:inline-block;text-align:center;center;margin:0 2px;">{{record.weight_after}}</span>kg-
66
-          衣服重:<span style="color:#ec6618;display:inline-block;text-align:center;center;margin:0 2px;">{{predialysis.additional_weight}}</span>kg
66
+          衣服重:<span style="color:#ec6618;display:inline-block;text-align:center;center;margin:0 2px;">{{record.additional_weight}}</span>kg
67 67
            </span>
68 68
         </div>
69 69
         <br>
@@ -85,7 +85,7 @@
85 85
         <div class="content" style="margin-top:5px;margin-left:0;">
86 86
           <span class="text" style="text-align:left;display:block;height:0.4rem;" id="txms">上次透后称重:<span style="color:#ec6618;display:inline-block;text-align:center;margin:0 2px;">{{getLastAfterWeight(last_record)}}</span>kg=
87 87
           上次透后总重:<span style="color:#ec6618;display:inline-block;text-align:center;center;margin:0 2px;">{{last_record.weight_after}}</span>kg-
88
-          上次衣服重:<span style="color:#ec6618;display:inline-block;text-align:center;center;margin:0 2px;">{{last_predialysis.additional_weight}}</span>kg
88
+          上次衣服重:<span style="color:#ec6618;display:inline-block;text-align:center;center;margin:0 2px;">{{last_record.additional_weight}}</span>kg
89 89
            </span>
90 90
         </div>
91 91
         <br>
@@ -197,8 +197,8 @@ export default {
197 197
       if (last_record.id > 0) {
198 198
         if (last_record.weight_after > 0) {
199 199
           let additional_weight = 0
200
-          if (this.last_predialysis.additional_weight != undefined) {
201
-            additional_weight = this.last_predialysis.additional_weight
200
+          if (this.last_record.additional_weight != undefined) {
201
+            additional_weight = this.last_record.additional_weight
202 202
           }
203 203
           return parseFloat(last_record.weight_after - additional_weight).toFixed(1)
204 204
         } else {

+ 2 - 2
src/pages/main/index.vue Datei anzeigen

@@ -82,7 +82,7 @@ export default {
82 82
           return [item.groupno]
83 83
         })
84 84
         this.unReadWaitNum = sorted.length
85
-      } 
85
+      }
86 86
       // else {
87 87
       //   var date = parseTime(Date.parse(new Date()), '{y}-{m}-{d}')
88 88
       //   getWaitingScheduals({ date: date }).then(rs => {
@@ -139,7 +139,7 @@ export default {
139 139
         })
140 140
 
141 141
         this.unReadDialysisNum = sorted.length
142
-      } 
142
+      }
143 143
       // else {
144 144
       //   var date = this.$store.getters.app.dialysis_area.schedule_date
145 145
       //   var type = 0

+ 8 - 7
src/permission.js Datei anzeigen

@@ -8,13 +8,14 @@ router.beforeEach((to, from, next) => {
8 8
   //   next()
9 9
   //   return
10 10
 
11
-  if (store.getters.user.user.id == 0) {
12
-    if (loginWhiteList.indexOf(to.path) !== -1) {
13
-      next();
11
+
12
+    if (store.getters.user.user.id == 0) {
13
+      if (loginWhiteList.indexOf(to.path) !== -1) {
14
+        next();
15
+      } else {
16
+        next({ path: "/" });
17
+      }
14 18
     } else {
15
-      next({ path: "/" });
16
-    }
17
-  } else {
18
-    next();
19
+      next();
19 20
   }
20 21
 });