Commit 8fbbbdfc by 展昭

修复账期索引在切换企业后大于账期列表数量的BUG

parent b024323b
Showing with 1 additions and 0 deletions
...@@ -477,6 +477,7 @@ export default { ...@@ -477,6 +477,7 @@ export default {
const localPerIndex = this.getCurPerIndex; const localPerIndex = this.getCurPerIndex;
if (localPerIndex && localPerIndex != "undefined") { if (localPerIndex && localPerIndex != "undefined") {
localPerIndex=localPerIndex>this.period.length-1?this.period.length-1:localPerIndex;
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;
......
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