|
@@ -196,7 +196,7 @@
|
|
|
:sUserId="userid"
|
|
|
:termList="termList"
|
|
|
:weiList="weiList"
|
|
|
- :studentList="studentList"
|
|
|
+ :studentList="studentListCopy"
|
|
|
@closePop="closePop"
|
|
|
@getData="getData"
|
|
|
@updatePanelB="updatePanelB"
|
|
@@ -282,6 +282,8 @@ export default {
|
|
|
weiList: [],
|
|
|
// 班级学生数据(包括多个班)
|
|
|
studentList: [],
|
|
|
+ studentListCopy: [],
|
|
|
+
|
|
|
// 判断显示查看,修改
|
|
|
judgeNum: 0,
|
|
|
|
|
@@ -410,6 +412,7 @@ export default {
|
|
|
.then(res => {
|
|
|
this.isLoading = false;
|
|
|
this.tableData = res.data[0];
|
|
|
+ console.log("this.tableData", this.tableData);
|
|
|
this.total = res.data[0].length > 0 ? res.data[0][0].num : 0;
|
|
|
// console.log(" 获取筛选数据", res.data[0]);
|
|
|
})
|
|
@@ -466,7 +469,12 @@ export default {
|
|
|
tname: "",
|
|
|
type: ""
|
|
|
};
|
|
|
-
|
|
|
+ this.studentListCopy = [];
|
|
|
+ // 去除自己的名字。不能自己关联自己
|
|
|
+ this.studentListCopy = this.studentList.filter(i => {
|
|
|
+ return i.id !== this.info.userid;
|
|
|
+ });
|
|
|
+
|
|
|
// this.AddIsPop = true;
|
|
|
this.isPop = true;
|
|
|
},
|
|
@@ -514,8 +522,16 @@ export default {
|
|
|
e.recordImg = e.recordImg.split(",");
|
|
|
}
|
|
|
}
|
|
|
+ this.studentListCopy = [];
|
|
|
this.recordData = e;
|
|
|
- // console.log('recordData',this.recordData);
|
|
|
+ // 去除自己的名字。不能自己关联自己
|
|
|
+ this.studentListCopy = this.studentList.filter(i => {
|
|
|
+ return i.id !== e.sid;
|
|
|
+ });
|
|
|
+ // this.studentList = res[0].filter(i => {
|
|
|
+ // return i.id !== allData.sid;
|
|
|
+ // });
|
|
|
+ // console.log("recordData", this.recordData);
|
|
|
this.$forceUpdate();
|
|
|
this.isPop = true;
|
|
|
},
|