import{g as u}from"./tagManage-2aab0a1e.js";import{p as l,k as r,G as c}from"./index-deffec86.js";const m=(s,i,_=310)=>{const{proxy:t}=c(),p=l([]);u({page:1,size:999,is_show_tag_id:1,type:"event_activity_plan_project_kind"}).then(a=>{a.data.list.forEach(e=>{e.tag_id_str=e.name,e.tag_id=e.tag_group_id}),p.value=a.data.list});const n=l([{prop:"keyword",search:{el:"input",placeholder:"\u8BF7\u8F93\u5165\u8D5B\u4E8B\u6D3B\u52A8\u540D\u79F0/\u7F16\u53F7\u8FDB\u884C\u641C\u7D22"}},{prop:"status",label:"\u5BA1\u6838\u72B6\u6001",enum:[{label:"\u8349\u7A3F",value:"1"},{label:"\u5BA1\u6838\u4E2D",value:"2"},{label:"\u901A\u8FC7",value:"3"},{label:"\u9A73\u56DE",value:"4"}],search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u5BA1\u6838\u72B6\u6001"}},{label:"\u4E3E\u529E\u65F6\u95F4",prop:"h_time",search:{el:"date-picker",props:{type:"date",format:"YYYY/MM/DD",valueFormat:"x"},placeholder:"\u8BF7\u9009\u62E9\u4E3E\u529E\u65F6\u95F4"}},{label:"\u9879\u76EE\u5206\u7C7B",prop:"type_tag_ids",enum:p,fieldNames:{value:"tag_id",label:"tag_id_str",children:"tag_id_arr"},search:{el:"cascader",props:{props:{multiple:!0},collapseTags:!0},placeholder:"\u8BF7\u9009\u62E9\u9879\u76EE\u5206\u7C7B"}},{label:"\u7B49\u7EA7",prop:"area_level",enum:[{label:"\u7701\u7EA7",value:1},{label:"\u5DDE\u5E02\u7EA7",value:2},{label:"\u533A\u53BF\u53CA\u4EE5\u4E0B",value:3},{label:"\u56FD\u5BB6\u7EA7",value:4},{label:"\u8DE8\u7701\u8D5B\u4E8B\u6D3B\u52A8",value:5}],search:{el:"select",placeholder:"\u8BF7\u9009\u62E9\u7B49\u7EA7"}},{label:"\u662F\u5426\u793E\u533A\u8FD0\u52A8\u4F1A",prop:"is_community_sport",enum:[{label:"\u662F",value:1},{label:"\u5426",value:2}],search:{el:"select",placeholder:"\u662F\u5426\u793E\u533A\u8FD0\u52A8\u4F1A"}},{label:"\u4E3E\u529E\u5E74\u4EFD",prop:"year",search:{el:"date-picker",props:{type:"year",format:"YYYY",valueFormat:"YYYY"},placeholder:"\u8BF7\u9009\u62E9\u4E3E\u529E\u5E74\u4EFD"}}]),o=l([{type:"index",label:"\u5E8F\u53F7",width:70,fixed:"left"},{prop:"name",label:"\u6D3B\u52A8\u8BA1\u5212\u540D\u79F0",width:150},{prop:"year",label:"\u5E74\u4EFD",width:130},{prop:"tag_group_id_str",label:"\u9879\u76EE\u5206\u7C7B",width:130,render:a=>r("span",null,[a.row.type_tag_ids_arr.map(e=>`${e.tag_group_id_str}: ${e.tag_ids.map(d=>d.tag_id_str).join(",")}`).join(";")])},{prop:"area_level_str",label:"\u7B49\u7EA7",width:130},{prop:"province_str",label:"\u4E3E\u529E\u5730\u5740",width:130,render:a=>r("span",null,[`${a.row.province_str}-${a.row.city_str}-${a.row.county_str}`])},{prop:"plan_start_time",label:"\u9884\u8BA1\u4E3E\u529E\u65F6\u95F4",width:150,render:a=>r("span",null,[`${a.row.plan_start_time} ${a.row.plan_end_time}`])},{prop:"about_match_num",label:"\u9884\u8BA1\u4E3E\u529E\u573A\u6B21",width:150},{prop:"about_join_num",label:"\u9884\u8BA1\u53C2\u4E0E\u4EBA\u6570",width:150},{prop:"first_hold_name",label:"\u521B\u5EFA\u5355\u4F4D",width:150},{prop:"c_time",label:"\u521B\u5EFA\u65F6\u95F4",width:150},{prop:"operator",label:"\u4FEE\u6539\u4EBA",width:120},...s,{prop:"operation",label:"\u64CD\u4F5C",fixed:"right",width:_}]);return i&&o.value.unshift({type:"selection",fixed:"left",width:70,selectable:(a,e)=>a.status==2}),{columns:n,tableColumns:o,dataCallBack:a=>(a.list.forEach(e=>{e.plan_end_time=e.plan_end_time?t.$dayjs(e.plan_end_time*1e3).format("YYYY-MM-DD"):"",e.plan_start_time=e.plan_start_time?t.$dayjs(e.plan_start_time*1e3).format("YYYY-MM-DD"):"",e.c_time=t.$dayjs(e.c_time*1e3).format("YYYY-MM-DD"),e.u_time=t.$dayjs(e.c_time*1e3).format("YYYY-MM-DD")}),a)}},v=m;export{v as u};
