Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
Toggle navigation
This project
Loading...
Sign in
罗鑫霖
/
vion-tools
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 6ccdfc00
authored
Mar 24, 2020
by
周志凯
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
add multiply progress
1 parent
977ac7c4
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
12 additions
and
5 deletions
index.html
index.html
View file @
6ccdfc0
...
...
@@ -1534,7 +1534,7 @@
:
0
;
}
});
console
.
log
(
'list'
,
_this
[
processKey
])
//
console.log('list',_this[processKey])
};
_this
.
webSocketObj
[
wsUrl
].
onerror
=
function
(
event
)
{
console
.
log
(
"设备WebSocket:发生错误 "
);
...
...
@@ -2034,7 +2034,8 @@
})
},
dealMessage
(
msg
)
{
const
{
dates
,
mallIds
,
mallNames
,
status
,
stepCount
,
counter
}
=
msg
// scheduleType
const
{
dates
,
mallIds
,
mallNames
,
status
,
stepCount
,
scheduleType
,
counter
}
=
msg
var
self
=
this
var
resObj
=
{}
resObj
.
dates
=
dates
...
...
@@ -2046,6 +2047,7 @@
resObj
.
totalPage
=
0
resObj
.
current
=
0
resObj
.
curPageSize
=
0
resObj
.
scheduleType
=
scheduleType
if
(
counter
)
{
// dataNum dateMallNum step totalData totalDate totalMall totalMallDateProduct
resObj
.
totalNum
=
counter
.
dateMallNum
...
...
@@ -2054,15 +2056,20 @@
resObj
.
curPageSize
=
counter
.
dataNum
}
if
(
self
.
results
.
length
)
{
self
.
results
.
forEach
(
item
=>
{
const
isSameScheduleType
=
self
.
results
.
some
(
item
=>
item
.
scheduleType
===
scheduleType
)
isSameScheduleType
?
self
.
results
.
forEach
(
item
=>
{
//
item
.
progress
=
self
.
floatToPercent
(
stepCount
)
if
(
counter
)
{
item
.
totalNum
=
counter
.
dateMallNum
item
.
totalPage
=
counter
.
totalMallDateProduct
//
item.totalNum = counter.dateMallNum
//
item.totalPage = counter.totalMallDateProduct
item
.
current
=
counter
.
dataNum
item
.
curPageSize
=
counter
.
totalData
}
})
:
self
.
results
.
push
(
resObj
)
resObj
=
{}
}
else
{
self
.
results
.
push
(
resObj
)
resObj
=
{}
...
...
Write
Preview
Markdown
is supported
Attach a file
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 post a comment