import{d as Q,Q as W,J as X,r as f,A as Z,b as $,a1 as j,o as p,c as b,k as a,B as t,a as l,a2 as M,F as v,i as h,a3 as C,N as i,g as r,O as y,P as T,a7 as D,S as G,$ as H,R as ee,U as ae,V as le,W as te,X as oe,Y as se,Z as pe}from"./index-CHTXMeh8.js";import{_ as ue}from"./index.vue_vue_type_script_setup_true_lang-Cenk7Bi3.js";import{_ as re}from"./DictTag.vue_vue_type_script_lang-DPOZRs0A.js";import{_ as ne}from"./ContentWrap.vue_vue_type_script_setup_true_lang-BjvrLlUT.js";import{d as ie}from"./formatTime-DG99nHw2.js";import{_ as de,g as ce,d as me}from"./SocialClientForm.vue_vue_type_script_setup_true_lang-_2f2daB8.js";import"./index-DVe591HI.js";import"./color-DXkOL5Tu.js";import"./el-card-Bdk9qx7q.js";import"./Dialog.vue_vue_type_style_index_0_lang-DH0TiLYN.js";const fe=Q({name:"SocialClient",__name:"index",setup(ye){const U=W(),{t:R}=X(),g=f(!0),E=f(0),Y=f([]),s=Z({pageNo:1,pageSize:10,name:void 0,socialType:void 0,userType:void 0,clientId:void 0,status:void 0}),I=f(),d=async()=>{g.value=!0;try{const c=await ce(s);Y.value=c.list,E.value=c.total}finally{g.value=!1}},_=()=>{s.pageNo=1,d()},z=()=>{I.value.resetFields(),_()},N=f(),O=(c,o)=>{N.value.open(c,o)};return $(()=>{d()}),(c,o)=>{const P=D,n=G,w=H,S=ee,V=ae,m=le,F=te,A=ne,u=oe,k=re,K=se,L=ue,x=j("hasPermi"),q=pe;return p(),b(v,null,[a(A,null,{default:t(()=>[a(F,{ref_key:"queryFormRef",ref:I,inline:!0,model:l(s),class:"-mb-15px","label-width":"130px"},{default:t(()=>[a(n,{label:"\u5E94\u7528\u540D",prop:"name"},{default:t(()=>[a(P,{modelValue:l(s).name,"onUpdate:modelValue":o[0]||(o[0]=e=>l(s).name=e),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5E94\u7528\u540D",onKeyup:M(_,["enter"])},null,8,["modelValue"])]),_:1}),a(n,{label:"\u793E\u4EA4\u5E73\u53F0",prop:"socialType"},{default:t(()=>[a(S,{modelValue:l(s).socialType,"onUpdate:modelValue":o[1]||(o[1]=e=>l(s).socialType=e),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u9009\u62E9\u793E\u4EA4\u5E73\u53F0"},{default:t(()=>[(p(!0),b(v,null,h(l(C)(l(i).SYSTEM_SOCIAL_TYPE),e=>(p(),r(w,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(n,{label:"\u7528\u6237\u7C7B\u578B",prop:"userType"},{default:t(()=>[a(S,{modelValue:l(s).userType,"onUpdate:modelValue":o[2]||(o[2]=e=>l(s).userType=e),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u9009\u62E9\u7528\u6237\u7C7B\u578B"},{default:t(()=>[(p(!0),b(v,null,h(l(C)(l(i).USER_TYPE),e=>(p(),r(w,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(n,{label:"\u5BA2\u6237\u7AEF\u7F16\u53F7",prop:"clientId"},{default:t(()=>[a(P,{modelValue:l(s).clientId,"onUpdate:modelValue":o[3]||(o[3]=e=>l(s).clientId=e),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5BA2\u6237\u7AEF\u7F16\u53F7",onKeyup:M(_,["enter"])},null,8,["modelValue"])]),_:1}),a(n,{label:"\u72B6\u6001",prop:"status"},{default:t(()=>[a(S,{modelValue:l(s).status,"onUpdate:modelValue":o[4]||(o[4]=e=>l(s).status=e),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001"},{default:t(()=>[(p(!0),b(v,null,h(l(C)(l(i).COMMON_STATUS),e=>(p(),r(w,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(n,null,{default:t(()=>[a(m,{onClick:_},{default:t(()=>[a(V,{class:"mr-5px",icon:"ep:search"}),y(" \u641C\u7D22 ")]),_:1}),a(m,{onClick:z},{default:t(()=>[a(V,{class:"mr-5px",icon:"ep:refresh"}),y(" \u91CD\u7F6E ")]),_:1}),T((p(),r(m,{plain:"",type:"primary",onClick:o[5]||(o[5]=e=>O("create"))},{default:t(()=>[a(V,{class:"mr-5px",icon:"ep:plus"}),y(" \u65B0\u589E ")]),_:1})),[[x,["system:social-client:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(A,null,{default:t(()=>[T((p(),r(K,{data:l(Y),"show-overflow-tooltip":!0,stripe:!0},{default:t(()=>[a(u,{align:"center",label:"\u7F16\u53F7",prop:"id"}),a(u,{align:"center",label:"\u5E94\u7528\u540D",prop:"name"}),a(u,{align:"center",label:"\u793E\u4EA4\u5E73\u53F0",prop:"socialType"},{default:t(e=>[a(k,{type:l(i).SYSTEM_SOCIAL_TYPE,value:e.row.socialType},null,8,["type","value"])]),_:1}),a(u,{align:"center",label:"\u7528\u6237\u7C7B\u578B",prop:"userType"},{default:t(e=>[a(k,{type:l(i).USER_TYPE,value:e.row.userType},null,8,["type","value"])]),_:1}),a(u,{align:"center",label:"\u5BA2\u6237\u7AEF\u7F16\u53F7",prop:"clientId",width:"180px"}),a(u,{align:"center",label:"\u72B6\u6001",prop:"status"},{default:t(e=>[a(k,{type:l(i).COMMON_STATUS,value:e.row.status},null,8,["type","value"])]),_:1}),a(u,{formatter:l(ie),align:"center",label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime",width:"180px"},null,8,["formatter"]),a(u,{align:"center",label:"\u64CD\u4F5C"},{default:t(e=>[T((p(),r(m,{link:"",type:"primary",onClick:B=>O("update",e.row.id)},{default:t(()=>[y(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[x,["system:social-client:update"]]]),T((p(),r(m,{link:"",type:"danger",onClick:B=>(async J=>{try{await U.delConfirm(),await me(J),U.success(R("common.delSuccess")),await d()}catch{}})(e.row.id)},{default:t(()=>[y(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[x,["system:social-client:delete"]]])]),_:1})]),_:1},8,["data"])),[[q,l(g)]]),a(L,{limit:l(s).pageSize,"onUpdate:limit":o[6]||(o[6]=e=>l(s).pageSize=e),page:l(s).pageNo,"onUpdate:page":o[7]||(o[7]=e=>l(s).pageNo=e),total:l(E),onPagination:d},null,8,["limit","page","total"])]),_:1}),a(de,{ref_key:"formRef",ref:N,onSuccess:d},null,512)],64)}}});export{fe as default};
|