Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
saas-lab
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
saas-lab
Commits
f539f7cd
提交
f539f7cd
authored
9月 26, 2023
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: update
上级
cd15f478
隐藏空白字符变更
内嵌
并排
正在显示
3 个修改的文件
包含
42 行增加
和
20 行删除
+42
-20
ScoreDialog.vue
src/modules/admin/contest/check/components/ScoreDialog.vue
+8
-9
SyncExamDialog.vue
...modules/admin/contest/check/components/SyncExamDialog.vue
+7
-8
Index.vue
src/modules/admin/contest/dashboard/views/Index.vue
+27
-3
没有找到文件。
src/modules/admin/contest/check/components/ScoreDialog.vue
浏览文件 @
f539f7cd
...
@@ -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>
...
...
src/modules/admin/contest/check/components/SyncExamDialog.vue
浏览文件 @
f539f7cd
...
@@ -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>
</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"
>
...
...
src/modules/admin/contest/dashboard/views/Index.vue
浏览文件 @
f539f7cd
...
@@ -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
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论