index-613fb5d1.js 2.6 KB

1
  1. import{_ as k}from"./index.vue_vue_type_script_setup_true_lang-eaf67dde.js";import b from"./index-d6d3aac4.js";import x from"./index-25f7cf9b.js";import{d as h,aj as B,f as r,Y as a,Z as o,_,l as i,u as n,a7 as d,F as g,a8 as T,a6 as L,a0 as C,a9 as m}from"./vue-8fccce23.js";import{P as K}from"./ImportModal.vue_vue_type_style_index_0_scoped_375ed303_lang-e4747dd7.js";import"./index-b6d25274.js";import"./index-1a7dcfc1.js";import{b1 as P,a4 as N}from"./antd-49db3de3.js";import{_ as V}from"./index.js";import"./DescCard-483c4dec.js";/* empty css */import"./otherApi-20a1f625.js";import"./componentMap-f3325263.js";import"./FormItem.vue_vue_type_script_lang-6bf2d5cb.js";import"./useFormItem-73ca0ac9.js";import"./uuid-31b8b5a4.js";import"./useSortable-7338e303.js";import"./download-fac9a150.js";import"./index-25070af3.js";import"./copyTextToClipboard-e5179ded.js";import"./index-52147ed8.js";import"./TextEditor-621cb2fc.js";import"./onMountedOrActivated-cb072c10.js";import"./useForm-2d0613b7.js";import"./useTable-62b21a49.js";import"./useForm-d6319719.js";import"./componentMap-584a36c5.js";import"./useWindowSizeFn-e2b93e2a.js";import"./sortable.esm-4ae27e0b.js";import"./maintenanceFormModal-7ca7549a.js";import"./data-89d0ba4e.js";import"./maintenanceApi-77f76292.js";import"./upkeepFormModal-4db37edd.js";import"./otherUpkeepApi-bb1609e0.js";const v=[{key:"deviceBasic",value:0,title:"设备信息"},{key:"maintenanceList",value:1,title:"维修记录"},{key:"upkeepList",value:2,title:"保养记录"}],q=v[0].key,w={class:"m-4"},F={class:"mb-4"},I={class:"py-2 bg-white"},U={key:0},$={key:1},j={key:2},z=h({__name:"index",setup(A){var l,p;const s=B();console.log("🚀 ~ file: index.vue:25 ~ route:",s);const t=r({id:String((l=s.query)==null?void 0:l.id),name:(p=s.query)==null?void 0:p.name}),c=r(q),f=r(v),y=`设备详情 — ${t.value.name}`;return(D,u)=>(a(),o("div",w,[_("div",F,[i(n(K),{title:y})]),_("div",I,[i(n(N),{activeKey:c.value,"onUpdate:activeKey":u[0]||(u[0]=e=>c.value=e),destroyInactiveTabPane:!0},{default:d(()=>[(a(!0),o(g,null,T(f.value,e=>(a(),L(n(P),{key:e.key,tab:e.title,class:C("tab-"+e.key)},{default:d(()=>[e.value==0&&t.value.id?(a(),o("div",U,[i(k,{info:t.value},null,8,["info"])])):m("",!0),e.value==1&&t.value.id?(a(),o("div",$,[i(b,{info:t.value},null,8,["info"])])):m("",!0),e.value==2&&t.value.id?(a(),o("div",j,[i(x,{info:t.value},null,8,["info"])])):m("",!0)]),_:2},1032,["tab","class"]))),128))]),_:1},8,["activeKey"])])]))}});const he=V(z,[["__scopeId","data-v-c394c0e2"]]);export{he as default};