Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
S
SuperMan
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
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
罗超
SuperMan
Commits
83d0d5ec
Commit
83d0d5ec
authored
Aug 23, 2019
by
华国豪
🙄
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
1
parent
b4220283
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
3 deletions
+19
-3
leaderPay2.vue
src/components/leaderPay2.vue
+19
-3
No files found.
src/components/leaderPay2.vue
View file @
83d0d5ec
...
...
@@ -332,7 +332,7 @@ input[type="number"] {
<td
v-if=
"childIndex==0"
:rowspan=
"subItem.DiningPriceList.length"
>
{{
item
.
UseTimeStr
}}
</td>
<td
v-if=
"childIndex==0
"
:rowspan=
"subItem.DiningPriceList.length
"
>
<td
v-if=
"childIndex==0
&& subIndex == 0"
:rowspan=
"item.row
"
>
{{
subItem
.
RealName
?
subItem
.
RealName
:
subItem
.
DiningName
}}
</td>
<td
v-if=
"childIndex==0"
:rowspan=
"subItem.DiningPriceList.length"
>
...
...
@@ -1471,6 +1471,11 @@ export default {
// }
// })
},
unique
(
arr
)
{
// 根据唯一标识orderId来对数组进行过滤
const
res
=
new
Map
();
//定义常量 res,值为一个Map对象实例
//返回arr数组过滤后的结果,结果为一个数组 过滤条件是,如果res中没有某个键,就设置这个键的值为1
return
arr
.
filter
((
arr
)
=>
!
res
.
has
(
arr
.
DiningID
)
&&
res
.
set
(
arr
.
DiningID
,
1
))
},
getnewList
(){
this
.
loading
=
true
;
// dmcstatistics_post_GetNewPlanTotalPrice_V2
...
...
@@ -1524,14 +1529,24 @@ export default {
});
Diningmap
[
ai
.
UseTimeStr
]
=
ai
;
}
else
{
let
list
=
[]
for
(
var
j
=
0
;
j
<
Diningdest
.
length
;
j
++
){
var
dj
=
Diningdest
[
j
];
if
(
dj
.
UseTimeStr
==
ai
.
UseTimeStr
&&
dj
.
DiningID
==
ai
.
DiningID
){
dj
.
data
.
push
(
ai
);
break
;
}
else
{
list
.
push
(
ai
)
}
}
}
for
(
let
i
=
0
;
i
<
list
.
length
;
i
++
)
{
Diningdest
.
push
({
UseTimeStr
:
ai
.
UseTimeStr
,
DiningID
:
ai
.
DiningID
,
data
:
[
ai
]
});
}
}
}
for
(
var
i
=
0
;
i
<
Diningdest
.
length
;
i
++
){
let
row
=
0
;
...
...
@@ -1540,7 +1555,8 @@ export default {
}
Diningdest
[
i
].
row
=
row
}
this
.
DiningDataList
=
Diningdest
this
.
DiningDataList
=
this
.
unique
(
Diningdest
);
// this.DiningDataList = Diningdest
//票
let
ScenicList
=
[]
for
(
let
i
=
0
;
i
<
res
.
data
.
data
.
ScenicList
.
length
;
i
++
)
{
...
...
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