From 3241cee232a4ea8172463f8fa7519f1fbac852c0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=B0=8F=E8=AF=BA?= <1253070437@qq.com> Date: Tue, 1 Jun 2021 00:19:30 +0800 Subject: [PATCH] =?UTF-8?q?=E3=80=90=E6=9B=B4=E6=96=B0=E3=80=91=E4=BC=98?= =?UTF-8?q?=E5=8C=96=E4=B8=80=E4=BA=9B=E4=BB=A3=E7=A0=81=EF=BC=8C=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E5=8A=9F=E8=83=BD=E4=B8=B0=E5=AF=8C=E5=B9=B6=E4=BD=BF?= =?UTF-8?q?=E7=94=A8s-table=E7=BB=84=E4=BB=B6=EF=BC=8C=E4=BF=AE=E6=94=B9s-?= =?UTF-8?q?table=E9=80=82=E9=85=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- _web/src/components/Table/README.md | 1 + _web/src/components/Table/index.js | 8 +- _web/src/views/system/app/addForm.vue | 4 +- _web/src/views/system/app/editForm.vue | 4 +- _web/src/views/system/app/index.vue | 17 +- _web/src/views/system/config/index.vue | 25 +- _web/src/views/system/dict/dictdata/index.vue | 16 +- _web/src/views/system/dict/index.vue | 16 +- _web/src/views/system/menu/index.vue | 348 ++++++++---------- _web/src/views/system/role/addForm.vue | 4 +- _web/src/views/system/role/editForm.vue | 4 +- _web/src/views/system/role/index.vue | 13 +- _web/src/views/system/role/roleOrgForm.vue | 2 - _web/src/views/system/sms/index.vue | 2 +- 14 files changed, 190 insertions(+), 274 deletions(-) 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 @@