Sfoglia il codice sorgente

Merge branch 'master' of http://git.shengws.com/csx/Pad_New

XMLWAN 4 anni fa
parent
commit
bf2c93eb39
2 ha cambiato i file con 11 aggiunte e 3 eliminazioni
  1. 2 2
      config/dev.env.js
  2. 9 1
      src/pages/advice/DialysisAdviceTable.vue

+ 2 - 2
config/dev.env.js Vedi File

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

+ 9 - 1
src/pages/advice/DialysisAdviceTable.vue Vedi File

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