import{u as g}from"./useGetDIct-7b6bc50c-1782572373740v=1.0.0.js";import{u as f}from"./useGetGroupTerm-2c81d695-1782572373740v=1.0.0.js";import{b as T,a as b}from"./index-f6f689f9-1782572373740v=1.0.0.js";import{f as I}from"./scoreReleaseApi-a2bdf2d9-1782572373740v=1.0.0.js";import{r as o,c as u}from"./vendor-866bb149-1782572373740v=1.0.0.js";const S=(i="one",m=(n,s)=>{})=>{const n=T();b();const{eventGroupTermList:s,getEventGroupTermListData:d}=f(sessionStorage.getItem("eventId"));d(),g("sprot_project");const r=o(i=="much"?"much_project":"one"),a=o([]),l=async(e="")=>{if(!e)return;const t=await I({page:1,size:9999,eventId:sessionStorage.getItem("eventId"),eventTermId:e});t.code===0&&(a.value=t.data.listData.map(p=>({label:p.projectName,value:p.eventProjectId})))},c=o({});l();const v=u(()=>{const e=[{prop:"eventTermId",label:"\u7EC4\u522B\u5C0F\u9879",search:{el:"cascader",placeholder:"\u8BF7\u9009\u62E9\u7EC4\u522B\u5C0F\u9879",props:{onChange:t=>{!t||(t==null?void 0:t.length)==0||(l(t[t.length-1]),m("eventProjectId",null))}}},enum:s.value},{prop:"eventProjectId",label:"\u8D5B\u4E8B\u9879\u76EE",search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u8D5B\u4E8B\u9879\u76EE",props:{disabled:!c.value.eventTermId}},isHide:r.value!=="much_project",enum:a.value},{prop:"eventGradeStatus",label:"\u72B6\u6001",search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u72B6\u6001"},enum:n.getEnumListByKey("eventGradeStatus")}];return console.warn({result:e}),e.filter(t=>!t.isHide)}),h=u(()=>[{type:"index",label:"\u5E8F\u53F7",width:70,fixed:"left"},{label:"\u7EC4\u522B",prop:"eventGroupName"},{label:"\u5C0F\u9879",prop:"eventTermName",isHide:r.value==="much_group"},{label:"\u8D5B\u4E8B\u9879\u76EE",prop:"eventProjectName",isHide:r.value!=="much_project"},{label:"\u53D1\u5E03\u65F6\u95F4",prop:"updateTime"},{label:"\u53D1\u5E03\u72B6\u6001",prop:"eventGradeStatusCn"},{label:"\u64CD\u4F5C",prop:"operation",fixed:"right",width:200}].filter(t=>!t.isHide));return{columns:v,tableColumns:h,dataCallBack:e=>(e.listData.forEach(t=>{}),e),paramCallBack:e=>(e.eventGradeType=r.value,e.eventTermId&&e.eventTermId.length>0&&(e.eventTermId=e.eventTermId[e.eventTermId.length-1]),e),eventGradeType:r,innerSearchParam:c}},H=S;export{H as u};
