Explorar el Código

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

csx hace 4 años
padre
commit
238b6328fb

+ 1 - 1
build/cdn.json Ver fichero

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

+ 2 - 2
config/prod.env.js Ver fichero

1
 "use strict";
1
 "use strict";
2
 module.exports = {
2
 module.exports = {
3
   NODE_ENV: '"production"',
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
   // http://api.xt.test.sgjyun.com
7
   // http://api.xt.test.sgjyun.com
8
   // '"http://api.xt.kuyicloud.com"', //'"http://api.xt.kuyicloud.com"','"http://api.xt.test.sgjyun.com"'
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 Ver fichero

10
         method: "post",
10
         method: "post",
11
         params: params,
11
         params: params,
12
     })
12
     })
13
-}
13
+}

+ 4 - 4
src/pages/main/dialog/subMenu/MsgTip.vue Ver fichero

63
         <div class="content" style="margin-top:5px;margin-left:0;">
63
         <div class="content" style="margin-top:5px;margin-left:0;">
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=
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
           透后总重:<span style="color:#ec6618;display:inline-block;text-align:center;center;margin:0 2px;">{{record.weight_after}}</span>kg-
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
            </span>
67
            </span>
68
         </div>
68
         </div>
69
         <br>
69
         <br>
85
         <div class="content" style="margin-top:5px;margin-left:0;">
85
         <div class="content" style="margin-top:5px;margin-left:0;">
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=
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
           上次透后总重:<span style="color:#ec6618;display:inline-block;text-align:center;center;margin:0 2px;">{{last_record.weight_after}}</span>kg-
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
            </span>
89
            </span>
90
         </div>
90
         </div>
91
         <br>
91
         <br>
197
       if (last_record.id > 0) {
197
       if (last_record.id > 0) {
198
         if (last_record.weight_after > 0) {
198
         if (last_record.weight_after > 0) {
199
           let additional_weight = 0
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
           return parseFloat(last_record.weight_after - additional_weight).toFixed(1)
203
           return parseFloat(last_record.weight_after - additional_weight).toFixed(1)
204
         } else {
204
         } else {

+ 2 - 2
src/pages/main/index.vue Ver fichero

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

+ 8 - 7
src/permission.js Ver fichero

8
   //   next()
8
   //   next()
9
   //   return
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
     } else {
18
     } else {
15
-      next({ path: "/" });
16
-    }
17
-  } else {
18
-    next();
19
+      next();
19
   }
20
   }
20
 });
21
 });