From bbe94610a28e72414df1fb2b36a6d11385873e54 Mon Sep 17 00:00:00 2001
From: 疯狂的狮子Li <15040126243@163.com>
Date: 星期一, 20 一月 2025 11:30:16 +0800
Subject: [PATCH] update 优化 parseTime 提示报错问题

---
 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