|
@ -24,10 +24,11 @@ var httpData=GetRequest();
|
|
|
},
|
|
|
methods:{
|
|
|
initPage:function(){
|
|
|
this.serverTypes=this.catchArr.server;
|
|
|
this.jkqkSelect=this.catchArr.heath
|
|
|
this.jblxSelect=this.catchArr.disease
|
|
|
this.tdbqSelect=this.catchArr.team
|
|
|
console.log('我华北')
|
|
|
this.serverTypes=JSON.parse(JSON.stringify(this.catchArr.server));
|
|
|
this.jkqkSelect=JSON.parse(JSON.stringify(this.catchArr.heath));
|
|
|
this.jblxSelect=JSON.parse(JSON.stringify(this.catchArr.disease));
|
|
|
this.tdbqSelect=JSON.parse(JSON.stringify(this.catchArr.team));
|
|
|
},
|
|
|
determine:function(){
|
|
|
var vm=this
|
|
@ -37,10 +38,19 @@ var httpData=GetRequest();
|
|
|
disease:this.jblxSelect,
|
|
|
team:this.tdbqSelect
|
|
|
}
|
|
|
vm.catchArr=res
|
|
|
vm.catchArr=JSON.parse(JSON.stringify(res));
|
|
|
top.handleVue.acceptanceRes(res);
|
|
|
this.closeSelect()
|
|
|
},
|
|
|
close:function(){
|
|
|
console.log(this.catchArr)
|
|
|
console.log('我进来了')
|
|
|
this.serverTypes=JSON.parse(JSON.stringify(this.catchArr.server))
|
|
|
this.jkqkSelect=JSON.parse(JSON.stringify(this.catchArr.heath))
|
|
|
this.jblxSelect=JSON.parse(JSON.stringify(this.catchArr.disease))
|
|
|
this.tdbqSelect=JSON.parse(JSON.stringify(this.catchArr.team))
|
|
|
this.closeSelect()
|
|
|
},
|
|
|
closeSelect:function(){
|
|
|
top.$('#layui-layer-shade'+top.changeTypeIndex).hide()
|
|
|
top.$('#layui-layer'+top.changeTypeIndex).hide()
|
|
@ -51,9 +61,10 @@ var httpData=GetRequest();
|
|
|
signCode:vm.signCode
|
|
|
}
|
|
|
signAPI.findPatientSignServerBySignCode(params).then(function(res){
|
|
|
if(res.status==200){
|
|
|
if(res.status==200){
|
|
|
var _typss=_.pluck(res.data || [],'serverType')
|
|
|
vm.serverTypes=_typss
|
|
|
vm.catchArr.server=_typss
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@ -83,6 +94,7 @@ var httpData=GetRequest();
|
|
|
if(!cls || cls.indexOf('luck')!==-1) return ;
|
|
|
var types=JSON.parse(JSON.stringify(vm.serverTypes));
|
|
|
var _index=types.indexOf(code)
|
|
|
console.log(code)
|
|
|
if(_index===-1){
|
|
|
vm.serverTypes.push(code);
|
|
|
vm.fwlx[idx].className='active';
|
|
@ -111,6 +123,7 @@ var httpData=GetRequest();
|
|
|
}
|
|
|
vm.fwlx[idx].className='optional';
|
|
|
}
|
|
|
console.log(vm.catchArr)
|
|
|
},
|
|
|
// 健康状况改变
|
|
|
changeJK:function(cls,code,idx){
|
|
@ -223,9 +236,9 @@ var httpData=GetRequest();
|
|
|
vm.jkqkSelect=_.pluck(jkqkSelect,'label')
|
|
|
vm.jblxSelect=_.pluck(jblxSelect,'label')
|
|
|
vm.tdbqSelect=_.pluck(tdbqSelect,'label')
|
|
|
vm.catchArr.heath=vm.jkqkSelect;
|
|
|
vm.catchArr.disease=vm.jblxSelect;
|
|
|
vm.catchArr.team=vm.tdbqSelect;
|
|
|
vm.catchArr.heath=JSON.parse(JSON.stringify(vm.jkqkSelect));
|
|
|
vm.catchArr.disease=JSON.parse(JSON.stringify(vm.jblxSelect));
|
|
|
vm.catchArr.team=JSON.parse(JSON.stringify(vm.tdbqSelect));
|
|
|
vm.findPatientSignServerBySignCode();
|
|
|
}
|
|
|
}else{
|
|
@ -380,6 +393,12 @@ var httpData=GetRequest();
|
|
|
},
|
|
|
tdbqSelect:function(){
|
|
|
this.filterTea()
|
|
|
},
|
|
|
catchArr:{
|
|
|
handler(val, oldVal){
|
|
|
console.log(val);//但是这两个值打印出来却都是一样的
|
|
|
},
|
|
|
deep:true
|
|
|
}
|
|
|
}
|
|
|
})
|