fix:任务管理学员显示问题修改

This commit is contained in:
wyx
2023-02-17 11:37:16 +08:00
parent 50d91e5510
commit a7d30f3f8b
3 changed files with 41 additions and 12 deletions

View File

@@ -30,6 +30,9 @@ export const courseListView = (obj) => http.post('/admin/offcourse/listReview',
//获取面授课详情
export const courseDetail = (offcourseId) => http.post(`/admin/offcourse/detail?offcourseId=${offcourseId}`)
// 面授课转审邀请接口
export const inviteAudit = (obj) => http.post('/admin/offcourse/inviteAudit', obj)
//项目审核日志
export const auditList = (obj) => http.post('/admin/project/auditList', obj)

View File

@@ -356,7 +356,7 @@ export default {
currentStageId: props.datasource.chapterId,
type: 2,
pid: props.datasource.routerId,
taskId: props.datasource.routerTaskId,
taskId: props.datasource.id,
taskType: props.datasource.type,
status: state.projectName,
studentName: state.name,
@@ -368,7 +368,7 @@ export default {
currentStageId: props.datasource.chapterId,
type: 2,
pid: props.datasource.routerId,
taskId: props.datasource.routerTaskId,
taskId: props.datasource.id,
taskType: props.datasource.type,
status: state.projectName,
studentName: state.name,

View File

@@ -229,7 +229,7 @@
</template>
<script>
import {reactive, toRefs, onMounted, ref, computed} from "vue";
import { list, courseAuditView, courseDetail } from "../../api/indexAudit";
import { list, courseAuditView, courseDetail, inviteAudit } from "../../api/indexAudit";
import { message } from "ant-design-vue";
import ProjectManager from "@/components/project/ProjectManagerNew";
import SeeModal from "../courselibrary/components/seeModal.vue";
@@ -554,6 +554,12 @@ export default {
}
],
searchParam:[], // 时间搜索
inviteReview:{
"inviteContent": "",
"offcourseId": 0,
"teacherId": 0,
"teacherName": ""
}
});
const store = useStore();
@@ -736,6 +742,9 @@ export default {
const showInvitationAudit = (createId, creater, offId) => {
console.log("参数",createId, creater, offId)
state.courInvitationAuditModal = true;
state.inviteReview.offcourseId = offId;
state.inviteReview.teacherId = createId;
state.inviteReview.teacherName = creater;
};
// 关闭邀请审核弹框
const closeInvitationCourAuditModal = () => {
@@ -743,7 +752,24 @@ export default {
}
// 邀请审核确定
const sureInvitationCourAuditModal = () => {
console.log('我是邀请审核得传递参数',{
"inviteContent": state.valueSuggInvitation,
"offcourseId": state.inviteReview.offcourseId,
"teacherId": state.inviteReview.teacherId,
"teacherName": state.inviteReview.teacherName
})
inviteAudit({
"inviteContent": state.valueSuggInvitation,
"offcourseId": state.inviteReview.offcourseId,
"teacherId": state.inviteReview.teacherId,
"teacherName": state.inviteReview.teacherName
}).then((res) => {
console.log(res)
state.courInvitationAuditModal = false;
}).catch(err=>{
console.log(err)
state.courInvitationAuditModal = false;
})
}
// 转审完成弹框