From 05fb7d316e83ac8c46938235f63b16ab2dcd3b3c Mon Sep 17 00:00:00 2001 From: Raod <1130305001@qq.com> Date: Wed, 4 Aug 2021 15:49:58 +0800 Subject: [PATCH] =?UTF-8?q?=E6=96=87=E4=BB=B6=E7=AE=A1=E7=90=86=E3=80=81?= =?UTF-8?q?=E6=95=B0=E6=8D=AE=E5=AD=97=E5=85=B8=E3=80=81=E5=AD=97=E5=85=B8?= =?UTF-8?q?=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- report-ui/src/api/dict.js | 75 ++++++++ report-ui/src/api/dictItem.js | 47 +++++ report-ui/src/router/index.js | 10 +- report-ui/src/views/dict/dict-item.vue | 239 +++++++++++++++++++++++++ report-ui/src/views/dict/index.vue | 212 ++++++++++++++++++++++ 5 files changed, 582 insertions(+), 1 deletion(-) create mode 100644 report-ui/src/api/dict.js create mode 100644 report-ui/src/api/dictItem.js create mode 100644 report-ui/src/views/dict/dict-item.vue create mode 100644 report-ui/src/views/dict/index.vue diff --git a/report-ui/src/api/dict.js b/report-ui/src/api/dict.js new file mode 100644 index 00000000..71384891 --- /dev/null +++ b/report-ui/src/api/dict.js @@ -0,0 +1,75 @@ +import request from '@/utils/request' + +// 字典管理查询 +export function getDictList(params) { + return request({ + url: '/gaeaDict/pageList', + method: 'GET', + params, + }) +} +// 获取单个字典数据 +export function getDictItems(dictCode) { + return request({ + url: `/gaeaDict/select/${dictCode}`, + method: 'get', + }) +} +// 字典管理新增 +export function dictAdd(data) { + return request({ + url: '/gaeaDict', + method: 'POST', + data, + }) +} + +// 字典管理编辑 +export function dictEdit(data) { + return request({ + url: '/gaeaDict', + method: 'PUT', + data, + }) +} + +export function dictDetail(data) { + return request({ + url: '/gaeaDict/' + data.id, + method: 'get', + params: { accessKey: data.accessKey }, + }) +} + +// 字典管理批量删除 +export function dictsDelect(data) { + return request({ + url: `/gaeaDict/delete/batch`, + method: 'POST', + data, + }) +} + +/** + * 刷新数据字典 + * @param data + */ +export function freshDict(data) { + return request({ + url: '/gaeaDict/freshDict', + method: 'POST', + data, + }) +} + +// 获取国家省份城市 +export function queryCountryCity(value) { + return request({ + url: `/countryCity/select`, + method: 'get', + params: { + value: value, + }, + }) +} +export default { dictDetail, getDictList, dictAdd, dictEdit, dictsDelect } diff --git a/report-ui/src/api/dictItem.js b/report-ui/src/api/dictItem.js new file mode 100644 index 00000000..d4f47905 --- /dev/null +++ b/report-ui/src/api/dictItem.js @@ -0,0 +1,47 @@ +import request from '@/utils/request' + +// 字典项管理查询 +export function dictItemPageList(params) { + return request({ + url: '/gaeaDictItem/pageList', + method: 'GET', + params, + }) +} + +// 字典项管理新增 +export function dictItemAdd(data) { + return request({ + url: '/gaeaDictItem', + method: 'POST', + data, + }) +} + +// 字典项管理编辑 +export function dictItemEdit(data) { + return request({ + url: '/gaeaDictItem', + method: 'PUT', + data, + }) +} + +// 字典项管理批量删除 +export function dictsItemDelect(data) { + return request({ + url: `/gaeaDictItem/delete/batch`, + method: 'POST', + data, + }) +} + +export function dictItemDetail(data) { + return request({ + url: '/gaeaDictItem/' + data.id, + method: 'get', + params: { accessKey: data.accessKey }, + }) +} + +export default { dictItemDetail, dictItemPageList, dictItemAdd, dictItemEdit, dictsItemDelect } diff --git a/report-ui/src/router/index.js b/report-ui/src/router/index.js index 159c7fae..af2cec0a 100644 --- a/report-ui/src/router/index.js +++ b/report-ui/src/router/index.js @@ -51,6 +51,14 @@ export const constantRouterMap = [ //{ path: 'excelreport', name: 'excelreport', component: () => import('@/views/report/excelreport/index'), meta: { title: '表格报表', icon: 'iconliebiao', keepAlive: true, requireAuth: true, permission: 'excelManage'} }, ] }, + { + path: '/system', name: 'system', component: Layout, meta: { title: '系统设置', icon: 'icon-xitong', requireAuth: true, permission: 'fileManage|dictManage|dictItemManage' }, + children: [ + { path: 'file', name: 'file', component: () => import('@/views/file-management/index'), meta: { title: '文件管理', icon: 'icondatabase', keepAlive: true, requireAuth: true, permission: 'fileManage'} }, + { path: 'dict', name: 'dict', component: () => import('@/views/dict/index'), meta: { title: '数据字典', icon: 'iconAPIwangguan', keepAlive: true, requireAuth: true, permission: 'dictManage'} }, + { path: 'dictItem', name: 'dictItem', component: () => import('@/views/dict/dict-item'), meta: { title: '字典项', icon: 'iconnavicon-ywcs', keepAlive: true, requireAuth: true, permission: 'dictItemManage'} }, + ] + }, { path: '/bigscreen/viewer', component: () => import('@/views/report/bigscreen/viewer'), hidden: true, meta: { requireAuth: true }}, { path: '/bigscreen/designer', component: () => import('@/views/report/bigscreen/designer'), hidden: true, meta: { requireAuth: true }}, { path: '/404', component: () => import('@/views/404'), hidden: true }, @@ -71,4 +79,4 @@ export default new Router({ // mode: 'history', //后端支持可开 scrollBehavior: () => ({ y: 0 }), routes: constantRouterMap -}) \ No newline at end of file +}) diff --git a/report-ui/src/views/dict/dict-item.vue b/report-ui/src/views/dict/dict-item.vue new file mode 100644 index 00000000..34d2b25c --- /dev/null +++ b/report-ui/src/views/dict/dict-item.vue @@ -0,0 +1,239 @@ + + diff --git a/report-ui/src/views/dict/index.vue b/report-ui/src/views/dict/index.vue new file mode 100644 index 00000000..5345cda5 --- /dev/null +++ b/report-ui/src/views/dict/index.vue @@ -0,0 +1,212 @@ + +