会员支付管理后台-用于提供会员管理小程序支付的api接口,与后台数据管理展示
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

1 lines
7.7 KiB

import{d as q,O as A,n as W,r as f,h as n,c as m,e as t,w as r,a as b,t as p,u as e,i as _,N as l,F as x,G as k,I as g,y as X,R as H,B,a5 as J,E as K,W as Q,X as Z,aq as ee,aC as ae,cI as te,Y as le,_ as oe,af as re,aG as ie,ah as ne,a3 as se,$ as de}from"./index-6010b07e.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-tooltip-4ed993c7.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./el-form-item-4ed993c7.js";import{u as V}from"./dict-3e5bfbe1.js";import{_ as pe,g as ue,d as me}from"./user-edit.vue_vue_type_style_index_0_lang-7b3d2414.js";import{_ as ce}from"./_plugin-vue_export-helper-c27b6911.js";/* empty css *//* empty css */import"./index-4718d422.js";/* empty css */import"./index.vue_vue_type_style_index_0_lang-cc99af21.js";import"./attachment-bc20fd95.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import"./index.vue_vue_type_script_setup_true_lang-6f0143c4.js";/* empty css */import"./sys-0f76aff3.js";const _e={class:"main-container"},he={class:"flex justify-between items-center"},fe={class:"text-lg"},we={class:"mt-[10px]"},ve={key:0},be={key:0},ge={class:"mt-[16px] flex justify-end"},ye=q({__name:"user",setup(xe){const T=A().meta.title;let o=W({page:1,limit:10,total:0,loading:!0,data:[],searchParam:{site_id:"",tel:"",name:"",password:"",sex:"",birthday:[],is_show:""}});const C=f();f([]);const $=f([]);(async()=>{$.value=await(await V("placeholder_")).data.dictionary})();const D=f([]);(async()=>{D.value=await(await V("sex_radio")).data.dictionary})();const P=f([]);(async()=>{P.value=await(await V("is_show_radio")).data.dictionary})();const c=(u=1)=>{o.loading=!0,o.page=u,ue({page:o.page,limit:o.limit,...o.searchParam}).then(i=>{o.loading=!1,o.data=i.data.data,o.total=i.data.total}).catch(()=>{o.loading=!1})};c();const w=f(null),z=()=>{w.value.setFormData(),w.value.showDialog=!0},N=u=>{w.value.setFormData(u),w.value.showDialog=!0},S=u=>{J.confirm(l("userDeleteTips"),l("warning"),{confirmButtonText:l("confirm"),cancelButtonText:l("cancel"),type:"warning"}).then(()=>{me(u).then(()=>{c()}).catch(()=>{})})},I=u=>{u&&(u.resetFields(),c())};return(u,i)=>{const v=K,E=Q,h=Z,y=ee,U=ae,Y=te,R=le,L=oe,s=re,F=ie,j=ne,M=se,O=de;return n(),m("div",_e,[t(L,{class:"box-card !border-none",shadow:"never"},{default:r(()=>[b("div",he,[b("span",fe,p(e(T)),1),t(v,{type:"primary",onClick:z},{default:r(()=>[_(p(e(l)("addUser")),1)]),_:1})]),t(L,{class:"box-card !border-none my-[10px] table-search-wrap",shadow:"never"},{default:r(()=>[t(R,{inline:!0,model:e(o).searchParam,ref_key:"searchFormRef",ref:C},{default:r(()=>[t(h,{label:e(l)("tel"),prop:"tel"},{default:r(()=>[t(E,{modelValue:e(o).searchParam.tel,"onUpdate:modelValue":i[0]||(i[0]=a=>e(o).searchParam.tel=a),placeholder:e(l)("telPlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),t(h,{label:e(l)("name"),prop:"name"},{default:r(()=>[t(E,{modelValue:e(o).searchParam.name,"onUpdate:modelValue":i[1]||(i[1]=a=>e(o).searchParam.name=a),placeholder:e(l)("namePlaceholder")},null,8,["modelValue","placeholder"])]),_:1},8,["label"]),t(h,{label:e(l)("sex"),prop:"sex"},{default:r(()=>[t(U,{class:"w-[280px]",modelValue:e(o).searchParam.sex,"onUpdate:modelValue":i[2]||(i[2]=a=>e(o).searchParam.sex=a),clearable:"",placeholder:e(l)("sexPlaceholder")},{default:r(()=>[t(y,{label:"全部",value:""}),(n(!0),m(x,null,k(D.value,(a,d)=>(n(),g(y,{key:d,label:a.name,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),t(h,{label:e(l)("birthday"),prop:"birthday"},{default:r(()=>[t(Y,{modelValue:e(o).searchParam.birthday,"onUpdate:modelValue":i[3]||(i[3]=a=>e(o).searchParam.birthday=a),type:"daterange","value-format":"YYYY-MM-DD","start-placeholder":e(l)("startDate"),"end-placeholder":e(l)("endDate")},null,8,["modelValue","start-placeholder","end-placeholder"])]),_:1},8,["label"]),t(h,{label:e(l)("isShow"),prop:"is_show"},{default:r(()=>[t(U,{class:"w-[280px]",modelValue:e(o).searchParam.is_show,"onUpdate:modelValue":i[4]||(i[4]=a=>e(o).searchParam.is_show=a),clearable:"",placeholder:e(l)("isShowPlaceholder")},{default:r(()=>[t(y,{label:"全部",value:""}),(n(!0),m(x,null,k(P.value,(a,d)=>(n(),g(y,{key:d,label:a.name,value:a.value},null,8,["label","value"]))),128))]),_:1},8,["modelValue","placeholder"])]),_:1},8,["label"]),t(h,null,{default:r(()=>[t(v,{type:"primary",onClick:i[5]||(i[5]=a=>c())},{default:r(()=>[_(p(e(l)("search")),1)]),_:1}),t(v,{onClick:i[6]||(i[6]=a=>I(C.value))},{default:r(()=>[_(p(e(l)("reset")),1)]),_:1})]),_:1})]),_:1},8,["model"])]),_:1}),b("div",we,[X((n(),g(j,{data:e(o).data,size:"large"},{empty:r(()=>[b("span",null,p(e(o).loading?"":e(l)("emptyData")),1)]),default:r(()=>[t(s,{prop:"id",label:e(l)("id"),"min-width":"60","show-overflow-tooltip":!0},null,8,["label"]),t(s,{prop:"tel",label:e(l)("tel"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),t(s,{prop:"name",label:e(l)("name"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),t(s,{label:e(l)("pic"),width:"100",align:"left"},{default:r(({row:a})=>[a.pic?(n(),g(F,{key:0,src:e(H)(a.pic)},null,8,["src"])):(n(),g(F,{key:1,icon:"UserFilled"}))]),_:1},8,["label"]),t(s,{label:e(l)("pid"),"min-width":"180",align:"center","show-overflow-tooltip":!0},{default:r(({row:a})=>[_(p(a.user&&a.user.name?a.user.name+"#"+a.user.id:"顶级"),1)]),_:1},8,["label"]),t(s,{prop:"level",label:e(l)("level"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),t(s,{prop:"wx_openid",label:e(l)("wxOpenid"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),t(s,{prop:"wx_unionid",label:e(l)("wxUnionid"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),t(s,{label:e(l)("sex"),"min-width":"180",align:"center","show-overflow-tooltip":!0},{default:r(({row:a})=>[(n(!0),m(x,null,k(D.value,(d,G)=>(n(),m("div",null,[d.value==a.sex?(n(),m("div",ve,p(d.name),1)):B("",!0)]))),256))]),_:1},8,["label"]),t(s,{prop:"birthday",label:e(l)("birthday"),"min-width":"120","show-overflow-tooltip":!0},null,8,["label"]),t(s,{label:e(l)("isShow"),"min-width":"180",align:"center","show-overflow-tooltip":!0},{default:r(({row:a})=>[(n(!0),m(x,null,k(P.value,(d,G)=>(n(),m("div",null,[d.value==a.is_show?(n(),m("div",be,p(d.name),1)):B("",!0)]))),256))]),_:1},8,["label"]),t(s,{label:e(l)("createTime"),"min-width":"180",align:"center","show-overflow-tooltip":!0},{default:r(({row:a})=>[_(p(a.create_time||""),1)]),_:1},8,["label"]),t(s,{label:e(l)("operation"),fixed:"right","min-width":"120"},{default:r(({row:a})=>[t(v,{type:"primary",link:"",onClick:d=>N(a)},{default:r(()=>[_(p(e(l)("edit")),1)]),_:2},1032,["onClick"]),t(v,{type:"primary",link:"",onClick:d=>S(a.id)},{default:r(()=>[_(p(e(l)("delete")),1)]),_:2},1032,["onClick"])]),_:1},8,["label"])]),_:1},8,["data"])),[[O,e(o).loading]]),b("div",ge,[t(M,{"current-page":e(o).page,"onUpdate:current-page":i[7]||(i[7]=a=>e(o).page=a),"page-size":e(o).limit,"onUpdate:page-size":i[8]||(i[8]=a=>e(o).limit=a),layout:"total, sizes, prev, pager, next, jumper",total:e(o).total,onSizeChange:i[9]||(i[9]=a=>c()),onCurrentChange:c},null,8,["current-page","page-size","total"])])]),t(pe,{ref_key:"editUserDialog",ref:w,onComplete:c},null,512)]),_:1})])}}});const da=ce(ye,[["__scopeId","data-v-fd6e6d99"]]);export{da as default};