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',