Преглед на файлове

Merge branch 'vue_statistics_branch' of http://git.shengws.com/csx/Vue_New into vue_statistics_branch

XMLWAN преди 4 години
родител
ревизия
174ac7b483
променени са 4 файла, в които са добавени 15 реда и са изтрити 11 реда
  1. 2 3
      config/dev.env.js
  2. 2 2
      config/index.js
  3. 6 4
      src/xt_pages/workforce/appointment.vue
  4. 5 2
      src/xt_pages/workforce/template.vue

+ 2 - 3
config/dev.env.js Целия файл

@@ -6,9 +6,8 @@
6 6
 module.exports = {
7 7
   NODE_ENV: '"development"',
8 8
   ENV_CONFIG: '"dev"',
9
-  //BASE_API: '"http://new_mobile.xt.api.sgjyun.com"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
10
-  // BASE_API:'"http://localhost:9531"',
11
-  BASE_API:"'http://api.xt.test.sgjyun.com'",
9
+  // BASE_API: '"http://new_mobile.xt.api.sgjyun.com"', // //http://api.xt.test.sgjyun.com http://112.74.16.180:9527,////'"http://localhost:9529"',
10
+  BASE_API:'"http://localhost:9531"',
12 11
   SSO_HOST: '"http://testsso.sgjyun.com"',
13 12
   SRCM_HOST: '"http://test1.sgjyun.com"',
14 13
   XT_HOST: '"http://xt.test.sgjyun.com"',

+ 2 - 2
config/index.js Целия файл

@@ -19,8 +19,8 @@ module.exports = {
19 19
 
20 20
     // host: 'xt.test.sgjyun.com',
21 21
     // host: 'xt.kuyicloud.com',
22
-    host: 'xt.test.sgjyun.com',
23
-    // host:'localhost',
22
+    // host: 'xt.test.sgjyun.com',
23
+    host:'localhost',
24 24
     port: 9528, // can be overwritten by process.env.PORT, if port is in use, a free one will be determined
25 25
     autoOpenBrowser: true,
26 26
     errorOverlay: true,

+ 6 - 4
src/xt_pages/workforce/appointment.vue Целия файл

@@ -635,10 +635,10 @@
635 635
         let deviceNumber = []
636 636
 
637 637
         for (let i = 0; i < results.length; i++) {
638
-          if (results[i + 1] && results[i + 1]['区号'] != undefined) {
638
+          if (results[i + 1]) {
639 639
             zones.push(results[i + 1]['区号'])
640 640
           }
641
-          if (results[i + 1] && results[i + 1]['机号'] != undefined) {
641
+          if (results[i + 1]) {
642 642
             deviceNumber.push(results[i + 1]['机号'])
643 643
           }
644 644
 
@@ -656,6 +656,8 @@
656 656
           return cur
657 657
         }, []) // 设置cur默认类型为数组,并且初始值为空的数组
658 658
 
659
+
660
+
659 661
         var total_zones = []
660 662
         var total_device_number = []
661 663
 
@@ -678,11 +680,11 @@
678 680
           }
679 681
         }
680 682
 
681
-        console.log(deviceNumber)
682
-        console.log(total_device_number)
683
+
683 684
 
684 685
         for (let i = 0; i < deviceNumber.length; i++) {
685 686
           if (!total_device_number.includes(deviceNumber[i])) {
687
+            console.log(deviceNumber[i])
686 688
             is_device_number = false
687 689
           }
688 690
         }

+ 5 - 2
src/xt_pages/workforce/template.vue Целия файл

@@ -532,10 +532,10 @@
532 532
         let deviceNumber = []
533 533
 
534 534
         for (let i = 0; i < results.length; i++) {
535
-          if (results[i + 1] && results[i + 1]['区号'] != undefined) {
535
+          if (results[i + 1] ) {
536 536
             zones.push(results[i + 1]['区号'])
537 537
           }
538
-          if (results[i + 1] && results[i + 1]['机号'] != undefined) {
538
+          if (results[i + 1] ) {
539 539
             deviceNumber.push(results[i + 1]['机号'])
540 540
           }
541 541
 
@@ -552,6 +552,9 @@
552 552
           obj2[next] ? '' : obj2[next] = true && cur.push(next)
553 553
           return cur
554 554
         }, []) // 设置cur默认类型为数组,并且初始值为空的数组
555
+        console.log("1111111111")
556
+        console.log(deviceNumber)
557
+        console.log("1111111111")
555 558
 
556 559
         var total_zones = []
557 560
         var total_device_number = []