|
@@ -40,8 +40,12 @@
|
|
|
small
|
|
|
@click="
|
|
|
filtCardflag = true;
|
|
|
- showRowLength = newEditTable.length > 4 ? 6 : newEditTable.length;
|
|
|
- showRowLengths = newEditTable.length > 4 ? 6 : newEditTable.length;
|
|
|
+ showRowLength = filtTable.length > 4 ? 6 : filtTable.length;
|
|
|
+
|
|
|
+ filtTableShows = JSON.parse(JSON.stringify(newEditTable)).splice(
|
|
|
+ (currentPages - 1) * showRowLengths,
|
|
|
+ showRowLengths,
|
|
|
+ );
|
|
|
"
|
|
|
v-else
|
|
|
>筛选</el-button
|
|
@@ -321,7 +325,7 @@ export default {
|
|
|
this.loading = false;
|
|
|
this.editCardflag = false;
|
|
|
this.$message.success('保存成功');
|
|
|
- this.showRowLength = this.newEditTable.length > 4 ? 6 : this.newEditTable.length;
|
|
|
+ this.showRowLength = this.filtTable.length > 4 ? 6 : this.filtTable.length;
|
|
|
this.showRowLengths = this.newEditTable.length > 4 ? 6 : this.newEditTable.length;
|
|
|
})
|
|
|
.catch((res) => {
|
|
@@ -350,7 +354,7 @@ export default {
|
|
|
this.loading = false;
|
|
|
this.editCardflag = false;
|
|
|
this.$message.success('保存成功');
|
|
|
- this.showRowLength = this.newEditTable.length > 4 ? 6 : this.newEditTable.length;
|
|
|
+ this.showRowLength = this.filtTable.length > 4 ? 6 : this.filtTable.length;
|
|
|
this.showRowLengths = this.newEditTable.length > 4 ? 6 : this.newEditTable.length;
|
|
|
})
|
|
|
.catch((res) => {
|
|
@@ -377,7 +381,7 @@ export default {
|
|
|
}
|
|
|
});
|
|
|
this.loading = false;
|
|
|
- this.showRowLength = this.newEditTable.length > 4 ? 6 : this.newEditTable.length;
|
|
|
+ this.showRowLength = this.filtTable.length > 4 ? 6 : this.filtTable.length;
|
|
|
this.showRowLengths = this.newEditTable.length > 4 ? 6 : this.newEditTable.length;
|
|
|
this.filtTableShows = JSON.parse(JSON.stringify(this.newEditTable)).splice(
|
|
|
(this.currentPages - 1) * this.showRowLengths,
|
|
@@ -540,7 +544,6 @@ export default {
|
|
|
this.filtTable.slice().reverse();
|
|
|
this.filtCardflag = false;
|
|
|
this.showRowLength = this.filtTable.length > 4 ? 6 : this.filtTable.length;
|
|
|
- this.showRowLengths = this.filtTable.length > 4 ? 6 : this.filtTable.length;
|
|
|
this.getList();
|
|
|
},
|
|
|
handleSizeChange(val, type, page) {
|