index-fa15077e.js 5.9 KB

1
  1. import{d as W,P as X,r as m,x as Z,b as j,a4 as B,o,c as v,f as e,A as t,a as l,a5 as M,F as b,R as k,C as n,D as y,k as h,a9 as G,V as H,S as $,U as aa,Q as ea,J as la,W as ta,X as ra,Y as sa,Z as oa,_ as ua,__tla as na}from"./index-286756b9.js";import{_ as pa,__tla as ca}from"./index-ed6c67a8.js";import{_ as ia,__tla as _a}from"./DictTag-f72b04ca.js";import{_ as da,__tla as ma}from"./ContentWrap-83998678.js";import{a as C,D as c,__tla as ya}from"./dict-82dca549.js";import{d as fa,__tla as va}from"./formatTime-83e416ef.js";import{S as ba,g as ha,d as Ta,__tla as ga}from"./SocialClientForm-89017d6a.js";import{u as wa,__tla as Sa}from"./useMessage-084b1e70.js";import{__tla as xa}from"./index-fb47c94c.js";import"./color-6e929987.js";import{__tla as Va}from"./el-card-d3d5a654.js";import{__tla as ka}from"./Dialog-4c2de357.js";let O,Ca=Promise.all([(()=>{try{return na}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return ma}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return va}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return Sa}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return ka}catch{}})()]).then(async()=>{O=ua(W({name:"SocialClient",__name:"index",setup(Ua){const U=wa(),{t:R}=X(),T=m(!0),E=m(0),P=m([]),s=Z({pageNo:1,pageSize:10,name:void 0,socialType:void 0,userType:void 0,clientId:void 0,status:void 0}),I=m(),i=async()=>{T.value=!0;try{const _=await ha(s);P.value=_.list,E.value=_.total}finally{T.value=!1}},f=()=>{s.pageNo=1,i()},D=()=>{I.value.resetFields(),f()},N=m(),Y=(_,r)=>{N.value.open(_,r)};return j(()=>{i()}),(_,r)=>{const z=G,p=H,g=$,w=aa,S=ea,d=la,F=ta,A=da,u=ra,x=ia,K=sa,L=pa,V=B("hasPermi"),q=oa;return o(),v(b,null,[e(A,null,{default:t(()=>[e(F,{ref_key:"queryFormRef",ref:I,inline:!0,model:l(s),class:"-mb-15px","label-width":"130px"},{default:t(()=>[e(p,{label:"\u5E94\u7528\u540D",prop:"name"},{default:t(()=>[e(z,{modelValue:l(s).name,"onUpdate:modelValue":r[0]||(r[0]=a=>l(s).name=a),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5E94\u7528\u540D",onKeyup:M(f,["enter"])},null,8,["modelValue"])]),_:1}),e(p,{label:"\u793E\u4EA4\u5E73\u53F0",prop:"socialType"},{default:t(()=>[e(w,{modelValue:l(s).socialType,"onUpdate:modelValue":r[1]||(r[1]=a=>l(s).socialType=a),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u9009\u62E9\u793E\u4EA4\u5E73\u53F0"},{default:t(()=>[(o(!0),v(b,null,k(l(C)(l(c).SYSTEM_SOCIAL_TYPE),a=>(o(),n(g,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(p,{label:"\u7528\u6237\u7C7B\u578B",prop:"userType"},{default:t(()=>[e(w,{modelValue:l(s).userType,"onUpdate:modelValue":r[2]||(r[2]=a=>l(s).userType=a),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u9009\u62E9\u7528\u6237\u7C7B\u578B"},{default:t(()=>[(o(!0),v(b,null,k(l(C)(l(c).USER_TYPE),a=>(o(),n(g,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(p,{label:"\u5BA2\u6237\u7AEF\u7F16\u53F7",prop:"clientId"},{default:t(()=>[e(z,{modelValue:l(s).clientId,"onUpdate:modelValue":r[3]||(r[3]=a=>l(s).clientId=a),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u8F93\u5165\u5BA2\u6237\u7AEF\u7F16\u53F7",onKeyup:M(f,["enter"])},null,8,["modelValue"])]),_:1}),e(p,{label:"\u72B6\u6001",prop:"status"},{default:t(()=>[e(w,{modelValue:l(s).status,"onUpdate:modelValue":r[4]||(r[4]=a=>l(s).status=a),class:"!w-240px",clearable:"",placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001"},{default:t(()=>[(o(!0),v(b,null,k(l(C)(l(c).COMMON_STATUS),a=>(o(),n(g,{key:a.value,label:a.label,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue"])]),_:1}),e(p,null,{default:t(()=>[e(d,{onClick:f},{default:t(()=>[e(S,{class:"mr-5px",icon:"ep:search"}),y(" \u641C\u7D22 ")]),_:1}),e(d,{onClick:D},{default:t(()=>[e(S,{class:"mr-5px",icon:"ep:refresh"}),y(" \u91CD\u7F6E ")]),_:1}),h((o(),n(d,{plain:"",type:"primary",onClick:r[5]||(r[5]=a=>Y("create"))},{default:t(()=>[e(S,{class:"mr-5px",icon:"ep:plus"}),y(" \u65B0\u589E ")]),_:1})),[[V,["system:social-client:create"]]])]),_:1})]),_:1},8,["model"])]),_:1}),e(A,null,{default:t(()=>[h((o(),n(K,{data:l(P),"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(x,{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(x,{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(x,{type:l(c).COMMON_STATUS,value:a.row.status},null,8,["type","value"])]),_:1}),e(u,{formatter:l(fa),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((o(),n(d,{link:"",type:"primary",onClick:J=>Y("update",a.row.id)},{default:t(()=>[y(" \u7F16\u8F91 ")]),_:2},1032,["onClick"])),[[V,["system:social-client:update"]]]),h((o(),n(d,{link:"",type:"danger",onClick:J=>(async Q=>{try{await U.delConfirm(),await Ta(Q),U.success(R("common.delSuccess")),await i()}catch{}})(a.row.id)},{default:t(()=>[y(" \u5220\u9664 ")]),_:2},1032,["onClick"])),[[V,["system:social-client:delete"]]])]),_:1})]),_:1},8,["data"])),[[q,l(T)]]),e(L,{limit:l(s).pageSize,"onUpdate:limit":r[6]||(r[6]=a=>l(s).pageSize=a),page:l(s).pageNo,"onUpdate:page":r[7]||(r[7]=a=>l(s).pageNo=a),total:l(E),onPagination:i},null,8,["limit","page","total"])]),_:1}),e(ba,{ref_key:"formRef",ref:N,onSuccess:i},null,512)],64)}}}),[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/system/social/client/index.vue"]])});export{Ca as __tla,O as default};