娜娜hooks如何调用ESP接口
娜娜hooks如何调用ESP接口 同METIS写法options.utils.espApi.getEspByActionId({
actionId: "hr.integrate.service.call",
parameter
}).subscribe(
(res) => {
DWLog.i("response:" + JSON.stringify(res));
var leaveHours = res.response['Hours'] + res.response['Unit'];
var totalHoursComp = proxyPage.getComponent("Total_hours");
totalHoursComp.data.text = leaveHours;
//更新组件界面
totalHoursComp.update();
},
(e) => {
toast.showToast(e.msg);
}
)
页:
[1]