crud.Dl0xLISQ.js 2.7 KB

1
  1. import{r as o,W as a}from"./index.YV8vWf6d.js";import{aH as s}from"./vue.BC7RnHNA.js";const i="/api/system/job_applications/";function u(e){return o({url:i,method:"get",params:{...e,tenant_id:1}})}function l(e){return o({url:i,method:"post",data:e})}function d(e){return o({url:i+e.id+"/",method:"put",data:e})}function c(e){return o({url:i+e+"/",method:"delete",data:{id:e}})}function g(){return o({url:i,method:"get"})}const m=function({crudExpose:e}){return s(),{crudOptions:{request:{pageRequest:async t=>await u(t),addRequest:async({form:t})=>await l(t),editRequest:async({form:t,row:r})=>(t.id=r.id,await d(t)),delRequest:async({row:t})=>await c(t.id)},actionbar:{buttons:{add:{show:!1}}},rowHandle:{fixed:"right",width:200,buttons:{view:{iconRight:"view",show:!0,type:"text",click:({row:t})=>{const n=`${window.location.origin}/#/report?id=${t.id}`;window.open(n,"_blank")}},edit:{iconRight:"Edit",type:"text",show:!1},remove:{iconRight:"Delete",type:"text",show:!1}}},pagination:{show:!0},table:{rowKey:"id"},search:{show:!0,layout:"auto"},columns:{_index:{title:"序号",form:{show:!1},column:{type:"index",align:"center",width:"70px",columnSetDisabled:!0}},report_id:{title:"报告编号",search:{show:!0,component:{placeholder:"请输入报告编号"}},type:"input",column:{minWidth:150},form:{rules:[{required:!0,message:"报告编号必填项"}]}},applicant_name:{title:"申请人姓名",search:{show:!0,component:{placeholder:"请输入申请人姓名"}},type:"input",column:{minWidth:120},form:{rules:[{required:!0,message:"申请人姓名必填项"}]}},applicant_phone:{title:"申请人电话",search:{show:!0,component:{placeholder:"请输入申请人电话"}},type:"input",column:{minWidth:130},form:{rules:[{required:!0,message:"申请人电话必填项"}]}},position_title:{title:"申请职位",search:{show:!0,component:{placeholder:"请输入申请职位"}},type:"input",column:{minWidth:120},form:{rules:[{required:!0,message:"申请职位必填项"}]}},status:{title:"申请状态",search:{show:!0,component:{name:"el-select",placeholder:"请选择申请状态"}},type:"dict-select",column:{minWidth:100},dict:a({data:[{value:1,label:"待面试"},{value:2,label:"已面试"},{value:3,label:"已录用"},{value:4,label:"已拒绝"}]})},comprehensive_score:{title:"综合评分",type:"number",column:{minWidth:100}},hire_recommendation:{title:"录用建议",type:"textarea",column:{minWidth:150,showOverflowTooltip:!0}},create_datetime:{title:"创建时间",type:"datetime",column:{minWidth:160},form:{show:!1}},update_datetime:{title:"更新时间",type:"datetime",column:{minWidth:160},form:{show:!1}}}}}},_=Object.freeze(Object.defineProperty({__proto__:null,createCrudOptions:m},Symbol.toStringTag,{value:"Module"}));export{g as G,_ as a,m as c};