修改当前机构的人员查询
This commit is contained in:
parent
8281287d74
commit
efb6b07154
@ -294,7 +294,7 @@ export default {
|
||||
}
|
||||
|
||||
.time-list {
|
||||
width: 280px;
|
||||
width: 200px;
|
||||
flex-shrink: 0;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user