1 |
- import{d as T,O as G,w as C,g as e,h as p,B as A,f as y,i as Z,X as N,o as V,I as O,Y as ot,R as X,S as v,a3 as Y,P as x,ab as rt,W as lt,a as E,N as ut}from"./index-e362c2e8.js";import{b as P,f as B}from"./constant-a400d214.js";import{M as ct}from"./index-5e758334.js";import{d as nt,R as q,a as K,i as it,M as pt,b as dt}from"./deep-clone-f58c122e.js";import{M as F}from"./index-cf657a5b.js";import{v as J,c as mt}from"./toolsValidate-2f258ec3.js";import{C as W,a as $}from"./index-039ad22f.js";import{T as w}from"./index-3ee0a851.js";import{i as ft,M as ht}from"./icon-check-e7e14c35.js";import{s as S}from"./index.module-422ac088.js";import{i as bt}from"./icon-check-active-15efb9a0.js";import{i as yt}from"./icon-student-default-4c78efb2.js";import{C as D}from"./index-5c45ec33.js";import{I as gt}from"./index-85ccd873.js";import{T as It,a as Lt}from"./index-f57b4c5f.js";import{D as At}from"./index-b3ca6985.js";import{P as Ct}from"./index-14b5dea2.js";import{C as H}from"./index-7571fa92.js";import{F as I}from"./index-6c6fed8e.js";const jt="_topCellGroup_ux4yv_1",vt="_programType_ux4yv_15",St="_teamCell_ux4yv_21",kt="_tagCell_ux4yv_24",xt="_tagItem_ux4yv_27",Et="_closeable_ux4yv_36",Ut="_searchTypeFlex_ux4yv_41",Tt="_small_ux4yv_44",Gt="_multFlex_ux4yv_57",_t="_placeholder_ux4yv_116",Ot="_performance_ux4yv_120",wt="_iconImg_ux4yv_123",Nt="_disabled_ux4yv_126",Ft="_topTitle_ux4yv_130",Dt="_programTimer_ux4yv_136",Vt="_uploadGroup_ux4yv_156",Rt="_addButtonGroup_ux4yv_164",Mt="_addButton_ux4yv_164",Yt="_bottonGroup_ux4yv_173",Pt="_popupContainer_ux4yv_178",Bt="_popupTitle_ux4yv_178",qt="_popupTimer_ux4yv_187",Kt="_tipContent_ux4yv_215",c={topCellGroup:jt,programType:vt,teamCell:St,tagCell:kt,tagItem:xt,closeable:Et,searchTypeFlex:Ut,small:Tt,multFlex:Gt,placeholder:_t,performance:Ot,iconImg:wt,disabled:Nt,topTitle:Ft,programTimer:Dt,uploadGroup:Vt,addButtonGroup:Rt,addButton:Mt,bottonGroup:Yt,popupContainer:Pt,popupTitle:Bt,popupTimer:qt,tipContent:Kt},Jt="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==",Ht="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==",Qt=T({name:"input-timer",props:{show:{type:Boolean,default:!1},time:{type:Number,default:null}},emits:["close","confirm"],setup(a,{emit:f}){const t=U(a.time);console.log(t,"timer");const l=G({minute:t.minute,second:t.secord||null}),g=r=>r&&r>=0?J(r):"",i=r=>{if(r&&r>=0){const n=J(r);return(Number(n)>=60?59:n)+""}else return""};return C(()=>a.show,()=>{if(!a.show){const r=U(a.time);l.minute=r.minute,l.second=r.secord}}),C(()=>a.time,()=>{const r=U(a.time);l.minute=r.minute,l.second=r.secord}),()=>e("div",{class:c.popupContainer},[e("h2",{class:c.popupTitle},[p("请输入节目时长")]),e("div",{class:c.popupContent},[e("div",{class:c.popupTimer},[e(I,{modelValue:l.minute,"onUpdate:modelValue":r=>l.minute=r,type:"tel",formatter:g,border:!1,maxlength:2,autocomplete:"off"},null),p("分"),e(I,{modelValue:l.second,"onUpdate:modelValue":r=>l.second=r,type:"tel",formatter:i,border:!1,maxlength:2,autocomplete:"off"},null),p("秒")])]),e("div",{class:["btnGroupPopup"]},[e(A,{round:!0,onClick:()=>f("close")},{default:()=>[p("取消")]}),e(A,{type:"primary",round:!0,onClick:()=>{if(!l.minute||!l.second){y("时长输入有误");return}if(l.minute*60+l.second<=0){y("时长输入必须大于0");return}f("confirm",l)}},{default:()=>[p("确定")]})])])}});function zt(a){return typeof a=="function"||Object.prototype.toString.call(a)==="[object Object]"&&!N(a)}const Zt=T({name:"performance-team",props:{show:{type:Boolean,default:!1},performances:{type:Array,default:()=>[]},selectIds:{type:Array,default:()=>[]}},emits:["close","confirm"],setup(a,{emit:f}){const t=Z([]),l=G({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 g;return e("div",{class:c.popupContainer},[e("h2",{class:c.popupTitle},[p("选择表演团队")]),e(W,{class:[c.searchTypeFlex,c.multFlex],modelValue:l.checkboxs,"onUpdate:modelValue":i=>l.checkboxs=i},zt(g=l.performanceList.map((i,r)=>e(w,{type:l.checkboxs.includes(i.subjectId)?"primary":"default"},{default:()=>[e($,{name:i.subjectId,ref:n=>t.value[r]=n,onClick:n=>{n.stopPropagation()}},null),e("span",{class:"van-ellipsis"},[i.subjectName])]})))?g:{default:()=>[g]}),e("div",{class:["btnGroupPopup"]},[e(A,{round:!0,onClick:()=>f("close")},{default:()=>[p("取消")]}),e(A,{type:"primary",round:!0,onClick:()=>f("confirm",l.checkboxs)},{default:()=>[p("确定")]})])])}}});function Xt(a){return typeof a=="function"||Object.prototype.toString.call(a)==="[object Object]"&&!N(a)}const Wt=T({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:f}){const t=Z([]),l=G({height:a.height,check:[]}),g=r=>{if(a.type==="look")return;t.value[r].toggle();const n=[];a.studentList.forEach(m=>{l.check.includes(m.studentId)&&n.push({studentId:m.studentId,studentName:m.studentName,studentAvatar:m.studentAvatar,subjectId:m.subjectId})}),f("update:selectItem",n)};C(()=>a.height,()=>{l.height=a.height}),C(()=>a.selectItem,()=>{i()},{deep:!0});const i=()=>{const r=a.selectItem||[],n=[];r.forEach(m=>{n.push(m.studentId)}),l.check=n};return V(async()=>{i()}),()=>{let r;return e("div",{style:{"min-height":`calc(100vh - ${a.headerHeight}px - ${l.height}px - ${a.bottomHeight}px )`}},[e(W,{modelValue:l.check,"onUpdate:modelValue":n=>l.check=n},Xt(r=a.studentList.map((n,m)=>e(D,{center:!0,onClick:()=>g(m),class:S.popupCell},{icon:()=>e(gt,{src:n.studentAvatar||yt,class:S.imgLogo,fit:"cover"},null),title:()=>e("div",{class:S.infos},[e("div",{class:S.infoTitle},[n.studentName]),e("div",{class:S.infoContent},[n.subjectName])]),"right-icon":()=>a.type==="edit"&&e($,{name:n.studentId,ref:j=>t.value[m]=j,onClick:j=>{j.preventDefault(),j.stopPropagation(),g(m)}},{icon:j=>e(O,{class:S.boxStyle,name:j.checked?bt:ft},null)})})))?r:{default:()=>[r]})])}}});function $t(a){return typeof a=="function"||Object.prototype.toString.call(a)==="[object Object]"&&!N(a)}const te=T({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:f}){const t=()=>{const i=a.performerList||[];return a.subjectAllList.forEach(r=>{const n=i.find(m=>m.subjectId==r.subjectId);r.selectList=n?nt(n.studentList):[]}),console.log(a.subjectAllList,"props.subjectAllList"),a.subjectAllList||[]},l=G({varName:"--popup-navbar-height",popupHeight:0,height:0,bottomHeight:0,subjectList:t()});V(()=>{const{height:i}=ot(document.querySelector(".van-tab"));l.height=i}),C(()=>a.subjectAllList,()=>{l.subjectList=t()}),C(()=>a.performerList,()=>{l.subjectList=t()});const g=()=>{const i=[];l.subjectList.forEach(r=>{r.selectList&&r.selectList.length>0&&i.push({studentCount:r.selectList.length,studentList:r.selectList,subjectId:r.subjectId,subjectName:r.subjectName})}),console.log(i,"selectList"),f("close"),f("update:performerList",i),f("confirm",i)};return()=>{let i;return e("div",{class:S.castPopupContainer,style:"background-color: #f8f9fc; height: 100%"},[e(F,{varName:l.varName,onBarHeight:r=>{l.popupHeight=r}},{default:()=>[e(X,{title:"演员名单"},null)]}),e(It,{shrink:!0,sticky:!0,offsetTop:l.popupHeight},$t(i=l.subjectList.map(r=>e(Lt,{name:r.subjectId,title:r.subjectName+`(${r.studentCount})`},{default:()=>[e(Wt,{type:a.type,height:l.height,headerHeight:l.popupHeight,bottomHeight:l.bottomHeight,studentList:r.studentList,selectItem:r.selectList,"onUpdate:selectItem":n=>r.selectList=n},null)]})))?i:{default:()=>[i]}),a.type==="edit"&&e(F,{position:"bottom",onBarHeight:r=>{l.bottomHeight=r}},{default:()=>[e("div",{class:"btnGroupFixed"},[e(A,{round:!0,block:!0,type:"primary",onClick:g},{default:()=>[p("确认")]})])]})])}}});function Q(a){return typeof a=="function"||Object.prototype.toString.call(a)==="[object Object]"&&!N(a)}const z={id:null,name:"",type:"",musicGroupId:null,musicGroupName:null,subjectAllList:[],subjectIdList:[],time:null,performerList:[],attachmentUrl:[],attachmentVideoUrl:[],attachmentImgUrl:[]},U=a=>{if(a){const f=Math.floor(a/60),t=a%60;return{minute:f,secord:t}}else return{minute:null,secord:null}},ee=T({name:"operation-page",setup(){const a=lt(),f=ut(),t=G({activityDetailId:a.query.id,timerStatus:!1,currentDate:[v().format("YYYY"),v().format("MM"),v().format("DD")],orchestraStatus:!1,orchestraColumns:[],programType:"",programTimerStatus:!1,deleteStatus:!1,teamStatus:!1,castStatus:!1,selectOrchestra:[],deleteIndex:0,startTime:v().format("YYYY-MM-DD"),name:"",type:"",detail:[{...z}]}),l=async()=>{try{const{data:s}=await E.get("/api-web/cooperationOrgan/musicGroupPage");(s||[]).forEach(u=>{t.orchestraColumns.push({text:u.name,value:u.id})})}catch(s){}},g=async()=>{try{const{data:s}=await E.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(o=>{t.selectOrchestra.subjectIdList.push(o.subjectId)})}catch(s){}},i=()=>{t.detail.push({...z})},r=s=>{t.detail.length<=1||(t.deleteIndex=s,t.deleteStatus=!0)},n=s=>{let u=0;return s.forEach(o=>{u+=o.studentCount}),u},m=s=>{var o,d;const u=[];(o=t.selectOrchestra.performerList)==null||o.forEach(h=>{s.includes(h.subjectId)&&u.push(h)}),(d=t.selectOrchestra.subjectAllList)==null||d.forEach(h=>{var b;const L=(b=t.selectOrchestra.performerList)==null?void 0:b.findIndex(_=>_.subjectId==h.subjectId);s.includes(h.subjectId)&&L<0&&u.push(h)}),t.selectOrchestra.performerList=u},j=s=>{const u=[];return s.map(o=>{let d=0;const h=[];o.studentList.forEach(L=>{L.selected&&(d++,h.push(L))}),d>0&&u.push({studentCount:h.length,subjectId:o.subjectId,subjectName:o.subjectName,studentList:h})}),u||[]},tt=async()=>{try{const{data:s}=await E.get("/api-web/schoolActivity/detail/"+t.activityDetailId),{detail:u,name:o,startTime:d,type:h}=s||{};t.startTime=v(d).format("YYYY-MM-DD"),t.name=o,t.type=h,t.currentDate=[v(d).format("YYYY"),v(d).format("MM"),v(d).format("DD")];const L=[];u.forEach(b=>{const _=b.attachmentUrl?b.attachmentUrl.split(","):[],R=[],M=[];_.forEach(k=>{mt(k,"image")?M.push(k):R.push(k)});const at={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(k=>Number(k)):[],time:b.time,performerList:j(b.studentList),attachmentUrl:_,attachmentVideoUrl:R,attachmentImgUrl:M};L.push(at)}),t.detail=L}catch(s){}};V(()=>{l(),t.activityDetailId&&tt()});const et=()=>{if(!t.name.trim())return y("请填写活动名称"),!1;if(t.name.length<3||t.name.length>15)return y("活动名称长度3~15"),!1;if(!t.type)return y("请选择活动类别"),!1;for(let s=0,u=t.detail.length;s<u;s++){const o=t.detail[s];if(!o.name.trim())return y("节目名称不能为空"),!1;if(!o.type)return y("请选择节目类型"),!1;if(!o.musicGroupId)return y("请选择表演乐团"),!1;if(o.subjectIdList.length<=0)return y("请选择表演团队"),!1;if(n(o.performerList)<=0)return y("请选择演员"),!1;if(!o.time){y("请输入节目时长");return}}return!0},st=async()=>{try{if(!et())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((o,d)=>{console.log(o),u.push({id:o.id||null,sort:d+1,name:o.name.trim(),type:o.type,musicGroupId:o.musicGroupId+"",subjectIdList:o.subjectIdList.join(","),studentNum:n(o.performerList),studentList:o.performerList,time:o.time,attachmentUrl:[...o.attachmentImgUrl,...o.attachmentVideoUrl].join(",")})}),s.detail=u,t.activityDetailId?await E.post("/api-web/schoolActivity/update",{hideLoading:!1,data:s}):await E.post("/api-web/schoolActivity/save",{hideLoading:!1,data:s}),f.back()}catch(s){}};return()=>e("div",{class:c.operation},[e(X,{title:t.activityDetailId?"编辑活动":"新增活动"},null),e(H,{inset:!0,class:c.topCellGroup},{default:()=>[e(I,{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(I,{label:"活动名称",inputAlign:"right",placeholder:"请填写活动名称",maxlength:15,modelValue:t.name,"onUpdate:modelValue":s=>t.name=s,autocomplete:"off"},null),e(I,{label:"活动类别",labelAlign:"top"},{input:()=>{let s;return e(q,{class:c.searchTypeFlex,modelValue:t.type,"onUpdate:modelValue":u=>t.type=u},Q(s=Object.keys(P).map(u=>e(w,{type:t.type===u?"primary":"default",round:!0},{default:()=>[e(K,{name:u},null),P[u]]})))?s:{default:()=>[s]})}})]}),t.detail.map((s,u)=>e(H,{inset:!0,class:c.topCellGroup},{default:()=>[e(D,{center:!0},{icon:()=>e(O,{name:Jt,class:c.iconImg},null),title:()=>e("div",{class:c.topTitle},[p("节目"),Y(u+1)]),value:()=>e(O,{name:Ht,class:[c.iconImg,t.detail.length<=1?c.disabled:""],onClick:()=>r(u)},null)}),e(I,{label:"节目名称",inputAlign:"right",placeholder:"请填写节目名称",maxlength:10,modelValue:s.name,"onUpdate:modelValue":o=>s.name=o,autocomplete:"off"},null),e(I,{label:"节目类型",inputAlign:"right",placeholder:"请填写节目",class:c.programType},{input:()=>{let o;return e(q,{class:[c.searchTypeFlex,c.small],modelValue:s.type,"onUpdate:modelValue":d=>s.type=d},Q(o=Object.keys(B).map(d=>e(w,{type:s.type===d?"primary":"default",round:!0},{default:()=>[e(K,{name:d},null),B[d]]})))?o:{default:()=>[o]})}}),e(I,{isLink:!0,label:"表演乐团",inputAlign:"right",readonly:!0,clearable:!1,modelValue:s.musicGroupName,"onUpdate:modelValue":o=>s.musicGroupName=o,onClick:()=>{if(t.orchestraColumns.length<=0){y("暂无乐团");return}t.orchestraStatus=!0,t.selectOrchestra=[],t.selectOrchestra=s},placeholder:"请选择表演乐团"},null),e(I,{isLink:!0,label:"表演团队",inputAlign:"right",readonly:!0,clearable:!1,onClick:()=>{if(!s.musicGroupId){y("请选择表演乐团");return}t.teamStatus=!0,t.selectOrchestra=[],t.selectOrchestra=s},placeholder:s.subjectIdList.length>0?"":"请选择表演乐团",border:s.subjectIdList.length<=0,class:s.subjectIdList.length>0?c.teamCell:""},null),s.subjectIdList.length>0&&e(D,{class:c.tagCell,center:!0},{title:()=>s.subjectIdList.map((o,d)=>{let h="";return s.subjectAllList.forEach(L=>{L.subjectId===o&&(h=L.subjectName)}),e(w,{type:"primary",plain:!0,class:c.tagItem,onClick:()=>{s.subjectIdList.splice(d,1),m(s.subjectIdList)}},{default:()=>[h,e(O,{name:"cross",class:c.closeable},null)]})})}),e(I,{isLink:!0,label:"演员",inputAlign:"right",readonly:!0,clearable:!1,onClick:()=>{if(s.subjectIdList.length<=0){y("请选择表演团队");return}t.selectOrchestra=[],t.selectOrchestra=s,t.castStatus=!0}},{input:()=>n(s.performerList)>0?e("div",{class:c.performance},[p("共 "),e("span",null,[n(s.performerList)]),p(" 名")]):e("div",{class:c.placeholder},[p("请选择演员")])}),e(I,{label:"节目时长",inputAlign:"right",onClick:()=>{t.selectOrchestra=[],t.selectOrchestra=s,t.programTimerStatus=!0},center:!0,placeholder:"请选择节目时长"},{input:()=>{const o=U(s.time);return e("div",{class:c.programTimer},[e("span",null,[o==null?void 0:o.minute]),p("分"),e("span",null,[o==null?void 0:o.secord]),p("秒")])}}),e(I,{label:"上传附件",labelAlign:"top"},{input:()=>e("div",{class:c.uploadGroup},[e(ct,{uploadIcon:it,maxCount:5,native:!0,modelValue:s.attachmentImgUrl,"onUpdate:modelValue":o=>s.attachmentImgUrl=o,style:{marginTop:"6px"}},{default:()=>[e(pt,{uploadIcon:dt,uploadType:"VIDEO",native:!0,uploadSize:50,accept:".mp4",maxCount:3,modelValue:s.attachmentVideoUrl,"onUpdate:modelValue":o=>s.attachmentVideoUrl=o},null)]})])})]})),e("div",{class:c.addButtonGroup},[e(A,{icon:"plus",block:!0,type:"primary",plain:!0,class:c.addButton,onClick:i},{default:()=>[p("添加节目")]})]),e(F,{position:"bottom"},{default:()=>[e("div",{class:["btnGroupFixed",c.bottonGroup]},[e(A,{type:"primary",round:!0,block:!0,onClick:st},{default:()=>[p("确认")]})])]}),e(x,{show:t.timerStatus,"onUpdate:show":s=>t.timerStatus=s,round:!0,position:"bottom"},{default:()=>[e(At,{modelValue:t.currentDate,"onUpdate:modelValue":s=>t.currentDate=s,formatter:rt,onCancel:()=>t.timerStatus=!1,onConfirm:({selectedValues:s})=>{t.startTime=s.join("-"),t.timerStatus=!1}},null)]}),e(x,{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,g()):t.orchestraStatus=!1}},null)]}),e(x,{show:t.programTimerStatus,"onUpdate:show":s=>t.programTimerStatus=s,round:!0,style:{width:"82%"}},{default:()=>[e(Qt,{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(x,{show:t.deleteStatus,"onUpdate:show":s=>t.deleteStatus=s,round:!0,style:{width:"82%"}},{default:()=>[e("div",{class:c.popupContainer},[e("h2",{class:c.popupTitle},[p("删除节目")]),e("div",{class:c.popupContent},[e("p",{class:c.tipContent},[p("删除"),e("span",null,[p("《节目"),Y(t.deleteIndex+1),p("》")]),p(",删除后内容不可恢复")])]),e("div",{class:["btnGroupPopup"]},[e(A,{type:"primary",round:!0,onClick:()=>{t.detail.splice(t.deleteIndex,1),t.deleteStatus=!1}},{default:()=>[p("确定")]}),e(A,{round:!0,onClick:()=>t.deleteStatus=!1},{default:()=>[p("取消")]})])])]}),e(x,{show:t.teamStatus,"onUpdate:show":s=>t.teamStatus=s,round:!0,position:"bottom",closeable:!0},{default:()=>[e(Zt,{show:t.teamStatus,performances:t.selectOrchestra.subjectAllList,selectIds:t.selectOrchestra.subjectIdList,onClose:()=>t.teamStatus=!1,onConfirm:s=>{t.selectOrchestra.subjectIdList=s,m(s),t.teamStatus=!1}},null)]}),e(ht,{modelValue:t.castStatus,"onUpdate:modelValue":s=>t.castStatus=s},{default:()=>[e(te,{subjectAllList:t.selectOrchestra.subjectAllList,performerList:t.selectOrchestra.performerList,"onUpdate:performerList":s=>t.selectOrchestra.performerList=s,onClose:()=>t.castStatus=!1,onConfirm:s=>{const u=s||[],o=[];u.forEach(d=>{o.push(d.subjectId)}),t.selectOrchestra.subjectIdList=o||[]}},null)]})])}}),Ae=Object.freeze(Object.defineProperty({__proto__:null,default:ee,formatterTimer:U},Symbol.toStringTag,{value:"Module"}));export{te as C,U as f,Ae as o};
|