XMLWAN 4 vuotta sitten
vanhempi
commit
d70d00cc5e
1 muutettua tiedostoa jossa 8 lisäystä ja 8 poistoa
  1. 8 8
      src/xt_pages/management/home.vue

+ 8 - 8
src/xt_pages/management/home.vue Näytä tiedosto

@@ -2553,7 +2553,7 @@ export default {
2553 2553
             zone.push({ id: item.id, name: item.name })
2554 2554
           }
2555 2555
           var devicenumber = response.data.data.devicenumber
2556
-          console.log('devicenumber', devicenumber)
2556
+          // console.log('devicenumber', devicenumber)
2557 2557
           this.bedZone = zone
2558 2558
 
2559 2559
           var zoness = [{ id: 0, name: '请选择' }]
@@ -2594,8 +2594,8 @@ export default {
2594 2594
           if (response.data.state === 1) {
2595 2595
             var addmahcer = response.data.data.addmahcer
2596 2596
             this.tableDatatwo = addmahcer
2597
-            var index = this.$route.query.index
2598
-            this.$refs.singleTable.setCurrentRow(this.tableDatatwo[index])
2597
+            this.tabIndex = this.$route.query.index
2598
+            this.$refs.singleTable.setCurrentRow(this.tableDatatwo[this.tabIndex])
2599 2599
           }
2600 2600
         })
2601 2601
       },
@@ -2603,7 +2603,7 @@ export default {
2603 2603
         this.tabIndex = index
2604 2604
       },
2605 2605
       handleCurrentChange(val) {
2606
-        console.log('val是什么', val)
2606
+        // console.log('val是什么', val)
2607 2607
         this.currentRow = val
2608 2608
         this.$forceUpdate()
2609 2609
         this.getMachineDetailById(val.id)
@@ -2630,7 +2630,7 @@ export default {
2630 2630
           if (response.data.state === 1) {
2631 2631
             var addmacher = response.data.data.addmacher
2632 2632
             var number = response.data.data.number
2633
-           // console.log('number', number)
2633
+            // console.log('number', number)
2634 2634
             this.Number = number
2635 2635
             if (addmacher.device_type === 1) {
2636 2636
               this.sShow = false
@@ -2733,7 +2733,6 @@ export default {
2733 2733
             this.form.serial_number = addmacher.serial_number
2734 2734
             this.form.devicetype = addmacher.device_type
2735 2735
             this.form.bed_number = addmacher.bed_id
2736
-            console.log('999', this.Number)
2737 2736
             this.form.device_name = addmacher.device_name
2738 2737
             this.form.manufacture_factory = addmacher.manufacture_factory
2739 2738
             this.form.service_manufacturer = addmacher.service_manufacturer
@@ -2868,10 +2867,11 @@ export default {
2868 2867
             if (response.data.state === 1) {
2869 2868
               var addmacher = response.data.data.addmacher
2870 2869
               this.$message.success('修改成功')
2870
+              // this.$router.push({ path: '/device/home?index=' + this.tabIndex })
2871 2871
               this.getAllMachine()
2872 2872
               this.getAllSubregion()
2873 2873
               // this.$refs.singleTable.setCurrentRow(addmacher)
2874
-              this.$forceUpdate()
2874
+              this.$forceUpdate()          
2875 2875
             }
2876 2876
           })
2877 2877
         })
@@ -4036,7 +4036,7 @@ export default {
4036 4036
         PostSearch(key).then(response => {
4037 4037
           if (response.data.state == 1) {
4038 4038
             searchArray = response.data.data.patient
4039
-            // console.log("ser=================",searchArray)
4039
+            // console.log("ser",searchArray)
4040 4040
 
4041 4041
             cb(searchArray)
4042 4042
           }