index-2d31a016.js 6.0 KB

1
  1. import{d as H,h as Q,r as m,e as j,k as J,P as W,o as s,c as v,f as e,w as t,a as l,Q as z,F as b,n as V,q as p,m as y,v as h,U as X,z as Z,x as $,y as aa,_ as ea,B as la,C as ta,D as ra,G as oa,H as sa,__tla as ua}from"./index-2eab2d23.js";import{_ as pa,__tla as na}from"./index.vue_vue_type_script_setup_true_lang-5730b053.js";import{_ as ca,__tla as _a}from"./DictTag.vue_vue_type_script_lang-cb1e47ff.js";import{_ as ia,__tla as da}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5a63038a.js";import{a as C,D as c,__tla as ma}from"./dict-1ad71b6f.js";import{d as ya,__tla as fa}from"./formatTime-41155543.js";import{_ as va,g as ba,d as ha,__tla as Ta}from"./SocialClientForm.vue_vue_type_script_setup_true_lang-a021396c.js";import{u as ga,__tla as wa}from"./useMessage-171aa63e.js";import{__tla as Sa}from"./index-cc63c3c4.js";import"./color-6e929987.js";import{__tla as ka}from"./el-card-c558f0ec.js";import{__tla as xa}from"./Dialog-c2716df6.js";import"./_plugin-vue_export-helper-1b428a4d.js";let A,Va=Promise.all([(()=>{try{return ua}catch{}})(),(()=>{try{return na}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return fa}catch{}})(),(()=>{try{return Ta}catch{}})(),(()=>{try{return wa}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return xa}catch{}})()]).then(async()=>{A=H({name:"SocialClient",__name:"index",setup(Ca){const U=ga(),{t:R}=Q(),T=m(!0),P=m(0),E=m([]),o=j({pageNo:1,pageSize:10,name:void 0,socialType:void 0,userType:void 0,clientId:void 0,status:void 0}),I=m(),_=async()=>{T.value=!0;try{const i=await ba(o);E.value=i.list,P.value=i.total}finally{T.value=!1}},f=()=>{o.pageNo=1,_()},F=()=>{I.value.resetFields(),f()},Y=m(),M=(i,r)=>{Y.value.open(i,r)};return J(()=>{_()}),(i,r)=>{const N=X,n=Z,g=$,w=aa,S=ea,d=la,q=ta,O=ia,u=ra,k=ca,D=oa,K=pa,x=W("hasPermi"),L=sa;return s(),v(b,null,[e(O,null,{default:t(()=>[e(q,{ref_key:"queryFormRef",ref:I,inline:!0,model:l(o),class:"-mb-15px","label-width":"130px"},{default:t(()=>[e(n,{label:"\u5E94\u7528\u540D",prop:"name"},{default:t(()=>[e(N,{modelValue:l(o).name,"onUpdate:modelValue":r[0]||(r[0]=a=>l(o).name=a),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5E94\u7528\u540D",onKeyup:z(f,["enter"])},null,8,["modelValue"])]),_:1}),e(n,{label:"\u793E\u4EA4\u5E73\u53F0",prop:"socialType"},{default:t(()=>[e(w,{modelValue:l(o).socialType,"onUpdate:modelValue":r[1]||(r[1]=a=>l(o).socialType=a),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u9009\u62E9\u793E\u4EA4\u5E73\u53F0"},{default:t(()=>[(s(!0),v(b,null,V(l(C)(l(c).SYSTEM_SOCIAL_TYPE),a=>(s(),p(g,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(n,{label:"\u7528\u6237\u7C7B\u578B",prop:"userType"},{default:t(()=>[e(w,{modelValue:l(o).userType,"onUpdate:modelValue":r[2]||(r[2]=a=>l(o).userType=a),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u9009\u62E9\u7528\u6237\u7C7B\u578B"},{default:t(()=>[(s(!0),v(b,null,V(l(C)(l(c).USER_TYPE),a=>(s(),p(g,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(n,{label:"\u5BA2\u6237\u7AEF\u7F16\u53F7",prop:"clientId"},{default:t(()=>[e(N,{modelValue:l(o).clientId,"onUpdate:modelValue":r[3]||(r[3]=a=>l(o).clientId=a),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5BA2\u6237\u7AEF\u7F16\u53F7",onKeyup:z(f,["enter"])},null,8,["modelValue"])]),_:1}),e(n,{label:"\u72B6\u6001",prop:"status"},{default:t(()=>[e(w,{modelValue:l(o).status,"onUpdate:modelValue":r[4]||(r[4]=a=>l(o).status=a),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001"},{default:t(()=>[(s(!0),v(b,null,V(l(C)(l(c).COMMON_STATUS),a=>(s(),p(g,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(n,null,{default:t(()=>[e(d,{onClick:f},{default:t(()=>[e(S,{class:"mr-5px",icon:"ep:search"}),y(" \u641C\u7D22 ")]),_:1}),e(d,{onClick:F},{default:t(()=>[e(S,{class:"mr-5px",icon:"ep:refresh"}),y(" \u91CD\u7F6E ")]),_:1}),h((s(),p(d,{plain:"",type:"primary",onClick:r[5]||(r[5]=a=>M("create"))},{default:t(()=>[e(S,{class:"mr-5px",icon:"ep:plus"}),y(" \u65B0\u589E ")]),_:1})),[[x,["system:social-client:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),e(O,null,{default:t(()=>[h((s(),p(D,{data:l(E),"show-overflow-tooltip":!0,stripe:!0},{default:t(()=>[e(u,{align:"center",label:"\u7F16\u53F7",prop:"id"}),e(u,{align:"center",label:"\u5E94\u7528\u540D",prop:"name"}),e(u,{align:"center",label:"\u793E\u4EA4\u5E73\u53F0",prop:"socialType"},{default:t(a=>[e(k,{type:l(c).SYSTEM_SOCIAL_TYPE,value:a.row.socialType},null,8,["type","value"])]),_:1}),e(u,{align:"center",label:"\u7528\u6237\u7C7B\u578B",prop:"userType"},{default:t(a=>[e(k,{type:l(c).USER_TYPE,value:a.row.userType},null,8,["type","value"])]),_:1}),e(u,{align:"center",label:"\u5BA2\u6237\u7AEF\u7F16\u53F7",prop:"clientId",width:"180px"}),e(u,{align:"center",label:"\u72B6\u6001",prop:"status"},{default:t(a=>[e(k,{type:l(c).COMMON_STATUS,value:a.row.status},null,8,["type","value"])]),_:1}),e(u,{formatter:l(ya),align:"center",label:"\u521B\u5EFA\u65F6\u95F4",prop:"createTime",width:"180px"},null,8,["formatter"]),e(u,{align:"center",label:"\u64CD\u4F5C"},{default:t(a=>[h((s(),p(d,{link:"",type:"primary",onClick:B=>M("update",a.row.id)},{default:t(()=>[y(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[x,["system:social-client:update"]]]),h((s(),p(d,{link:"",type:"danger",onClick:B=>(async G=>{try{await U.delConfirm(),await ha(G),U.success(R("common.delSuccess")),await _()}catch{}})(a.row.id)},{default:t(()=>[y(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[x,["system:social-client:delete"]]])]),_:1})]),_:1},8,["data"])),[[L,l(T)]]),e(K,{limit:l(o).pageSize,"onUpdate:limit":r[6]||(r[6]=a=>l(o).pageSize=a),page:l(o).pageNo,"onUpdate:page":r[7]||(r[7]=a=>l(o).pageNo=a),total:l(P),onPagination:_},null,8,["limit","page","total"])]),_:1}),e(va,{ref_key:"formRef",ref:Y,onSuccess:_},null,512)],64)}}})});export{Va as __tla,A as default};