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

@@ -190,14 +190,25 @@ export default {
type: Boolean, type: Boolean,
default: false, default: false,
}, },
projectId: {
type: Number,
default: null,
},
studentId: {
type: Number,
default: null,
},
routerId: {
type: Number,
default: null,
},
}, },
setup(props, ctx) { setup(props, ctx) {
console.log(1222)
const state = reactive({ const state = reactive({
fileType: ["xls", "xlsx"], fileType: ["xls", "xlsx"],
importLeader: importLeader:
process.env.VUE_APP_BASE_API + process.env.VUE_APP_BASE_API +
`/admin/studentGroup/importGroup/${props.projectId}`, `/admin/offcourse/importGroup/${props.routerId}`,
uploadpercent: -1, uploadpercent: -1,
uploadErr: false, //上传失败 uploadErr: false, //上传失败
addLoading: false, addLoading: false,

View File

@@ -1065,7 +1065,11 @@
v-model:studentId="studentId" v-model:studentId="studentId"
/> />
<!-- 面授学员抽屉 --> <!-- 面授学员抽屉 -->
<RouterFaceStu v-model:FSvisible="FSvisible" :datasource="facestudent" /> <RouterFaceStu v-model:FSvisible="FSvisible"
:datasource="facestudent"
:type="2"
:routerId="routerId"
/>
<!-- 活动考勤抽屉 --> <!-- 活动考勤抽屉 -->
<active-attendance <active-attendance
v-model:AAvisible="AAvisible" 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> </div>
</template> </template>
<script> <script>
@@ -2793,6 +2799,7 @@ export default {
// 调整关卡 // 调整关卡
function setLevels(record) { function setLevels(record) {
console.log(record);
state.curLevelName = record.currentStageName; state.curLevelName = record.currentStageName;
state.curStuID = record.id; state.curStuID = record.id;
state.visiblene = true; state.visiblene = true;
@@ -2805,19 +2812,33 @@ export default {
} }
// 点击确定 调整关卡 // 点击确定 调整关卡
async function changeLevel() { function changeLevel() {
state.isreload = false;
if (!state.curLevel) { if (!state.curLevel) {
message.error("请选择关卡"); message.error("请选择关卡");
return; return;
} }
state.visiblene = false; moveStudent({ targetId: state.curLevel, ids: [state.curStuID] })
message.success("调整关卡成功"); .then((res) => {
stuRef.value.startLoading() console.log(res);
await moveStudent({targetId: state.curLevel, ids: [state.curStuID]}) state.visiblene = false;
state.curLevel = undefined; message.destroy();
state.curStuID = ""; state.isreload = true;
state.curLevelName = ""; message.success("调整关卡成功");
stuRef.value.getStuList() 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 { return {
...toRefs(state), ...toRefs(state),
...toRefs(levelList), ...toRefs(levelList),
stuRef,
clearChooseStu, clearChooseStu,
showDeleteALLModal, showDeleteALLModal,
closeDeleteALLModal, closeDeleteALLModal,

View File

@@ -659,8 +659,10 @@ const closeDeleteStage = () => {
}; };
//删除阶段 //删除阶段
const deleteStage = () => { const deleteStage = () => {
console.log(12345);
if (projectInfo.value.stageList.length === 1) { if (projectInfo.value.stageList.length === 1) {
projectInfo.value.stageList = [{id: '0', stageId: '0', name: '', remark: '', taskDraftDtoList: []}]; projectInfo.value.stageList = [{id: '0', stageId: '0', name: '', remark: '', taskDraftDtoList: []}];
deleteStageModal.value = false;
return return
} }
projectInfo.value.stageList.splice(activeIndex.value, 1) projectInfo.value.stageList.splice(activeIndex.value, 1)