From c371a9f169c79ad7148fe377d2260e92aa23c709 Mon Sep 17 00:00:00 2001 From: du <1176658673@qq.com> Date: Wed, 13 Mar 2024 17:30:48 +0800 Subject: [PATCH] =?UTF-8?q?=E5=AF=B9=E6=8E=A5=E7=BB=9F=E8=AE=A1=E5=88=86?= =?UTF-8?q?=E6=9E=90=E7=AD=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/Sys.ts | 30 ++- src/api/Work.ts | 2 +- src/api/emergency.ts | 28 +++ src/api/statistic.ts | 21 ++ src/router/modules/system.js | 10 + src/views/emergency/address-book/index.vue | 122 +++++------ src/views/statistic/components/hj.vue | 52 +++-- src/views/statistic/components/rylx.vue | 66 ++++-- src/views/statistic/index.vue | 61 +++--- src/views/system/base/job-type/add.vue | 134 ++++++++++++ src/views/system/base/job-type/index.vue | 228 +++++++++++++++++++++ src/views/system/log/auth/index.vue | 5 +- 12 files changed, 612 insertions(+), 147 deletions(-) create mode 100644 src/api/statistic.ts create mode 100644 src/views/system/base/job-type/add.vue create mode 100644 src/views/system/base/job-type/index.vue diff --git a/src/api/Sys.ts b/src/api/Sys.ts index 3b1e9b8..d2a98e7 100644 --- a/src/api/Sys.ts +++ b/src/api/Sys.ts @@ -376,7 +376,35 @@ export function saveUser(data) { params:params, }); } - +/** + *工作管理-分类型分页查看 + */ + export function getWorkTypePage(params) { + return request({ + url: `/admin/Sys/getWorkTypePage`, + method: "GET", + params:params, + }); +} +/** + *工作管理-分类型新增-修改 + */ + export function saveWorkType(params) { + return request({ + url: `/admin/Sys/saveWorkType`, + method: "POST", + data:params, + }); +} +/** + *工作管理-分类型删除 + */ + export function delWorkType(params) { + return request({ + url: `/admin/Sys/delWorkType/${params.typeId}`, + method: "DELETE", + }); +} diff --git a/src/api/Work.ts b/src/api/Work.ts index 7b011e8..2dc3ead 100644 --- a/src/api/Work.ts +++ b/src/api/Work.ts @@ -53,7 +53,7 @@ export function wkTypes(params) { }); } /** - *工作动态分页 + *新增工作动态 */ export function wkDynamicsAdd(params) { return request({ diff --git a/src/api/emergency.ts b/src/api/emergency.ts index ff3af01..7c462d0 100644 --- a/src/api/emergency.ts +++ b/src/api/emergency.ts @@ -148,5 +148,33 @@ export function deleteEquip(data) { method: "POST", }); } +/** + *查看指挥体系树形结构 + */ + export function getCommandList() { + return request({ + url: `/admin/commandUser/getCommandList`, + method: "GET", + }); +} +/** + *指挥体系人员添加-修改 + */ + export function saveCommandUser(params) { + return request({ + url: `/admin/commandUser/saveCommandUser`, + method: "POST", + data:params + }); +} +/** + *指挥体系人员删除 + */ + export function deleteCommandUser(params) { + return request({ + url: `/admin/commandUser/deleteCommandUser/${params.ids}`, + method: "DELETE", + }); +} diff --git a/src/api/statistic.ts b/src/api/statistic.ts new file mode 100644 index 0000000..d455a7d --- /dev/null +++ b/src/api/statistic.ts @@ -0,0 +1,21 @@ +import request from "@/utils/request"; +// 统计分析 +/** + *查看人员类型统计 + */ +export function personnelTypeStatistic() { + return request({ + url: `/admin/statistic/personnelTypeStatistic`, + method: "GET", + }); +} +/** + *查看户籍统计 + */ + export function domicileStatistic() { + return request({ + url: `/admin/statistic/domicileStatistic`, + method: "GET", + }); + } + diff --git a/src/router/modules/system.js b/src/router/modules/system.js index f156a5a..e57dd34 100644 --- a/src/router/modules/system.js +++ b/src/router/modules/system.js @@ -58,6 +58,16 @@ export default { breadcrumb: true, } }, + { + path: 'jobtype', + name: 'jobtype', + component: () => import('@/views/system/base/job-type/index.vue'), + meta: { + icon: 'point', + title: '工作管理', + breadcrumb: true, + } + }, ] }, { diff --git a/src/views/emergency/address-book/index.vue b/src/views/emergency/address-book/index.vue index 707948d..8a88865 100644 --- a/src/views/emergency/address-book/index.vue +++ b/src/views/emergency/address-book/index.vue @@ -10,7 +10,7 @@ :horizontal="horizontal" :collapsable="collapsable" :label-style="style" - :node-draggable="true" + :node-draggable="false" :scalable="true" :only-one-node="onlyOneNode" :default-expand-level="2" @@ -28,7 +28,6 @@ @@ -44,39 +43,13 @@ diff --git a/src/views/statistic/components/hj.vue b/src/views/statistic/components/hj.vue index 6aebd2a..65d9c92 100644 --- a/src/views/statistic/components/hj.vue +++ b/src/views/statistic/components/hj.vue @@ -24,46 +24,64 @@ border > - + - + - + - - + + diff --git a/src/views/statistic/components/rylx.vue b/src/views/statistic/components/rylx.vue index 61acdd6..5090ad8 100644 --- a/src/views/statistic/components/rylx.vue +++ b/src/views/statistic/components/rylx.vue @@ -23,54 +23,76 @@ header-row-class-name="el-one-header" border > - + - + - + - + - + - + - + - + - - - + - + class="pagination" + @size-change="getList" + @current-change="getList" + v-model:current-page="currentPage" + :page-sizes="[10, 15, 20, 30]" + v-model:page-size="pageSize" + layout="total, sizes, prev, pager, next, jumper" + :total="total" + background + > + diff --git a/src/views/statistic/index.vue b/src/views/statistic/index.vue index 908bea7..38f8ce5 100644 --- a/src/views/statistic/index.vue +++ b/src/views/statistic/index.vue @@ -34,40 +34,37 @@ const tabs = ref([ diff --git a/src/views/system/base/job-type/add.vue b/src/views/system/base/job-type/add.vue new file mode 100644 index 0000000..fd9139c --- /dev/null +++ b/src/views/system/base/job-type/add.vue @@ -0,0 +1,134 @@ + + + + + + \ No newline at end of file diff --git a/src/views/system/base/job-type/index.vue b/src/views/system/base/job-type/index.vue new file mode 100644 index 0000000..4e01f66 --- /dev/null +++ b/src/views/system/base/job-type/index.vue @@ -0,0 +1,228 @@ + + + + + \ No newline at end of file diff --git a/src/views/system/log/auth/index.vue b/src/views/system/log/auth/index.vue index e4ff878..9a6f0d5 100644 --- a/src/views/system/log/auth/index.vue +++ b/src/views/system/log/auth/index.vue @@ -61,15 +61,16 @@ + + - -