diff --git a/taskman-ui/src/api/server.json b/taskman-ui/src/api/server.json new file mode 100644 index 00000000..4720ac12 --- /dev/null +++ b/taskman-ui/src/api/server.json @@ -0,0 +1,776 @@ +[ + { + "key": "login", + "path": "/taskman/api/v1/login", + "method": "post", + "description": "用户登录" + }, + { + "key": "getEncryptKey", + "path": "/taskman/api/v1/login/seed", + "method": "get", + "description": "获取加密密钥" + }, + { + "key": "getApplyRoles", + "path": "/taskman/api/v2/auth/roles", + "method": "get", + "description": "获取可申请角色列表" + }, + { + "key": "startApply", + "path": "/taskman/api/v2/auth/roles/apply", + "method": "post", + "description": "开始角色申请" + }, + { + "key": "registerUser", + "path": "/taskman/api/v2/auth/users/register", + "method": "post", + "description": "用户注册" + }, + { + "key": "getTempGroupList", + "path": "/taskman/api/v1/request-template-group/query", + "method": "post", + "description": "获取模板组列表" + }, + { + "key": "createTempGroup", + "path": "/taskman/api/v1/request-template-group", + "method": "post", + "description": "创建模板组" + }, + { + "key": "updateTempGroup", + "path": "/taskman/api/v1/request-template-group", + "method": "put", + "description": "更新模板组" + }, + { + "key": "deleteTempGroup", + "path": "/taskman/api/v1/request-template-group", + "method": "delete", + "description": "删除模板组" + }, + { + "key": "getManagementRoles", + "path": "/taskman/api/v1/user/roles", + "method": "get", + "description": "获取管理角色" + }, + { + "key": "getUserRoles", + "path": "/taskman/api/v1/role/list", + "method": "get", + "description": "获取用户角色" + }, + { + "key": "getProcess", + "path": "/taskman/api/v1/process/list", + "method": "get", + "description": "根据角色获取流程列表" + }, + { + "key": "createTemp", + "path": "/taskman/api/v1/request-template", + "method": "post", + "description": "创建模板" + }, + { + "key": "updateTemp", + "path": "/taskman/api/v1/request-template", + "method": "put", + "description": "更新模板" + }, + { + "key": "deleteTemp", + "path": "/taskman/api/v1/request-template", + "method": "delete", + "description": "删除模板" + }, + { + "key": "copyTemplate", + "path": "/taskman/api/v1/request-template/copy/{id}", + "method": "post", + "description": "复制模板" + }, + { + "key": "getFormList", + "path": "/taskman/api/v1/request-template/{requestTemplateId}/attrs/list", + "method": "get", + "description": "获取表单属性列表" + }, + { + "key": "saveAttrs", + "path": "/taskman/api/v1/request-template/{requestTemplateId}/attrs/update", + "method": "put", + "description": "保存表单属性" + }, + { + "key": "getSelectedForm", + "path": "/taskman/api/v1/request-template/{requestTemplateId}/attrs/get", + "method": "get", + "description": "获取选中的表单" + }, + { + "key": "saveRequsetForm", + "path": "/taskman/api/v1/request-form-template/{requestTemplateId}", + "method": "post", + "description": "保存请求表单模板" + }, + { + "key": "getTemplateNodesForTemp", + "path": "/taskman/api/v1/process-nodes/{requestTemplateId}/template", + "method": "get", + "description": "获取模板的节点" + }, + { + "key": "getTemplateNodesForRequest", + "path": "/taskman/api/v1/process-nodes/{requestTemplateId}/bind", + "method": "get", + "description": "获取请求的绑定节点" + }, + { + "key": "saveTaskForm", + "path": "/taskman/api/v1/task-template/{requestTemplateId}", + "method": "post", + "description": "保存任务表单" + }, + { + "key": "confirmTemplate", + "path": "/taskman/api/v1/request-template/confirm/{requestTemplateId}", + "method": "post", + "description": "确认模板" + }, + { + "key": "submitTemplate", + "path": "/taskman/api/v1/request-template/status/update", + "method": "post", + "description": "提交模板审核" + }, + { + "key": "getTemplateList", + "path": "/taskman/api/v1/request-template/query", + "method": "post", + "description": "获取模板列表" + }, + { + "key": "getTemplateDetail", + "path": "/taskman/api/v1/request-template/{requestTemplateId}", + "method": "get", + "description": "获取模板详情" + }, + { + "key": "deleteTemplate", + "path": "/taskman/api/v1/request-template", + "method": "delete", + "description": "删除模板" + }, + { + "key": "forkTemplate", + "path": "/taskman/api/v1/request-template/fork/{requestTemplateId}", + "method": "post", + "description": "分叉模板" + }, + { + "key": "getRequestTemplateAttrs", + "path": "/taskman/api/v1/request-template/{requestTemplateId}/attrs/get", + "method": "get", + "description": "获取请求模板的属性" + }, + { + "key": "templateGiveMe", + "path": "/taskman/api/v1/request-template/handler/update", + "method": "post", + "description": "模板转给我" + }, + { + "key": "updateTemplateStatus", + "path": "/taskman/api/v1/request-template/status/update", + "method": "post", + "description": "更新模板状态(确认发版或退回草稿)" + }, + { + "key": "templateConfirmCount", + "path": "/taskman/api/v1/request-template/confirm_count", + "method": "get", + "description": "获取模板待发布数量" + }, + { + "key": "getRequestFormTemplateData", + "path": "/taskman/api/v1/request-form-template/{requestTemplateId}", + "method": "get", + "description": "获取请求表单模板数据" + }, + { + "key": "getTaskFormDataByNodeId", + "path": "/taskman/api/v1/task-template/{requestTemplateId}/{nodeId}", + "method": "get", + "description": "根据节点ID获取任务表单数据" + }, + { + "key": "getTemplateByUser", + "path": "/taskman/api/v1/user/request-template", + "method": "get", + "description": "获取用户的模板" + }, + { + "key": "createRequest", + "path": "/taskman/api/v1/request", + "method": "post", + "description": "创建请求" + }, + { + "key": "updateRequest", + "path": "/taskman/api/v1/request/{requestId}", + "method": "put", + "description": "更新请求" + }, + { + "key": "getRootEntity", + "path": "/taskman/api/v1/entity/data", + "method": "get", + "description": "获取根实体数据" + }, + { + "key": "getEntityData", + "path": "/taskman/api/v1/request-data/preview", + "method": "get", + "description": "预览实体数据" + }, + { + "key": "saveEntityData", + "path": "/taskman/api/v1/request-data/save/{requestId}/data", + "method": "post", + "description": "保存实体数据" + }, + { + "key": "getBindData", + "path": "/taskman/api/v1/request-data/get/{requestId}/data", + "method": "get", + "description": "获取绑定数据" + }, + { + "key": "getBindRelate", + "path": "/taskman/api/v1/request-data/get/{requestId}/bing", + "method": "get", + "description": "获取绑定关系" + }, + { + "key": "saveRequest", + "path": "/taskman/api/v1/request-data/save/{requestId}/bing", + "method": "post", + "description": "保存请求绑定关系" + }, + { + "key": "updateRequestStatus", + "path": "/taskman/api/v1/request-status/{requestId}/{status}", + "method": "post", + "description": "更新请求状态" + }, + { + "key": "requestListForDraftInitiated", + "path": "/taskman/api/v1/user/request/use", + "method": "post", + "description": "获取草稿发起的请求列表" + }, + { + "key": "requestListForHandle", + "path": "/taskman/api/v1/user/request/mgmt", + "method": "post", + "description": "获取待处理的请求列表" + }, + { + "key": "deleteRequest", + "path": "/taskman/api/v1/request/{id}", + "method": "delete", + "description": "删除请求" + }, + { + "key": "terminateRequest", + "path": "/taskman/api/v1/request/terminate/{id}", + "method": "post", + "description": "终止请求" + }, + { + "key": "startRequest", + "path": "/taskman/api/v1/request/start/{requestId}", + "method": "post", + "description": "启动请求" + }, + { + "key": "getRequestInfo", + "path": "/taskman/api/v1/request/{requestId}", + "method": "get", + "description": "获取请求信息" + }, + { + "key": "getRefOptions", + "path": "/taskman/api/v1/request-data/reference/query/{attr}/{requestId}/{attrName}", + "method": "post", + "description": "获取参考选项" + }, + { + "key": "getWeCmdbOptions", + "path": "/taskman/api/v2/platform/{packageName}/entities/{ciType}/query", + "method": "post", + "description": "获取WeCMDB选项" + }, + { + "key": "taskList", + "path": "/taskman/api/v1/task/list", + "method": "post", + "description": "获取任务列表" + }, + { + "key": "getTaskDetail", + "path": "/taskman/api/v1/task/detail/{taskId}", + "method": "get", + "description": "获取任务详情" + }, + { + "key": "saveTaskData", + "path": "/taskman/api/v1/task/save/{taskId}", + "method": "post", + "description": "保存任务数据" + }, + { + "key": "changeTaskStatus", + "path": "/taskman/api/v1/task/status/{operation}/{taskId}/{timestamp}", + "method": "post", + "description": "更改任务状态" + }, + { + "key": "commitTaskData", + "path": "/taskman/api/v1/task/approve/{taskId}", + "method": "post", + "description": "提交任务数据" + }, + { + "key": "getRequestDetail", + "path": "/taskman/api/v1/request/detail/{requestId}", + "method": "get", + "description": "获取请求详情" + }, + { + "key": "getHandlerRoles", + "path": "/taskman/api/v1/role/user/list", + "method": "get", + "description": "获取处理人角色列表" + }, + { + "key": "getTemplateTags", + "path": "/taskman/api/v1/request-template/tags/{requestTemplateGroup}", + "method": "get", + "description": "获取模板标签" + }, + { + "key": "confirmUploadTemplate", + "path": "/taskman/api/v1/request-template/import-confirm/{confirmToken}", + "method": "post", + "description": "确认上传模板" + }, + { + "key": "deleteAttach", + "path": "/taskman/api/v1/request/attach-file/remove/{fileId}", + "method": "delete", + "description": "删除附件" + }, + { + "key": "reRequest", + "path": "/taskman/api/v1/request/copy/{fileId}", + "method": "post", + "description": "重新请求" + }, + { + "key": "requestParent", + "path": "/taskman/api/v1/request-parent/get", + "method": "get", + "description": "获取请求父级信息" + }, + { + "key": "enableTemplate", + "path": "/taskman/api/v1/request-template/enable/{templateId}", + "method": "post", + "description": "启用模板" + }, + { + "key": "disableTemplate", + "path": "/taskman/api/v1/request-template/disable/{templateId}", + "method": "post", + "description": "禁用模板" + }, + { + "key": "getTemplateTree", + "path": "/taskman/api/v2/user/request-template", + "method": "get", + "description": "获取模板树" + }, + { + "key": "collectTemplate", + "path": "/taskman/api/v1/user/template/collect", + "method": "post", + "description": "收藏模板" + }, + { + "key": "uncollectTemplate", + "path": "/taskman/api/v1/user/template/collect/{templateId}", + "method": "delete", + "description": "取消收藏模板" + }, + { + "key": "collectTemplateList", + "path": "/taskman/api/v1/user/template/collect/query", + "method": "post", + "description": "获取模板收藏列表" + }, + { + "key": "overviewData", + "path": "/taskman/api/v1/user/platform/count", + "method": "post", + "description": "获取工作台看板数量" + }, + { + "key": "getPlatformList", + "path": "/taskman/api/v1/user/platform/list", + "method": "post", + "description": "获取工作台列表" + }, + { + "key": "getPlatformFilter", + "path": "/taskman/api/v1/user/platform/filter-item", + "method": "post", + "description": "获取工作台筛选数据集合" + }, + { + "key": "getTemplateFilter", + "path": "/taskman/api/v1/user/template/filter-item", + "method": "post", + "description": "获取模板收藏列表筛选数据集合" + }, + { + "key": "tansferToMe", + "path": "/taskman/api/v1/request/handler/{templateId}/{timestamp}", + "method": "post", + "description": "工作台转给我" + }, + { + "key": "pendingHandle", + "path": "/taskman/api/v1/task-handle/update", + "method": "post", + "description": "工作台处理接口" + }, + { + "key": "recallRequest", + "path": "/taskman/api/v1/user/request/revoke/{id}", + "method": "post", + "description": "工作台撤回" + }, + { + "key": "getCreateInfo", + "path": "/taskman/api/v2/request", + "method": "post", + "description": "新建发布-获取发布信息" + }, + { + "key": "getProgressInfo", + "path": "/taskman/api/v1/request/progress", + "method": "get", + "description": "新建发布-获取请求进度" + }, + { + "key": "savePublishData", + "path": "/taskman/api/v2/request-data/save/{requestId}/data/save", + "method": "post", + "description": "新建发布-保存发布数据" + }, + { + "key": "getPublishInfo", + "path": "/taskman/api/v2/request/detail", + "method": "get", + "description": "获取新建发布详情数据" + }, + { + "key": "getPublishList", + "path": "/taskman/api/v1/request/history/list", + "method": "post", + "description": "获取发布历史列表" + }, + { + "key": "startRequestNew", + "path": "/taskman/api/v2/request-check/confirm/{requestId}", + "method": "post", + "description": "确认定版新接口" + }, + { + "key": "saveRequestNew", + "path": "/taskman/api/v2/request-data/save/{requestId}/bing/{type}", + "method": "post", + "description": "定版暂存新接口" + }, + { + "key": "getTaskConfig", + "path": "/taskman/api/v1/task-template/{templateId}", + "method": "get", + "description": "获取模板任务配置" + }, + { + "key": "getAdminUserByRole", + "path": "/taskman/api/v1/role/administrator/list", + "method": "get", + "description": "获取指定角色的管理员" + }, + { + "key": "geTaskTagList", + "path": "/taskman/api/v1/request/{requestId}/task/list", + "method": "get", + "description": "获取需关注任务节点列表" + }, + { + "key": "confirmRequest", + "path": "/taskman/api/v1/request/confirm", + "method": "post", + "description": "提交请求确认" + }, + { + "key": "getRequestHistory", + "path": "/taskman/api/v2/request/history/{requestId}", + "method": "get", + "description": "获取请求历史" + }, + { + "key": "saveFormData", + "path": "/taskman/api/v2/request-data/form/save/{requestId}", + "method": "post", + "description": "请求表单单独提交" + }, + { + "key": "getExpressionData", + "path": "/taskman/api/v1/request-data/entity/expression/query/{titleId}/{dataId}", + "method": "get", + "description": "获取自定义分析数据" + }, + { + "key": "getFlowByTemplateId", + "path": "/taskman/api/v1/request/process/definitions/{templateId}", + "method": "get", + "description": "根据模板ID查询流程图" + }, + { + "key": "getFlowByInstanceId", + "path": "/taskman/api/v1/request/process/instances/{instanceId}", + "method": "get", + "description": "根据实例ID查询流程图" + }, + { + "key": "getNodeContextByNodeId", + "path": "/taskman/api/v1/request/workflow/task_node/{instanceId}/{nodeId}", + "method": "post", + "description": "获取节点上下文" + }, + { + "key": "getAllDataModels", + "path": "/taskman/api/v2/platform/models", + "method": "get", + "description": "获取所有数据模型" + }, + { + "key": "getEntityByTemplateId", + "path": "/taskman/api/v1/request-template/{tmpId}/entity", + "method": "get", + "description": "获取可添加表单组" + }, + { + "key": "getRequestDataForm", + "path": "/taskman/api/v1/request-form-template/{tmpId}/data-form", + "method": "get", + "description": "获取请求数据表单" + }, + { + "key": "saveRequestGroupForm", + "path": "/taskman/api/v1/form-template/item-group-config", + "method": "post", + "description": "保存请求组表单配置" + }, + { + "key": "deleteRequestGroupForm", + "path": "/taskman/api/v1/form-template/item-group", + "method": "delete", + "description": "删除请求组表单" + }, + { + "key": "saveRequestGroupCustomForm", + "path": "/taskman/api/v1/form-template/item-group", + "method": "post", + "description": "保存请求组自定义表单" + }, + { + "key": "getRequestGroupForm", + "path": "/taskman/api/v1/form-template/item-group-config", + "method": "get", + "description": "获取请求组表单配置" + }, + { + "key": "getApprovalNode", + "path": "/taskman/api/v1/task-template/{tmpId}/ids", + "method": "get", + "description": "获取审批节点" + }, + { + "key": "deleteGroupsByNodeid", + "path": "/taskman/api/v1/task-template/form-template/{tmpId}/{nodeId}", + "method": "delete", + "description": "清空节点下的组" + }, + { + "key": "addApprovalNode", + "path": "/taskman/api/v1/task-template/{requestTemplate}", + "method": "post", + "description": "添加审批节点" + }, + { + "key": "updateApprovalNode", + "path": "/taskman/api/v1/task-template/{requestTemplate}/{id}", + "method": "put", + "description": "更新审批节点" + }, + { + "key": "removeApprovalNode", + "path": "/taskman/api/v1/task-template/{requestTemplate}/{id}", + "method": "delete", + "description": "删除审批节点" + }, + { + "key": "getApprovalNodeById", + "path": "/taskman/api/v1/task-template/{tmpId}/{nodeId}", + "method": "get", + "description": "根据ID获取审批节点" + }, + { + "key": "getApprovalGlobalForm", + "path": "/taskman/api/v1/request-form-template/{tmpId}/global-form", + "method": "get", + "description": "查询审批中可添加的组" + }, + { + "key": "copyItemGroup", + "path": "/taskman/api/v1/form-template/item-group/copy", + "method": "post", + "description": "在审批节点中赋值添加数据表单" + }, + { + "key": "getApprovalNodeGroups", + "path": "/taskman/api/v1/request-form-template/{tmpId}/form/{taskTemplateId}", + "method": "get", + "description": "获取审批节点下的组信息" + }, + { + "key": "removeEmptyDataForm", + "path": "/taskman/api/v1/request-template/{tmpId}/data-form-clean", + "method": "post", + "description": "清除空的数据表单" + }, + { + "key": "getTargetOptions", + "path": "/taskman/api/v1/packages/{pkgName}/entities/{entityName}/query", + "method": "post", + "description": "获取目标选项" + }, + { + "key": "getEntityRefsByPkgNameAndEntityName", + "path": "/taskman/api/v1/models/package/{pkgName}/entity/{entityName}", + "method": "get", + "description": "根据包名和实体名获取实体引用" + }, + { + "key": "getProcessableList", + "path": "/taskman/api/v2/auth/roles/apply/byhandler", + "method": "post", + "description": "获取管理员视角的可处理申请列表" + }, + { + "key": "getAllUser", + "path": "/taskman/api/v2/auth/users", + "method": "get", + "description": "获取所有用户" + }, + { + "key": "getUserByRole", + "path": "/taskman/api/v2/auth/roles/{roleId}/users", + "method": "get", + "description": "根据角色ID获取用户" + }, + { + "key": "removeUserFromRole", + "path": "/taskman/api/v2/auth/roles/{roleId}/users/revoke", + "method": "post", + "description": "从角色中删除用户" + }, + { + "key": "addUserForRole", + "path": "/taskman/api/v2/auth/roles/{roleId}/users", + "method": "post", + "description": "为角色添加用户" + }, + { + "key": "handleApplication", + "path": "/taskman/api/v2/auth/roles/apply", + "method": "put", + "description": "处理申请" + }, + { + "key": "getApplyList", + "path": "/taskman/api/v2/auth/roles/apply/byapplier", + "method": "post", + "description": "获取用户视角的申请列表" + }, + { + "key": "deleteApplyData", + "path": "/taskman/api/v2/auth/roles/apply", + "method": "delete", + "description": "删除角色申请记录" + }, + { + "key": "getWorkflowForkNode", + "path": "/taskman/api/v1/task-template/workflow/options", + "method": "get", + "description": "获取编排下的判断分支" + }, + { + "key": "cleanFilterData", + "path": "/taskman/api/v1/request-template/{taskTemplateId}/filter-clean/{type}", + "method": "post", + "description": "表单过滤数据清除" + }, + { + "key": "saveTemplateLibrary", + "path": "/taskman/api/v1/form-template-library", + "method": "post", + "description": "新建组件库" + }, + { + "key": "getTemplateLibraryList", + "path": "/taskman/api/v1/form-template-library/query", + "method": "post", + "description": "获取组件库列表" + }, + { + "key": "deleteTemplateLibrary", + "path": "/taskman/api/v1/form-template-library", + "method": "delete", + "description": "删除组件库" + }, + { + "key": "getLibraryFormTypeList", + "path": "/taskman/api/v1/form-template-library/form-type", + "method": "get", + "description": "获取组件库表单类型" + }, + { + "key": "getAssociateList", + "path": "/taskman/api/v1/request/association", + "method": "post", + "description": "获取关联单列表" + } +] \ No newline at end of file diff --git a/taskman-ui/src/api/taskman-menu-api-map.json b/taskman-ui/src/api/taskman-menu-api-map.json new file mode 100644 index 00000000..1d718d6f --- /dev/null +++ b/taskman-ui/src/api/taskman-menu-api-map.json @@ -0,0 +1,606 @@ +[ + { + "menu": "TASK_WORKBENCH", + "content": "工作台", + "urls": [ + { + "key": "getPlatformList", + "path": "/taskman/api/v1/user/platform/list", + "method": "post" + }, + { + "key": "recallRequest", + "path": "/taskman/api/v1/user/request/revoke/${id}", + "method": "post" + }, + { + "key": "pendingHandle", + "path": "/taskman/api/v1/task-handle/update", + "method": "post" + }, + { + "key": "deleteRequest", + "path": "/taskman/api/v1/request/${id}", + "method": "delete" + }, + { + "key": "reRequest", + "path": "/taskman/api/v1/request/copy/${fileId}", + "method": "post" + }, + { + "key": "overviewData", + "path": "/taskman/api/v1/user/platform/count", + "method": "post" + }, + { + "key": "collectTemplateList", + "path": "/taskman/api/v1/user/template/collect/query", + "method": "post" + }, + { + "key": "uncollectTemplate", + "path": "/taskman/api/v1/user/template/collect/${templateId}", + "method": "delete" + }, + { + "key": "getTemplateFilter", + "path": "/taskman/api/v1/user/template/filter-item", + "method": "post" + }, + { + "key": "getTemplateTree", + "path": "/taskman/api/v2/user/request-template", + "method": "get" + }, + { + "key": "collectTemplate", + "path": "/taskman/api/v1/user/template/collect", + "method": "post" + }, + { + "key": "uncollectTemplate", + "path": "/taskman/api/v1/user/template/collect/${templateId}", + "method": "delete" + }, + { + "key": "collectTemplateList", + "path": "/taskman/api/v1/user/template/collect/query", + "method": "post" + }, + { + "key": "getRefOptions", + "path": "/taskman/api/v1/request-data/reference/query/${attr}/${requestId}/${attrName}", + "method": "post" + }, + { + "key": "getWeCmdbOptions", + "path": "/taskman/api/v2/platform/${packageName}/entities/${ciType}/query", + "method": "post" + }, + { + "key": "getEncryptKey", + "path": "/taskman/api/v1/login/seed", + "method": "get" + }, + { + "key": "getFlowByInstanceId", + "path": "/taskman/api/v1/request/process/instances/${instanceId}", + "method": "get" + }, + { + "key": "getNodeContextByNodeId", + "path": "/taskman/api/v1/request/workflow/task_node/${instanceId}/${nodeId}", + "method": "post" + }, + { + "key": "getFlowByTemplateId", + "path": "/taskman/api/v1/request/process/definitions/${templateId}", + "method": "get" + }, + { + "key": "getCreateInfo", + "path": "/taskman/api/v2/request", + "method": "post" + }, + { + "key": "getPublishInfo", + "path": "/taskman/api/v2/request/detail", + "method": "get" + }, + { + "key": "getRootEntity", + "path": "/taskman/api/v1/entity/data", + "method": "get" + }, + { + "key": "getEntityData", + "path": "/taskman/api/v1/request-data/preview", + "method": "get" + }, + { + "key": "savePublishData", + "path": "/taskman/api/v2/request-data/save/${requestId}/data/save", + "method": "post" + }, + { + "key": "updateRequestStatus", + "path": "/taskman/api/v1/request-status/${requestId}/${status}", + "method": "post" + }, + { + "key": "getTaskConfig", + "path": "/taskman/api/v1/task-template/${templateId}", + "method": "get" + }, + { + "key": "getUserRoles", + "path": "/taskman/api/v1/role/list", + "method": "get" + }, + { + "key": "getHandlerRoles", + "path": "/taskman/api/v1/role/user/list", + "method": "get" + }, + { + "key": "getAdminUserByRole", + "path": "/taskman/api/v1/role/administrator/list", + "method": "get" + }, + { + "key": "getAssociateList", + "path": "/taskman/api/v1/request/association", + "method": "post" + }, + { + "key": "getRequestHistory", + "path": "/taskman/api/v2/request/history/${requestId}", + "method": "get" + }, + { + "key": "commitTaskData", + "path": "/taskman/api/v1/task/approve/${taskId}", + "method": "post" + }, + { + "key": "geTaskTagList", + "path": "/taskman/api/v1/request/${requestId}/task/list", + "method": "get" + }, + { + "key": "confirmRequest", + "path": "/taskman/api/v1/request/confirm", + "method": "post" + }, + { + "key": "getPublishList", + "path": "/taskman/api/v1/request/history/list", + "method": "post" + }, + { + "key": "getProgressInfo", + "path": "/taskman/api/v1/request/progress", + "method": "get" + }, + { + "key": "getTemplateNodesForRequest", + "path": "/taskman/api/v1/process-nodes/${requestTemplateId}/bind", + "method": "get" + }, + { + "key": "getBindData", + "path": "/taskman/api/v1/request-data/get/${requestId}/data", + "method": "get" + }, + { + "key": "saveRequestNew", + "path": "/taskman/api/v2/request-data/save/${requestId}/bing/${type}", + "method": "post" + }, + { + "key": "getBindRelate", + "path": "/taskman/api/v1/request-data/get/${requestId}/bing", + "method": "get" + }, + { + "key": "updateRequestStatus", + "path": "/taskman/api/v1/request-status/${requestId}/${status}", + "method": "post" + }, + { + "key": "startRequestNew", + "path": "/taskman/api/v2/request-check/confirm/${requestId}", + "method": "post" + }, + { + "key": "requestParent", + "path": "/taskman/api/v1/request-parent/get", + "method": "get" + }, + { + "key": "saveFormData", + "path": "/taskman/api/v2/request-data/form/save/${requestId}", + "method": "post" + }, + { + "key": "getExpressionData", + "path": "/taskman/api/v1/request-data/entity/expression/query/${titleId}/${dataId}", + "method": "get" + }, + { + "key": "", + "path": "/taskman/api/v1/request/attach-file/download/${file.id}", + "method": "get" + }, + { + "key": "", + "path": "/taskman/api/v1/request/attach-file/upload/${val}", + "method": "get" + }, + { + "key": "", + "path": "/taskman/api/v1/task/attach-file/${this.id}/upload/${val}", + "method": "get" + } + ] + }, + { + "menu": "TASK_TEMPLATE_GROUP_MANAGEMENT", + "content": "模板组管理", + "urls": [ + { + "key": "getTempGroupList", + "path": "/taskman/api/v1/request-template-group/query", + "method": "post" + }, + { + "key": "getManagementRoles", + "path": "/taskman/api/v1/user/roles", + "method": "get" + }, + { + "key": "createTempGroup", + "path": "/taskman/api/v1/request-template-group", + "method": "post" + }, + { + "key": "updateTempGroup", + "path": "/taskman/api/v1/request-template-group", + "method": "put" + }, + { + "key": "deleteTempGroup", + "path": "/taskman/api/v1/request-template-group", + "method": "delete" + } + ] + }, + { + "menu": "TASK_REQUEST_AUDIT", + "content": "请求报表", + "urls": [ + { + "key": "getPublishList", + "path": "/taskman/api/v1/request/history/list", + "method": "post" + }, + { + "key": "", + "path": "/taskman/api/v1/request/export", + "method": "post" + } + ] + }, + { + "menu": "TASK_TEMPLATE_MANAGEMENT", + "content": "模板管理", + "urls": [ + { + "key": "getTemplateList", + "path": "/taskman/api/v1/request-template/query", + "method": "post" + }, + { + "key": "deleteTemplate", + "path": "/taskman/api/v1/request-template", + "method": "delete" + }, + { + "key": "forkTemplate", + "path": "/taskman/api/v1/request-template/fork/${requestTemplateId}", + "method": "post" + }, + { + "key": "copyTemplate", + "path": "/taskman/api/v1/request-template/copy/${id}", + "method": "post" + }, + { + "key": "getManagementRoles", + "path": "/taskman/api/v1/user/roles", + "method": "get" + }, + { + "key": "confirmUploadTemplate", + "path": "/taskman/api/v1/request-template/import-confirm/${confirmToken}", + "method": "post" + }, + { + "key": "enableTemplate", + "path": "/taskman/api/v1/request-template/enable/${templateId}", + "method": "post" + }, + { + "key": "disableTemplate", + "path": "/taskman/api/v1/request-template/disable/${templateId}", + "method": "post" + }, + { + "key": "templateGiveMe", + "path": "/taskman/api/v1/request-template/handler/update", + "method": "post" + }, + { + "key": "updateTemplateStatus", + "path": "/taskman/api/v1/request-template/status/update", + "method": "post" + }, + { + "key": "templateConfirmCount", + "path": "/taskman/api/v1/request-template/confirm_count", + "method": "get" + }, + { + "key": "", + "path": "/taskman/api/v1/request-template/import", + "method": "post" + }, + { + "key": "", + "path": "/taskman/api/v1/request-template/export/${row.id}", + "method": "get" + }, + { + "key": "getTemplateLibraryList", + "path": "/taskman/api/v1/form-template-library/query", + "method": "post" + }, + { + "key": "getLibraryFormTypeList", + "path": "/taskman/api/v1/form-template-library/form-type", + "method": "get" + }, + { + "key": "getAllUser", + "path": "/taskman/api/v2/auth/users", + "method": "get" + }, + { + "key": "saveTemplateLibrary", + "path": "/taskman/api/v1/form-template-library", + "method": "post" + }, + { + "key": "getTemplateLibraryList", + "path": "/taskman/api/v1/form-template-library/query", + "method": "post" + }, + { + "key": "deleteTemplateLibrary", + "path": "/taskman/api/v1/form-template-library", + "method": "delete" + }, + { + "key": "getLibraryFormTypeList", + "path": "/taskman/api/v1/form-template-library/form-type", + "method": "get" + }, + { + "key": "getWeCmdbOptions", + "path": "/taskman/api/v2/platform/${packageName}/entities/${ciType}/query", + "method": "post" + }, + { + "key": "getTargetOptions", + "path": "/taskman/api/v1/packages/${pkgName}/entities/${entityName}/query", + "method": "post" + }, + { + "key": "getEntityRefsByPkgNameAndEntityName", + "path": "/taskman/api/v1/models/package/${pkgName}/entity/${entityName}", + "method": "get" + }, + { + "key": "getUserRoles", + "path": "/taskman/api/v1/role/list", + "method": "get" + }, + { + "key": "getHandlerRoles", + "path": "/taskman/api/v1/role/user/list", + "method": "get" + }, + { + "key": "updateApprovalNode", + "path": "/taskman/api/v1/task-template/${requestTemplate}/${id}", + "method": "put" + }, + { + "key": "getApprovalNodeById", + "path": "/taskman/api/v1/task-template/${tmpId}/${nodeId}", + "method": "get" + }, + { + "key": "deleteGroupsByNodeid", + "path": "/taskman/api/v1/task-template/form-template/${tmpId}/${nodeId}", + "method": "delete" + }, + { + "key": "getRequestDataForm", + "path": "/taskman/api/v1/request-form-template/${tmpId}/data-form", + "method": "get" + }, + { + "key": "getRequestFormTemplateData", + "path": "/taskman/api/v1/request-form-template/${requestTemplateId}", + "method": "get" + }, + { + "key": "getWeCmdbOptions", + "path": "/taskman/api/v2/platform/${packageName}/entities/${ciType}/query", + "method": "post" + }, + { + "key": "getApprovalNode", + "path": "/taskman/api/v1/task-template/${tmpId}/ids", + "method": "get" + }, + { + "key": "addApprovalNode", + "path": "/taskman/api/v1/task-template/${requestTemplate}", + "method": "post" + }, + { + "key": "removeApprovalNode", + "path": "/taskman/api/v1/task-template/${requestTemplate}/${id}", + "method": "delete" + }, + { + "key": "getApprovalGlobalForm", + "path": "/taskman/api/v1/request-form-template/${tmpId}/global-form", + "method": "get" + }, + { + "key": "copyItemGroup", + "path": "/taskman/api/v1/form-template/item-group/copy", + "method": "post" + }, + { + "key": "removeEmptyDataForm", + "path": "/taskman/api/v1/request-template/${tmpId}/data-form-clean", + "method": "post" + }, + { + "key": "getApprovalNodeGroups", + "path": "/taskman/api/v1/request-form-template/${tmpId}/form/${taskTemplateId}", + "method": "get" + }, + { + "key": "getAllDataModels", + "path": "/taskman/api/v2/platform/models", + "method": "get" + }, + { + "key": "saveRequestGroupCustomForm", + "path": "/taskman/api/v1/form-template/item-group", + "method": "post" + }, + { + "key": "getTempGroupList", + "path": "/taskman/api/v1/request-template-group/query", + "method": "post" + }, + { + "key": "getManagementRoles", + "path": "/taskman/api/v1/user/roles", + "method": "get" + }, + { + "key": "getTemplateTags", + "path": "/taskman/api/v1/request-template/tags/${requestTemplateGroup}", + "method": "get" + }, + { + "key": "getHandlerRoles", + "path": "/taskman/api/v1/role/user/list", + "method": "get" + }, + { + "key": "getUserRoles", + "path": "/taskman/api/v1/role/list", + "method": "get" + }, + { + "key": "getProcess", + "path": "/taskman/api/v1/process/list", + "method": "get" + }, + { + "key": "createTemp", + "path": "/taskman/api/v1/request-template", + "method": "post" + }, + { + "key": "updateTemp", + "path": "/taskman/api/v1/request-template", + "method": "put" + }, + { + "key": "getTemplateDetail", + "path": "/taskman/api/v1/request-template/${requestTemplateId}", + "method": "get" + }, + { + "key": "saveRequestGroupForm", + "path": "/taskman/api/v1/form-template/item-group-config", + "method": "post" + }, + { + "key": "getRequestGroupForm", + "path": "/taskman/api/v1/form-template/item-group-config", + "method": "get" + }, + { + "key": "getEntityByTemplateId", + "path": "/taskman/api/v1/request-template/${tmpId}/entity", + "method": "get" + }, + { + "key": "getRequestDataForm", + "path": "/taskman/api/v1/request-form-template/${tmpId}/data-form", + "method": "get" + }, + { + "key": "deleteRequestGroupForm", + "path": "/taskman/api/v1/form-template/item-group", + "method": "delete" + }, + { + "key": "cleanFilterData", + "path": "/taskman/api/v1/request-template/${taskTemplateId}/filter-clean/${type}", + "method": "post" + }, + { + "key": "saveRequsetForm", + "path": "/taskman/api/v1/request-form-template/${requestTemplateId}", + "method": "post" + }, + { + "key": "getRequestFormTemplateData", + "path": "/taskman/api/v1/request-form-template/${requestTemplateId}", + "method": "get" + }, + { + "key": "getApprovalNodeById", + "path": "/taskman/api/v1/task-template/${tmpId}/${nodeId}", + "method": "get" + }, + { + "key": "getWeCmdbOptions", + "path": "/taskman/api/v2/platform/${packageName}/entities/${ciType}/query", + "method": "post" + }, + { + "key": "submitTemplate", + "path": "/taskman/api/v1/request-template/status/update", + "method": "post" + }, + { + "key": "getWorkflowForkNode", + "path": "/taskman/api/v1/task-template/workflow/options", + "method": "get" + } + ] + } +] \ No newline at end of file diff --git a/taskman-ui/src/pages/request-management/basic-form.vue b/taskman-ui/src/pages/request-management/basic-form.vue deleted file mode 100644 index e45171c9..00000000 --- a/taskman-ui/src/pages/request-management/basic-form.vue +++ /dev/null @@ -1,163 +0,0 @@ - - - - - diff --git a/taskman-ui/src/pages/request-management/data-bind.vue b/taskman-ui/src/pages/request-management/data-bind.vue deleted file mode 100644 index c31ebcbc..00000000 --- a/taskman-ui/src/pages/request-management/data-bind.vue +++ /dev/null @@ -1,298 +0,0 @@ - - - - - diff --git a/taskman-ui/src/pages/request-management/data-crud.vue b/taskman-ui/src/pages/request-management/data-crud.vue deleted file mode 100644 index bdf34b44..00000000 --- a/taskman-ui/src/pages/request-management/data-crud.vue +++ /dev/null @@ -1,355 +0,0 @@ - - - - - diff --git a/taskman-ui/src/pages/request-management/data-mgmt.vue b/taskman-ui/src/pages/request-management/data-mgmt.vue deleted file mode 100644 index 3a5e60fa..00000000 --- a/taskman-ui/src/pages/request-management/data-mgmt.vue +++ /dev/null @@ -1,281 +0,0 @@ - - - - - - diff --git a/taskman-ui/src/pages/request-management/index.vue b/taskman-ui/src/pages/request-management/index.vue deleted file mode 100644 index db3f6b68..00000000 --- a/taskman-ui/src/pages/request-management/index.vue +++ /dev/null @@ -1,104 +0,0 @@ - - - - - diff --git a/taskman-ui/src/pages/request-management/request-check-data.vue b/taskman-ui/src/pages/request-management/request-check-data.vue deleted file mode 100644 index f85fce99..00000000 --- a/taskman-ui/src/pages/request-management/request-check-data.vue +++ /dev/null @@ -1,178 +0,0 @@ - - - - - - diff --git a/taskman-ui/src/pages/request-management/request-check.vue b/taskman-ui/src/pages/request-management/request-check.vue deleted file mode 100644 index 99782497..00000000 --- a/taskman-ui/src/pages/request-management/request-check.vue +++ /dev/null @@ -1,228 +0,0 @@ - - - - - - - diff --git a/taskman-ui/src/pages/request-management/t-draft.vue b/taskman-ui/src/pages/request-management/t-draft.vue deleted file mode 100644 index 618ab565..00000000 --- a/taskman-ui/src/pages/request-management/t-draft.vue +++ /dev/null @@ -1,355 +0,0 @@ - - - - - diff --git a/taskman-ui/src/pages/request-management/t-group-handle.vue b/taskman-ui/src/pages/request-management/t-group-handle.vue deleted file mode 100644 index 3eb33a0c..00000000 --- a/taskman-ui/src/pages/request-management/t-group-handle.vue +++ /dev/null @@ -1,454 +0,0 @@ - - - - - diff --git a/taskman-ui/src/pages/request-management/t-group-initiated.vue b/taskman-ui/src/pages/request-management/t-group-initiated.vue deleted file mode 100644 index a97091b6..00000000 --- a/taskman-ui/src/pages/request-management/t-group-initiated.vue +++ /dev/null @@ -1,394 +0,0 @@ - - - - - diff --git a/taskman-ui/src/pages/request-management/template-select.vue b/taskman-ui/src/pages/request-management/template-select.vue deleted file mode 100644 index 46174d78..00000000 --- a/taskman-ui/src/pages/request-management/template-select.vue +++ /dev/null @@ -1,94 +0,0 @@ - - - - - diff --git a/taskman-ui/src/pages/request.vue b/taskman-ui/src/pages/request.vue deleted file mode 100644 index 826c2b15..00000000 --- a/taskman-ui/src/pages/request.vue +++ /dev/null @@ -1,68 +0,0 @@ - - - - diff --git a/taskman-ui/src/pages/task-mgmt/index.vue b/taskman-ui/src/pages/task-mgmt/index.vue deleted file mode 100644 index 18b19d55..00000000 --- a/taskman-ui/src/pages/task-mgmt/index.vue +++ /dev/null @@ -1,359 +0,0 @@ - - - - - - - diff --git a/taskman-ui/src/pages/task-mgmt/task-data.vue b/taskman-ui/src/pages/task-mgmt/task-data.vue deleted file mode 100644 index 0479e3bc..00000000 --- a/taskman-ui/src/pages/task-mgmt/task-data.vue +++ /dev/null @@ -1,241 +0,0 @@ - - - - - - diff --git a/taskman-ui/src/pages/task.vue b/taskman-ui/src/pages/task.vue deleted file mode 100644 index 7c6a0574..00000000 --- a/taskman-ui/src/pages/task.vue +++ /dev/null @@ -1,289 +0,0 @@ - - - - - diff --git a/taskman-ui/src/pages/workbench/components/flow/static-flow.vue b/taskman-ui/src/pages/workbench/components/flow/static-flow.vue index 72dc4e31..7b3ec795 100644 --- a/taskman-ui/src/pages/workbench/components/flow/static-flow.vue +++ b/taskman-ui/src/pages/workbench/components/flow/static-flow.vue @@ -48,7 +48,7 @@ export default { }, methods: { // 打开编排模板详情页 - jumpToFlowDetail() { + jumpToFlowDetail () { if (process.env.VUE_APP_PLUGIN === 'plugin') { window.sessionStorage.currentPath = '' // 先清空session缓存页面,不然打开新标签页面会回退到缓存的页面 const path = `${window.location.origin}/#/collaboration/workflow-mgmt?flowId=${this.flowId}&editFlow=false&flowListTab=deployed` diff --git a/taskman-ui/src/router-plugin.js b/taskman-ui/src/router-plugin.js index 9f9a4c77..4fbf8184 100755 --- a/taskman-ui/src/router-plugin.js +++ b/taskman-ui/src/router-plugin.js @@ -2,11 +2,6 @@ import pluginEntry from '@/plugin-entry.vue' import template from '@/pages/template.vue' import templateGroup from '@/pages/template-group.vue' import templateManagementIndex from '@/pages/temp-management/index.vue' -import request from '@/pages/request.vue' -import requestManagementIndex from '@/pages/request-management/index.vue' -import task from '@/pages/task.vue' -import taskManagementIndex from '@/pages/task-mgmt/index.vue' -import requestCheck from '@/pages/request-management/request-check.vue' import workbenchIndex from '@/pages/workbench/index.vue' import workbenchTemplate from '@/pages/workbench/template/index.vue' import workbenchPublishCreate from '@/pages/workbench/publish/create' @@ -49,31 +44,6 @@ const router = [ name: 'templateManagementIndex', component: templateManagementIndex }, - { - path: '/taskman/request-mgmt', - name: '/taskman/request-mgmt', - component: request - }, - { - path: '/requestManagementIndex', - name: 'requestManagementIndex', - component: requestManagementIndex - }, - { - path: '/taskman/task-mgmt', - name: '/taskman/task-mgmt', - component: task - }, - { - path: '/taskMgmtIndex', - name: 'taskMgmtIndex', - component: taskManagementIndex - }, - { - path: '/requestCheck', - name: 'requestCheck', - component: requestCheck - }, { path: '/taskman/workbench', name: 'taskman/workbench',