PageSourceSearch

https://www.cnfi.org.tw/assets/PresidentView-DvBUZIj3.js

js cnfi.org.tw collected 2026-10-02 10:27:23 UTC 2,720 bytes, 1 lines download raw bytes

1import{l as P,m as M,r as p,o as T,u as $,c as n,a as e,b as y,n as f,j as V,t as l,k as r,F as h,e as v,i as A,f as B,v as D,g as i,h as E,w as F}from"./index-DdwgCdNA.js";import H from"./AboutBanner-B97AXJta.js";const I={class:"main"},j={style:{"background-color":"#fff","min-height":"100vh"}},z={class:"container"},R={href:"/"},S={href:"/About/History"},q={href:"#",class:"CurrMenu"},G={style:{},class:"container"},L={class:"content_menu"},O={class:"rwd-grid-menu",style:{"list-style":"none",display:"flex",padding:"0",width:"100%"}},U=["onClick"],J={key:0,style:{"margin-right":"10px",color:"#ffffff"},class:"fa-solid fa-thumbtack"},K=["data-type"],Q={class:"context"},W={class:"people-grid"},X={class:"person-image"},Y=["src","alt"],Z={class:"person-name"},oe={__name:"PresidentView",setup(ee){P({title:"中華民國工業總會 - 歷任理事長 ",meta:[{property:"og:title",content:"中華民國工業總會 - 歷任理事長 "}]});const{t:c}=M(),g="/CNFIAPI",b=$(),k=B(),o=p("");let d="";const C=A("apiClient"),u=[{type:"History",label:"歷史沿革"},{type:"Organize",label:"組織架構"},{type:"Task",label:"法定任務"},{type:"Events",label:"大事記"},{type:"Charter",label:"章程"},{type:"President",label:"歷任理事長"}],_=p([]),w=async()=>{try{const a=await C.getPresidents();_.value=a.map(s=>({id:s.id,name:s.name,image:s.imageName}))}catch(a){console.error("獲取歷任理事長資料失敗:",a)}};T(()=>{d=b.query.Type||"President",o.value=d,w()});const x=a=>{o.value=a,k.push(`/About/${a}`)};return(a,s)=>{var m;const N=D("router-link");return i(),n("div",I,[e("main",j,[y(H),e("div",z,[e("div",{class:f(["NowMenu dynamic-content",{"enter-active":a.isEntered}])},[e("a",R,[s[0]||(s[0]=e("i",{class:"fas fa-home"},null,-1)),V(" "+l(r(c)("首頁"))+"  ",1)]),s[1]||(s[1]=e("div",null," > ",-1)),e("a",S," "+l(r(c)("認識工總"))+"  ",1),s[2]||(s[2]=e("div",null," > ",-1)),e("a",q," "+l((m=u.find(t=>t.type===o.value))==null?void 0:m.label)+" ",1)],2)]),e("div",G,[e("div",L,[e("ul",O,[(i(),n(h,null,v(u,t=>e("li",{onClick:te=>x(t.type),class:f([{"border-red":o.value===t.type},"SessionTag"])},[o.value===t.type?(i(),n("i",J)):E("",!0),e("a",{class:"courseMenu","data-type":t.type,style:{}},l(t.label),9,K)],10,U)),64))])])]),e("div",Q,[e("div",W,[(i(!0),n(h,null,v(_.value,t=>(i(),n("div",{class:"person-card",key:t.id},[y(N,{to:`/About/PresidentDetail?id=${t.id.replace(/-/g,"")}`,style:{"text-decoration":"none",color:"inherit"}},{default:F(()=>[e("div",X,[e("img",{src:`${r(g)}/img/${t.image}`,alt:t.name},null,8,Y)]),s[3]||(s[3]=e("div",{class:"person-title"},"榮譽理事長",-1)),e("div",Z,l(t.name),1)]),_:2,__:[3]},1032,["to"])]))),128))])])])])}}};export{oe as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.