UI_2022-02-10
e 3 years ago
parent dc9b1a9059
commit 05716b7fe9
  1. 10
      src/pages/match/list/index.vue
  2. 12
      src/pages/record/show/index.vue

@ -1,6 +1,6 @@
<template>
<div class="box">
<div class="banner-con"></div>
<div class="banner-con" :style="{'background-image': 'url('+this.listData[0].coverUrl +')'}"></div>
<div class="search">
<input type="text" placeholder="请输入竞赛名称" v-model="keyword" />
<button>搜索</button>
@ -123,7 +123,8 @@ export default {
loadIns: null,
contestIds: [],
isFirst: true,
timerList: []
timerList: [],
defaultBanner:'../../../assets/img/info-banner.png',
};
},
directives: {
@ -229,6 +230,11 @@ export default {
this.loadIns = Loading.service();
this.$get(`${this.api.onlineContestQuery}/${this.pageNo}/${this.pageSize}`, data).then(res => {
this.listData = res.contestList;
if (this.listData[0].coverUrl){
}else{
this.listData[0].coverUrl = defaultBanner
}
let contestIds = res.contestIds;
this.contestIds = contestIds;
let time = 60 * 60 * 1000 * 24;

@ -72,13 +72,13 @@
<p class="meta-title">实验数据</p>
</div>
<el-table :data="expData" class="table" border stripe header-align="center">
<el-table-column type="index" width="100" label="序号" align="center">
<el-table-column type="index" label="序号" align="center">
<template slot-scope="scope">
{{ scope.$index + 1 }}
</template>
</el-table-column>
<el-table-column prop="judgmentName" label="任务名称" width="150"></el-table-column>
<el-table-column v-if='project' prop="judgmentName" label="考核点">
<el-table-column prop="judgmentName" label="任务名称" align="center" width="140"></el-table-column>
<el-table-column v-if='project' prop="judgmentName" label="考核点" align="center" width="150">
<template slot-scope="scope">
<div v-for="(item, index) in scope.row.lcRuleRecords">
<span>
@ -87,7 +87,7 @@
</div>
</template>
</el-table-column>
<el-table-column prop="ruleAnswer" label="参考答案" width="300" style='word-wrap: break-word'>
<el-table-column prop="ruleAnswer" label="参考答案" width="250" style='word-wrap: break-word' align="center">
<template slot-scope="scope">
<div v-if='scope.row.lcRuleRecords'>
<div v-for="(item, index) in scope.row.lcRuleRecords">
@ -101,7 +101,7 @@
</div>
</template>
</el-table-column>
<el-table-column prop="userAnswer" label="学生答案" width="300">
<el-table-column prop="userAnswer" label="学生答案" width="250" align="center">
<template slot-scope="scope">
<div v-if='scope.row.lcRuleRecords'>
<div v-for="(item, index) in scope.row.lcRuleRecords">
@ -118,7 +118,7 @@
</div>
</template>
</el-table-column>
<el-table-column prop="score" label="得分" align="center" width="100"></el-table-column>
<el-table-column prop="score" label="得分" align="center"></el-table-column>
</el-table>
</div>
<div class="m-b-20">

Loading…
Cancel
Save