Commit 62b80806 by 张杰

修复bug

1 parent 78bc10a9
......@@ -9,7 +9,7 @@
</el-table-column>
</el-table>
<div class="pagination_list">
<el-pagination background layout="sizes, total,prev, pager, next, jumper" hide-on-single-page :total="pageTotal" :page-size="pageSize" :page-sizes="pageSizes" :current-page.sync="currentPage" @current-change="getList" @size-change="changePageSize" />
<el-pagination background layout="sizes, total,prev, pager, next, jumper" hide-on-single-page :total="pageTotal" :page-size.sync="pageSizeNum" :page-sizes="pageSizes" :current-page.sync="currentPage" @current-change="getList" @size-change="changePageSize" />
</div>
</div>
</template>
......@@ -69,32 +69,33 @@ export default {
data() {
return {
currentPage: 1,
pageSizeNum: 10,
};
},
created() {
this.pageSizeNum = this.pageSize;
//console.log(this.$scopedSlots);
},
mounted() {
},
mounted() {},
methods: {
/**
* 每页展示
*/
changePageSize: function (e) {
this.pageSize = e;
this.pageSizeNum = e;
this.$emit("change", { pageSize: e });
//this.getList();
},
// 获取列表
getList(current) {
this.$emit("change", { pageNumber: current, pageSize: this.pageSize });
this.$emit("change", { pageNumber: current, pageSize: this.pageSizeNum });
},
// 重置
rest() {
this.currentPage = 1;
this.pageSize = 10
this.pageSizeNum = 10;
},
},
};
......
......@@ -125,12 +125,13 @@ export default {
{ label: "假性离线原因", prop: "reason" },
],
pageTotal: 0,
pageSize: 10,
filterVisible: false,
dloading: false,
showPopover: false,
cloading: false,
loading: false,
aloading:false,
aloading: false,
isTimeOut: false,
sTime: "",
eTime: "",
......@@ -175,8 +176,10 @@ export default {
// 获取列表
getList(options) {
let oParams = this.getParams();
oParams.pageSize = this.$refs.glsxTable.pageSize;
console.log(this.$refs.glsxTable.pageSizeNum);
oParams.pageSize = options?options.pageSize : this.$refs.glsxTable.pageSizeNum;
oParams.pageNumber = options ? options.pageNumber || 1 : 1;
this.loading = true;
//GET_FAKEOFFLINE_LIST 等后台部署后替换
GET_FAKEOFFLINE_LIST(oParams)
......@@ -248,8 +251,8 @@ export default {
// 重置
rest() {
this.searchForm = {};
this.getList();
this.$refs.glsxTable.rest();
this.getList();
},
// 监听文件导入
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!