|
@@ -3379,7 +3379,7 @@ export default {
|
3379
|
3379
|
var leftAdvice = [];
|
3380
|
3380
|
var rightAdvice = [];
|
3381
|
3381
|
var adlen = advices.length;
|
3382
|
|
-
|
|
3382
|
+ console.log("adlen----------------------",adlen)
|
3383
|
3383
|
var halfLen = adlen % 2 == 0 ? adlen / 2 : (adlen + 1) / 2;
|
3384
|
3384
|
for (var i = 0; i < halfLen; i++) {
|
3385
|
3385
|
leftAdvice.push(advices[i]);
|
|
@@ -3404,8 +3404,8 @@ export default {
|
3404
|
3404
|
this.advices.push(item);
|
3405
|
3405
|
}
|
3406
|
3406
|
this.loading = false;
|
3407
|
|
- this.doctor_advices =
|
3408
|
|
- response.data.data.advices == null ? [] : response.data.data.advices;
|
|
3407
|
+ this.doctor_advices =response.data.data.advices == null ? [] : response.data.data.advices;
|
|
3408
|
+ console.log("zhonguog---------------------------------",this.doctor_advices)
|
3409
|
3409
|
for (let index = 0; index < this.doctor_advices.length; index++) {
|
3410
|
3410
|
this.doctor_advices[index]["isShow"] = 2;
|
3411
|
3411
|
}
|
|
@@ -3505,12 +3505,15 @@ export default {
|
3505
|
3505
|
}
|
3506
|
3506
|
|
3507
|
3507
|
this.totollength = this.doctor_advices.length + this.monitors.length;
|
3508
|
|
- if (this.totollength > 18) {
|
|
3508
|
+ console.log("totalpath-------------------------------",this.totollength)
|
|
3509
|
+ if (this.totollength > 58) {
|
3509
|
3510
|
var temp_advice_length = 17 - this.monitors.length;
|
|
3511
|
+ console.log("temp_advice_length-----------",temp_advice_length)
|
3510
|
3512
|
var doctor_advices_1 = [];
|
3511
|
3513
|
var doctor_advices_2 = [];
|
3512
|
3514
|
for (let index = 0; index < this.doctor_advices.length; index++) {
|
3513
|
3515
|
const element = this.doctor_advices[index];
|
|
3516
|
+
|
3514
|
3517
|
if (temp_advice_length > index) {
|
3515
|
3518
|
doctor_advices_1.push(element);
|
3516
|
3519
|
} else {
|
|
@@ -3520,6 +3523,7 @@ export default {
|
3520
|
3523
|
this.doctor_advices = doctor_advices_1;
|
3521
|
3524
|
this.doctor_advices_2 = doctor_advices_2;
|
3522
|
3525
|
}
|
|
3526
|
+ console.log("doctor_advice----------",this.doctor_advices)
|
3523
|
3527
|
|
3524
|
3528
|
this.patientInfo.name = this.nameSplit(this.patientInfo.name);
|
3525
|
3529
|
} else {
|