import{w as F}from"./index.c2385adf.js";import{_ as M,q as U,a as f,r as m,I as $,b as _,M as q,o as i,c as s,N as h,f as l,F as k,h as x,d,e as r,n as P,t as v,H as b,k as j}from"./index.699f1124.js";import{g as A,a as E}from"./index.6d6178d8.js";import"./index.efab2b32.js";import"./index.ff1c8ac7.js";const H={class:"innovate"},K={class:"box conter1000"},O={class:"_l"},Q=["onClick"],R={class:"_r"},T={style:{width:"70%"}},G=b("\u641C\u7D22"),J={class:"_list"},W={class:"_info"},X={class:"text_hidden"},Y={class:"_tags"},Z=["onClick"],tt=U({name:"Innovate"}),et=Object.assign(tt,{setup(ot){const C=j(),p=f(!0),u=f(!0),a=m({kind:[],list:[],pageSizes:[5,10,20,30],title:""}),e=m({pageSize:10,pageNum:1,kindId:""});function c(){u.value=!0,E(e).then(o=>{a.total=o.total,a.list=o.rows,u.value=!1})}$(()=>{N()});function N(){p.value=!0,A().then(o=>{a.kind=o.data,o.data.length>0&&(e.kindId=o.data[0].id,c()),p.value=!1})}function S(o){let n=C.resolve({path:`/innovate/detail/${o}`});window.open(n.href,"_blank")}function w(o,n){e.kindId=o,e.pageNum=1,e.title="",c()}function y(){e.pageNum=1,c()}return(o,n)=>{const z=_("el-button"),I=_("el-input"),D=_("el-tag"),V=_("el-tooltip"),L=_("pagination"),g=q("loading");return i(),s("div",H,[h((i(),s("div",K,[l("div",O,[(i(!0),s(k,null,x(a.kind,t=>(i(),s("div",{class:P(["_item pointer",t.id==e.kindId?"x_fff x_bg_blue":""]),key:t.id,onClick:B=>w(t.id,t.title)},v(t.title),11,Q))),128))]),l("div",R,[l("div",T,[d(I,{modelValue:e.title,"onUpdate:modelValue":n[0]||(n[0]=t=>e.title=t),modelModifiers:{trim:!0},placeholder:"\u8BF7\u8F93\u5165\u5173\u952E\u8BCD"},{append:r(()=>[d(z,{onClick:y},{default:r(()=>[G]),_:1})]),_:1},8,["modelValue"])]),h((i(),s("div",J,[(i(!0),s(k,null,x(a.list,t=>(i(),s("div",{class:"item pointer",key:t.id},[l("div",W,[l("p",X,v(t.title),1),l("div",Y,[d(V,{content:t.description,placement:"top"},{default:r(()=>[d(D,{class:"x_fff x_bg_blue"},{default:r(()=>[b(v(t.description),1)]),_:2},1024)]),_:2},1032,["content"])])]),l("div",{class:"_detail",onClick:B=>S(t.id)},"\u67E5\u770B\u8BE6\u60C5",8,Z)]))),128))])),[[g,u.value]]),d(L,{class:"pagination",total:a.total,pageSizes:a.pageSizes,page:e.pageNum,"onUpdate:page":n[1]||(n[1]=t=>e.pageNum=t),limit:e.pageSize,"onUpdate:limit":n[2]||(n[2]=t=>e.pageSize=t),autoScroll:!1,onPagination:c},null,8,["total","pageSizes","page","limit"])])])),[[g,p.value]]),d(F)])}}});var dt=M(et,[["__scopeId","data-v-09e47383"]]);export{dt as default};
