局长信箱-互联网端管理-前端
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
3.1 KiB

import{_ as k,r as f,o as N,x as T,e as p,b as e,w as l,u as a,q as y,p as M,z as B,A as D,f as b,E as P,n as Y,k as A,h as I,j as q,i as F,C as H,N as S}from"./index-BSiuwHTj.js";/* empty css */import{g as j,p as L}from"./request-ivp8oFtZ.js";/* empty css *//* empty css *//* empty css */function R(i){return j({url:"/user/list",query:i})}function $(i){return L({url:"/user/del?id="+i})}const G={class:"container"},J={class:"mb-24"},K={class:"flex end"},O={class:"flex mt-4 end"},Q={__name:"ManageUser",setup(i){const t=f({current:1,size:10}),g=f({total:0}),h=f([]);function s(){R(t.value).then(d=>{h.value=d.records,g.value.total=d.total})}function V(){t.value={current:1,size:10},s()}s();function C(d){$(d).then(()=>{P.success("删除成功"),s()})}return(d,n)=>{const E=Y,u=A,m=I,c=q,v=F,z=y,_=M,r=H,w=S,x=B,U=D;return N(),T("div",G,[p("header",J,[e(z,{"label-width":120},{default:l(()=>[e(v,null,{default:l(()=>[e(m,{span:6},{default:l(()=>[e(u,{label:"来信时间"},{default:l(()=>[e(E,{type:"datetimerange","start-placeholder":"开始时间","end-placeholder":"结束时间","value-format":"YYYY-MM-DD HH:mm:ss","time-format":"A hh:mm:ss",modelValue:a(t).createTime,"onUpdate:modelValue":n[0]||(n[0]=o=>a(t).createTime=o)},null,8,["modelValue"])]),_:1})]),_:1}),e(m,{span:6},{default:l(()=>[e(u,{label:"真实姓名"},{default:l(()=>[e(c,{placeholder:"请输入",modelValue:a(t).realName,"onUpdate:modelValue":n[1]||(n[1]=o=>a(t).realName=o)},null,8,["modelValue"])]),_:1})]),_:1}),e(m,{span:6},{default:l(()=>[e(u,{label:"电话"},{default:l(()=>[e(c,{placeholder:"请输入",modelValue:a(t).phone,"onUpdate:modelValue":n[2]||(n[2]=o=>a(t).phone=o)},null,8,["modelValue"])]),_:1})]),_:1}),e(m,{span:6},{default:l(()=>[e(u,{label:"证件号码"},{default:l(()=>[e(c,{placeholder:"请输入",modelValue:a(t).idCard,"onUpdate:modelValue":n[3]||(n[3]=o=>a(t).idCard=o)},null,8,["modelValue"])]),_:1})]),_:1})]),_:1})]),_:1}),p("div",K,[p("div",null,[e(_,{type:"primary",onClick:s},{default:l(()=>[b("查询")]),_:1}),e(_,{onClick:V},{default:l(()=>[b("重置")]),_:1})])])]),p("div",null,[e(x,{data:a(h)},{default:l(()=>[e(r,{prop:"id",label:"编号",width:"80",align:"center"}),e(r,{prop:"openid",label:"openid"}),e(r,{prop:"createTime",label:"创建时间"}),e(r,{prop:"realName",label:"真实姓名",width:"120"}),e(r,{prop:"phone",label:"电话",width:"120"}),e(r,{prop:"idCard",label:"证件号码"}),e(r,{prop:"faceAuthTime",label:"认证时间"}),e(r,{label:"操作",width:"160"},{default:l(({row:o})=>[e(w,{title:"确认删除该用户?",onConfirm:W=>C(o.id)},{reference:l(()=>[e(_,{type:"danger",link:"",size:"small"},{default:l(()=>[b("删除用户")]),_:1})]),_:2},1032,["onConfirm"])]),_:1})]),_:1},8,["data"]),p("div",O,[e(U,{onSizeChange:s,onCurrentChange:s,"current-page":a(t).current,"page-sizes":[10,20,50],"page-size":a(t).size,"onUpdate:currentPage":n[4]||(n[4]=o=>a(t).current=o),total:a(g).total,layout:"total, sizes, prev, pager, next"},null,8,["current-page","page-size","total"])])])])}}},oe=k(Q,[["__scopeId","data-v-35ccf107"]]);export{oe as default};