index.68f7e314.js 2.8 KB

1
  1. import{aH as o,aI as R,aj as A,aF as P,ah as k,_ as x,d as S,E as p,b8 as B,x as d,o as N,N as M,K as W,y as m,u as f}from"./index.1417328f.js";import{R as w,M as n}from"./role-modal.5143ec5a.js";import{u as Y}from"./use-page-search.7e7b4728.js";import{h as I}from"./index.4a42eaee.js";import"./index.c73594a5.js";const{VITE_PROXY_DOMAIN_REAL:G,VITE_PROXY_USER_REAL:q}=R(),u=q+"/admin/",H=e=>o.request("post",`${u}userlist`,{data:{islevel:"2",...e}}),T=e=>o.request("post",`${u}usersave`,{data:e}),$=e=>o.request("post",`${u}setcompanystatus`,{data:e}),j=e=>o.request("post",`${u}menustatus`,{data:e}),L=[{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})=>A(P,{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})=>k(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:120,slot:"operation"}],O={title:"\u516C\u53F8\u8D26\u53F7\u89D2\u8272\u67E5\u8BE2",columns:L,deleteProp:"payNo",statusRowProp:({companyCode:e})=>({companyNo:e}),apis:{httpList:H,httpDelete:j,httpAdd:!0,httpStatus:$,httpUpdate:T}},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:()=>Y(void 0,void 0,h)},{run:F}=B({success:()=>i.value.onSearch()}),y={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 v(t,c){const{roleid:s,nickname:r,relaComNo:l,id:C,companyNo:D,mobile:E}=t,b={id:C,mobile:E,roleid:s,nickname:r,relaComNo:l,companyNo:D};switch(c){case n.update:F(I(b));break}}return(t,c)=>{const s=d("PageContainer"),r=d("PageAuth");return N(),M(r,{pageName:g},{default:W(()=>[m(s,{hooks:_,events:y,contentConfig:f(O),"search-config":f(h),"get-content-ref":l=>i.value=l},null,8,["contentConfig","search-config","get-content-ref"]),m(w,{ref_key:"roleModalRef",ref:a,onFinanceSave:v},null,512)]),_:1})}}});var J=x(U,[["__file","/Users/apple/Desktop/Company Projects/accout-vue3-ui/src/views/interest/accountQuery/index.vue"]]);export{J as default};