1 |
- import{d as Y,r as u,x as Z,b as j,a4 as B,o,c as w,f as a,A as e,a as l,a5 as P,D as c,k as x,C as d,F as q,R as G,E as H,V as L,a9 as O,Q as $,J as aa,W as ea,X as ta,aw as la,Y as ra,Z as na,_ as sa,__tla as oa}from"./index-f6fb8e95.js";import{_ as ca,__tla as _a}from"./index-58a94653.js";import{_ as ua,__tla as ia}from"./ContentWrap-96bb70ec.js";import{d as pa,__tla as da}from"./formatTime-ddd96ac8.js";import{a as ma,s as fa,__tla as ya}from"./index-8d6fe793.js";import{b as ha,__tla as ba}from"./index-4b24cb1a.js";import ga,{__tla as ka}from"./main-3fe390cf.js";import wa,{__tla as xa}from"./UserForm-19dfe5cf.js";import{u as va,__tla as Ia}from"./useMessage-3b767a67.js";import{__tla as Ca}from"./index-07a2f7ed.js";import{__tla as Va}from"./el-card-8db16709.js";import{__tla as za}from"./index-87f6d412.js";import{__tla as Na}from"./Dialog-ac2b0e4e.js";let E,Sa=Promise.all([(()=>{try{return oa}catch{}})(),(()=>{try{return _a}catch{}})(),(()=>{try{return ia}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return ba}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return Ia}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Na}catch{}})()]).then(async()=>{let v;v=Y({name:"MpUser",__name:"index",setup(Ua){const I=va(),b=u(!0),C=u(0),V=u([]),t=Z({pageNo:1,pageSize:10,accountId:-1,openid:"",nickname:""}),z=u(null),N=u([]),K=_=>{t.accountId=_,t.pageNo=1,i()},i=async()=>{try{b.value=!0;const _=await ma(t);V.value=_.list,C.value=_.total}finally{b.value=!1}},m=()=>{t.pageNo=1,i()},A=()=>{var n;const _=t.accountId;(n=z.value)==null||n.resetFields(),t.accountId=_,m()},S=u(null),J=async()=>{try{await I.confirm("\u662F\u5426\u786E\u8BA4\u540C\u6B65\u7C89\u4E1D\uFF1F"),await fa(t.accountId),I.success("\u5F00\u59CB\u4ECE\u5FAE\u4FE1\u516C\u4F17\u53F7\u540C\u6B65\u7C89\u4E1D\u4FE1\u606F\uFF0C\u540C\u6B65\u9700\u8981\u4E00\u6BB5\u65F6\u95F4\uFF0C\u5EFA\u8BAE\u7A0D\u540E\u518D\u67E5\u8BE2"),await i()}catch{}};return j(async()=>{N.value=await ha()}),(_,n)=>{const f=L,U=O,g=$,y=aa,M=ea,R=ua,s=ta,k=la,Q=ra,T=ca,D=B("hasPermi"),W=na;return o(),w(q,null,[a(R,null,{default:e(()=>[a(M,{class:"-mb-15px",model:l(t),ref_key:"queryFormRef",ref:z,inline:!0,"label-width":"68px"},{default:e(()=>[a(f,{label:"\u516C\u4F17\u53F7",prop:"accountId"},{default:e(()=>[a(l(ga),{onChange:K})]),_:1}),a(f,{label:"\u7528\u6237\u6807\u8BC6",prop:"openid"},{default:e(()=>[a(U,{modelValue:l(t).openid,"onUpdate:modelValue":n[0]||(n[0]=r=>l(t).openid=r),placeholder:"\u8BF7\u8F93\u5165\u7528\u6237\u6807\u8BC6",clearable:"",onKeyup:P(m,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(f,{label:"\u6635\u79F0",prop:"nickname"},{default:e(()=>[a(U,{modelValue:l(t).nickname,"onUpdate:modelValue":n[1]||(n[1]=r=>l(t).nickname=r),placeholder:"\u8BF7\u8F93\u5165\u6635\u79F0",clearable:"",onKeyup:P(m,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(f,null,{default:e(()=>[a(y,{onClick:m},{default:e(()=>[a(g,{icon:"ep:search"}),c("\u641C\u7D22 ")]),_:1}),a(y,{onClick:A},{default:e(()=>[a(g,{icon:"ep:refresh"}),c("\u91CD\u7F6E ")]),_:1}),x((o(),d(y,{type:"success",plain:"",onClick:J,disabled:l(t).accountId===0},{default:e(()=>[a(g,{icon:"ep:refresh",class:"mr-5px"}),c(" \u540C\u6B65 ")]),_:1},8,["disabled"])),[[D,["mp:user:sync"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(R,null,{default:e(()=>[x((o(),d(Q,{data:l(V)},{default:e(()=>[a(s,{label:"\u7F16\u53F7",align:"center",prop:"id"}),a(s,{label:"\u7528\u6237\u6807\u8BC6",align:"center",prop:"openid",width:"260"}),a(s,{label:"\u6635\u79F0",align:"center",prop:"nickname"}),a(s,{label:"\u5907\u6CE8",align:"center",prop:"remark"}),a(s,{label:"\u6807\u7B7E",align:"center",prop:"tagIds",width:"200"},{default:e(r=>[(o(!0),w(q,null,G(r.row.tagIds,(F,h)=>(o(),w("span",{key:h},[a(k,null,{default:e(()=>{var p;return[c(H((p=l(N).find(X=>X.tagId===F))==null?void 0:p.name),1)]}),_:2},1024),c("\xA0 ")]))),128))]),_:1}),a(s,{label:"\u8BA2\u9605\u72B6\u6001",align:"center",prop:"subscribeStatus"},{default:e(r=>[r.row.subscribeStatus===0?(o(),d(k,{key:0,type:"success"},{default:e(()=>[c("\u5DF2\u8BA2\u9605")]),_:1})):(o(),d(k,{key:1,type:"danger"},{default:e(()=>[c("\u672A\u8BA2\u9605")]),_:1}))]),_:1}),a(s,{label:"\u8BA2\u9605\u65F6\u95F4",align:"center",prop:"subscribeTime",width:"180",formatter:l(pa)},null,8,["formatter"]),a(s,{label:"\u64CD\u4F5C",align:"center"},{default:e(r=>[x((o(),d(y,{type:"primary",link:"",onClick:F=>{var p;return h=r.row.id,void((p=S.value)==null?void 0:p.open(h));var h}},{default:e(()=>[c(" \u4FEE\u6539 ")]),_:2},1032,["onClick"])),[[D,["mp:user:update"]]])]),_:1})]),_:1},8,["data"])),[[W,l(b)]]),a(T,{total:l(C),page:l(t).pageNo,"onUpdate:page":n[2]||(n[2]=r=>l(t).pageNo=r),limit:l(t).pageSize,"onUpdate:limit":n[3]||(n[3]=r=>l(t).pageSize=r),onPagination:i},null,8,["total","page","limit"])]),_:1}),a(wa,{ref_key:"formRef",ref:S,onSuccess:i},null,512)],64)}}}),E=sa(v,[["__file","D:/zx/mall-newfeifan-zx-admin/src/views/mp/user/index.vue"]])});export{Sa as __tla,E as default};
|