zhengchengwu 5 years ago
parent
commit
61018c63a1
3 changed files with 15 additions and 13 deletions
  1. 1 1
      config/dev.env.js
  2. 1 1
      config/prod.env.js
  3. 13 11
      src/pages/main/dialysis/AdviceTable.vue

+ 1 - 1
config/dev.env.js View File

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

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

@@ -1,6 +1,6 @@
1 1
 'use strict'
2 2
 module.exports = {
3 3
   NODE_ENV: '"production"',
4
-  BASE_API: '"http://api.xt.kuyicloud.com"'
4
+  BASE_API: '"http://api.xt.test.sgjyun.com"'
5 5
   // '"http://api.xt.kuyicloud.com"', //'"http://api.xt.kuyicloud.com"','"http://api.xt.test.sgjyun.com"'
6 6
 }

+ 13 - 11
src/pages/main/dialysis/AdviceTable.vue View File

@@ -1351,17 +1351,19 @@ export default {
1351 1351
     this.patient_id = this.$route.query.patient_id;
1352 1352
 
1353 1353
     var date = new Date();
1354
-    var year = date.getFullYear();
1355
-    var month = date.getMonth();
1356
-    var day = date.getDate();
1357
-    if (month < 10) {
1358
-      month = "0" + month;
1359
-    }
1360
-    if (day < 10) {
1361
-      day = "0" + day;
1362
-    }
1363
-    var nowDate = year + "-" + month + "-" + day;
1364
-    this.start_time = new Date(nowDate);
1354
+    date.setMonth(date.getMonth() - 1);
1355
+
1356
+    // var year = date.getFullYear();
1357
+    // var month = date.getMonth();
1358
+    // var day = date.getDate();
1359
+    // if (month < 10) {
1360
+    //   month = "0" + month;
1361
+    // }
1362
+    // if (day < 10) {
1363
+    //   day = "0" + day;
1364
+    // }
1365
+    // var nowDate = year + "-" + month + "-" + day;
1366
+    this.start_time = date;
1365 1367
 
1366 1368
     this.startSearchTimeShow = parseTime(
1367 1369
       this.start_time.getTime(),