Commit 43117deeef55d98908365334761b2fa53d0c90fc

Authored by 王彪总
1 parent 6853427f

业务线 小程序不用写死,从后端接口获取

api/work-order-manage/work-order-manage.js
@@ -127,5 +127,7 @@ export const getTaskActions = (taskId) => { @@ -127,5 +127,7 @@ export const getTaskActions = (taskId) => {
127 * @returns {Promise} 127 * @returns {Promise}
128 */ 128 */
129 export const executeTaskAction = (data) => { 129 export const executeTaskAction = (data) => {
130 - return post('/app-api/workorder/task/action', data); 130 + // 或签节点候选人较多(如养护组长 47 人)时,后端完成任务需逐个取消其余实例,耗时可能超过默认 10 秒
  131 + // 这里单独放宽超时,避免请求已在后端生效却被小程序判定为「网络失败」
  132 + return post('/app-api/workorder/task/action', data, { timeout: 120000 });
131 }; 133 };