修改当前机构的人员查询

This commit is contained in:
Flow 2025-06-10 14:45:22 +08:00
parent 8281287d74
commit efb6b07154
2 changed files with 8 additions and 3 deletions

View File

@ -294,7 +294,7 @@ export default {
}
.time-list {
width: 280px;
width: 200px;
flex-shrink: 0;
}

View File

@ -55,6 +55,7 @@
import { ref, computed, watch, onMounted } from 'vue'
import { PersonApi, type PersonVO } from '@/api/person'
import { Icon } from '@/components/Icon'
import { getUserProfile } from '@/api/system/user/profile'
interface FamilyMember {
id: number
@ -85,13 +86,16 @@ const queryParams = reactive({
pageNo: 1,
pageSize: 10,
name: '',
mobile: ''
mobile: '',
orgid: undefined,
})
//
const getList = async () => {
try {
loading.value = true
const userProfile = await getUserProfile()
queryParams.orgid = userProfile.dept.id
const res = await PersonApi.getPersonNoFamilyid(queryParams)
if (res.list) {
list.value = res.list.map((item: PersonVO) => ({
@ -102,7 +106,8 @@ const getList = async () => {
address: item.address || '',
createTime: item.createtime,
familyid: item.familyid,
familyrelation: item.familyrelation
familyrelation: item.familyrelation,
orgid: item.orgid,
}))
total.value = res.total
}