You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

2 lines
2.4 KiB
JavaScript

This file contains ambiguous Unicode characters!

This file contains ambiguous Unicode characters that may be confused with others in your current locale. If your use case is intentional and legitimate, you can safely ignore this warning. Use the Escape button to highlight these characters.

import{d as I,ap as K,f as l,o as V,_ as d,a8 as D,a9 as m,k as _,u as c,a0 as e,$ as F,a1 as i,F as B,ac as N,G as f}from"./vue-aEZWZQSa.js";import{P as E}from"./index-DUrcXr1R.js";import{u as A,a as G}from"./entry/index-CruxN-Hs-1723019140439.js";import{e as S}from"./index-D2Y7w90i.js";import{N as P}from"./antd-BY-1PcYE.js";import"./useContentViewHeight-DllDxCXH.js";import"./useWindowSizeFn--jCT5E3A.js";import"./onMountedOrActivated-BIJ0U1R1.js";const J={class:"pt-4 m-4 desc-wrap"},M={class:"m-4"},O=["src"],W=["src"],j=e("div",{class:"mt-5 mb-5 font-medium -enter-x"},"模型版本20240629_180446",-1),z={class:"mt-5 mb-5 font-medium -enter-x"},H=["href"],L={class:"mt-5 mb-5 font-medium -enter-x"},Q=["href"],X={class:"mt-5 mb-5 font-medium -enter-x"},Y=["href"],s="http://1.14.108.22:5050/static",ce=I({name:"EnquiryRecordDetail",__name:"EnquiryRecordDetail",setup(Z){var h;const R=P,v=P.TabPane,T=A(),q=K(),u=l((h=q.params)==null?void 0:h.id),r=l("detail"),{setTitle:w}=G(),t=l(),p=l("");w("详情:数据处理"+u.value);function C(){T("/process/enquiryRecord")}return V(()=>{S(Number(u.value)).then(a=>{if(t.value=a,a.content)try{const o=JSON.parse(a.content);p.value=o.classification_result.wrong_percentage}catch(o){}}).catch(a=>{})}),(a,o)=>(d(),D(c(E),{title:"数据处理:"+u.value,contentBackground:"",onBack:C},{footer:m(()=>[_(c(R),{"default-active-key":"detail",activeKey:r.value,"onUpdate:activeKey":o[0]||(o[0]=n=>r.value=n)},{default:m(()=>[_(c(v),{key:"detail",tab:"训练结果"}),_(c(v),{key:"logs",tab:"模型文件"})]),_:1},8,["activeKey"])]),default:m(()=>{var n,g,y,b,k,$,x,U;return[e("div",J,[r.value=="detail"?(d(),F(B,{key:0},[e("div",M,[e("h2",null,'"错误率 (wrong_percentage)": '+i(p.value),1)]),e("div",null,[e("img",{src:`${s}${(n=t.value)==null?void 0:n.trainProcessImgUrl}`},null,8,O),e("img",{src:`${s}${(g=t.value)==null?void 0:g.evaluateResultImgUrl}`},null,8,W)])],64)):N("",!0),r.value=="logs"?(d(),F(B,{key:1},[j,e("div",z,[f("模型文件:"),e("a",{href:`${s}${(y=t.value)==null?void 0:y.modelFileUrl}`},i((b=t.value)==null?void 0:b.modelFileUrl),9,H)]),e("div",L,[f("数据文件:"),e("a",{href:`${s}${(k=t.value)==null?void 0:k.dataFileUrl}`},i(($=t.value)==null?void 0:$.dataFileUrl),9,Q)]),e("div",X,[f("训练日志:"),e("a",{href:`${s}${(x=t.value)==null?void 0:x.logFileUrl}`},i((U=t.value)==null?void 0:U.logFileUrl),9,Y)])],64)):N("",!0)])]}),_:1},8,["title"]))}});export{ce as default};