import{x as a,w as i,j as e,B as r,a as m}from"./index-BT6xGZJ2.js";import{A as l}from"./index-CBZATGQG.js";import{f as p}from"./utils-D2B0dIuM.js";import{T as c}from"./index-BLVx9eCn.js";import"./index-GyOG3fhK.js";import"./Table-DToc2eAE.js";import"./addEventListener-keZ10fsH.js";import"./index-B8dMEHii.js";import"./index-DhrsRx8L.js";import"./index-DbUQ2vkP.js";import"./index-ZwQ_cfLa.js";import"./index-CZyOcRSJ.js";import"./index-B10G697B.js";import"./index-Bw31C-LM.js";import"./index-ThqNjMmR.js";import"./index-BtaRUSBQ.js";import"./index-3P32b7zB.js";import"./index-B0T9HVny.js";const w=()=>{const[t,s]=a.useMessage(),{project:n}=i(),o=async()=>{await m.post(`/fast-api/add-sample-analysis?project=${n}`),a.success("导入成功!")};return e.jsxs(e.Fragment,{children:[s,e.jsx(c,{items:[{key:"ngs-sample-qc",label:"NGS样本质控",children:e.jsx(e.Fragment,{children:e.jsx(l,{cardExtra:e.jsx(r,{onClick:o,children:"从样本导入"}),analysisMethod:[{name:"fastp_clean_reads",label:"fastp_clean_reads",inputKey:["fastp_clean_reads"],mode:"multiple"}],analysisPipline:"ngs-sample-qc",inputAnalysisMethod:[{name:"reads",label:"reads",inputKey:["V1_meta_genome_NGS_DNA","V1_single_genome_NGS_DNA"],mode:"multiple",type:"GroupSelectSampleButton",groupField:"sample_group",rules:[{required:!0,message:"该字段不能为空!"}]}],analysisType:"sample",children:e.jsx(d,{})})})}]}),e.jsx("p",{})]})},d=({plot:t,record:s})=>e.jsx(e.Fragment,{children:s&&e.jsx(e.Fragment,{children:e.jsxs(r,{onClick:()=>{t({url:p(s.content.html),tableDesc:""})},children:["查看报告(",s.sample_name,")"]})})});export{w as default};
