1 |
- import{aE as s,ae as x,af as v,aC as E,a8 as C,_ as w,d as y,w as o,a0 as b,r as f,o as B,G as D,C as P,l as R,u as h}from"./index.e4510b68.js";import{h as L}from"./index.920e6fa4.js";import{u as S}from"./use-page-search.9c962c21.js";import{u as I}from"./use-page-modal.15213119.js";const{VITE_PROXY_DOMAIN_REAL:W,VITE_PROXY_USER_REAL:k}=x(),n=k+"/admin/",q=e=>s.request("post",`${n}execstatadd`,{data:e}),M=e=>s.request("post",`${n}execstatlist`,{data:e}),N=e=>s.request("post",`${n}execstatus`,{data:e}),Y=e=>s.request("post",`${n}execstataction`,{data:e}),$=[{type:"selection",width:40,align:"center",hide:({checkList:e})=>!e.includes("\u52FE\u9009\u5217")},{label:"\u5E8F\u53F7",type:"index",width:70,hide:({checkList:e})=>!e.includes("\u5E8F\u53F7\u5217")},{label:"\u62A5\u8868\u540D\u79F0",prop:"name"},{label:"\u72B6\u6001",prop:"status","min-width":"80px",cellRenderer:({row:e,props:l})=>v(E,{size:l.size,type:String(e.status)==="1"?"success":"danger"},{default:()=>String(e.status)==="1"?"\u542F\u7528":"\u7981\u7528"})},{label:"\u521B\u5EFA\u4EBA",prop:"apply_name","min-width":"80px"},{label:"\u521B\u5EFA\u65F6\u95F4",prop:"addtime","min-width":"140px",formatter:({addtime:e})=>C(e).format("YYYY-MM-DD HH:mm:ss")},{label:"\u64CD\u4F5C",fixed:"right",width:100,slot:"operation"}],H={title:"\u53EF\u7533\u8BF7\u62A5\u8868",superUserNoAction:!1,showCreate:e=>e,showStatus:e=>e,columns:$,apis:{httpList:M,httpAdd:q,httpStatus:N}},g={colLayout:{xl:3,lg:4,md:6,sm:8,xs:12},formItems:[{field:"status",type:"select",placeholder:"\u72B6\u6001",options:[{value:"0",label:"\u7981\u7528"},{value:"1",label:"\u542F\u7528"}]},{field:"name",type:"input",placeholder:"\u62A5\u8868\u540D\u79F0"}]},z={title:"\u53EF\u7533\u8BF7\u62A5\u8868",colLayout:{span:24},itemStyle:{},formItems:[{field:"name",type:"input",label:"\u62A5\u8868\u540D\u79F0",labelWidth:"120px",placeholder:"\u62A5\u8868\u540D\u79F0",rules:[{required:!0,trigger:"change",message:"\u8BF7\u8F93\u5165\u62A5\u8868\u540D\u79F0"}]},{field:"action",type:"select",label:"\u62A5\u8868\u9009\u9879",labelWidth:"120px",placeholder:"\u62A5\u8868\u9009\u9879",rules:[{required:!0,trigger:"change",message:"\u8BF7\u9009\u62E9\u62A5\u8868\u9009\u9879"}],options:[]}]},O=y({__name:"index",setup(e){const l="personnelReport",r=o(z),F=o(null),p=o([]),d=o([]);async function m(t){const i=[],{code:c,data:u}=t==1?await Y({}):await L({page:1,size:1e4});return c===0&&(t==1?u:u.list).forEach(a=>{const A={value:t==1?a.action:a.companyNo,label:(t==1,a.name)};i.push(A)}),i}const _={pageSearchHook:()=>S(void 0,void 0,g),pageModalHook:t=>I({pageContentRef:t})};return b(async()=>{p.value=await m(1),d.value=await m(2),r.value.formItems[1].options=p.value,r.value.formItems[2].options=d.value}),(t,i)=>{const c=f("PageContainer"),u=f("PageAuth");return B(),D(u,{pageName:l},{default:P(()=>[R(c,{hooks:_,contentConfig:h(H),"search-config":h(g),"modal-config":r.value,"get-modal-ref":a=>F.value=a},null,8,["contentConfig","search-config","modal-config","get-modal-ref"])]),_:1})}}});var X=w(O,[["__file","/Users/apple/Desktop/CompanyProjects/accout-vue3-ui/src/views/reportForm/personnelReport/index.vue"]]);export{X as default};
|