提交 f539f7cd authored 作者: 王鹏飞's avatar 王鹏飞

chore: update

上级 cd15f478
...@@ -82,15 +82,14 @@ function handleSubmit() { ...@@ -82,15 +82,14 @@ function handleSubmit() {
<el-table-column label="占比(%)" prop="ratio" align="center"></el-table-column> <el-table-column label="占比(%)" prop="ratio" align="center"></el-table-column>
<el-table-column label="评分" prop="score" align="center"> <el-table-column label="评分" prop="score" align="center">
<template #default="{ row }"> <template #default="{ row }">
<el-input-number <el-input-number :controls="false" v-model="row.score" step-strictly :step="0.1" :min="0" :max="row.old_score" style="width: 100%" />
:controls="false" </template>
v-model="row.score" </el-table-column>
step-strictly <el-table-column label="操作" prop="score" align="center">
:step="0.1" <template #default="{ row }">
:min="0" <el-button text type="primary" v-if="row.type === '2'">
:max="row.old_score" <a :href="`https://qa-center.ezijing.com/exam/examDetail?exam_id=${row.exam_id}&id_number=${detail.id_number}`" target="_blank">查看</a>
:disabled="row.type === '2'" </el-button>
style="width: 100%" />
</template> </template>
</el-table-column> </el-table-column>
</el-table> </el-table>
......
...@@ -31,14 +31,13 @@ function scoreMethodText(value: string) { ...@@ -31,14 +31,13 @@ function scoreMethodText(value: string) {
<template> <template>
<el-dialog title="同步1+X考试成绩" :close-on-click-modal="false"> <el-dialog title="同步1+X考试成绩" :close-on-click-modal="false">
<el-form> <el-form>
<el-row justify="space-between"> <el-form-item label="赛项名称">
<el-form-item label="赛项名称"> <el-select v-model="form.competition" value-key="id">
<el-select v-model="form.competition" value-key="id"> <el-option v-for="item in competitions" :key="item.id" :label="item.name" :value="item"></el-option>
<el-option v-for="item in competitions" :key="item.id" :label="item.name" :value="item"></el-option> </el-select>
</el-select> &nbsp;&nbsp;
</el-form-item> <el-button type="primary" :disabled="!form.competition" @click="handleSync">一键同步成绩</el-button>
<el-button type="primary" :disabled="!form.competition" @click="handleSync">一键同步</el-button> </el-form-item>
</el-row>
</el-form> </el-form>
<el-table :data="form.competition?.rules"> <el-table :data="form.competition?.rules">
<el-table-column label="评分方法" prop="type" align="center" width="200"> <el-table-column label="评分方法" prop="type" align="center" width="200">
......
...@@ -178,7 +178,9 @@ function getModuleStatus(row: any, index: number) { ...@@ -178,7 +178,9 @@ function getModuleStatus(row: any, index: number) {
const status: number = list[index].status const status: number = list[index].status
if (status == 0) return '<span class="not-started">未开始</span>' if (status == 0) return '<span class="not-started">未开始</span>'
if (status == 1) return '<span class="is-inProgress">进行中</span>' if (status == 1) return '<span class="is-inProgress">进行中</span>'
if (status == 2) return '<span class="is-completed">已完成</span>' if (status == 2) return '<span class="is-completed">全部完成</span>'
if (status == 3) return '<span class="is-completed2">部分完成</span>'
if (status == 4) return '<span class="is-completed3">未完成</span>'
} catch (error) { } catch (error) {
// console.log(error) // console.log(error)
} }
...@@ -270,7 +272,7 @@ function getModuleStatus(row: any, index: number) { ...@@ -270,7 +272,7 @@ function getModuleStatus(row: any, index: number) {
} }
} }
.is-completed { .is-inProgress {
display: inline-block; display: inline-block;
width: 60px; width: 60px;
height: 24px; height: 24px;
...@@ -281,7 +283,7 @@ function getModuleStatus(row: any, index: number) { ...@@ -281,7 +283,7 @@ function getModuleStatus(row: any, index: number) {
background-color: rgba(211, 242, 216, 1); background-color: rgba(211, 242, 216, 1);
color: rgba(32, 176, 48, 1); color: rgba(32, 176, 48, 1);
} }
.is-inProgress { .is-completed {
display: inline-block; display: inline-block;
width: 60px; width: 60px;
height: 24px; height: 24px;
...@@ -292,6 +294,28 @@ function getModuleStatus(row: any, index: number) { ...@@ -292,6 +294,28 @@ function getModuleStatus(row: any, index: number) {
background-color: rgba(251, 219, 225, 1); background-color: rgba(251, 219, 225, 1);
color: rgba(171, 42, 65, 1); color: rgba(171, 42, 65, 1);
} }
.is-completed2 {
display: inline-block;
width: 60px;
height: 24px;
border-radius: 4px;
font-size: 12px;
line-height: 24px;
text-align: center;
background-color: #fbf0dc;
color: #e3983e;
}
.is-completed3 {
display: inline-block;
width: 60px;
height: 24px;
border-radius: 4px;
font-size: 12px;
line-height: 24px;
text-align: center;
background-color: rgb(225, 239, 255);
color: rgb(59, 146, 254);
}
.not-started { .not-started {
display: inline-block; display: inline-block;
width: 60px; width: 60px;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论