From 9c86f86ed5c1cf402f72d9701d4394a98f9b93b7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E8=BE=89?= <814457906@qq.com> Date: Fri, 29 Mar 2024 16:17:23 +0800 Subject: [PATCH] xg --- src/api/system/question.js | 2 +- src/views/system/question/index.vue | 90 +++++++++++++++---- .../system/specialDiseaseRoute/index.vue | 6 +- 3 files changed, 76 insertions(+), 22 deletions(-) diff --git a/src/api/system/question.js b/src/api/system/question.js index 4725e58..e67e549 100644 --- a/src/api/system/question.js +++ b/src/api/system/question.js @@ -47,7 +47,7 @@ export function delQuestion(id) { //科室接口 export function getDepartmentList(query) { return request({ - url: '/system/department/getDepartmentList', + url: '/system/question/departmentQuestionCount', method: 'get', params: query }) diff --git a/src/views/system/question/index.vue b/src/views/system/question/index.vue index 654733d..01cdfd2 100644 --- a/src/views/system/question/index.vue +++ b/src/views/system/question/index.vue @@ -2,28 +2,31 @@
- -
- -
-
- + +
+
科室名称
+
+ +
+
+
+ {{ item.departmentName }} +
+ {{ item.countNum }} +
- + - - - + + + 搜索 重置 @@ -139,7 +142,7 @@ export default { watch: { // 根据名称筛选部门树 departmentName(val) { - this.$refs.tree.filter(val); + // this.getTreeselect() } }, created() { @@ -147,6 +150,11 @@ export default { this.getList(); }, methods: { + clickDepartmenitem(item) { + this.loading = true; + this.queryParams.departmentId = item.id; + this.getList(); + }, classificationupload() { let query = { id: this.classificationform.id, @@ -228,10 +236,12 @@ export default { }, /** 查询科室下拉树结构 */ getTreeselect() { - getDepartmentList({}).then(response => { - response.data.forEach(e => { - e.label = e.departmentName - }) + getDepartmentList({ + departmentName: this.departmentName + }).then(response => { + // response.data.forEach(e => { + // e.label = e.departmentName + // }) this.deptOptions = response.data; }); selectUserDepartment().then(res => { @@ -295,3 +305,45 @@ export default { } }; + \ No newline at end of file diff --git a/src/views/system/specialDiseaseRoute/index.vue b/src/views/system/specialDiseaseRoute/index.vue index 8676ef9..592153b 100644 --- a/src/views/system/specialDiseaseRoute/index.vue +++ b/src/views/system/specialDiseaseRoute/index.vue @@ -387,13 +387,15 @@ export default { width: 100%; height: 50px; border-bottom: 1px solid #dcdfe6; + position: relative; .count { display: inline-block; - position: relative; + position: absolute; left: 210px; color: #a4a6aa; - top: -35px; + top: 50%; + transform: translateY(-50%); font-size: 13px; }