import{g as o,a as c}from"./tagManage-1b66d64b-1780045603901v=1.0.0.js";import{g as _}from"./reportingYear-23c6c3e7-1780045603901v=1.0.0.js";import{r as y}from"./index-8184dd63-1780045603901v=1.0.0.js";const T=()=>{const g=async(a,e)=>{let t={area_submit_stadium_kind:1,nature_str:2,area_submit_stadium_level:3,area_submit_stadium_nature:2},s=[];return t[a]?s=l(t[a],e):s=await i(a,e),s},i=async(a,e)=>new Promise(async t=>{let r=await o({page:1,size:1e3,type:a,status:1}),u=[];r.data.list.map(n=>{u.push({label:n.name,value:n.tag_id})}),e&&(e.value=u),t(u)}),l=async(a,e)=>new Promise(async t=>{let r=await c({attribute_type:a});e&&(e.value=r.data),t(r.data)}),p=async()=>new Promise(async a=>{let t=await _({page:1,size:1e3}),s=[];t.data.list.map(r=>{s.push({label:r.year,value:r.reporting_year_id,is_current:r.is_current})}),a(s)}),m=y([{label:"\u5F85\u786E\u8BA4",value:"0",tagType:"info"},{label:"\u8349\u7A3F",value:"1",tagType:"info"},{label:"\u5BA1\u6838\u4E2D",value:"2",tagType:"warning"},{label:"\u901A\u8FC7",value:"3",tagType:"success"},{label:"\u9A73\u56DE",value:"4",tagType:"danger"},{label:"\u901A\u8FC7",value:"5",tagType:"success"},{label:"\u5BA1\u6838\u4E2D",value:"7",tagType:"info"}]);return{getProjectList:g,getAttributeList:l,getYearList:p,getProjectTagList:i,statusList:m}};export{T as u};
