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
10705f77
Commit
10705f77
authored
May 19, 2023
by
haojie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
581b5739
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
24 additions
and
3 deletions
+24
-3
src/components/Admin/PageEdit.vue
+16
-1
src/components/Admin/select.vue
+6
-2
src/pages/AILiveStreaming/InteractiveSettingEdit/index.vue
+2
-0
No files found.
src/components/Admin/PageEdit.vue
View file @
10705f77
...
@@ -84,13 +84,16 @@
...
@@ -84,13 +84,16 @@
<
template
v-else-if=
"it.type == 'select'"
>
<
template
v-else-if=
"it.type == 'select'"
>
<CustomSelect
<CustomSelect
:options=
"it.options"
:options=
"it.options"
:name=
"it.name"
v-model=
"it.value"
v-model=
"it.value"
:item=
"
{}"
:item=
"
{}"
:align="it.align"
:align="it.align"
:audio="it.audio"
:audio="it.audio"
:audio_list="[]"
:is_watch="it.watch ? it.watch : false"
:is_watch="it.watch ? it.watch : false"
width="100%"
width="100%"
@change="SelectChange"
@change="SelectChange"
@ValueChange="SelectValueChange"
>
</CustomSelect>
>
</CustomSelect>
</
template
>
</
template
>
<
template
v-else-if=
"it.type == 'textarea'"
>
<
template
v-else-if=
"it.type == 'textarea'"
>
...
@@ -191,7 +194,7 @@ import ManualResponseSvg from '@/assets/svg/form/ManualResponse.svg';
...
@@ -191,7 +194,7 @@ import ManualResponseSvg from '@/assets/svg/form/ManualResponse.svg';
import
{
useRouter
}
from
'vue-router'
;
import
{
useRouter
}
from
'vue-router'
;
import
{
show_message
}
from
'@/utils/tdesign_tool'
;
import
{
show_message
}
from
'@/utils/tdesign_tool'
;
import
{
getFormParams
}
from
'@/constants/admin_form'
;
import
{
getFormParams
}
from
'@/constants/admin_form'
;
import
{
ref
}
from
'vue'
;
import
{
re
active
,
re
f
}
from
'vue'
;
const
props
=
defineProps
<
{
const
props
=
defineProps
<
{
form
:
any
;
form
:
any
;
}
>
();
}
>
();
...
@@ -273,6 +276,18 @@ const onDelete = async () => {
...
@@ -273,6 +276,18 @@ const onDelete = async () => {
realDelete
();
realDelete
();
}
}
};
};
// 记录当前语音和语言
const
CurrentConfig
=
reactive
({
language
:
''
,
voice
:
''
,
});
// 语音列表
const
SelectValueChange
=
(
name
:
string
,
value
:
string
)
=>
{
if
(
name
==
'language'
||
name
==
'voice'
)
{
CurrentConfig
[
name
]
=
value
;
}
};
</
script
>
</
script
>
<
style
lang=
"less"
>
<
style
lang=
"less"
>
...
...
src/components/Admin/select.vue
View file @
10705f77
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
></t-option>
></t-option>
</TSelect>
</TSelect>
<
template
v-if=
"audio"
>
<
template
v-if=
"audio"
>
<CustomAudio></CustomAudio>
<CustomAudio
:url=
"audio_list"
></CustomAudio>
</
template
>
</
template
>
</div>
</div>
</template>
</template>
...
@@ -47,6 +47,8 @@ const props = withDefaults(
...
@@ -47,6 +47,8 @@ const props = withDefaults(
audio
?:
boolean
;
audio
?:
boolean
;
is_watch
?:
any
;
is_watch
?:
any
;
filterable
?:
boolean
;
filterable
?:
boolean
;
audio_list
?:
string
[];
name
?:
string
;
}
>
(),
}
>
(),
{
{
width
:
'357px'
,
width
:
'357px'
,
...
@@ -54,15 +56,17 @@ const props = withDefaults(
...
@@ -54,15 +56,17 @@ const props = withDefaults(
audio
:
false
,
audio
:
false
,
is_watch
:
false
,
is_watch
:
false
,
filterable
:
false
,
filterable
:
false
,
audio_list
:
()
=>
[],
}
}
);
);
const
emit
=
defineEmits
([
'update:modelValue'
,
'change'
]);
const
emit
=
defineEmits
([
'update:modelValue'
,
'change'
,
'ValueChange'
]);
const
SelectValue
=
ref
(
props
.
modelValue
);
const
SelectValue
=
ref
(
props
.
modelValue
);
watch
(
watch
(
()
=>
SelectValue
.
value
,
()
=>
SelectValue
.
value
,
(
v
)
=>
{
(
v
)
=>
{
emit
(
'update:modelValue'
,
v
);
emit
(
'update:modelValue'
,
v
);
emit
(
'ValueChange'
,
props
.
name
,
v
);
if
(
props
.
is_watch
)
{
if
(
props
.
is_watch
)
{
emit
(
'change'
,
v
,
props
.
is_watch
);
emit
(
'change'
,
v
,
props
.
is_watch
);
}
}
...
...
src/pages/AILiveStreaming/InteractiveSettingEdit/index.vue
View file @
10705f77
...
@@ -44,6 +44,8 @@ const ManagementForm = reactive({
...
@@ -44,6 +44,8 @@ const ManagementForm = reactive({
// 删除api
// 删除api
delete_api
:
'1'
,
delete_api
:
'1'
,
submit_api
:
'1'
,
submit_api
:
'1'
,
// 是否试听
//能否重置
//能否重置
reset
:
true
,
reset
:
true
,
// 是否转换为语音 -- 自定义方法
// 是否转换为语音 -- 自定义方法
...
...
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