增加被访区域下拉框值api接口

This commit is contained in:
chenglijuan
2026-05-07 10:44:33 +08:00
parent 7c59d18596
commit 1b5f3811b6
3 changed files with 38 additions and 7 deletions
+12
View File
@@ -187,6 +187,18 @@ const appointmentDB = {
return mapApiRecord(data) || null
},
/**
* 获取被访部门/区域列表
* @returns {Promise<Array>} 部门列表
*/
async getDepartmentSelector() {
const data = await request({
url: BASE_URL + API.DEPARTMENT_SELECTOR,
method: 'GET'
})
return data || []
},
/**
* 获取被访人列表
* @param {string} department - 部门/区域编码
+1
View File
@@ -27,6 +27,7 @@ const API = {
APPOINTMENT_DETAIL: '/api/wx-mini/appointment/detail',
WXACODE: '/api/wx-mini/wxacode',
PERSON_SELECTOR: '/api/wx-mini/appointment/person/selector',
DEPARTMENT_SELECTOR: '/api/wx-mini/appointment/department/selector',
NOTIFY_HOST: '/visitor/notify-host'
}