From 250776897a2109a35c49e9b364033615e101e7c4 Mon Sep 17 00:00:00 2001 From: lijianzhong Date: Tue, 23 Jan 2024 17:52:02 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=9A=E5=8A=9F=E8=83=BD=E8=8F=9C?= =?UTF-8?q?=E5=8D=95=E6=96=B0=E5=A2=9E?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/industry.ts | 143 ++++++++++++++++ src/router/modules/system.js | 64 +++++-- src/router/modules/work-trends.js | 26 +++ src/router/routes.js | 6 +- src/views/base-manage/residence/index.vue | 1 - src/views/system/log/option/index.vue | 8 +- src/views/system/notify/details.vue | 187 --------------------- src/views/system/notify/index.vue | 193 ---------------------- src/views/system/setting/file.vue | 13 ++ src/views/system/setting/info.vue | 9 + src/views/system/setting/protocol.vue | 10 ++ src/views/system/setting/safe.vue | 9 + src/views/work-trends/index.vue | 9 + 13 files changed, 280 insertions(+), 398 deletions(-) create mode 100644 src/api/industry.ts create mode 100644 src/router/modules/work-trends.js delete mode 100644 src/views/system/notify/details.vue delete mode 100644 src/views/system/notify/index.vue create mode 100644 src/views/system/setting/file.vue create mode 100644 src/views/system/setting/info.vue create mode 100644 src/views/system/setting/protocol.vue create mode 100644 src/views/system/setting/safe.vue create mode 100644 src/views/work-trends/index.vue diff --git a/src/api/industry.ts b/src/api/industry.ts new file mode 100644 index 0000000..bcf1d2c --- /dev/null +++ b/src/api/industry.ts @@ -0,0 +1,143 @@ +import request from "@/utils/request"; + +/** + * 行业类别列表 + */ +export function getBaseinclassList(params) { + return request({ + url: `/common/baseinclass/getBaseinclassList`, + method: "GET", + params: params, + }); +} + +/** + * 行业岗位 + */ +export function getPostTree(industryId: string) { + return request({ + url: `/admin/Industry/postTree/${industryId}`, + method: "GET", + }); +} + +/** + * 新增/编辑-行业岗位 + */ +export function postAdd(data: object) { + return request({ + url: `/admin/Industry/postAdd`, + method: "POST", + data + }); +} + +/** + * 删除-行业岗位 + */ +export function postDetail(data: object) { + return request({ + url: `/admin/Industry/postDetail`, + method: "POST", + data + }); +} + +/** + * 行业主体清单列表 + */ +export function inListPage(params: object) { + return request({ + url: `/admin/Industry/inListPage`, + method: "GET", + params + }); +} + +/** + * 新增/编辑-行业主体清单 + */ +export function inListAdd(data: object) { + return request({ + url: `/admin/Industry/inListAdd`, + method: "POST", + data + }); +} + +/** + * 启用/禁用-行业主体清单 + */ +export function inListDel(data: object) { + return request({ + url: `/admin/Industry/inListDel`, + method: "POST", + data + }); +} + +/** + * 岗位职责清单列表 + */ +export function dutyPage(params: object) { + return request({ + url: `/admin/Industry/dutyPage`, + method: "GET", + params + }); +} + +/** + * 新增-岗位职责清单 + */ +export function dutyAdd(data: object) { + return request({ + url: `/admin/Industry/dutyAdd`, + method: "POST", + data + }); +} + +/** + * 删除-岗位职责清单 + */ +export function dutyDel(data: object) { + return request({ + url: `/admin/Industry/dutyDel`, + method: "POST", + data + }); +} + +/** + * 岗位履职清单列表 + */ +export function postListPage(params: object) { + return request({ + url: `/admin/Industry/postListPage`, + method: "GET", + params + }); +} + +/** + * 新增-岗位履职清单 + */ +export function postListAdd(data: object) { + return request({ + url: `/admin/Industry/postListAdd`, + method: "POST", + data + }); +} + +/** + * 启用/禁用-岗位履职清单 + */ +export function postListDel(data: object) { + return request({ + url: `/admin/Industry/postListDel`, + method: "POST", + data + }); +} \ No newline at end of file diff --git a/src/router/modules/system.js b/src/router/modules/system.js index b7635c9..7193f53 100644 --- a/src/router/modules/system.js +++ b/src/router/modules/system.js @@ -9,16 +9,6 @@ export default { icon: 'system' }, children: [ - { - path: 'notify', - name: 'notifyindex', - component: () => import('@/views/system/notify/index.vue'), - meta: { - icon: 'point', - title: '消息通知', - breadcrumb: true, - } - }, { path: 'base', name: 'systemroleindex', @@ -108,11 +98,63 @@ export default { component: () => import('@/views/system/log/option/index.vue'), meta: { icon: 'point', - title: '操作 日志', + title: '操作日志', breadcrumb: true, } } ] + }, + { + path: 'setting', + name: 'setting', + redirect: '/system/setting/info', + meta: { + icon: 'point', + title: '系统设置', + breadcrumb: true, + }, + children: [ + { + path: 'info', + name: 'info', + component: () => import('@/views/system/setting/info.vue'), + meta: { + icon: 'point', + title: '基础设置', + breadcrumb: true, + } + }, + { + path: 'safe', + name: 'safe', + component: () => import('@/views/system/setting/safe.vue'), + meta: { + icon: 'point', + title: '安全设置', + breadcrumb: true, + } + }, + { + path: 'protocol', + name: 'protocol', + component: () => import('@/views/system/setting/protocol.vue'), + meta: { + icon: 'point', + title: '协议管理', + breadcrumb: true, + } + }, + { + path: 'file', + name: 'file', + component: () => import('@/views/system/setting/file.vue'), + meta: { + icon: 'point', + title: '文件上传设置', + breadcrumb: true, + } + }, + ] } ] } \ No newline at end of file diff --git a/src/router/modules/work-trends.js b/src/router/modules/work-trends.js new file mode 100644 index 0000000..d5906c2 --- /dev/null +++ b/src/router/modules/work-trends.js @@ -0,0 +1,26 @@ +const Layout = () => import('@/layout/index.vue') + +export default { + path: '/trends', + component: Layout, + name: 'trends', + redirect: '/trends/index', + meta: { + auth: "trends", + title: '工作动态', + icon: 'point', + activeMenu: '/work-trends/index' + }, + children: [ + { + path: 'index', + name: 'index', + component: () => import('@/views/work-trends/index.vue'), + meta: { + auth: "home.home", + title: '工作动态', + sidebar: false + } + }, + ] +} \ No newline at end of file diff --git a/src/router/routes.js b/src/router/routes.js index 2cc2d07..40863ff 100644 --- a/src/router/routes.js +++ b/src/router/routes.js @@ -101,10 +101,11 @@ let systemRoutes = [ } ] // 建筑单元 -import home from './modules/home' +import home from './modules/home'; import emergency from "./modules/emergency"; import system from "./modules/system"; -import base from './modules/basemanage' +import base from './modules/basemanage'; +import trends from './modules/work-trends'; // 动态路由(异步路由、导航栏路由) let asyncRoutes = [ @@ -118,6 +119,7 @@ let asyncRoutes = [ home, base, emergency, + trends, system, ] } diff --git a/src/views/base-manage/residence/index.vue b/src/views/base-manage/residence/index.vue index 30db32c..e3b51d9 100644 --- a/src/views/base-manage/residence/index.vue +++ b/src/views/base-manage/residence/index.vue @@ -38,7 +38,6 @@ - + - + - + diff --git a/src/views/system/notify/details.vue b/src/views/system/notify/details.vue deleted file mode 100644 index d255ce7..0000000 --- a/src/views/system/notify/details.vue +++ /dev/null @@ -1,187 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/views/system/notify/index.vue b/src/views/system/notify/index.vue deleted file mode 100644 index 7c50036..0000000 --- a/src/views/system/notify/index.vue +++ /dev/null @@ -1,193 +0,0 @@ - - - - - - - \ No newline at end of file diff --git a/src/views/system/setting/file.vue b/src/views/system/setting/file.vue new file mode 100644 index 0000000..34c85a8 --- /dev/null +++ b/src/views/system/setting/file.vue @@ -0,0 +1,13 @@ + + + + + + \ No newline at end of file diff --git a/src/views/system/setting/info.vue b/src/views/system/setting/info.vue new file mode 100644 index 0000000..af0787e --- /dev/null +++ b/src/views/system/setting/info.vue @@ -0,0 +1,9 @@ + + + + + diff --git a/src/views/system/setting/protocol.vue b/src/views/system/setting/protocol.vue new file mode 100644 index 0000000..9ce744b --- /dev/null +++ b/src/views/system/setting/protocol.vue @@ -0,0 +1,10 @@ + + + + + + \ No newline at end of file diff --git a/src/views/system/setting/safe.vue b/src/views/system/setting/safe.vue new file mode 100644 index 0000000..af0787e --- /dev/null +++ b/src/views/system/setting/safe.vue @@ -0,0 +1,9 @@ + + + + + diff --git a/src/views/work-trends/index.vue b/src/views/work-trends/index.vue new file mode 100644 index 0000000..060515d --- /dev/null +++ b/src/views/work-trends/index.vue @@ -0,0 +1,9 @@ + + + + +