import{u as Q}from"./useScoreBook-db29ce49-1782729249161v=1.0.0.js";import{e as j}from"./scoreApi-3180feaf-1782729249161v=1.0.0.js";import{u as K,a as W,_ as X}from"./index-b309bf9f-1782729249161v=1.0.0.js";import{y as x,r as s,m as Y,al as l,z as d,I as ee,J as u,M as _,R as t,u as o,k as oe,B as a,O as B,P as C,A as c,Q as k,a4 as V}from"./vendor-1e24e3ad-1782729249161v=1.0.0.js";import"./eleVendor-5008d1ec-1782729249161v=1.0.0.js";const ue={class:"generateText"},te={class:"groupName"},le={class:"groupList"},ae={class:"tableName"},ne={class:"dialog-footer"},se=x({name:"numberIndex"}),de=x({...se,setup(re){const D=K(),A=W(),p=s(!1),{tableColumns:N,columns:ie,dataCallBack:me,paramCallBack:ce,awardTabColumns:P}=Q(),F=s([]),S=async()=>{p.value=!0;const m=await j({eventId:sessionStorage.getItem("eventId")});m.code===0&&(F.value=m.data||[]),p.value=!1,v.value=F.value.length>0},f=s({isPublicity:0}),R=s({isPublicity:[{required:!0,message:"\u8BF7\u9009\u62E9\u516C\u5F0F\u8BBE\u7F6E",trigger:"change"}]}),I=()=>{};s([]);const v=s(!1),r=s(!1),i=s({name:""}),w=()=>{},L=()=>{D.push({name:"numberMgmtAdd",query:{eventId:sessionStorage.getItem("eventId")}})},T=m=>{i.value=JSON.parse(JSON.stringify(m)),r.value=!0};return Y(async()=>{S()}),(m,e)=>{const G=l("DocumentAdd"),H=l("el-icon"),y=l("el-radio"),O=l("el-radio-group"),E=l("el-form-item"),b=l("el-form"),Z=l("el-link"),J=l("HZProTable"),M=l("el-input"),U=l("el-button"),q=l("el-dialog"),z=l("HZPageLayout");return d(),ee(z,{title:o(A).meta.title},{dialog:u(()=>[_(" \u7F16\u53F7\u7F16\u8F91\u5F39\u7A97 "),t(q,{modelValue:o(r),"onUpdate:modelValue":e[3]||(e[3]=n=>oe(r)?r.value=n:null),title:"\u7F16\u53F7\u7F16\u8F91",onClose:w,width:"60%"},{footer:u(()=>[a("div",ne,[t(U,{onClick:e[2]||(e[2]=n=>r.value=!1)},{default:u(()=>e[8]||(e[8]=[B("\u53D6\u6D88",-1)])),_:1,__:[8]})])]),default:u(()=>[t(b,{model:o(i)},{default:u(()=>[t(E,{label:"\u59D3\u540D"},{default:u(()=>[B(C(o(i).tsName),1)]),_:1}),t(E,{label:"\u7F16\u53F7",prop:"eventNo"},{default:u(()=>[t(M,{modelValue:o(i).eventNo,"onUpdate:modelValue":e[1]||(e[1]=n=>o(i).eventNo=n),placeholder:"\u8BF7\u8F93\u5165\u7F16\u53F7"},null,8,["modelValue"])]),_:1})]),_:1},8,["model"])]),_:1},8,["modelValue"])]),default:u(()=>[o(v)?_("v-if",!0):(d(),c("div",{key:0,class:"generateCode",onClick:L},[a("div",ue,[t(H,{size:"80"},{default:u(()=>[t(G)]),_:1}),e[4]||(e[4]=a("div",null,"\u751F\u6210\u7F16\u53F7",-1))])])),t(b,{model:o(f),rules:o(R)},{default:u(()=>[t(E,{label:"\u516C\u5F0F\u8BBE\u7F6E",prop:"isPublicity"},{default:u(()=>[t(O,{modelValue:o(f).isPublicity,"onUpdate:modelValue":e[0]||(e[0]=n=>o(f).isPublicity=n),onChange:I},{default:u(()=>[t(y,{label:"\u6682\u4E0D\u516C\u793A",value:0}),t(y,{label:"\u516C\u793A",value:1})]),_:1},8,["modelValue"]),e[5]||(e[5]=a("span",{class:"tip"},"(\u516C\u5F0F\u540E\u79FB\u52A8\u7AEF\u53EF\u4EE5\u67E5\u770B\u8BE5\u5185\u5BB9)",-1))]),_:1,__:[5]})]),_:1},8,["model","rules"]),e[9]||(e[9]=a("div",{class:"headerText"},[a("div",{class:"leftDes"},[a("div",{class:"title"},"\u6210\u7EE9\u518C"),a("div",{class:"des"},"\u8D5B\u4E8B\u6210\u7EE9\u518C\u7531\u6210\u7EE9\u53D1\u5E03\u540E\u81EA\u52A8\u751F\u6210\uFF0C\u5185\u5BB9\u6709\u8BEF\u53EF\u5728\u6210\u7EE9\u53D1\u5E03\u9875\u9762\u4FEE\u6539\uFF0C\u652F\u6301\u5BFC\u51FA\u540E\u5236\u4F5C\u518D\u5BFC\u5165\u3002")]),_(' <el-button type="primary" @click="handleAdd"> \u65B0\u589E </el-button> ')],-1)),o(v)?(d(!0),c(k,{key:1},V(o(F),(n,$)=>(d(),c("div",{key:n.name+"group",class:"groupBox"},[a("div",te,C(n.name),1),a("div",le,[(d(!0),c(k,null,V(n.eventGradeRecordListRespVOS,g=>(d(),c("div",{key:g.name+"table",class:"groupBox"},[a("div",ae,C(g.name),1),t(J,{columns:$===0?o(N):o(P),data:g.eventGradeRecordListRespVOS,isFlex:!1,loading:o(p),showColSet:!1},{tableHeader:u(()=>e[6]||(e[6]=[])),operation:u(h=>[t(Z,{type:"primary",onClick:_e=>T(h.row)},{default:u(()=>e[7]||(e[7]=[B(" \u7F16\u8F91 ",-1)])),_:2,__:[7]},1032,["onClick"])]),_:2},1032,["columns","data","loading"])]))),128))])]))),128)):_("v-if",!0)]),_:1,__:[9]},8,["title"])}}});const ge=X(de,[["__scopeId","data-v-710a8fc8"]]);export{ge as default};
