import{u as B}from"./index.682aee78.js";import{_ as I,e as i,D as N,o as n,l as u,w as s,F as q,h as d,f as a,c as _,G as h,H as b,p as F,z as v,m as M,v as z}from"./index.82404a61.js";const J={class:"file-list"},U=["title","onClick"],j={__name:"mark",setup(E,{expose:g}){const{proxy:k}=z(),{treeData:S,loading:x,tableData:w,setMergeData:y,handlePreview:R}=B(k),C=t=>{!t||(f(t,"0"),m(t),computedScore(t),y(t),S.value=t)},f=(t,o)=>{for(const e of t){switch(e.level=o,e.fileSaveRequestList||(e.fileSaveRequestList=[]),o){case"0":e.sort=e.evaluationTypeRank;break;case"1":e.sort=e.evaluationContentRank;break;case"2":e.sort=e.evaluationRuleRank,e.operateInfo=JSON.parse(e.operateJson);break}e.children&&f(e.children,o*1+1+"")}},m=t=>{t.sort((o,e)=>e.sort-o.sort);for(const o of t)o.children&&m(o.children)},D=({row:t,column:o,rowIndex:e,columnIndex:c})=>{if([0,1,9].includes(c))return{rowspan:t.length1-e===t.sum1?t.sum1:0,colspan:1};if([2,3,8].includes(c))return{rowspan:t.length2-e===t.sum2?t.sum2:0,colspan:1}};return g({getDetail:C}),(t,o)=>{const e=i("el-table-column"),c=i("el-radio"),p=i("el-radio-group"),V=i("el-table"),L=i("el-card"),T=N("loading");return n(),u(L,{class:"box-card"},{default:s(()=>[q((n(),u(V,{data:d(w),"element-loading-text":"\u6570\u636E\u52A0\u8F7D\u4E2D...","span-method":D,border:!0,"max-height":"400px"},{default:s(()=>[a(e,{label:"\u8BC4\u4EF7\u7C7B\u578B",prop:"evaluationType",width:"100"}),a(e,{label:"\u7C7B\u578B\u5206\u503C",prop:"evaluationTypeScore",width:"60"}),a(e,{label:"\u8BC4\u4EF7\u5185\u5BB9",prop:"evaluationContent",width:"100"}),a(e,{label:"\u5206\u9879\u5206\u503C",prop:"evaluationContentScore",width:"60"}),a(e,{label:"\u8BC4\u4EF7\u89C4\u5219",prop:"evaluationRule"}),a(e,{label:"\u7EC6\u9879\u5206\u503C",prop:"evaluationRuleScore",width:"60"}),a(e,{label:"\u8BC4\u4F30\u7ED3\u679C",prop:"operateList",width:"180"},{default:s(({row:r})=>[a(p,{modelValue:r.operateInfo.status,"onUpdate:modelValue":l=>r.operateInfo.status=l,disabled:!0},{default:s(()=>[(n(!0),_(h,null,b(r.operateInfo.list,l=>(n(),u(c,{label:l.value,key:l.value},{default:s(()=>[F(v(l.label),1)]),_:2},1032,["label"]))),128))]),_:2},1032,["modelValue","onUpdate:modelValue"])]),_:1}),a(e,{label:"\u7EC6\u9879\u5F97\u5206",prop:"fineScore",fixed:"right",width:"60"}),a(e,{label:"\u5206\u9879\u5F97\u5206",prop:"itemizedScore",fixed:"right",width:"60"}),a(e,{label:"\u7C7B\u578B\u5F97\u5206",prop:"typeScore",fixed:"right",width:"60"}),a(e,{label:"\u4F50\u8BC1\u6750\u6599",align:"center",fixed:"right",width:"200"},{default:s(({row:r})=>[M("div",J,[(n(!0),_(h,null,b(r.fileSaveRequestList,l=>(n(),_("span",{class:"ellipsis",title:l.name,onClick:G=>d(R)(l)},v(l.name),9,U))),256))])]),_:1})]),_:1},8,["data"])),[[T,d(x)]])]),_:1})}}},P=I(j,[["__scopeId","data-v-a09b2346"]]);export{P as default};