拜访区域和被访人增加联动
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 || []
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
+4
-2
@@ -6,7 +6,8 @@ const ENV_CONFIG = {
|
||||
// release: 'https://xcx.yun.588580.xyz',
|
||||
trial: 'https://qywx.yun.588580.xyz',
|
||||
// 开发版 & 体验版
|
||||
develop: 'http://172.16.60.235:8080'
|
||||
// develop: 'http://172.16.60.235:8080'
|
||||
develop: 'http://10.50.13.191:8080'
|
||||
}
|
||||
|
||||
// 自动判断当前运行环境
|
||||
@@ -27,7 +28,8 @@ const API = {
|
||||
APPOINTMENT_CREATE: '/api/wx-mini/appointment/create',
|
||||
APPOINTMENT_CANCEL: '/api/wx-mini/appointment/cancel',
|
||||
APPOINTMENT_DETAIL: '/api/wx-mini/appointment/detail',
|
||||
WXACODE: '/api/wx-mini/wxacode'
|
||||
WXACODE: '/api/wx-mini/wxacode',
|
||||
PERSON_SELECTOR: '/api/wx-mini/appointment/person/selector'
|
||||
}
|
||||
|
||||
console.log('[config] 当前环境:', wx.getAccountInfoSync().miniProgram.envVersion, 'BASE_URL:', BASE_URL)
|
||||
|
||||
Reference in New Issue
Block a user