mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-15 05:46:45 +08:00
换组功能
This commit is contained in:
@@ -48,6 +48,10 @@ const props = defineProps({
|
|||||||
type: Boolean,
|
type: Boolean,
|
||||||
default: false,
|
default: false,
|
||||||
},
|
},
|
||||||
|
checkBatch: {
|
||||||
|
type: Boolean,
|
||||||
|
default: false,
|
||||||
|
},
|
||||||
groupList: {
|
groupList: {
|
||||||
type: Array,
|
type: Array,
|
||||||
default: () => [],
|
default: () => [],
|
||||||
@@ -56,10 +60,10 @@ const props = defineProps({
|
|||||||
type: Number,
|
type: Number,
|
||||||
default: null,
|
default: null,
|
||||||
},
|
},
|
||||||
|
|
||||||
});
|
});
|
||||||
|
|
||||||
const option = computed(() => {
|
const option = computed(() => {
|
||||||
debugger
|
|
||||||
console.log("props.groupList", props.groupList);
|
console.log("props.groupList", props.groupList);
|
||||||
return props.groupList.map((e) => ({
|
return props.groupList.map((e) => ({
|
||||||
label: e.groupName,
|
label: e.groupName,
|
||||||
@@ -81,13 +85,13 @@ const selectGroup = (e, v) => {
|
|||||||
};
|
};
|
||||||
//确认换组
|
//确认换组
|
||||||
const changeGroup = (item) => {
|
const changeGroup = (item) => {
|
||||||
// debugger
|
debugger
|
||||||
console.log("换组", selectGroupId.value, item);
|
console.log("换组", selectGroupId.value, item);
|
||||||
props.checkgroupStuId.forEach(stu => {
|
props.checkgroupStuId.forEach(stu => {
|
||||||
let obj = {
|
let obj = {
|
||||||
groupId: selectGroupId.value,
|
groupId: selectGroupId.value,
|
||||||
groupName: selectGroupName.value,
|
groupName: selectGroupName.value,
|
||||||
studentId: stu,
|
id: stu,
|
||||||
};
|
};
|
||||||
console.log("换组obj", obj);
|
console.log("换组obj", obj);
|
||||||
api
|
api
|
||||||
|
|||||||
@@ -164,7 +164,7 @@
|
|||||||
<ChangeLevelModal v-model:visiblene="visiblene" :stage="stage" :ids="stuSelectKeys" @finash="submitCall" />
|
<ChangeLevelModal v-model:visiblene="visiblene" :stage="stage" :ids="stuSelectKeys" @finash="submitCall" />
|
||||||
|
|
||||||
<!-- 换组弹窗 -->
|
<!-- 换组弹窗 -->
|
||||||
<ChangeGroupModal v-model:changegroupV="checkgroupParam.changegroupV" :groupList="groupList"
|
<ChangeGroupModal v-model:changegroupV="checkgroupParam.changegroupV" :groupList="groupList" :checkBatch="checkgroupParam.checkBatch"
|
||||||
:checkgroupStuId="stuSelectKeys" />
|
:checkgroupStuId="stuSelectKeys" />
|
||||||
<!-- 批量调整关卡弹窗 -->
|
<!-- 批量调整关卡弹窗 -->
|
||||||
<!-- 取消学员弹窗 -->
|
<!-- 取消学员弹窗 -->
|
||||||
@@ -407,6 +407,7 @@ const checkgroupParam = ref({
|
|||||||
changegroupV: false, //学员名称
|
changegroupV: false, //学员名称
|
||||||
checkgroupList: "", //学员小组
|
checkgroupList: "", //学员小组
|
||||||
checkgroupStuId: null,
|
checkgroupStuId: null,
|
||||||
|
checkBatch: true
|
||||||
});
|
});
|
||||||
|
|
||||||
const stuSelectKeys = ref([]);
|
const stuSelectKeys = ref([]);
|
||||||
@@ -426,10 +427,13 @@ const stuRowSelection = computed(() => ({
|
|||||||
|
|
||||||
//显示学员换组弹窗
|
//显示学员换组弹窗
|
||||||
function showChangeGroupModal() {
|
function showChangeGroupModal() {
|
||||||
|
debugger
|
||||||
|
console.log("批量")
|
||||||
const d = props.groupList
|
const d = props.groupList
|
||||||
console.log("d" + d)
|
console.log("d" + d)
|
||||||
// debugger
|
// debugger
|
||||||
checkgroupParam.value.changegroupV = true;
|
checkgroupParam.value.changegroupV = true;
|
||||||
|
checkgroupParam.value.checkBatch = true;
|
||||||
}
|
}
|
||||||
|
|
||||||
// 导出数据
|
// 导出数据
|
||||||
|
|||||||
@@ -2356,6 +2356,7 @@ export default {
|
|||||||
],
|
],
|
||||||
//小组信息列表
|
//小组信息列表
|
||||||
groupList: [],
|
groupList: [],
|
||||||
|
isBatch: false, // 批量
|
||||||
// stuName: "", //搜索的学员姓名
|
// stuName: "", //搜索的学员姓名
|
||||||
// stuGroup: "", //搜索的学员小组名称
|
// stuGroup: "", //搜索的学员小组名称
|
||||||
// stuBum: "", //搜索的学员小组部门
|
// stuBum: "", //搜索的学员小组部门
|
||||||
@@ -3068,9 +3069,12 @@ export default {
|
|||||||
};
|
};
|
||||||
//显示学员换组弹窗
|
//显示学员换组弹窗
|
||||||
const showChangeGroupModal = (record) => {
|
const showChangeGroupModal = (record) => {
|
||||||
|
debugger
|
||||||
|
console.log("单个")
|
||||||
state.changegroupV = true;
|
state.changegroupV = true;
|
||||||
console.log("点击换组", record.studentId);
|
console.log("点击换组", record.id);
|
||||||
state.checkgroupStuId = record.studentId;
|
state.checkgroupStuId = [];
|
||||||
|
state.checkgroupStuId.push(record.id) ;
|
||||||
};
|
};
|
||||||
const showModal2 = (item, isEdit) => {
|
const showModal2 = (item, isEdit) => {
|
||||||
state.isEdit = isEdit;
|
state.isEdit = isEdit;
|
||||||
@@ -3147,7 +3151,6 @@ export default {
|
|||||||
}
|
}
|
||||||
//考勤的抽屉
|
//考勤的抽屉
|
||||||
const showAA = (course, a, data) => {
|
const showAA = (course, a, data) => {
|
||||||
// debugger;
|
|
||||||
state.AAvisible = true;
|
state.AAvisible = true;
|
||||||
state.liveData = data;
|
state.liveData = data;
|
||||||
state.showKaoqinText = "直播";
|
state.showKaoqinText = "直播";
|
||||||
|
|||||||
Reference in New Issue
Block a user