index-a8ffd2c1.js 5.5 KB

1
  1. import{d as X,P as Y,r as m,x as j,b as H,a3 as L,o as n,c as x,f as a,A as t,a as l,a4 as Z,F as S,Q as A,C as i,D as _,k as f,B as $,E as v,a8 as aa,U as ea,R as ta,S as la,_ as ra,J as sa,V as oa,W as na,av as _a,X as ia,Y as ca,__tla as ua}from"./index-6e0fa573.js";import{_ as pa,__tla as ma}from"./index.vue_vue_type_script_setup_true_lang-cd12277f.js";import{_ as da,__tla as fa}from"./DictTag.vue_vue_type_script_lang-66c5118d.js";import{_ as ya,__tla as ha}from"./ContentWrap.vue_vue_type_script_setup_true_lang-bed37a76.js";import{a as ga,D as M,__tla as ba}from"./dict-33efee75.js";import{d as ka,__tla as wa}from"./formatTime-4408999b.js";import{_ as xa,g as Sa,d as va,__tla as Ca}from"./ClientForm.vue_vue_type_script_setup_true_lang-51179feb.js";import{u as Ta,__tla as Va}from"./useMessage-7f978edc.js";import{__tla as Ua}from"./index-99c4720b.js";import"./color-6e929987.js";import{__tla as Na}from"./el-card-f999e23d.js";import{__tla as za}from"./Dialog-a16029e3.js";import"./_plugin-vue_export-helper-1b428a4d.js";import{__tla as Oa}from"./UploadImg-db85e21f.js";import{__tla as Pa}from"./index-f34352a4.js";import{__tla as Aa}from"./el-image-viewer-bd37a3c0.js";import"./constants-c811e5ff.js";let F,Ma=Promise.all([(()=>{try{return ua}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Oa}catch{}})(),(()=>{try{return Pa}catch{}})(),(()=>{try{return Aa}catch{}})()]).then(async()=>{let C;C=["src"],F=X({name:"SystemOAuth2Client",__name:"index",setup(Fa){const T=Ta(),{t:R}=Y(),y=m(!0),V=m(0),U=m([]),s=j({pageNo:1,pageSize:10,name:null,status:void 0}),N=m(),c=async()=>{y.value=!0;try{const u=await Sa(s);U.value=u.list,V.value=u.total}finally{y.value=!1}},h=()=>{s.pageNo=1,c()},B=()=>{N.value.resetFields(),h()},z=m(),O=(u,r)=>{z.value.open(u,r)};return H(()=>{c()}),(u,r)=>{const D=aa,g=ea,G=ta,I=la,b=ra,p=sa,q=oa,P=ya,o=na,E=da,J=_a,K=ia,Q=pa,k=L("hasPermi"),W=ca;return n(),x(S,null,[a(P,null,{default:t(()=>[a(q,{class:"-mb-15px",model:l(s),ref_key:"queryFormRef",ref:N,inline:!0,"label-width":"68px"},{default:t(()=>[a(g,{label:"\u5E94\u7528\u540D",prop:"name"},{default:t(()=>[a(D,{modelValue:l(s).name,"onUpdate:modelValue":r[0]||(r[0]=e=>l(s).name=e),placeholder:"\u8BF7\u8F93\u5165\u5E94\u7528\u540D",clearable:"",onKeyup:Z(h,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(g,{label:"\u72B6\u6001",prop:"status"},{default:t(()=>[a(I,{modelValue:l(s).status,"onUpdate:modelValue":r[1]||(r[1]=e=>l(s).status=e),placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001",clearable:"",class:"!w-240px"},{default:t(()=>[(n(!0),x(S,null,A(l(ga)(l(M).COMMON_STATUS),e=>(n(),i(G,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(g,null,{default:t(()=>[a(p,{onClick:h},{default:t(()=>[a(b,{icon:"ep:search",class:"mr-5px"}),_(" \u641C\u7D22")]),_:1}),a(p,{onClick:B},{default:t(()=>[a(b,{icon:"ep:refresh",class:"mr-5px"}),_(" \u91CD\u7F6E")]),_:1}),f((n(),i(p,{plain:"",type:"primary",onClick:r[2]||(r[2]=e=>O("create"))},{default:t(()=>[a(b,{icon:"ep:plus",class:"mr-5px"}),_(" \u65B0\u589E ")]),_:1})),[[k,["system:oauth2-client:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(P,null,{default:t(()=>[f((n(),i(K,{data:l(U)},{default:t(()=>[a(o,{label:"\u5BA2\u6237\u7AEF\u7F16\u53F7",align:"center",prop:"clientId"}),a(o,{label:"\u5BA2\u6237\u7AEF\u5BC6\u94A5",align:"center",prop:"secret"}),a(o,{label:"\u5E94\u7528\u540D",align:"center",prop:"name"}),a(o,{label:"\u5E94\u7528\u56FE\u6807",align:"center",prop:"logo"},{default:t(e=>[$("img",{width:"40px",height:"40px",src:e.row.logo},null,8,C)]),_:1}),a(o,{label:"\u72B6\u6001",align:"center",prop:"status"},{default:t(e=>[a(E,{type:l(M).COMMON_STATUS,value:e.row.status},null,8,["type","value"])]),_:1}),a(o,{label:"\u8BBF\u95EE\u4EE4\u724C\u7684\u6709\u6548\u671F",align:"center",prop:"accessTokenValiditySeconds"},{default:t(e=>[_(v(e.row.accessTokenValiditySeconds)+" \u79D2",1)]),_:1}),a(o,{label:"\u5237\u65B0\u4EE4\u724C\u7684\u6709\u6548\u671F",align:"center",prop:"refreshTokenValiditySeconds"},{default:t(e=>[_(v(e.row.refreshTokenValiditySeconds)+" \u79D2",1)]),_:1}),a(o,{label:"\u6388\u6743\u7C7B\u578B",align:"center",prop:"authorizedGrantTypes"},{default:t(e=>[(n(!0),x(S,null,A(e.row.authorizedGrantTypes,(w,d)=>(n(),i(J,{"disable-transitions":!0,key:d,index:d,class:"mr-5px"},{default:t(()=>[_(v(w),1)]),_:2},1032,["index"]))),128))]),_:1}),a(o,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"180",formatter:l(ka)},null,8,["formatter"]),a(o,{label:"\u64CD\u4F5C",align:"center"},{default:t(e=>[f((n(),i(p,{link:"",type:"primary",onClick:w=>O("update",e.row.id)},{default:t(()=>[_(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[k,["system:oauth2-client:update"]]]),f((n(),i(p,{link:"",type:"danger",onClick:w=>(async d=>{try{await T.delConfirm(),await va(d),T.success(R("common.delSuccess")),await c()}catch{}})(e.row.id)},{default:t(()=>[_(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[k,["system:oauth2-client:delete"]]])]),_:1})]),_:1},8,["data"])),[[W,l(y)]]),a(Q,{total:l(V),page:l(s).pageNo,"onUpdate:page":r[3]||(r[3]=e=>l(s).pageNo=e),limit:l(s).pageSize,"onUpdate:limit":r[4]||(r[4]=e=>l(s).pageSize=e),onPagination:c},null,8,["total","page","limit"])]),_:1}),a(xa,{ref_key:"formRef",ref:z,onSuccess:c},null,512)],64)}}})});export{Ma as __tla,F as default};