简体中文
flow.remind.list.batch.option.render.before
约 250 字小于 1 分钟
2025-11-25
flow.remind.list.batch.option.render.before
说明:该钩子用于批操作按钮渲染之前,可用于自定义待办列表批操作按钮的文案等
一. btnList
功能描述
自定义待办列表批操作文案。
参数
| 参数 | 说明 | 类型 |
|---|---|---|
| batchFlowType | 批量待办类型 | String |
| btnList | 按钮列表 | Array |
| relativeEntityId | 关联对象的ApiName | String |
返回结果
| 参数 | 说明 | 类型 |
|---|---|---|
| popBtnList | 弹框item列表 | Array |
参数代码示例
//待办列表点击批操作弹出框item点击
let btnList = options.btnList;
if (btnList) {
btnList.forEach((a, inde) => {
a.txt = "插件自定义文案" + inde;
});
}代码示例
module.exports = function (context, pluginService, pluginParam) {
return {
apply() {
let self = this;
return [
{
event: "flow.remind.list.batch.option.render.before",
functional: async function (context, options) {
let btnList = options.btnList;
if (btnList) {
btnList.forEach((a, inde) => {
a.txt = "插件自定义文案" + inde;
});
}
//待办列表点击批操作弹出框
return Promise.resolve({
popBtnList: btnList //弹框item列表
});
}
}
];
}
};
};
