Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
T
text2video-frontend
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
周成波
text2video-frontend
Commits
7e4506a2
Commit
7e4506a2
authored
Mar 05, 2024
by
周成波
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
稍微改一下外观
parent
375960f7
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
15 deletions
+21
-15
index.vue
src/views/home/index.vue
+21
-15
No files found.
src/views/home/index.vue
View file @
7e4506a2
...
@@ -398,9 +398,9 @@ const onDraw = async () => {
...
@@ -398,9 +398,9 @@ const onDraw = async () => {
}
}
let
is_all_ok
=
true
;
let
is_all_ok
=
true
;
for
(
const
item
of
form
.
adapt_result_json
)
{
for
(
const
item
of
form
.
adapt_result_json
)
{
if
(
!
item
.
场景关键词
)
{
if
(
!
item
.
场景关键词
&&
!
item
.
角色关键词
)
{
ElMessage
({
ElMessage
({
message
:
`分镜
${
item
.
编号
}
场景关键词不能为空
`
,
message
:
`分镜
${
item
.
编号
}
关键词为空,请重新推理本镜
`
,
type
:
"error"
,
type
:
"error"
,
});
});
is_all_ok
=
false
;
is_all_ok
=
false
;
...
@@ -416,9 +416,9 @@ const onDraw = async () => {
...
@@ -416,9 +416,9 @@ const onDraw = async () => {
const
onDrawOne
=
async
(
item
:
any
)
=>
{
const
onDrawOne
=
async
(
item
:
any
)
=>
{
if
(
!
item
.
场景关键词
)
{
if
(
!
item
.
场景关键词
&&
!
item
.
角色关键词
)
{
ElMessage
({
ElMessage
({
message
:
"
场景关键词不能为空
"
,
message
:
"
本镜关键词为空,请重新推理本镜
"
,
type
:
"error"
,
type
:
"error"
,
});
});
return
;
return
;
...
@@ -567,9 +567,15 @@ const onChangeScreen = (val: string) => {
...
@@ -567,9 +567,15 @@ const onChangeScreen = (val: string) => {
}
}
const
showsdprompt
=
(
item
:
any
)
=>
{
const
showsdprompt
=
(
item
:
any
)
=>
{
if
(
!
item
.
画面描述词
)
{
ElMessage
({
message
:
"还未绘图,请绘图后查看"
,
type
:
"error"
,
});
return
;
}
// alert(item.画面描述词)
// alert(item.画面描述词)
// dialogData.value = `${item.画面描述词},${sd_prompt_prefix}===== 反向提示词 =====${sd_negative_prompt_prefix}`;
dialogData
.
value
=
`
${
item
.
画面描述词
}
,
${
sd_prompt_prefix
}
===== 反向提示词 =====
${
sd_negative_prompt_prefix
}
`
;
dialogData
.
value
=
`
${
item
.
场景关键词英文
}
,
${
item
.
角色关键词英文
}
,
${
sd_prompt_prefix
}
===== 反向提示词 =====
${
sd_negative_prompt_prefix
}
`
;
dialogVisible
.
value
=
true
;
// 打开对话框
dialogVisible
.
value
=
true
;
// 打开对话框
}
}
...
@@ -720,7 +726,7 @@ const onDeleteOne = (item: any) => {
...
@@ -720,7 +726,7 @@ const onDeleteOne = (item: any) => {
</el-form-item>
</el-form-item>
<el-form-item
label=
"分镜"
>
<el-form-item
label=
"分镜"
>
<el-table
:data=
"form.adapt_result_json"
border
style=
"width: 100%; z-index: calc(var(--el-table-index) -1)"
>
<el-table
:data=
"form.adapt_result_json"
border
style=
"width: 100%; z-index: calc(var(--el-table-index) -1)"
>
<el-table-column
prop=
"编号"
label=
"编号"
width=
"
60
"
/>
<el-table-column
prop=
"编号"
label=
"编号"
width=
"
55
"
/>
<el-table-column
prop=
"场景描述"
label=
"场景描述"
>
<el-table-column
prop=
"场景描述"
label=
"场景描述"
>
<
template
v-slot=
"scope"
>
<
template
v-slot=
"scope"
>
<el-input
v-model=
"scope.row.场景描述"
:autosize=
"true"
type=
"textarea"
></el-input>
<el-input
v-model=
"scope.row.场景描述"
:autosize=
"true"
type=
"textarea"
></el-input>
...
@@ -729,11 +735,11 @@ const onDeleteOne = (item: any) => {
...
@@ -729,11 +735,11 @@ const onDeleteOne = (item: any) => {
<el-table-column
prop=
"场景关键词"
label=
"场景关键词"
>
<el-table-column
prop=
"场景关键词"
label=
"场景关键词"
>
<
template
v-slot=
"scope"
>
<
template
v-slot=
"scope"
>
<el-text
class=
"mx-1"
size=
"small"
>
{{
scope
.
row
.
场景关键词
}}
</el-text>
<el-text
class=
"mx-1"
size=
"small"
>
{{
scope
.
row
.
场景关键词
}}
</el-text>
<hr
style=
"border: none;
border-top: 1px dashed #999
;"
>
<hr
style=
"border: none;
border-top: 1px dashed #999; margin: 5px 0
;"
>
<el-text
class=
"mx-1"
size=
"small"
>
{{
scope
.
row
.
场景关键词英文
}}
</el-text>
<el-text
class=
"mx-1"
size=
"small"
>
{{
scope
.
row
.
场景关键词英文
}}
</el-text>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
prop=
"角色"
label=
"角色"
>
<el-table-column
prop=
"角色"
label=
"角色"
width=
"150"
>
<
template
v-slot=
"scope"
>
<
template
v-slot=
"scope"
>
<el-text
class=
"mx-1"
size=
"small"
>
{{
scope
.
row
.
角色
}}
</el-text>
<el-text
class=
"mx-1"
size=
"small"
>
{{
scope
.
row
.
角色
}}
</el-text>
</
template
>
</
template
>
...
@@ -741,7 +747,7 @@ const onDeleteOne = (item: any) => {
...
@@ -741,7 +747,7 @@ const onDeleteOne = (item: any) => {
<el-table-column
prop=
"角色关键词"
label=
"角色关键词"
>
<el-table-column
prop=
"角色关键词"
label=
"角色关键词"
>
<
template
v-slot=
"scope"
>
<
template
v-slot=
"scope"
>
<el-text
class=
"mx-1"
size=
"small"
>
{{
scope
.
row
.
角色关键词
}}
</el-text>
<el-text
class=
"mx-1"
size=
"small"
>
{{
scope
.
row
.
角色关键词
}}
</el-text>
<hr
style=
"border: none;
border-top: 1px dashed #999
;"
>
<hr
style=
"border: none;
border-top: 1px dashed #999; margin: 5px 0
;"
>
<el-text
class=
"mx-1"
size=
"small"
>
{{
scope
.
row
.
角色关键词英文
}}
</el-text>
<el-text
class=
"mx-1"
size=
"small"
>
{{
scope
.
row
.
角色关键词英文
}}
</el-text>
</
template
>
</
template
>
</el-table-column>
</el-table-column>
...
@@ -761,9 +767,9 @@ const onDeleteOne = (item: any) => {
...
@@ -761,9 +767,9 @@ const onDeleteOne = (item: any) => {
</template>
</template>
-->
-->
<
template
v-slot=
"scope"
>
<
template
v-slot=
"scope"
>
<div
style=
"margin:
10
px 0"
><el-button
type=
"primary"
size=
"small"
@
click=
"onAdaptOneScene(scope.row)"
>
推理场景
</el-button></div>
<div
style=
"margin:
5
px 0"
><el-button
type=
"primary"
size=
"small"
@
click=
"onAdaptOneScene(scope.row)"
>
推理场景
</el-button></div>
<div
style=
"margin:
10
px 0"
><el-button
type=
"primary"
size=
"small"
@
click=
"onAdaptOneSceneRoles(scope.row)"
>
推理角色
</el-button></div>
<div
style=
"margin:
5
px 0"
><el-button
type=
"primary"
size=
"small"
@
click=
"onAdaptOneSceneRoles(scope.row)"
>
推理角色
</el-button></div>
<div
style=
"margin:
10
px 0"
><el-button
type=
"primary"
size=
"small"
@
click=
"onDrawOne(scope.row)"
>
绘图
</el-button></div>
<div
style=
"margin:
5
px 0"
><el-button
type=
"primary"
size=
"small"
@
click=
"onDrawOne(scope.row)"
>
绘图
</el-button></div>
<el-upload
<el-upload
class=
"upload-demo"
class=
"upload-demo"
ref=
"upload"
ref=
"upload"
...
@@ -777,7 +783,7 @@ const onDeleteOne = (item: any) => {
...
@@ -777,7 +783,7 @@ const onDeleteOne = (item: any) => {
>
>
<el-button
type=
"primary"
size=
"small"
>
上传图片
</el-button>
<el-button
type=
"primary"
size=
"small"
>
上传图片
</el-button>
</el-upload>
</el-upload>
<div
style=
"margin:
10
px 0"
><el-button
plain
size=
"small"
@
click=
"showsdprompt(scope.row)"
>
debug
</el-button></div>
<div
style=
"margin:
5
px 0"
><el-button
plain
size=
"small"
@
click=
"showsdprompt(scope.row)"
>
debug
</el-button></div>
<el-dialog
<el-dialog
v-model=
dialogVisible
v-model=
dialogVisible
width=
"80%"
width=
"80%"
...
@@ -850,7 +856,7 @@ const onDeleteOne = (item: any) => {
...
@@ -850,7 +856,7 @@ const onDeleteOne = (item: any) => {
<el-slider
v-model=
"bgm_volume"
show-input
:step=
"0.1"
:min=
"0"
:max=
"2"
:marks=
"default_data.bgm_volume_marks"
style=
"width: 600px"
/>
<el-slider
v-model=
"bgm_volume"
show-input
:step=
"0.1"
:min=
"0"
:max=
"2"
:marks=
"default_data.bgm_volume_marks"
style=
"width: 600px"
/>
</el-form-item>
</el-form-item>
<el-form-item>
<el-form-item>
<span
style=
"margin: 20px 20px"
>
字幕:
</span>
<span
style=
"margin: 20px 20px"
>
字幕
合成
:
</span>
<el-switch
v-model=
"form.if_need_subtitle"
active-value=
"true"
inactive-value=
"false"
/>
<el-switch
v-model=
"form.if_need_subtitle"
active-value=
"true"
inactive-value=
"false"
/>
<div
v-if=
"JSON.parse(form.if_need_subtitle.toLowerCase())"
>
<div
v-if=
"JSON.parse(form.if_need_subtitle.toLowerCase())"
>
<span
style=
"margin-left:30px;"
>
字体颜色:
</span>
<span
style=
"margin-left:30px;"
>
字体颜色:
</span>
...
...
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