mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-14 21:36:44 +08:00
fix:任务管理学员显示问题修改
This commit is contained in:
@@ -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)
|
||||
|
||||
|
||||
@@ -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,
|
||||
|
||||
@@ -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";
|
||||
@@ -333,14 +333,14 @@ export default {
|
||||
color="blue">已转审</a-tag>:
|
||||
value.record.inviteAuditStatus==2?
|
||||
<a-tag
|
||||
v-if="value.record.inviteAuditStatus==2"
|
||||
onClick={()=>{
|
||||
showTransferInvitationAudit(
|
||||
value.record.createrId,
|
||||
value.record.creater,
|
||||
value.record.offId
|
||||
)
|
||||
}}
|
||||
v-if="value.record.inviteAuditStatus==2"
|
||||
onClick={()=>{
|
||||
showTransferInvitationAudit(
|
||||
value.record.createrId,
|
||||
value.record.creater,
|
||||
value.record.offId
|
||||
)
|
||||
}}
|
||||
style="cursor:pointer;"
|
||||
color="green">转审完成</a-tag>:""
|
||||
}
|
||||
@@ -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 = () => {
|
||||
state.courInvitationAuditModal = false;
|
||||
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;
|
||||
})
|
||||
}
|
||||
|
||||
// 转审完成弹框
|
||||
|
||||
Reference in New Issue
Block a user