import{u as P}from"./useFormEdit-e67d5b61-1782572373740v=1.0.0.js";import{g as I}from"./violationTypeApi-e97bfd69-1782572373740v=1.0.0.js";import{b as R,a as T,D as V,_ as q}from"./index-f6f689f9-1782572373740v=1.0.0.js";import{E as A}from"./eleVendor-48a7d3b8-1782572373740v=1.0.0.js";import{y as i,r as t,m as M,al as o,z as c,I as _,J as a,R as s,u,M as N,A as h,Q as S,a4 as H,F as O,B as Z,O as z}from"./vendor-866bb149-1782572373740v=1.0.0.js";import"./keepAlive-0ac97bbd-1782572373740v=1.0.0.js";const J={class:"pt20 mt30"},Q=i({name:"violationTypeDetail"}),U=i({...Q,setup(j){const d=t({xs:24,sm:22,md:20,lg:14,xl:23}),p=t({xs:24,sm:24,md:12,lg:12,xl:12}),f=t({xs:24,sm:22,md:18,lg:16,xl:8}),{closeCurrent:y}=P();R();const r=t({}),l=T(),g=t(""),b=t([{key:"type",col:2,label:"\u7C7B\u578B "},{key:"name",col:2,label:"\u540D\u79F0"},{key:"dictTypeSign",col:2,label:"\u5B57\u5178\u6807\u8BC6"},{key:"status",col:2,label:"\u72B6\u6001"},{key:"creatorOrganUnitType",col:2,label:"\u521B\u5EFA\u4EBA"}]),v=t({1:d,2:p,3:f}),x=async m=>{let e=await I(m);if(e.code!==0){A.error(e.msg);return}e.data,r.value={...e.data}};M(()=>{l.query.id&&(g.value=l.query.id,r.value.id=l.query.id,x(l.query.id))});const B=()=>{y()};return(m,e)=>{const k=o("PaCol"),C=o("PaRow"),F=o("el-button"),E=o("el-form-item"),w=o("el-form"),D=o("HZPageLayout");return c(),_(D,{isBack:!0,title:u(l).meta.title},{default:a(()=>[s(w,{model:u(r),ref:"ruleFormRef","label-width":"170px"},{default:a(()=>[N(' <div class="divider mt16 mb28">\u57FA\u672C\u4FE1\u606F</div> '),s(C,null,{default:a(()=>[(c(!0),h(S,null,H(u(b),(n,L)=>(c(),_(k,O({key:L},{ref_for:!0},u(v)[n.col]),{default:a(()=>[s(V,{label:n.label,value:u(r)[n.key],type:n.type,enum:n.enum},null,8,["label","value","type","enum"])]),_:2},1040))),128))]),_:1}),s(E,null,{default:a(()=>[Z("div",J,[s(F,{onClick:B},{default:a(()=>e[0]||(e[0]=[z("\u8FD4\u56DE",-1)])),_:1,__:[0]})])]),_:1})]),_:1},8,["model"])]),_:1},8,["title"])}}});const ee=q(U,[["__scopeId","data-v-d65430a8"]]);export{ee as default};
