Commit 91099d5d by jack

修复bug

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