|
@@ -21,6 +21,7 @@
|
|
|
:schoolList="schoolList"
|
|
|
@affirm="affirm"
|
|
|
@cancel="cancel"
|
|
|
+ :nojob="nojob"
|
|
|
></headStuList>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
@@ -53,9 +54,11 @@ export default {
|
|
|
assignShow: false,
|
|
|
assignForm: {},
|
|
|
job_list: [],
|
|
|
- job1: [{ name: '班长' }, { name: '学委' }, { name: '普通学生' }],
|
|
|
+ job1: [{ name: '班长' }, { name: '普通学生' }],
|
|
|
// 学校
|
|
|
schoolList: [],
|
|
|
+ // 未设置职位名称
|
|
|
+ nojob:[]
|
|
|
}),
|
|
|
created() {
|
|
|
this.searchInfo();
|
|
@@ -103,6 +106,23 @@ export default {
|
|
|
let noGroupStuList = res.data.filter(f => !groupstuids.includes(f.id));
|
|
|
this.$set(this, `noGroupStuList`, noGroupStuList);
|
|
|
}
|
|
|
+ // 未设置学生职位
|
|
|
+ let arr = [];
|
|
|
+ let newdata = _.uniqBy(
|
|
|
+ this.headStuList.filter(i => i.job == '班长' || i.job == '学委' || i.job == '文艺委员' || i.job == '安全委员' || i.job == '宣传委员'),
|
|
|
+ 'job'
|
|
|
+ );
|
|
|
+ let bz = newdata.find(i => i.job == '班长');
|
|
|
+ if (!bz) arr.push({ name: '班长' });
|
|
|
+ let xe = newdata.find(i => i.job == '学委');
|
|
|
+ if (!xe) arr.push({ name: '学委' });
|
|
|
+ let wy = newdata.find(i => i.job == '文艺委员');
|
|
|
+ if (!wy) arr.push({ name: '文艺委员' });
|
|
|
+ let aq = newdata.find(i => i.job == '安全委员');
|
|
|
+ if (!aq) arr.push({ name: '安全委员' });
|
|
|
+ let xc = newdata.find(i => i.job == '宣传委员');
|
|
|
+ if (!xc) arr.push({ name: '宣传委员' });
|
|
|
+ this.$set(this, `nojob`, arr);
|
|
|
},
|
|
|
//点击派遣
|
|
|
async clickAssign({ id, item }) {
|