text: import{B as h}from"./TableImg.73863b69.js";import{T as x}from"./BasicForm.6afa01de.js";import{u as g}from"./useTable.7c1e4a10.js";import{g as C,d as _}from"./jobGrade.f9e59f51.js";import{P as T}from"./index.77f474a0.js";import B from"./JobGradeTypeList.5eed6641.js";import{b as w}from"./index.30115123.js";import{J as y,c as E,s as F}from"./JobGradeModal.7457c111.js";import{A as S,aE as G,r as M,a0 as n,B as J,a1 as v,a6 as r,w as s,u as b,ae as A}from"./vendor.7bee64cc.js";import{_ as I,h as P}from"./index.9eb02b52.js";/* empty css                *//* empty css              */import"./useForm.1fd322f5.js";/* empty css                *//* empty css                *//* empty css               */import"./uuid.2b29000c.js";import"./useWindowSizeFn.30e15ddc.js";/* empty css               */import"./useSortable.dd731734.js";/* empty css                *//* empty css                *//* empty css               *//* empty css               */import"./index.1445cecb.js";/* empty css                *//* empty css                *//* empty css                */import"./download.78bd314d.js";import"./base64Conver.bb012c73.js";import"./index.83641cbd.js";/* empty css                *//* empty css                */import"./useContentViewHeight.52836077.js";import"./Tree.vue_vue&type=style&index=0&lang.43e63f89.js";import"./useContextMenu.e899090d.js";import"./jobGradeType.4654e8da.js";const{createMessage:R}=P(),k=S({name:"JobGrade",components:{BasicTable:h,PageWrapper:T,JobGradeTypeList:B,JobGradeModal:y,TableAction:x,Popconfirm:G},setup(){const[e,{openModal:d,setModalProps:l}]=w(),t=M({}),[j,{reload:u}]=g({title:"\u5217\u8868",api:C,immediate:!1,columns:E,formConfig:{labelWidth:120,schemas:F,showAdvancedButton:!1,showResetButton:!1,autoSubmitOnEnter:!0},canColDrag:!0,useSearchForm:!0,bordered:!0,pagination:!1,showIndexColumn:!1,actionColumn:{width:100,title:"\u64CD\u4F5C",dataIndex:"action",slots:{customRender:"action"},fixed:!1}});function c(){if(!b(t).code){R.warning("\u8BF7\u9009\u62E9\u5206\u7C7B\uFF01",2);return}l({title:"\u65B0\u589E\u804C\u7EA7"}),d(!0,{record:{typeId:b(t).id,typeCode:b(t).code},isUpdate:!0})}function p(o){l({title:"\u4FEE\u6539\u804C\u7EA7"}),d(!0,{record:o,isUpdate:!0})}function m(o){_(o.id).then(()=>{u()})}function f(){a(t.value)}function a(o){t.value=o;let i={typeId:o?o.id:""};u({searchInfo:i})}return{registerTable:j,registerModal:e,handleCreate:c,handleEdit:p,handleDelete:m,handleSuccess:f,handleSelect:a}}}),W=A("\u65B0\u589E");function D(e,d,l,t,j,u){const c=n("JobGradeTypeList"),p=n("a-button"),m=n("TableAction"),f=n("BasicTable"),a=n("JobGradeModal"),o=n("PageWrapper");return J(),v(o,{dense:"",contentFullHeight:"",fixedHeight:"",contentClass:"flex"},{default:r(()=>[s(c,{class:"w-1/4 xl:w-1/5",onSelect:e.handleSelect},null,8,["onSelect"]),s(f,{onRegister:e.registerTable,class:"w-3/4 xl:w-4/5"},{toolbar:r(()=>[s(p,{type:"primary",onClick:e.handleCreate},{default:r(()=>[W]),_:1},8,["onClick"])]),action:r(({record:i})=>[s(m,{actions:[{tooltip:"\u4FEE\u6539",icon:"clarity:note-edit-line",onClick:e.handleEdit.bind(null,i)},{tooltip:"\u5220\u9664",icon:"ant-design:delete-outlined",color:"error",popConfirm:{title:"\u662F\u5426\u786E\u8BA4\u5220\u9664",confirm:e.handleDelete.bind(null,i)}}]},null,8,["actions"])]),_:1},8,["onRegister"]),s(a,{onRegister:e.registerModal,onSuccess:e.handleSuccess},null,8,["onRegister","onSuccess"])]),_:1})}var Be=I(k,[["render",D]]);export{Be as default};
  