operation-c9c390b4.js 23 KB

1
  1. import{A as se,q as ie,a4 as de,j as me,a5 as J,d as w,i as P,E as pe,w as C,a6 as H,g as t,m as fe,p as he,D as be,O as x,h as p,B as j,f as I,X as F,o as R,I as G,Y as ge,R as oe,T as D,P as E,a7 as ye,W as Ie,a as U,N as Ae}from"./index-04db4e54.js";import{b as Q,f as Z}from"./constant-a400d214.js";import{M as Le}from"./index-940a625c.js";import{d as Ce,R as z,a as X,i as je,M as ke,b as we}from"./deep-clone-d88dc12e.js";import{M as q}from"./index-ffd0cecb.js";import{v as W,c as Se}from"./toolsValidate-2f258ec3.js";import{C as re,a as le}from"./index-59a2fdf6.js";import{T as _}from"./index-cf58cc9d.js";import{i as ve,M as De}from"./icon-check-34140e47.js";import{s as k}from"./index.module-3b4cd265.js";import{i as Ee}from"./icon-check-active-15efb9a0.js";import{i as Ue}from"./icon-student-default-4c78efb2.js";import{C as Y}from"./index-301ab104.js";import{I as Te}from"./index-3e497fb6.js";import{T as xe,a as Oe}from"./index-38a6e1bf.js";import{p as ne,P as ue}from"./index-b3bceba9.js";import{C as $}from"./index-8a60a4fe.js";import{F as L}from"./index-d5be03c4.js";const Ge=se({},ne,{modelValue:ie(),filter:Function,formatter:{type:Function,default:(a,m)=>m}}),_e=Object.keys(ne);function Fe(a,m){if(a<0)return[];const e=Array(a);let l=-1;for(;++l<a;)e[l]=m(l);return e}const Ve=(a,m)=>32-new Date(a,m-1,32).getDate(),M=(a,m,e,l,h)=>{const c=Fe(m-a+1,n=>{const i=de(a+n);return l(e,{text:i,value:i})});return h?h(e,c):c},Ne=(a,m)=>a.map((e,l)=>{const h=m[l];if(h.length){const c=+h[h.length-1].value;if(+e>c)return String(c)}return e}),ee=new Date().getFullYear(),[Me]=me("date-picker"),qe=se({},Ge,{columnsType:{type:Array,default:()=>["year","month","day"]},minDate:{type:Date,default:()=>new Date(ee-10,0,1),validator:J},maxDate:{type:Date,default:()=>new Date(ee+10,11,31),validator:J}});var Ye=w({name:Me,props:qe,emits:["confirm","cancel","change","update:modelValue"],setup(a,{emit:m,slots:e}){const l=P(a.modelValue),h=()=>{const r=a.minDate.getFullYear(),f=a.maxDate.getFullYear();return M(r,f,"year",a.formatter,a.filter)},c=r=>r===a.minDate.getFullYear(),n=r=>r===a.maxDate.getFullYear(),i=r=>r===a.minDate.getMonth()+1,b=r=>r===a.maxDate.getMonth()+1,A=r=>{const{minDate:f,columnsType:y}=a,g=y.indexOf(r),S=l.value[g];if(S)return+S;switch(r){case"year":return f.getFullYear();case"month":return f.getMonth()+1;case"day":return f.getDate()}},V=()=>{const r=A("year"),f=c(r)?a.minDate.getMonth()+1:1,y=n(r)?a.maxDate.getMonth()+1:12;return M(f,y,"month",a.formatter,a.filter)},N=()=>{const r=A("year"),f=A("month"),y=c(r)&&i(f)?a.minDate.getDate():1,g=n(r)&&b(f)?a.maxDate.getDate():Ve(r,f);return M(y,g,"day",a.formatter,a.filter)},O=pe(()=>a.columnsType.map(r=>{switch(r){case"year":return h();case"month":return V();case"day":return N();default:return[]}}));C(l,r=>{H(r,a.modelValue)||m("update:modelValue",r)}),C(()=>a.modelValue,r=>{r=Ne(r,O.value),H(r,l.value)||(l.value=r)},{immediate:!0});const s=(...r)=>m("change",...r),u=(...r)=>m("cancel",...r),o=(...r)=>m("confirm",...r);return()=>t(ue,fe({modelValue:l.value,"onUpdate:modelValue":r=>l.value=r,columns:O.value,onChange:s,onCancel:u,onConfirm:o},he(a,_e)),e)}});const Pe=be(Ye),Re="_topCellGroup_18ewq_1",Be="_programType_18ewq_12",Ke="_teamCell_18ewq_18",Je="_tagCell_18ewq_21",He="_tagItem_18ewq_24",Qe="_closeable_18ewq_33",Ze="_searchTypeFlex_18ewq_38",ze="_small_18ewq_41",Xe="_multFlex_18ewq_54",We="_placeholder_18ewq_110",$e="_performance_18ewq_114",et="_iconImg_18ewq_117",tt="_disabled_18ewq_120",at="_topTitle_18ewq_124",st="_programTimer_18ewq_130",ot="_uploadGroup_18ewq_150",rt="_addButtonGroup_18ewq_158",lt="_addButton_18ewq_158",nt="_bottonGroup_18ewq_167",ut="_popupContainer_18ewq_172",ct="_popupTitle_18ewq_172",it="_popupTimer_18ewq_181",dt="_tipContent_18ewq_208",d={topCellGroup:Re,programType:Be,teamCell:Ke,tagCell:Je,tagItem:He,closeable:Qe,searchTypeFlex:Ze,small:ze,multFlex:Xe,placeholder:We,performance:$e,iconImg:et,disabled:tt,topTitle:at,programTimer:st,uploadGroup:ot,addButtonGroup:rt,addButton:lt,bottonGroup:nt,popupContainer:ut,popupTitle:ct,popupTimer:it,tipContent:dt},mt="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==",pt="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==",ft=w({name:"input-timer",props:{show:{type:Boolean,default:!1},time:{type:Number,default:null}},emits:["close","confirm"],setup(a,{emit:m}){const e=T(a.time),l=x({minute:e.minute||null,second:e.secord||null}),h=n=>n&&n>=0?W(n):"",c=n=>{if(n&&n>=0){const i=W(n);return(Number(i)>=60?59:i)+""}else return""};return C(()=>a.show,()=>{if(!a.show){const n=T(a.time);l.minute=n.minute||null,l.second=n.secord||null}}),C(()=>a.time,()=>{const n=T(a.time);console.log(n,"timer"),l.minute=n.minute||null,l.second=n.secord||null}),()=>t("div",{class:d.popupContainer},[t("h2",{class:d.popupTitle},[p("请输入节目时长")]),t("div",{class:d.popupContent},[t("div",{class:d.popupTimer},[t(L,{modelValue:l.minute,"onUpdate:modelValue":n=>l.minute=n,type:"tel",formatter:h,border:!1,maxlength:2,autocomplete:"off"},null),p("分"),t(L,{modelValue:l.second,"onUpdate:modelValue":n=>l.second=n,type:"tel",formatter:c,border:!1,maxlength:2,autocomplete:"off"},null),p("秒")])]),t("div",{class:["btnGroupPopup"]},[t(j,{round:!0,onClick:()=>m("close")},{default:()=>[p("取消")]}),t(j,{type:"primary",round:!0,onClick:()=>{if(!l.minute||!l.second){I("时长输入有误");return}m("confirm",l)}},{default:()=>[p("确定")]})])])}});function ht(a){return typeof a=="function"||Object.prototype.toString.call(a)==="[object Object]"&&!F(a)}const bt=w({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 e=P([]),l=x({performanceList:a.performances||[],checkboxs:a.selectIds||[]});return C(()=>a.performances,()=>{console.log(a.performances,"props.performances"),l.performanceList=a.performances}),C(()=>a.selectIds,()=>{l.checkboxs=a.selectIds}),C(()=>a.show,()=>{a.show||(l.checkboxs=a.selectIds)}),()=>{let h;return t("div",{class:d.popupContainer},[t("h2",{class:d.popupTitle},[p("选择表演团队")]),t(re,{class:[d.searchTypeFlex,d.multFlex],modelValue:l.checkboxs,"onUpdate:modelValue":c=>l.checkboxs=c},ht(h=l.performanceList.map((c,n)=>t(_,{type:l.checkboxs.includes(c.subjectId)?"primary":"default"},{default:()=>[t(le,{name:c.subjectId,ref:i=>e.value[n]=i,onClick:i=>{i.stopPropagation()}},null),c.subjectName]})))?h:{default:()=>[h]}),t("div",{class:["btnGroupPopup"]},[t(j,{round:!0,onClick:()=>m("close")},{default:()=>[p("取消")]}),t(j,{type:"primary",round:!0,onClick:()=>m("confirm",l.checkboxs)},{default:()=>[p("确定")]})])])}}});function gt(a){return typeof a=="function"||Object.prototype.toString.call(a)==="[object Object]"&&!F(a)}const yt=w({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 e=P([]),l=x({height:a.height,check:[]}),h=n=>{if(a.type==="look")return;e.value[n].toggle();const i=[];a.studentList.forEach(b=>{l.check.includes(b.studentId)&&i.push({studentId:b.studentId,studentName:b.studentName,studentAvatar:b.studentAvatar,subjectId:b.subjectId})}),m("update:selectItem",i)};C(()=>a.height,()=>{l.height=a.height}),C(()=>a.selectItem,()=>{c()},{deep:!0});const c=()=>{const n=a.selectItem||[],i=[];n.forEach(b=>{i.push(b.studentId)}),l.check=i};return R(async()=>{c()}),()=>{let n;return t("div",{style:{"min-height":`calc(100vh - ${a.headerHeight}px - ${l.height}px - ${a.bottomHeight}px )`}},[t(re,{modelValue:l.check,"onUpdate:modelValue":i=>l.check=i},gt(n=a.studentList.map((i,b)=>t(Y,{center:!0,onClick:()=>h(b),class:k.popupCell},{icon:()=>t(Te,{src:i.studentAvatar||Ue,class:k.imgLogo,fit:"contain"},null),title:()=>t("div",{class:k.infos},[t("div",{class:k.infoTitle},[i.studentName]),t("div",{class:k.infoContent},[i.subjectName])]),"right-icon":()=>a.type==="edit"&&t(le,{name:i.studentId,ref:A=>e.value[b]=A,onClick:A=>{A.preventDefault(),A.stopPropagation(),h(b)}},{icon:A=>t(G,{class:k.boxStyle,name:A.checked?Ee:ve},null)})})))?n:{default:()=>[n]})])}}});function It(a){return typeof a=="function"||Object.prototype.toString.call(a)==="[object Object]"&&!F(a)}const At=w({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 e=()=>{const c=a.performerList||[];return a.subjectAllList.forEach(n=>{const i=c.find(b=>b.subjectId==n.subjectId);n.selectList=i?Ce(i.studentList):[]}),console.log(a.subjectAllList,"props.subjectAllList"),a.subjectAllList||[]},l=x({varName:"--popup-navbar-height",popupHeight:0,height:0,bottomHeight:0,subjectList:e()});R(()=>{const{height:c}=ge(document.querySelector(".van-tab"));l.height=c}),C(()=>a.subjectAllList,()=>{l.subjectList=e()}),C(()=>a.performerList,()=>{l.subjectList=e()});const h=()=>{const c=[];l.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 t("div",{class:k.castPopupContainer,style:"background-color: #f8f9fc; height: 100%"},[t(q,{varName:l.varName,onBarHeight:n=>{l.popupHeight=n}},{default:()=>[t(oe,{title:"演员名单"},null)]}),t(xe,{shrink:!0,sticky:!0,offsetTop:l.popupHeight},It(c=l.subjectList.map(n=>t(Oe,{name:n.subjectId,title:n.subjectName+`(${n.studentCount})`},{default:()=>[t(yt,{type:a.type,height:l.height,headerHeight:l.popupHeight,bottomHeight:l.bottomHeight,studentList:n.studentList,selectItem:n.selectList,"onUpdate:selectItem":i=>n.selectList=i},null)]})))?c:{default:()=>[c]}),a.type==="edit"&&t(q,{position:"bottom",onBarHeight:n=>{l.bottomHeight=n}},{default:()=>[t("div",{class:"btnGroupFixed"},[t(j,{round:!0,block:!0,type:"primary",onClick:h},{default:()=>[p("确认")]})])]})])}}});function te(a){return typeof a=="function"||Object.prototype.toString.call(a)==="[object Object]"&&!F(a)}const ae={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),e=a%60;return{minute:m,secord:e}}else return{minute:null,secord:null}},Lt=w({name:"operation-page",setup(){const a=Ie(),m=Ae(),e=x({activityDetailId:a.query.id,timerStatus:!1,currentDate:[],orchestraStatus:!1,orchestraColumns:[],programType:"",programTimerStatus:!1,deleteStatus:!1,teamStatus:!1,castStatus:!1,selectOrchestra:[],deleteIndex:0,startTime:D().format("YYYY-MM-DD"),name:"",type:"",detail:[{...ae}]}),l=async()=>{try{const{data:s}=await U.get("/api-web/cooperationOrgan/musicGroupPage");(s||[]).forEach(u=>{e.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:e.activityDetailId,musicGroupId:e.selectOrchestra.musicGroupId,subjectIds:[]}}),u=s||[];e.selectOrchestra.subjectAllList=u,e.selectOrchestra.performerList=u,e.selectOrchestra.subjectIdList=[],u.forEach(o=>{e.selectOrchestra.subjectIdList.push(o.subjectId)})}catch(s){}},c=()=>{e.detail.push({...ae})},n=s=>{e.detail.length<=1||(e.deleteIndex=s,e.deleteStatus=!0)},i=s=>{let u=0;return s.forEach(o=>{u+=o.studentCount}),u},b=s=>{const u=[];e.selectOrchestra.performerList.forEach(o=>{s.includes(o.subjectId)&&u.push(o)}),e.selectOrchestra.subjectAllList.forEach(o=>{const r=e.selectOrchestra.performerList.findIndex(f=>f.subjectId==o.subjectId);s.includes(o.subjectId)&&r<0&&u.push(o)}),e.selectOrchestra.performerList=u},A=s=>{const u=[];return s.map(o=>{let r=0;const f=[];o.studentList.forEach(y=>{y.selected&&(r++,f.push(y))}),r>0&&u.push({studentCount:f.length,subjectId:o.subjectId,subjectName:o.subjectName,studentList:f})}),u||[]},V=async()=>{try{const{data:s}=await U.get("/api-web/schoolActivity/detail/"+e.activityDetailId),{detail:u,name:o,startTime:r,type:f}=s||{};e.startTime=D(r).format("YYYY-MM-DD"),e.name=o,e.type=f,e.currentDate=[D(r).format("YYYY"),D(r).format("MM"),D(r).format("DD")];const y=[];u.forEach(g=>{const S=g.attachmentUrl?g.attachmentUrl.split(","):[],B=[],K=[];S.forEach(v=>{Se(v,"image")?K.push(v):B.push(v)});const ce={id:g.id,name:g.name,type:g.type,musicGroupId:g.musicGroupId,musicGroupName:g.musicGroupName,subjectAllList:g.studentList,subjectIdList:g.subjectIdList?g.subjectIdList.split(",").map(v=>Number(v)):[],time:g.time,performerList:A(g.studentList),attachmentUrl:S,attachmentVideoUrl:B,attachmentImgUrl:K};y.push(ce)}),e.detail=y}catch(s){}};R(()=>{l(),e.activityDetailId&&V()});const N=()=>{if(!e.name)return I("请填写活动名称"),!1;if(e.name.length<3||e.name.length>25)return I("活动名称长度3~25"),!1;if(!e.type)return I("请选择活动类别"),!1;for(let s=0,u=e.detail.length;s<u;s++){const o=e.detail[s];if(!o.name)return I("请输入节目名称不能为空"),!1;if(!o.type)return I("请选择活动类型"),!1;if(!o.musicGroupId)return I("请选择表演乐团"),!1;if(o.subjectIdList.length<=0)return I("请选择表演团队"),!1;if(i(o.performerList)<=0)return I("请选择演员"),!1;if(!o.time){I("请输入节目时长");return}}return!0},O=async()=>{try{if(!N())return;const s={id:e.activityDetailId||null,startTime:e.startTime,endTime:e.startTime+" 23:59:59",name:e.name,type:e.type,detail:[]},u=[];e.detail.forEach((o,r)=>{console.log(o),u.push({id:o.id||null,sort:r+1,name:o.name,type:o.type,musicGroupId:o.musicGroupId+"",subjectIdList:o.subjectIdList.join(","),studentNum:i(o.performerList),studentList:o.performerList,time:o.time,attachmentUrl:[...o.attachmentImgUrl,...o.attachmentVideoUrl].join(",")})}),s.detail=u,e.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()=>t("div",{class:d.operation},[t(oe,{title:e.activityDetailId?"修改活动":"新增活动"},null),t($,{inset:!0,class:d.topCellGroup},{default:()=>[t(L,{isLink:!0,label:"活动日期",inputAlign:"right",readonly:!0,clearable:!1,modelValue:e.startTime,"onUpdate:modelValue":s=>e.startTime=s,onClick:()=>e.timerStatus=!0,placeholder:"请选择活动日期"},null),t(L,{label:"活动名称",inputAlign:"right",placeholder:"请填写活动名称",maxlength:25,modelValue:e.name,"onUpdate:modelValue":s=>e.name=s,autocomplete:"off"},null),t(L,{label:"活动类别",labelAlign:"top"},{input:()=>{let s;return t(z,{class:d.searchTypeFlex,modelValue:e.type,"onUpdate:modelValue":u=>e.type=u},te(s=Object.keys(Q).map(u=>t(_,{type:e.type===u?"primary":"default",round:!0},{default:()=>[t(X,{name:u},null),Q[u]]})))?s:{default:()=>[s]})}})]}),e.detail.map((s,u)=>t($,{inset:!0,class:d.topCellGroup},{default:()=>[t(Y,{center:!0},{icon:()=>t(G,{name:mt,class:d.iconImg},null),title:()=>t("div",{class:d.topTitle},[p("节目"),u+1]),value:()=>t(G,{name:pt,class:[d.iconImg,e.detail.length<=1?d.disabled:""],onClick:()=>n(u)},null)}),t(L,{label:"节目名称",inputAlign:"right",placeholder:"请填写节目名称",maxlength:15,modelValue:s.name,"onUpdate:modelValue":o=>s.name=o,autocomplete:"off"},null),t(L,{label:"节目类型",inputAlign:"right",placeholder:"请填写节目",class:d.programType},{input:()=>{let o;return t(z,{class:[d.searchTypeFlex,d.small],modelValue:s.type,"onUpdate:modelValue":r=>s.type=r},te(o=Object.keys(Z).map(r=>t(_,{type:s.type===r?"primary":"default",round:!0},{default:()=>[t(X,{name:r},null),Z[r]]})))?o:{default:()=>[o]})}}),t(L,{isLink:!0,label:"表演乐团",inputAlign:"right",readonly:!0,clearable:!1,modelValue:s.musicGroupName,"onUpdate:modelValue":o=>s.musicGroupName=o,onClick:()=>{if(e.orchestraColumns.length<=0){I("暂无乐团");return}e.orchestraStatus=!0,e.selectOrchestra=[],e.selectOrchestra=s},placeholder:"请选择表演乐团"},null),t(L,{isLink:!0,label:"表演团队",inputAlign:"right",readonly:!0,clearable:!1,onClick:()=>{if(!s.musicGroupId){I("请选择表演乐团");return}e.teamStatus=!0,e.selectOrchestra=[],e.selectOrchestra=s},placeholder:s.subjectIdList.length>0?"":"请选择表演乐团",border:s.subjectIdList.length<=0,class:s.subjectIdList.length>0?d.teamCell:""},null),s.subjectIdList.length>0&&t(Y,{class:d.tagCell,center:!0},{title:()=>s.subjectIdList.map((o,r)=>{let f="";return s.subjectAllList.forEach(y=>{y.subjectId===o&&(f=y.subjectName)}),t(_,{type:"primary",plain:!0,class:d.tagItem},{default:()=>[f,t(G,{name:"cross",class:d.closeable,onClick:()=>{s.subjectIdList.splice(r,1),b(s.subjectIdList)}},null)]})})}),t(L,{isLink:!0,label:"演员",inputAlign:"right",readonly:!0,clearable:!1,onClick:()=>{if(s.subjectIdList.length<=0){I("请选择表演团队");return}e.selectOrchestra=[],e.selectOrchestra=s,e.castStatus=!0}},{input:()=>i(s.performerList)>0?t("div",{class:d.performance},[p("共 "),t("span",null,[i(s.performerList)]),p(" 名")]):t("div",{class:d.placeholder},[p("请选择演员")])}),t(L,{label:"节目时长",inputAlign:"right",onClick:()=>{e.selectOrchestra=[],e.selectOrchestra=s,e.programTimerStatus=!0},center:!0,placeholder:"请选择节目时长"},{input:()=>{const o=T(s.time);return t("div",{class:d.programTimer},[t("span",null,[o==null?void 0:o.minute]),p("分"),t("span",null,[o==null?void 0:o.secord]),p("秒")])}}),t(L,{label:"上传附件",labelAlign:"top"},{input:()=>t("div",{class:d.uploadGroup},[t(Le,{uploadIcon:je,maxCount:5,native:!0,modelValue:s.attachmentImgUrl,"onUpdate:modelValue":o=>s.attachmentImgUrl=o,style:{marginTop:"6px"}},{default:()=>[t(ke,{uploadIcon:we,native:!0,uploadType:"VIDEO",accept:".mp4",maxCount:3,modelValue:s.attachmentVideoUrl,"onUpdate:modelValue":o=>s.attachmentVideoUrl=o},null)]})])})]})),t("div",{class:d.addButtonGroup},[t(j,{icon:"plus",block:!0,type:"primary",plain:!0,class:d.addButton,onClick:c},{default:()=>[p("添加节目")]})]),t(q,{position:"bottom"},{default:()=>[t("div",{class:["btnGroupFixed",d.bottonGroup]},[t(j,{type:"primary",round:!0,block:!0,onClick:O},{default:()=>[p("确认")]})])]}),t(E,{show:e.timerStatus,"onUpdate:show":s=>e.timerStatus=s,round:!0,position:"bottom"},{default:()=>[t(Pe,{modelValue:e.currentDate,"onUpdate:modelValue":s=>e.currentDate=s,minDate:new Date,formatter:ye,onCancel:()=>e.timerStatus=!1,onConfirm:({selectedValues:s})=>{e.startTime=s.join("-"),e.timerStatus=!1}},null)]}),t(E,{show:e.orchestraStatus,"onUpdate:show":s=>e.orchestraStatus=s,round:!0,position:"bottom"},{default:()=>[t(ue,{columns:e.orchestraColumns,onCancel:()=>e.orchestraStatus=!1,onConfirm:({selectedOptions:s})=>{e.selectOrchestra.musicGroupId!=s[0].value&&(e.selectOrchestra.subjectAllList=[],e.selectOrchestra.performerList=[],e.selectOrchestra.subjectIdList=[],e.selectOrchestra.musicGroupName=s[0].text,e.selectOrchestra.musicGroupId=s[0].value,e.orchestraStatus=!1,h())}},null)]}),t(E,{show:e.programTimerStatus,"onUpdate:show":s=>e.programTimerStatus=s,round:!0,style:{width:"82%"}},{default:()=>[t(ft,{show:e.programTimerStatus,time:e.selectOrchestra.time,onClose:()=>e.programTimerStatus=!1,onConfirm:s=>{const u=Number(s.minute||0)*60+Number(s.second||0);e.selectOrchestra.time=u,e.programTimerStatus=!1}},null)]}),t(E,{show:e.deleteStatus,"onUpdate:show":s=>e.deleteStatus=s,round:!0,style:{width:"82%"}},{default:()=>[t("div",{class:d.popupContainer},[t("h2",{class:d.popupTitle},[p("删除节目")]),t("div",{class:d.popupContent},[t("p",{class:d.tipContent},[p("删除"),t("span",null,[p("《节目"),e.deleteIndex+1,p("》")]),p(",删除后内容不可恢复")])]),t("div",{class:["btnGroupPopup"]},[t(j,{type:"primary",round:!0,onClick:()=>{e.detail.splice(e.deleteIndex,1),e.deleteStatus=!1}},{default:()=>[p("确定")]}),t(j,{round:!0,onClick:()=>e.deleteStatus=!1},{default:()=>[p("取消")]})])])]}),t(E,{show:e.teamStatus,"onUpdate:show":s=>e.teamStatus=s,round:!0,position:"bottom",closeable:!0},{default:()=>[t(bt,{show:e.teamStatus,performances:e.selectOrchestra.subjectAllList,selectIds:e.selectOrchestra.subjectIdList,onClose:()=>e.teamStatus=!1,onConfirm:s=>{e.selectOrchestra.subjectIdList=s,b(s),e.teamStatus=!1}},null)]}),t(De,{modelValue:e.castStatus,"onUpdate:modelValue":s=>e.castStatus=s},{default:()=>[t(At,{subjectAllList:e.selectOrchestra.subjectAllList,performerList:e.selectOrchestra.performerList,"onUpdate:performerList":s=>e.selectOrchestra.performerList=s,onClose:()=>e.castStatus=!1,onConfirm:s=>{const u=s||[],o=[];u.forEach(r=>{o.push(r.subjectId)}),e.selectOrchestra.subjectIdList=o||[]}},null)]})])}}),qt=Object.freeze(Object.defineProperty({__proto__:null,default:Lt,formatterTimer:T},Symbol.toStringTag,{value:"Module"}));export{At as C,T as f,qt as o};