mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 03:46:45 +08:00
feat:增加查看作业
This commit is contained in:
@@ -80,7 +80,7 @@
|
||||
<div class="wz">导出作业</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="line">
|
||||
<!-- <div class="line">
|
||||
<div class="inline">
|
||||
<div class="left">
|
||||
<div class="img"></div>
|
||||
@@ -122,7 +122,7 @@
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
<!-- <div class="btnn">
|
||||
<!-- <div class="btnn">
|
||||
<button class="btn1" @click="closeDrawer">取消</button>
|
||||
<button class="btn2" @click="closeDrawer">确定</button>
|
||||
</div>-->
|
||||
@@ -219,8 +219,8 @@ export default {
|
||||
//{
|
||||
// id: 2,
|
||||
// value: "2",
|
||||
// label: "进行中",
|
||||
// },
|
||||
// label: "进行中",
|
||||
// },
|
||||
],
|
||||
selectedRowKeys: [],
|
||||
|
||||
@@ -317,7 +317,7 @@ export default {
|
||||
);
|
||||
},
|
||||
},
|
||||
/** {
|
||||
/** {
|
||||
title: "学员关卡",
|
||||
dataIndex: "chapterName",
|
||||
key: "chapterName",
|
||||
@@ -334,7 +334,7 @@ export default {
|
||||
</div>
|
||||
);
|
||||
},
|
||||
},*/
|
||||
},*/
|
||||
{
|
||||
title: "作业成绩",
|
||||
dataIndex: "workScore",
|
||||
@@ -384,7 +384,8 @@ export default {
|
||||
align: "center",
|
||||
ellipsis: true,
|
||||
className: "h",
|
||||
customRender: ({record:{assessmentScore}}) => (assessmentScore ? Math.round(assessmentScore * 100) / 100 : "-"),
|
||||
customRender: ({ record: { assessmentScore } }) =>
|
||||
assessmentScore ? Math.round(assessmentScore * 100) / 100 : "-",
|
||||
},
|
||||
{
|
||||
title: "任务状态",
|
||||
@@ -411,15 +412,15 @@ export default {
|
||||
);
|
||||
},
|
||||
},
|
||||
// {
|
||||
// title: "操作",
|
||||
// dataIndex: "operation",
|
||||
// key: "operation",
|
||||
// width: 100,
|
||||
// align: "center",
|
||||
// ellipsis: true,
|
||||
// className: "h",
|
||||
// },
|
||||
{
|
||||
title: "操作",
|
||||
dataIndex: "operation",
|
||||
key: "operation",
|
||||
width: 100,
|
||||
align: "center",
|
||||
ellipsis: true,
|
||||
className: "h",
|
||||
},
|
||||
],
|
||||
exportHomeWorkV: false,
|
||||
downloadUrl: null,
|
||||
@@ -440,7 +441,7 @@ export default {
|
||||
<a-button
|
||||
type="link"
|
||||
class="operation"
|
||||
style="cursor:pointer;margin-right:10px;"
|
||||
style="cursor:pointer;margin-right:10px;color: rgba(56, 125, 247, 1)"
|
||||
onClick={() => {
|
||||
state.CWvisible = true;
|
||||
}}
|
||||
@@ -450,7 +451,7 @@ export default {
|
||||
<a-button
|
||||
type="link"
|
||||
class="operation"
|
||||
style="cursor:pointer;margin-right:10px;"
|
||||
style="cursor:pointer;margin-right:10px;color: rgba(56, 125, 247, 1)"
|
||||
onClick={() => {
|
||||
state.CQvisible = true;
|
||||
}}
|
||||
@@ -471,7 +472,7 @@ export default {
|
||||
<a-button
|
||||
type="link"
|
||||
class="operation"
|
||||
style="cursor:pointer;margin-right:10px;"
|
||||
style="margin-right:10px;color:rgba(56, 125, 247, 0.5)"
|
||||
disabled
|
||||
>
|
||||
查看作业
|
||||
@@ -479,7 +480,7 @@ export default {
|
||||
<a-button
|
||||
type="link"
|
||||
class="operation"
|
||||
style="cursor:pointer;margin-right:10px;"
|
||||
style="margin-right:10px;color:rgba(56, 125, 247, 0.5)"
|
||||
disabled
|
||||
>
|
||||
查看答卷
|
||||
@@ -575,7 +576,7 @@ export default {
|
||||
function resetTaskList() {
|
||||
state.currentPage = 1;
|
||||
state.name = "";
|
||||
state.projectName =undefined;
|
||||
state.projectName = undefined;
|
||||
state.tableDataTotal = -1;
|
||||
state.tableDataTotal2 = 0;
|
||||
getStudent();
|
||||
@@ -592,10 +593,7 @@ export default {
|
||||
function exportTaskStu() {
|
||||
console.log("props.datasource", props.datasource);
|
||||
window.open(
|
||||
`${
|
||||
process.env.VUE_APP_BASE_API}/admin/student/exportTaskStudent?currentStageId=${
|
||||
props.datasource.chapterId
|
||||
}&type=3&pid=${props.datasource.courseId}&thirdType=5&taskId=${props.datasource.routerTaskId}`
|
||||
`${process.env.VUE_APP_BASE_API}/admin/student/exportTaskStudent?currentStageId=${props.datasource.chapterId}&type=3&pid=${props.datasource.courseId}&thirdType=5&taskId=${props.datasource.routerTaskId}`
|
||||
);
|
||||
// api
|
||||
// .exportTaskStudent({
|
||||
@@ -630,8 +628,8 @@ export default {
|
||||
.then((res) => {
|
||||
console.log("导出作业", res.data.data);
|
||||
if (res.data.code === 200) {
|
||||
// message.destroy();
|
||||
// message.success("导出作业成功");
|
||||
// message.destroy();
|
||||
// message.success("导出作业成功");
|
||||
state.exportHomeWorkV = true;
|
||||
state.downloadUrl = res.data.data;
|
||||
}
|
||||
@@ -648,7 +646,8 @@ export default {
|
||||
console.log("props.datasource", props.datasource);
|
||||
window.open(
|
||||
`${
|
||||
process.env.VUE_APP_BASE_API}/admin/student/exportHomeWork?currentStageId=${
|
||||
process.env.VUE_APP_BASE_API
|
||||
}/admin/student/exportHomeWork?currentStageId=${
|
||||
props.datasource.chapterId
|
||||
}&type=${2}&pid=${props.datasource.routerId}&taskId=${
|
||||
props.datasource.routerTaskId
|
||||
|
||||
Reference in New Issue
Block a user