index-7df58e6f.js 5.9 KB

1
  1. import{d as B,h as G,r as m,e as J,q as X,M as Q,o,c as v,f as a,w as t,a as l,N as z,F as b,v as V,x as n,y,z as h,R as W,C as Z,A as $,B as ee,j as ae,G as le,H as te,I as re,J as se,K as oe,_ as ue,__tla as ne}from"./index-8dc1e40a.js";import{_ as pe,__tla as ce}from"./index-64aeaa78.js";import{_ as ie,__tla as _e}from"./DictTag-85aade2b.js";import{_ as de,__tla as me}from"./ContentWrap-0aca5216.js";import{a as C,D as c,__tla as ye}from"./dict-f13a3c8f.js";import{d as fe,__tla as ve}from"./formatTime-8a155b2e.js";import{S as be,g as he,d as Te,__tla as we}from"./SocialClientForm-d408f3e1.js";import{u as ge,__tla as Se}from"./useMessage-7a27dd80.js";import{__tla as xe}from"./index-803dbf9a.js";import"./color-6e929987.js";import{__tla as ke}from"./el-card-18df90f0.js";import{__tla as Ve}from"./Dialog-41802231.js";let O,Ce=Promise.all([(()=>{try{return ne}catch{}})(),(()=>{try{return ce}catch{}})(),(()=>{try{return _e}catch{}})(),(()=>{try{return me}catch{}})(),(()=>{try{return ye}catch{}})(),(()=>{try{return ve}catch{}})(),(()=>{try{return we}catch{}})(),(()=>{try{return Se}catch{}})(),(()=>{try{return xe}catch{}})(),(()=>{try{return ke}catch{}})(),(()=>{try{return Ve}catch{}})()]).then(async()=>{O=ue(B({name:"SocialClient",__name:"index",setup(Ue){const U=ge(),{t:A}=G(),T=m(!0),E=m(0),I=m([]),s=J({pageNo:1,pageSize:10,name:void 0,socialType:void 0,userType:void 0,clientId:void 0,status:void 0}),M=m(),i=async()=>{T.value=!0;try{const _=await he(s);I.value=_.list,E.value=_.total}finally{T.value=!1}},f=()=>{s.pageNo=1,i()},F=()=>{M.value.resetFields(),f()},N=m(),P=(_,r)=>{N.value.open(_,r)};return X(()=>{i()}),(_,r)=>{const R=W,p=Z,w=$,g=ee,S=ae,d=le,K=te,Y=de,u=re,x=ie,q=se,D=pe,k=Q("hasPermi"),H=oe;return o(),v(b,null,[a(Y,null,{default:t(()=>[a(K,{ref_key:"queryFormRef",ref:M,inline:!0,model:l(s),class:"-mb-15px","label-width":"130px"},{default:t(()=>[a(p,{label:"\u5E94\u7528\u540D",prop:"name"},{default:t(()=>[a(R,{modelValue:l(s).name,"onUpdate:modelValue":r[0]||(r[0]=e=>l(s).name=e),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5E94\u7528\u540D",onKeyup:z(f,["enter"])},null,8,["modelValue"])]),_:1}),a(p,{label:"\u793E\u4EA4\u5E73\u53F0",prop:"socialType"},{default:t(()=>[a(g,{modelValue:l(s).socialType,"onUpdate:modelValue":r[1]||(r[1]=e=>l(s).socialType=e),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u9009\u62E9\u793E\u4EA4\u5E73\u53F0"},{default:t(()=>[(o(!0),v(b,null,V(l(C)(l(c).SYSTEM_SOCIAL_TYPE),e=>(o(),n(w,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(p,{label:"\u7528\u6237\u7C7B\u578B",prop:"userType"},{default:t(()=>[a(g,{modelValue:l(s).userType,"onUpdate:modelValue":r[2]||(r[2]=e=>l(s).userType=e),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u9009\u62E9\u7528\u6237\u7C7B\u578B"},{default:t(()=>[(o(!0),v(b,null,V(l(C)(l(c).USER_TYPE),e=>(o(),n(w,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(p,{label:"\u5BA2\u6237\u7AEF\u7F16\u53F7",prop:"clientId"},{default:t(()=>[a(R,{modelValue:l(s).clientId,"onUpdate:modelValue":r[3]||(r[3]=e=>l(s).clientId=e),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5BA2\u6237\u7AEF\u7F16\u53F7",onKeyup:z(f,["enter"])},null,8,["modelValue"])]),_:1}),a(p,{label:"\u72B6\u6001",prop:"status"},{default:t(()=>[a(g,{modelValue:l(s).status,"onUpdate:modelValue":r[4]||(r[4]=e=>l(s).status=e),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001"},{default:t(()=>[(o(!0),v(b,null,V(l(C)(l(c).COMMON_STATUS),e=>(o(),n(w,{key:e.value,label:e.label,value:e.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),a(p,null,{default:t(()=>[a(d,{onClick:f},{default:t(()=>[a(S,{class:"mr-5px",icon:"ep:search"}),y(" \u641C\u7D22 ")]),_:1}),a(d,{onClick:F},{default:t(()=>[a(S,{class:"mr-5px",icon:"ep:refresh"}),y(" \u91CD\u7F6E ")]),_:1}),h((o(),n(d,{plain:"",type:"primary",onClick:r[5]||(r[5]=e=>P("create"))},{default:t(()=>[a(S,{class:"mr-5px",icon:"ep:plus"}),y(" \u65B0\u589E ")]),_:1})),[[k,["system:social-client:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(Y,null,{default:t(()=>[h((o(),n(q,{data:l(I),"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(x,{type:l(c).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(x,{type:l(c).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(x,{type:l(c).COMMON_STATUS,value:e.row.status},null,8,["type","value"])]),_:1}),a(u,{formatter:l(fe),align:"center",label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime",width:"180px"},null,8,["formatter"]),a(u,{align:"center",label:"\u64CD\u4F5C"},{default:t(e=>[h((o(),n(d,{link:"",type:"primary",onClick:L=>P("update",e.row.id)},{default:t(()=>[y(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[k,["system:social-client:update"]]]),h((o(),n(d,{link:"",type:"danger",onClick:L=>(async j=>{try{await U.delConfirm(),await Te(j),U.success(A("common.delSuccess")),await i()}catch{}})(e.row.id)},{default:t(()=>[y(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[k,["system:social-client:delete"]]])]),_:1})]),_:1},8,["data"])),[[H,l(T)]]),a(D,{limit:l(s).pageSize,"onUpdate:limit":r[6]||(r[6]=e=>l(s).pageSize=e),page:l(s).pageNo,"onUpdate:page":r[7]||(r[7]=e=>l(s).pageNo=e),total:l(E),onPagination:i},null,8,["limit","page","total"])]),_:1}),a(be,{ref_key:"formRef",ref:N,onSuccess:i},null,512)],64)}}}),[["__file","/Users/RuHu.Xu/Desktop/mall-newfeifan-zx-admin/src/views/system/social/client/index.vue"]])});export{Ce as __tla,O as default};