|
@@ -2666,6 +2666,17 @@ export default {
|
2666
|
2666
|
if (response.data.state === 1) {
|
2667
|
2667
|
var addmahcer = response.data.data.addmahcer
|
2668
|
2668
|
console.log('查找的数据', addmahcer)
|
|
2669
|
+ for(let j=0;j<addmahcer.length;j++){
|
|
2670
|
+ if(addmahcer[j].device_type == 1){
|
|
2671
|
+ addmahcer[j].bed_number = addmahcer[j].number
|
|
2672
|
+ }
|
|
2673
|
+ if(addmahcer[j].device_type == 2){
|
|
2674
|
+ addmahcer[j].bed_number = addmahcer[j].bed_number
|
|
2675
|
+ }
|
|
2676
|
+ if(addmahcer[j].device_type == 3){
|
|
2677
|
+ addmahcer[j].bed_number = addmahcer[j].bed_number
|
|
2678
|
+ }
|
|
2679
|
+ }
|
2669
|
2680
|
this.tableDatatwo = addmahcer
|
2670
|
2681
|
this.tabIndex = this.$route.query.index
|
2671
|
2682
|
var id = this.$route.query.id
|
|
@@ -2674,6 +2685,7 @@ export default {
|
2674
|
2685
|
this.$refs.singleTable.setCurrentRow(this.tableDatatwo[i])
|
2675
|
2686
|
break
|
2676
|
2687
|
}
|
|
2688
|
+
|
2677
|
2689
|
}
|
2678
|
2690
|
// this.$refs.singleTable.setCurrentRow(this.tableDatatwo[this.tabIndex])
|
2679
|
2691
|
}
|