import{aJ as o,aK as A,aa as R,aH as k,aW as x,_ as S,r as B,D as p,aX as M,v as d,o as P,M as W,J as N,w as m,x as f}from"./index.5569c05e.js";import{R as w,M as n}from"./role-modal.f7cad90c.js";import{u as Y}from"./use-page-search.79a7bcb0.js";import{h as q}from"./index.e1066c5d.js";import"./index.7a542f74.js";const{VITE_PROXY_DOMAIN_REAL:z,VITE_PROXY_USER_REAL:H}=A(),u=H+"/admin/",I=e=>o.request("post",`${u}userlist`,{data:{islevel:"2",...e}}),T=e=>o.request("post",`${u}usersave`,{data:e}),$=e=>o.request("post",`${u}setstatus`,{data:e}),L=e=>o.request("post",`${u}menustatus`,{data:e}),O=[{type:"selection",minWidth:55,align:"left",hide:({checkList:e})=>!e.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",minWidth:60,align:"left",hide:({checkList:e})=>!e.includes("\u5E8F\u53F7\u5217")},{label:"\u624B\u673A\u53F7",prop:"mobile",minWidth:180,align:"left"},{label:"\u771F\u5B9E\u59D3\u540D",prop:"nickname",minWidth:120},{label:"\u72B6\u6001",prop:"status",cellRenderer:({row:e})=>R(k,{type:String(e.status)==="1"?"success":"danger"},{default:()=>String(e.status)==="1"?"\u542F\u7528":"\u7981\u7528"})},{label:"\u89D2\u8272",prop:"role_name",minWidth:180,align:"left"},{label:"\u516C\u53F8\u7F16\u53F7",prop:"companyCode",minWidth:180,align:"left"},{label:"\u516C\u53F8\u540D\u79F0",prop:"companyName",minWidth:180,align:"left"},{label:"\u521B\u5EFA\u65F6\u95F4",minWidth:180,prop:"addtime",formatter:({addtime:e})=>x(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:80,slot:"operation"}],U={title:"\u516C\u53F8\u8D26\u53F7\u89D2\u8272\u67E5\u8BE2",columns:O,deleteProp:"payNo",apis:{httpList:I,httpDelete:L,httpAdd:!0,httpStatus:$,httpUpdate:T}},h={formItems:[{field:"nickname",type:"input",placeholder:"\u771F\u5B9E\u59D3\u540D"},{field:"username",type:"input",placeholder:"\u624B\u673A\u53F7"}]},V=B({__name:"index",setup(e){const g="accountQuery",a=p(null),l=p(null),_={pageSearchHook:()=>Y(void 0,void 0,h)},{run:F}=M({success:()=>l.value.onSearch()}),v={content:{create:()=>a.value.onDisplay(void 0,n.create),preview:t=>a.value.onDisplay(t,n.preview),update:t=>a.value.onDisplay(t,n.update)}};function y(t,c){const{roleid:s,nickname:r,relaComNo:i,id:D,companyNo:C,mobile:E}=t,b={id:D,roleid:s,nickname:r,relaComNo:i,companyNo:C,mobile:E};switch(c){case n.update:F(q(b));break}}return(t,c)=>{const s=d("PageContainer"),r=d("PageAuth");return P(),W(r,{pageName:g},{default:N(()=>[m(s,{hooks:_,events:v,contentConfig:f(U),"search-config":f(h),"get-content-ref":i=>l.value=i},null,8,["contentConfig","search-config","get-content-ref"]),m(w,{ref_key:"roleModalRef",ref:a,onFinanceSave:y},null,512)]),_:1})}}});var G=S(V,[["__file","C:/Users/63107/Desktop/projects/accout-vue3-ui/src/views/interest/accountQuery/index.vue"]]);export{G as default};