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
bd2e8193
Commit
bd2e8193
authored
Sep 27, 2022
by
xxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改语音调用方法
parent
0df07e46
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
17 additions
and
15 deletions
+17
-15
index.vue
...ews/MLargeScreen/components/startOrderReceiving/index.vue
+0
-2
index.vue
src/views/MLargeScreen/components/voiceApplication/index.vue
+17
-13
No files found.
src/views/MLargeScreen/components/startOrderReceiving/index.vue
View file @
bd2e8193
...
@@ -157,7 +157,6 @@ export default {
...
@@ -157,7 +157,6 @@ export default {
this
.
carDestination
=
res
.
data
.
content
[
0
].
destination
;
this
.
carDestination
=
res
.
data
.
content
[
0
].
destination
;
this
.
dingDanId
=
res
.
data
.
content
[
0
].
id
;
this
.
dingDanId
=
res
.
data
.
content
[
0
].
id
;
this
.
equipmentName
=
resSon1
.
data
.
content
[
0
].
equipmentName
;
this
.
equipmentName
=
resSon1
.
data
.
content
[
0
].
equipmentName
;
this
.
paidanFlag
=
res
.
data
.
content
[
0
].
flag
;
this
.
btnShow3
=
true
;
this
.
btnShow3
=
true
;
this
.
btnShow4
=
true
;
this
.
btnShow4
=
true
;
if
(
resSon1
.
data
.
content
[
0
].
workStatus
==
0
&&
this
.
paidanFlag
==
0
){
if
(
resSon1
.
data
.
content
[
0
].
workStatus
==
0
&&
this
.
paidanFlag
==
0
){
...
@@ -222,7 +221,6 @@ export default {
...
@@ -222,7 +221,6 @@ export default {
this
.
carDestination
=
res
.
data
.
content
[
0
].
destination
;
this
.
carDestination
=
res
.
data
.
content
[
0
].
destination
;
this
.
dingDanId
=
res
.
data
.
content
[
0
].
id
;
this
.
dingDanId
=
res
.
data
.
content
[
0
].
id
;
this
.
equipmentName
=
resSon1
.
data
.
content
[
0
].
equipmentName
;
this
.
equipmentName
=
resSon1
.
data
.
content
[
0
].
equipmentName
;
this
.
paidanFlag
=
res
.
data
.
content
[
0
].
flag
;
this
.
btnShow3
=
true
;
this
.
btnShow3
=
true
;
this
.
btnShow4
=
true
;
this
.
btnShow4
=
true
;
if
(
resSon1
.
data
.
content
[
0
].
workStatus
==
0
&&
this
.
paidanFlag
==
0
){
if
(
resSon1
.
data
.
content
[
0
].
workStatus
==
0
&&
this
.
paidanFlag
==
0
){
...
...
src/views/MLargeScreen/components/voiceApplication/index.vue
View file @
bd2e8193
...
@@ -37,9 +37,10 @@
...
@@ -37,9 +37,10 @@
</div>
</div>
</div>
</div>
<div
style=
"display: flex;justify-content: space-around;"
>
<div
style=
"display: flex;justify-content: space-around;"
>
<el-button
type=
"primary"
round
class=
"toCallStyle tonghuaBtnShow"
@
click=
"recStart()"
:disabled=
'tonghuadisabled'
>
{{
tonghua1
}}
</el-button>
<
!--
<
el-button
type=
"primary"
round
class=
"toCallStyle tonghuaBtnShow"
@
click=
"recStart()"
:disabled=
'tonghuadisabled'
>
{{
tonghua1
}}
</el-button>
<el-button
type=
"primary"
round
class=
"toCallStyle tonghuaBtnShow"
@
click=
"recStop()"
>
结束通话
</el-button>
<el-button
type=
"primary"
round
class=
"toCallStyle tonghuaBtnShow"
@
click=
"recStop()"
>
结束通话
</el-button>
<el-button
type=
"primary"
round
class=
"toCallStyle"
@
click=
"recUploadLast()"
:disabled=
'tonghuadisabled'
>
上传通话
</el-button>
<el-button
type=
"primary"
round
class=
"toCallStyle"
@
click=
"recUploadLast()"
:disabled=
'tonghuadisabled'
>
上传通话
</el-button>
-->
<el-button
type=
"primary"
round
class=
"toCallStyle"
@
touchstart.native=
"recStart()"
@
touchend.native=
"recStop()"
>
发起通话
</el-button>
</div>
</div>
</div>
</div>
...
@@ -416,20 +417,23 @@ export default {
...
@@ -416,20 +417,23 @@ export default {
});
});
return
;
return
;
}
}
var
This
=
this
;
var
This
=
this
;
var
rec
=
This
.
rec
;
var
rec
=
This
.
rec
;
rec
.
stop
(
function
(
blob
,
duration
){
rec
.
stop
(
function
(
blob
,
duration
){
This
.
reclog
(
"
已录制:
"
,
""
,{
if
(
duration
<=
1000
){
blob
:
blob
,
This
.
$notify
({
duration
:
duration
,
title
:
'
按键时间太短
'
,
rec
:
rec
type
:
'
warning
'
,
});
duration
:
2500
This
.
$notify
({
});
title
:
'
已录制!
'
,
}
else
{
type
:
'
success
'
,
This
.
reclog
(
"
已录制:
"
,
""
,{
duration
:
2500
blob
:
blob
,
});
duration
:
duration
,
rec
:
rec
});
This
.
recUploadLast
();
}
},
function
(
s
){
},
function
(
s
){
This
.
$notify
({
This
.
$notify
({
title
:
'
录音失败,
'
+
s
,
title
:
'
录音失败,
'
+
s
,
...
...
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