mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 04:16:45 +08:00
修改
This commit is contained in:
@@ -310,6 +310,7 @@ export default {
|
|||||||
Domarr:[],
|
Domarr:[],
|
||||||
majarr:[],
|
majarr:[],
|
||||||
domData:[],
|
domData:[],
|
||||||
|
majData:[],
|
||||||
};
|
};
|
||||||
},
|
},
|
||||||
|
|
||||||
@@ -353,6 +354,7 @@ export default {
|
|||||||
},
|
},
|
||||||
methods: {
|
methods: {
|
||||||
majorall(){
|
majorall(){
|
||||||
|
this.queryCondition.majorType = '';
|
||||||
this.fielclassjor=true;
|
this.fielclassjor=true;
|
||||||
if(this.fielclassjor){
|
if(this.fielclassjor){
|
||||||
let narr = this.fieldData;
|
let narr = this.fieldData;
|
||||||
@@ -366,8 +368,10 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
this.getCaseData();
|
||||||
},
|
},
|
||||||
domainall(){
|
domainall(){
|
||||||
|
this.queryCondition.orgDomain = '';
|
||||||
this.fielclass=true;
|
this.fielclass=true;
|
||||||
if(this.fielclass){
|
if(this.fielclass){
|
||||||
var newArr = this.fieldData;
|
var newArr = this.fieldData;
|
||||||
@@ -382,6 +386,7 @@ export default {
|
|||||||
}
|
}
|
||||||
})
|
})
|
||||||
}
|
}
|
||||||
|
this.getCaseData();
|
||||||
},
|
},
|
||||||
fieldmajor(item){//专业分类
|
fieldmajor(item){//专业分类
|
||||||
this.fielclassjor = false;
|
this.fielclassjor = false;
|
||||||
@@ -390,7 +395,6 @@ export default {
|
|||||||
let has=this.fieldData.some(fd=>{
|
let has=this.fieldData.some(fd=>{
|
||||||
return fd.code==item.code;
|
return fd.code==item.code;
|
||||||
});
|
});
|
||||||
//console.log(has,'has')
|
|
||||||
if(!has){
|
if(!has){
|
||||||
this.fieldData.push(item);
|
this.fieldData.push(item);
|
||||||
}
|
}
|
||||||
@@ -407,12 +411,26 @@ export default {
|
|||||||
this.fieldData.splice(delIdx,1);
|
this.fieldData.splice(delIdx,1);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
this.majsto.push(item.code);
|
||||||
|
this.majorTypeData = this.majsto.toString()//传给后端
|
||||||
|
this.queryCondition.majorType = this.majorTypeData;
|
||||||
this.getCaseData();
|
this.getCaseData();
|
||||||
|
this.ceshiorg();
|
||||||
},
|
},
|
||||||
ceshiorg(){//判断专业
|
ceshiorg(){//判断专业
|
||||||
let b = JSON.stringify(this.fieldData);
|
this.majData = [];
|
||||||
|
this.fieldData.forEach(itx =>{
|
||||||
|
if(itx.type == 'major_type'){
|
||||||
|
console.log(typeof itx);
|
||||||
|
if(itx.fielclass == true){
|
||||||
|
this.majData.push(itx)
|
||||||
|
}
|
||||||
|
}
|
||||||
|
})
|
||||||
|
console.log(this.majData);
|
||||||
|
let b = JSON.stringify(this.majData);
|
||||||
if(b == '[]'){
|
if(b == '[]'){
|
||||||
this.fielclass=true;
|
this.fielclassjor=true;
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
ceshidom(){//判断组织
|
ceshidom(){//判断组织
|
||||||
@@ -425,7 +443,6 @@ export default {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
console.log(this.domData);
|
|
||||||
let b = JSON.stringify(this.domData);
|
let b = JSON.stringify(this.domData);
|
||||||
if(b == '[]'){
|
if(b == '[]'){
|
||||||
this.fielclass=true;
|
this.fielclass=true;
|
||||||
|
|||||||
Reference in New Issue
Block a user