PageSourceSearch

http://01.cn/assets/index-Dvary21K.js

js 01.cn collected 2026-10-09 04:30:24 UTC 4,375 bytes, 1 lines download raw bytes

1import{d as H,l as J,k as Q,r as m,e as Y,g as j,q as E,o as s,c as w,i as l,w as o,u as t,S as W,F as A,A as P,dR as X,D as _,B as u,T as Z,G as c,H as y,Y as $,K as ee,I as le,J as ae,M as te,N as oe,O as pe,P as se,Q as re,R as ue}from"./index-CeZEmzVF.js";import{_ as ie}from"./index.vue_vue_type_script_setup_true_lang-D32g_30O.js";import{_ as ne}from"./DictTag.vue_vue_type_script_lang-C-wOjX38.js";import{_ as de}from"./ContentWrap.vue_vue_type_script_setup_true_lang-D6u9yShk.js";import{A as T}from"./index-CUwm5dUD.js";import{_ as me}from"./ApiKeyForm.vue_vue_type_script_setup_true_lang-y0pYnzLU.js";import"./index-tPLqUT9I.js";import"./color-BN7ZL7BD.js";import"./Dialog.vue_vue_type_style_index_0_lang-DU0BI9Re.js";import"./constants-S3jpmLHc.js";const ce=H({name:"AiApiKey",__name:"index",setup(fe){const x=J(),{t:K}=Q(),v=m(!0),C=m([]),S=m(0),p=Y({pageNo:1,pageSize:10,name:void 0,platform:void 0,status:void 0}),h=m(),i=async()=>{v.value=!0;try{const n=await T.getApiKeyPage(p);C.value=n.list,S.value=n.total}finally{v.value=!1}},g=()=>{p.pageNo=1,i()},F=()=>{h.value.resetFields(),g()},V=m(),R=(n,a)=>{V.value.open(n,a)};return j(()=>{i()}),(n,a)=>{const I=$,f=ee,U=le,M=ae,b=te,d=oe,z=pe,N=de,O=ne,r=se,L=re,q=ie,k=E("hasPermi"),B=ue;return s(),w(A,null,[l(N,null,{default:o(()=>[l(z,{class:"-mb-15px",model:t(p),ref_key:"queryFormRef",ref:h,inline:!0,"label-width":"68px"},{default:o(()=>[l(f,{label:"\u540D\u79F0",prop:"name"},{default:o(()=>[l(I,{modelValue:t(p).name,"onUpdate:modelValue":a[0]||(a[0]=e=>t(p).name=e),placeholder:"\u8BF7\u8F93\u5165\u540D\u79F0",clearable:"",onKeyup:W(g,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),l(f,{label:"\u5E73\u53F0",prop:"platform"},{default:o(()=>[l(M,{modelValue:t(p).platform,"onUpdate:modelValue":a[1]||(a[1]=e=>t(p).platform=e),placeholder:"\u8BF7\u8F93\u5165\u5E73\u53F0",clearable:"",class:"!w-240px"},{default:o(()=>[(s(!0),w(A,null,P(t(X)(t(_).AI_PLATFORM),e=>(s(),u(U,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(f,{label:"\u72B6\u6001",prop:"status"},{default:o(()=>[l(M,{modelValue:t(p).status,"onUpdate:modelValue":a[2]||(a[2]=e=>t(p).status=e),placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",clearable:"",class:"!w-240px"},{default:o(()=>[(s(!0),w(A,null,P(t(Z)(t(_).COMMON_STATUS),e=>(s(),u(U,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),l(f,null,{default:o(()=>[l(d,{onClick:g},{default:o(()=>[l(b,{icon:"ep:search",class:"mr-5px"}),a[6]||(a[6]=c(" \u641C\u7D22"))]),_:1}),l(d,{onClick:F},{default:o(()=>[l(b,{icon:"ep:refresh",class:"mr-5px"}),a[7]||(a[7]=c(" \u91CD\u7F6E"))]),_:1}),y((s(),u(d,{type:"primary",plain:"",onClick:a[3]||(a[3]=e=>R("create"))},{default:o(()=>[l(b,{icon:"ep:plus",class:"mr-5px"}),a[8]||(a[8]=c(" \u65B0\u589E "))]),_:1})),[[k,["ai:api-key:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),l(N,null,{default:o(()=>[y((s(),u(L,{data:t(C),stripe:!0,"show-overflow-tooltip":!0},{default:o(()=>[l(r,{label:"\u6240\u5C5E\u5E73\u53F0",align:"center",prop:"platform"},{default:o(e=>[l(O,{type:t(_).AI_PLATFORM,value:e.row.platform},null,8,["type","value"])]),_:1}),l(r,{label:"\u540D\u79F0",align:"center",prop:"name"}),l(r,{label:"\u5BC6\u94A5",align:"center",prop:"apiKey"}),l(r,{label:"\u81EA\u5B9A\u4E49 API URL",align:"center",prop:"url"}),l(r,{label:"\u72B6\u6001",align:"center",prop:"status"},{default:o(e=>[l(O,{type:t(_).COMMON_STATUS,value:e.row.status},null,8,["type","value"])]),_:1}),l(r,{label:"\u64CD\u4F5C",align:"center"},{default:o(e=>[y((s(),u(d,{link:"",type:"primary",onClick:D=>R("update",e.row.id)},{default:o(()=>a[9]||(a[9]=[c(" \u7F16\u8F91 ")])),_:2},1032,["onClick"])),[[k,["ai:api-key:update"]]]),y((s(),u(d,{link:"",type:"danger",onClick:D=>(async G=>{try{await x.delConfirm(),await T.deleteApiKey(G),x.success(K("common.delSuccess")),await i()}catch{}})(e.row.id)},{default:o(()=>a[10]||(a[10]=[c(" \u5220\u9664 ")])),_:2},1032,["onClick"])),[[k,["ai:api-key:delete"]]])]),_:1})]),_:1},8,["data"])),[[B,t(v)]]),l(q,{total:t(S),page:t(p).pageNo,"onUpdate:page":a[4]||(a[4]=e=>t(p).pageNo=e),limit:t(p).pageSize,"onUpdate:limit":a[5]||(a[5]=e=>t(p).pageSize=e),onPagination:i},null,8,["total","page","limit"])]),_:1}),l(me,{ref_key:"formRef",ref:V,onSuccess:i},null,512)],64)}}});
1export{ce as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.