import{_ as D,r as u,C as k,d as n,aa as B,o as p,c as C,J as w,k as N,w as e,u as S,a as V,l as f,e as a,m as o,x as s,p as q,q as A}from"./index.bba5ce79.js";import{a as R}from"./intersection.ab3021ee.js";const T=i=>(q("data-v-7fae0292"),i=i(),A(),i),z={class:"app-container"},E={class:"card-header"},J=T(()=>f("span",null,"\u8DEF\u53E3\u8BE6\u60C5",-1)),M={__name:"detail",setup(i){const r=S(),v=V(),d=u(!1),t=u({});function m(){v.go(-1)}function g(){const _=r.params.id||r.query.id;if(!_){console.error("\u672A\u627E\u5230\u8DEF\u53E3ID");return}d.value=!0,R(_).then(c=>{console.log("\u83B7\u53D6\u8DEF\u53E3\u8BE6\u60C5\u6570\u636E:",c),t.value=c.data||c,d.value=!1}).catch(c=>{console.error("\u83B7\u53D6\u8DEF\u53E3\u8BE6\u60C5\u5931\u8D25:",c),d.value=!1})}return k(()=>{g()}),(_,c)=>{const b=n("el-button"),l=n("el-descriptions-item"),h=n("el-tag"),I=n("el-descriptions"),y=n("el-card"),x=B("loading");return p(),C("div",z,[w((p(),N(y,{class:"detail-card"},{header:e(()=>[f("div",E,[J,a(b,{onClick:m,type:"primary",size:"small"},{default:e(()=>[o("\u8FD4\u56DE")]),_:1})])]),default:e(()=>[a(I,{column:1,border:""},{default:e(()=>[a(l,{label:"\u8DEF\u53E3ID"},{default:e(()=>[o(s(t.value.id),1)]),_:1}),a(l,{label:"\u8DEF\u53E3\u540D\u79F0"},{default:e(()=>[o(s(t.value.intersectionName),1)]),_:1}),a(l,{label:"\u8DEF\u53E3\u7F16\u53F7"},{default:e(()=>[o(s(t.value.intersectionId),1)]),_:1}),a(l,{label:"\u7ECF\u5EA6"},{default:e(()=>[o(s(t.value.longitude),1)]),_:1}),a(l,{label:"\u7EAC\u5EA6"},{default:e(()=>[o(s(t.value.latitude),1)]),_:1}),a(l,{label:"\u533A\u57DF\u7F16\u7801"},{default:e(()=>[o(s(t.value.areaCode),1)]),_:1}),a(l,{label:"\u63CF\u8FF0"},{default:e(()=>[o(s(t.value.description),1)]),_:1}),a(l,{label:"\u72B6\u6001"},{default:e(()=>[a(h,{type:t.value.isActive?"success":"info"},{default:e(()=>[o(s(t.value.isActive?"\u5DF2\u6FC0\u6D3B":"\u672A\u6FC0\u6D3B"),1)]),_:1},8,["type"])]),_:1}),a(l,{label:"\u521B\u5EFA\u65F6\u95F4"},{default:e(()=>[o(s(t.value.createdTime),1)]),_:1})]),_:1})]),_:1})),[[x,d.value]])])}}},G=D(M,[["__scopeId","data-v-7fae0292"]]);export{G as default};
