import{aU as n,ac as E,am as A,aR as k,bb as w,ae as P,_ as S,d as x,x as i,bc as B,r as d,o as N,G as M,D as Y,l as m,m as f,bd as I}from"./index.js";import{R as L,M as o}from"./role-modal.54f4ef.js";import{h as q}from"./index.00589194.js";import"./index.5eaa637e.js";const{VITE_PROXY_DOMAIN_REAL:J,VITE_PROXY_USER_REAL:T}=E(),s=T+"/admin/",U=e=>n.request("post",`${s}userlist`,{data:{level:"2",...e}}),$=e=>n.request("post",`${s}usersave`,{data:e}),H=e=>n.request("post",`${s}setcompanystatus`,{data:e}),O=e=>n.request("post",`${s}menustatus`,{data:e}),V=[{label:"\u624B\u673A\u53F7",prop:"mobile",width:120,align:"left"},{label:"\u771F\u5B9E\u59D3\u540D",prop:"nickname",minWidth:150},{label:"\u72B6\u6001",prop:"status",width:100,cellRenderer:({row:e})=>A(k,{type:String(e.status)==="1"?"success":"danger"},{default:()=>String(e.status)==="1"?"\u542F\u7528":"\u7981\u7528"})},{label:"\u89D2\u8272",prop:"role_name",minWidth:150,align:"left"},{label:"\u516C\u53F8\u540D\u79F0",prop:"companyName",minWidth:180,align:"left",...w("companyCode","companyName","\u516C\u53F8\u7F16\u7801:")},{label:"\u521B\u5EFA\u65F6\u95F4",width:140,prop:"addtime",formatter:({addtime:e})=>P(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:100,slot:"operation"}],W={title:"\u516C\u53F8\u8D26\u53F7\u89D2\u8272\u67E5\u8BE2",columns:V,deleteProp:"payNo",statusRowProp:({companyCode:e})=>({companyNo:e}),apis:{httpList:U,httpDelete:O,httpAdd:!0,httpStatus:H,httpUpdate:$}},h={formItems:[{field:"nickname",type:"input",placeholder:"\u771F\u5B9E\u59D3\u540D"},{field:"username",type:"input",placeholder:"\u624B\u673A\u53F7"}]},j=x({__name:"index",setup(e){const _="accountQuery",a=i(null),l=i(null),g={pageSearchHook:()=>I(void 0,void 0,h)},{run:v}=B({success:()=>l.value.onSearch()}),y={content:{create:()=>a.value.onDisplay(void 0,o.create),preview:t=>a.value.onDisplay(t,o.preview),update:t=>a.value.onDisplay(t,o.update)}};function C(t,p){const{roleid:u,nickname:r,relaComNo:c,id:D,companyNo:F,mobile:b}=t,R={id:D,mobile:b,roleid:u,nickname:r,relaComNo:c,companyNo:F};switch(p){case o.update:v(q(R));break}}return(t,p)=>{const u=d("PageContainer"),r=d("PageAuth");return N(),M(r,{pageName:_},{default:Y(()=>[m(u,{hooks:g,events:y,contentConfig:f(W),"search-config":f(h),"get-content-ref":c=>l.value=c},null,8,["contentConfig","search-config","get-content-ref"]),m(L,{ref_key:"roleModalRef",ref:a,onFinanceSave:C},null,512)]),_:1})}}});var K=S(j,[["__file","C:/Users/89793/Desktop/projects/settle-vue3/src/views/interest/accountQuery/index.vue"]]);export{K as default};
