diff --git a/src/api/area.js b/src/api/area.js
index de1855a..a5a6b0d 100644
--- a/src/api/area.js
+++ b/src/api/area.js
@@ -23,3 +23,45 @@
})
}
+// 区域查询,非分页,加载树用
+export function getAreaTree(params) {
+ return request({
+ url: 'area/list',
+ method: 'get',
+ params
+ })
+}
+// 区域类型查询
+export function getAreaType() {
+ return request({
+ url: 'dict/code/levelType',
+ method: 'get'
+ })
+}
+
+// 添加区域
+export function addArea(params) {
+ return request({
+ url: 'area/add',
+ method: 'post',
+ params
+ })
+}
+// 修改区域机构
+export function updateArea(params) {
+ return request({
+ url: 'area/update',
+ method: 'post',
+ params
+ })
+}
+// 删除区域机构
+export function delArea(id) {
+ return request({
+ url: 'area/delete',
+ method: 'post',
+ params: {
+ id: id
+ }
+ })
+}
diff --git a/src/api/area.js b/src/api/area.js
index de1855a..a5a6b0d 100644
--- a/src/api/area.js
+++ b/src/api/area.js
@@ -23,3 +23,45 @@
})
}
+// 区域查询,非分页,加载树用
+export function getAreaTree(params) {
+ return request({
+ url: 'area/list',
+ method: 'get',
+ params
+ })
+}
+// 区域类型查询
+export function getAreaType() {
+ return request({
+ url: 'dict/code/levelType',
+ method: 'get'
+ })
+}
+
+// 添加区域
+export function addArea(params) {
+ return request({
+ url: 'area/add',
+ method: 'post',
+ params
+ })
+}
+// 修改区域机构
+export function updateArea(params) {
+ return request({
+ url: 'area/update',
+ method: 'post',
+ params
+ })
+}
+// 删除区域机构
+export function delArea(id) {
+ return request({
+ url: 'area/delete',
+ method: 'post',
+ params: {
+ id: 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/api/area.js b/src/api/area.js
index de1855a..a5a6b0d 100644
--- a/src/api/area.js
+++ b/src/api/area.js
@@ -23,3 +23,45 @@
})
}
+// 区域查询,非分页,加载树用
+export function getAreaTree(params) {
+ return request({
+ url: 'area/list',
+ method: 'get',
+ params
+ })
+}
+// 区域类型查询
+export function getAreaType() {
+ return request({
+ url: 'dict/code/levelType',
+ method: 'get'
+ })
+}
+
+// 添加区域
+export function addArea(params) {
+ return request({
+ url: 'area/add',
+ method: 'post',
+ params
+ })
+}
+// 修改区域机构
+export function updateArea(params) {
+ return request({
+ url: 'area/update',
+ method: 'post',
+ params
+ })
+}
+// 删除区域机构
+export function delArea(id) {
+ return request({
+ url: 'area/delete',
+ method: 'post',
+ params: {
+ id: 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/area.js b/src/api/area.js
index de1855a..a5a6b0d 100644
--- a/src/api/area.js
+++ b/src/api/area.js
@@ -23,3 +23,45 @@
})
}
+// 区域查询,非分页,加载树用
+export function getAreaTree(params) {
+ return request({
+ url: 'area/list',
+ method: 'get',
+ params
+ })
+}
+// 区域类型查询
+export function getAreaType() {
+ return request({
+ url: 'dict/code/levelType',
+ method: 'get'
+ })
+}
+
+// 添加区域
+export function addArea(params) {
+ return request({
+ url: 'area/add',
+ method: 'post',
+ params
+ })
+}
+// 修改区域机构
+export function updateArea(params) {
+ return request({
+ url: 'area/update',
+ method: 'post',
+ params
+ })
+}
+// 删除区域机构
+export function delArea(id) {
+ return request({
+ url: 'area/delete',
+ method: 'post',
+ params: {
+ id: 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/router/index.js b/src/router/index.js
index 594f49f..f269b02 100644
--- a/src/router/index.js
+++ b/src/router/index.js
@@ -266,6 +266,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'),