Commit 91099d5d by jack

修复bug

1 parent 259909ae
......@@ -68,14 +68,15 @@ export default {
},
data() {
return {
currentPage:1
currentPage: 1,
pageSize: 10,
};
},
created() {
//console.log(this.$scopedSlots);
},
mounted() {
console.log(this.$scopedSlots);
console.log(this.$scopedSlots);
},
methods: {
/**
......@@ -83,20 +84,19 @@ export default {
*/
changePageSize: function (e) {
this.pageSize = e;
this.$emit("change",{pageSize:e});
this.$emit("change", { pageSize: e });
//this.getList();
},
// 获取列表
getList(current) {
this.$emit("change",{pageNumber:current});
this.$emit("change", { pageNumber: current, pageSize: this.pageSize });
},
// 重置
rest(){
rest() {
this.currentPage = 1;
}
},
},
};
</script>
......
......@@ -163,7 +163,6 @@ export default {
// 获取列表
getList(options) {
let oParams = this.getParams();
console.log(this.searchForm);
oParams.pageSize = options ? options.pageSize || 10 : 10;
oParams.pageNumber = options ? options.pageNumber || 1 : 1;
this.loading = true;
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!