Files
aiops/backend/static/assets/ApprovalPermissionPage-DKO3fiCV.js
T
Logan.Li 0b404b4611 refactor(frontend): API 子模块化、大组件拆分与 TanStack Query hooks
P1: kubernetes/system API 拆为子目录模块,导出工具下沉到 lib/export-utils,
    http 统一 buildApiUrl/getWsBase;HostMonitor、DeploymentEdit* 拆至子组件。

P2: 新增 hooks/api(queryKeys、useTerminalSessions、useHostMonitor),
    TerminalSessionsTab 与 HostMonitor 接入 TanStack Query。

P3: 保留 services/api 路径,未迁移至 api/ 目录。
2026-06-26 00:02:29 +08:00

2 lines
1.4 KiB
JavaScript

import{j as e}from"./index-Dmami9WE.js";import{A as r}from"./ApprovalCategoryPage-CIXhWQ3k.js";import"./card-CIfC-8Rh.js";import"./input-NsU9nXZF.js";import"./badge-3UzCvU7L.js";import"./label-Ap_-SPYI.js";import"./table-CG4mjNfb.js";import"./select-DUbxjT0z.js";import"./index-CtCQcvyh.js";import"./chevron-up-Cq4GPopa.js";import"./system-C3cYTuQH.js";import"./index-BuEnLCjT.js";import"./plus-O65gX7Qz.js";import"./search-Dd-PeBfg.js";import"./refresh-cw-CTBERyFc.js";import"./file-text-CebshSV-.js";import"./circle-x-BBQeW1R3.js";import"./play-0EwQQJX_.js";const t=[{key:"perm_type",label:"权限类型",type:"select",options:["堡垒机权限","生产VPN权限","日志查询权限","数据库查询权限","服务器SSH权限","K8s集群权限"],required:!0},{key:"account",label:"申请账号",type:"text",placeholder:"如 logan.li",required:!0},{key:"reason",label:"申请理由",type:"textarea",placeholder:"说明为什么需要该权限",required:!0},{key:"duration",label:"权限时长",type:"select",options:["临时(24小时)","短期(7天)","中期(30天)","长期(90天)","永久"],required:!0}];function f(){return e.jsx(r,{"code-path":"src/pages/ApprovalPermissionPage.tsx:17:5",category:"permission",title:"权限审批",description:"申请堡垒机、VPN、日志查询、数据库查询等运维权限",fields:t,templateCode:"permission_request"})}export{f as ApprovalPermissionPage};