|
@@ -470,11 +470,15 @@ export default {
|
470
|
470
|
item.doctor_advice.sort(this.compare("start_time"));
|
471
|
471
|
});
|
472
|
472
|
console.log("arrTwo", arrTwo);
|
473
|
|
- // var arrthree = [];
|
474
|
|
- // for (let i = 0; i < arrTwo.length; i++) {
|
475
|
|
- // arrthree.push(arrTwo[i].doctor_advice);
|
476
|
|
- // }
|
477
|
|
- schedules = arrTwo;
|
|
473
|
+
|
|
474
|
+ const res = new Map();
|
|
475
|
+ let a = arrTwo.filter(
|
|
476
|
+ a => !res.has(a.dialysis_no) && res.set(a.dialysis_no, 1)
|
|
477
|
+ );
|
|
478
|
+
|
|
479
|
+ console.log("a", a);
|
|
480
|
+
|
|
481
|
+ schedules = a;
|
478
|
482
|
var zoneMap = {};
|
479
|
483
|
var scheduleMap = {};
|
480
|
484
|
for (let index = 0; index < schedules.length; index++) {
|