From 2d96581ee0dc566ba2a9c6b0b205788f311cf333 Mon Sep 17 00:00:00 2001 From: "aoli.qu" <408346101@qq.com> Date: Wed, 8 Sep 2021 15:10:14 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BA=BA=E5=91=98=E7=AE=A1=E7=90=86-=E5=8D=95?= =?UTF-8?q?=E4=BD=8D=E7=AE=A1=E7=90=86=E5=8A=9F=E8=83=BD=E5=BC=80=E5=8F=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/org/org.js | 45 ++++++ src/layouts/BasicLayout.less | 6 + src/layouts/BasicLayout.vue | 2 +- src/views/org/OrgForm.vue | 205 +++++++++++++++++++++++++++ src/views/org/OrgList.vue | 198 ++++++++++++++++++++++++++ src/views/role/RoleList.vue | 168 ---------------------- src/views/security/menu/MenuForm.vue | 1 - 7 files changed, 455 insertions(+), 170 deletions(-) create mode 100644 src/api/org/org.js create mode 100644 src/views/org/OrgForm.vue create mode 100644 src/views/org/OrgList.vue delete mode 100644 src/views/role/RoleList.vue diff --git a/src/api/org/org.js b/src/api/org/org.js new file mode 100644 index 0000000..0751f08 --- /dev/null +++ b/src/api/org/org.js @@ -0,0 +1,45 @@ +import request from '@/utils/request' + +const orgApi = { + add: 'sys/org/add', + edit: 'sys/org/edit', + del: 'sys/org/del', + list: 'sys/org/list', + page: 'sys/org/pageList', +} + +export function orgAdd (params) { + return request({ + url: orgApi.add, + method: 'post', + data: params + }) +} +export function orgEdit (params) { + return request({ + url: orgApi.edit, + method: 'post', + data: params + }) +} +export function orgDel (params) { + return request({ + url: orgApi.del, + method: 'post', + params: params + }) +} +export function orgList (params) { + return request({ + url: orgApi.list, + method: 'get', + params: params + }) +} +export function orgPage (params) { + return request({ + url: orgApi.page, + method: 'get', + params: params + }) +} diff --git a/src/layouts/BasicLayout.less b/src/layouts/BasicLayout.less index a0762ec..371f01a 100644 --- a/src/layouts/BasicLayout.less +++ b/src/layouts/BasicLayout.less @@ -34,3 +34,9 @@ } } +.ant-layout-sider { + flex: 0 0 230px !important; + max-width: 230px !important; + min-width: 230px !important; + width: 230px !important; +} diff --git a/src/layouts/BasicLayout.vue b/src/layouts/BasicLayout.vue index 5ea4987..5b6cce9 100644 --- a/src/layouts/BasicLayout.vue +++ b/src/layouts/BasicLayout.vue @@ -123,7 +123,7 @@ export default { /*隐藏原本的图标*/ .ant-pro-global-header-trigger{ - display: none; + display: none; } diff --git a/src/views/org/OrgForm.vue b/src/views/org/OrgForm.vue new file mode 100644 index 0000000..de7fc6a --- /dev/null +++ b/src/views/org/OrgForm.vue @@ -0,0 +1,205 @@ + + + diff --git a/src/views/org/OrgList.vue b/src/views/org/OrgList.vue new file mode 100644 index 0000000..a25c0c9 --- /dev/null +++ b/src/views/org/OrgList.vue @@ -0,0 +1,198 @@ + + + diff --git a/src/views/role/RoleList.vue b/src/views/role/RoleList.vue deleted file mode 100644 index 024aa84..0000000 --- a/src/views/role/RoleList.vue +++ /dev/null @@ -1,168 +0,0 @@ - - - - - diff --git a/src/views/security/menu/MenuForm.vue b/src/views/security/menu/MenuForm.vue index d75067d..013e5ad 100644 --- a/src/views/security/menu/MenuForm.vue +++ b/src/views/security/menu/MenuForm.vue @@ -67,7 +67,6 @@ :dropdownStyle="{ maxHeight: '300px', overflow: 'auto' }" :treeData="menuTreeData" placeholder="请选择父级菜单" - treeDefaultExpandAll :replaceFields="{ children:'children', title:'name',