Commit e5897e3d by cocomilk2012

update

parent 10a2f65b
Showing with 8 additions and 5 deletions
......@@ -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() {
......
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