feat:增加路径图-系统考试-查看答卷

This commit is contained in:
wyx
2023-02-13 11:14:00 +08:00
parent 7beb752da0
commit f7ae61a6e7

View File

@@ -115,12 +115,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";
@@ -128,6 +131,7 @@ export default {
name: "RouterExaminationManage",
components: {
EScore,
CheckAnsware
},
props: {
ExaminationModelVisible: {
@@ -320,8 +324,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 = () => {