返回列表 發布新帖

評論1

姜文盛樓主Lv.9 發表於 2025-2-25 17:25 | 查看全部
同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);
      }
    )

回復

您需要登錄後才可以回帖 登錄 | 立即注册

本版積分規則

  • 加入Line諮詢
Copyright © 2026 鼎新數智股份有限公司 版權所有 All Rights Reserved. Powered by Discuz! X5.0
關燈 在本版發帖
即将开放
返回頂部
快速回復 返回頂部 返回列表