mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-09 19:06:45 +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="btn btn1" @click="batchFinish" style="margin-right: 20px">
|
||||||
<div class="wz">批量标注完成</div>
|
<div class="wz">批量标注完成</div>
|
||||||
</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="btn btn1" style="margin-right: 20px;margin-left: 20px">
|
||||||
<div class="img1"></div>
|
<div class="img1"></div>
|
||||||
<div class="wz">批量录入成绩</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 offcoursePlanId = computed(() => data.value[coursePlanIndex.value]?.id || "");
|
||||||
const homeWorkId = computed(() => data.value[coursePlanIndex.value]?.homeWorkId || "");
|
const homeWorkId = computed(() => data.value[coursePlanIndex.value]?.homeWorkId || "");
|
||||||
const infoId = computed(() => props.type === 1 ? props.datasource.projectId : props.datasource.routerId);
|
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 stuId = ref("");
|
||||||
const columns = ref([
|
const columns = ref([
|
||||||
{
|
{
|
||||||
@@ -251,7 +253,7 @@ const columns = ref([
|
|||||||
align: "center",
|
align: "center",
|
||||||
ellipsis: true,
|
ellipsis: true,
|
||||||
className: "h",
|
className: "h",
|
||||||
customRender: ({ record: { workScore } }) => <span> {workScore!==-2?workScore:"-" || "-"}</span>
|
customRender: ({ record: { workScore } }) => <span> {workScore !== -2 ? workScore : "-" || "-"}</span>
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
title: "考试成绩",
|
title: "考试成绩",
|
||||||
@@ -298,51 +300,51 @@ const columns = ref([
|
|||||||
customRender: (text) => {
|
customRender: (text) => {
|
||||||
return (
|
return (
|
||||||
<div style="display:flex;justify-content:center;">
|
<div style="display:flex;justify-content:center;">
|
||||||
<a
|
<a
|
||||||
class="opa"
|
class="opa"
|
||||||
style="margin-right:12px;"
|
style="margin-right:12px;"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
showExamAnswer(text)
|
showExamAnswer(text);
|
||||||
}}>
|
}}>
|
||||||
{ text.record.answerId?"查看答卷":""}
|
{text.record.answerId ? "查看答卷" : ""}
|
||||||
</a>
|
</a>
|
||||||
{
|
{
|
||||||
text.record.answerId?
|
text.record.answerId ?
|
||||||
<a
|
<a
|
||||||
class="opa"
|
class="opa"
|
||||||
style="margin-right:12px;"
|
style="margin-right:12px;"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
showExamAnswer(text)
|
showExamAnswer(text);
|
||||||
}}>
|
}}>
|
||||||
查看答卷
|
查看答卷
|
||||||
</a>
|
</a>
|
||||||
:<div
|
: <div
|
||||||
class="opa"
|
class="opa"
|
||||||
style="margin-right:12px;color:#666">
|
style="margin-right:12px;color:#666">
|
||||||
查看答卷
|
查看答卷
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
{
|
{
|
||||||
text.record.workScore==1?
|
text.record.workScore == 1 ?
|
||||||
<a
|
<a
|
||||||
class="opa"
|
class="opa"
|
||||||
onClick={() => {
|
onClick={() => {
|
||||||
showCWvisible(text.record.studentId)
|
showCWvisible(text.record.studentId);
|
||||||
}}>
|
}}>
|
||||||
查看作业
|
查看作业
|
||||||
</a>
|
</a>
|
||||||
:<div
|
: <div
|
||||||
class="opa"
|
class="opa"
|
||||||
style="color:#666;">
|
style="color:#666;">
|
||||||
查看作业
|
查看作业
|
||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
|
|
||||||
</div>)
|
</div>);
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
]);
|
]);
|
||||||
watch(() => data.value.length, () => {
|
watch(() => data.value, () => {
|
||||||
params.value.pid = data.value[coursePlanIndex.value]?.id || 0;
|
params.value.pid = data.value[coursePlanIndex.value]?.id || 0;
|
||||||
tableRef.value.fetch();
|
tableRef.value.fetch();
|
||||||
});
|
});
|
||||||
@@ -384,7 +386,7 @@ const showExamAnswer = () => {
|
|||||||
const showCWvisible = (id) => {
|
const showCWvisible = (id) => {
|
||||||
stuId.value = id;
|
stuId.value = id;
|
||||||
CWvisible.value = true;
|
CWvisible.value = true;
|
||||||
}
|
};
|
||||||
|
|
||||||
const searchTaskList = () => tableRef.value.fetch();
|
const searchTaskList = () => tableRef.value.fetch();
|
||||||
|
|
||||||
@@ -405,7 +407,7 @@ function exportTaskStu() {
|
|||||||
|
|
||||||
const hasten = () => {
|
const hasten = () => {
|
||||||
message.success("催促成功");
|
message.success("催促成功");
|
||||||
console.log(data.value[coursePlanIndex.value])
|
console.log(data.value[coursePlanIndex.value]);
|
||||||
batchSendMessage({
|
batchSendMessage({
|
||||||
// courseId: props.datasource.courseId,//任务的Id
|
// courseId: props.datasource.courseId,//任务的Id
|
||||||
courseId: data.value[coursePlanIndex.value].id,//任务的Id
|
courseId: data.value[coursePlanIndex.value].id,//任务的Id
|
||||||
@@ -433,12 +435,14 @@ function resetStudentPage() {
|
|||||||
padding: 0px;
|
padding: 0px;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.RouterFaceStu {
|
.RouterFaceStu {
|
||||||
.ant-drawer-content-wrapper{
|
.ant-drawer-content-wrapper {
|
||||||
min-width: 1200px !important;
|
min-width: 1200px !important;
|
||||||
width: 1200px !important;
|
width: 1200px !important;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
.CopyModal {
|
.CopyModal {
|
||||||
.ant-modal {
|
.ant-modal {
|
||||||
width: 424px !important;
|
width: 424px !important;
|
||||||
|
|||||||
Reference in New Issue
Block a user