1
1
import { Vue , Prop , Component } from 'vue-property-decorator'
2
2
import axios from 'axios'
3
-
3
+ import TenantSelectDialog from '@/components/tenant-select-dialog/tenant-select-dialog.vue' ;
4
+ import TenantSelectDialogComponent from "@/components/tenant-select-dialog/tenant-select-dialog.component" ;
4
5
@Component ( {
5
- name : 'platform-detail'
6
+ name : 'platform-detail' ,
7
+ components : { TenantSelectDialog }
6
8
} )
7
9
export default class PlatformDetailComponent extends Vue {
8
- @Prop ( )
10
+ winTenantSelect : TenantSelectDialogComponent ;
11
+ @Prop ( )
9
12
detailInfo : any ;
10
13
@Prop ( )
11
14
statusProp : any ;
@@ -22,9 +25,18 @@ export default class PlatformDetailComponent extends Vue {
22
25
accountDetails : any [ ] = [ ] ;
23
26
accountSearch : String = "" ;
24
27
multiplFalse : boolean = false ;
25
- baseUrl = axios . defaults . baseURL ;
26
- headers = { 'X-Access-Token' :axios . defaults . headers . common [ 'X-Access-Token' ] ,
27
- 'X-Operation-Token' :axios . defaults . headers . common [ 'X-Operation-Token' ] , } ;
28
+ baseUrl = axios . defaults . baseURL ;
29
+ headers = {
30
+ 'X-Access-Token' : axios . defaults . headers . common [ 'X-Access-Token' ] ,
31
+ 'X-Operation-Token' : axios . defaults . headers . common [ 'X-Operation-Token' ] ,
32
+ } ;
33
+
34
+ mounted ( ) {
35
+
36
+ console . log ( "111refs2" ) ;
37
+ console . log ( this . $refs ) ;
38
+ console . log ( this . $refs [ "tenantSelectDialog" ] ) ;
39
+ }
28
40
getDetail ( ) {
29
41
}
30
42
formatDate ( item ) {
@@ -48,51 +60,48 @@ export default class PlatformDetailComponent extends Vue {
48
60
console . log ( 'out' ) ;
49
61
}
50
62
addGroup ( ) {
51
- this . tenantModalShow = true ;
63
+ if ( ! this . winTenantSelect ) {
64
+ let dialog : any = this . $refs [ "tenantSelectDialog" ] ;
65
+ this . winTenantSelect = dialog ;
66
+ }
67
+ console . log ( this . $refs [ "tenantSelectDialog" ] ) ;
68
+ this . winTenantSelect . show ( ) ;
52
69
}
53
70
addServicePackage ( ) {
54
71
this . servicePackageModalShow = true ;
55
72
}
56
73
delTenant ( id ) {
57
-
74
+
58
75
}
59
76
delPackage ( id ) {
60
-
77
+
61
78
}
62
79
searchAccount ( ) {
63
-
80
+
64
81
}
65
- uploadSuccess ( )
66
- {
82
+ uploadSuccess ( ) {
67
83
68
84
}
69
- uploadError ( )
70
- {
85
+ uploadError ( ) {
71
86
72
87
}
73
- closeTenantModal ( )
74
- {
88
+ closeTenantModal ( ) {
75
89
76
90
}
77
- querySearchAsync ( )
78
- {
91
+ querySearchAsync ( ) {
79
92
80
93
}
81
- handleSelect ( )
82
- {
94
+ handleSelect ( ) {
83
95
84
96
}
85
- closeServicePackageModal ( )
86
- {
97
+ closeServicePackageModal ( ) {
87
98
88
99
}
89
- querySearchAsync2 ( )
90
- {
100
+ querySearchAsync2 ( ) {
91
101
92
102
}
93
- handleSelect2 ( )
94
- {
95
-
103
+ handleSelect2 ( ) {
104
+
96
105
}
97
106
}
98
107
0 commit comments