operation-95ceb37d.js 23 KB

1
  1. import{A as ot,q as dt,a8 as mt,j as pt,a9 as J,d as S,i as R,E as ft,w as C,aa as H,g as e,m as ht,p as bt,D as yt,O,h as f,B as v,f as I,X as F,o as B,I as _,Y as gt,R as rt,S as j,a2 as Q,P as E,ab as It,W as At,a as U,N as Lt}from"./index-1d4a9afa.js";import{b as Z,f as z}from"./constant-a400d214.js";import{M as Ct}from"./index-6f8b50f3.js";import{d as vt,R as X,a as W,i as jt,M as xt,b as kt}from"./deep-clone-8d414853.js";import{M as Y}from"./index-6b314488.js";import{v as $,c as St}from"./toolsValidate-2f258ec3.js";import{C as lt,a as nt}from"./index-fb5f172f.js";import{T as w}from"./index-7e17edc9.js";import{i as Dt,M as Et}from"./icon-check-364d0992.js";import{s as k}from"./index.module-422ac088.js";import{i as Ut}from"./icon-check-active-15efb9a0.js";import{i as Tt}from"./icon-student-default-4c78efb2.js";import{C as P}from"./index-a27d7671.js";import{I as Ot}from"./index-c272bcfa.js";import{T as Gt,a as _t}from"./index-22c9ea74.js";import{p as ut,P as ct}from"./index-6d1e9935.js";import{C as tt}from"./index-b8090118.js";import{F as L}from"./index-dbc03ded.js";const wt=ot({},ut,{modelValue:dt(),filter:Function,formatter:{type:Function,default:(a,m)=>m}}),Ft=Object.keys(ut);function Vt(a,m){if(a<0)return[];const t=Array(a);let r=-1;for(;++r<a;)t[r]=m(r);return t}const Nt=(a,m)=>32-new Date(a,m-1,32).getDate(),M=(a,m,t,r,h)=>{const c=Vt(m-a+1,n=>{const i=mt(a+n);return r(t,{text:i,value:i})});return h?h(t,c):c},Mt=(a,m)=>a.map((t,r)=>{const h=m[r];if(h.length){const c=+h[h.length-1].value;if(+t>c)return String(c)}return t}),et=new Date().getFullYear(),[Yt]=pt("date-picker"),Pt=ot({},wt,{columnsType:{type:Array,default:()=>["year","month","day"]},minDate:{type:Date,default:()=>new Date(et-10,0,1),validator:J},maxDate:{type:Date,default:()=>new Date(et+10,11,31),validator:J}});var Rt=S({name:Yt,props:Pt,emits:["confirm","cancel","change","update:modelValue"],setup(a,{emit:m,slots:t}){const r=R(a.modelValue),h=()=>{const o=a.minDate.getFullYear(),p=a.maxDate.getFullYear();return M(o,p,"year",a.formatter,a.filter)},c=o=>o===a.minDate.getFullYear(),n=o=>o===a.maxDate.getFullYear(),i=o=>o===a.minDate.getMonth()+1,y=o=>o===a.maxDate.getMonth()+1,A=o=>{const{minDate:p,columnsType:g}=a,b=g.indexOf(o),x=r.value[b];if(x)return+x;switch(o){case"year":return p.getFullYear();case"month":return p.getMonth()+1;case"day":return p.getDate()}},V=()=>{const o=A("year"),p=c(o)?a.minDate.getMonth()+1:1,g=n(o)?a.maxDate.getMonth()+1:12;return M(p,g,"month",a.formatter,a.filter)},N=()=>{const o=A("year"),p=A("month"),g=c(o)&&i(p)?a.minDate.getDate():1,b=n(o)&&y(p)?a.maxDate.getDate():Nt(o,p);return M(g,b,"day",a.formatter,a.filter)},G=ft(()=>a.columnsType.map(o=>{switch(o){case"year":return h();case"month":return V();case"day":return N();default:return[]}}));C(r,o=>{H(o,a.modelValue)||m("update:modelValue",o)}),C(()=>a.modelValue,o=>{o=Mt(o,G.value),H(o,r.value)||(r.value=o)},{immediate:!0});const s=(...o)=>m("change",...o),u=(...o)=>m("cancel",...o),l=(...o)=>m("confirm",...o);return()=>e(ct,ht({modelValue:r.value,"onUpdate:modelValue":o=>r.value=o,columns:G.value,onChange:s,onCancel:u,onConfirm:l},bt(a,Ft)),t)}});const Bt=yt(Rt),qt="_topCellGroup_ux4yv_1",Kt="_programType_ux4yv_15",Jt="_teamCell_ux4yv_21",Ht="_tagCell_ux4yv_24",Qt="_tagItem_ux4yv_27",Zt="_closeable_ux4yv_36",zt="_searchTypeFlex_ux4yv_41",Xt="_small_ux4yv_44",Wt="_multFlex_ux4yv_57",$t="_placeholder_ux4yv_116",te="_performance_ux4yv_120",ee="_iconImg_ux4yv_123",ae="_disabled_ux4yv_126",se="_topTitle_ux4yv_130",oe="_programTimer_ux4yv_136",re="_uploadGroup_ux4yv_156",le="_addButtonGroup_ux4yv_164",ne="_addButton_ux4yv_164",ue="_bottonGroup_ux4yv_173",ce="_popupContainer_ux4yv_178",ie="_popupTitle_ux4yv_178",de="_popupTimer_ux4yv_187",me="_tipContent_ux4yv_215",d={topCellGroup:qt,programType:Kt,teamCell:Jt,tagCell:Ht,tagItem:Qt,closeable:Zt,searchTypeFlex:zt,small:Xt,multFlex:Wt,placeholder:$t,performance:te,iconImg:ee,disabled:ae,topTitle:se,programTimer:oe,uploadGroup:re,addButtonGroup:le,addButton:ne,bottonGroup:ue,popupContainer:ce,popupTitle:ie,popupTimer:de,tipContent:me},pe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAMAAADW3miqAAABC1BMVEUAAAAs1q0kzLMEw7Ug0K9P5aUFw7Qm0q4w16tS5qUHxbMh0K822qtQ5aUGxLQj0a812asEwrUs1axT56RT6KRm/5kJxbMIxbM22as626pS5qVR5qUp1K0w1qxU56VR5KX///8TyrEt1awazLAXy7Aczq8h0K4n0q0Ox7Ij0a483Kkq1Kw/3agLxrMy16sw1qtC36c12apK4qYQyLFN5KUezq8526lQ5aVI4aZG4KYIxLNE4Kc32qq/8enC8+cFw7S88Oje+PJw4sdY37nz/Prx/Pri+vLZ9/KD6cZX3btH27XF8+mO6dFb2cv4/fz0/frt+/fH8+i18OCi7Npl38No4r5f374uz7o917RlR6n7AAAAIHRSTlMAUwVT8vLc3Nzc2NjY2KSkpIqKilEF8vLy8qSkiopVVS1PYU0AAAHNSURBVDjLhdPpdtowEAXgscm+N913IbYaiFMTCk4C1HYhUJLu6/s/SWeuKtuJIbn/rPOdsWYkEfLw9fPd1W4nDE/Pz9+22+1ms9cbPNk5cFxK82Cz3+92Ox0YRjBB4PvHG4419/swYdEca31oja1zWjSt1gv863bTaDi85807jLfu0isuxGZ2oQqJEzGe59AzFJqphUkY1ev7tIvGLhajuOEx2qZVNK+WRMy7FTKbtotfb5QUU6uRGbRd/NW8+pJHbASJydCHIJh/zyExlQqZAaVIBvR7miIxjMKQTYZ8RlrPJhbVGFUJpp0hM+hEmbCpVqsEkyFj/l5aVGFUJjY59FGMvhrbbxhGuIkp0lr/jFUaMYxw8jk0j1QuMCcE07OLox+fVT4wbwjGokJgGDUZDZajE0EwwTIEc0QwgRrJgMx1xcljQJGCOSI2g8BnBHLNlBmJOaOnbBh9E9O6bspDBfOYdsT48XiuC+bPZAq0RQd4PokaX44kw/+Jomg4UZ/EnO2RY55YEqtCpsa8L5G7wcb25eG24l9oHmbNJXL8nKnLTRSUGS7EeVlsPm/uEXKoYepLDeKsL6ojaK1EaVxnf3slM2WYR1t7JZck/wBFQ8Q7eodEFwAAAABJRU5ErkJggg==",fe="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAYAAADhAJiYAAAAAXNSR0IArs4c6QAAA1RJREFUWEftWEloFEEU/a/bGXVEPCSKCkL0GGQgVZ3ouB1dDnpQEUXcTipRUBG8KIh4UFD0oJKbRhE9qKAXl6NbNPSvCYNXYy4uaHIQcSFjz5eSisyWZCYzIsLUqbvq//df/a7+S4EqHG1tbSt831+Vy+WaPM9DJWq5XE48zxuKouhhOp1+XInOuMAtLS1Tmpubr4vI+koAR5MBcGdwcHDrwMDAj7FwxiWklOoCsLsWMnm6Xcy8d8KEksnkrFgs9o6IfAfyCsDzasiJyBIiWuh0omw2OzeTyXwc1ZNjgSulVgO472S+ZLPZOZlM5ms1hJLJ5LRYLPaeiKZbPRFZY4x5MCFCQRBsEJFbTvkNMy+ohsyIrNa6n4jm23cAG8MwvP1/EQqCoI2ISnYvIouJ6LDbzZCInJyIhwAcJaImp3sGwIsyOP1hGKahlNoE4Kb15kSM1VFHRGQztNaniOhIHYFrgTqN9vb2eVEUXQYw2oGdSkQzarGSp/uZiL6XwxKRft/3d/3rz1TCrRwhe666AawkouPM3FUn7/yG0Vrvsbgi8sgYs8OGpnz8EkJaa0VE7IQGmXlmMSGl1FrP8ya7eFIA2NraGk8kEpujKBool1C11p+IqNlhamY24xFaRkRPnNB3Zk7kKwRBsE1Errqoe9AYcz5/XSl1AUCn3XkURcv6+voKUo3W+hsR2XNpx3JmfloTIaXUOQAHHMhVZrZu/zOUUs8A2Pxl08Q+Y8zF/PW6EwqC4JyI/CYkIteMMduLPPhcRFJ2DsD+MAwvNAg1PFTkgcYZGi8ONTzU8FBNqUNrfZaIDjmQbmbeWRSJbW5a6uY6mfnSX43UNtMDuOtK3p3M3F1k8AQRHSOiYRFpN8Zk/iohC66USopIPJ1Oh/nGRp7tPYDneW+Z+XXxet2TazkC1cz9/4SUUosB9LhdZ+Px+Iyenp6yhXk1nrGyqVRq6vDwsC30Y658SRljCnq0khK2o6OjKYqiD0Q0yRm0h/IlgIJStVoyImJtLSKipNP96fv+7N7e3qExf3u7qLW+TEQFv3O1BCqQv8LMu4rlyrZBWuuEiNwAsK4C4KpFROQegC3MbOvrgjFmX6aUWm7bIRGZWek13mjs7PUegE+u/RlpIkrEfwGY7o8MvkyFlAAAAABJRU5ErkJggg==",he=S({name:"input-timer",props:{show:{type:Boolean,default:!1},time:{type:Number,default:null}},emits:["close","confirm"],setup(a,{emit:m}){const t=T(a.time);console.log(t,"timer");const r=O({minute:t.minute,second:t.secord||null}),h=n=>n&&n>=0?$(n):"",c=n=>{if(n&&n>=0){const i=$(n);return(Number(i)>=60?59:i)+""}else return""};return C(()=>a.show,()=>{if(!a.show){const n=T(a.time);r.minute=n.minute,r.second=n.secord}}),C(()=>a.time,()=>{const n=T(a.time);r.minute=n.minute,r.second=n.secord}),()=>e("div",{class:d.popupContainer},[e("h2",{class:d.popupTitle},[f("请输入节目时长")]),e("div",{class:d.popupContent},[e("div",{class:d.popupTimer},[e(L,{modelValue:r.minute,"onUpdate:modelValue":n=>r.minute=n,type:"tel",formatter:h,border:!1,maxlength:2,autocomplete:"off"},null),f("分"),e(L,{modelValue:r.second,"onUpdate:modelValue":n=>r.second=n,type:"tel",formatter:c,border:!1,maxlength:2,autocomplete:"off"},null),f("秒")])]),e("div",{class:["btnGroupPopup"]},[e(v,{round:!0,onClick:()=>m("close")},{default:()=>[f("取消")]}),e(v,{type:"primary",round:!0,onClick:()=>{if(!r.minute||!r.second){I("时长输入有误");return}if(r.minute*60+r.second<=0){I("时长输入必须大于0");return}m("confirm",r)}},{default:()=>[f("确定")]})])])}});function be(a){return typeof a=="function"||Object.prototype.toString.call(a)==="[object Object]"&&!F(a)}const ye=S({name:"performance-team",props:{show:{type:Boolean,default:!1},performances:{type:Array,default:()=>[]},selectIds:{type:Array,default:()=>[]}},emits:["close","confirm"],setup(a,{emit:m}){const t=R([]),r=O({performanceList:a.performances||[],checkboxs:a.selectIds||[]});return C(()=>a.performances,()=>{console.log(a.performances,"props.performances"),r.performanceList=a.performances}),C(()=>a.selectIds,()=>{r.checkboxs=a.selectIds}),C(()=>a.show,()=>{a.show||(r.checkboxs=a.selectIds)}),()=>{let h;return e("div",{class:d.popupContainer},[e("h2",{class:d.popupTitle},[f("选择表演团队")]),e(lt,{class:[d.searchTypeFlex,d.multFlex],modelValue:r.checkboxs,"onUpdate:modelValue":c=>r.checkboxs=c},be(h=r.performanceList.map((c,n)=>e(w,{type:r.checkboxs.includes(c.subjectId)?"primary":"default"},{default:()=>[e(nt,{name:c.subjectId,ref:i=>t.value[n]=i,onClick:i=>{i.stopPropagation()}},null),e("span",{class:"van-ellipsis"},[c.subjectName])]})))?h:{default:()=>[h]}),e("div",{class:["btnGroupPopup"]},[e(v,{round:!0,onClick:()=>m("close")},{default:()=>[f("取消")]}),e(v,{type:"primary",round:!0,onClick:()=>m("confirm",r.checkboxs)},{default:()=>[f("确定")]})])])}}});function ge(a){return typeof a=="function"||Object.prototype.toString.call(a)==="[object Object]"&&!F(a)}const Ie=S({name:"group-chat",props:{type:{type:String,default:"edit"},height:{type:[Number],default:0},bottomHeight:{type:[String,Number],default:0},headerHeight:{type:[Number],default:0},studentList:{type:Array,default:()=>[]},selectItem:{type:Array,default:()=>[]}},emits:["update:selectItem"],setup(a,{emit:m}){const t=R([]),r=O({height:a.height,check:[]}),h=n=>{if(a.type==="look")return;t.value[n].toggle();const i=[];a.studentList.forEach(y=>{r.check.includes(y.studentId)&&i.push({studentId:y.studentId,studentName:y.studentName,studentAvatar:y.studentAvatar,subjectId:y.subjectId})}),m("update:selectItem",i)};C(()=>a.height,()=>{r.height=a.height}),C(()=>a.selectItem,()=>{c()},{deep:!0});const c=()=>{const n=a.selectItem||[],i=[];n.forEach(y=>{i.push(y.studentId)}),r.check=i};return B(async()=>{c()}),()=>{let n;return e("div",{style:{"min-height":`calc(100vh - ${a.headerHeight}px - ${r.height}px - ${a.bottomHeight}px )`}},[e(lt,{modelValue:r.check,"onUpdate:modelValue":i=>r.check=i},ge(n=a.studentList.map((i,y)=>e(P,{center:!0,onClick:()=>h(y),class:k.popupCell},{icon:()=>e(Ot,{src:i.studentAvatar||Tt,class:k.imgLogo,fit:"cover"},null),title:()=>e("div",{class:k.infos},[e("div",{class:k.infoTitle},[i.studentName]),e("div",{class:k.infoContent},[i.subjectName])]),"right-icon":()=>a.type==="edit"&&e(nt,{name:i.studentId,ref:A=>t.value[y]=A,onClick:A=>{A.preventDefault(),A.stopPropagation(),h(y)}},{icon:A=>e(_,{class:k.boxStyle,name:A.checked?Ut:Dt},null)})})))?n:{default:()=>[n]})])}}});function Ae(a){return typeof a=="function"||Object.prototype.toString.call(a)==="[object Object]"&&!F(a)}const Le=S({name:"cast-modal",props:{type:{type:String,default:"edit"},subjectAllList:{type:Array,default:()=>[]},performerList:{type:Array,default:()=>[]}},emits:["close","update:performerList","confirm"],setup(a,{emit:m}){const t=()=>{const c=a.performerList||[];return a.subjectAllList.forEach(n=>{const i=c.find(y=>y.subjectId==n.subjectId);n.selectList=i?vt(i.studentList):[]}),console.log(a.subjectAllList,"props.subjectAllList"),a.subjectAllList||[]},r=O({varName:"--popup-navbar-height",popupHeight:0,height:0,bottomHeight:0,subjectList:t()});B(()=>{const{height:c}=gt(document.querySelector(".van-tab"));r.height=c}),C(()=>a.subjectAllList,()=>{r.subjectList=t()}),C(()=>a.performerList,()=>{r.subjectList=t()});const h=()=>{const c=[];r.subjectList.forEach(n=>{n.selectList&&n.selectList.length>0&&c.push({studentCount:n.selectList.length,studentList:n.selectList,subjectId:n.subjectId,subjectName:n.subjectName})}),console.log(c,"selectList"),m("close"),m("update:performerList",c),m("confirm",c)};return()=>{let c;return e("div",{class:k.castPopupContainer,style:"background-color: #f8f9fc; height: 100%"},[e(Y,{varName:r.varName,onBarHeight:n=>{r.popupHeight=n}},{default:()=>[e(rt,{title:"演员名单"},null)]}),e(Gt,{shrink:!0,sticky:!0,offsetTop:r.popupHeight},Ae(c=r.subjectList.map(n=>e(_t,{name:n.subjectId,title:n.subjectName+`(${n.studentCount})`},{default:()=>[e(Ie,{type:a.type,height:r.height,headerHeight:r.popupHeight,bottomHeight:r.bottomHeight,studentList:n.studentList,selectItem:n.selectList,"onUpdate:selectItem":i=>n.selectList=i},null)]})))?c:{default:()=>[c]}),a.type==="edit"&&e(Y,{position:"bottom",onBarHeight:n=>{r.bottomHeight=n}},{default:()=>[e("div",{class:"btnGroupFixed"},[e(v,{round:!0,block:!0,type:"primary",onClick:h},{default:()=>[f("确认")]})])]})])}}});function at(a){return typeof a=="function"||Object.prototype.toString.call(a)==="[object Object]"&&!F(a)}const st={id:null,name:"",type:"",musicGroupId:null,musicGroupName:null,subjectAllList:[],subjectIdList:[],time:null,performerList:[],attachmentUrl:[],attachmentVideoUrl:[],attachmentImgUrl:[]},T=a=>{if(a){const m=Math.floor(a/60),t=a%60;return{minute:m,secord:t}}else return{minute:null,secord:null}},Ce=S({name:"operation-page",setup(){const a=At(),m=Lt(),t=O({activityDetailId:a.query.id,timerStatus:!1,currentDate:[j().format("YYYY"),j().format("MM"),j().format("DD")],orchestraStatus:!1,orchestraColumns:[],programType:"",programTimerStatus:!1,deleteStatus:!1,teamStatus:!1,castStatus:!1,selectOrchestra:[],deleteIndex:0,startTime:j().format("YYYY-MM-DD"),name:"",type:"",detail:[{...st}]}),r=async()=>{try{const{data:s}=await U.get("/api-web/cooperationOrgan/musicGroupPage");(s||[]).forEach(u=>{t.orchestraColumns.push({text:u.name,value:u.id})})}catch(s){}},h=async()=>{try{const{data:s}=await U.post("/api-web/schoolActivity/userList",{data:{activityDetailId:t.activityDetailId,musicGroupId:t.selectOrchestra.musicGroupId,subjectIds:[]}}),u=s||[];t.selectOrchestra.subjectAllList=u,t.selectOrchestra.performerList=u,t.selectOrchestra.subjectIdList=[],u.forEach(l=>{t.selectOrchestra.subjectIdList.push(l.subjectId)})}catch(s){}},c=()=>{t.detail.push({...st})},n=s=>{t.detail.length<=1||(t.deleteIndex=s,t.deleteStatus=!0)},i=s=>{let u=0;return s.forEach(l=>{u+=l.studentCount}),u},y=s=>{var l,o;const u=[];(l=t.selectOrchestra.performerList)==null||l.forEach(p=>{s.includes(p.subjectId)&&u.push(p)}),(o=t.selectOrchestra.subjectAllList)==null||o.forEach(p=>{var b;const g=(b=t.selectOrchestra.performerList)==null?void 0:b.findIndex(x=>x.subjectId==p.subjectId);s.includes(p.subjectId)&&g<0&&u.push(p)}),t.selectOrchestra.performerList=u},A=s=>{const u=[];return s.map(l=>{let o=0;const p=[];l.studentList.forEach(g=>{g.selected&&(o++,p.push(g))}),o>0&&u.push({studentCount:p.length,subjectId:l.subjectId,subjectName:l.subjectName,studentList:p})}),u||[]},V=async()=>{try{const{data:s}=await U.get("/api-web/schoolActivity/detail/"+t.activityDetailId),{detail:u,name:l,startTime:o,type:p}=s||{};t.startTime=j(o).format("YYYY-MM-DD"),t.name=l,t.type=p,t.currentDate=[j(o).format("YYYY"),j(o).format("MM"),j(o).format("DD")];const g=[];u.forEach(b=>{const x=b.attachmentUrl?b.attachmentUrl.split(","):[],q=[],K=[];x.forEach(D=>{St(D,"image")?K.push(D):q.push(D)});const it={id:b.id,name:b.name,type:b.type,musicGroupId:b.musicGroupId,musicGroupName:b.musicGroupName,subjectAllList:b.studentList,subjectIdList:b.subjectIdList?b.subjectIdList.split(",").map(D=>Number(D)):[],time:b.time,performerList:A(b.studentList),attachmentUrl:x,attachmentVideoUrl:q,attachmentImgUrl:K};g.push(it)}),t.detail=g}catch(s){}};B(()=>{r(),t.activityDetailId&&V()});const N=()=>{if(!t.name.trim())return I("请填写活动名称"),!1;if(t.name.length<3||t.name.length>15)return I("活动名称长度3~15"),!1;if(!t.type)return I("请选择活动类别"),!1;for(let s=0,u=t.detail.length;s<u;s++){const l=t.detail[s];if(!l.name.trim())return I("节目名称不能为空"),!1;if(!l.type)return I("请选择节目类型"),!1;if(!l.musicGroupId)return I("请选择表演乐团"),!1;if(l.subjectIdList.length<=0)return I("请选择表演团队"),!1;if(i(l.performerList)<=0)return I("请选择演员"),!1;if(!l.time){I("请输入节目时长");return}}return!0},G=async()=>{try{if(!N())return;const s={id:t.activityDetailId||null,startTime:t.startTime,endTime:t.startTime+" 23:59:59",name:t.name.trim(),type:t.type,detail:[]},u=[];t.detail.forEach((l,o)=>{console.log(l),u.push({id:l.id||null,sort:o+1,name:l.name.trim(),type:l.type,musicGroupId:l.musicGroupId+"",subjectIdList:l.subjectIdList.join(","),studentNum:i(l.performerList),studentList:l.performerList,time:l.time,attachmentUrl:[...l.attachmentImgUrl,...l.attachmentVideoUrl].join(",")})}),s.detail=u,t.activityDetailId?await U.post("/api-web/schoolActivity/update",{hideLoading:!1,data:s}):await U.post("/api-web/schoolActivity/save",{hideLoading:!1,data:s}),m.back()}catch(s){}};return()=>e("div",{class:d.operation},[e(rt,{title:t.activityDetailId?"编辑活动":"新增活动"},null),e(tt,{inset:!0,class:d.topCellGroup},{default:()=>[e(L,{isLink:!0,label:"活动日期",inputAlign:"right",readonly:!0,clearable:!1,modelValue:t.startTime,"onUpdate:modelValue":s=>t.startTime=s,onClick:()=>t.timerStatus=!0,placeholder:"请选择活动日期"},null),e(L,{label:"活动名称",inputAlign:"right",placeholder:"请填写活动名称",maxlength:15,modelValue:t.name,"onUpdate:modelValue":s=>t.name=s,autocomplete:"off"},null),e(L,{label:"活动类别",labelAlign:"top"},{input:()=>{let s;return e(X,{class:d.searchTypeFlex,modelValue:t.type,"onUpdate:modelValue":u=>t.type=u},at(s=Object.keys(Z).map(u=>e(w,{type:t.type===u?"primary":"default",round:!0},{default:()=>[e(W,{name:u},null),Z[u]]})))?s:{default:()=>[s]})}})]}),t.detail.map((s,u)=>e(tt,{inset:!0,class:d.topCellGroup},{default:()=>[e(P,{center:!0},{icon:()=>e(_,{name:pe,class:d.iconImg},null),title:()=>e("div",{class:d.topTitle},[f("节目"),Q(u+1)]),value:()=>e(_,{name:fe,class:[d.iconImg,t.detail.length<=1?d.disabled:""],onClick:()=>n(u)},null)}),e(L,{label:"节目名称",inputAlign:"right",placeholder:"请填写节目名称",maxlength:10,modelValue:s.name,"onUpdate:modelValue":l=>s.name=l,autocomplete:"off"},null),e(L,{label:"节目类型",inputAlign:"right",placeholder:"请填写节目",class:d.programType},{input:()=>{let l;return e(X,{class:[d.searchTypeFlex,d.small],modelValue:s.type,"onUpdate:modelValue":o=>s.type=o},at(l=Object.keys(z).map(o=>e(w,{type:s.type===o?"primary":"default",round:!0},{default:()=>[e(W,{name:o},null),z[o]]})))?l:{default:()=>[l]})}}),e(L,{isLink:!0,label:"表演乐团",inputAlign:"right",readonly:!0,clearable:!1,modelValue:s.musicGroupName,"onUpdate:modelValue":l=>s.musicGroupName=l,onClick:()=>{if(t.orchestraColumns.length<=0){I("暂无乐团");return}t.orchestraStatus=!0,t.selectOrchestra=[],t.selectOrchestra=s},placeholder:"请选择表演乐团"},null),e(L,{isLink:!0,label:"表演团队",inputAlign:"right",readonly:!0,clearable:!1,onClick:()=>{if(!s.musicGroupId){I("请选择表演乐团");return}t.teamStatus=!0,t.selectOrchestra=[],t.selectOrchestra=s},placeholder:s.subjectIdList.length>0?"":"请选择表演乐团",border:s.subjectIdList.length<=0,class:s.subjectIdList.length>0?d.teamCell:""},null),s.subjectIdList.length>0&&e(P,{class:d.tagCell,center:!0},{title:()=>s.subjectIdList.map((l,o)=>{let p="";return s.subjectAllList.forEach(g=>{g.subjectId===l&&(p=g.subjectName)}),e(w,{type:"primary",plain:!0,class:d.tagItem,onClick:()=>{s.subjectIdList.splice(o,1),y(s.subjectIdList)}},{default:()=>[p,e(_,{name:"cross",class:d.closeable},null)]})})}),e(L,{isLink:!0,label:"演员",inputAlign:"right",readonly:!0,clearable:!1,onClick:()=>{if(s.subjectIdList.length<=0){I("请选择表演团队");return}t.selectOrchestra=[],t.selectOrchestra=s,t.castStatus=!0}},{input:()=>i(s.performerList)>0?e("div",{class:d.performance},[f("共 "),e("span",null,[i(s.performerList)]),f(" 名")]):e("div",{class:d.placeholder},[f("请选择演员")])}),e(L,{label:"节目时长",inputAlign:"right",onClick:()=>{t.selectOrchestra=[],t.selectOrchestra=s,t.programTimerStatus=!0},center:!0,placeholder:"请选择节目时长"},{input:()=>{const l=T(s.time);return e("div",{class:d.programTimer},[e("span",null,[l==null?void 0:l.minute]),f("分"),e("span",null,[l==null?void 0:l.secord]),f("秒")])}}),e(L,{label:"上传附件",labelAlign:"top"},{input:()=>e("div",{class:d.uploadGroup},[e(Ct,{uploadIcon:jt,maxCount:5,native:!0,modelValue:s.attachmentImgUrl,"onUpdate:modelValue":l=>s.attachmentImgUrl=l,style:{marginTop:"6px"}},{default:()=>[e(xt,{uploadIcon:kt,uploadType:"VIDEO",native:!0,uploadSize:50,accept:".mp4",maxCount:3,modelValue:s.attachmentVideoUrl,"onUpdate:modelValue":l=>s.attachmentVideoUrl=l},null)]})])})]})),e("div",{class:d.addButtonGroup},[e(v,{icon:"plus",block:!0,type:"primary",plain:!0,class:d.addButton,onClick:c},{default:()=>[f("添加节目")]})]),e(Y,{position:"bottom"},{default:()=>[e("div",{class:["btnGroupFixed",d.bottonGroup]},[e(v,{type:"primary",round:!0,block:!0,onClick:G},{default:()=>[f("确认")]})])]}),e(E,{show:t.timerStatus,"onUpdate:show":s=>t.timerStatus=s,round:!0,position:"bottom"},{default:()=>[e(Bt,{modelValue:t.currentDate,"onUpdate:modelValue":s=>t.currentDate=s,formatter:It,onCancel:()=>t.timerStatus=!1,onConfirm:({selectedValues:s})=>{t.startTime=s.join("-"),t.timerStatus=!1}},null)]}),e(E,{show:t.orchestraStatus,"onUpdate:show":s=>t.orchestraStatus=s,round:!0,position:"bottom"},{default:()=>[e(ct,{columns:t.orchestraColumns,onCancel:()=>t.orchestraStatus=!1,onConfirm:({selectedOptions:s})=>{t.selectOrchestra.musicGroupId!=s[0].value?(t.selectOrchestra.subjectAllList=[],t.selectOrchestra.performerList=[],t.selectOrchestra.subjectIdList=[],t.selectOrchestra.musicGroupName=s[0].text,t.selectOrchestra.musicGroupId=s[0].value,t.orchestraStatus=!1,h()):t.orchestraStatus=!1}},null)]}),e(E,{show:t.programTimerStatus,"onUpdate:show":s=>t.programTimerStatus=s,round:!0,style:{width:"82%"}},{default:()=>[e(he,{show:t.programTimerStatus,time:t.selectOrchestra.time,onClose:()=>t.programTimerStatus=!1,onConfirm:s=>{const u=Number(s.minute||0)*60+Number(s.second||0);t.selectOrchestra.time=u,t.programTimerStatus=!1}},null)]}),e(E,{show:t.deleteStatus,"onUpdate:show":s=>t.deleteStatus=s,round:!0,style:{width:"82%"}},{default:()=>[e("div",{class:d.popupContainer},[e("h2",{class:d.popupTitle},[f("删除节目")]),e("div",{class:d.popupContent},[e("p",{class:d.tipContent},[f("删除"),e("span",null,[f("《节目"),Q(t.deleteIndex+1),f("》")]),f(",删除后内容不可恢复")])]),e("div",{class:["btnGroupPopup"]},[e(v,{type:"primary",round:!0,onClick:()=>{t.detail.splice(t.deleteIndex,1),t.deleteStatus=!1}},{default:()=>[f("确定")]}),e(v,{round:!0,onClick:()=>t.deleteStatus=!1},{default:()=>[f("取消")]})])])]}),e(E,{show:t.teamStatus,"onUpdate:show":s=>t.teamStatus=s,round:!0,position:"bottom",closeable:!0},{default:()=>[e(ye,{show:t.teamStatus,performances:t.selectOrchestra.subjectAllList,selectIds:t.selectOrchestra.subjectIdList,onClose:()=>t.teamStatus=!1,onConfirm:s=>{t.selectOrchestra.subjectIdList=s,y(s),t.teamStatus=!1}},null)]}),e(Et,{modelValue:t.castStatus,"onUpdate:modelValue":s=>t.castStatus=s},{default:()=>[e(Le,{subjectAllList:t.selectOrchestra.subjectAllList,performerList:t.selectOrchestra.performerList,"onUpdate:performerList":s=>t.selectOrchestra.performerList=s,onClose:()=>t.castStatus=!1,onConfirm:s=>{const u=s||[],l=[];u.forEach(o=>{l.push(o.subjectId)}),t.selectOrchestra.subjectIdList=l||[]}},null)]})])}}),Pe=Object.freeze(Object.defineProperty({__proto__:null,default:Ce,formatterTimer:T},Symbol.toStringTag,{value:"Module"}));export{Le as C,T as f,Pe as o};