1 |
- import{aN as o,aO as R,aj as A,aL as k,ah as x,_ as N,d as P,E as p,aZ as S,x as d,o as B,N as w,K as M,y as m,u as f}from"./index.743f0c80.js";import{R as W,M as n}from"./role-modal.b92cd7a9.js";import{u as Y}from"./use-page-search.a895acdb.js";import{h as q}from"./index.f8aa3d93.js";import"./index.e3a0e172.js";const{VITE_PROXY_DOMAIN_REAL:z,VITE_PROXY_USER_REAL:I}=R(),u=I+"/admin/",L=e=>o.request("post",`${u}userlist`,{data:{islevel:"2",...e}}),O=e=>o.request("post",`${u}usersave`,{data:e}),T=e=>o.request("post",`${u}setcompanystatus`,{data:e}),$=e=>o.request("post",`${u}menustatus`,{data:e}),H=[{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(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:120,slot:"operation"}],V={title:"\u516C\u53F8\u8D26\u53F7\u89D2\u8272\u67E5\u8BE2",columns:H,deleteProp:"payNo",statusRowProp:({companyCode:e})=>({companyNo:e}),apis:{httpList:L,httpDelete:$,httpAdd:!0,httpStatus:T,httpUpdate:O}},h={formItems:[{field:"nickname",type:"input",placeholder:"\u771F\u5B9E\u59D3\u540D"},{field:"username",type:"input",placeholder:"\u624B\u673A\u53F7"}]},j=P({__name:"index",setup(e){const g="accountQuery",a=p(null),l=p(null),_={pageSearchHook:()=>Y(void 0,void 0,h)},{run:F}=S({success:()=>l.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:i,id:C,companyNo:D,mobile:E}=t,b={id:C,mobile:E,roleid:s,nickname:r,relaComNo:i,companyNo:D};switch(c){case n.update:F(q(b));break}}return(t,c)=>{const s=d("PageContainer"),r=d("PageAuth");return B(),w(r,{pageName:g},{default:M(()=>[m(s,{hooks:_,events:y,contentConfig:f(V),"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:v},null,512)]),_:1})}}});var G=N(j,[["__file","D:/work/accout-vue3-ui/src/views/interest/accountQuery/index.vue"]]);export{G as default};
|