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
提交
c01198e7
提交
c01198e7
编写于
4月 12, 2024
作者:
zhaosheng.zhang
浏览文件
操作
浏览文件
下载
差异文件
Merge branch 'feature/vod-list' into 'release'
Feature/vod list See merge request
!299
上级
6bfa3d11
7ca761df
变更
2
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
75 行增加
和
15 行删除
+75
-15
upload-music.vue
src/components/editor/upload-music.vue
+35
-11
diagnosis-editor.vue
src/views/IM/diagnosis-admin/diagnosis-editor.vue
+40
-4
未找到文件。
src/components/editor/upload-music.vue
浏览文件 @
c01198e7
...
@@ -7,7 +7,7 @@
...
@@ -7,7 +7,7 @@
class=
"upload-demo"
class=
"upload-demo"
:disabled=
"isDisable"
:disabled=
"isDisable"
:before-upload=
"beforeMusicUpload"
:before-upload=
"beforeMusicUpload"
:action=
"actionurl
"
action=
"#
"
:headers=
"headers"
:headers=
"headers"
:on-remove=
"handleRemove"
:on-remove=
"handleRemove"
:on-success=
"sucess"
:on-success=
"sucess"
...
@@ -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"
...
@@ -48,7 +48,9 @@
...
@@ -48,7 +48,9 @@
</
template
>
</
template
>
<
script
>
<
script
>
import
{
getBaseUrl
}
from
'@/utils/index'
;
import
{
doUpload
,
getFilePath
}
from
'@/utils/qiniu-util'
;
import
{
openLoading
,
closeLoading
}
from
'@/utils/utils'
;
let
_this
=
null
;
export
default
{
export
default
{
props
:
{
props
:
{
isDisable
:
{
isDisable
:
{
...
@@ -67,24 +69,28 @@
...
@@ -67,24 +69,28 @@
dialogImageUrl
:
''
,
dialogImageUrl
:
''
,
dialogVisible
:
false
,
dialogVisible
:
false
,
musicArr
:
[],
musicArr
:
[],
actionUrl
:
''
,
headers
:
{
headers
:
{
token
:
localStorage
.
getItem
(
'token'
),
token
:
localStorage
.
getItem
(
'token'
),
},
},
loading
:
false
,
loading
:
false
,
accept
:
'.mp3,.mpeg'
,
accept
:
'.mp3,.mpeg
,.mp4
'
,
};
};
},
},
watch
:
{
watch
:
{
musicList
(
newv
)
{
musicList
(
newv
)
{
console
.
log
(
newv
);
console
.
log
(
newv
);
this
.
musicArr
=
newv
||
[];
const
newVideoList
=
newv
?.
filter
(
item
=>
{
const
suffixUrl
=
item
?.
url
.
substring
(
item
?.
url
.
lastIndexOf
(
'/'
)
+
1
);
// 接口不返回name,上传数据列表名称展示为截取url最后“/”后面的内容
item
.
name
=
suffixUrl
;
return
item
;
});
this
.
musicArr
=
newVideoList
||
[];
},
},
},
},
created
()
{
created
()
{
_this
=
this
;
this
.
musicArr
=
this
.
musicList
;
this
.
musicArr
=
this
.
musicList
;
console
.
log
(
console
.
log
(
'this.musicList'
,
this
.
musicArr
));
console
.
log
(
console
.
log
(
'this.musicList'
,
this
.
musicArr
));
this
.
actionurl
=
getBaseUrl
(
'/diagnose/illness/audio/upload'
);
},
},
methods
:
{
methods
:
{
musicUrl
(
item
)
{
musicUrl
(
item
)
{
...
@@ -114,14 +120,32 @@
...
@@ -114,14 +120,32 @@
this
.
loading
=
false
;
this
.
loading
=
false
;
},
},
// 上传mp3
// 上传mp3
beforeMusicUpload
()
{},
beforeMusicUpload
(
file
)
{
openLoading
(
_this
);
doUpload
(
_this
,
file
,
getFilePath
(
file
,
null
),
null
,
null
,
''
).
then
(
function
(
res
)
{
closeLoading
(
_this
);
const
fileItem
=
{
name
:
res
.
name
?
res
.
name
:
res
.
fullPath
,
size
:
res
.
size
,
status
:
'success'
,
url
:
res
.
fullPath
};
_this
.
musicArr
.
push
(
fileItem
);
_this
.
$message
.
success
(
'上传成功'
);
});
},
setNewArr
()
{
setNewArr
()
{
const
newArr
=
[];
const
newArr
=
[];
if
(
this
.
musicArr
&&
this
.
musicArr
.
length
)
{
if
(
this
.
musicArr
&&
this
.
musicArr
.
length
)
{
this
.
musicArr
.
forEach
((
item
)
=>
{
this
.
musicArr
.
forEach
((
item
)
=>
{
if
(
item
.
data
)
{
if
(
item
.
url
&&
item
.
status
===
'success'
)
{
newArr
.
push
(
item
.
data
.
domainPath
+
item
.
data
.
path
);
}
else
if
(
item
.
url
&&
item
.
from
)
{
newArr
.
push
(
item
.
url
);
newArr
.
push
(
item
.
url
);
}
}
});
});
...
...
src/views/IM/diagnosis-admin/diagnosis-editor.vue
浏览文件 @
c01198e7
...
@@ -836,7 +836,10 @@
...
@@ -836,7 +836,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"
...
@@ -856,6 +859,20 @@
...
@@ -856,6 +859,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
=
"音频"
>
...
@@ -1369,6 +1386,7 @@ export default {
...
@@ -1369,6 +1386,7 @@ export default {
vodList
:
{
vodList
:
{
name
:
''
,
name
:
''
,
url
:
''
,
url
:
''
,
text
:
''
}
,
}
,
additionPrice
:
null
,
// 诊疗费
additionPrice
:
null
,
// 诊疗费
orderTotalPrice
:
null
,
orderTotalPrice
:
null
,
...
@@ -1546,10 +1564,7 @@ export default {
...
@@ -1546,10 +1564,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
);
);
...
@@ -1806,6 +1821,27 @@ export default {
...
@@ -1806,6 +1821,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
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录