Browse Source

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

xiaoming_global 5 years ago
parent
commit
c2f1ab043a

+ 1 - 1
build/cdn.json View File

@@ -1,3 +1,3 @@
1 1
 {
2
-  "version": "1.1.2"
2
+  "version": "1.1.68"
3 3
 }

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

@@ -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
 };

+ 13 - 17
src/pages/home/login.vue View File

@@ -37,25 +37,18 @@
37 37
             :disabled="loginDisable"
38 38
           >登录</button>
39 39
 
40
-          <!-- <router-link to="/forgetPassword"> -->
41
-          <div class="newForget" style="display:none">忘记密码</div>
42
-          <!-- </router-link> -->
40
+          <!-- <router-link to="/forgetPassword">
41
+            <div class="newForget">忘记密码</div>
42
+          </router-link>-->
43 43
           <!-- </router-link> -->
44 44
           <!-- <div class="forget">
45 45
           <a href="">免密码登录</a>
46 46
           <a href="">忘记密码?</a>
47 47
           </div>-->
48
-          <!--<div class="agree">-->
49
-            <!--<el-checkbox v-model="agreement">-->
50
-              <!--我已阅读并同意-->
51
-              <!--&lt;!&ndash; <router-link to="/privacyPolicy"> &ndash;&gt;-->
52
-
53
-              <!--&lt;!&ndash; </router-link> &ndash;&gt;-->
54
-            <!--</el-checkbox>-->
55
-            <!--&lt;!&ndash; <router-link to="/privacyPolicy"> &ndash;&gt;-->
56
-            <!--<span class="agreeText" @click="agree">《隐私服务协议》</span>-->
57
-            <!--&lt;!&ndash; </router-link> &ndash;&gt;-->
58
-          <!--</div>-->
48
+          <div class="agree">
49
+            <el-checkbox v-model="agreement">我已阅读并同意</el-checkbox>
50
+            <span class="agreeText" @click="agree()">《隐私服务协议》</span>
51
+          </div>
59 52
         </div>
60 53
       </div>
61 54
     </div>
@@ -131,7 +124,7 @@ export default {
131 124
       });
132 125
     },
133 126
     to: function() {
134
-      this.$router.push({ path: "/forgetPassword" });
127
+      this.$router.push({ path: "/privacy" });
135 128
     },
136 129
     submitForm() {
137 130
       const self = this;
@@ -150,8 +143,11 @@ export default {
150 143
 
151 144
       loginByPwd(this.form.mobile, hex_md5(this.form.pwd)).then(rs => {
152 145
         var resp = rs.data;
146
+        if (this.agreement != true) {
147
+          Toast("请同意隐私服务协议");
148
+        }
153 149
 
154
-        if (resp.state == 1) {
150
+        if (resp.state == 1 && this.agreement == true) {
155 151
           cacheLoginInfo(this.form.mobile, this.form.pwd);
156 152
           console.log(resp);
157 153
 
@@ -217,7 +213,7 @@ export default {
217 213
       this.setCookie("", "", -1); //修改2值都为空,天数为负1天就好了
218 214
     },
219 215
     agree() {
220
-      this.$router.push({ path: "/privacyPolicy" });
216
+      this.$router.push({ path: "/privacy" });
221 217
     }
222 218
   }
223 219
 };

+ 12 - 8
src/pages/layout/SideBar.vue View File

@@ -3,17 +3,15 @@
3 3
     <div class="column">
4 4
       <!-- <div class="head"><img :src="$store.getters.user.org.org_logo" alt=""></div> -->
5 5
       <ul class="sidebar">
6
-        <li
7
-          style="position: relative;"
8
-          :class="active_index == 0 ? 'active' : ''"
9
-        >
6
+        <li style="position: relative;" :class="active_index == 0 ? 'active' : ''">
10 7
           <router-link to="/main">
11 8
             <span class="iconfont">&#xe6e6;</span>
12 9
             <p>记录</p>
13 10
           </router-link>
14
-          <span class="redpoint" v-if="total_read_dot">
15
-            {{ total_read_dot > 99 ? total_read_dot + "+" : total_read_dot }}
16
-          </span>
11
+          <span
12
+            class="redpoint"
13
+            v-if="total_read_dot"
14
+          >{{ total_read_dot > 99 ? total_read_dot + "+" : total_read_dot }}</span>
17 15
         </li>
18 16
         <li :class="active_index == 1 ? 'active' : ''">
19 17
           <router-link to="/monitoring">
@@ -68,13 +66,19 @@ export default {
68 66
   position: absolute;
69 67
   top: 3px;
70 68
   right: -16px;
71
-  @media only screen and (max-width: 767px) {
69
+  @media only screen and (max-width: 415px) {
72 70
     height: 16px;
73 71
     width: 16px;
74 72
     line-height: 16px;
75 73
     top: 1px;
76 74
     right: -8px;
77 75
   }
76
+  @media only screen and (min-width: 415px) and (max-width: 767px) {
77
+    height: 20px;
78
+    width: 20px;
79
+    line-height: 21px;
80
+    font-size: 0.36rem;
81
+  }
78 82
 }
79 83
 .sideColumn {
80 84
   // float: left;

+ 16 - 13
src/pages/main/DetailsPage.vue View File

@@ -2,7 +2,7 @@
2 2
   <div class="mainBox">
3 3
     <div class="mainContent">
4 4
       <div class="navigation">
5
-        <div class="goBack">
5
+        <div class="goBack newGoBack">
6 6
           <span class="back" @click="backAction()">
7 7
             <span class="iconfont">&#xe720;</span>返回
8 8
           </span>
@@ -10,7 +10,7 @@
10 10
             <li slot="reference" class="name">{{ patient_name }}</li>
11 11
           </el-popover>
12 12
         </div>
13
-        <div class="nav">
13
+        <div class="nav newNav1">
14 14
           <ul>
15 15
             <li
16 16
               v-for="(item, i) in ['病历', '透析', '今日']"
@@ -155,11 +155,11 @@ export default {
155 155
 .mainContent {
156 156
   position: relative;
157 157
   .navigation {
158
-    @include display-flex;
159
-    @include align-items-center;
160
-    @include text-align;
161
-    @include box-sizing;
162
-    @include justify-content-between;
158
+    // @include display-flex;
159
+    // @include align-items-center;
160
+    // @include text-align;
161
+    // @include box-sizing;
162
+    // @include justify-content-between;
163 163
     padding: 0.3rem 0.36rem;
164 164
     // border-bottom: 1px #e5e5e5 solid;
165 165
     position: fixed;
@@ -168,22 +168,25 @@ export default {
168 168
     right: 0;
169 169
     z-index: 100;
170 170
     background: #258ffc;
171
-    @media only screen and (max-width: 320px) {
172
-      display: -webkit-box;
171
+    .newGoBack {
172
+      float: left;
173
+    }
174
+    .newNav1 {
175
+      float: left;
173 176
     }
174 177
     .name {
175 178
       color: #fff;
176 179
     }
177 180
     .nav {
178
-      margin-right: 2.4rem;
181
+      margin-left: 0.4rem;
179 182
       @media only screen and (min-width: 376px) and (max-width: 415px) {
180
-        margin-right: 3.6rem;
183
+        margin-left: 1rem;
181 184
       }
182 185
       @media only screen and (min-width: 415px) and (max-width: 767px) {
183
-        margin-right: 3.6rem;
186
+        margin-left: 1.6rem;
184 187
       }
185 188
       @media only screen and (min-width: 768px) {
186
-        margin-right: 4rem;
189
+        margin-left: 2rem;
187 190
       }
188 191
       ul {
189 192
         li {

+ 41 - 18
src/pages/main/PatientBox.vue View File

@@ -18,28 +18,24 @@
18 18
             "
19 19
             alt
20 20
           />
21
-          <span class="redpoint" v-if="getStatus(patient)">{{
21
+          <span class="redpoint" v-if="getStatus(patient)">
22
+            {{
22 23
             getUnReadNum(patient) > 99
23
-              ? getUnReadNum(patient) + "+"
24
-              : getUnReadNum(patient)
25
-          }}</span>
24
+            ? getUnReadNum(patient) + "+"
25
+            : getUnReadNum(patient)
26
+            }}
27
+          </span>
26 28
           <div class="right">
27 29
             <h3 class="name">
28 30
               {{ patient.patient.name }}
29 31
               <span class="yztx" v-if="getStatus(patient)">医嘱</span>
30 32
               <span class="yc" v-show="isAbnormal(patient)">异常</span>
31 33
             </h3>
32
-            <span class="num"
33
-              >{{ genderText(patient) }} | {{ age(patient) }}岁</span
34
-            >
34
+            <span class="num">{{ genderText(patient) }} | {{ age(patient) }}岁</span>
35 35
             <!-- 性别、年龄 -->
36 36
           </div>
37 37
         </div>
38
-        <div
39
-          class="online"
40
-          style="flex:1.1;"
41
-          v-show="computeState(patient) != 4"
42
-        >
38
+        <div class="online" style="flex:1;" v-show="computeState(patient) != 4">
43 39
           <p :class="stateColor(patient)">{{ stateText(patient) }}</p>
44 40
           <!-- <span class="time">剩余时间 : 90:08</span>     -->
45 41
         </div>
@@ -55,11 +51,11 @@
55 51
             <span class="iconfont">&#xe6de;</span>
56 52
             床位号 :
57 53
             {{
58
-              patient.dialysis_order &&
59
-              patient.dialysis_order.device_number &&
60
-              patient.dialysis_order.device_number.number.length > 0
61
-                ? patient.dialysis_order.device_number.number
62
-                : patient.device_number.number
54
+            patient.dialysis_order &&
55
+            patient.dialysis_order.device_number &&
56
+            patient.dialysis_order.device_number.number.length > 0
57
+            ? patient.dialysis_order.device_number.number
58
+            : patient.device_number.number
63 59
             }}
64 60
           </li>
65 61
           <li>
@@ -298,9 +294,17 @@ export default {
298 294
   @media only screen and (max-width: 415px) {
299 295
     width: 96% !important;
300 296
   }
297
+  @media only screen and (min-width: 415px) and (max-width: 767px) {
298
+    width: 48%;
299
+    margin: 0 1% 0.5rem 0;
300
+  }
301 301
   .function {
302 302
     padding: 0.3rem 0.32rem 0 0.32rem;
303 303
     color: #7b8a97;
304
+    @media only screen and (min-width: 415px) and (max-width: 767px) {
305
+      margin: 0;
306
+      padding: 0.3rem 0.1rem 0 0.1rem;
307
+    }
304 308
     ul {
305 309
       @include display-flex;
306 310
       @include align-items-center;
@@ -334,6 +338,9 @@ export default {
334 338
     @include justify-content-between;
335 339
     border-bottom: 1px #e5e5e5 solid;
336 340
     padding: 0 0 0.3rem 0.32rem;
341
+    @media only screen and (min-width: 415px) and (max-width: 767px) {
342
+      padding: 0 0 0.3rem 0.1rem;
343
+    }
337 344
     .tx {
338 345
       @include display-flex;
339 346
       @include align-items-center;
@@ -397,6 +404,10 @@ export default {
397 404
           font-size: 0.36rem;
398 405
           width: 1.7rem;
399 406
         }
407
+        @media only screen and (min-width: 415px) and (max-width: 767px) {
408
+          width: 1.3rem;
409
+          font-size: 0.36rem;
410
+        }
400 411
       }
401 412
       .blue {
402 413
         background: $main-color;
@@ -443,13 +454,21 @@ export default {
443 454
   top: -6px;
444 455
   left: 0.6rem;
445 456
   border: 1px solid #fff;
446
-  @media only screen and (max-width: 767px) {
457
+  @media only screen and (max-width: 415px) {
447 458
     height: 16px;
448 459
     width: 16px;
449 460
     line-height: 15px;
450 461
     top: -6px;
451 462
     left: 0.6rem;
452 463
   }
464
+  @media only screen and (min-width: 415px) and (max-width: 767px) {
465
+    height: 20px;
466
+    width: 20px;
467
+    line-height: 19px;
468
+    top: -6px;
469
+    left: 0.6rem;
470
+    font-size: 0.36rem;
471
+  }
453 472
 }
454 473
 .yztx {
455 474
   margin: 0 5px;
@@ -461,5 +480,9 @@ export default {
461 480
   @media only screen and (max-width: 415px) {
462 481
     font-size: 0.34rem !important;
463 482
   }
483
+  @media only screen and (min-width: 415px) and (max-width: 767px) {
484
+    margin: 0;
485
+    padding: 3px 3px;
486
+  }
464 487
 }
465 488
 </style>

+ 14 - 11
src/pages/main/RecordPage.vue View File

@@ -76,9 +76,9 @@
76 76
               {{ "候诊区" }}
77 77
               <span class="redpoint" v-if="un_read_wait_num">
78 78
                 {{
79
-                  un_read_wait_num > 99
80
-                    ? un_read_wait_num + "+"
81
-                    : un_read_wait_num
79
+                un_read_wait_num > 99
80
+                ? un_read_wait_num + "+"
81
+                : un_read_wait_num
82 82
                 }}
83 83
               </span>
84 84
             </li>
@@ -90,9 +90,9 @@
90 90
               {{ "透析区" }}
91 91
               <span class="redpoint" v-if="un_read_dialysis_num">
92 92
                 {{
93
-                  un_read_dialysis_num > 99
94
-                    ? un_read_dialysis_num + "+"
95
-                    : un_read_dialysis_num
93
+                un_read_dialysis_num > 99
94
+                ? un_read_dialysis_num + "+"
95
+                : un_read_dialysis_num
96 96
                 }}
97 97
               </span>
98 98
             </li>
@@ -118,11 +118,7 @@
118 118
         <van-button size="small" type="info">临时排班</van-button>
119 119
     </div>-->
120 120
     <div class="area">
121
-      <waiting-area
122
-        v-show="index == 0"
123
-        title="候诊区"
124
-        :search_keyword="search_keyword"
125
-      ></waiting-area>
121
+      <waiting-area v-show="index == 0" title="候诊区" :search_keyword="search_keyword"></waiting-area>
126 122
       <dialysis-area
127 123
         v-show="index == 1"
128 124
         title="透析区"
@@ -284,6 +280,12 @@ export default {
284 280
     width: 16px;
285 281
     line-height: 15px;
286 282
   }
283
+  @media only screen and (min-width: 415px) and (max-width: 767px) {
284
+    height: 20px;
285
+    width: 20px;
286
+    line-height: 20px;
287
+    font-size: 0.36rem;
288
+  }
287 289
 }
288 290
 .box {
289 291
   height: 1rem;
@@ -350,6 +352,7 @@ export default {
350 352
     }
351 353
   }
352 354
   .el-input__prefix {
355
+    // left:1px;
353 356
     @media only screen and (min-width: 768px) {
354 357
       left: 10px;
355 358
     }

+ 9 - 5
src/pages/main/add_urgent_schedule.vue View File

@@ -239,7 +239,6 @@
239 239
 
240 240
       var today = new Date();
241 241
       this.date = parseTime(today, "{y}-{m}-{d}");
242
-
243 242
       var hour = today.getHours();
244 243
       if (hour > 3 && hour < 11) {
245 244
         this.schedule_type = 1;
@@ -248,9 +247,6 @@
248 247
       } else {
249 248
         this.schedule_type = 3;
250 249
       }
251
-
252
-
253
-
254 250
     },
255 251
     mounted() {
256 252
 
@@ -353,7 +349,15 @@
353 349
       selectSchTypeAction: function() {
354 350
         this.$refs.sch_type_field.blur();
355 351
         this.show_sch_type_picker = true;
356
-
352
+        //
353
+        // this.$nextTick(() => {
354
+        //   // this.$refs.schedule.setColumnIndex(2)
355
+        //   // .setIndexes(this.schedule_type)
356
+        //   console.log(this.$refs.schedule)
357
+        //   console.log(this.$refs.schedule.getColumnIndex)
358
+        //   console.log(this.$refs.schedule.getColumnValue)
359
+        //
360
+        // })
357 361
       },
358 362
 
359 363
       didChangePatient: function(picker, patient, index) {

+ 44 - 35
src/pages/main/dialog/ComputerDialog.vue View File

@@ -100,6 +100,7 @@
100 100
         zone_beds: [], // 该排班的区里的床位
101 101
         creator: 0,
102 102
         template_id: 0,
103
+        temp_device_numbers:[],
103 104
         blood_drawing:100,
104 105
         schedual_type:0,
105 106
         schedules_type: [
@@ -136,31 +137,39 @@
136 137
       },
137 138
     }, mounted () {
138 139
 
140
+
141
+    },
142
+    created () {
143
+      this.temp_device_numbers = this.device_numbers
144
+
145
+
146
+
139 147
       if (this.record.id == 0) {
140 148
         this.start_time_str = parseTime(this.start_time, '{y}-{m}-{d} {h}:{i}') + ':00'
149
+        let now = new Date()
150
+        let hour = now.getHours()
151
+
152
+        if (hour >= 6 && hour < 12){
153
+          this.schedual_type = 1
154
+
155
+        }else if(hour >= 12 && hour < 18){
156
+
157
+          this.schedual_type = 2
158
+
159
+
160
+        }else if(hour >= 18){
161
+          this.schedual_type = 3
162
+        }
141 163
       } else {
142 164
         if (this.record.start_time == 0) {
143 165
           this.start_time_str = parseTime(this.start_time, '{y}-{m}-{d} {h}:{i}') + ':00'
166
+          this.schedual_type = this.record.schedual_type
144 167
 
145 168
         } else {
146 169
           this.start_time_str = parseTime(this.record.start_time, '{y}-{m}-{d} {h}:{i}') + ':00'
147
-        }
148
-      }
149
-    },
150
-    created () {
151
-      let now = new Date()
152
-      let hour = now.getHours()
170
+          this.schedual_type = this.record.schedual_type
153 171
 
154
-      if (hour >= 6 && hour < 12){
155
-        this.schedual_type = 1
156
-
157
-      }else if(hour >= 12 && hour < 18){
158
-
159
-        this.schedual_type = 2
160
-
161
-
162
-      }else if(hour >= 18){
163
-        this.schedual_type = 3
172
+        }
164 173
       }
165 174
 
166 175
 
@@ -198,11 +207,11 @@
198 207
       // }
199 208
       // this.zone_beds = beds
200 209
 
201
-      for (let index = 0; index < this.device_numbers.length; index++) {
202
-        const device_number = this.device_numbers[index]
203
-        this.device_numbers[index]['number'] = device_number['zone_name']+'-'+device_number['number']
210
+      for (let index = 0; index < this.temp_device_numbers.length; index++) {
211
+        const device_number = this.temp_device_numbers[index]
212
+        this.temp_device_numbers[index]['number'] = device_number['zone_name']+'-'+device_number['number']
204 213
       }
205
-      this.zone_beds = this.device_numbers
214
+      this.zone_beds = this.temp_device_numbers
206 215
 
207 216
       if (this.record.id > 0) {
208 217
         for (let i = 0; i < this.special_premission.length; i++) {
@@ -253,12 +262,12 @@
253 262
                   Toast.fail(response.data.msg)
254 263
                   return false
255 264
                 } else {
256
-                  t.device_numbers = response.data.data.number
257
-                  for (let index = 0; index < t.device_numbers.length; index++) {
258
-                    const device_number = t.device_numbers[index]
259
-                    t.device_numbers[index]['number'] = device_number['zone_name']+'-'+device_number['number']
265
+                  t.temp_device_numbers = response.data.data.number
266
+                  for (let index = 0; index < t.temp_device_numbers.length; index++) {
267
+                    const device_number = t.temp_device_numbers[index]
268
+                    t.temp_device_numbers[index]['number'] = device_number['zone_name']+'-'+device_number['number']
260 269
                   }
261
-                  t.zone_beds = t.device_numbers
270
+                  t.zone_beds = t.temp_device_numbers
262 271
                   t.bed_id = t.zone_beds[0].id
263 272
                 }
264 273
               })
@@ -281,12 +290,12 @@
281 290
               return false
282 291
             } else {
283 292
               t.zone_beds = []
284
-              t.device_numbers = response.data.data.number
285
-              for (let index = 0; index < t.device_numbers.length; index++) {
286
-                const device_number = t.device_numbers[index]
287
-                t.device_numbers[index]['number'] = device_number['zone_name']+'-'+device_number['number']
293
+              t.temp_device_numbers = response.data.data.number
294
+              for (let index = 0; index < t.temp_device_numbers.length; index++) {
295
+                const device_number = t.temp_device_numbers[index]
296
+                t.temp_device_numbers[index]['number'] = device_number['zone_name']+'-'+device_number['number']
288 297
               }
289
-              t.zone_beds = t.device_numbers
298
+              t.zone_beds = t.temp_device_numbers
290 299
               t.bed_id = t.zone_beds[0].id
291 300
 
292 301
 
@@ -305,12 +314,12 @@
305 314
             Toast.fail(response.data.msg)
306 315
             return false
307 316
           } else {
308
-            this.device_numbers = response.data.data.number
309
-            for (let index = 0; index < this.device_numbers.length; index++) {
310
-              const device_number = this.device_numbers[index]
311
-              this.device_numbers[index]['number'] = device_number['zone_name']+'-'+device_number['number']
317
+            this.temp_device_numbers = response.data.data.number
318
+            for (let index = 0; index < this.temp_device_numbers.length; index++) {
319
+              const device_number = this.temp_device_numbers[index]
320
+              this.temp_device_numbers[index]['number'] = device_number['zone_name']+'-'+device_number['number']
312 321
             }
313
-            this.zone_beds = this.device_numbers
322
+            this.zone_beds = this.temp_device_numbers
314 323
           }
315 324
         })
316 325
       },

File diff suppressed because it is too large
+ 445 - 441
src/pages/main/dialog/MonitDialog.vue


+ 28 - 25
src/pages/main/dialog/TreatmentDialog.vue View File

@@ -241,42 +241,45 @@ export default {
241 241
     },
242 242
 
243 243
     dialysisSummarySelectChange: function(values) {
244
-      if (this.dialysisSummary.summaryContent == null) {
245
-        this.dialysisSummary.summaryContent == "";
244
+      if(this.dialysisSummary.summaryContent == null){
245
+        this.dialysisSummary.summaryContent == ""
246 246
       }
247
+
247 248
       if (this.dialysisSummary.summaryContent == "") {
248 249
         this.dialysisSummary.summaryContent = values;
249 250
       } else {
250
-        this.dialysisSummary.summaryContent =
251
-          this.dialysisSummary.summaryContent + values;
251
+        if (this.dialysisSummary.summaryContent.indexOf(values) == -1) {
252
+          if (
253
+            this.dialysisSummary.summaryContent
254
+              .charAt(this.dialysisSummary.summaryContent.length - 1)
255
+              .indexOf("。") == -1
256
+          ) {
257
+            this.dialysisSummary.summaryContent =
258
+              this.dialysisSummary.summaryContent + "," + values;
259
+          } else {
260
+            this.dialysisSummary.summaryContent =
261
+              this.dialysisSummary.summaryContent  + values;
262
+          }
263
+        }
252 264
       }
253 265
     },
254 266
     dialysisAfterTeachSelectChange: function(values) {
255
-      if (this.dialysisSummary.propagandaAndEducationContent == null) {
256
-        this.dialysisSummary.propagandaAndEducationContent == "";
267
+      if(this.dialysisSummary.propagandaAndEducationContent == null){
268
+        this.dialysisSummary.propagandaAndEducationContent == ""
257 269
       }
258 270
       if (this.dialysisSummary.propagandaAndEducationContent == "") {
259 271
         this.dialysisSummary.propagandaAndEducationContent = values;
260 272
       } else {
261
-        this.dialysisSummary.propagandaAndEducationContent =
262
-          this.dialysisSummary.propagandaAndEducationContent + values;
263
-        // if (
264
-        //   this.dialysisSummary.propagandaAndEducationContent.indexOf(values) ==
265
-        //   -1
266
-        // ) {
267
-        //   if (
268
-        //     this.dialysisSummary.propagandaAndEducationContent
269
-        //       .charAt(
270
-        //         this.dialysisSummary.propagandaAndEducationContent.length - 1
271
-        //       )
272
-        //       .indexOf("。") == -1
273
-        //   ) {
274
-        //     this.dialysisSummary.propagandaAndEducationContent =
275
-        //       this.dialysisSummary.propagandaAndEducationContent + "," + values;
276
-        //   } else {
277
-        //
278
-        //   }
279
-        // }
273
+        if (this.dialysisSummary.propagandaAndEducationContent.indexOf(values) == -1) {
274
+          if (
275
+            this.dialysisSummary.propagandaAndEducationContent.charAt(this.dialysisSummary.propagandaAndEducationContent.length - 1).indexOf("。") == -1) {
276
+            this.dialysisSummary.propagandaAndEducationContent =
277
+              this.dialysisSummary.propagandaAndEducationContent + "," + values;
278
+          } else {
279
+            this.dialysisSummary.propagandaAndEducationContent =
280
+              this.dialysisSummary.propagandaAndEducationContent + values;
281
+          }
282
+        }
280 283
       }
281 284
     },
282 285
     commitInfo: function() {

+ 36 - 72
src/pages/main/today/TodayTab.vue View File

@@ -227,7 +227,7 @@
227 227
       :overlay="true"
228 228
       :close-on-click-overlay="false"
229 229
     >
230
-      <monit-dialog
230
+      <monit-dialog v-if="monit_dialog_reset"
231 231
         :monitor_records="monitor_records"
232 232
         :last_monitor_record="last_monitor_record"
233 233
         :patient="patient"
@@ -371,6 +371,7 @@ import {parseTime} from '@/utils'
371 371
         last_prescription:{},
372 372
         thoroug_dialog_reset: true,
373 373
         prescription_dialog_reset: true,
374
+        monit_dialog_reset: true,
374 375
         receiver_treatment_access: {}, // 接诊评估
375 376
         predialysis_evaluation: {}, // 透前评估
376 377
         last_predialysis_evaluation: {}, // 上次透前评估
@@ -847,11 +848,6 @@ import {parseTime} from '@/utils'
847 848
           var waitscheduals = waitstoredata.waitscheduals
848 849
           var storedata = this.$store.getters.scheduals
849 850
           var scheduals = storedata.scheduals
850
-
851
-
852
-
853
-
854
-
855 851
           var patient = resp.data.patient // 患者信息
856 852
           var schedual = resp.data.schedual // 患者排班信息
857 853
           var prescription = resp.data.prescription // 透析处方
@@ -882,13 +878,9 @@ import {parseTime} from '@/utils'
882 878
           var monitor_records = resp.data.monitor_records // 透析监测
883 879
           var dialysis_order = resp.data.dialysis_order // 透析记录
884 880
           var operators = resp.data.operators // 操作人
885
-
886 881
           var special_premission = resp.data.special_premission // 特殊权限
887
-
888 882
           var config = resp.data.config // 库存自动扣减配置
889
-
890 883
           var types = resp.data.types // 所有系统库存商品类型
891
-
892 884
           var last_predialysis_evaluation = resp.data.last_predialysis_evaluation // 上一次透前评估
893 885
           var last_assessment_after_dislysis = resp.data.last_assessment_after_dislysis // 上一次透前评估
894 886
           var last_monitor_record = resp.data.last_monitor_record
@@ -922,32 +914,15 @@ import {parseTime} from '@/utils'
922 914
           this.patient = patient
923 915
           this.schedual = schedual == null ? {} : schedual
924 916
           this.prescription = prescription == null ? {id: ''} : prescription
925
-          this.prescription_dialog_reset = false
926
-          this.$nextTick(() => {
927
-            this.prescription_dialog_reset = true
928
-          })
929 917
           this.solution = solution == null ? {id: ''} : solution
930 918
           this.last_prescription = last_prescription == null ? {id: ''} : last_prescription
931
-
932
-
933
-
934
-          this.receiver_treatment_access =
935
-              receiver_treatment_access == null
936
-                ? {id: ''}
937
-                : receiver_treatment_access
938
-          this.predialysis_evaluation =
939
-              predialysis_evaluation == null ? {} : predialysis_evaluation
940
-          this.last_predialysis_evaluation =
941
-              last_predialysis_evaluation == null
942
-                ? {}
943
-                : last_predialysis_evaluation
944
-
919
+          this.receiver_treatment_access = receiver_treatment_access == null ? {id: ''} : receiver_treatment_access
920
+          this.predialysis_evaluation = predialysis_evaluation == null ? {} : predialysis_evaluation
921
+          this.last_predialysis_evaluation = last_predialysis_evaluation == null ? {} : last_predialysis_evaluation
945 922
           this.doctor_advices = doctor_advices == null ? [] : doctor_advices
946 923
           this.special_premission = special_premission
947 924
           this.config = config
948 925
           this.goodTypes = types
949
-
950
-
951 926
           if (this.doctor_advices.length > 0) {
952 927
             var group = this.newAdviceGroupObject()
953 928
             var initGroupBlock = function (group, advice) {
@@ -1009,27 +984,23 @@ import {parseTime} from '@/utils'
1009 984
 
1010 985
           this.double_check = double_check == null ? {id: ''} : double_check
1011 986
           this.assessment_after_dislysis = assessment_after_dislysis == null ? {id: ''} : assessment_after_dislysis
1012
-          this.thoroug_dialog_reset = false
1013
-          this.$nextTick(() => {
1014
-            this.thoroug_dialog_reset = true
1015
-          })
1016
-          this.last_assessment_after_dislysis =
1017
-              last_assessment_after_dislysis == null
1018
-                ? {id: ''}
1019
-                : last_assessment_after_dislysis
1020
-          this.treatment_summary =
1021
-              treatment_summary == null ? {id: ''} : treatment_summary
987
+          this.last_assessment_after_dislysis = last_assessment_after_dislysis == null ? {id: ''} : last_assessment_after_dislysis
988
+          this.treatment_summary = treatment_summary == null ? {id: ''} : treatment_summary
1022 989
           this.monitor_records = monitor_records == null ? [] : monitor_records
1023
-          this.last_monitor_record =
1024
-              last_monitor_record == null
1025
-                ? this.last_monitor_record
1026
-                : last_monitor_record
1027
-          this.dialysis_order =
1028
-              dialysis_order == null ? {id: ''} : dialysis_order
990
+          this.last_monitor_record = last_monitor_record == null ? this.last_monitor_record : last_monitor_record
991
+          this.dialysis_order =  dialysis_order == null ? {id: ''} : dialysis_order
1029 992
           this.operators = operators
1030 993
           this.$refs.stat_order.setAdvices(this.doctor_advices)
1031 994
           this.$refs.monitoring.setRecords(this.monitor_records)
1032 995
 
996
+          // 强制刷新子组件
997
+          this.thoroug_dialog_reset = false
998
+          this.$nextTick(() => { this.thoroug_dialog_reset = true })
999
+          this.prescription_dialog_reset = false
1000
+          this.$nextTick(() => { this.prescription_dialog_reset = true })
1001
+          this.monit_dialog_reset = false;
1002
+          this.$nextTick(() => { this.monit_dialog_reset = true })
1003
+
1033 1004
           this.title = patient.name
1034 1005
 
1035 1006
           dialysisGlobalConfig().then(rs => {
@@ -1534,21 +1505,16 @@ import {parseTime} from '@/utils'
1534 1505
           this.patient = patient
1535 1506
           this.schedual = schedual == null ? {} : schedual
1536 1507
           this.prescription = prescription == null ? {id: ''} : prescription
1508
+
1509
+
1537 1510
           this.solution = solution == null ? {id: ''} : solution
1538 1511
           this.last_prescription = last_prescription == null ? {id: ''} : last_prescription
1539 1512
 
1540 1513
 
1541 1514
 
1542
-          this.receiver_treatment_access =
1543
-            receiver_treatment_access == null
1544
-              ? {id: ''}
1545
-              : receiver_treatment_access
1546
-          this.predialysis_evaluation =
1547
-            predialysis_evaluation == null ? {} : predialysis_evaluation
1548
-          this.last_predialysis_evaluation =
1549
-            last_predialysis_evaluation == null
1550
-              ? {}
1551
-              : last_predialysis_evaluation
1515
+          this.receiver_treatment_access = receiver_treatment_access == null ? {id: ''} : receiver_treatment_access
1516
+          this.predialysis_evaluation = predialysis_evaluation == null ? {} : predialysis_evaluation
1517
+          this.last_predialysis_evaluation = last_predialysis_evaluation == null ? {} : last_predialysis_evaluation
1552 1518
 
1553 1519
           this.doctor_advices = doctor_advices == null ? [] : doctor_advices
1554 1520
           this.special_premission = special_premission
@@ -1616,28 +1582,26 @@ import {parseTime} from '@/utils'
1616 1582
           }
1617 1583
 
1618 1584
           this.double_check = double_check == null ? {id: ''} : double_check
1619
-          this.assessment_after_dislysis =
1620
-            assessment_after_dislysis == null
1621
-              ? {id: ''}
1622
-              : assessment_after_dislysis
1623
-          this.last_assessment_after_dislysis =
1624
-            last_assessment_after_dislysis == null
1625
-              ? {id: ''}
1626
-              : last_assessment_after_dislysis
1627
-          this.treatment_summary =
1628
-            treatment_summary == null ? {id: ''} : treatment_summary
1585
+          this.assessment_after_dislysis = assessment_after_dislysis == null ? {id: ''} : assessment_after_dislysis
1586
+          this.last_assessment_after_dislysis = last_assessment_after_dislysis == null ? {id: ''} : last_assessment_after_dislysis
1587
+          this.treatment_summary =  treatment_summary == null ? {id: ''} : treatment_summary
1629 1588
           this.monitor_records = monitor_records == null ? [] : monitor_records
1630
-          this.last_monitor_record =
1631
-            last_monitor_record == null
1632
-              ? this.last_monitor_record
1633
-              : last_monitor_record
1634
-          this.dialysis_order =
1635
-            dialysis_order == null ? {id: ''} : dialysis_order
1589
+          this.last_monitor_record = last_monitor_record == null  ? this.last_monitor_record : last_monitor_record
1590
+          this.dialysis_order = dialysis_order == null ? {id: ''} : dialysis_order
1636 1591
           this.operators = operators
1637 1592
           this.$refs.stat_order.setAdvices(this.doctor_advices)
1638 1593
           this.$refs.monitoring.setRecords(this.monitor_records)
1639 1594
 
1640 1595
           this.title = patient.name
1596
+          // 强制刷新子组件
1597
+
1598
+          this.thoroug_dialog_reset = false
1599
+          this.$nextTick(() => { this.thoroug_dialog_reset = true })
1600
+          this.prescription_dialog_reset = false
1601
+          this.$nextTick(() => { this.prescription_dialog_reset = true })
1602
+          this.monit_dialog_reset = false;
1603
+          this.$nextTick(() => { this.monit_dialog_reset = true })
1604
+
1641 1605
         } else {
1642 1606
           this.$toast({
1643 1607
             message: resp.msg

+ 28 - 29
src/pages/privacy/index.vue View File

@@ -35,20 +35,19 @@
35 35
 
36 36
 
37 37
 <script>
38
-    export default {
39
-        name: "privacyPolicy"
40
-
41
-    }
38
+export default {
39
+  name: "privacy"
40
+};
42 41
 </script>
43 42
 
44 43
 <style lang="scss" scoped>
45
-  .page_privacy {
46
-    width: 100%;
47
-    margin: 0 auto;
48
-    height: 100%;
49
-    overflow-y: auto;
50
-    display: flex;
51
-    flex-direction: column;
44
+.page_privacy {
45
+  width: 100%;
46
+  margin: 0 auto;
47
+  height: 100%;
48
+  overflow-y: auto;
49
+  display: flex;
50
+  flex-direction: column;
52 51
   > div:last-child {
53 52
     flex: 1;
54 53
     overflow-y: auto;
@@ -57,24 +56,24 @@
57 56
     font-size: 0.45rem;
58 57
     padding: 0.3rem 0.37rem;
59 58
     color: $title-color;
60
-  @include align-items-center;
61
-  @include display-flex;
62
-  @include justify-content-between;
63
-  @include text-align;
59
+    @include align-items-center;
60
+    @include display-flex;
61
+    @include justify-content-between;
62
+    @include text-align;
64 63
     background: #fff;
65
-  .GoBack {
66
-    color: $main-color;
67
-    font-size: 0.45rem;
68
-  @include display-flex;
69
-  .iconfont {
70
-    color: $main-color;
71
-    font-size: 0.5rem;
72
-    margin-top: 1px;
73
-  @media only screen and (min-width: 768px) {
74
-    margin-top: 3px;
75
-  }
76
-  }
77
-  }
64
+    .GoBack {
65
+      color: $main-color;
66
+      font-size: 0.45rem;
67
+      @include display-flex;
68
+      .iconfont {
69
+        color: $main-color;
70
+        font-size: 0.5rem;
71
+        margin-top: 1px;
72
+        @media only screen and (min-width: 768px) {
73
+          margin-top: 3px;
74
+        }
75
+      }
76
+    }
78 77
   }
79 78
   .name {
80 79
     margin-right: 1.3rem;
@@ -90,5 +89,5 @@
90 89
     width: 90%;
91 90
     margin: 0 auto;
92 91
   }
93
-  }
92
+}
94 93
 </style>

+ 9 - 9
src/permission.js View File

@@ -1,20 +1,20 @@
1
-import router from './router'
2
-import store from './store'
1
+import router from "./router";
2
+import store from "./store";
3 3
 
4
-const loginWhiteList = ['/'] // 登录验证白名单
4
+const loginWhiteList = ["/", "/privacy", "/forgetPassword"]; // 登录验证白名单
5 5
 
6 6
 router.beforeEach((to, from, next) => {
7 7
   // 线上注释
8
-//   next()
9
-//   return
8
+  //   next()
9
+  //   return
10 10
 
11 11
   if (store.getters.user.user.id == 0) {
12 12
     if (loginWhiteList.indexOf(to.path) !== -1) {
13
-      next()
13
+      next();
14 14
     } else {
15
-      next({ path: '/'})
15
+      next({ path: "/" });
16 16
     }
17 17
   } else {
18
-    next()
18
+    next();
19 19
   }
20
-})
20
+});

+ 1 - 1
src/router/index.js View File

@@ -77,7 +77,7 @@ export default new Router({
77 77
     },
78 78
     {
79 79
       path: "/privacy",
80
-      name: "privacyPolicy",
80
+      name: "privacy",
81 81
       component: () => import("@/pages/privacy/index")
82 82
     }
83 83
   ]

+ 1 - 0
src/styles/style.scss View File

@@ -922,6 +922,7 @@ body {
922 922
   }
923 923
   @media only screen and (min-width: 415px) and (max-width: 767px) {
924 924
     padding-top: 186px;
925
+    padding-left: 0.3rem;
925 926
   }
926 927
 }
927 928
 #app {