index.9cde4b7f.js 2.9 KB

1
  1. import{ck as n,X as b,Z as A,cr as R,S as k,_ as w,d as S,m as p,cv as x,r as d,o as P,A as B,x as N,h as m,u as f}from"./index.56449854.js";import{R as M,M as a}from"./role-modal.1bc64f8a.js";import{r as Y}from"./columnRenderHelper.59df13d6.js";import{u as I}from"./use-page-search.59eb5443.js";import{h as L}from"./index.da65f5f6.js";import"./index.1844ab0a.js";import"./useCompany.e9cb4fed.js";const{VITE_PROXY_DOMAIN_REAL:ee,VITE_PROXY_USER_REAL:q}=b(),s=q+"/admin/",T=e=>n.request("post",`${s}userlist`,{data:{level:"2",...e}}),W=e=>n.request("post",`${s}usersave`,{data:e}),$=e=>n.request("post",`${s}setcompanystatus`,{data:e}),H=e=>n.request("post",`${s}menustatus`,{data:e}),O=[{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})=>A(R,{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",...Y("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"}],U={title:"\u516C\u53F8\u8D26\u53F7\u89D2\u8272\u67E5\u8BE2",columns:O,deleteProp:"payNo",statusRowProp:({companyCode:e})=>({companyNo:e}),apis:{httpList:T,httpDelete:H,httpAdd:!0,httpStatus:$,httpUpdate:W}},h={formItems:[{field:"nickname",type:"input",placeholder:"\u771F\u5B9E\u59D3\u540D"},{field:"username",type:"input",placeholder:"\u624B\u673A\u53F7"}]},V="accountQuery",X=S({__name:"index",setup(e){const o=p(null),l=p(null),g={pageSearchHook:()=>I(void 0,void 0,h)},{run:_}=x({success:()=>l.value.onSearch()}),v={content:{create:()=>o.value.onDisplay(void 0,a.create),preview:t=>o.value.onDisplay(t,a.preview),update:t=>o.value.onDisplay(t,a.update)}};function y(t,i){const{roleid:u,nickname:r,relaComNo:c,id:F,companyNo:C,mobile:D}=t,E={id:F,mobile:D,roleid:u,nickname:r,relaComNo:c,companyNo:C};switch(i){case a.update:_(L(E));break}}return(t,i)=>{const u=d("PageContainer"),r=d("PageAuth");return P(),B(r,{pageName:V},{default:N(()=>[m(u,{hooks:g,events:v,contentConfig:f(U),"search-config":f(h),"get-content-ref":c=>l.value=c},null,8,["contentConfig","search-config","get-content-ref"]),m(M,{ref_key:"roleModalRef",ref:o,onFinanceSave:y},null,512)]),_:1})}}});var te=w(X,[["__file","C:/Users/89793/Desktop/projects/report-v3/src/views/interest/accountQuery/index.vue"]]);export{te as default};