From e181f04c642204e79749af93fa921875ff6c21ba Mon Sep 17 00:00:00 2001
From: baoshiwei <baoshiwei@shlanbao.cn>
Date: 星期二, 20 五月 2025 10:46:35 +0800
Subject: [PATCH] refactor(qms): 重构趋势图展示逻辑

---
 src/api/system/dept/index.ts |   15 +++++++++++++--
 1 files changed, 13 insertions(+), 2 deletions(-)

diff --git a/src/api/system/dept/index.ts b/src/api/system/dept/index.ts
index 7e097fd..f16cb2c 100644
--- a/src/api/system/dept/index.ts
+++ b/src/api/system/dept/index.ts
@@ -1,6 +1,6 @@
 import request from '@/utils/request';
 import { AxiosPromise } from 'axios';
-import { DeptForm, DeptQuery, DeptVO } from './types';
+import {DeptForm, DeptQuery, DeptTreeVO, DeptVO} from './types';
 
 // 鏌ヨ閮ㄩ棬鍒楄〃
 export const listDept = (query?: DeptQuery) => {
@@ -8,6 +8,17 @@
     url: '/system/dept/list',
     method: 'get',
     params: query
+  });
+};
+
+/**
+ * 閫氳繃deptIds鏌ヨ閮ㄩ棬
+ * @param deptIds
+ */
+export const optionSelect = (deptIds: (number | string)[]): AxiosPromise<DeptVO[]> => {
+  return request({
+    url: '/system/dept/optionselect?deptIds=' + deptIds,
+    method: 'get'
   });
 };
 
@@ -28,7 +39,7 @@
 };
 
 // 鏌ヨ閮ㄩ棬涓嬫媺鏍戠粨鏋�
-export const treeselect = (): AxiosPromise<DeptVO[]> => {
+export const treeselect = (): AxiosPromise<DeptTreeVO[]> => {
   return request({
     url: '/system/dept/treeselect',
     method: 'get'

--
Gitblit v1.9.3