mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-08 18:36:46 +08:00
--fix bug
This commit is contained in:
@@ -92,7 +92,9 @@
|
||||
<div class="btn btn1" @click="batchFinish" style="margin-right: 20px">
|
||||
<div class="wz">批量标注完成</div>
|
||||
</div>
|
||||
<CommonImport title="录入成绩" v-if="homeWorkId" :template-url="scoreTemplateUrl" :data="{ targetId: offcoursePlanId, type:3 }" :url="`/admin/student/importHomeWork`" name="uploadFile">
|
||||
<CommonImport title="录入成绩" v-if="homeWorkId" :template-url="scoreTemplateUrl"
|
||||
:data="{ targetId: offcoursePlanId, type:3 }" :url="`/admin/student/importHomeWork`"
|
||||
name="uploadFile">
|
||||
<div class="btn btn1" style="margin-right: 20px;margin-left: 20px">
|
||||
<div class="img1"></div>
|
||||
<div class="wz">批量录入成绩</div>
|
||||
@@ -200,7 +202,7 @@ const { data = [], loading, fetchData } = useRequest(COURSE_PLAN_LIST, planParam
|
||||
const offcoursePlanId = computed(() => data.value[coursePlanIndex.value]?.id || "");
|
||||
const homeWorkId = computed(() => data.value[coursePlanIndex.value]?.homeWorkId || "");
|
||||
const infoId = computed(() => props.type === 1 ? props.datasource.projectId : props.datasource.routerId);
|
||||
const scoreTemplateUrl = ref(`${process.env.VUE_APP_BASE_API}/admin/student/exportHomeWorkTemplate?taskId=0&type=3&pid=${offcoursePlanId.value}&thirdType=3`);
|
||||
const scoreTemplateUrl = computed(() => `${process.env.VUE_APP_BASE_API}/admin/student/exportHomeWorkTemplate?taskId=0&type=3&pid=${offcoursePlanId.value}&thirdType=3`);
|
||||
const stuId = ref("");
|
||||
const columns = ref([
|
||||
{
|
||||
@@ -251,7 +253,7 @@ const columns = ref([
|
||||
align: "center",
|
||||
ellipsis: true,
|
||||
className: "h",
|
||||
customRender: ({ record: { workScore } }) => <span> {workScore!==-2?workScore:"-" || "-"}</span>
|
||||
customRender: ({ record: { workScore } }) => <span> {workScore !== -2 ? workScore : "-" || "-"}</span>
|
||||
},
|
||||
{
|
||||
title: "考试成绩",
|
||||
@@ -298,51 +300,51 @@ const columns = ref([
|
||||
customRender: (text) => {
|
||||
return (
|
||||
<div style="display:flex;justify-content:center;">
|
||||
<a
|
||||
class="opa"
|
||||
style="margin-right:12px;"
|
||||
<a
|
||||
class="opa"
|
||||
style="margin-right:12px;"
|
||||
onClick={() => {
|
||||
showExamAnswer(text)
|
||||
showExamAnswer(text);
|
||||
}}>
|
||||
{ text.record.answerId?"查看答卷":""}
|
||||
{text.record.answerId ? "查看答卷" : ""}
|
||||
</a>
|
||||
{
|
||||
text.record.answerId?
|
||||
<a
|
||||
class="opa"
|
||||
style="margin-right:12px;"
|
||||
onClick={() => {
|
||||
showExamAnswer(text)
|
||||
}}>
|
||||
查看答卷
|
||||
</a>
|
||||
:<div
|
||||
class="opa"
|
||||
style="margin-right:12px;color:#666">
|
||||
查看答卷
|
||||
</div>
|
||||
text.record.answerId ?
|
||||
<a
|
||||
class="opa"
|
||||
style="margin-right:12px;"
|
||||
onClick={() => {
|
||||
showExamAnswer(text);
|
||||
}}>
|
||||
查看答卷
|
||||
</a>
|
||||
: <div
|
||||
class="opa"
|
||||
style="margin-right:12px;color:#666">
|
||||
查看答卷
|
||||
</div>
|
||||
}
|
||||
{
|
||||
text.record.workScore==1?
|
||||
<a
|
||||
class="opa"
|
||||
onClick={() => {
|
||||
showCWvisible(text.record.studentId)
|
||||
}}>
|
||||
查看作业
|
||||
</a>
|
||||
:<div
|
||||
class="opa"
|
||||
style="color:#666;">
|
||||
查看作业
|
||||
</div>
|
||||
text.record.workScore == 1 ?
|
||||
<a
|
||||
class="opa"
|
||||
onClick={() => {
|
||||
showCWvisible(text.record.studentId);
|
||||
}}>
|
||||
查看作业
|
||||
</a>
|
||||
: <div
|
||||
class="opa"
|
||||
style="color:#666;">
|
||||
查看作业
|
||||
</div>
|
||||
}
|
||||
|
||||
</div>)
|
||||
|
||||
</div>);
|
||||
}
|
||||
},
|
||||
]);
|
||||
watch(() => data.value.length, () => {
|
||||
watch(() => data.value, () => {
|
||||
params.value.pid = data.value[coursePlanIndex.value]?.id || 0;
|
||||
tableRef.value.fetch();
|
||||
});
|
||||
@@ -384,7 +386,7 @@ const showExamAnswer = () => {
|
||||
const showCWvisible = (id) => {
|
||||
stuId.value = id;
|
||||
CWvisible.value = true;
|
||||
}
|
||||
};
|
||||
|
||||
const searchTaskList = () => tableRef.value.fetch();
|
||||
|
||||
@@ -405,7 +407,7 @@ function exportTaskStu() {
|
||||
|
||||
const hasten = () => {
|
||||
message.success("催促成功");
|
||||
console.log(data.value[coursePlanIndex.value])
|
||||
console.log(data.value[coursePlanIndex.value]);
|
||||
batchSendMessage({
|
||||
// courseId: props.datasource.courseId,//任务的Id
|
||||
courseId: data.value[coursePlanIndex.value].id,//任务的Id
|
||||
@@ -433,12 +435,14 @@ function resetStudentPage() {
|
||||
padding: 0px;
|
||||
}
|
||||
}
|
||||
|
||||
.RouterFaceStu {
|
||||
.ant-drawer-content-wrapper{
|
||||
.ant-drawer-content-wrapper {
|
||||
min-width: 1200px !important;
|
||||
width: 1200px !important;
|
||||
}
|
||||
}
|
||||
|
||||
.CopyModal {
|
||||
.ant-modal {
|
||||
width: 424px !important;
|
||||
|
||||
Reference in New Issue
Block a user