|
@@ -5,7 +5,9 @@ import {
|
|
|
editTreeitem,
|
|
|
getTreeselect,
|
|
|
} from "@/request";
|
|
|
-
|
|
|
+import { useUrlSearchParams } from "@vueuse/core";
|
|
|
+const params = useUrlSearchParams("history");
|
|
|
+console.log("params", params.caseId);
|
|
|
const request = axios.create({
|
|
|
baseURL: 'https://xj-mix3d.4dkankan.com/',
|
|
|
timeout: 1000,
|
|
@@ -36,7 +38,7 @@ export type Organization = {
|
|
|
};
|
|
|
|
|
|
export const getOrganizationTree = async (type?: string) =>
|
|
|
- (await axios.get<Organization[]>(getTreeselect, { headers: { share: 1 }, params: { type, ingoreRes: true, share: 1, } })).data;
|
|
|
+ (await axios.get<Organization[]>(getTreeselect, { headers: { share: 1 }, params: { type, caseId: params.caseId, ingoreRes: true, share: 1, } })).data;
|
|
|
|
|
|
export const addOrganization = async (
|
|
|
dept: Omit<Organization, "id">,
|