import{g as P}from"./athleteLevelListApi-8c8aa422-1782729249161v=1.0.0.js";import{y as R,c as $,z as e,A as t,B as s,P as a,E as F,r as y,m as H,al as f,I as O,J as b,Q as C,a4 as m,u as k,M as i,R as D,O as J,k as U}from"./vendor-1e24e3ad-1782729249161v=1.0.0.js";import{_ as w,u as Q,a as q}from"./index-b309bf9f-1782729249161v=1.0.0.js";import"./eleVendor-5008d1ec-1782729249161v=1.0.0.js";const I={class:"tag-text"},K=R({__name:"index",props:{text:{type:String,default:"\u5BA1\u6838\u4E2D"},bgColor:{type:String,default:"#409eff"},textColor:{type:String,default:"#fff"},size:{type:[Number,String],default:60}},setup(v){const c=v,r=$(()=>({"--bg-color":c.bgColor,"--text-color":c.textColor,"--tag-size":`${c.size}px`}));return(u,T)=>(e(),t("div",{class:"status-tag",style:F(r.value)},[s("span",I,a(v.text),1)],4))}});const W=w(K,[["__scopeId","data-v-22af88f9"]]),X={class:"listBox"},Y={class:"time"},Z={class:"oprtype"},ee={class:"content"},te={class:"header"},ae={class:"title"},oe={key:0,class:"type"},se={key:0},re={key:1},ne=R({name:"blackListIndex"}),le=R({...ne,setup(v,{expose:c}){Q(),q(),y({});const r=y(!1);y(null);const u=y([{time:"2023-08-01 10:00:00",tag:"\u53D8\u66F4\u7C7B\u578B",status:"success",gradeChangeRecordListRespVOList:[{title:"\u5168\u56FD\u5927\u5B66\u751F\u7ADE\u6807\u8D5B",type:"\u56FD\u9645\u8D5B\u4E8B",value:"\u53D8\u66F4\u540E\u503C1",oprType:"add",fields:{gradeDetermGradeDictName:"\u7530\u5F84",teamMemberTypeCn:"\u7537\u961F",gradeRecordIdentityCn:"\u4EE3\u8868",campusCn:"\u6821\u533A1",gradeTypeCn:"\u6210\u7EE9\u7C7B\u578B1",grade:"100\u5206"}},{title:"\u5168\u56FD\u5927\u5B66\u751F\u7ADE\u6807\u8D5B",type:"\u56FD\u9645\u8D5B\u4E8B",value:"\u53D8\u66F4\u540E\u503C1",oprType:"edit",changeContent:"\u6210\u7EE9\u4ECE100\u5206\u53D8\u66F4\u4E3A120\u5206",fields:{}}]}]),T=[{label:"\u8FD0\u52A8\u9879\u76EE",key:"dictName"},{label:"\u961F\u5458\u8981\u6C42",key:"teamMemberTypeCn"},{label:"\u4EE3\u8868\u8EAB\u4EFD",key:"gradeRecordIdentityCn"},{label:"\u6240\u5728\u6821\u533A",key:"campusCn"},{label:"\u6210\u7EE9\u7C7B\u578B",key:"gradeDemandTypeCn"},{label:"\u6210\u7EE9",key:"grade"}],B={approved:{bgColor:"#67c23a",textColor:"#fff"},pending:{bgColor:"#ff9d05",textColor:"#fff"},rejected:{bgColor:"#f56c6c",textColor:"#fff"}},E={update:"\u8D5B\u4E8B\u6210\u7EE9\u4FEE\u6539",add:"\u8D5B\u4E8B\u6210\u7EE9\u65B0\u589E",delete:"\u8D5B\u4E8B\u6210\u7EE9\u5220\u9664"},M=async p=>{r.value=!0,await z(p)},z=async p=>{const n=await P({gradeDetermId:p});n.code===0&&(n.data.forEach(h=>{h.gradeChangeRecordListRespVOList.forEach(_=>{_.changeContent=JSON.parse(_.changeContent||"[]")})}),u.value=n.data||[])};return H(async()=>{}),c({open:M}),(p,n)=>{const h=f("el-col"),_=f("el-row"),j=f("el-empty"),A=f("el-dialog");return e(),O(A,{width:"60%",title:"\u53D8\u66F4\u8BB0\u5F55",modelValue:k(r),"onUpdate:modelValue":n[0]||(n[0]=g=>U(r)?r.value=g:null)},{default:b(()=>{var g;return[s("div",X,[(e(!0),t(C,null,m(k(u),l=>{var V,S;return e(),t("div",{class:"listItem",key:l.time},[s("div",Y,a(l.gradeDetermGradeBatchTime),1),i(' <div class="tag" :class="[item.gradeDetermGradeBatchStatus]">{{ item.gradeDetermGradeBatchStatusCn }}</div> '),D(W,{text:l.gradeDetermGradeBatchStatusCn,bgColor:((V=B[l.gradeDetermGradeBatchStatus])==null?void 0:V.bgColor)||"",textColor:((S=B[l.gradeDetermGradeBatchStatus])==null?void 0:S.textColor)||""},null,8,["text","bgColor","textColor"]),(e(!0),t(C,null,m(l.gradeChangeRecordListRespVOList,(o,G)=>{var N,L;return e(),t("div",{class:"operationItem",key:G},[s("div",Z,a(G+1)+"\u3001"+a(E[o.gradeChangeRecordType]),1),s("div",ee,[s("div",te,[s("div",ae,a(o.eventName),1),(N=o.changeDataObject)!=null&&N.eventTypeCn?(e(),t("div",oe,a((L=o.changeDataObject)==null?void 0:L.eventTypeCn),1)):i("v-if",!0)]),o.gradeChangeRecordType==="update"?(e(),t("div",se,[(e(!0),t(C,null,m(o.changeContent,(d,x)=>(e(),t("div",{style:{"margin-bottom":"10px"},key:x+"UPDATE"},a(d.fieldValue)+"\uFF1A"+a(d.oldValue||"-")+"\u4FEE\u6539\u4E3A"+a(d.newValue||"-"),1))),128))])):i("v-if",!0),o.gradeChangeRecordType==="add"?(e(),t("div",re,[D(_,null,{default:b(()=>[(e(),t(C,null,m(T,(d,x)=>D(h,{style:{"margin-bottom":"10px"},span:12,key:x},{default:b(()=>[J(a(d.label)+"\uFF1A"+a(o.changeDataObject[d.key]),1)]),_:2},1024)),64))]),_:2},1024)])):i("v-if",!0)])])}),128))])}),128)),(g=k(u))!=null&&g.length?i("v-if",!0):(e(),O(j,{key:0,description:"\u6682\u65E0\u53D8\u66F4\u8BB0\u5F55"}))])]}),_:1},8,["modelValue"])}}});const pe=w(le,[["__scopeId","data-v-56a76ba8"]]);export{pe as default};
