|
@ -21,14 +21,16 @@ var httpData=GetRequest();
|
|
|
mounted:function(){
|
|
|
this.getSigndict()
|
|
|
this.getAllLabels()
|
|
|
top.vvm = this
|
|
|
},
|
|
|
methods:{
|
|
|
initPage:function(){
|
|
|
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));
|
|
|
console.log(this.catchArr)
|
|
|
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
|
|
@ -38,17 +40,17 @@ var httpData=GetRequest();
|
|
|
disease:this.jblxSelect,
|
|
|
team:this.tdbqSelect
|
|
|
}
|
|
|
vm.catchArr=JSON.parse(JSON.stringify(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.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(){
|
|
@ -64,7 +66,7 @@ var httpData=GetRequest();
|
|
|
if(res.status==200){
|
|
|
var _typss=_.pluck(res.data || [],'serverType')
|
|
|
vm.serverTypes=_typss
|
|
|
vm.catchArr.server=_typss
|
|
|
vm.catchArr.server= [].concat(_typss)
|
|
|
}
|
|
|
})
|
|
|
},
|
|
@ -92,7 +94,7 @@ var httpData=GetRequest();
|
|
|
changeFW:function(cls,code,idx){
|
|
|
var vm=this
|
|
|
if(!cls || cls.indexOf('luck')!==-1) return ;
|
|
|
var types=JSON.parse(JSON.stringify(vm.serverTypes));
|
|
|
var types=JSON.parse(JSON.stringify(vm.serverTypes||{}));
|
|
|
var _index=types.indexOf(code)
|
|
|
console.log(code)
|
|
|
if(_index===-1){
|
|
@ -129,7 +131,7 @@ var httpData=GetRequest();
|
|
|
changeJK:function(cls,code,idx){
|
|
|
var vm=this
|
|
|
if(!cls || cls.indexOf('luck')!==-1) return ;
|
|
|
var types=JSON.parse(JSON.stringify(vm.jkqkSelect));
|
|
|
var types=JSON.parse(JSON.stringify(vm.jkqkSelect||{}));
|
|
|
var _index=types.indexOf(code)
|
|
|
if(_index===-1){
|
|
|
for(var i in vm.jkqk){
|
|
@ -149,7 +151,7 @@ var httpData=GetRequest();
|
|
|
changeJB:function(cls,code,idx){
|
|
|
var vm=this
|
|
|
if(!cls || cls.indexOf('luck')!==-1) return ;
|
|
|
var types=JSON.parse(JSON.stringify(vm.jblxSelect));
|
|
|
var types=JSON.parse(JSON.stringify(vm.jblxSelect||{}));
|
|
|
var _index=types.indexOf(code)
|
|
|
console.log(types)
|
|
|
console.log(_index)
|
|
@ -164,7 +166,7 @@ var httpData=GetRequest();
|
|
|
// 团队标签选择取消
|
|
|
changeTD:function(cls,code,idx){3
|
|
|
var vm=this
|
|
|
var types=JSON.parse(JSON.stringify(vm.tdbqSelect));
|
|
|
var types=JSON.parse(JSON.stringify(vm.tdbqSelect||{}));
|
|
|
var _index=types.indexOf(code)
|
|
|
if(_index===-1){
|
|
|
vm.tdbqSelect.push(code);
|
|
@ -236,9 +238,9 @@ var httpData=GetRequest();
|
|
|
vm.jkqkSelect=_.pluck(jkqkSelect,'label')
|
|
|
vm.jblxSelect=_.pluck(jblxSelect,'label')
|
|
|
vm.tdbqSelect=_.pluck(tdbqSelect,'label')
|
|
|
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.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{
|
|
@ -249,7 +251,7 @@ var httpData=GetRequest();
|
|
|
// 普通1 老年3 高血4 糖尿5 孕妇6 儿童7 贫困8 计生9 重性10 残疾11 结核12
|
|
|
filterSer() {
|
|
|
var vm=this
|
|
|
var fwlx=JSON.parse(JSON.stringify(vm.fwlx))
|
|
|
var fwlx=JSON.parse(JSON.stringify(vm.fwlx||{}))
|
|
|
vm.jkqk[0] && (vm.jkqk[0].className='optional');
|
|
|
for(var i in fwlx){
|
|
|
for(var j in vm.serverTypes){
|
|
@ -289,13 +291,15 @@ var httpData=GetRequest();
|
|
|
// 健康1 患病2 高危3 恢复4 未标注0
|
|
|
filterHea() {
|
|
|
var vm=this
|
|
|
var jkqk=JSON.parse(JSON.stringify(vm.jkqk))
|
|
|
var jkqk=JSON.parse(JSON.stringify(vm.jkqk||{}))
|
|
|
_.map(vm.jkqkSelect, function(item, index) {
|
|
|
var code = item | 0
|
|
|
if (code === 1) {
|
|
|
var arr = [1, 2, 3]
|
|
|
_.map(arr, function(it, idx) {
|
|
|
vm.jblx[it].className='';
|
|
|
var arr = [1, 6, 7]
|
|
|
_.map(vm.fwlx, function(it, idx) {
|
|
|
if(arr.indexOf(it.code)===-1){
|
|
|
vm.jblx[it].className='';
|
|
|
}
|
|
|
})
|
|
|
vm.jblxSelect=[]
|
|
|
vm.jblx=_.map(vm.jblx,function(it, idx){
|
|
@ -326,7 +330,7 @@ var httpData=GetRequest();
|
|
|
// 疾病类型
|
|
|
filterDea() {
|
|
|
var vm=this
|
|
|
var jblx=JSON.parse(JSON.stringify(vm.jblx))
|
|
|
var jblx=JSON.parse(JSON.stringify(vm.jblx||{}))
|
|
|
_.map(vm.serverTypes, function(item, index) {
|
|
|
var code = item | 0;
|
|
|
if (code === 4) {
|