Lin Qilong 2 semanas atrás
pai
commit
2c0000b12b

+ 8 - 0
gw-ui/src/api/slaj/hidd.js

@@ -823,6 +823,14 @@ export function listAttOrgBase(query) {
   })
 }
 
+// 查询机构基础信息详细
+export function getAttOrgBase(guid) {
+  return request({
+    url: '/hidd/orgbase/' + guid,
+    method: 'get'
+  })
+}
+
 // ========== 移动端接口 ==========
 
 // 移动端月报新增

+ 4 - 4
gw-ui/src/components/OrgParentSelect/index.vue → gw-ui/src/components/OrgSelect/index.vue

@@ -29,10 +29,10 @@
 
 <script setup>
 import { ref, watch } from 'vue'
-import { listAttOrgUwatBase, getAttOrgUwatBase } from '@/api/system/attOrgUwatBase'
+import { listAttOrgBase, getAttOrgBase } from '@/api/slaj/hidd'
 
 const props = defineProps({
-  // v-model:选中的上级机构 GUID
+  // v-model:选中的机构 GUID
   modelValue: { type: String, default: undefined },
   // 表单字段标签,默认“组织机构”,可修改
   label: { type: String, default: '组织机构' },
@@ -65,7 +65,7 @@ function remoteSearch(query) {
     return
   }
   loading.value = true
-  listAttOrgUwatBase({ orgName: query, pageNum: 1, pageSize: 20 })
+  listAttOrgBase({ orgName: query, pageNum: 1, pageSize: 20 })
     .then(res => { options.value = normalize(res.rows) })
     .finally(() => { loading.value = false })
 }
@@ -79,7 +79,7 @@ watch(
   () => props.modelValue,
   (val) => {
     if (val && !options.value.some(o => o.value === val)) {
-      getAttOrgUwatBase(val)
+      getAttOrgBase(val)
         .then(res => {
           const d = res.data
           if (d && d.guid && (!props.excludeGuid || d.guid !== props.excludeGuid)) {

+ 2 - 2
gw-ui/src/views/system/orgext/index.vue

@@ -176,7 +176,7 @@
                   </el-form-item>
                </el-col>
                <el-col :span="12">
-                  <OrgParentSelect v-model="form.proOrgGuid" label="上级单位" prop="proOrgGuid" />
+                  <OrgSelect v-model="form.proOrgGuid" label="上级单位" prop="proOrgGuid" />
                </el-col>
                <el-col :span="24">
                   <el-form-item label="备注" prop="note">
@@ -203,7 +203,7 @@ import { listAttOrgExt, getAttOrgExt, delAttOrgExt, addOrgWithDept, updateAttOrg
 import { listDeptChildren } from "@/api/system/user"
 import { updateDept, getDept } from "@/api/system/dept"
 import TreePanel from "@/components/TreePanel"
-import OrgParentSelect from "@/components/OrgParentSelect"
+import OrgSelect from "@/components/OrgSelect"
 import { useTableHeight } from '@/hooks/useTableHeight'
 
 const { tableHeight, containerRef } = useTableHeight()