From a3484e392ccc3e1d20cf572150d17e2f28afdbb8 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?=E9=97=AB=E6=99=93=E8=8C=B9?= <1935832701@qq.com>
Date: Wed, 28 Feb 2024 11:37:03 +0800
Subject: [PATCH] =?UTF-8?q?=E6=9C=BA=E6=9E=84=E7=B1=BB=E5=88=AB=20=20?=
=?UTF-8?q?=E7=A7=91=E5=AE=A4=20=20=E7=BB=86=E5=88=86=E7=B1=BB=E5=88=AB?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/api/system/department.js | 7 +
src/api/system/subdivision.js | 44 ++++
src/views/system/agencyCategory/index.vue | 33 +--
src/views/system/department/index.vue | 58 ++++-
src/views/system/subdivision/index.vue | 282 ++++++++++++++++++++++
5 files changed, 386 insertions(+), 38 deletions(-)
create mode 100644 src/api/system/subdivision.js
create mode 100644 src/views/system/subdivision/index.vue
diff --git a/src/api/system/department.js b/src/api/system/department.js
index 59037ea..ac0b346 100644
--- a/src/api/system/department.js
+++ b/src/api/system/department.js
@@ -8,6 +8,13 @@ export function listDepartment(query) {
params: query
})
}
+export function getDepartmentList(query) {
+ return request({
+ url: '/system/department/getDepartmentList',
+ method: 'get',
+ params: query
+ })
+}
// 查询科室信息详细
export function getDepartment(id) {
diff --git a/src/api/system/subdivision.js b/src/api/system/subdivision.js
new file mode 100644
index 0000000..40c9097
--- /dev/null
+++ b/src/api/system/subdivision.js
@@ -0,0 +1,44 @@
+import request from '@/utils/request'
+
+// 查询细分类别信息列表
+export function listSubdivision(query) {
+ return request({
+ url: '/system/subdivision/list',
+ method: 'get',
+ params: query
+ })
+}
+
+// 查询细分类别信息详细
+export function getSubdivision(id) {
+ return request({
+ url: '/system/subdivision/' + id,
+ method: 'get'
+ })
+}
+
+// 新增细分类别信息
+export function addSubdivision(data) {
+ return request({
+ url: '/system/subdivision',
+ method: 'post',
+ data: data
+ })
+}
+
+// 修改细分类别信息
+export function updateSubdivision(data) {
+ return request({
+ url: '/system/subdivision',
+ method: 'put',
+ data: data
+ })
+}
+
+// 删除细分类别信息
+export function delSubdivision(id) {
+ return request({
+ url: '/system/subdivision/' + id,
+ method: 'delete'
+ })
+}
diff --git a/src/views/system/agencyCategory/index.vue b/src/views/system/agencyCategory/index.vue
index aa90983..12bf382 100644
--- a/src/views/system/agencyCategory/index.vue
+++ b/src/views/system/agencyCategory/index.vue
@@ -32,27 +32,7 @@
@keyup.enter.native="handleQuery"
/>
-
-
-
-
-
-
-
-
-
+
-->
-
+
-
-
+
@@ -392,8 +392,21 @@
:key="isResouceShow"
>
-
-
+
+
+
+
+
@@ -531,14 +544,17 @@ import {
delDepartment,
addDepartment,
updateDepartment,
+ getDepartmentList
} from "@/api/system/department";
import { agencyList, getAgencytype } from "@/api/system/agency";
import { getToken } from "@/utils/auth";
+import { listSubdivision, } from "@/api/system/subdivision";
export default {
name: "Department",
data() {
return {
+ optionsparentDepartment:[],
// 细分
optionsubdivisionCategory:[],
// 标准科室对照4
@@ -547,7 +563,7 @@ export default {
nodeTypeoptions: [],
treeOptions: [],
treeOptionsagencyCategoryId: [],
- optionstype:[],
+ departmentoptions:[],
options: [
// {
// value: "PUBLIC_HEALTH",
@@ -668,14 +684,34 @@ export default {
// this.gettreelistitem();
this.info();
this.infolist();
+ this.getinfo();
+ this.getinfolist();
+ this.infodepartment()
},
methods: {
+ getinfolist(){
+ listSubdivision().then(res=>{
+ this.optionsubdivisionCategory=res.rows
+ })
+ },
+ getinfo(){
+ getDepartmentList().then(res=>{
+ console.log(res,'666')
+ this.optionsparentDepartment=res.data
+ })
+ },
info() {
var dictType = "node_type";
getAgencytype(dictType).then((res) => {
this.nodeTypeoptions = res.data;
});
},
+ infodepartment() {
+ var dictType = "department_type";
+ getAgencytype(dictType).then((res) => {
+ this.departmentoptions = res.data;
+ });
+ },
infolist() {
var dictType = "provide_service_category";
getAgencytype(dictType).then((res) => {
diff --git a/src/views/system/subdivision/index.vue b/src/views/system/subdivision/index.vue
new file mode 100644
index 0000000..c356523
--- /dev/null
+++ b/src/views/system/subdivision/index.vue
@@ -0,0 +1,282 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 搜索
+ 重置
+
+
+
+
+
+ 新增
+
+
+ 修改
+
+
+ 删除
+
+
+ 导出
+
+
+
+
+
+
+
+
+
+
+
+
+
+ 修改
+ 删除
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+