Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
N
NewTruckTerminalSyetem
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SQL_Mou
NewTruckTerminalSyetem
Commits
269e5e7f
Commit
269e5e7f
authored
May 12, 2022
by
caicaicai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
de3a3e9d
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
18 additions
and
7 deletions
+18
-7
index.vue
src/views/MLargeScreen/components/voiceApplication/index.vue
+14
-4
index.vue
src/views/MLargeScreen/index.vue
+1
-0
vue.config.js
vue.config.js
+3
-3
No files found.
src/views/MLargeScreen/components/voiceApplication/index.vue
View file @
269e5e7f
...
@@ -49,7 +49,7 @@
...
@@ -49,7 +49,7 @@
<span
class=
"voiceAppContent_left_title"
>
当前语音通话情况:
</span>
<span
class=
"voiceAppContent_left_title"
>
当前语音通话情况:
</span>
</div>
</div>
<audio
controls
currentTime
autoplay
:src=
'srcUrl'
style=
"display:none;"
></audio>
<audio
autoplay
:src=
'srcUrl'
style=
"display:none;"
></audio>
<div
class=
"situationStyle"
>
<div
class=
"situationStyle"
>
<div
v-for=
"(item,index) in videoContentAllArray"
:key=
"index"
class=
'situation_fa1'
>
<div
v-for=
"(item,index) in videoContentAllArray"
:key=
"index"
class=
'situation_fa1'
>
...
@@ -174,7 +174,17 @@ export default {
...
@@ -174,7 +174,17 @@ export default {
}
}
},
},
created
(){},
created
(){},
mounted
()
{},
mounted
()
{
let
that
=
this
;
document
.
onkeydown
=
function
(
e
)
{
if
(
e
.
keyCode
==
178
){
that
.
recStart
();
};
if
(
e
.
keyCode
==
179
){
that
.
recStop
();
};
};
},
methods
:
{
methods
:
{
loadData
(
value
)
{
loadData
(
value
)
{
this
.
showDecide
=
true
;
this
.
showDecide
=
true
;
...
@@ -624,7 +634,7 @@ export default {
...
@@ -624,7 +634,7 @@ export default {
},
},
//播放语音
//播放语音
selectSituation
(
item
){
selectSituation
(
item
){
this
.
recClose
();
//
this.recClose();
// Blobdata 就是后端返回给你的Blob数据
// Blobdata 就是后端返回给你的Blob数据
const
reader
=
new
FileReader
();
const
reader
=
new
FileReader
();
const
booo
=
new
Blob
([
item
.
contentText
]);
const
booo
=
new
Blob
([
item
.
contentText
]);
...
@@ -632,7 +642,7 @@ export default {
...
@@ -632,7 +642,7 @@ export default {
reader
.
onload
=
(
e
)
=>
{
reader
.
onload
=
(
e
)
=>
{
const
bufer
=
e
.
srcElement
.
result
;
const
bufer
=
e
.
srcElement
.
result
;
const
blob
=
this
.
addWavHeader
(
bufer
,
16000
,
16
,
1
);
const
blob
=
this
.
addWavHeader
(
bufer
,
16000
,
16
,
1
);
this
.
srcUrl
=
window
.
URL
.
createObjectURL
(
blob
);
this
.
srcUrl
=
(
window
.
URL
||
webkitURL
)
.
createObjectURL
(
blob
);
};
};
},
},
...
...
src/views/MLargeScreen/index.vue
View file @
269e5e7f
...
@@ -159,6 +159,7 @@ export default {
...
@@ -159,6 +159,7 @@ export default {
}
}
});
});
},
20000
)
},
20000
)
},
},
methods
:{
methods
:{
loadData
(){
loadData
(){
...
...
vue.config.js
View file @
269e5e7f
...
@@ -10,8 +10,8 @@ module.exports = {
...
@@ -10,8 +10,8 @@ module.exports = {
productionSourceMap
:
false
,
//去掉打包的时候生成的map文件
productionSourceMap
:
false
,
//去掉打包的时候生成的map文件
lintOnSave
:
false
,
// 是否在开发环境下通过 eslint-loader 在每次保存时 lint 代码
lintOnSave
:
false
,
// 是否在开发环境下通过 eslint-loader 在每次保存时 lint 代码
devServer
:
{
devServer
:
{
//
host: '192.168.0.101', // 也可以直接写IP地址这样方便真机测试
host
:
'
192.168.0.101
'
,
// 也可以直接写IP地址这样方便真机测试
host
:
'
localhost
'
,
//
host: 'localhost',
port
:
3002
,
// 端口号
port
:
3002
,
// 端口号
https
:
false
,
// https:{type:Boolean}
https
:
false
,
// https:{type:Boolean}
open
:
true
,
// 配置自动启动浏览器
open
:
true
,
// 配置自动启动浏览器
...
@@ -43,7 +43,7 @@ module.exports = {
...
@@ -43,7 +43,7 @@ module.exports = {
},
},
},
},
//
https: true,
https
:
true
,
},
},
configureWebpack
:
{
configureWebpack
:
{
plugins
:
[
plugins
:
[
...
...
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