feat:增加项目-系统考试-查看答卷

This commit is contained in:
wyx
2023-02-13 10:52:29 +08:00
parent f896d6f3dd
commit 410c721aad
3 changed files with 308 additions and 2 deletions

View File

@@ -116,12 +116,15 @@
<!-- 导出成绩抽屉 -->
<EScore v-model:eScorevisible="eScorevisible" />
</a-drawer>
<!-- 查看答卷抽屉 -->
<CheckAnsware v-model:CAvisible="CAvisible" :datasource="datasource"/>
</template>
<script>
import { toRefs, reactive } from "vue";
import { message } from "ant-design-vue";
import EScore from "../ExportScore.vue";
import CheckAnsware from '../CheckAnsware.vue'
import * as api from '../../../api/indexTaskManage';
// import * as api from "../../../api/index";
@@ -129,6 +132,7 @@ export default {
name: "ProjectExamManage",
components: {
EScore,
CheckAnsware
},
props: {
TMvisible: {
@@ -302,8 +306,34 @@ export default {
className: "h",
customRender: ({record:{finishStatus}}) => ({1:'通过',2:'未通过'}[finishStatus] || '未开始'),
},
{
title: "操作",
dataIndex: "studentKid",
key: "studentKid",
width: 60,
align: "center",
ellipsis: true,
className: "h",
customRender: (text) => {
return (
<div class="racona">
<a
onClick={()=>{
state.studentKid = text.record.studentKid;
state.datasource = text.record;
state.CAvisible = true;
}}>
查看答卷
</a>
</div>
);
},
},
],
loadingData: true
loadingData: true,
studentKid: '',
CAvisible: false,
datasource: ''
});
const closeDrawer = () => {
@@ -358,6 +388,7 @@ export default {
status: state.projectName,
studentName: state.name,
}).then(res=>{
console.log(res)
state.tabledata = res.data.data.records;
state.tableDataTotal = res.data.data.total;
state.loadingData = false;