Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
卡
卡车调度系统
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
caicaicai
卡车调度系统
Commits
417531e3
Commit
417531e3
authored
May 11, 2022
by
caicaicai
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改
parent
8d550eb9
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
50 additions
and
50 deletions
+50
-50
index.vue
...iews/MLargeScreen/components/intelligentSchedul/index.vue
+50
-50
No files found.
src/views/MLargeScreen/components/intelligentSchedul/index.vue
View file @
417531e3
...
...
@@ -723,50 +723,50 @@ export default {
// xhr.onreadystatechange=onreadystatechange("上传方式一【Base64】");
// xhr.send(postData);
//发送语音数据
if
(
This
.
websocket
.
readyState
==
=
1
)
{
// that.websock.readyState = 1 表示连接成功,可以立即发送信息
if
(
This
.
websocket
.
readyState
==
1
)
{
// that.websock.readyState = 1 表示连接成功,可以立即发送信息
This
.
websocketsend
(
`{"toUserId":"
${
This
.
carAllNumberString
}
","contentText":"
${
postData
}
","fromUserId":"
${
This
.
dialogTitle1
}
"}`
);
//上传到数据库
HttpReq
.
truckDispatching
.
recentNoticeAdd
({
noticeClass
:
This
.
dialogTitle1
,
flag
:
1
,
videoContent
:
postData
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
//近期通知列表
HttpReq
.
truckDispatching
.
recentNoticeQuery
({
size
:
50
,
sort
:
'
id,desc
'
,}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
This
.
recentNoticeData
=
res
.
data
.
content
;
};
})
}
else
{
this
.
$notify
({
title
:
res
.
msg
,
type
:
'
error
'
,
duration
:
2500
})
}
}).
catch
(
function
(
error
)
{
});
//
HttpReq.truckDispatching.recentNoticeAdd({noticeClass:This.dialogTitle1,flag:1,videoContent:postData}).then((res) => {
//
if(res.code == 200){
//
//近期通知列表
//
HttpReq.truckDispatching.recentNoticeQuery({size:50,sort:'id,desc',}).then((res) => {
//
if(res.code == 200){
//
This.recentNoticeData = res.data.content;
//
};
//
})
//
}else{
//
this.$notify({
//
title: res.msg,
//
type: 'error',
//
duration: 2500
//
})
//
}
//
}).catch(function(error) { });
This
.
$notify
({
title
:
'
上传成功!
'
,
type
:
'
success
'
,
duration
:
2500
});
}
else
if
(
This
.
websocket
.
readyState
==
=
0
)
{
// 表示正在连接,设置300ms后发送信息
}
else
if
(
This
.
websocket
.
readyState
==
0
)
{
// 表示正在连接,设置300ms后发送信息
setTimeout
(
function
()
{
This
.
websocketsend
(
`{"toUserId":"
${
This
.
carAllNumberString
}
","contentText":"
${
postData
}
","fromUserId":"
${
This
.
dialogTitle1
}
"}`
);
HttpReq
.
truckDispatching
.
recentNoticeAdd
({
noticeClass
:
This
.
dialogTitle1
,
flag
:
1
,
videoContent
:
postData
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
//近期通知列表
HttpReq
.
truckDispatching
.
recentNoticeQuery
({
size
:
50
,
sort
:
'
id,desc
'
,}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
This
.
recentNoticeData
=
res
.
data
.
content
;
};
})
}
else
{
this
.
$notify
({
title
:
res
.
msg
,
type
:
'
error
'
,
duration
:
2500
})
}
}).
catch
(
function
(
error
)
{
});
//
HttpReq.truckDispatching.recentNoticeAdd({noticeClass:This.dialogTitle1,flag:1,videoContent:postData}).then((res) => {
//
if(res.code == 200){
//
//近期通知列表
//
HttpReq.truckDispatching.recentNoticeQuery({size:50,sort:'id,desc',}).then((res) => {
//
if(res.code == 200){
//
This.recentNoticeData = res.data.content;
//
};
//
})
//
}else{
//
this.$notify({
//
title: res.msg,
//
type: 'error',
//
duration: 2500
//
})
//
}
//
}).catch(function(error) { });
This
.
$notify
({
title
:
'
上传成功!
'
,
type
:
'
success
'
,
...
...
@@ -777,22 +777,22 @@ export default {
This
.
initWebSocket
();
setTimeout
(
function
()
{
This
.
websocketsend
(
`{"toUserId":"
${
This
.
carAllNumberString
}
","contentText":"
${
postData
}
","fromUserId":"
${
This
.
dialogTitle1
}
"}`
);
HttpReq
.
truckDispatching
.
recentNoticeAdd
({
noticeClass
:
This
.
dialogTitle1
,
flag
:
1
,
videoContent
:
postData
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
//近期通知列表
HttpReq
.
truckDispatching
.
recentNoticeQuery
({
size
:
50
,
sort
:
'
id,desc
'
,}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
This
.
recentNoticeData
=
res
.
data
.
content
;
};
})
}
else
{
this
.
$notify
({
title
:
res
.
msg
,
type
:
'
error
'
,
duration
:
2500
})
}
}).
catch
(
function
(
error
)
{
});
//
HttpReq.truckDispatching.recentNoticeAdd({noticeClass:This.dialogTitle1,flag:1,videoContent:postData}).then((res) => {
//
if(res.code == 200){
//
//近期通知列表
//
HttpReq.truckDispatching.recentNoticeQuery({size:50,sort:'id,desc',}).then((res) => {
//
if(res.code == 200){
//
This.recentNoticeData = res.data.content;
//
};
//
})
//
}else{
//
this.$notify({
//
title: res.msg,
//
type: 'error',
//
duration: 2500
//
})
//
}
//
}).catch(function(error) { });
This
.
$notify
({
title
:
'
上传成功!
'
,
type
:
'
success
'
,
...
...
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