|
@@ -6,37 +6,39 @@
|
6
|
6
|
<table class="table-box" style="margin-top: 10px;">
|
7
|
7
|
<tbody>
|
8
|
8
|
<tr>
|
9
|
|
- <td width="50">姓 名:</td>
|
10
|
|
- <td width="90">
|
|
9
|
+ <td width="40">姓名:</td>
|
|
10
|
+ <td width="80">
|
11
|
11
|
<div class="under-line"> {{ patientInfo.name }}</div>
|
12
|
12
|
</td>
|
13
|
|
- <td width="20"></td>
|
14
|
|
- <td width="50">性 别:</td>
|
15
|
|
- <td width="100">
|
|
13
|
+ <td width="10"></td>
|
|
14
|
+ <td width="40">性别:</td>
|
|
15
|
+ <td width="80">
|
16
|
16
|
<div>
|
17
|
17
|
<label-box :isChecked="patientInfo_gender_1" showValue="男"></label-box>
|
18
|
18
|
<label-box :isChecked="patientInfo_gender_2" showValue="女"></label-box>
|
19
|
19
|
</div>
|
20
|
20
|
</td>
|
21
|
21
|
|
22
|
|
- <td width="50">年 龄:</td>
|
|
22
|
+ <td width="40">年龄:</td>
|
23
|
23
|
<td width="40">
|
24
|
24
|
<div class="under-line">{{ getAge(patientInfo) }}</div>
|
25
|
25
|
</td>
|
26
|
26
|
<td>岁</td>
|
27
|
27
|
<td width="10"></td>
|
28
|
|
-
|
|
28
|
+ <td width="60">病例号:</td>
|
|
29
|
+ <td width="50">
|
|
30
|
+ <div class="under-line">{{ patientInfo.dialysis_no }}</div>
|
|
31
|
+ </td>
|
|
32
|
+ <td width="10"></td>
|
29
|
33
|
<td width="70">透析机号:</td>
|
30
|
34
|
<td width="100">
|
31
|
35
|
<div class="under-line">{{ getNumber() }}</div>
|
32
|
36
|
</td>
|
33
|
|
- <td width="30"></td>
|
34
|
37
|
<td>
|
35
|
38
|
日期:<div class="under_line" style="width:50px;display: inline-block;text-align:center;">{{ queryParams.xtdate.slice(0,4) }}</div>年
|
36
|
39
|
<div class="under_line" style="width:50px;display: inline-block;text-align:center;">{{ queryParams.xtdate.slice(5,7) }}</div>月
|
37
|
40
|
<div class="under_line" style="width:50px;display: inline-block;text-align:center;">{{ queryParams.xtdate.slice(8,11) }}</div>日
|
38
|
41
|
</td>
|
39
|
|
- <td width='10'></td>
|
40
|
42
|
</tr>
|
41
|
43
|
</tbody>
|
42
|
44
|
</table>
|
|
@@ -161,9 +163,9 @@
|
161
|
163
|
<td width='100'>动脉穿刺方向:</td>
|
162
|
164
|
<td width="120">
|
163
|
165
|
<div>
|
164
|
|
- <label-box :isChecked="predialysis.puncture_way.indexOf('顺穿') > -1 ? true : false" showValue="顺穿"></label-box>
|
|
166
|
+ <label-box :isChecked="predialysis.puncture_way ? predialysis.puncture_way.indexOf('顺穿') > -1 ? true : false : false" showValue="顺穿"></label-box>
|
165
|
167
|
|
166
|
|
- <label-box :isChecked="predialysis.puncture_way.indexOf('反穿') > -1 ? true : false" showValue="反穿"></label-box>
|
|
168
|
+ <label-box :isChecked="predialysis.puncture_way ? predialysis.puncture_way.indexOf('反穿') > -1 ? true : false : false" showValue="反穿"></label-box>
|
167
|
169
|
|
168
|
170
|
</div>
|
169
|
171
|
</td>
|
|
@@ -174,7 +176,35 @@
|
174
|
176
|
<table class="table-box">
|
175
|
177
|
<tbody>
|
176
|
178
|
<tr>
|
177
|
|
- <td width="80"></td>
|
|
179
|
+ <td width="80"><span style="font-weight:bold;">内瘘震颤</span></td>
|
|
180
|
+ <td width="160">
|
|
181
|
+ <div>
|
|
182
|
+ <label-box :isChecked="predialysis.internal_fistula.indexOf('震颤-存在') > -1 ? true : false" showValue="存在"></label-box>
|
|
183
|
+
|
|
184
|
+ <label-box :isChecked="predialysis.internal_fistula.indexOf('震颤-减弱') > -1 ? true : false" showValue="减弱"></label-box>
|
|
185
|
+
|
|
186
|
+ <label-box :isChecked="predialysis.internal_fistula.indexOf('震颤-无') > -1 ? true : false" showValue="无"></label-box>
|
|
187
|
+ </div>
|
|
188
|
+ </td>
|
|
189
|
+ <td width='30'></td>
|
|
190
|
+ <td width='100'>穿刺针型号:</td>
|
|
191
|
+ <td>
|
|
192
|
+ <div class="under-line" style="text-align:left;">{{ predialysis.puncture_needle ? predialysis.puncture_needle : '/' }}</div>
|
|
193
|
+ <!-- <div>
|
|
194
|
+ <label-box :isChecked="predialysis.puncture_needle && predialysis.puncture_needle.indexOf('16G') > -1 ? true : predialysis.puncture_needle && predialysis.puncture_needle.indexOf('16G-静脉') > -1 ? true : false" showValue="16G"></label-box>
|
|
195
|
+
|
|
196
|
+ <label-box :isChecked="predialysis.puncture_needle && predialysis.puncture_needle.indexOf('17G') > -1 ? true : predialysis.puncture_needle && predialysis.puncture_needle.indexOf('17G-静脉') > -1 ? true : false" showValue="17G"></label-box>
|
|
197
|
+
|
|
198
|
+ </div> -->
|
|
199
|
+ </td>
|
|
200
|
+ <td></td>
|
|
201
|
+ </tr>
|
|
202
|
+ </tbody>
|
|
203
|
+ </table>
|
|
204
|
+ <table class="table-box">
|
|
205
|
+ <tbody>
|
|
206
|
+ <tr>
|
|
207
|
+ <td width="10"></td>
|
178
|
208
|
<td width="85">
|
179
|
209
|
<div>
|
180
|
210
|
<label-box :isChecked="predialysis.blood_access_part_opera_name.indexOf('静脉置管-临时') > -1 ? true : predialysis.blood_access_part_opera_name.indexOf('静脉置管-长期') > -1 ? true : false" showValue="静脉置管"></label-box>
|
|
@@ -222,18 +252,6 @@
|
222
|
252
|
<table class="table-box">
|
223
|
253
|
<tbody>
|
224
|
254
|
<tr>
|
225
|
|
- <td width="80"></td>
|
226
|
|
- <td width="70">内瘘震颤:</td>
|
227
|
|
- <td width="160">
|
228
|
|
- <div>
|
229
|
|
- <label-box :isChecked="predialysis.internal_fistula.indexOf('震颤-存在') > -1 ? true : false" showValue="存在"></label-box>
|
230
|
|
-
|
231
|
|
- <label-box :isChecked="predialysis.internal_fistula.indexOf('震颤-减弱') > -1 ? true : false" showValue="减弱"></label-box>
|
232
|
|
-
|
233
|
|
- <label-box :isChecked="predialysis.internal_fistula.indexOf('震颤-无') > -1 ? true : false" showValue="无"></label-box>
|
234
|
|
- </div>
|
235
|
|
- </td>
|
236
|
|
- <td width='30'></td>
|
237
|
255
|
<td width='50'>导管:</td>
|
238
|
256
|
<td width='60'>管腔外露</td>
|
239
|
257
|
<td width="60">
|
|
@@ -263,34 +281,6 @@
|
263
|
281
|
</tr>
|
264
|
282
|
</tbody>
|
265
|
283
|
</table>
|
266
|
|
- <table class="table-box">
|
267
|
|
- <tbody>
|
268
|
|
- <tr>
|
269
|
|
- <!-- <td width="190"></td> -->
|
270
|
|
- <td width='100'>穿刺针型号:</td>
|
271
|
|
- <td>
|
272
|
|
- <div class="under-line" style="text-align:left;">{{ predialysis.puncture_needle ? predialysis.puncture_needle : '/' }}</div>
|
273
|
|
- <!-- <div>
|
274
|
|
- <label-box :isChecked="predialysis.puncture_needle && predialysis.puncture_needle.indexOf('16G') > -1 ? true : predialysis.puncture_needle && predialysis.puncture_needle.indexOf('16G-静脉') > -1 ? true : false" showValue="16G"></label-box>
|
275
|
|
-
|
276
|
|
- <label-box :isChecked="predialysis.puncture_needle && predialysis.puncture_needle.indexOf('17G') > -1 ? true : predialysis.puncture_needle && predialysis.puncture_needle.indexOf('17G-静脉') > -1 ? true : false" showValue="17G"></label-box>
|
277
|
|
-
|
278
|
|
- </div> -->
|
279
|
|
- </td>
|
280
|
|
- <!-- <td width='80'>钝针穿刺:</td>
|
281
|
|
- <td width="140">
|
282
|
|
- <div>
|
283
|
|
- <label-box :isChecked="predialysis.puncture_needle && predialysis.puncture_needle.indexOf('16G-动脉') > -1 ? true : predialysis.puncture_needle && predialysis.puncture_needle.indexOf('17G-动脉') > -1 ? true : false" showValue="动脉"></label-box>
|
284
|
|
-
|
285
|
|
- <label-box :isChecked="predialysis.puncture_needle && predialysis.puncture_needle.indexOf('16G-静脉') > -1 ? true : predialysis.puncture_needle && predialysis.puncture_needle.indexOf('17G-静脉') > -1 ? true : false" showValue="静脉"></label-box>
|
286
|
|
- )
|
287
|
|
- </div>
|
288
|
|
- </td> -->
|
289
|
|
- <td></td>
|
290
|
|
- </tr>
|
291
|
|
- </tbody>
|
292
|
|
- </table>
|
293
|
|
-
|
294
|
284
|
<table class="table-box">
|
295
|
285
|
<tbody>
|
296
|
286
|
<tr>
|
|
@@ -560,7 +550,7 @@
|
560
|
550
|
<tr>
|
561
|
551
|
<td width="70" style="height:40px;">主管医生:</td>
|
562
|
552
|
<td width="100">
|
563
|
|
- <div style="text-align: left;">
|
|
553
|
+ <div style="text-align: left;display: flex;align-items: center;">
|
564
|
554
|
<span v-if="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:'')) == ''"> {{ getAdminUser(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:'')) }} </span>
|
565
|
555
|
<img class="es-img" style="height:38px;" :src="setAdminUserES(prescription==null?0:(prescription.prescription_doctor?prescription.prescription_doctor:''))" alt="" srcset="" v-else />
|
566
|
556
|
</div>
|
|
@@ -568,7 +558,7 @@
|
568
|
558
|
<td width="70">预冲护士:</td>
|
569
|
559
|
<td width="100">
|
570
|
560
|
|
571
|
|
- <div style="text-align: left;">
|
|
561
|
+ <div style="text-align: left;display: flex;align-items: center;">
|
572
|
562
|
<span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.washpipe_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.washpipe_nurse)}}</span>
|
573
|
563
|
<img class="es-img" style="height:38px" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.washpipe_nurse)" alt="" srcset="" v-else>
|
574
|
564
|
</div>
|
|
@@ -576,7 +566,7 @@
|
576
|
566
|
<td width="100">穿刺/开管护士:</td>
|
577
|
567
|
<td width="100">
|
578
|
568
|
|
579
|
|
- <div style="text-align: left;">
|
|
569
|
+ <div style="text-align: left;display: flex;align-items: center;">
|
580
|
570
|
<span v-if="setAdminUserES(dialysisOrder==null?0:dialysisOrder.puncture_nurse) == ''">{{getAdminUser(dialysisOrder==null?0:dialysisOrder.puncture_nurse)}}</span>
|
581
|
571
|
<img class="es-img" style="height:38px" :src="setAdminUserES(dialysisOrder==null?0:dialysisOrder.puncture_nurse)" alt="" srcset="" v-else>
|
582
|
572
|
</div>
|
|
@@ -584,7 +574,7 @@
|
584
|
574
|
<td width="70">核对护士:</td>
|
585
|
575
|
<td width="100">
|
586
|
576
|
|
587
|
|
- <div style="text-align: left;">
|
|
577
|
+ <div style="text-align: left;display: flex;align-items: center;">
|
588
|
578
|
<span v-if="setAdminUserES(check == null ? 0 : check.modifier) == ''">
|
589
|
579
|
{{ getAdminUser(check == null ? 0 : check.modifier) }}
|
590
|
580
|
</span>
|
|
@@ -672,7 +662,7 @@
|
672
|
662
|
{{ monitor.blood_sugar ? monitor.blood_sugar : "" }}
|
673
|
663
|
</td>
|
674
|
664
|
<td style="text-align:left;padding-left:5px;">
|
675
|
|
- <span>
|
|
665
|
+ <span style="display:flex;align-items:center;">
|
676
|
666
|
<span v-if="setAdminUserES(monitor.monitoring_nurse) == ''">{{ getAdminUser(monitor.monitoring_nurse) }}</span>
|
677
|
667
|
<img class="es-img" style="height:38px" :src="setAdminUserES(monitor.monitoring_nurse)" alt srcset v-else />
|
678
|
668
|
</span>
|
|
@@ -724,7 +714,7 @@
|
724
|
714
|
<td width="50">kt/v:</td>
|
725
|
715
|
<td width='120'>
|
726
|
716
|
<div class="under-line">
|
727
|
|
-
|
|
717
|
+ {{ monitorsKtv ? monitorsKtv : '' }}
|
728
|
718
|
</div>
|
729
|
719
|
</td>
|
730
|
720
|
<td></td>
|
|
@@ -822,10 +812,10 @@
|
822
|
812
|
<label-box :isChecked="afterdialysis.sealing_fluid_dispose.indexOf('常规(肝素/NS)')>-1?true:false" showValue="常规(肝素/NS)"></label-box>
|
823
|
813
|
</td>
|
824
|
814
|
<td width="50">
|
825
|
|
- <label-box :isChecked="afterdialysis.sealing_fluid_dispose.indexOf('1:1')>-1?true:false" showValue="1:1"></label-box>
|
|
815
|
+ <label-box :isChecked="afterdialysis.sealing_fluid_dispose.indexOf('1:1')>-1?true:afterdialysis.sealing_fluid_dispose.indexOf('1:1')>-1?true:false" showValue="1:1"></label-box>
|
826
|
816
|
</td>
|
827
|
817
|
<td width="50">
|
828
|
|
- <label-box :isChecked="afterdialysis.sealing_fluid_dispose.indexOf('1:3')>-1?true:false" showValue="1:3"></label-box>
|
|
818
|
+ <label-box :isChecked="afterdialysis.sealing_fluid_dispose.indexOf('1:3')>-1?true:afterdialysis.sealing_fluid_dispose.indexOf('1:3')>-1?true:false" showValue="1:3"></label-box>
|
829
|
819
|
</td>
|
830
|
820
|
<td width="190">
|
831
|
821
|
<label-box :isChecked="afterdialysis.sealing_fluid_dispose.indexOf('特殊(尿激酶/肝素/NS)')>-1?true:false" showValue="特殊(尿激酶/肝素/NS)"></label-box>
|
|
@@ -922,6 +912,10 @@
|
922
|
912
|
<td width="90" style="height:40px;">当班责任护士:</td>
|
923
|
913
|
<td width="100">
|
924
|
914
|
<div>
|
|
915
|
+ <span v-if="setAdminUserES(check == null ? 0 : check.modifier) == ''">
|
|
916
|
+ {{ getAdminUser(check == null ? 0 : check.modifier) }}
|
|
917
|
+ </span>
|
|
918
|
+ <img style="height:30px;" :src="setAdminUserES(check == null ? 0 : check.modifier)" alt srcset v-else />
|
925
|
919
|
</div>
|
926
|
920
|
</td>
|
927
|
921
|
<td width="150"></td>
|
|
@@ -953,40 +947,35 @@
|
953
|
947
|
<td width='80'>护士签名</td>
|
954
|
948
|
</tr>
|
955
|
949
|
<tr v-for="(advice, advice_index) in tableAdvice" :key="advice_index" >
|
956
|
|
- <td style="height:40px;line-height:40px">{{ getTime(advice.start_time, "{h}:{i}") }}</td>
|
|
950
|
+ <td style="height:40px;line-height:40px;padding:0 1px !important;">{{ getTime(advice.start_time, "{h}:{i}") }}</td>
|
957
|
951
|
<td class="parent" style="text-align:left;padding-left:10px;">
|
958
|
952
|
<div style="display:flex;height:100%;">
|
959
|
|
- <span style="width:70%;display:inline-block;">
|
960
|
|
- <span v-if="advice.parent_id > 0">/</span>
|
|
953
|
+ <span style="width:65%;display:inline-block;">
|
|
954
|
+ <span v-if="advice.parent_id > 0">---></span>
|
961
|
955
|
<span>{{ advice.advice_name }}</span>
|
962
|
956
|
<span v-if="advice && advice.advice_desc">({{ advice.advice_desc }}{{ advice.drug_spec_unit }})</span>
|
963
|
957
|
<span v-if="advice.prescribing_number"> {{ advice.prescribing_number }}{{ advice.prescribing_number_unit }}</span>
|
964
|
958
|
<span v-if="advice.single_dose != 0">{{ advice.single_dose }}{{ advice.single_dose_unit }}</span>
|
965
|
|
-
|
966
|
959
|
<span v-if="advice.parent_id == 0">{{ advice.execution_frequency }}</span>
|
967
|
960
|
<span v-if="advice.parent_id == 0 && advice.remark.length > 0">({{ advice.remark }})</span>
|
968
|
961
|
</span>
|
969
|
|
- <span v-if="advice.parent_id == 0" style="display: flex;align-items: baseline;"><span v-if="advice.delivery_way != ''" style="transform:rotate(30deg);border-left:1px solid #000;display:inline-block;height:100%;"></span>{{ advice.delivery_way }}</span>
|
|
962
|
+ <span style="display: flex;align-items: baseline;">
|
|
963
|
+ {{ advice.delivery_way }}
|
|
964
|
+ </span>
|
970
|
965
|
</div>
|
971
|
966
|
</td>
|
972
|
967
|
<td>
|
973
|
|
- <span v-if="setAdminUserES(advice.advice_doctor) == ''">
|
|
968
|
+ <span>
|
974
|
969
|
{{ getAdminUser(advice.advice_doctor) }}
|
975
|
970
|
</span>
|
976
|
|
- <span v-else style="display:flex;align-items:center;justify-content:space-around;height:36px;">
|
977
|
|
- <img style="height:38px;" :src="setAdminUserES(advice.advice_doctor)" alt srcset />
|
978
|
|
- </span>
|
979
|
971
|
</td>
|
980
|
972
|
|
981
|
973
|
|
982
|
974
|
<td>{{ getTime(advice.execution_time, "{y}-{m}-{d} {h}:{i}") }}</td>
|
983
|
975
|
<td>
|
984
|
|
- <span v-if="setAdminUserES(advice.execution_staff) == ''">
|
|
976
|
+ <span>
|
985
|
977
|
{{ getAdminUser(advice.execution_staff) }}
|
986
|
978
|
</span>
|
987
|
|
- <span v-else style="display:flex;align-items:center;justify-content:space-around;height:36px;">
|
988
|
|
- <img style="height:38px;" :src="setAdminUserES(advice.execution_staff)" alt srcset />
|
989
|
|
- </span>
|
990
|
979
|
</td>
|
991
|
980
|
</tr>
|
992
|
981
|
<tr v-for="(advice, advice_index) in projects" :key="advice_index + 'no'">
|
|
@@ -999,8 +988,8 @@
|
999
|
988
|
<span v-if="setAdminUserES(advice.doctor) == ''">
|
1000
|
989
|
{{ getAdminUser(advice.doctor) }}
|
1001
|
990
|
</span>
|
1002
|
|
- <span v-else style="display:flex;align-items:center;justify-content:space-around;height:36px;">
|
1003
|
|
- <img style="height:38px;" :src="setAdminUserES(advice.doctor)" alt srcset />
|
|
991
|
+ <span v-else style="display:flex;align-items:center;justify-content:space-between;height:36px;padding-left:5px;">
|
|
992
|
+ <img style="height:20px;" :src="setAdminUserES(advice.doctor)" alt srcset />
|
1004
|
993
|
</span>
|
1005
|
994
|
</td>
|
1006
|
995
|
|
|
@@ -1010,8 +999,8 @@
|
1010
|
999
|
<span v-if="setAdminUserES(advice.execution_staff) == ''">
|
1011
|
1000
|
{{ getAdminUser(advice.execution_staff) }}
|
1012
|
1001
|
</span>
|
1013
|
|
- <span v-else style="display:flex;align-items:center;justify-content:space-around;height:36px;">
|
1014
|
|
- <img style="height:38px;" :src="setAdminUserES(advice.execution_staff)" alt srcset />
|
|
1002
|
+ <span v-else style="display:flex;align-items:center;justify-content:space-between;height:36px;padding-left:5px;">
|
|
1003
|
+ <img style="height:20px;" :src="setAdminUserES(advice.execution_staff)" alt srcset />
|
1015
|
1004
|
</span>
|
1016
|
1005
|
</td>
|
1017
|
1006
|
</tr>
|
|
@@ -1143,12 +1132,14 @@ export default {
|
1143
|
1132
|
},
|
1144
|
1133
|
org_id:0,
|
1145
|
1134
|
tableAdvice:[],
|
1146
|
|
- projects:[]
|
|
1135
|
+ projects:[],
|
|
1136
|
+ monitorsKtv:0
|
1147
|
1137
|
}
|
1148
|
1138
|
},
|
1149
|
1139
|
methods: {
|
1150
|
1140
|
getBloodFlow(id){
|
1151
|
1141
|
let BloodFlowOptions = getDataConfig('hemodialysis', 'blood_flow')
|
|
1142
|
+ console.log('BloodFlowOptions',BloodFlowOptions)
|
1152
|
1143
|
if (id in BloodFlowOptions) {
|
1153
|
1144
|
return BloodFlowOptions[id].name
|
1154
|
1145
|
}
|
|
@@ -1415,8 +1406,9 @@ export default {
|
1415
|
1406
|
// this.advices = response.data.data.advices
|
1416
|
1407
|
|
1417
|
1408
|
this.advices = response.data.data.advices.concat(response.data.data.doctorAdvice)
|
1418
|
|
-
|
1419
|
|
- this.monitors = response.data.data.monitors
|
|
1409
|
+ let monitors = response.data.data.monitors
|
|
1410
|
+ this.monitors = JSON.parse(JSON.stringify(response.data.data.monitors))
|
|
1411
|
+ this.monitorsKtv = monitors.length > 0 ? monitors[monitors.length - 1].ktv : ''
|
1420
|
1412
|
this.summary = response.data.data.summary
|
1421
|
1413
|
this.org_template_info = response.data.data.org_template_info
|
1422
|
1414
|
// 配置超滤量和置换量是否要显示0还是空
|
|
@@ -1432,9 +1424,10 @@ export default {
|
1432
|
1424
|
this.jilurow = this.monitors.length + 1
|
1433
|
1425
|
this.projects = response.data.data.projects
|
1434
|
1426
|
var doctorAdevieInfo = response.data.data.advices
|
|
1427
|
+ console.log('doctorAdevieInfo',doctorAdevieInfo)
|
1435
|
1428
|
var tableAdvice = doctorAdevieInfo
|
1436
|
|
- if (tableAdvice.length + this.projects.length < 30) {
|
1437
|
|
- var nl = 30 - (tableAdvice.length + this.projects.length)
|
|
1429
|
+ if (tableAdvice.length + this.projects.length < 28) {
|
|
1430
|
+ var nl = 28 - (tableAdvice.length + this.projects.length)
|
1438
|
1431
|
for (let index = 0; index < nl; index++) {
|
1439
|
1432
|
this.projects.push([])
|
1440
|
1433
|
}
|
|
@@ -1443,60 +1436,60 @@ export default {
|
1443
|
1436
|
|
1444
|
1437
|
|
1445
|
1438
|
|
1446
|
|
- this.advice_jilurow = this.advices.length + 1
|
1447
|
|
-
|
1448
|
|
- var childMap = {}
|
1449
|
|
- for (const index in this.advices) {
|
1450
|
|
- if (this.advices[index].parent_id == 0) {
|
1451
|
|
- continue
|
1452
|
|
- }
|
1453
|
|
- if (!(this.advices[index].parent_id in childMap)) {
|
1454
|
|
- childMap[this.advices[index].parent_id] = []
|
1455
|
|
- }
|
1456
|
|
- childMap[this.advices[index].parent_id].push(this.advices[index])
|
1457
|
|
- }
|
1458
|
|
-
|
1459
|
|
- var advices = []
|
1460
|
|
- for (const index in this.advices) {
|
1461
|
|
- if (this.advices[index].parent_id > 0) {
|
1462
|
|
- continue
|
1463
|
|
- }
|
1464
|
|
- var item = this.advices[index]
|
1465
|
|
- if (item.id in childMap) {
|
1466
|
|
- item.children = childMap[item.id]
|
1467
|
|
- } else {
|
1468
|
|
- item.children = []
|
1469
|
|
- }
|
1470
|
|
- advices.push(item)
|
1471
|
|
- }
|
1472
|
|
-
|
1473
|
|
- var leftAdvice = []
|
1474
|
|
- var rightAdvice = []
|
1475
|
|
- var adlen = advices.length
|
1476
|
|
-
|
1477
|
|
- var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
|
1478
|
|
- for (var i = 0; i < halfLen; i++) {
|
1479
|
|
- leftAdvice.push(advices[i])
|
1480
|
|
- rightAdvice.push(advices[i + halfLen])
|
1481
|
|
- }
|
1482
|
|
- if (halfLen < 5) {
|
1483
|
|
- var nl = 5 - leftAdvice.length
|
1484
|
|
- for (let index = 0; index < nl; index++) {
|
1485
|
|
- leftAdvice.push([])
|
1486
|
|
- }
|
1487
|
|
- var nl = 5 - rightAdvice.length
|
1488
|
|
- for (let index = 0; index < nl; index++) {
|
1489
|
|
- rightAdvice.push([])
|
1490
|
|
- }
|
1491
|
|
- }
|
1492
|
|
-
|
1493
|
|
- this.advices = []
|
1494
|
|
- for (var i = 0; i < halfLen; i++) {
|
1495
|
|
- var item = []
|
1496
|
|
- item.push(leftAdvice[i])
|
1497
|
|
- item.push(rightAdvice[i])
|
1498
|
|
- this.advices.push(item)
|
1499
|
|
- }
|
|
1439
|
+ // this.advice_jilurow = this.advices.length + 1
|
|
1440
|
+
|
|
1441
|
+ // var childMap = {}
|
|
1442
|
+ // for (const index in this.advices) {
|
|
1443
|
+ // if (this.advices[index].parent_id == 0) {
|
|
1444
|
+ // continue
|
|
1445
|
+ // }
|
|
1446
|
+ // if (!(this.advices[index].parent_id in childMap)) {
|
|
1447
|
+ // childMap[this.advices[index].parent_id] = []
|
|
1448
|
+ // }
|
|
1449
|
+ // childMap[this.advices[index].parent_id].push(this.advices[index])
|
|
1450
|
+ // }
|
|
1451
|
+
|
|
1452
|
+ // var advices = []
|
|
1453
|
+ // for (const index in this.advices) {
|
|
1454
|
+ // if (this.advices[index].parent_id > 0) {
|
|
1455
|
+ // continue
|
|
1456
|
+ // }
|
|
1457
|
+ // var item = this.advices[index]
|
|
1458
|
+ // if (item.id in childMap) {
|
|
1459
|
+ // item.children = childMap[item.id]
|
|
1460
|
+ // } else {
|
|
1461
|
+ // item.children = []
|
|
1462
|
+ // }
|
|
1463
|
+ // advices.push(item)
|
|
1464
|
+ // }
|
|
1465
|
+
|
|
1466
|
+ // var leftAdvice = []
|
|
1467
|
+ // var rightAdvice = []
|
|
1468
|
+ // var adlen = advices.length
|
|
1469
|
+
|
|
1470
|
+ // var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2
|
|
1471
|
+ // for (var i = 0; i < halfLen; i++) {
|
|
1472
|
+ // leftAdvice.push(advices[i])
|
|
1473
|
+ // rightAdvice.push(advices[i + halfLen])
|
|
1474
|
+ // }
|
|
1475
|
+ // if (halfLen < 5) {
|
|
1476
|
+ // var nl = 5 - leftAdvice.length
|
|
1477
|
+ // for (let index = 0; index < nl; index++) {
|
|
1478
|
+ // leftAdvice.push([])
|
|
1479
|
+ // }
|
|
1480
|
+ // var nl = 5 - rightAdvice.length
|
|
1481
|
+ // for (let index = 0; index < nl; index++) {
|
|
1482
|
+ // rightAdvice.push([])
|
|
1483
|
+ // }
|
|
1484
|
+ // }
|
|
1485
|
+
|
|
1486
|
+ // this.advices = []
|
|
1487
|
+ // for (var i = 0; i < halfLen; i++) {
|
|
1488
|
+ // var item = []
|
|
1489
|
+ // item.push(leftAdvice[i])
|
|
1490
|
+ // item.push(rightAdvice[i])
|
|
1491
|
+ // this.advices.push(item)
|
|
1492
|
+ // }
|
1500
|
1493
|
this.loading = false
|
1501
|
1494
|
|
1502
|
1495
|
this.doctor_advices =
|