Merge remote-tracking branch 'origin/develop' into develop

# Conflicts:
#	src/views/learningpath/LevelAdd.vue
This commit is contained in:
yuping
2023-02-18 11:43:37 +08:00
3 changed files with 47 additions and 14 deletions

View File

@@ -1065,7 +1065,11 @@
v-model:studentId="studentId"
/>
<!-- 面授学员抽屉 -->
<RouterFaceStu v-model:FSvisible="FSvisible" :datasource="facestudent" />
<RouterFaceStu v-model:FSvisible="FSvisible"
:datasource="facestudent"
:type="2"
:routerId="routerId"
/>
<!-- 活动考勤抽屉 -->
<active-attendance
v-model:AAvisible="AAvisible"
@@ -1343,7 +1347,9 @@
<!-- 项目管理抽屉 结束-->
<!-- 批量面授报名 -->
<task-imp-stu v-model:TaskFaceImpStuvisible="TaskFaceImpStuvisible" />
<task-imp-stu v-model:TaskFaceImpStuvisible="TaskFaceImpStuvisible"
:type="2"
:routerId="routerId" />
</div>
</template>
<script>
@@ -2793,6 +2799,7 @@ export default {
// 调整关卡
function setLevels(record) {
console.log(record);
state.curLevelName = record.currentStageName;
state.curStuID = record.id;
state.visiblene = true;
@@ -2805,19 +2812,33 @@ export default {
}
// 点击确定 调整关卡
async function changeLevel() {
function changeLevel() {
state.isreload = false;
if (!state.curLevel) {
message.error("请选择关卡");
return;
}
state.visiblene = false;
message.success("调整关卡成功");
stuRef.value.startLoading()
await moveStudent({targetId: state.curLevel, ids: [state.curStuID]})
state.curLevel = undefined;
state.curStuID = "";
state.curLevelName = "";
stuRef.value.getStuList()
moveStudent({ targetId: state.curLevel, ids: [state.curStuID] })
.then((res) => {
console.log(res);
state.visiblene = false;
message.destroy();
state.isreload = true;
message.success("调整关卡成功");
state.curLevel = undefined;
state.curStuID = "";
state.curLevelName = "";
getStudent();
})
.catch((err) => {
console.log(err);
state.visiblene = false;
message.error("调整关卡失败");
state.isreload = true;
state.curLevel = undefined;
state.curStuID = "";
state.curLevelName = "";
});
}
// 面授课学员报名弹框
@@ -2829,7 +2850,6 @@ export default {
return {
...toRefs(state),
...toRefs(levelList),
stuRef,
clearChooseStu,
showDeleteALLModal,
closeDeleteALLModal,