Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
L
live-management-web
Overview
Overview
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
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
haojie
live-management-web
Commits
f5df0725
Commit
f5df0725
authored
Aug 01, 2023
by
haojie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
增加dev判断
parent
a86dda13
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
42 additions
and
2 deletions
+42
-2
src/components/ScriptTemplate.vue
+29
-0
src/pages/createLive/components/ChoseDigitalPerson.vue
+13
-2
No files found.
src/components/ScriptTemplate.vue
0 → 100644
View file @
f5df0725
<
template
>
<div
class=
"custom-script-template"
:style=
"
{
height: height,
}"
>
</div>
</
template
>
<
script
lang=
"ts"
setup
>
const
props
=
withDefaults
(
defineProps
<
{
height
?:
string
;
}
>
(),
{
height
:
'175px'
;
},
);
const
emit
=
defineEmits
([
'edit'
,
'delete'
]);
</
script
>
<
style
lang=
"less"
>
.custom-script-template
{
width
:
100%
;
border-radius
:
3px
;
border
:
1px
solid
#464646
;
background
:
#1e1e1e
;
}
</
style
>
src/pages/createLive/components/ChoseDigitalPerson.vue
View file @
f5df0725
...
@@ -4,6 +4,7 @@
...
@@ -4,6 +4,7 @@
<Select
:options=
"options"
v-model=
"currentOption"
@
change=
"onSelectChange"
></Select>
<Select
:options=
"options"
v-model=
"currentOption"
@
change=
"onSelectChange"
></Select>
</div>
</div>
<div
class=
"create-digital-person-list-box-parent"
>
<div
class=
"create-digital-person-list-box-parent"
>
<Loading
v-show=
"loading"
></Loading>
<div
<div
class=
"create-digital-person-list-box narrow-scrollbar"
class=
"create-digital-person-list-box narrow-scrollbar"
ref=
"personList"
ref=
"personList"
...
@@ -29,11 +30,12 @@
...
@@ -29,11 +30,12 @@
</template>
</template>
<
script
lang=
"ts"
setup
>
<
script
lang=
"ts"
setup
>
import
Loading
from
'@/components/loading.vue'
;
import
Grid
from
'@/components/Grid.vue'
;
import
Grid
from
'@/components/Grid.vue'
;
import
Select
from
'@/components/Select.vue'
;
import
Select
from
'@/components/Select.vue'
;
import
CardOne
from
'@/components/cardOne.vue'
;
import
CardOne
from
'@/components/cardOne.vue'
;
import
{
ref
,
onMounted
,
reactive
,
watch
,
computed
}
from
'vue'
;
import
{
ref
,
onMounted
,
reactive
,
watch
,
computed
}
from
'vue'
;
import
{
getElBounding
,
getWindowClient
}
from
'@/utils/tool'
;
import
{
getElBounding
,
getWindowClient
,
isDev
}
from
'@/utils/tool'
;
import
{
useStore
}
from
'vuex'
;
import
{
useStore
}
from
'vuex'
;
import
{
createLiveKeys
}
from
'@/service/CreateLive'
;
import
{
createLiveKeys
}
from
'@/service/CreateLive'
;
import
{
useLiveInfoSubmit
}
from
'@/hooks/useStoreCommit'
;
import
{
useLiveInfoSubmit
}
from
'@/hooks/useStoreCommit'
;
...
@@ -53,6 +55,8 @@ const route = useRoute();
...
@@ -53,6 +55,8 @@ const route = useRoute();
// 编辑信息
// 编辑信息
const
editInfo
=
computed
(()
=>
store
.
getters
[
'live/getEditLive'
]);
const
editInfo
=
computed
(()
=>
store
.
getters
[
'live/getEditLive'
]);
const
loading
=
ref
(
false
);
// el元素
// el元素
const
personList
=
ref
();
const
personList
=
ref
();
const
maxHeight
=
ref
();
const
maxHeight
=
ref
();
...
@@ -127,7 +131,10 @@ const onSelectChange = (value: string) => {
...
@@ -127,7 +131,10 @@ const onSelectChange = (value: string) => {
// 从python获取视频路径
// 从python获取视频路径
const
getVideoPath
=
async
(
row
:
any
)
=>
{
const
getVideoPath
=
async
(
row
:
any
)
=>
{
let
url
=
await
callPyjsInWindow
(
'getDigimonVideo'
,
row
,
true
);
let
url
=
''
;
if
(
!
isDev
())
{
url
=
await
callPyjsInWindow
(
'getDigimonVideo'
,
row
,
true
);
}
// 将对应的图片传给右侧工具
// 将对应的图片传给右侧工具
// store.commit('live/setLiveImage', row.cover_url);
// store.commit('live/setLiveImage', row.cover_url);
store
.
commit
(
'live/setLiveImage'
,
url
?
url
:
row
.
video_url
);
store
.
commit
(
'live/setLiveImage'
,
url
?
url
:
row
.
video_url
);
...
@@ -177,13 +184,16 @@ const checkPerson = () => {
...
@@ -177,13 +184,16 @@ const checkPerson = () => {
const
getList
=
async
()
=>
{
const
getList
=
async
()
=>
{
try
{
try
{
loading
.
value
=
true
;
let
res
:
any
=
await
getDigitalPeopleList
();
let
res
:
any
=
await
getDigitalPeopleList
();
digitalList
.
admin
=
res
.
adminList
;
digitalList
.
admin
=
res
.
adminList
;
// digitalList.admin = digitalList.admin.concat(res.adminList);
// digitalList.admin = digitalList.admin.concat(res.adminList);
digitalList
.
my
=
res
.
myList
;
digitalList
.
my
=
res
.
myList
;
changeCurrentList
();
changeCurrentList
();
checkPerson
();
checkPerson
();
loading
.
value
=
false
;
}
catch
(
e
)
{
}
catch
(
e
)
{
loading
.
value
=
false
;
console
.
log
(
e
);
console
.
log
(
e
);
}
}
};
};
...
@@ -227,6 +237,7 @@ watch(
...
@@ -227,6 +237,7 @@ watch(
border-radius
:
3px
;
border-radius
:
3px
;
border
:
1px
solid
#464646
;
border
:
1px
solid
#464646
;
background
:
#1e1e1e
;
background
:
#1e1e1e
;
position
:
relative
;
.create-digital-person-list-box
{
.create-digital-person-list-box
{
padding
:
12px
;
padding
:
12px
;
overflow-y
:
auto
;
overflow-y
:
auto
;
...
...
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