|
@@ -106,10 +106,7 @@ export default {
|
|
// 查询学生列表-并带有职务
|
|
// 查询学生列表-并带有职务
|
|
async searchInfo() {
|
|
async searchInfo() {
|
|
let classid = this.id;
|
|
let classid = this.id;
|
|
- console.log(classid);
|
|
|
|
const res = await this.list({ classid });
|
|
const res = await this.list({ classid });
|
|
- console.log(res.data);
|
|
|
|
-
|
|
|
|
if (this.$checkRes(res)) {
|
|
if (this.$checkRes(res)) {
|
|
this.$set(this, `headStuList`, res.data);
|
|
this.$set(this, `headStuList`, res.data);
|
|
}
|
|
}
|
|
@@ -118,9 +115,6 @@ export default {
|
|
async clickAssign({ id, item }) {
|
|
async clickAssign({ id, item }) {
|
|
var banzhang = this.headStuList.filter(item => item.job == '班长');
|
|
var banzhang = this.headStuList.filter(item => item.job == '班长');
|
|
var xuewei = this.headStuList.filter(item => item.job == '学委');
|
|
var xuewei = this.headStuList.filter(item => item.job == '学委');
|
|
- console.log(banzhang);
|
|
|
|
- console.log(xuewei.length);
|
|
|
|
-
|
|
|
|
if (xuewei.length == '1') {
|
|
if (xuewei.length == '1') {
|
|
if (banzhang.length == '2') {
|
|
if (banzhang.length == '2') {
|
|
if (item.job == '班长') {
|
|
if (item.job == '班长') {
|
|
@@ -131,8 +125,6 @@ export default {
|
|
this.$set(this, `job_list`, this.job4);
|
|
this.$set(this, `job_list`, this.job4);
|
|
}
|
|
}
|
|
} else if (banzhang.length < '2') {
|
|
} else if (banzhang.length < '2') {
|
|
- console.log('cc');
|
|
|
|
-
|
|
|
|
if (item.job == '学委') {
|
|
if (item.job == '学委') {
|
|
this.$set(this, `job_list`, this.job1);
|
|
this.$set(this, `job_list`, this.job1);
|
|
} else {
|
|
} else {
|
|
@@ -141,8 +133,6 @@ export default {
|
|
} else if (xuewei.length == '0') {
|
|
} else if (xuewei.length == '0') {
|
|
}
|
|
}
|
|
} else if (xuewei.length == '0') {
|
|
} else if (xuewei.length == '0') {
|
|
- console.log('a');
|
|
|
|
-
|
|
|
|
if (banzhang.length == '0') {
|
|
if (banzhang.length == '0') {
|
|
this.$set(this, `job_list`, this.job1);
|
|
this.$set(this, `job_list`, this.job1);
|
|
} else if (banzhang.length == '2') {
|
|
} else if (banzhang.length == '2') {
|
|
@@ -155,17 +145,13 @@ export default {
|
|
this.$set(this, `job_list`, this.job1);
|
|
this.$set(this, `job_list`, this.job1);
|
|
}
|
|
}
|
|
}
|
|
}
|
|
-
|
|
|
|
this.assignShow = true;
|
|
this.assignShow = true;
|
|
const res = await this.fet(id);
|
|
const res = await this.fet(id);
|
|
this.$set(this, `assignForm`, res.data);
|
|
this.$set(this, `assignForm`, res.data);
|
|
},
|
|
},
|
|
//指派职务
|
|
//指派职务
|
|
async onAssignShow(assignForm) {
|
|
async onAssignShow(assignForm) {
|
|
- console.log(assignForm);
|
|
|
|
-
|
|
|
|
let data = this.assignForm;
|
|
let data = this.assignForm;
|
|
-
|
|
|
|
let res = await this.updates(data);
|
|
let res = await this.updates(data);
|
|
if (this.$checkRes(res)) {
|
|
if (this.$checkRes(res)) {
|
|
this.$message({
|
|
this.$message({
|