index-8699616a.js 5.1 KB

1
  1. import{d as E,r as i,e as J,l as L,Q as O,o,c as w,f as a,w as e,a as l,R as K,n as _,x as I,v as d,F as P,q as W,t as X,A as Y,V as $,j as Z,C as aa,D as ea,G as ta,al as la,H as ra,I as na,_ as sa,__tla as oa}from"./index-bd9277a1.js";import{_ as _a,__tla as ca}from"./index-3118d255.js";import{_ as ia,__tla as ua}from"./ContentWrap-7c73ab26.js";import{d as pa,__tla as da}from"./formatTime-8639ba1a.js";import{a as ma,s as fa,__tla as ya}from"./index-d0076e7b.js";import{b as ha,__tla as ga}from"./index-98b4b553.js";import ba,{__tla as ka}from"./main-8724db0b.js";import wa,{__tla as Ia}from"./UserForm-ecc0cf30.js";import{u as va,__tla as xa}from"./useMessage-274788d4.js";import{__tla as Ca}from"./index-49ecf2ef.js";import{__tla as Va}from"./ContentWrap.vue_vue_type_script_setup_true_lang-5f6a2d0d.js";import{__tla as za}from"./el-card-bc8cec83.js";import{__tla as Na}from"./index-ad5ea413.js";import{__tla as Sa}from"./Dialog-eba103da.js";let R,Ua=Promise.all([(()=>{try{return oa}catch{}})(),(()=>{try{return ca}catch{}})(),(()=>{try{return ua}catch{}})(),(()=>{try{return da}catch{}})(),(()=>{try{return ya}catch{}})(),(()=>{try{return ga}catch{}})(),(()=>{try{return ka}catch{}})(),(()=>{try{return Ia}catch{}})(),(()=>{try{return xa}catch{}})(),(()=>{try{return Ca}catch{}})(),(()=>{try{return Va}catch{}})(),(()=>{try{return za}catch{}})(),(()=>{try{return Na}catch{}})(),(()=>{try{return Sa}catch{}})()]).then(async()=>{let v;v=E({name:"MpUser",__name:"index",setup(qa){const x=va(),g=i(!0),C=i(0),V=i([]),t=J({pageNo:1,pageSize:10,accountId:-1,openid:"",nickname:""}),z=i(null),N=i([]),M=c=>{t.accountId=c,t.pageNo=1,u()},u=async()=>{try{g.value=!0;const c=await ma(t);V.value=c.list,C.value=c.total}finally{g.value=!1}},m=()=>{t.pageNo=1,u()},j=()=>{var n;const c=t.accountId;(n=z.value)==null||n.resetFields(),t.accountId=c,m()},S=i(null),A=async()=>{try{await x.confirm("\u662F\u5426\u786E\u8BA4\u540C\u6B65\u7C89\u4E1D\uFF1F"),await fa(t.accountId),x.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 u()}catch{}};return L(async()=>{N.value=await ha()}),(c,n)=>{const f=Y,U=$,b=Z,y=aa,G=ea,q=ia,s=ta,k=la,H=ra,Q=_a,D=O("hasPermi"),T=na;return o(),w(P,null,[a(q,null,{default:e(()=>[a(G,{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(ba),{onChange:M})]),_: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:K(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:K(m,["enter"]),class:"!w-240px"},null,8,["modelValue"])]),_:1}),a(f,null,{default:e(()=>[a(y,{onClick:m},{default:e(()=>[a(b,{icon:"ep:search"}),_("\u641C\u7D22 ")]),_:1}),a(y,{onClick:j},{default:e(()=>[a(b,{icon:"ep:refresh"}),_("\u91CD\u7F6E ")]),_:1}),I((o(),d(y,{type:"success",plain:"",onClick:A,disabled:l(t).accountId===0},{default:e(()=>[a(b,{icon:"ep:refresh",class:"mr-5px"}),_(" \u540C\u6B65 ")]),_:1},8,["disabled"])),[[D,["mp:user:sync"]]])]),_:1})]),_:1},8,["model"])]),_:1}),a(q,null,{default:e(()=>[I((o(),d(H,{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(P,null,W(r.row.tagIds,(F,h)=>(o(),w("span",{key:h},[a(k,null,{default:e(()=>{var p;return[_(X((p=l(N).find(B=>B.tagId===F))==null?void 0:p.name),1)]}),_:2},1024),_("\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(()=>[_("\u5DF2\u8BA2\u9605")]),_:1})):(o(),d(k,{key:1,type:"danger"},{default:e(()=>[_("\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=>[I((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(()=>[_(" \u4FEE\u6539 ")]),_:2},1032,["onClick"])),[[D,["mp:user:update"]]])]),_:1})]),_:1},8,["data"])),[[T,l(g)]]),a(Q,{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:u},null,8,["total","page","limit"])]),_:1}),a(wa,{ref_key:"formRef",ref:S,onSuccess:u},null,512)],64)}}}),R=sa(v,[["__file","D:/zhongxing/mall-newfeifan-zx-admin/src/views/mp/user/index.vue"]])});export{Ua as __tla,R as default};