|
@@ -19,6 +19,8 @@
|
|
|
@handleClose="handleClose"
|
|
|
:classid="this.id"
|
|
|
:schoolList="schoolList"
|
|
|
+ @affirm="affirm"
|
|
|
+ @cancel="cancel"
|
|
|
></headStuList>
|
|
|
</el-col>
|
|
|
</el-col>
|
|
@@ -51,51 +53,7 @@ export default {
|
|
|
assignShow: false,
|
|
|
assignForm: {},
|
|
|
job_list: [],
|
|
|
- job1: [
|
|
|
- {
|
|
|
- name: '班长',
|
|
|
- },
|
|
|
- {
|
|
|
- name: '学委',
|
|
|
- },
|
|
|
- {
|
|
|
- name: '普通学生',
|
|
|
- },
|
|
|
- ],
|
|
|
- // job2: [
|
|
|
- // {
|
|
|
- // name: '班长',
|
|
|
- // },
|
|
|
- // {
|
|
|
- // name: '学委',
|
|
|
- // },
|
|
|
- // {
|
|
|
- // name: '普通学生',
|
|
|
- // },
|
|
|
- // ],
|
|
|
- // job3: [
|
|
|
- // {
|
|
|
- // name: '班长',
|
|
|
- // },
|
|
|
- // {
|
|
|
- // name: '学委',
|
|
|
- // },
|
|
|
-
|
|
|
- // {
|
|
|
- // name: '普通学生',
|
|
|
- // },
|
|
|
- // ],
|
|
|
- // job4: [
|
|
|
- // {
|
|
|
- // name: '班长',
|
|
|
- // },
|
|
|
- // {
|
|
|
- // name: '学委',
|
|
|
- // },
|
|
|
- // {
|
|
|
- // name: '普通学生',
|
|
|
- // },
|
|
|
- // ],
|
|
|
+ job1: [{ name: '班长' }, { name: '学委' }, { name: '普通学生' }],
|
|
|
// 学校
|
|
|
schoolList: [],
|
|
|
}),
|
|
@@ -121,7 +79,7 @@ export default {
|
|
|
},
|
|
|
methods: {
|
|
|
...mapStudent({ list: 'query', add: 'create', fet: 'fetch', updates: 'update' }),
|
|
|
- ...mapGroup({ groupQuery: 'query' }),
|
|
|
+ ...mapGroup({ groupQuery: 'query', groupUpdate: 'update' }),
|
|
|
...school(['query']),
|
|
|
// 查询学校
|
|
|
async seachschool() {
|
|
@@ -206,6 +164,32 @@ export default {
|
|
|
handleClose() {
|
|
|
this.assignShow = false;
|
|
|
},
|
|
|
+ // 确定小组
|
|
|
+ async affirm(data) {
|
|
|
+ data.status = '1';
|
|
|
+ const res = await this.groupUpdate(data);
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$message({
|
|
|
+ message: '确定小组成功',
|
|
|
+ type: 'success',
|
|
|
+ });
|
|
|
+ this.searchInfo();
|
|
|
+ this.seachschool();
|
|
|
+ }
|
|
|
+ },
|
|
|
+ // 取消小组
|
|
|
+ async cancel(data) {
|
|
|
+ data.status = '0';
|
|
|
+ const res = await this.groupUpdate(data);
|
|
|
+ if (this.$checkRes(res)) {
|
|
|
+ this.$message({
|
|
|
+ message: '取消小组确定成功',
|
|
|
+ type: 'success',
|
|
|
+ });
|
|
|
+ this.searchInfo();
|
|
|
+ this.seachschool();
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
};
|
|
|
</script>
|