简体中文
flow.remind.list.batch.btn.render.before
约 255 字小于 1 分钟
2025-11-25
flow.remind.list.batch.option.render.before
说明:该钩子用于审批待办列表底部操作按钮渲染之前,可自定义待办列表底部按钮列表文案
一. bottomBtnList
功能描述
自定义待办列表底部按钮列表文案。
参数
| 参数 | 说明 | 类型 |
|---|---|---|
| batchFlowType | 批量待办类型 | String |
| templateInfo | 业务类型 | Object |
| BottomBtnList | 按钮列表 | Array |
返回结果
| 参数 | 说明 | 类型 |
|---|---|---|
| bottomBtnList | 底部按钮列表 | Array |
参数代码示例
let bottomBtnList = options && options.bottomBtnList;
if (bottomBtnList) {
bottomBtnList.forEach((a, inde) => {
a.text = "底部按钮列表自定义文案" + inde;
});
}代码示例
module.exports = function (context, pluginService, pluginParam) {
return {
apply() {
let self = this;
return [
{
event: "flow.remind.list.batch.btn.render.before",
functional: async function (context, options) {
let bottomBtnList = options && options.bottomBtnList;
if (bottomBtnList) {
bottomBtnList.forEach((a, inde) => {
a.text = "底部按钮列表自定义文案" + inde;
});
}
//待办列表底部按钮列表
return Promise.resolve({
bottomBtnList: bottomBtnList //底部按钮列表
});
}
}
];
}
};
};
