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
5567fffd
Commit
5567fffd
authored
Sep 02, 2022
by
xxx
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
1d163a1c
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
37 additions
and
37 deletions
+37
-37
index.vue
...iews/MLargeScreen/components/intelligentSchedul/index.vue
+37
-37
No files found.
src/views/MLargeScreen/components/intelligentSchedul/index.vue
View file @
5567fffd
...
...
@@ -335,17 +335,17 @@ export default {
HttpReq
.
truckDispatching
.
recentNoticeQuery
({
size
:
50
,
sort
:
'
id,desc
'
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
this
.
recentNoticeData
=
res
.
data
.
content
;
let
flag0
=
[];
this
.
recentNoticeData
.
forEach
((
item
)
=>
{
if
(
item
.
flag
==
0
){
flag0
.
push
(
item
);
}
})
if
(
flag0
.
length
==
0
){
this
.
dispatchBtnTitle
=
'
人工调度
'
;
}
else
{
this
.
dispatchBtnTitle
=
flag0
[
0
].
noticeClass
;
}
//
let flag0 = [];
//
this.recentNoticeData.forEach((item)=>{
//
if(item.flag == 0){
//
flag0.push(item);
//
}
//
})
//
if(flag0.length == 0){
//
this.dispatchBtnTitle = '人工调度';
//
}else{
//
this.dispatchBtnTitle = flag0[0].noticeClass;
//
}
};
})
//智能调度情况
...
...
@@ -565,31 +565,31 @@ export default {
// this.dispatchBtnTitle = '智能调度';
// this.dispatchBtnTitle1 = '人工调度';
}
else
{
this
.
dispatchBtnTitle
=
'
人工调度
'
;
this
.
dispatchBtnTitle1
=
'
智能调度
'
;
HttpReq
.
truckDispatching
.
recentNoticeAdd
({
noticeClass
:
this
.
dispatchBtnTitle1
,
flag
:
0
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
this
.
$notify
({
title
:
this
.
dispatchBtnTitle1
+
'
发起成功!
'
,
type
:
'
success
'
,
duration
:
2500
});
//近期通知列表
HttpReq
.
truckDispatching
.
recentNoticeQuery
({
size
:
50
,
sort
:
'
id,desc
'
,}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
this
.
recentNoticeData
=
res
.
data
.
content
;
};
})
//发起添加调度类型
HttpReq
.
truckDispatching
.
screenDispatchWayAdd
({
dispatcher
:
this
.
dispatchBtnTitle1
}).
then
((
res
)
=>
{})
}
else
{
this
.
$notify
({
title
:
res
.
msg
,
type
:
'
error
'
,
duration
:
2500
})
}
}).
catch
(
function
(
error
)
{});
//
this.dispatchBtnTitle = '人工调度';
//
this.dispatchBtnTitle1 = '智能调度';
//
HttpReq.truckDispatching.recentNoticeAdd({noticeClass:this.dispatchBtnTitle1,flag:0}).then((res) => {
//
if(res.code == 200){
//
this.$notify({
//
title: this.dispatchBtnTitle1 + '发起成功!',
//
type: 'success',
//
duration: 2500
//
});
//
//近期通知列表
//
HttpReq.truckDispatching.recentNoticeQuery({size:50,sort:'id,desc',}).then((res) => {
//
if(res.code == 200){
//
this.recentNoticeData = res.data.content;
//
};
//
})
//
//发起添加调度类型
//
HttpReq.truckDispatching.screenDispatchWayAdd({dispatcher:this.dispatchBtnTitle1}).then((res) => {})
//
}else{
//
this.$notify({
//
title: res.msg,
//
type: 'error',
//
duration: 2500
//
})
//
}
//
}).catch(function(error) {});
}
//关闭发起通知组件
this
.
dialogVisible
=
false
;
...
...
@@ -695,7 +695,7 @@ export default {
this
.
selectCarRadioArray
=
[];
//切换智能调度
this
.
dispatchBtnTitle
=
'
智能
调度
'
;
this
.
dispatchBtnTitle
=
'
人工
调度
'
;
this
.
dispatchBtnTitle1
=
'
人工调度
'
;
HttpReq
.
truckDispatching
.
recentNoticeAdd
({
noticeClass
:
this
.
dispatchBtnTitle1
,
flag
:
0
}).
then
((
res
)
=>
{
if
(
res
.
code
==
200
){
...
...
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