import{d as b,r as B,w as F,a as o,o as u,c as t,b as _,e as m,f as r,F as c,g as d,t as k,h as D,u as A,i as w,_ as C}from"./index-8184dd63-1780045603901v=1.0.0.js";import{E as g}from"./index-36c5e320-1780045603901v=1.0.0.js";import"./base64-db2ecc3a-1780045603901v=1.0.0.js";const h={key:0},x=b({__name:"TrainDetail",props:{alertList:{type:Array,default:()=>[]},baseForm:{type:Object,default:()=>({})}},setup(s){let y=s;const a=B([{type:1,label:"\u573A\u9986\u540D\u79F0",key:"stadium_name",value:""},{label:"\u573A\u5730\u7C7B\u578B",key:"site_type_str",value:""},{label:"\u57F9\u8BAD\u540D\u79F0",key:"train_name",value:""},{label:"\u8FD0\u52A8\u9879\u76EE",key:"sport_project_names",value:""},{label:"\u57F9\u8BAD\u65F6\u95F4",key:"train_time",value:""},{label:"\u57F9\u8BAD\u5730\u70B9",key:"train_venue",value:""},{label:"\u670D\u52A1\u5BF9\u8C61\u7C7B\u578B",key:"service_object_str",value:""},{label:"\u57F9\u8BAD\u5BF9\u8C61",key:"service_object",value:""},{label:"\u57F9\u8BAD\u4EBA\u6B21",key:"train_join_person_time",value:""},{label:"\u6536\u8D39\u7C7B\u578B",key:"charge_type_str",value:""},{label:"\u6536\u8D39\u6807\u51C6",key:"charging_standard",value:""},{label:"\u516C\u5F00\u72B6\u6001",key:"public_status_str",value:""},{label:"\u5408\u540C\u6587\u4EF6",key:"contract_document_list",type:3,value:[]},{type:2,label:"\u57F9\u8BAD\u5C01\u9762",key:"train_cover_list",value:[]}]);return F(()=>y.baseForm,l=>{l&&(a.value.map(e=>{e.value=l[e.key]}),l.charge_type_str=="\u514D\u8D39"&&a.value.splice(a.value.findIndex(e=>e.key=="charging_standard"),1))},{deep:!0,immediate:!0}),(l,e)=>{const p=o("el-alert"),v=o("form-row"),f=o("el-form");return u(),t("div",null,[_(f,{"label-width":"120px"},{default:m(()=>[s.alertList.length>0?(u(),t("div",h,[e[0]||(e[0]=r("div",{class:"flx-justify-between",style:{width:"100%"}},[r("div",{class:"divider mt20 mb20"},"\u586B\u62A5\u6307\u5F15")],-1)),_(p,{type:"warning"},{default:m(()=>[(u(!0),t(c,null,d(s.alertList,(n,i)=>(u(),t("p",{key:i},k(n),1))),128))]),_:1})])):D("v-if",!0),e[1]||(e[1]=r("div",{class:"flx-justify-between",style:{width:"100%"}},[r("div",{class:"divider mt20 mb20"},"\u4F53\u80B2\u57F9\u8BAD\u4FE1\u606F")],-1)),_(v,null,{default:m(()=>[(u(!0),t(c,null,d(A(a),(n,i)=>(u(),w(g,{key:i,info:n},null,8,["info"]))),128))]),_:1})]),_:1})])}}}),N=C(x,[["__file","D:/desktop/yunNan/vue-area-submit/src/views/components/TrainDetail.vue"]]);export{N as default};
