import{f as d}from"./eventProjectAndTypeApi-0c7a84fc-1782572373740v=1.0.0.js";import{i as m}from"./eventGroupAndTermApi-31c30359-1782572373740v=1.0.0.js";import{r as n,R as v}from"./vendor-866bb149-1782572373740v=1.0.0.js";import{d as T}from"./index-f6f689f9-1782572373740v=1.0.0.js";const g=()=>{const o=n([]),s=n([{type:"index",label:"\u5E8F\u53F7",width:70,fixed:"left"},{prop:"name",label:"\u9879\u76EE\u7C7B\u578B\u540D\u79F0",minWidth:150},{prop:"eventProjectTypeIdsCnStr",label:"\u53EF\u517C\u9879\u7C7B\u578B",minWidth:120,render:({row:e})=>v("div",null,[e.isAcross?e.eventProjectTypeIdsCnStr:"\u4E0D\u5141\u8BB8\u517C\u9879"])},{prop:"eventProjectTypeLimitNumStr",label:"\u9650\u5236\u9879\u76EE\u6570\u91CF",minWidth:120},{label:"\u64CD\u4F5C",prop:"operation",fixed:"right",width:200}]);return{columns:o,tableColumns:s,dataCallBack:e=>(e.listData.forEach(r=>{r.eventProjectTypeLimitNumStr=r.eventProjectTypeLimitNum?r.eventProjectTypeLimitNum:"\u4E0D\u9650\u5236",r.eventProjectTypeIdsCnStr=r.eventProjectTypeIdsCn?r.eventProjectTypeIdsCn:"\u4E0D\u9650\u5236"}),e),paramCallBack:e=>e}},y=g,B=T("projectType",()=>{const{dataCallBack:o}=y(),s=n(null),c=async i=>{let a=await d({eventId:i});if(a.code==0){let u=o(a.data);s.value=u.listData}},l=n([]),e=n([]);return{eventProjectTypeOptions:s,getEventProjectTypeListData:c,eventTermOptions:e,getEventTermListData:async i=>{let a=await m({eventId:i});if(a.code==0){let u={};a.data.listData.forEach(t=>{u[t.eventGroupId]||(u[t.eventGroupId]={eventGroupId:t.eventGroupId,eventGroupName:t.eventGroupName,eventTermList:[]}),u[t.eventGroupId].eventTermList.push({eventTermId:t.eventTermId,eventTermName:t.name})});let p=[];for(let t in u)p.push(u[t]);e.value=p,l.value=a.data.listData}}}}),P={name:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0",trigger:["blur","change"]}],isAcross:[{required:!0,message:"\u8BF7\u9009\u62E9\u662F\u5426\u5141\u8BB8\u517C\u9879",trigger:["blur","change"]}],eventProjectTypeIdsList:[{required:!0,message:"\u8BF7\u9009\u62E9\u517C\u62A5\u9879\u76EE\u7C7B\u578B",trigger:["blur","change"]}],eventProjectTypeLimitNum:[]},f={name:[{required:!0,message:"\u8BF7\u8F93\u5165\u9879\u76EE\u540D\u79F0",trigger:["blur","change"]},{max:30,message:"\u9879\u76EE\u540D\u79F0\u6700\u591A30\u4E2A\u5B57\u7B26",trigger:["blur","change"]}],eventTermIdsList:[{required:!0,message:"\u8BF7\u9009\u62E9\u9002\u7528\u7EC4\u522B",trigger:["blur","change"]}]};export{y as a,P as b,f as p,B as u};
