修改当前机构的人员查询

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 { .time-list {
width: 280px; width: 200px;
flex-shrink: 0; flex-shrink: 0;
} }

View File

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