Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
ai_web_page_prod
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
ai_web_page_prod
Commits
2b220d7b
Commit
2b220d7b
authored
May 22, 2023
by
haojie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
43de7cb4
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
78 additions
and
83 deletions
+78
-83
src/components/Admin/AdminPublicPage.vue
+0
-1
src/components/Admin/CompleteAudio.vue
+34
-34
src/components/Admin/ConfirmDialog.vue
+1
-0
src/components/Admin/ContentTooltip.vue
+1
-0
src/components/Admin/DotLoop.vue
+0
-1
src/components/Admin/GenerateVoice.vue
+3
-2
src/components/Admin/PageEdit.vue
+1
-0
src/components/Admin/audio.vue
+34
-35
src/components/Admin/button.vue
+1
-0
src/pages/AILiveStreaming/LiveStream/index.vue
+0
-3
src/pages/AILiveStreaming/LiveStreamDetail/index.vue
+2
-6
src/router/auth.ts
+1
-1
No files found.
src/components/Admin/AdminPublicPage.vue
View file @
2b220d7b
...
...
@@ -206,7 +206,6 @@ const filterTable = () => {
// 扩展字段
const
is_array
=
DataType
(
'array'
,
SelectedRows
.
value
);
if
(
is_array
)
{
let
ids
=
[];
// 开始过滤
SelectedRows
.
value
.
forEach
((
item
:
any
)
=>
{
option
.
forEach
((
it
:
any
)
=>
{
...
...
src/components/Admin/CompleteAudio.vue
View file @
2b220d7b
...
...
@@ -128,24 +128,24 @@ const copy_url_list = ref(new Array(props.url.length));
// 视频长度是否已存储
const
copy_audio_status
=
ref
(
false
);
const
speedList
=
[
{
label
:
'2x'
,
value
:
2
,
},
{
label
:
'1.5x'
,
value
:
1.5
,
},
{
label
:
'1x'
,
value
:
1
,
},
{
label
:
'0.75x'
,
value
:
0.75
,
},
];
//
const speedList = [
//
{
//
label: '2x',
//
value: 2,
//
},
//
{
//
label: '1.5x',
//
value: 1.5,
//
},
//
{
//
label: '1x',
//
value: 1,
//
},
//
{
//
label: '0.75x',
//
value: 0.75,
//
},
//
];
onBeforeMount
(()
=>
{
clearInterval
(
timeInterval
.
value
);
...
...
@@ -155,12 +155,12 @@ onBeforeUnmount(() => {
clearInterval
(
timeInterval
.
value
);
});
const
speedVisible
=
ref
<
boolean
>
(
false
);
// 设置音频播放速度弹窗
//
const speedVisible = ref
<
boolean
>
(
false
);
// 设置音频播放速度弹窗
const
audioRef
=
ref
();
// 音频标签对象
const
activeSpeed
=
ref
(
1
);
// 音频播放速度
//
const activeSpeed = ref(1); // 音频播放速度
const
audioCurrent
=
ref
(
0
);
// 音频当前播放时间
const
audioDuration
=
ref
(
0
);
// 音频总时长
const
audioVolume
=
ref
(
1
);
// 音频声音,范围 0-1
//
const audioVolume = ref(1); // 音频声音,范围 0-1
const
playStatus
=
ref
<
boolean
>
(
false
);
// 音频播放状态:true 播放,false 暂停
const
playProgress
=
ref
(
0
);
// 音频播放进度
const
timeInterval
=
ref
();
// 获取音频播放进度定时器
...
...
@@ -318,20 +318,20 @@ const onPause = async (changeStatus: boolean = true) => {
}
clearInterval
(
timeInterval
.
value
);
};
const
onChangeSpeed
=
(
value
:
number
)
=>
{
activeSpeed
.
value
=
value
;
// 设置倍速
audioRef
.
value
.
playbackRate
=
value
;
speedVisible
.
value
=
false
;
};
const
onHandleSpeed
=
()
=>
{
speedVisible
.
value
=
!
speedVisible
.
value
;
};
//
const onChangeSpeed = (value: number) => {
//
activeSpeed.value = value;
//
// 设置倍速
//
audioRef.value.playbackRate = value;
//
speedVisible.value = false;
//
};
//
const onHandleSpeed = () => {
//
speedVisible.value = !speedVisible.value;
//
};
// 设置声音
const
onSetVolume
=
(
value
:
number
)
=>
{
audioRef
.
value
.
volume
=
value
;
audioVolume
.
value
=
value
;
};
//
const onSetVolume = (value: number) => {
//
audioRef.value.volume = value;
//
audioVolume.value = value;
//
};
// 音频播放时间换算
const
transTime
=
(
value
:
number
)
=>
{
let
time
=
''
;
...
...
src/components/Admin/ConfirmDialog.vue
View file @
2b220d7b
...
...
@@ -20,6 +20,7 @@
import
CustomButtom
from
'./button.vue'
;
import
{
ref
,
watch
}
from
'vue'
;
import
{
Dialog
as
TDialog
}
from
'tdesign-vue-next'
;
const
props
=
withDefaults
(
defineProps
<
{
modelValue
:
boolean
;
...
...
src/components/Admin/ContentTooltip.vue
View file @
2b220d7b
...
...
@@ -8,6 +8,7 @@
<
script
lang=
"ts"
setup
>
import
{
Tooltip
as
TTooltip
}
from
'tdesign-vue-next'
;
const
props
=
withDefaults
(
defineProps
<
{
content
:
string
;
...
...
src/components/Admin/DotLoop.vue
View file @
2b220d7b
...
...
@@ -7,7 +7,6 @@
<
script
lang=
"ts"
setup
>
import
{
onBeforeUnmount
,
onMounted
,
ref
}
from
'vue'
;
const
CurrentText
=
ref
(
'。'
);
let
interval
:
any
=
null
;
...
...
src/components/Admin/GenerateVoice.vue
View file @
2b220d7b
...
...
@@ -21,9 +21,10 @@
</template>
<
script
lang=
"ts"
setup
>
import
{
ref
,
watch
}
from
'vue'
;
import
{
watch
}
from
'vue'
;
import
CompleteAudio
from
'./CompleteAudio.vue'
;
import
DotLoop
from
'./DotLoop.vue'
;
const
props
=
withDefaults
(
defineProps
<
{
list
:
any
[];
...
...
@@ -51,7 +52,7 @@ const ChangeList = (list: any[]) => {
};
// 当前选择的语音
const
CurrentVoice
=
ref
(
''
);
//
const CurrentVoice = ref('');
watch
(
props
.
list
,
(
v
)
=>
{
ChangeList
(
v
);
...
...
src/components/Admin/PageEdit.vue
View file @
2b220d7b
...
...
@@ -202,6 +202,7 @@ import { useRouter } from 'vue-router';
import
{
show_message
}
from
'@/utils/tdesign_tool'
;
import
{
getFormParams
}
from
'@/constants/admin_form'
;
import
{
ref
}
from
'vue'
;
const
props
=
withDefaults
(
defineProps
<
{
form
:
any
;
...
...
src/components/Admin/audio.vue
View file @
2b220d7b
...
...
@@ -51,7 +51,6 @@
<
script
setup
lang=
"ts"
>
import
{
ref
,
onBeforeMount
,
onBeforeUnmount
,
computed
,
watch
}
from
'vue'
;
const
props
=
withDefaults
(
defineProps
<
{
url
?:
string
[];
...
...
@@ -70,24 +69,24 @@ const imgs = {
stop
:
new
URL
(
'../../assets/svg/admin/audioStop.svg'
,
import
.
meta
.
url
).
href
,
};
const
speedList
=
[
{
label
:
'2x'
,
value
:
2
,
},
{
label
:
'1.5x'
,
value
:
1.5
,
},
{
label
:
'1x'
,
value
:
1
,
},
{
label
:
'0.75x'
,
value
:
0.75
,
},
];
//
const speedList = [
//
{
//
label: '2x',
//
value: 2,
//
},
//
{
//
label: '1.5x',
//
value: 1.5,
//
},
//
{
//
label: '1x',
//
value: 1,
//
},
//
{
//
label: '0.75x',
//
value: 0.75,
//
},
//
];
onBeforeMount
(()
=>
{
clearInterval
(
timeInterval
.
value
);
...
...
@@ -97,12 +96,12 @@ onBeforeUnmount(() => {
clearInterval
(
timeInterval
.
value
);
});
const
speedVisible
=
ref
<
boolean
>
(
false
);
// 设置音频播放速度弹窗
//
const speedVisible = ref
<
boolean
>
(
false
);
// 设置音频播放速度弹窗
const
audioRef
=
ref
();
// 音频标签对象
const
activeSpeed
=
ref
(
1
);
// 音频播放速度
//
const activeSpeed = ref(1); // 音频播放速度
const
audioDuration
=
ref
(
0
);
// 音频总时长
const
audioCurrent
=
ref
(
0
);
// 音频当前播放时间
const
audioVolume
=
ref
(
1
);
// 音频声音,范围 0-1
//
const audioVolume = ref(1); // 音频声音,范围 0-1
const
playStatus
=
ref
<
boolean
>
(
false
);
// 音频播放状态:true 播放,false 暂停
const
playProgress
=
ref
(
0
);
// 音频播放进度
const
timeInterval
=
ref
();
// 获取音频播放进度定时器
...
...
@@ -168,20 +167,20 @@ const onPause = async () => {
playStatus
.
value
=
false
;
clearInterval
(
timeInterval
.
value
);
};
const
onChangeSpeed
=
(
value
:
number
)
=>
{
activeSpeed
.
value
=
value
;
// 设置倍速
audioRef
.
value
.
playbackRate
=
value
;
speedVisible
.
value
=
false
;
};
const
onHandleSpeed
=
()
=>
{
speedVisible
.
value
=
!
speedVisible
.
value
;
};
//
const onChangeSpeed = (value: number) => {
//
activeSpeed.value = value;
//
// 设置倍速
//
audioRef.value.playbackRate = value;
//
speedVisible.value = false;
//
};
//
const onHandleSpeed = () => {
//
speedVisible.value = !speedVisible.value;
//
};
// 设置声音
const
onSetVolume
=
(
value
:
number
)
=>
{
audioRef
.
value
.
volume
=
value
;
audioVolume
.
value
=
value
;
};
//
const onSetVolume = (value: number) => {
//
audioRef.value.volume = value;
//
audioVolume.value = value;
//
};
// 音频播放时间换算
const
transTime
=
(
value
:
number
)
=>
{
let
time
=
''
;
...
...
src/components/Admin/button.vue
View file @
2b220d7b
...
...
@@ -17,6 +17,7 @@
<
script
lang=
"ts"
setup
>
import
{
Button
as
TButton
}
from
'tdesign-vue-next'
;
const
props
=
withDefaults
(
defineProps
<
{
width
?:
string
;
...
...
src/pages/AILiveStreaming/LiveStream/index.vue
View file @
2b220d7b
...
...
@@ -20,7 +20,6 @@
<
script
lang=
"ts"
setup
>
import
AdminPublicPageVue
from
'@/components/Admin/AdminPublicPage.vue'
;
import
{
onBeforeMount
,
reactive
,
ref
}
from
'vue'
;
import
{
isDevContext
}
from
'@/utils/tool'
;
import
{
ResetForm
,
EditButtonEvent
,
...
...
@@ -28,7 +27,6 @@ import {
live_stream_status
,
LiveStreamDelete
,
}
from
'@/constants/admin_form'
;
import
{
useRouter
}
from
'vue-router'
;
import
{
live_stream_edit
,
live_stream_detail
,
...
...
@@ -39,7 +37,6 @@ import {
LiveStreamTableList
,
LiveStreamFilter
,
}
from
'@/utils/api/ai'
;
const
router
=
useRouter
();
const
pageNum
=
ref
(
1
);
const
pageSize
=
ref
(
10
);
...
...
src/pages/AILiveStreaming/LiveStreamDetail/index.vue
View file @
2b220d7b
...
...
@@ -6,15 +6,11 @@
import
PageEdit
from
'@/components/Admin/PageEdit.vue'
;
import
{
onBeforeMount
,
reactive
,
ref
}
from
'vue'
;
import
{
live_stream_detail
}
from
'@/constants/token'
;
import
{
isDevContext
}
from
'@/utils/tool'
;
import
{
show_message
}
from
'@/utils/tdesign_tool'
;
import
{
useRouter
}
from
'vue-router'
;
import
{
getEditLocalData
,
EditFillData
,
LiveStreamConfigFill
,
}
from
'@/constants/admin_form'
;
const
router
=
useRouter
();
const
imgs
=
{
fill
:
new
URL
(
'../../../assets/svg/form/edit.svg'
,
import
.
meta
.
url
).
href
,
};
...
...
@@ -32,7 +28,7 @@ const ManagementForm = reactive({
delete_api
:
''
,
// 能否提交
submit
:
false
,
// submit_api:
isDevContext() ? '' :
'',
// submit_api: '',
//能否重置
reset
:
false
,
// 是否转换为语音
...
...
@@ -148,7 +144,7 @@ const ManagementForm = reactive({
],
});
const
onFill
=
async
()
=>
{
const
data
=
await
LiveStreamConfigFill
(
ManagementForm
.
form_options
);
await
LiveStreamConfigFill
(
ManagementForm
.
form_options
);
};
onBeforeMount
(
async
()
=>
{
...
...
src/router/auth.ts
View file @
2b220d7b
import
router
from
'@/router'
;
import
progress
from
'./PageProgress'
;
//
import progress from './PageProgress';
// import { getUserCookie } from '@/utils/api/userApi';
router
.
beforeEach
((
to
:
any
,
from
:
any
,
next
:
any
)
=>
{
// if (to.name == 'login') {
...
...
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