index-Df3zB-fP.js 3.1 KB

1
  1. /* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{P as b}from"./index-C__Mp2q5.js";/* empty css *//* empty css *//* empty css *//* empty css *//* empty css *//* empty css */import{d as g,r as o,c as v,b as e,a,u as x,w as s,az as w,ad as C,o as k,A as i,t as p,af as T,_ as E}from"./index-hZHbf6Qq.js";const B={class:"staff-manage-container"},D={class:"content-wrapper"},N={class:"dept-tree"},y={class:"staff-table"},z=g({__name:"index",setup(P){const l=o(1),m=o([{id:1,name:"人事部",children:[{id:11,name:"人事部01"},{id:12,name:"人事部02"}]},{id:2,name:"技术部",children:[{id:21,name:"技术部01"},{id:22,name:"技术部02"}]},{id:3,name:"财务部"}]),c=o([{id:1,name:"郑婷雅",phone:"137 8651 5262",role:"采购负责人",department:"技术部",status:"启用"},{id:2,name:"冯艺莲",phone:"158 6084 7617",role:"采购负责人",department:"技术部",status:"启用"},{id:3,name:"吴彦琛",phone:"158 0598 5923",role:"采购负责人",department:"财务部",status:"启用"},{id:4,name:"吴彦漆",phone:"137 8231 8088",role:"采购负责人",department:"设计部",status:"启用"},{id:5,name:"周碰",phone:"180 6243 3980",role:"采购负责人",department:"财务部",status:"启用"},{id:6,name:"吴萱萱",phone:"131 1251 9348",role:"采购负责人",department:"人事部",status:"启用"},{id:7,name:"王凡玄",phone:"185 3264 9149",role:"采购负责人",department:"财务部",status:"启用"},{id:8,name:"冯启彬",phone:"184 5857 8572",role:"采购负责人",department:"设计部",status:"启用"},{id:9,name:"郑文锦",phone:"189 2860 9388",role:"采购负责人",department:"财务部",status:"启用"},{id:10,name:"赵吾光",phone:"181 0834 1643",role:"采购负责人",department:"人事部",status:"启用"}]),u=r=>{l.value=r.id};return(r,d)=>{const _=w,t=T,h=C;return k(),v("div",B,[e(x(b),{title:"人员管理"}),a("div",D,[a("div",N,[e(_,{data:m.value,props:{label:"name",children:"children"},"node-key":"id","default-expand-all":"","highlight-current":"",onNodeClick:u},{default:s(({node:n,data:f})=>[a("span",{class:i(["tree-node",{active:l.value===f.id}])},p(n.label),3)]),_:1},8,["data"])]),a("div",y,[e(h,{data:c.value,border:""},{default:s(()=>[e(t,{prop:"name",label:"姓名",width:"100",align:"center"}),e(t,{prop:"phone",label:"手机号",width:"140",align:"center"}),e(t,{prop:"role",label:"角色",width:"120",align:"center"}),e(t,{prop:"department",label:"部门名称",width:"120",align:"center"}),e(t,{prop:"status",label:"状态",width:"80",align:"center"},{default:s(({row:n})=>[a("span",{class:i(["status-text",n.status==="启用"?"active":""])},p(n.status),3)]),_:1}),e(t,{label:"操作",width:"80",align:"center"},{default:s(()=>[...d[0]||(d[0]=[a("span",{class:"action-text"},"-",-1)])]),_:1})]),_:1},8,["data"])])])])}}}),O=E(z,[["__scopeId","data-v-d89a3748"]]);export{O as default};