简体中文
flow.remind.list.batch.option.click.before
约 244 字小于 1 分钟
2025-11-25
flow.remind.list.batch.option.click.before
说明:该钩子用于审批待办列表页批操作按钮点击之前,可自定义弹出文案信息
一. forceShowEditForm
功能描述
自定义点击批操作按钮弹出文案。
参数
| 参数 | 说明 | 类型 |
|---|---|---|
| item | 当前点击的批量弹出item | Object |
返回结果
| 参数 | 说明 | 类型 |
|---|---|---|
| isIntercept | 是否拦截操作 | Boolean |
参数代码示例
//待办列表点击批操作弹出框item点击
wx.showToast({
title: "自定义批操作点击提示",
icon: "none"
});代码示例
module.exports = function (context, pluginService, pluginParam) {
return {
apply() {
let self = this;
return [
{
event: "flow.remind.list.batch.option.click.before",
functional: async function (context, options) {
//待办列表点击批操作弹出框item点击
wx.showToast({
title: "自定义批操作点击提示",
icon: "none"
});
return Promise.resolve({
isIntercept: false //是否拦截
// isIntercept: true
});
}
}
];
}
};
};
