1 |
- import{r as o}from"./index.BQUvI64x.js";import{aH as a}from"./vue.D1BjjNmv.js";const n="/api/system/job_applications/";function r(e){return o({url:"/api/system/question_category/list",method:"get",params:{...e,tenant_id:1}})}function i(e){return o({url:"/api/system/question_category/create",method:"post",data:{...e,tenant_id:1}})}function u(e){return o({url:"/api/system/question_category/update",method:"post",data:{...e,tenant_id:1}})}function l(e){return o({url:"/api/system/question_category/delete",method:"post",data:{...e,tenant_id:1}})}function w(){return o({url:n,method:"get"})}const c=function({crudExpose:e}){return a(),{crudOptions:{toolbar:{buttons:{search:{show:!1},refresh:{show:!1},compact:{show:!1},export:{text:"导出",type:"primary",size:"small",icon:"upload",circle:!1,display:!0},columns:{show:!1}}},request:{pageRequest:async t=>await r(t),addRequest:async({form:t})=>await i(t),editRequest:async({form:t,row:s})=>(t.id=s.id,await u(t)),delRequest:async({row:t})=>await l({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,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:!0,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}}}}}},b=Object.freeze(Object.defineProperty({__proto__:null,createCrudOptions:c},Symbol.toStringTag,{value:"Module"}));export{w as G,b as a,c};
|