1 |
- import{aC as n,a2 as b,a3 as R,aE as A,Z as k,_ as P,d as S,w as p,aF as x,r as d,o as B,G as N,C as M,l as m,u as f}from"./index.1d5f2f42.js";import{R as Y,M as o}from"./role-modal.2a004b22.js";import{r as I}from"./columnRenderHelper.b302b7f4.js";import{u as L}from"./use-page-search.5b2e253c.js";import{h as q}from"./index.00fd5a1f.js";import"./index.52a82cd1.js";import"./useCompany.f3b703c8.js";const{VITE_PROXY_DOMAIN_REAL:ee,VITE_PROXY_USER_REAL:T}=b(),u=T+"/admin/",W=e=>n.request("post",`${u}userlist`,{data:{level:"2",...e}}),$=e=>n.request("post",`${u}usersave`,{data:e}),H=e=>n.request("post",`${u}setcompanystatus`,{data:e}),O=e=>n.request("post",`${u}menustatus`,{data:e}),V=[{type:"selection",width:40,align:"center",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",width:120,align:"left"},{label:"\u771F\u5B9E\u59D3\u540D",prop:"nickname",minWidth:150},{label:"\u72B6\u6001",prop:"status",width:100,cellRenderer:({row:e})=>R(A,{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",...I("companyCode","companyName","\u516C\u53F8\u7F16\u7801:")},{label:"\u521B\u5EFA\u65F6\u95F4",width:140,prop:"addtime",formatter:({addtime:e})=>k(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:100,slot:"operation"}],Q={title:"\u516C\u53F8\u8D26\u53F7\u89D2\u8272\u67E5\u8BE2",columns:V,deleteProp:"payNo",statusRowProp:({companyCode:e})=>({companyNo:e}),apis:{httpList:W,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"}]},U=S({__name:"index",setup(e){const g="accountQuery",a=p(null),i=p(null),_={pageSearchHook:()=>L(void 0,void 0,h)},{run:F}=x({success:()=>i.value.onSearch()}),v={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 y(t,c){const{roleid:s,nickname:r,relaComNo:l,id:C,companyNo:D,mobile:E}=t,w={id:C,mobile:E,roleid:s,nickname:r,relaComNo:l,companyNo:D};switch(c){case o.update:F(q(w));break}}return(t,c)=>{const s=d("PageContainer"),r=d("PageAuth");return B(),N(r,{pageName:g},{default:M(()=>[m(s,{hooks:_,events:v,contentConfig:f(Q),"search-config":f(h),"get-content-ref":l=>i.value=l},null,8,["contentConfig","search-config","get-content-ref"]),m(Y,{ref_key:"roleModalRef",ref:a,onFinanceSave:y},null,512)]),_:1})}}});var te=P(U,[["__file","D:/work/rep-v3/report-v3/src/views/interest/accountQuery/index.vue"]]);export{te as default};
|