pas besoin de ce watch, on a deja un computed
This commit is contained in:
parent
d28740005b
commit
9ef6927b91
2 changed files with 3 additions and 6 deletions
|
@ -161,6 +161,7 @@ let monTableau = {
|
||||||
},
|
},
|
||||||
computed: {
|
computed: {
|
||||||
tableau: function () {
|
tableau: function () {
|
||||||
|
this.setPages();
|
||||||
if (!this.search) {
|
if (!this.search) {
|
||||||
return this.pagination(this.table);
|
return this.pagination(this.table);
|
||||||
}
|
}
|
||||||
|
@ -177,9 +178,6 @@ let monTableau = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
tableau() {
|
|
||||||
this.setPages();
|
|
||||||
},
|
|
||||||
parPageSelect(e) {
|
parPageSelect(e) {
|
||||||
if (!parseInt(e)) {
|
if (!parseInt(e)) {
|
||||||
this.parPage = this.table.length;
|
this.parPage = this.table.length;
|
||||||
|
|
|
@ -194,6 +194,8 @@ var monTableau = {
|
||||||
tableau: function tableau() {
|
tableau: function tableau() {
|
||||||
var _this = this;
|
var _this = this;
|
||||||
|
|
||||||
|
this.setPages();
|
||||||
|
|
||||||
if (!this.search) {
|
if (!this.search) {
|
||||||
return this.pagination(this.table);
|
return this.pagination(this.table);
|
||||||
}
|
}
|
||||||
|
@ -204,9 +206,6 @@ var monTableau = {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
watch: {
|
watch: {
|
||||||
tableau: function tableau() {
|
|
||||||
this.setPages();
|
|
||||||
},
|
|
||||||
parPageSelect: function parPageSelect(e) {
|
parPageSelect: function parPageSelect(e) {
|
||||||
if (!parseInt(e)) {
|
if (!parseInt(e)) {
|
||||||
this.parPage = this.table.length;
|
this.parPage = this.table.length;
|
||||||
|
|
Loading…
Add table
Reference in a new issue