Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
S
saas-dml
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
EzijingWeb
saas-dml
Commits
32b21cbc
提交
32b21cbc
authored
11月 19, 2024
作者:
王鹏飞
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
chore: 修改直播视频类型为webm;隐藏AI相关功能;
上级
2a78f8d8
隐藏空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
15 行增加
和
8 行删除
+15
-8
FormBaseInfo.vue
...dules/live/product/management/components/FormBaseInfo.vue
+3
-1
FormDialog.vue
src/modules/live/talk/components/FormDialog.vue
+8
-1
Live.vue
src/modules/live/test/components/Live.vue
+1
-1
LivePlayback.vue
src/modules/live/test/components/LivePlayback.vue
+1
-1
RecordDialog.vue
src/modules/live/test/components/RecordDialog.vue
+1
-3
useLive.ts
src/modules/live/test/composables/useLive.ts
+1
-1
没有找到文件。
src/modules/live/product/management/components/FormBaseInfo.vue
浏览文件 @
32b21cbc
...
@@ -86,7 +86,9 @@ const unimportanceTotal = computed(() => {
...
@@ -86,7 +86,9 @@ const unimportanceTotal = computed(() => {
size=
"large"
size=
"large"
v-model=
"form.shopping_guide_short_title"
v-model=
"form.shopping_guide_short_title"
style=
"flex: 1"
/>
style=
"flex: 1"
/>
<el-button
type=
"primary"
plain
@
click=
"handleAIGenerate"
:loading=
"isLoading"
>
一键智能推荐
</el-button>
<el-button
type=
"primary"
plain
@
click=
"handleAIGenerate"
:loading=
"isLoading"
v-if=
"false"
>
一键智能推荐
</el-button
>
</div>
</div>
</el-form-item>
</el-form-item>
<el-form-item
<el-form-item
...
...
src/modules/live/talk/components/FormDialog.vue
浏览文件 @
32b21cbc
...
@@ -164,6 +164,7 @@ function handleAIGenerate(index) {
...
@@ -164,6 +164,7 @@ function handleAIGenerate(index) {
size=
"small"
size=
"small"
@
click=
"handleAIGenerate(1)"
@
click=
"handleAIGenerate(1)"
:loading=
"isLoading && aiActive === 1"
:loading=
"isLoading && aiActive === 1"
v-if=
"false"
>
AI一键生成
</el-button
>
AI一键生成
</el-button
>
>
</div>
</div>
...
@@ -181,6 +182,7 @@ function handleAIGenerate(index) {
...
@@ -181,6 +182,7 @@ function handleAIGenerate(index) {
size=
"small"
size=
"small"
@
click=
"handleAIGenerate(2)"
@
click=
"handleAIGenerate(2)"
:loading=
"isLoading && aiActive === 2"
:loading=
"isLoading && aiActive === 2"
v-if=
"false"
>
AI一键生成
</el-button
>
AI一键生成
</el-button
>
>
</div>
</div>
...
@@ -200,7 +202,12 @@ function handleAIGenerate(index) {
...
@@ -200,7 +202,12 @@ function handleAIGenerate(index) {
<el-col
:sm=
"24"
:md=
"12"
style=
"border-left: 1px solid #dcdfe6"
>
<el-col
:sm=
"24"
:md=
"12"
style=
"border-left: 1px solid #dcdfe6"
>
<div
style=
"text-align: center; margin-bottom: 20px"
>
<div
style=
"text-align: center; margin-bottom: 20px"
>
<h2
style=
"margin-bottom: 20px"
>
直播话术
</h2>
<h2
style=
"margin-bottom: 20px"
>
直播话术
</h2>
<el-button
type=
"primary"
size=
"large"
@
click=
"handleAIGenerate(3)"
:loading=
"isLoading && aiActive === 3"
>
<el-button
type=
"primary"
size=
"large"
@
click=
"handleAIGenerate(3)"
:loading=
"isLoading && aiActive === 3"
v-if=
"false"
>
{{
messages
.
length
?
'再次生成直播话术'
:
'AI生成直播话术'
}}
{{
messages
.
length
?
'再次生成直播话术'
:
'AI生成直播话术'
}}
</el-button>
</el-button>
</div>
</div>
...
...
src/modules/live/test/components/Live.vue
浏览文件 @
32b21cbc
...
@@ -115,7 +115,7 @@ const handleUpdateRecord = async (params) => {
...
@@ -115,7 +115,7 @@ const handleUpdateRecord = async (params) => {
const
uploading
=
ref
(
false
)
const
uploading
=
ref
(
false
)
const
handleUpload
=
()
=>
{
const
handleUpload
=
()
=>
{
const
dialog
=
useFileDialog
()
const
dialog
=
useFileDialog
()
dialog
.
open
({
accept
:
'video/
mp4
'
})
dialog
.
open
({
accept
:
'video/
*
'
})
dialog
.
onChange
(
async
([
file
])
=>
{
dialog
.
onChange
(
async
([
file
])
=>
{
uploading
.
value
=
true
uploading
.
value
=
true
try
{
try
{
...
...
src/modules/live/test/components/LivePlayback.vue
浏览文件 @
32b21cbc
...
@@ -19,7 +19,7 @@ const playing = ref(false)
...
@@ -19,7 +19,7 @@ const playing = ref(false)
const
duration
=
ref
(
0
)
const
duration
=
ref
(
0
)
onMounted
(()
=>
{
onMounted
(()
=>
{
video
.
value
.
onloadedmetadata
=
(
e
)
=>
{
video
.
value
.
onloadedmetadata
=
(
e
)
=>
{
duration
.
value
=
e
.
target
.
duration
duration
.
value
=
e
.
target
.
duration
===
Infinity
?
parseFloat
(
record
.
value
.
live_duration
)
:
e
.
target
.
duration
}
}
video
.
value
.
ontimeupdate
=
()
=>
{
video
.
value
.
ontimeupdate
=
()
=>
{
currentTime
.
value
=
video
.
value
.
currentTime
currentTime
.
value
=
video
.
value
.
currentTime
...
...
src/modules/live/test/components/RecordDialog.vue
浏览文件 @
32b21cbc
...
@@ -45,9 +45,7 @@ const listOptions = {
...
@@ -45,9 +45,7 @@ const listOptions = {
<AppList
v-bind=
"listOptions"
ref=
"appList"
>
<AppList
v-bind=
"listOptions"
ref=
"appList"
>
<template
#
table-x=
"
{ row }">
<template
#
table-x=
"
{ row }">
<el-button
text
type=
"primary"
>
<el-button
text
type=
"primary"
>
<router-link
<router-link
:to=
"
{ path: 'test/view', query: { ...$route.query, id: data.id, record_id: row.id } }"
:to=
"
{ path: 'test/view', query: { ...$route.query, id: data.id, record_id: row.id } }"
target="_blank"
>查看
</router-link
>查看
</router-link
>
>
</el-button>
</el-button>
...
...
src/modules/live/test/composables/useLive.ts
浏览文件 @
32b21cbc
...
@@ -50,7 +50,7 @@ export function useLive({ enabledUserMedia = true, onStart, onRecord, onStop }:
...
@@ -50,7 +50,7 @@ export function useLive({ enabledUserMedia = true, onStart, onRecord, onStop }:
// 初始化MediaRecorder
// 初始化MediaRecorder
const
initializeMediaRecorder
=
()
=>
{
const
initializeMediaRecorder
=
()
=>
{
if
(
!
stream
.
value
)
return
if
(
!
stream
.
value
)
return
mediaRecorder
=
new
MediaRecorder
(
stream
.
value
,
{
mimeType
:
'video/
mp4
'
})
mediaRecorder
=
new
MediaRecorder
(
stream
.
value
,
{
mimeType
:
'video/
webm
'
})
mediaRecorder
.
ondataavailable
=
handleDataAvailable
mediaRecorder
.
ondataavailable
=
handleDataAvailable
mediaRecorder
.
onstart
=
handleStart
mediaRecorder
.
onstart
=
handleStart
mediaRecorder
.
onstop
=
handleStop
mediaRecorder
.
onstop
=
handleStop
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论