See999 4 years ago
parent
commit
477f0d8e87

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

@@ -4,7 +4,7 @@ const prodEnv = require('./prod.env')
4 4
 
5 5
 module.exports = merge(prodEnv, {
6 6
   NODE_ENV: '"development"',
7
-  // BASE_API: '"https://api.xt.kuyicloud.com"'
7
+  //BASE_API: '"https://api.xt.kuyicloud.com"'
8 8
   BASE_API: '"http://localhost:9531"'
9 9
   //BASE_API: '"http://localhost:9529"'
10 10
   //http://api.xt.test.sgjyun.com http://localhost:9529

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

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

+ 8 - 9
src/pages/home/index.vue View File

@@ -141,16 +141,15 @@ export default {
141 141
     const id = this.$route.query.id;
142 142
     // this.getAllOrgName(id);
143 143
     setRem();
144
-
145 144
   },
146
-  mounted(){
147
-    let currenttabbar = window.location.hash.split("/")[1]
148
-     if (currenttabbar === 'homeIndex') {
149
-      this.active = 0
150
-    } else if (currenttabbar === 'newMy') {
151
-      this.active = 2
152
-    } else if (currenttabbar === 'active') {
153
-      this.active = 1
145
+  mounted() {
146
+    let currenttabbar = window.location.hash.split("/")[1];
147
+    if (currenttabbar === "homeIndex") {
148
+      this.active = 0;
149
+    } else if (currenttabbar === "newMy") {
150
+      this.active = 2;
151
+    } else if (currenttabbar === "active") {
152
+      this.active = 1;
154 153
     }
155 154
   }
156 155
 };

+ 4 - 5
src/pages/my/index.vue View File

@@ -160,7 +160,8 @@ import {
160 160
   getMyInforName,
161 161
   getMyInformationThree,
162 162
   getMyOrgInformation,
163
-  getMyInformationFour
163
+  getMyInformationFour,
164
+  getRolePosition
164 165
 } from "@/api/patient/patient";
165 166
 import { uParseTime } from "@/utils/tools";
166 167
 import { GetHomeData } from "@/api/home";
@@ -291,10 +292,8 @@ export default {
291 292
     getRolePosition() {
292 293
       getRolePosition().then(response => {
293 294
         if (response.data.state === 1) {
294
-          var orgs = response.data.data.orgs;
295
+          var orgs = response.data.data.cretorPosition;
295 296
           console.log("position", orgs);
296
-          var adminUser = response.data.data.adminUser;
297
-          console.log("adminUser", adminUser);
298 297
         }
299 298
       });
300 299
     }
@@ -315,7 +314,7 @@ export default {
315 314
     if (creator !== 0) {
316 315
       this.getMyInformationFour();
317 316
     }
318
-    // this.getRolePosition();
317
+    this.getRolePosition();
319 318
   }
320 319
 };
321 320
 </script>

+ 6 - 16
src/pages/patientCenter/allCheck/index.vue View File

@@ -31,29 +31,19 @@
31 31
                 <p>
32 32
                   <span style="text-align:right;width:3.125rem;display: inline-block;">{{ item.inspect_value }}</span>
33 33
                   <span
34
-                    v-if="
35
-                      item.inspect_value != '' &&
36
-                        parseInt(item.inspect_value) > parseInt(item.range_max)
37
-                    "
38
-                  >
34
+                    v-if="item.inspect_value != '' && parseInt(item.inspect_value) > parseInt(item.range_max)">
39 35
                     <i class="el-icon-top" style="color:#F44746"></i>
40 36
                   </span>
41 37
                   <span
42
-                    v-if="
43
-                      item.inspect_value != '' &&
44
-                        parseInt(item.inspect_value) <
45
-                          parseInt(item.range_min) &&
46
-                        parseInt(item.inspect_value) < parseInt(item.range_max)
47
-                    "
48
-                  >
38
+                    v-if="item.inspect_value != '' &&parseInt(item.inspect_value) <parseInt(item.range_min) &&parseInt(item.inspect_value) < parseInt(item.range_max)">
49 39
                     <i class="el-icon-bottom" style="color:#5B98FF"></i>
50 40
                   </span>
51
-                  <span v-if="parseInt(item.inspect_value) == ''"></span>
41
+                  <span v-if="parseInt(item.inspect_value) === ''"></span>
52 42
                 </p>
53
-                <span v-if="item.range_type == 1"
43
+                <span v-if="item.range_type === 1"
54 44
                   >{{ item.range_min }}~{{ item.range_max }}</span
55 45
                 >
56
-                <span v-if="item.range_type == 2">
46
+                <span v-if="item.range_type === 2">
57 47
                   {{ item.inspect_value }}
58 48
                 </span>
59 49
                 <span>{{ item.unit }}</span>
@@ -140,7 +130,7 @@ export default {
140 130
       getInspectionDetail(patientid, date, this.project_id).then(response => {
141 131
         if (response.data.state === 1) {
142 132
           var InspectionDetail = response.data.data.InspectionDetail;
143
-          // console.log("数据是", InspectionDetail);
133
+          console.log("数据是", InspectionDetail);
144 134
           this.InspectionDetail = InspectionDetail;
145 135
         }
146 136
       });