teratail header banner
teratail header banner
質問するログイン新規登録

質問編集履歴

1

記載ミス修正

2017/10/23 11:18

投稿

gomengo
gomengo

スコア51

title CHANGED
File without changes
body CHANGED
@@ -57,7 +57,7 @@
57
57
  this.page++;
58
58
  },
59
59
  showLast: function(index) {
60
- this.page = Math.floor((this.csv.length - 1) / this.dispItemSize);
60
+ this.page = Math.floor((this.data.length - 1) / this.dispItemSize);
61
61
  //this.page = this.pageCount - 2;
62
62
  },
63
63
  showPage: function(index) {
@@ -67,16 +67,16 @@
67
67
  computed:{
68
68
  dipsItems: function() {
69
69
  var startPage = this.page * this.dispItemSize;
70
- return this.csv.slice(startPage, startPage + this.dispItemSize);
70
+ return this.data.slice(startPage, startPage + this.dispItemSize);
71
71
  },
72
72
  isStartPage: function(){
73
73
  return (this.page == 0);
74
74
  },
75
75
  isEndPage: function(){
76
- return ((this.page + 1) * this.dispItemSize >= this.csv.length);
76
+ return ((this.page + 1) * this.dispItemSize >= this.data.length);
77
77
  },
78
78
  pageCount: function() {
79
- return Math.floor(this.csv.length / this.dispItemSize);
79
+ return Math.floor(this.data.length / this.dispItemSize);
80
80
  },
81
81
  },
82
82
  ```