diff --git a/src/api/subsidiary/index.js b/src/api/subsidiary/index.js
index 463dd7a..fd28665 100644
--- a/src/api/subsidiary/index.js
+++ b/src/api/subsidiary/index.js
@@ -14,3 +14,9 @@ export const getDepartmentList=(params)=>{
params
})
}
+export const getCompanyDetail=(companyId)=>{
+ return request({
+ url:`/admin/mosr/sub/company/info/${companyId}`,
+ method:'get'
+ })
+}
diff --git a/src/components/organizationalStructure/CompanyDetail.vue b/src/components/organizationalStructure/CompanyDetail.vue
new file mode 100644
index 0000000..50a58da
--- /dev/null
+++ b/src/components/organizationalStructure/CompanyDetail.vue
@@ -0,0 +1,49 @@
+
+
+ form = e">
+
+
+
+
+
diff --git a/src/components/organizationalStructure/Department.vue b/src/components/organizationalStructure/Department.vue
index 030ceb2..382b1ad 100644
--- a/src/components/organizationalStructure/Department.vue
+++ b/src/components/organizationalStructure/Department.vue
@@ -1,5 +1,5 @@
-
+
form = e">
diff --git a/src/views/system/organizationalStructure/index.vue b/src/views/system/organizationalStructure/index.vue
index 3d7fbf4..831781b 100644
--- a/src/views/system/organizationalStructure/index.vue
+++ b/src/views/system/organizationalStructure/index.vue
@@ -37,6 +37,7 @@
+
@@ -48,13 +49,16 @@ import SvgIcon from '@/components/svgIcon/index.vue'
import {ElNotification} from "element-plus";
import {getOrganizationStructure} from "@/api/workflow/process-user";
import DepartComponent from "@/components/organizationalStructure/Department.vue";
+import CompanyDetail from "@/components/organizationalStructure/CompanyDetail.vue";
const queryType = reactive({
chooseName: ""
});
const chooseId = ref(0);
const deptId = ref(0);
+const companyId = ref(0);
const showDept = ref(false);
+const showCompany = ref(false);
const organizationStructureType = ref(0);
let selectItem = reactive({
type: -1,
@@ -135,10 +139,18 @@ const handleChange = (item, data) => {
console.log('expandedKeys.value',expandedKeys.value)
if (item.type === 1) {
showDept.value = false
+ showCompany.value = false
nextTick(() => {
showDept.value = true
})
deptId.value = item.organizationalStructureId
+ }else{
+ showDept.value = false
+ showCompany.value = false
+ nextTick(() => {
+ showCompany.value = true
+ })
+ companyId.value=item.organizationalStructureId
}
selectItem = item;
if (isSearch.value) {