拜访区域和被访人增加联动
This commit is contained in:
@@ -183,6 +183,20 @@ const appointmentDB = {
|
||||
data: { id }
|
||||
})
|
||||
return mapApiRecord(data) || null
|
||||
},
|
||||
|
||||
/**
|
||||
* 获取被访人列表
|
||||
* @param {string} department - 部门/区域编码
|
||||
* @returns {Promise<Array>} 被访人列表
|
||||
*/
|
||||
async getPersonSelector(department) {
|
||||
const data = await request({
|
||||
url: BASE_URL + API.PERSON_SELECTOR,
|
||||
method: 'GET',
|
||||
data: { department }
|
||||
})
|
||||
return data || []
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user