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
2408047a
Commit
2408047a
authored
Aug 17, 2023
by
haojie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
编辑文本
parent
e0d94a07
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
12 additions
and
28 deletions
+12
-28
src/components/digitalPeopleDiaog.vue
+0
-1
src/pages/createLive/components/scripts.vue
+0
-1
src/pages/createLive/index.vue
+9
-14
src/pages/home/index.vue
+1
-1
src/service/CreateLive.ts
+1
-10
src/store/modules/asyncCreateLive.ts
+1
-1
No files found.
src/components/digitalPeopleDiaog.vue
View file @
2408047a
...
@@ -50,7 +50,6 @@ import CardOne from '@/components/cardOne.vue';
...
@@ -50,7 +50,6 @@ import CardOne from '@/components/cardOne.vue';
import
Button
from
'@/components/Button.vue'
;
import
Button
from
'@/components/Button.vue'
;
import
Dialog
from
'@/components/Dialog.vue'
;
import
Dialog
from
'@/components/Dialog.vue'
;
import
{
ref
,
watch
}
from
'vue'
;
import
{
ref
,
watch
}
from
'vue'
;
import
{
jumpToCreateLivePage
}
from
'@/router/jump'
;
import
{
constdigitalPeopleTypeList
}
from
'@/service/Common'
;
import
{
constdigitalPeopleTypeList
}
from
'@/service/Common'
;
const
props
=
withDefaults
(
const
props
=
withDefaults
(
...
...
src/pages/createLive/components/scripts.vue
View file @
2408047a
...
@@ -209,7 +209,6 @@
...
@@ -209,7 +209,6 @@
import
{
computed
,
onMounted
,
reactive
,
ref
,
watch
,
toRaw
}
from
'vue'
;
import
{
computed
,
onMounted
,
reactive
,
ref
,
watch
,
toRaw
}
from
'vue'
;
import
AudioSvg
from
'@/assets/svg/upload/audio.svg'
;
import
AudioSvg
from
'@/assets/svg/upload/audio.svg'
;
import
Button
from
'@/components/Button.vue'
;
import
Button
from
'@/components/Button.vue'
;
import
MultipleUpload
from
'@/components/MultipleUpload'
;
import
CheckBox
from
'@/components/CheckBox.vue'
;
import
CheckBox
from
'@/components/CheckBox.vue'
;
import
ConfirmDialog
from
'@/components/ConfirmDialog.vue'
;
import
ConfirmDialog
from
'@/components/ConfirmDialog.vue'
;
import
TextScriptDialog
from
'./TextScriptDialog.vue'
;
import
TextScriptDialog
from
'./TextScriptDialog.vue'
;
...
...
src/pages/createLive/index.vue
View file @
2408047a
...
@@ -437,21 +437,16 @@ const submitTaskAndConfuse = async (type: string) => {
...
@@ -437,21 +437,16 @@ const submitTaskAndConfuse = async (type: string) => {
// 生成音频
// 生成音频
let
res
:
any
=
await
liveTts
(
params
);
let
res
:
any
=
await
liveTts
(
params
);
if
(
res
.
code
==
0
)
{
if
(
res
.
code
==
0
)
{
// 通过uuid找到对应的对象
// 是否使用测试id
let
index
=
newList
.
findIndex
((
it
:
any
)
=>
it
.
uuid
==
params
.
uuid
);
let
testUuid
=
getTestUuid
();
if
(
index
!==
-
1
)
{
if
(
testUuid
)
{
let
list
=
JSON
.
parse
(
JSON
.
stringify
(
newList
));
row
.
task_id
=
'ed71050141c74954ac779cfbb9dd9604'
;
// 是否使用测试id
}
else
{
let
testUuid
=
getTestUuid
();
row
.
task_id
=
res
.
data
.
task_id
;
if
(
testUuid
)
{
list
[
i
].
task_id
=
'ed71050141c74954ac779cfbb9dd9604'
;
}
else
{
list
[
i
].
task_id
=
res
.
data
.
task_id
;
}
commitInfo
({
[
createLiveKeys
.
textScriptList
]:
list
,
});
}
}
commitInfo
({
[
createLiveKeys
.
textScriptList
]:
newList
,
});
}
else
{
}
else
{
throw
new
CustomException
(
'音频任务提交失败'
);
throw
new
CustomException
(
'音频任务提交失败'
);
}
}
...
...
src/pages/home/index.vue
View file @
2408047a
...
@@ -80,7 +80,7 @@ import routerConfig from '@/router/tool';
...
@@ -80,7 +80,7 @@ import routerConfig from '@/router/tool';
import
{
useRouter
}
from
'vue-router'
;
import
{
useRouter
}
from
'vue-router'
;
import
{
getDigitalPeopleList
}
from
'@/service/Common'
;
import
{
getDigitalPeopleList
}
from
'@/service/Common'
;
import
Button
from
'@/components/Button.vue'
;
import
Button
from
'@/components/Button.vue'
;
import
{
callPyjsInWindow
,
injectWindow
}
from
'@/utils/pyqt'
;
import
{
callPyjsInWindow
}
from
'@/utils/pyqt'
;
import
{
jumpToCreateLivePage
}
from
'@/router/jump'
;
import
{
jumpToCreateLivePage
}
from
'@/router/jump'
;
import
{
useStore
}
from
'vuex'
;
import
{
useStore
}
from
'vuex'
;
...
...
src/service/CreateLive.ts
View file @
2408047a
import
{
import
{
isDev
,
show_message
,
dimensionalConvert
,
DataType
,
TableSortAsc
}
from
'@/utils/tool'
;
mergedArray
,
isDev
,
show_message
,
dimensionalConvert
,
DataType
,
TableSortAsc
,
ecursionDeepCopy
,
}
from
'@/utils/tool'
;
import
{
liveContentRegenerateCallback
,
liveTts
,
getLiveTtsCallback
,
liveTaskRegenerate
}
from
'@/utils/api/userApi'
;
import
{
liveContentRegenerateCallback
,
liveTts
,
getLiveTtsCallback
,
liveTaskRegenerate
}
from
'@/utils/api/userApi'
;
import
{
audioStart
}
from
'@/service/Common'
;
import
{
audioStart
}
from
'@/service/Common'
;
import
store
from
'@/store'
;
import
store
from
'@/store'
;
import
{
v4
}
from
'uuid'
;
import
{
v4
}
from
'uuid'
;
import
{
writeLog
}
from
'@/utils/pyqt'
;
import
{
writeLog
}
from
'@/utils/pyqt'
;
import
{
getDurationOfAudioFile
}
from
'@/utils/audio'
;
import
{
getDurationOfAudioFile
}
from
'@/utils/audio'
;
import
{
getTestUuid
}
from
'@/constants/token'
;
/**
/**
* 创建直播的版本
* 创建直播的版本
...
...
src/store/modules/asyncCreateLive.ts
View file @
2408047a
...
@@ -4,7 +4,7 @@ import { writeLog } from '@/utils/pyqt';
...
@@ -4,7 +4,7 @@ import { writeLog } from '@/utils/pyqt';
const
state
=
{
const
state
=
{
language
:
''
,
language
:
''
,
};
};
type
StateType
=
typeof
state
;
//
type StateType = typeof state;
const
mutations
=
{
const
mutations
=
{
// setLang(state: StateType, info: string) {
// setLang(state: StateType, info: string) {
...
...
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