diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..3415b6d --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,39 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' +// 字典查询 +export function getDictList(params) { + return request({ + url: 'dict/listPage', + method: 'get', + params + }) +} + +// 添加字典 +export function addDict(params) { + return request({ + url: 'dict/add', + method: 'post', + params + }) +} +// 修改字典机构 +export function updateDict(params) { + return request({ + url: 'dict/update', + method: 'post', + params + }) +} +// 删除字典机构 +export function delDict(id) { + return request({ + url: 'dict/delete', + method: 'post', + params: { + dictId: id + } + }) +} diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..3415b6d --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,39 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' +// 字典查询 +export function getDictList(params) { + return request({ + url: 'dict/listPage', + method: 'get', + params + }) +} + +// 添加字典 +export function addDict(params) { + return request({ + url: 'dict/add', + method: 'post', + params + }) +} +// 修改字典机构 +export function updateDict(params) { + return request({ + url: 'dict/update', + method: 'post', + params + }) +} +// 删除字典机构 +export function delDict(id) { + return request({ + url: 'dict/delete', + method: 'post', + params: { + dictId: id + } + }) +} diff --git a/src/icons/svg/icon-dict.svg b/src/icons/svg/icon-dict.svg new file mode 100644 index 0000000..16275bc --- /dev/null +++ b/src/icons/svg/icon-dict.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..3415b6d --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,39 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' +// 字典查询 +export function getDictList(params) { + return request({ + url: 'dict/listPage', + method: 'get', + params + }) +} + +// 添加字典 +export function addDict(params) { + return request({ + url: 'dict/add', + method: 'post', + params + }) +} +// 修改字典机构 +export function updateDict(params) { + return request({ + url: 'dict/update', + method: 'post', + params + }) +} +// 删除字典机构 +export function delDict(id) { + return request({ + url: 'dict/delete', + method: 'post', + params: { + dictId: id + } + }) +} diff --git a/src/icons/svg/icon-dict.svg b/src/icons/svg/icon-dict.svg new file mode 100644 index 0000000..16275bc --- /dev/null +++ b/src/icons/svg/icon-dict.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/router/modules/system.js b/src/router/modules/system.js index 5504ce9..076d5b2 100644 --- a/src/router/modules/system.js +++ b/src/router/modules/system.js @@ -32,6 +32,18 @@ meta: { title: '资源管理', icon: 'function', permission: ['/resource'] } }, { + path: '/dict', + name: 'Dict', + component: () => import('@/views/system/dict/listDict'), + meta: { title: '字典管理', icon: 'function', permission: ['/dict'] } + }, + { + path: '/area', + name: 'Area', + component: () => import('@/views/system/area/listArea'), + meta: { title: '区域管理', icon: 'function', permission: ['/area'] } + }, + { path: '/dept', name: 'Dept', component: () => import('@/views/system/dept/listDept'), diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..3415b6d --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,39 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' +// 字典查询 +export function getDictList(params) { + return request({ + url: 'dict/listPage', + method: 'get', + params + }) +} + +// 添加字典 +export function addDict(params) { + return request({ + url: 'dict/add', + method: 'post', + params + }) +} +// 修改字典机构 +export function updateDict(params) { + return request({ + url: 'dict/update', + method: 'post', + params + }) +} +// 删除字典机构 +export function delDict(id) { + return request({ + url: 'dict/delete', + method: 'post', + params: { + dictId: id + } + }) +} diff --git a/src/icons/svg/icon-dict.svg b/src/icons/svg/icon-dict.svg new file mode 100644 index 0000000..16275bc --- /dev/null +++ b/src/icons/svg/icon-dict.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/router/modules/system.js b/src/router/modules/system.js index 5504ce9..076d5b2 100644 --- a/src/router/modules/system.js +++ b/src/router/modules/system.js @@ -32,6 +32,18 @@ meta: { title: '资源管理', icon: 'function', permission: ['/resource'] } }, { + path: '/dict', + name: 'Dict', + component: () => import('@/views/system/dict/listDict'), + meta: { title: '字典管理', icon: 'function', permission: ['/dict'] } + }, + { + path: '/area', + name: 'Area', + component: () => import('@/views/system/area/listArea'), + meta: { title: '区域管理', icon: 'function', permission: ['/area'] } + }, + { path: '/dept', name: 'Dept', component: () => import('@/views/system/dept/listDept'), diff --git a/src/views/system/dict/editDict.vue b/src/views/system/dict/editDict.vue new file mode 100644 index 0000000..2467947 --- /dev/null +++ b/src/views/system/dict/editDict.vue @@ -0,0 +1,230 @@ + + + + + diff --git a/src/api/dict.js b/src/api/dict.js new file mode 100644 index 0000000..3415b6d --- /dev/null +++ b/src/api/dict.js @@ -0,0 +1,39 @@ +/** + * 字典接口 + */ +import request from '@/utils/request' +// 字典查询 +export function getDictList(params) { + return request({ + url: 'dict/listPage', + method: 'get', + params + }) +} + +// 添加字典 +export function addDict(params) { + return request({ + url: 'dict/add', + method: 'post', + params + }) +} +// 修改字典机构 +export function updateDict(params) { + return request({ + url: 'dict/update', + method: 'post', + params + }) +} +// 删除字典机构 +export function delDict(id) { + return request({ + url: 'dict/delete', + method: 'post', + params: { + dictId: id + } + }) +} diff --git a/src/icons/svg/icon-dict.svg b/src/icons/svg/icon-dict.svg new file mode 100644 index 0000000..16275bc --- /dev/null +++ b/src/icons/svg/icon-dict.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/src/router/modules/system.js b/src/router/modules/system.js index 5504ce9..076d5b2 100644 --- a/src/router/modules/system.js +++ b/src/router/modules/system.js @@ -32,6 +32,18 @@ meta: { title: '资源管理', icon: 'function', permission: ['/resource'] } }, { + path: '/dict', + name: 'Dict', + component: () => import('@/views/system/dict/listDict'), + meta: { title: '字典管理', icon: 'function', permission: ['/dict'] } + }, + { + path: '/area', + name: 'Area', + component: () => import('@/views/system/area/listArea'), + meta: { title: '区域管理', icon: 'function', permission: ['/area'] } + }, + { path: '/dept', name: 'Dept', component: () => import('@/views/system/dept/listDept'), diff --git a/src/views/system/dict/editDict.vue b/src/views/system/dict/editDict.vue new file mode 100644 index 0000000..2467947 --- /dev/null +++ b/src/views/system/dict/editDict.vue @@ -0,0 +1,230 @@ + + + + + diff --git a/src/views/system/dict/listDict.vue b/src/views/system/dict/listDict.vue new file mode 100644 index 0000000..bcca9d1 --- /dev/null +++ b/src/views/system/dict/listDict.vue @@ -0,0 +1,217 @@ + + + + +