import{u,b as c,j as e,S as p}from"./index-6605a014.js";import{M as x,L as j,A as f,F as h,v as F}from"./Author-826c76c5.js";import"./react-e45097e1.js";import{F as o,w as a}from"./antd-6dbc138d.js";const v=({namePath:n})=>{function r(s){return[...n,s]}return e.jsxs(e.Fragment,{children:[e.jsx(o.Item,{name:r("equipment_url"),children:e.jsx(a,{placeholder:"请输入仪器列表接口地址"})}),e.jsx(o.Item,{name:r("client_id"),children:e.jsx(a,{placeholder:"请输入client_id"})}),e.jsx(o.Item,{name:r("client_secret"),children:e.jsx(a,{placeholder:"请输入client_secret"})})]})},_=[{name:"仪器列表",key:"equipment-list",ConfigForm:v}];function P(){const{T:n}=u(),r=c(),s=r.user;return e.jsx(x,{category:"record",server:p(),session:r,children:e.jsx(j,{baseColumns:()=>[{title:n("发布者"),key:"author",render:(i,t)=>e.jsx(f,{user:t.author,at:t.updatedAt})}],permissions:i=>{var m;if(!s||!s.permissions)return{read:!1,write:!1};if(!i||(m=s.roles)!=null&&m.includes("admin"))return{read:!0,write:!0};const t=["admin","records.admin",`records.admin.${i}`],d=!!s.permissions.find(l=>t.includes(l));return{read:d,write:d}},children:e.jsx(h,{enumeratorForms:_,children:e.jsx(F,{title:n("内容管理")})})})})}export{P as default};
