Commit e5897e3d by cocomilk2012

update

parent 10a2f65b
Showing with 8 additions and 5 deletions
...@@ -416,7 +416,6 @@ export default { ...@@ -416,7 +416,6 @@ export default {
await this.loadBillPeriod().then( await this.loadBillPeriod().then(
data => { data => {
this.period = data; this.period = data;
console.log("this.period=", this.period);
flag = true; flag = true;
this.initMonth(); this.initMonth();
}, },
...@@ -479,7 +478,6 @@ export default { ...@@ -479,7 +478,6 @@ export default {
if (localPerIndex && localPerIndex != "undefined") { if (localPerIndex && localPerIndex != "undefined") {
this.currentPerIndex = localPerIndex; this.currentPerIndex = localPerIndex;
this.currentPerId = this.period[localPerIndex].id; this.currentPerId = this.period[localPerIndex].id;
this.currentPerName = this.period[localPerIndex].name; this.currentPerName = this.period[localPerIndex].name;
this.savePerBeginDate(this.period[localPerIndex].beginDate); this.savePerBeginDate(this.period[localPerIndex].beginDate);
...@@ -500,9 +498,14 @@ export default { ...@@ -500,9 +498,14 @@ export default {
} }
} }
//TODO:根据APP传过来的accountId赋值给this.currentPerId //TODO:根据APP传过来的accountId赋值给this.currentPerId
const query_periodID = this.$route.query.accountId; const query_accountId= this.$route.query.accountId;
if (query_periodID) { if (query_accountId) {
this.currentPerId = query_periodID; 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() { setBarHeightLowBee() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment