mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-10 03:16:42 +08:00
修改
This commit is contained in:
@@ -309,6 +309,7 @@ export default {
|
||||
majsto:[],
|
||||
Domarr:[],
|
||||
majarr:[],
|
||||
domData:[],
|
||||
};
|
||||
},
|
||||
|
||||
@@ -406,14 +407,30 @@ export default {
|
||||
this.fieldData.splice(delIdx,1);
|
||||
}
|
||||
}
|
||||
// this.majarr.push(item);//搜索条件
|
||||
// this.fieldData = Array.from(new Set(this.majarr))//过滤重复的数据
|
||||
// this.majsto.push(item.code);
|
||||
// this.majorTypeData = this.majsto.toString()//传给后端
|
||||
// this.queryCondition.majorType = this.majorTypeData
|
||||
|
||||
this.getCaseData();
|
||||
},
|
||||
ceshiorg(){//判断专业
|
||||
let b = JSON.stringify(this.fieldData);
|
||||
if(b == '[]'){
|
||||
this.fielclass=true;
|
||||
}
|
||||
},
|
||||
ceshidom(){//判断组织
|
||||
this.domData = [];
|
||||
this.fieldData.forEach(itx =>{
|
||||
if(itx.type == 'org_domain'){
|
||||
console.log(typeof itx);
|
||||
if(itx.fielclass == true){
|
||||
this.domData.push(itx)
|
||||
}
|
||||
}
|
||||
})
|
||||
console.log(this.domData);
|
||||
let b = JSON.stringify(this.domData);
|
||||
if(b == '[]'){
|
||||
this.fielclass=true;
|
||||
}
|
||||
},
|
||||
fieldswich(item){//组织领域
|
||||
this.fielclass=false;
|
||||
item.fielclass = !item.fielclass;
|
||||
@@ -442,7 +459,7 @@ export default {
|
||||
this.orgDomainData = this.orgsto.toString()//传给后端
|
||||
this.queryCondition.orgDomain = this.orgDomainData;
|
||||
this.getCaseData();
|
||||
|
||||
this.ceshidom();
|
||||
},
|
||||
|
||||
banJump() {
|
||||
|
||||
Reference in New Issue
Block a user