Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
saas-dml
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
saas-dml
Commits
13088ff0
提交
13088ff0
authored
12月 10, 2025
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
优化评分
上级
79368625
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
17 行增加
和
8 行删除
+17
-8
CompetitionLive3.vue
src/modules/score/components/CompetitionLive3.vue
+7
-8
View.vue
src/modules/score/views/View.vue
+10
-0
没有找到文件。
src/modules/score/components/CompetitionLive3.vue
浏览文件 @
13088ff0
...
@@ -220,11 +220,11 @@ const isScoreTeacher = computed(() => {
...
@@ -220,11 +220,11 @@ const isScoreTeacher = computed(() => {
)
)
})
})
watchEffect
(()
=>
{
//
watchEffect(() => {
if
(
isScoreTeacher
.
value
)
{
//
if (isScoreTeacher.value) {
activeTab
.
value
=
scoreRules
.
value
.
length
-
1
//
activeTab.value = scoreRules.value.length - 1
}
//
}
})
//
})
const
disableTabPanel
=
(
type
)
=>
{
const
disableTabPanel
=
(
type
)
=>
{
if
(
type
==
5
||
type
==
6
)
return
false
if
(
type
==
5
||
type
==
6
)
return
false
...
@@ -234,12 +234,11 @@ const disableTabPanel = (type) => {
...
@@ -234,12 +234,11 @@ const disableTabPanel = (type) => {
<
template
>
<
template
>
<el-tabs
stretch
v-model=
"activeTab"
class=
"score-tabs"
>
<el-tabs
stretch
v-model=
"activeTab"
class=
"score-tabs"
>
<el-tab-pane
<el-tab-pane
v-for=
"(item, index) in scoreRules"
v-for=
"(item, index) in scoreRules
.filter((item) => !disableTabPanel(item.type))
"
:key=
"index"
:key=
"index"
:label=
"item.name"
:label=
"item.name"
:name=
"index + 1"
:name=
"index + 1"
lazy
lazy
>
:disabled=
"disableTabPanel(item.type)"
>
<!-- 商品品类管理 -->
<!-- 商品品类管理 -->
<template
v-if=
"item.type == 1"
>
<template
v-if=
"item.type == 1"
>
<ScoreCard
<ScoreCard
...
...
src/modules/score/views/View.vue
浏览文件 @
13088ff0
...
@@ -6,6 +6,7 @@ import { generatePrompt } from '../prompt'
...
@@ -6,6 +6,7 @@ import { generatePrompt } from '../prompt'
import
{
generatePrompt
as
generatePrompt2
}
from
'../prompt2'
import
{
generatePrompt
as
generatePrompt2
}
from
'../prompt2'
import
{
cloneDeep
}
from
'lodash-es'
import
{
cloneDeep
}
from
'lodash-es'
import
{
useUserStore
}
from
'@/stores/user'
import
{
useUserStore
}
from
'@/stores/user'
import
{
useEventListener
}
from
'@vueuse/core'
const
router
=
useRouter
()
const
router
=
useRouter
()
const
userStore
=
useUserStore
()
const
userStore
=
useUserStore
()
...
@@ -125,6 +126,15 @@ onMounted(() => {
...
@@ -125,6 +126,15 @@ onMounted(() => {
onBeforeUnmount
(()
=>
{
onBeforeUnmount
(()
=>
{
updateScore
({
id
,
check_status
:
2
})
updateScore
({
id
,
check_status
:
2
})
})
})
useEventListener
(
window
,
'pagehide'
,
()
=>
{
const
formData
=
new
FormData
()
formData
.
append
(
'id'
,
id
)
formData
.
append
(
'check_status'
,
'2'
)
formData
.
append
(
'experiment_id'
,
route
.
query
.
experiment_id
)
navigator
.
sendBeacon
(
'/api/lab/v1/experiment/live-student-record/score'
,
formData
)
})
</
script
>
</
script
>
<
template
>
<
template
>
<AppCard
title=
"成绩管理"
v-if=
"detail"
>
<AppCard
title=
"成绩管理"
v-if=
"detail"
>
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论