build(desktop): 升级 electron-shell 版本至 1.6.3 并调整插件执行超时配置

- 插件执行超时默认延长至 6 小时,支持插件单独配置超时时间
- 新增插件根目录迁移逻辑,解决旧版权限问题
- 新增多个服务端实体、DTO、配置模块等基础代码
- 新增插件 UI 模板及相关静态资源
This commit is contained in:
2026-10-15 11:38:45 +08:00
parent 872d3dc5c8
commit f0a94bf523
717 changed files with 88647 additions and 17543 deletions
@@ -130,19 +130,30 @@ def load_launch_rows():
# ---------- HR 流程侧 ----------
def list_running_workflows(session, page_size=100):
"""运行中「改签离职电子签」流程(datas 行)。"""
params = {
"version": "", "PACKAGE_ID": "cq37du", "process_type": "", "defProcessType": "",
"struId": "", "rootId": "cq37du", "taskIds": "", "title": FLOW_TITLE,
"state": "", "startTime": "", "endTime": "",
"sortType": "desc", "sortName": "CREATE_TIME",
"commonQuery": "[]", "start": "0", "pageNo": "1", "pageSize": str(page_size),
}
resp = _request_retry(
"POST", f"{HR_BASE_URL}/RedseaPlatform/WeProcess.mc?method=getProcessAndData",
session, data=params)
return resp.json().get("datas") or []
def list_running_workflows(session, page_size=100, max_pages=50):
"""运行中「改签离职电子签」流程(分页遍历全部页,datas 行)。
分页遍历避免运行中流程超过单页条数时漏查(首页截断会让 step3/4/5
漏处理排在后续页的流程,误判「无待办/未发起」)。
"""
rows_all = []
for page in range(max_pages):
params = {
"version": "", "PACKAGE_ID": "cq37du", "process_type": "", "defProcessType": "",
"struId": "", "rootId": "cq37du", "taskIds": "", "title": FLOW_TITLE,
"state": "", "startTime": "", "endTime": "",
"sortType": "desc", "sortName": "CREATE_TIME",
"commonQuery": "[]", "start": str(page * page_size),
"pageNo": str(page + 1), "pageSize": str(page_size),
}
resp = _request_retry(
"POST", f"{HR_BASE_URL}/RedseaPlatform/WeProcess.mc?method=getProcessAndData",
session, data=params)
rows = resp.json().get("datas") or []
rows_all.extend(rows)
if len(rows) < page_size:
break
return rows_all
def find_worker_tasks(session):