Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
P
pica-admin-consultation
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
Close sidebar
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
com.pica.cloud.education.frontend
pica-admin-consultation
提交
4b151987
提交
4b151987
编写于
4月 09, 2024
作者:
zhaosheng.zhang
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 语音转文字及上传音频放开mp4格式
上级
699f4622
变更
2
显示空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
42 行增加
和
6 行删除
+42
-6
upload-music.vue
src/components/editor/upload-music.vue
+2
-2
diagnosis-editor.vue
src/views/IM/diagnosis-admin/diagnosis-editor.vue
+40
-4
未找到文件。
src/components/editor/upload-music.vue
浏览文件 @
4b151987
...
@@ -26,7 +26,7 @@
...
@@ -26,7 +26,7 @@
slot=
"tip"
slot=
"tip"
class=
"el-upload__tip"
class=
"el-upload__tip"
>
>
音频格式:mp3
音频格式:mp3
、mp4
</p>
</p>
<ul
<ul
slot=
"tip"
slot=
"tip"
...
@@ -72,7 +72,7 @@
...
@@ -72,7 +72,7 @@
token
:
localStorage
.
getItem
(
'token'
),
token
:
localStorage
.
getItem
(
'token'
),
},
},
loading
:
false
,
loading
:
false
,
accept
:
'.mp3,.mpeg'
,
accept
:
'.mp3,.mpeg
,.mp4
'
,
};
};
},
},
watch
:
{
watch
:
{
...
...
src/views/IM/diagnosis-admin/diagnosis-editor.vue
浏览文件 @
4b151987
...
@@ -828,7 +828,10 @@
...
@@ -828,7 +828,10 @@
show
-
word
-
limit
show
-
word
-
limit
/>
/>
<
/el-form-item
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"系统录音/录像"
>
<
el
-
form
-
item
v
-
if
=
"formData.vodList.length > 0"
label
=
"系统录音/录像"
>
<
el
-
form
-
item
<
el
-
form
-
item
v
-
for
=
"item in formData.vodList"
v
-
for
=
"item in formData.vodList"
:
key
=
"item.url"
:
key
=
"item.url"
...
@@ -848,6 +851,20 @@
...
@@ -848,6 +851,20 @@
'.mp4'
'.mp4'
}}
}}
<
/el-link
>
<
/el-link
>
<
el
-
popover
trigger
=
"hover"
placement
=
"top"
width
=
"1000"
>
<
p
>
{{
item
.
text
}}
<
/p
>
<
div
slot
=
"reference"
class
=
"vod"
>
<
span
class
=
"vod-txt"
>
语音转文字:
<
/span
>
<
span
class
=
"vod-text"
>
{{
item
.
text
}}
<
/span
>
<
/div
>
<
/el-popover
>
<
/el-form-item
>
<
/el-form-item
>
<
/el-form-item
>
<
/el-form-item
>
<
el
-
form
-
item
label
=
"音频"
>
<
el
-
form
-
item
label
=
"音频"
>
...
@@ -1222,6 +1239,7 @@ export default {
...
@@ -1222,6 +1239,7 @@ export default {
vodList
:
{
vodList
:
{
name
:
''
,
name
:
''
,
url
:
''
,
url
:
''
,
text
:
''
}
,
}
,
additionPrice
:
null
,
// 诊疗费
additionPrice
:
null
,
// 诊疗费
orderTotalPrice
:
null
,
orderTotalPrice
:
null
,
...
@@ -1394,10 +1412,7 @@ export default {
...
@@ -1394,10 +1412,7 @@ export default {
this
.
formData
=
res
.
data
;
this
.
formData
=
res
.
data
;
this
.
formData
.
price
=
this
.
priceFilter
(
this
.
formData
.
price
);
this
.
formData
.
price
=
this
.
priceFilter
(
this
.
formData
.
price
);
this
.
formData
.
additionPrice
=
this
.
priceFilter
(
this
.
formData
.
additionPrice
);
this
.
formData
.
additionPrice
=
this
.
priceFilter
(
this
.
formData
.
additionPrice
);
console
.
log
(
'问诊价格====='
,
this
.
formData
.
price
);
console
.
log
(
'诊疗费价格====='
,
this
.
formData
.
additionPrice
);
this
.
formData
.
orderTotalPrice
=
this
.
formData
.
price
+
this
.
formData
.
additionPrice
;
this
.
formData
.
orderTotalPrice
=
this
.
formData
.
price
+
this
.
formData
.
additionPrice
;
console
.
log
(
'订单总金额====='
,
this
.
formData
.
additionPrice
);
this
.
formData
.
serviceFee
=
this
.
priceFilter
(
this
.
formData
.
serviceFee
=
this
.
priceFilter
(
this
.
formData
.
serviceFee
this
.
formData
.
serviceFee
);
);
...
@@ -1654,6 +1669,27 @@ export default {
...
@@ -1654,6 +1669,27 @@ export default {
.
log
-
info
-
pagin
{
.
log
-
info
-
pagin
{
margin
:
0
15
px
;
margin
:
0
15
px
;
}
}
.
vod
{
display
:
flex
;
flex
-
direction
:
row
;
align
-
items
:
center
;
&-
txt
{
width
:
90
px
;
}
&-
text
{
width
:
100
%
;
background
:
#
ccc
;
line
-
height
:
20
px
;
-
webkit
-
line
-
clamp
:
5
;
overflow
:
hidden
;
display
:
-
webkit
-
box
;
-
webkit
-
box
-
orient
:
vertical
;
text
-
overflow
:
ellipsis
;
white
-
space
:
normal
;
}
}
}
}
.
btn
-
wrap
{
.
btn
-
wrap
{
padding
:
40
px
0
60
px
;
padding
:
40
px
0
60
px
;
...
...
写
预览
Markdown
格式
0%
请重试
or
附加一个文件
附加文件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录