diff --git a/_web/src/components/Table/README.md b/_web/src/components/Table/README.md index c48d196b..04ce447c 100644 --- a/_web/src/components/Table/README.md +++ b/_web/src/components/Table/README.md @@ -11,6 +11,7 @@ Table 重封装组件说明 该 `table` 由 [@Saraka](https://github.com/saraka-tsukai) 完成封装 +由 `小诺` 完成二次改进使用 例子1 ---- diff --git a/_web/src/components/Table/index.js b/_web/src/components/Table/index.js index 4be886c9..a3f004ae 100644 --- a/_web/src/components/Table/index.js +++ b/_web/src/components/Table/index.js @@ -201,7 +201,13 @@ export default { } catch (e) { this.localPagination = false } - this.localDataSource = r.rows // 返回结果中的数组数据 + // 返回结果中的数组数据 + if (this.showPagination === false) { + // 因为按住小诺的套路,不分页的直接是在data中,我们在界面中直接就是返回了data + this.localDataSource = r + } else { + this.localDataSource = r.rows + } this.localLoading = false }) } diff --git a/_web/src/views/system/app/addForm.vue b/_web/src/views/system/app/addForm.vue index 0c699b61..b754565d 100644 --- a/_web/src/views/system/app/addForm.vue +++ b/_web/src/views/system/app/addForm.vue @@ -1,7 +1,7 @@