1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
| /**
| 权限组
| **/
| (function(vc){
|
| vc.extends({
| data:{
| addVisitCase:{
| visitCase:""
| }
| },
| watch:{
| addVisitCase:{
| deep: true,
| handler:function(){
| vc.emit('addVisitSpace', 'visitCase', vc.component.addVisitCase.visitCase);
| }
| }
| },
| _initMethod:function(){
|
| },
| _initEvent:function(){
| vc.on('addVisitCase', 'onIndex', function(_index){
| console.log("侦听到addVisitCase的index为 "+_index);
| // vc.component.addCarInfo.index = _index;
| vc.emit('addVisitSpace', 'notify', _index);
| });
|
| },
| methods:{
| addCarValidate:function(){
|
| },
| saveAddCarInfo:function(){
| if(vc.component.addCarValidate()){
| //侦听回传
| vc.emit($props.callBackComponent,$props.callBackFunction, vc.component.addCarInfo);
| return ;
| }
| }
|
| }
| });
|
| })(window.vc);
|
|