|
@@ -38,7 +38,7 @@
|
|
|
</el-table-column>
|
|
|
<el-table-column label="操作">
|
|
|
<template slot-scope="scope">
|
|
|
- <el-button size="mini" type="text" @click="particulars(scope.row['id'])" >查看项目</el-button>
|
|
|
+ <el-button size="mini" type="text" @click="lookjq(scope.row['projectId'],scope.row['questionSolverType'])" >查看项目</el-button>
|
|
|
</template>
|
|
|
</el-table-column>
|
|
|
</el-table>
|
|
@@ -98,7 +98,7 @@ export default {
|
|
|
const header = []
|
|
|
header.push({ label: '用户ID', prop: 'uid' })
|
|
|
header.push({ label: '用户名称', prop: 'uname', sortable: 'custom' })
|
|
|
- header.push({ label: 'id', prop: 'id', sortable: 'custom' })
|
|
|
+ // header.push({ label: 'id', prop: 'id', sortable: 'custom' })
|
|
|
header.push({ label: '状态', prop: 'status', sortable: 'custom' })
|
|
|
header.push({ label: '参赛时间', prop: 'enterTime', sortable: 'custom' })
|
|
|
header.push({ label: '发布时间', prop: 'endTime', sortable: 'custom' })
|
|
@@ -106,15 +106,15 @@ export default {
|
|
|
header.push({ label: '评审员名称', prop: 'reviewName', sortable: 'custom' })
|
|
|
header.push({ label: '评语', prop: 'reviewContent', sortable: 'custom' })
|
|
|
header.push({ label: '评分', prop: 'score', sortable: 'custom' })
|
|
|
- header.push({ label: '大赛id', prop: 'megagameId', sortable: 'custom' })
|
|
|
+ // header.push({ label: '大赛id', prop: 'megagameId', sortable: 'custom' })
|
|
|
header.push({ label: '大赛标题', prop: 'megagameTitle', sortable: 'custom' })
|
|
|
- header.push({ label: '大赛状态', prop: 'megagameStatus', sortable: 'custom' })
|
|
|
- header.push({ label: '题目ID', prop: 'questionId', sortable: 'custom' })
|
|
|
+ // header.push({ label: '大赛状态', prop: 'megagameStatus', sortable: 'custom' })
|
|
|
+ // header.push({ label: '题目ID', prop: 'questionId', sortable: 'custom' })
|
|
|
header.push({ label: '题目标题', prop: 'questionTitle', sortable: 'custom' })
|
|
|
- header.push({ label: '选题方式', prop: 'questionSelectionWay', sortable: 'custom' })
|
|
|
- header.push({ label: '业务类型', prop: 'questionBusinessType', sortable: 'custom' })
|
|
|
+ // header.push({ label: '选题方式', prop: 'questionSelectionWay', sortable: 'custom' })
|
|
|
+ // header.push({ label: '业务类型', prop: 'questionBusinessType', sortable: 'custom' })
|
|
|
header.push({ label: '求解器类型', prop: 'questionSolverType', sortable: 'custom' })
|
|
|
- header.push({ label: '题目分值', prop: 'questionScore', sortable: 'custom' })
|
|
|
+ // header.push({ label: '题目分值', prop: 'questionScore', sortable: 'custom' })
|
|
|
header.push({ label: '难度级别', prop: 'questionRank', sortable: 'custom' })
|
|
|
// header.push({ label: '操作', prop: 'operation' })
|
|
|
this.headerData = header;
|
|
@@ -152,10 +152,10 @@ export default {
|
|
|
};
|
|
|
switch (row.questionRank) {
|
|
|
case "1":
|
|
|
- row.questionRank = "普通";
|
|
|
+ row.questionRank = "学生";
|
|
|
break;
|
|
|
case "2":
|
|
|
- row.questionRank ="一般";
|
|
|
+ row.questionRank ="专业";
|
|
|
break;
|
|
|
case "3":
|
|
|
row.questionRank = "困难";
|
|
@@ -191,7 +191,35 @@ export default {
|
|
|
})
|
|
|
.catch((err) => {})
|
|
|
},
|
|
|
-
|
|
|
+ // 查看项目
|
|
|
+ lookjq(projectId,projectType) {
|
|
|
+ const params = {
|
|
|
+ transCode: 'A00006',
|
|
|
+ }
|
|
|
+ let lesseeId=this.$store.getters.lesseeId;
|
|
|
+ request(params)
|
|
|
+ .then((res) => {
|
|
|
+ console.log(res)
|
|
|
+
|
|
|
+ this.$message.success(' 即将进入求解器')
|
|
|
+ console.log( res.authCode);
|
|
|
+ setTimeout(() => {
|
|
|
+ window.open(
|
|
|
+ this.$store.getters.cfdUrl +
|
|
|
+ "?authCode=" +
|
|
|
+ res.authCode +
|
|
|
+ "&projectId=" +
|
|
|
+ projectId +
|
|
|
+ "&projectType=" +
|
|
|
+ projectType+
|
|
|
+ '&lesseeId=' +
|
|
|
+ lesseeId,
|
|
|
+ "_blank"
|
|
|
+ );
|
|
|
+ }, 1000);
|
|
|
+ })
|
|
|
+ .catch((err) => {})
|
|
|
+ },
|
|
|
onSubmit(){
|
|
|
this.getResource(this.form.name,this.form.id)
|
|
|
},
|