Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
hrs_app_h5
/
bill
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
e5897e3d
authored
Jul 16, 2020
by
cocomilk2012
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
update
parent
10a2f65b
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
5 deletions
src/views/Bill/index.vue
src/views/Bill/index.vue
View file @
e5897e3d
...
...
@@ -416,7 +416,6 @@ export default {
await
this
.
loadBillPeriod
().
then
(
data
=>
{
this
.
period
=
data
;
console
.
log
(
"this.period="
,
this
.
period
);
flag
=
true
;
this
.
initMonth
();
},
...
...
@@ -479,7 +478,6 @@ export default {
if
(
localPerIndex
&&
localPerIndex
!=
"undefined"
)
{
this
.
currentPerIndex
=
localPerIndex
;
this
.
currentPerId
=
this
.
period
[
localPerIndex
].
id
;
this
.
currentPerName
=
this
.
period
[
localPerIndex
].
name
;
this
.
savePerBeginDate
(
this
.
period
[
localPerIndex
].
beginDate
);
...
...
@@ -500,9 +498,14 @@ export default {
}
}
//TODO:根据APP传过来的accountId赋值给this.currentPerId
const
query_periodID
=
this
.
$route
.
query
.
accountId
;
if
(
query_periodID
)
{
this
.
currentPerId
=
query_periodID
;
const
query_accountId
=
this
.
$route
.
query
.
accountId
;
if
(
query_accountId
)
{
const
localPerIndex
=
this
.
period
.
findIndex
(
x
=>
{
return
x
.
id
==
query_accountId
});
this
.
currentPerIndex
=
localPerIndex
;
this
.
currentPerId
=
this
.
period
[
localPerIndex
].
id
;
this
.
currentPerName
=
this
.
period
[
localPerIndex
].
name
;
this
.
savePerBeginDate
(
this
.
period
[
localPerIndex
].
beginDate
);
this
.
currentPerId
=
query_accountId
;
}
},
setBarHeightLowBee
()
{
...
...
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