import{W as l,S as m,k as h}from"./index.CL7yl-Wb.js";import{c as p}from"./api.CnUXTblF.js";import{a as f,w,aj as _,c as v,o as b,b as c,S as g,Q as x,H as y,u as k}from"./vue.D1BjjNmv.js";import{_ as C}from"./_plugin-vue_export-helper.DlAUqK2U.js";const E=function({crudExpose:s}){return{crudOptions:{request:{pageRequest:async e=>{var i;const t={...e,tenant_id:m.get("tenant_id"),job_id:((i=e.form)==null?void 0:i.job_id)||""};return p(t)}},actionbar:{buttons:{add:{show:!0,click:()=>{s.openAdd()}}}},rowHandle:{width:300,buttons:{view:{size:"small",icon:"View",type:"text",click:({row:e})=>{const t=new CustomEvent("viewDocumentDetail",{detail:e});window.dispatchEvent(t)}},uploadVideo:{text:"上传视频",type:"text",icon:"upload",size:"small",click:({row:e})=>{const t=new CustomEvent("openVideoUploadDialog",{detail:e});window.dispatchEvent(t)}},edit:{type:"text",icon:"Edit",size:"small"},remove:{type:"text",icon:"Delete",size:"small"},sort:{type:"text",icon:"sort",size:"small",text:"修改排序",click:({row:e})=>{const t=new CustomEvent("openSortDialog",{detail:e});window.dispatchEvent(t)}}}},columns:{id:{title:"ID",column:{show:!0,width:80},search:{show:!1},form:{show:!1}},question:{title:"题目内容",search:{show:!0},column:{sortable:"custom",showOverflowTooltip:!0,width:300},form:{rules:[{required:!0,message:"题目内容必填"}],component:{placeholder:"请输入题目内容"}}},question_type:{title:"问题类型",search:{show:!0},type:"dict-select",column:{minWidth:100},dict:l({data:[{value:1,label:"专业技能"},{value:2,label:"通用能力"},{value:3,label:"个人特质"}]}),form:{rules:[{required:!0,message:"问题类型必填"}],component:{placeholder:"请选择问题类型"},helper:"选择问题的类型分类"}},difficulty:{title:"难度等级",search:{show:!0},type:"dict-select",column:{minWidth:80},dict:l({data:[{value:1,label:"初级"},{value:2,label:"中级"},{value:3,label:"高级"}]}),form:{rules:[{required:!0,message:"难度等级必填"}],helper:"选择题目的难度级别"}},sequence_number:{title:"排序",search:{show:!1},column:{show:!0},form:{show:!0}},digital_human_video_url:{title:"视频链接",search:{show:!1},column:{show:!0,width:120,formatter:({row:e})=>e.digital_human_video_url?"已上传":"未上传"},form:{show:!1}},digital_human_video_subtitle:{title:"字幕",search:{show:!1},column:{show:!0,width:120,formatter:({row:e})=>e.digital_human_video_subtitle?"已上传":"未上传"},form:{show:!1}}}}}},q={class:"aside-table-container"},D={class:"aside-header"},S=f({__name:"index",props:{positionId:{type:[String,Number],default:""},currentPosition:{type:Object,default:()=>null}},emits:["refresh"],setup(s,{expose:r,emit:e}){const t=s,{crudBinding:i,crudRef:a,crudExpose:n}=h({createCrudOptions:E});w(()=>t.positionId,o=>{o&&u(o)},{immediate:!0});const u=o=>{o&&n.doSearch({form:{job_id:o}})};return r({refresh:()=>n.doRefresh(),asideCrudRef:a}),(o,R)=>{const d=_("fs-crud");return b(),v("div",q,[c("div",D,[c("h3",null,x(s.currentPosition?s.currentPosition.title+" - 问题列表":"请选择职位"),1)]),g(d,y({ref_key:"asideCrudRef",ref:a},k(i)),null,16)])}}}),P=C(S,[["__scopeId","data-v-3eac49cc"]]);export{P as default};
