Commit 2b220d7b by haojie

1

parent 43de7cb4
......@@ -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) => {
......
......@@ -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 = '';
......
......@@ -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;
......
......@@ -8,6 +8,7 @@
<script lang="ts" setup>
import { Tooltip as TTooltip } from 'tdesign-vue-next';
const props = withDefaults(
defineProps<{
content: string;
......
......@@ -7,7 +7,6 @@
<script lang="ts" setup>
import { onBeforeUnmount, onMounted, ref } from 'vue';
const CurrentText = ref('。');
let interval: any = null;
......
......@@ -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);
......
......@@ -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;
......
......@@ -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 = '';
......
......@@ -17,6 +17,7 @@
<script lang="ts" setup>
import { Button as TButton } from 'tdesign-vue-next';
const props = withDefaults(
defineProps<{
width?: string;
......
......@@ -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);
......
......@@ -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 () => {
......
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') {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment