Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
saas-dml
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
saas-dml
Commits
5e72e11b
提交
5e72e11b
authored
8月 03, 2026
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: update
上级
53e29aa7
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
39 行增加
和
36 行删除
+39
-36
useScore.ts
src/modules/score/composables/useScore.ts
+20
-12
View.vue
src/modules/score/views/View.vue
+19
-24
没有找到文件。
src/modules/score/composables/useScore.ts
浏览文件 @
5e72e11b
import
{
getScoreList
,
getScoreDetail
,
updateScore
}
from
'../api'
import
{
useUserStore
}
from
'@/stores/user'
import
{
useChat
}
from
'@ezijing/ai-vue'
import
{
generatePrompt
}
from
'../prompt'
import
{
generatePrompt
as
generatePrompt2
}
from
'../prompt2'
//
import { generatePrompt } from '../prompt'
//
import { generatePrompt as generatePrompt2 } from '../prompt2'
import
{
ElMessage
}
from
'element-plus'
import
{
importType
,
...
...
@@ -93,13 +93,13 @@ export function useScore() {
const
competitionRule
=
detail
.
competition_rule
let
prompt
=
''
if
(
competitionRule
?.
competition
==
1
)
{
if
(
competitionRule
?.
questions
==
1
)
{
prompt
=
generatePrompt
(
detail
.
live_data
)
}
else
{
prompt
=
generatePrompt2
(
detail
.
live_data
)
}
}
else
{
//
if (competitionRule?.competition == 1) {
//
if (competitionRule?.questions == 1) {
//
prompt = generatePrompt(detail.live_data)
//
} else {
//
prompt = generatePrompt2(detail.live_data)
//
}
//
} else {
const
rules
=
JSON
.
parse
(
competitionRule
?.
config
||
'{}'
)?.
rules
||
[]
rules
.
forEach
((
item
:
any
)
=>
{
if
(
item
.
rule_mode
!=
2
)
return
...
...
@@ -147,9 +147,13 @@ ${JSON.stringify(liveData.speeches)}`
"commodity": {
"score": 5,
"comment": "这是评语"
}
},
"speech": {
"score": 5,
"comment": "这是评语"
},
}`
}
//
}
const
messages
=
[
{
role
:
'system'
,
...
...
@@ -157,7 +161,11 @@ ${JSON.stringify(liveData.speeches)}`
},
{
role
:
'user'
,
content
:
prompt
},
]
const
result
=
await
generateText
({
messages
,
response_format
:
{
type
:
'json_object'
}
}
as
any
)
const
result
=
await
generateText
({
model
:
'deepseek-v4-flash-260425'
,
messages
,
response_format
:
{
type
:
'json_object'
},
}
as
any
)
if
(
!
result
)
return
try
{
...
...
src/modules/score/views/View.vue
浏览文件 @
5e72e11b
...
...
@@ -11,8 +11,6 @@ import { useEventListener } from '@vueuse/core'
const
router
=
useRouter
()
const
userStore
=
useUserStore
()
const
CompetitionLive
=
defineAsyncComponent
(()
=>
import
(
'../components/CompetitionLive.vue'
))
const
CompetitionLiveProd
=
defineAsyncComponent
(()
=>
import
(
'../components/CompetitionLiveProd.vue'
))
const
CompetitionLive3
=
defineAsyncComponent
(()
=>
import
(
'../components/CompetitionLive3.vue'
))
const
CompetitionOperations
=
defineAsyncComponent
(()
=>
import
(
'../components/CompetitionOperations.vue'
))
const
route
=
useRoute
()
...
...
@@ -162,29 +160,14 @@ useEventListener(window, 'pagehide', () => {
</div>
</div>
<el-divider
/>
<!-- 网络主播赛项 -->
<template
v-if=
"competitionRule.competition == 1"
>
<!-- “悦颜坊”美妆护肤案例 -->
<CompetitionLive
:detail=
"detail"
@
save=
"handleSave"
v-model:scoreDetails=
"scoreDetails"
v-if=
"competitionRule.questions == 1"
/>
<!-- 襄阳牛肉面2桶装(有牛肉) -->
<CompetitionLiveProd
:detail=
"detail"
@
save=
"handleSave"
v-model:scoreDetails=
"scoreDetails"
v-else
/>
</
template
>
<!-- 全媒体运营赛项 -->
<CompetitionOperations
:detail=
"detail"
@
save=
"handleSave"
v-model:scoreDetails=
"scoreDetails"
v-else-if=
"competitionRule.competition == 2"
/>
<!-- 互联网营销师(直播销售) -->
<CompetitionLive3
:detail=
"detail"
@
save=
"handleSave"
v-model:scoreDetails=
"scoreDetails"
v-else-if=
"competitionRule.competition == 3"
/>
v-if=
"competitionRule.competition == 2 || competitionRule.competition == 4"
/>
<!-- 网络主播赛项 -->
<CompetitionLive3
:detail=
"detail"
@
save=
"handleSave"
v-model:scoreDetails=
"scoreDetails"
v-else
/>
</AppCard>
</
template
>
...
...
@@ -198,11 +181,23 @@ useEventListener(window, 'pagehide', () => {
display
:
none
;
}
@media
(
max-width
:
767px
)
{
:deep
(
.el-tabs__header
)
{
width
:
100%
;
}
:deep
(
.el-tabs__header
)
{
width
:
100%
;
}
:deep
(
.el-tabs__nav-wrap
),
:deep
(
.el-tabs__nav-scroll
)
{
overflow-x
:
auto
;
overflow-y
:
hidden
;
}
:deep
(
.el-tabs__nav
)
{
display
:
inline-flex
;
flex-wrap
:
nowrap
;
}
:deep
(
.el-tabs__item
)
{
flex-shrink
:
0
;
font-size
:
13px
;
padding
:
0
8px
;
}
:deep
(
.el-tabs__nav-scroll
)
{
overflow-x
:
auto
;
overflow-y
:
hidden
;
}
:deep
(
.el-tabs__nav
)
{
display
:
inline-flex
;
flex-wrap
:
nowrap
;
}
:deep
(
.el-tabs__item
)
{
flex-shrink
:
0
;
font-size
:
13px
;
padding
:
0
8px
;
}
}
}
.score-header
{
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论