Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
phsl
/
new-api
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
d29fbd37
authored
Sep 19, 2025
by
feitianbubu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
feat: vidu video add starEnd and reference gen video show type
parent
b183f2f6
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
20 additions
and
3 deletions
+20
-3
web/src/components/table/task-logs/TaskLogsColumnDefs.jsx
+18
-3
web/src/constants/common.constant.js
+2
-0
No files found.
web/src/components/table/task-logs/TaskLogsColumnDefs.jsx
View file @
d29fbd37
...
@@ -35,8 +35,9 @@ import {
...
@@ -35,8 +35,9 @@ import {
Sparkles
,
Sparkles
,
}
from
'lucide-react'
;
}
from
'lucide-react'
;
import
{
import
{
TASK_ACTION_GENERATE
,
TASK_ACTION_FIRST_TAIL_GENERATE
,
TASK_ACTION_TEXT_GENERATE
,
TASK_ACTION_GENERATE
,
TASK_ACTION_REFERENCE_GENERATE
,
TASK_ACTION_TEXT_GENERATE
}
from
'../../../constants/common.constant'
;
}
from
'../../../constants/common.constant'
;
import
{
CHANNEL_OPTIONS
}
from
'../../../constants/channel.constants'
;
import
{
CHANNEL_OPTIONS
}
from
'../../../constants/channel.constants'
;
...
@@ -111,6 +112,18 @@ const renderType = (type, t) => {
...
@@ -111,6 +112,18 @@ const renderType = (type, t) => {
{
t
(
'文生视频'
)
}
{
t
(
'文生视频'
)
}
</
Tag
>
</
Tag
>
);
);
case
TASK_ACTION_FIRST_TAIL_GENERATE
:
return
(
<
Tag
color=
'blue'
shape=
'circle'
prefixIcon=
{
<
Sparkles
size=
{
14
}
/>
}
>
{
t
(
'首尾生视频'
)
}
</
Tag
>
);
case
TASK_ACTION_REFERENCE_GENERATE
:
return
(
<
Tag
color=
'blue'
shape=
'circle'
prefixIcon=
{
<
Sparkles
size=
{
14
}
/>
}
>
{
t
(
'参照生视频'
)
}
</
Tag
>
);
default
:
default
:
return
(
return
(
<
Tag
color=
'white'
shape=
'circle'
prefixIcon=
{
<
HelpCircle
size=
{
14
}
/>
}
>
<
Tag
color=
'white'
shape=
'circle'
prefixIcon=
{
<
HelpCircle
size=
{
14
}
/>
}
>
...
@@ -343,7 +356,9 @@ export const getTaskLogsColumns = ({
...
@@ -343,7 +356,9 @@ export const getTaskLogsColumns = ({
// 仅当为视频生成任务且成功,且 fail_reason 是 URL 时显示可点击链接
// 仅当为视频生成任务且成功,且 fail_reason 是 URL 时显示可点击链接
const
isVideoTask
=
const
isVideoTask
=
record
.
action
===
TASK_ACTION_GENERATE
||
record
.
action
===
TASK_ACTION_GENERATE
||
record
.
action
===
TASK_ACTION_TEXT_GENERATE
;
record
.
action
===
TASK_ACTION_TEXT_GENERATE
||
record
.
action
===
TASK_ACTION_FIRST_TAIL_GENERATE
||
record
.
action
===
TASK_ACTION_REFERENCE_GENERATE
;
const
isSuccess
=
record
.
status
===
'SUCCESS'
;
const
isSuccess
=
record
.
status
===
'SUCCESS'
;
const
isUrl
=
typeof
text
===
'string'
&&
/^https
?
:
\/\/
/
.
test
(
text
);
const
isUrl
=
typeof
text
===
'string'
&&
/^https
?
:
\/\/
/
.
test
(
text
);
if
(
isSuccess
&&
isVideoTask
&&
isUrl
)
{
if
(
isSuccess
&&
isVideoTask
&&
isUrl
)
{
...
...
web/src/constants/common.constant.js
View file @
d29fbd37
...
@@ -40,3 +40,5 @@ export const API_ENDPOINTS = [
...
@@ -40,3 +40,5 @@ export const API_ENDPOINTS = [
export
const
TASK_ACTION_GENERATE
=
'generate'
;
export
const
TASK_ACTION_GENERATE
=
'generate'
;
export
const
TASK_ACTION_TEXT_GENERATE
=
'textGenerate'
;
export
const
TASK_ACTION_TEXT_GENERATE
=
'textGenerate'
;
export
const
TASK_ACTION_FIRST_TAIL_GENERATE
=
'firstTailGenerate'
;
export
const
TASK_ACTION_REFERENCE_GENERATE
=
'referenceGenerate'
;
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment