Sfoglia il codice sorgente

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

csx 4 anni fa
parent
commit
b882a9fbe7

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

6
 module.exports = {
6
 module.exports = {
7
   NODE_ENV: '"development"',
7
   NODE_ENV: '"development"',
8
   ENV_CONFIG: '"dev"',
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"',
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
   SSO_HOST: '"http://testsso.sgjyun.com"',
11
   SSO_HOST: '"http://testsso.sgjyun.com"',
12
   SRCM_HOST: '"http://test1.sgjyun.com"',
12
   SRCM_HOST: '"http://test1.sgjyun.com"',
13
   XT_HOST: '"http://xt.test.sgjyun.com"',
13
   XT_HOST: '"http://xt.test.sgjyun.com"',

+ 2 - 2
config/index.js Vedi File

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

+ 6 - 4
src/xt_pages/workforce/appointment.vue Vedi File

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

+ 5 - 2
src/xt_pages/workforce/template.vue Vedi File

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