text: import{_ as e}from"./TableImg.507e398b.js";import{f as o}from"./BasicForm.a98eb535.js";import{u as i}from"./useTable.54605782.js";import{a as t,d as n}from"./positionInfo.e0df5f8c.js";import{P as s}from"./index.b3b6fdb5.js";import r from"./PositionSeqTree.fd12775f.js";import{b as a}from"./index.f287750a.js";import{_ as d,c as l,s as c}from"./PositionInfoModal.320524f4.js";import{j as f,ay as m,r as p,u,K as j,o as b,m as x,Q as h,n as g,Y as S}from"./vendor.686fd1d4.js";import{h as C}from"./index.7fecfddd.js";/* empty css              *//* empty css              */import"./useForm.7ff3fa79.js";/* empty css              *//* empty css              *//* empty css              */import"./uuid.2b29000c.js";import"./useWindowSizeFn.d82e06bf.js";import"./onMountedOrActivated.172ad1ec.js";/* empty css              */import"./useSortable.dc62f82e.js";/* empty css              *//* empty css              *//* empty css              *//* empty css              */import"./index.099c2235.js";/* empty css              *//* empty css              *//* empty css              */import"./download.c870abce.js";import"./base64Conver.bb012c73.js";import"./index.d2ff26f2.js";import"./useContentViewHeight.d2763f54.js";/* empty css              *//* empty css              */import"./Tree.vue_vue&type=style&index=0&lang.ae01db06.js";import"./useContextMenu.27a98d06.js";import"./positionSeq.bc3f20f8.js";const{createMessage:P}=C();var w=f({name:"PositionInfo",components:{BasicTable:e,PageWrapper:s,PositionSeqTree:r,PositionInfoModal:d,TableAction:o,Popconfirm:m},setup(){const[e,{openModal:o,setModalProps:s}]=a(),r=p({}),[d,{reload:f,setProps:m}]=i({title:"列表",api:t,columns:l,formConfig:{labelWidth:120,schemas:c,showAdvancedButton:!1,showResetButton:!1,autoSubmitOnEnter:!0},canColDrag:!0,useSearchForm:!0,bordered:!0,showIndexColumn:!1,actionColumn:{width:100,title:"操作",dataIndex:"action",slots:{customRender:"action"},fixed:!1}});function j(e){r.value=e;let o={positionSeqId:e?e.id:""};m({searchInfo:o}),f({searchInfo:o})}return{registerTable:d,registerModal:e,handleCreate:function(){u(r).id?(s({title:"新增岗位"}),o(!0,{record:{positionSeqId:u(r).id,positionSeqCode:u(r).code},isUpdate:!0})):P.warning("请选择岗位序列！",2)},handleEdit:function(e){s({title:"修改岗位"}),o(!0,{record:e,isUpdate:!0})},handleDelete:function(e){n(e.id).then((()=>{f()}))},handleSuccess:function(){j(r.value)},handleSelect:j}}});const I=S("新增");w.render=function(e,o,i,t,n,s){const r=j("PositionSeqTree"),a=j("a-button"),d=j("TableAction"),l=j("BasicTable"),c=j("PositionInfoModal"),f=j("PageWrapper");return b(),x(f,{dense:"",contentFullHeight:"",fixedHeight:"",contentClass:"flex"},{default:h((()=>[g(r,{class:"w-1/4 xl:w-1/5",onSelect:e.handleSelect},null,8,["onSelect"]),g(l,{onRegister:e.registerTable,class:"w-3/4 xl:w-4/5"},{toolbar:h((()=>[g(a,{type:"primary",onClick:e.handleCreate},{default:h((()=>[I])),_:1},8,["onClick"])])),action:h((({record:o})=>[g(d,{actions:[{icon:"clarity:note-edit-line",onClick:e.handleEdit.bind(null,o)},{icon:"ant-design:delete-outlined",color:"error",popConfirm:{title:"是否确认删除",confirm:e.handleDelete.bind(null,o)}}]},null,8,["actions"])])),_:1},8,["onRegister"]),g(c,{onRegister:e.registerModal,onSuccess:e.handleSuccess},null,8,["onRegister","onSuccess"])])),_:1})};export default w;
  