import{r as o,S as s}from"./index.CL7yl-Wb.js";import{aH as n}from"./vue.D1BjjNmv.js";const i="/api/system/job_applications/";function r(e){return o({url:"/api/system/question_category/list",method:"get",params:{...e,tenant_id:s.get("tenant_id")}})}function u(e){return o({url:"/api/system/question_category/create",method:"post",data:{...e,tenant_id:s.get("tenant_id")}})}function l(e){return o({url:"/api/system/question_category/update",method:"post",data:{...e,tenant_id:s.get("tenant_id")}})}function d(e){return o({url:"/api/system/question_category/delete",method:"post",data:{...e,tenant_id:s.get("tenant_id")}})}function _(){return o({url:i,method:"get"})}const c=function({crudExpose:e}){return n(),{crudOptions:{toolbar:{buttons:{search:{show:!1},refresh:{show:!1},compact:{show:!1},export:{text:"导出",type:"primary",size:"small",icon:"upload",circle:!1,display:!0,show:!1},columns:{show:!1}}},request:{pageRequest:async t=>await r(t),addRequest:async({form:t})=>await u(t),editRequest:async({form:t,row:a})=>(t.id=a.id,await l(t)),delRequest:async({row:t})=>await d({id:t.id})},actionbar:{buttons:{add:{show:!0}}},rowHandle:{fixed:"right",width:200,buttons:{view:{show:!1},edit:{iconRight:"Edit",type:"text",show:!0},remove:{iconRight:"Delete",type:"text",show:!0}}},pagination:{show:!0},table:{rowKey:"id"},search:{show:!0,autoSearch:!1,buttons:{search:{size:"small"},reset:{size:"small"}}},columns:{_index:{title:"序号",form:{show:!1},column:{type:"index",align:"center",width:"70px",columnSetDisabled:!0}},name:{title:"分类名称",search:{show:!0,component:{placeholder:"请输入分类名称"},size:"small",col:{span:3}},type:"input",column:{minWidth:120},form:{rules:[{required:!0,message:"分类名称为必填项"}]}},description:{title:"描述",search:{show:!1,component:{placeholder:"请输入描述"},size:"small",col:{span:3}},type:"textarea",column:{minWidth:150,showOverflowTooltip:!0},form:{component:{span:24,placeholder:"请输入标签描述"}}},sort:{title:"排序",type:"number",column:{minWidth:80},form:{value:1,component:{placeholder:"请输入排序值，数字越小越靠前"}}},tags_count:{title:"标签数量",type:"number",column:{minWidth:100},form:{show:!1}},questions_count:{title:"问题数量",type:"number",column:{minWidth:100},form:{show:!1}},create_datetime:{title:"创建时间",type:"datetime",column:{minWidth:160},form:{show:!1}},update_datetime:{title:"更新时间",type:"datetime",column:{minWidth:160},form:{show:!1}}}}}},g=Object.freeze(Object.defineProperty({__proto__:null,createCrudOptions:c},Symbol.toStringTag,{value:"Module"}));export{_ as G,g as a,c};
