|
@@ -29,7 +29,7 @@
|
|
|
type="primary"
|
|
|
size="mini"
|
|
|
icon="ios-search"
|
|
|
- @click="changePage(1)"
|
|
|
+ @click="changePage(false)"
|
|
|
:loading="loading"
|
|
|
>查询</el-button>
|
|
|
<el-button
|
|
@@ -144,12 +144,8 @@
|
|
|
const formattedTime = year +"-"+ month +"-"+ day;
|
|
|
return formattedTime;
|
|
|
},
|
|
|
- changePage(pageIndex,exportFlag) {
|
|
|
+ changePage(exportFlag) {
|
|
|
var self = this;
|
|
|
-
|
|
|
- console.log(pageIndex);
|
|
|
-
|
|
|
- self.pageIndex = pageIndex;
|
|
|
var formData = new FormData();
|
|
|
|
|
|
//alert(exportFlag)
|
|
@@ -198,7 +194,7 @@
|
|
|
this.field = data.column.field;
|
|
|
this.direction = data.order == "ascending" ? "asc" : "desc";
|
|
|
|
|
|
- this.changePage(this.pageIndex);
|
|
|
+ this.changePage(false);
|
|
|
},
|
|
|
handleSelectionChange(val) {
|
|
|
this.multipleSelection = val;
|
|
@@ -210,16 +206,16 @@
|
|
|
this.showModal = false;
|
|
|
|
|
|
if(refreshed) {
|
|
|
- this.changePage(this.pageIndex);
|
|
|
+ this.changePage(false);
|
|
|
}
|
|
|
},
|
|
|
exportXls() {
|
|
|
- this.changePage(1,true);
|
|
|
+ this.changePage(true);
|
|
|
},
|
|
|
},
|
|
|
mounted: function() {
|
|
|
var self = this;
|
|
|
- this.changePage(1,false);
|
|
|
+ this.changePage(false);
|
|
|
},
|
|
|
components: {
|
|
|
}
|