Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
D
digitalPerson-fe
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
digitalPerson
digitalPerson-fe
Commits
61f2cd02
Commit
61f2cd02
authored
Sep 30, 2024
by
tyyin lan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'shirlyn'
parents
537c76c7
f8a8900e
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
202 additions
and
353 deletions
+202
-353
template.ts
src/apis/template.ts
+11
-2
recommend-template.vue
src/views/workbench/components/recommend-template.vue
+186
-99
template-preview-modal.vue
src/views/workbench/components/template-preview-modal.vue
+5
-5
templateData.ts
src/views/workbench/templateData.ts
+0
-247
No files found.
src/apis/template.ts
View file @
61f2cd02
import
{
request
}
from
'@/utils/request'
// 获取模板
export
function
fetchDigitalHumanTemplateStatusList
<
T
>
(
payload
:
object
)
{
return
request
.
post
<
T
>
(
'/aiDigitalHumanTemplateStatusRest/getDigitalHumanTemplateStatusList.json'
,
payload
)
export
function
fetchDigitalHumanTemplateStatusList
<
T
>
(
templateType
:
string
,
pagingInfo
:
{
pageNo
:
number
;
pageSize
:
number
},
)
{
return
request
.
post
<
T
>
(
'/aiDigitalHumanTemplateStatusRest/getDigitalHumanTemplateStatusList.json'
,
null
,
{
params
:
{
templateType
,
pageNo
:
pagingInfo
.
pageNo
,
pageSize
:
pagingInfo
.
pageSize
,
},
})
}
// 根据ID获取推荐模板信息
...
...
src/views/workbench/components/recommend-template.vue
View file @
61f2cd02
This diff is collapsed.
Click to expand it.
src/views/workbench/components/template-preview-modal.vue
View file @
61f2cd02
...
...
@@ -7,15 +7,15 @@ const props = defineProps<{
selectedTemplate
:
DigitalTemplate
}
>
()
const
emit
=
defineEmits
<
{
(
event
:
'go-to-create'
,
id
:
number
):
void
(
event
:
'go-to-create'
,
template
:
DigitalTemplate
):
void
}
>
()
function
handlePreviewModalClose
()
{
PreviewModalVisible
.
value
=
false
}
function
handle
Go
ToCreate
(
this
:
any
)
{
emit
(
'go-to-create'
,
props
.
selectedTemplate
.
id
)
function
handleToCreate
(
this
:
any
)
{
emit
(
'go-to-create'
,
props
.
selectedTemplate
as
DigitalTemplate
)
}
</
script
>
<
template
>
...
...
@@ -33,8 +33,8 @@ function handleGoToCreate(this: any) {
:src=
"props.selectedTemplate.demonstrationVideoUrl"
:poster=
"props.selectedTemplate.coverUrl"
class=
"h-[448px] w-[752px]"
autoplay
controls
autoplay
></video>
</div>
</div>
...
...
@@ -47,7 +47,7 @@ function handleGoToCreate(this: any) {
</button>
<button
class=
"!box-content !h-[38px] !w-[74px] cursor-pointer rounded-[6px] border-[1px] border-solid border-[#dde3f0] bg-gradient-to-r from-[#30b5f2] to-[#2468f2] px-[10px] text-[#ffffff] transition-all duration-300 hover:from-[#30b5f2] hover:to-[#528eff]"
@
click=
"handle
Go
ToCreate"
@
click=
"handleToCreate"
>
做同款
</button>
...
...
src/views/workbench/templateData.ts
deleted
100644 → 0
View file @
537c76c7
This diff is collapsed.
Click to expand it.
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