|
@@ -97,6 +97,7 @@ export default {
|
|
|
this.collegeIndex = e.target.value;
|
|
|
this.getData.deptId=this.collegeList[e.target.value].deptId
|
|
|
this.getData.deptName=this.collegeList[e.target.value].deptName
|
|
|
+ this.getData.pageNum=1;
|
|
|
this.dataList=[];
|
|
|
this.getList();
|
|
|
},
|
|
@@ -142,6 +143,7 @@ export default {
|
|
|
let _this = this;
|
|
|
let subIds=[];
|
|
|
this.$set(this.form,'subjectNum', this.seleteListLab.length)
|
|
|
+ this.$set(this.form,'seleteListLab', this.seleteListLab)
|
|
|
if(this.seleteListLab.length>0){
|
|
|
this.seleteListLab.forEach(function(item){
|
|
|
subIds.push(item.subId)
|
|
@@ -185,7 +187,7 @@ export default {
|
|
|
_this.total=data.total;
|
|
|
if(this.seleteListLab.length>0){//如果有选中的数据
|
|
|
for(let i=0;i<this.dataList.length;i++){
|
|
|
- if(this.seleteListLab.findIndex((item)=>item.id===this.dataList[i].id) !=-1){//不等于-1说明数组里有当前元素,可以改为选中
|
|
|
+ if(this.seleteListLab.findIndex((item)=>item.subId===this.dataList[i].subId) !=-1){//不等于-1说明数组里有当前元素,可以改为选中
|
|
|
this.dataList[i].type=true;
|
|
|
}else{
|
|
|
|