简体中文
flow.stage.moveto.next.click.before
约 186 字小于 1 分钟
2026-04-17
该钩子用于推进至下一阶段点击之前。
说明:该钩子用于阶段跳转按钮点击前拦截。
isIntercept
- 阶段跳转按钮点击前拦截。
参数
| 参数 | 说明 | 类型 |
|---|---|---|
| button | 当前点击的阶段按钮 | Object |
| currentStageIndex | 当前阶段索引 | Number |
| stages | 阶段列表 | Array |
| objApiName | 对象 API Name | String |
| objId | 对象数据 ID | String |
| isStageReactivation | 是否重新激活 | Boolean |
返回结果
| 参数 | 说明 | 类型 |
|---|---|---|
| isIntercept | 是否拦截默认操作 | Boolean |
参数代码示例
let button = options && options.button;代码示例
module.exports = function (context, pluginService, pluginParam) {
return {
apply() {
return [
{
event: "flow.stage.moveto.next.click.before",
functional: async function (context, options) {
let button = options && options.button;
let currentStageIndex = options && options.currentStageIndex;
let stages = options && options.stages;
let objApiName = options && options.objApiName;
let objId = options && options.objId;
let isStageReactivation = options && options.isStageReactivation;
return Promise.resolve({
isIntercept: false
});
}
}
];
}
};
};