index-1fd6597e.js 5.4 KB

1
  1. import{d as E,B as Q,r as m,g as W,z as X,T as Z,o,c as x,i as a,w as t,a as l,U as $,F as v,C as D,k as i,l as _,D as f,j as aa,t as S,Y as ea,I as ta,G as la,H as ra,n as sa,s as na,J as oa,K as _a,am as ia,L as ca,M as ua,_ as pa,__tla as ma}from"./index-2f799233.js";import{_ as da,__tla as fa}from"./index-e6cd813f.js";import{_ as ya,__tla as ha}from"./DictTag-ea4c6cc2.js";import{_ as ga,__tla as ba}from"./ContentWrap-9da801df.js";import{a as wa,D as F,__tla as ka}from"./dict-20c916e2.js";import{d as xa,__tla as va}from"./formatTime-2157894c.js";import{C as Sa,g as Ca,d as Ta,__tla as Va}from"./ClientForm-3376c7b0.js";import{u as za,__tla as Ua}from"./useMessage-e567ad40.js";import{__tla as Na}from"./index-1c180a16.js";import"./color-6e929987.js";import{__tla as Ma}from"./el-card-c64c83d1.js";import{__tla as Oa}from"./Dialog-6fd39e06.js";import{__tla as Aa}from"./UploadImg-d46c0539.js";import{__tla as Da}from"./index-5f6db4a5.js";import{__tla as Fa}from"./el-image-viewer-8e9e3571.js";import"./constants-d55a3460.js";let G,Ga=Promise.all([(()=>{try{return ma}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return ha}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return Ua}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Ma}catch{}})(),(()=>{try{return Oa}catch{}})(),(()=>{try{return Aa}catch{}})(),(()=>{try{return Da}catch{}})(),(()=>{try{return Fa}catch{}})()]).then(async()=>{let C,T;C=["src"],T=E({name:"SystemOAuth2Client",__name:"index",setup(Ia){const V=za(),{t:I}=Q(),y=m(!0),z=m(0),U=m([]),s=W({pageNo:1,pageSize:10,name:null,status:void 0}),N=m(),c=async()=>{y.value=!0;try{const u=await Ca(s);U.value=u.list,z.value=u.total}finally{y.value=!1}},h=()=>{s.pageNo=1,c()},K=()=>{N.value.resetFields(),h()},M=m(),O=(u,r)=>{M.value.open(u,r)};return X(()=>{c()}),(u,r)=>{const P=ea,g=ta,q=la,R=ra,b=sa,p=na,Y=oa,A=ga,n=_a,j=ya,B=ia,H=ca,J=da,w=Z("hasPermi"),L=ua;return o(),x(v,null,[a(A,null,{default:t(()=>[a(Y,{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(P,{modelValue:l(s).name,"onUpdate:modelValue":r[0]||(r[0]=e=>l(s).name=e),placeholder:"\u8BF7\u8F93\u5165\u5E94\u7528\u540D",clearable:"",onKeyup:$(h,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(g,{label:"\u72B6\u6001",prop:"status"},{default:t(()=>[a(R,{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(()=>[(o(!0),x(v,null,D(l(wa)(l(F).COMMON_STATUS),e=>(o(),i(q,{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:K},{default:t(()=>[a(b,{icon:"ep:refresh",class:"mr-5px"}),_(" \u91CD\u7F6E")]),_:1}),f((o(),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})),[[w,["system:oauth2-client:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(A,null,{default:t(()=>[f((o(),i(H,{data:l(U)},{default:t(()=>[a(n,{label:"\u5BA2\u6237\u7AEF\u7F16\u53F7",align:"center",prop:"clientId"}),a(n,{label:"\u5BA2\u6237\u7AEF\u5BC6\u94A5",align:"center",prop:"secret"}),a(n,{label:"\u5E94\u7528\u540D",align:"center",prop:"name"}),a(n,{label:"\u5E94\u7528\u56FE\u6807",align:"center",prop:"logo"},{default:t(e=>[aa("img",{width:"40px",height:"40px",src:e.row.logo},null,8,C)]),_:1}),a(n,{label:"\u72B6\u6001",align:"center",prop:"status"},{default:t(e=>[a(j,{type:l(F).COMMON_STATUS,value:e.row.status},null,8,["type","value"])]),_:1}),a(n,{label:"\u8BBF\u95EE\u4EE4\u724C\u7684\u6709\u6548\u671F",align:"center",prop:"accessTokenValiditySeconds"},{default:t(e=>[_(S(e.row.accessTokenValiditySeconds)+" \u79D2",1)]),_:1}),a(n,{label:"\u5237\u65B0\u4EE4\u724C\u7684\u6709\u6548\u671F",align:"center",prop:"refreshTokenValiditySeconds"},{default:t(e=>[_(S(e.row.refreshTokenValiditySeconds)+" \u79D2",1)]),_:1}),a(n,{label:"\u6388\u6743\u7C7B\u578B",align:"center",prop:"authorizedGrantTypes"},{default:t(e=>[(o(!0),x(v,null,D(e.row.authorizedGrantTypes,(k,d)=>(o(),i(B,{"disable-transitions":!0,key:d,index:d,class:"mr-5px"},{default:t(()=>[_(S(k),1)]),_:2},1032,["index"]))),128))]),_:1}),a(n,{label:"\u521B\u5EFA\u65F6\u95F4",align:"center",prop:"createTime",width:"180",formatter:l(xa)},null,8,["formatter"]),a(n,{label:"\u64CD\u4F5C",align:"center"},{default:t(e=>[f((o(),i(p,{link:"",type:"primary",onClick:k=>O("update",e.row.id)},{default:t(()=>[_(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[w,["system:oauth2-client:update"]]]),f((o(),i(p,{link:"",type:"danger",onClick:k=>(async d=>{try{await V.delConfirm(),await Ta(d),V.success(I("common.delSuccess")),await c()}catch{}})(e.row.id)},{default:t(()=>[_(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[w,["system:oauth2-client:delete"]]])]),_:1})]),_:1},8,["data"])),[[L,l(y)]]),a(J,{total:l(z),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(Sa,{ref_key:"formRef",ref:M,onSuccess:c},null,512)],64)}}}),G=pa(T,[["__file","D:/zx/mall-newfeifan-zx-business/src/views/system/oauth2/client/index.vue"]])});export{Ga as __tla,G as default};