分页bug修复

This commit is contained in:
shixiaoman
2021-12-09 15:34:18 +08:00
parent 3ff74b9b8c
commit 3717fdcb69
4 changed files with 4 additions and 4 deletions

View File

@@ -162,8 +162,8 @@
/* 刷新表格 */ /* 刷新表格 */
reload() { reload() {
this.loading=true; this.loading=true;
this.momData = [];
listAvgCompositeIndex(this.where).then((res) => { listAvgCompositeIndex(this.where).then((res) => {
this.momData = [];
console.log(res.data.data); console.log(res.data.data);
if (res.data.code == 0) { if (res.data.code == 0) {
this.$message.success(res.data.msg); this.$message.success(res.data.msg);

View File

@@ -165,9 +165,9 @@
/* 刷新表格 */ /* 刷新表格 */
reload() { reload() {
this.loading = true; this.loading = true;
this.momData = [];
listAvgWaterQualitySandard(this.where).then((res) => { listAvgWaterQualitySandard(this.where).then((res) => {
console.log(res.data.data); console.log(res.data.data);
this.momData = [];
if (res.data.code == 0) { if (res.data.code == 0) {
this.$message.success(res.data.msg); this.$message.success(res.data.msg);
res.data.data.forEach((m) => { res.data.data.forEach((m) => {

View File

@@ -167,9 +167,9 @@
/* 刷新表格 */ /* 刷新表格 */
reload() { reload() {
this.loading = true; this.loading = true;
this.momData = [];
listMonthCompositeIndex(this.where).then((res) => { listMonthCompositeIndex(this.where).then((res) => {
console.log(res.data.data); console.log(res.data.data);
this.momData = [];
if (res.data.code == 0) { if (res.data.code == 0) {
this.$message.success(res.data.msg); this.$message.success(res.data.msg);
res.data.data.forEach((m) => { res.data.data.forEach((m) => {

View File

@@ -183,8 +183,8 @@
/* 刷新表格 */ /* 刷新表格 */
reload() { reload() {
this.loading = true; this.loading = true;
this.datasource = [];
listNationalStandard(this.where).then((res) => { listNationalStandard(this.where).then((res) => {
this.datasource = [];
console.log(res.data.data); console.log(res.data.data);
if (res.data.code == 0) { if (res.data.code == 0) {
this.$message.success(res.data.msg); this.$message.success(res.data.msg);