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