build(frontend): 更新数据处理详情构建

This commit is contained in:
caoxiaozhu
2026-07-24 16:31:38 +08:00
parent b2c570f607
commit e6a5a36bc0
132 changed files with 142 additions and 141 deletions

View File

@@ -0,0 +1 @@
import{E as z}from"./index-fou6gWp2.js";import{E}from"./el-tag-vRn4tGbY.js";import{E as T}from"./el-table-iL3MK2jJ.js";import{d as L,G as A,e as k,w as e,y as f,j as V,o as y,q as r,s as l,x as s,g as $,aa as p,f as b,aY as B,aZ as N,n as w,v as P,A as S}from"./index-DFFSWMIQ.js";import"./el-checkbox-D1w1-KT0.js";import{D as M}from"./DataTablePage-Dh3ruSQJ.js";import{g as R,d as G,a as I}from"./dataset-C1WfEXHW.js";import{_ as Y}from"./_plugin-vue_export-helper-DlAUqK2U.js";import"./el-scrollbar-DnriQ_Hb.js";import"./index-N7_DaQJo.js";import"./el-popper-6k5HVep-.js";import"./index-DyW30n0U.js";import"./_baseClone-BNE8zOd0.js";import"./_baseIteratee-BZMlnFwo.js";import"./castArray-DQVag4N8.js";import"./debounce-DZ4Wx3jt.js";import"./toNumber-BM1gvn-G.js";import"./raf-DrT9yTBr.js";import"./omit-DhpC2Pb_.js";import"./index-vO_1gr94.js";import"./index-BiOht4xG.js";import"./el-card-Qmbndz6K.js";import"./el-pagination-DGmmkvDW.js";import"./el-select-Da0omZ_1.js";import"./vnode-S7qfgrnP.js";import"./index-BjL9k8HY.js";import"./scroll-DUsvf12G.js";import"./clamp-B_k3W3zt.js";import"./directive-C9BBlUJO.js";import"./index-ByiAFJCL.js";import"./validator-BhE1El4W.js";import"./index-CR88pGZG.js";import"./index-DOv01EoT.js";import"./el-tooltip-l0sNRNKZ.js";const j={class:"capsule-tabs"},q={class:"action-buttons"},O=L({__name:"DatasetListView",setup(U){const C=P(),m=f(!1),c=f([]),n=f("upload"),D=V(()=>n.value==="task"?c.value.filter(i=>i.source==="task"):c.value.filter(i=>i.source!=="task"));async function u(){m.value=!0;try{c.value=await R()||[]}catch{}finally{m.value=!1}}async function _(i){await G(i.id),c.value=c.value.filter(a=>a.id!==i.id),await u(),S.success("删除成功")}function h(i){C.push(`/dataset/${i.id}/preview`)}function x(i){window.open(I(i.id),"_blank")}return A(u),(i,a)=>{const o=T,v=E,d=z;return y(),k(M,{title:"数据集管理",data:D.value,loading:m.value,searchable:"","search-fields":["name","description"],"create-text":n.value==="upload"?"上传数据集":"","create-to":"/dataset/create","delete-fn":_,"row-key":"id",onRefresh:u},{title:e(()=>[r("div",j,[r("button",{class:w(["capsule-tab-item",{active:n.value==="upload"}]),onClick:a[0]||(a[0]=t=>n.value="upload")}," 上传任务 ",2),r("button",{class:w(["capsule-tab-item",{active:n.value==="task"}]),onClick:a[1]||(a[1]=t=>n.value="task")}," 数据任务 ",2)])]),columns:e(()=>[n.value==="task"?(y(),k(o,{key:0,label:"任务ID",prop:"task_id",align:"center",width:"100"})):$("",!0),l(o,{label:"数据集名称",prop:"name",align:"center"}),l(o,{label:"数据类型",align:"center",width:"110"},{default:e(({row:t})=>[l(v,{type:"primary",size:"small"},{default:e(()=>[s(p(b(B)[String(t.type).toLowerCase()]||t.type||"-"),1)]),_:2},1024)]),_:1}),l(o,{label:"存储位置",align:"center",width:"110"},{default:e(({row:t})=>[l(v,{type:"success",size:"small"},{default:e(()=>[s(p(b(N)[t.storage_type]||t.storage_type||"-"),1)]),_:2},1024)]),_:1}),l(o,{label:"大小",align:"center",width:"100"},{default:e(({row:t})=>[s(p(t.size&&t.size!=="0 B"&&t.size!=="0"?t.size:"-"),1)]),_:1}),l(o,{label:"数据条数",align:"center",width:"100"},{default:e(({row:t})=>[s(p(t.count||0),1)]),_:1}),l(o,{label:"描述",align:"center","show-overflow-tooltip":""},{default:e(({row:t})=>[s(p(t.description||"-"),1)]),_:1}),l(o,{label:"创建时间",align:"center",width:"180"},{default:e(({row:t})=>[s(p(t.create_time?new Date(t.create_time).toLocaleString("zh-CN"):"-"),1)]),_:1})]),actions:e(({row:t})=>[r("div",q,[l(d,{type:"primary",link:"",size:"small",onClick:g=>h(t)},{default:e(()=>[...a[2]||(a[2]=[r("i",{class:"fa fa-eye",style:{"margin-right":"4px"}},null,-1),s("详情 ",-1)])]),_:1},8,["onClick"]),l(d,{type:"success",link:"",size:"small",onClick:g=>x(t)},{default:e(()=>[...a[3]||(a[3]=[r("i",{class:"fa fa-download",style:{"margin-right":"4px"}},null,-1),s("下载 ",-1)])]),_:1},8,["onClick"]),l(d,{type:"danger",link:"",size:"small",onClick:g=>_(t)},{default:e(()=>[...a[4]||(a[4]=[r("i",{class:"fa fa-trash-o",style:{"margin-right":"4px"}},null,-1),s("删除 ",-1)])]),_:1},8,["onClick"])])]),_:1},8,["data","loading","create-text"])}}}),zt=Y(O,[["__scopeId","data-v-9179f18b"]]);export{zt as default};