1 |
- import{d as C,N as w,o as L,w as T,g as t,F as S,O as j,I as f,R as P,h as r,Y as R,V as U,U as B,M as y,a as D}from"./index-247d3e24.js";import{M as E}from"./index-dac59d42.js";import{S as V}from"./skeletion-index-modal-fd514aef.js";import{S as z,a as d}from"./index-e3ffd5d7.js";import{C as g}from"./index-ed333a3f.js";import{C as u}from"./index-67699b38.js";import{S as p}from"./index-7cd3ed79.js";import{b as M,d as O}from"./constant-5a53922c.js";import{f as H,C as G}from"./operation-6221b69f.js";import{M as X}from"./index-54482e53.js";import{T as k}from"./index-ea9d3b0e.js";import{R as v,C as h}from"./index-5f7723e9.js";import{I as F}from"./index-ea9f3b30.js";import"./toolsValidate-2f258ec3.js";import"./index-32d9aef2.js";import"./use-tab-status-59b61e82.js";import"./index.module-3b4cd265.js";import"./index-16d2f4c3.js";import"./deep-clone-80c66f92.js";import"./index-e5c250da.js";import"./index-c5c87b6c.js";import"./index-3ede1b54.js";import"./icon-check-active-15efb9a0.js";import"./icon-check-96610dda.js";import"./icon-student-default-4c78efb2.js";import"./index-9567dba6.js";import"./index-3fa002c0.js";const N="_detail_1g2en_1",_="_iconEdit_1g2en_1",q="_cellGroup_1g2en_4",x="_cellTitle_1g2en_7",K="_tag_1g2en_10",Q="_title_1g2en_18",Y="_cellTimerSkeleton_1g2en_25",W="_cellTimer_1g2en_25",J="_ing_1g2en_37",Z="_pTitle_1g2en_40",$="_pCellGroup_1g2en_46",tt="_imgType_1g2en_46",et="_time_1g2en_58",lt="_moreCell_1g2en_62",at="_valueClass_1g2en_66",st="_item_1g2en_71",ot="_label_1g2en_74",it="_content_1g2en_77",nt="_photoList_1g2en_85",rt="_photo_1g2en_85",ut="_photoMore_1g2en_103",e={detail:N,iconEdit:_,cellGroup:q,cellTitle:x,tag:K,title:Q,cellTimerSkeleton:Y,cellTimer:W,ing:J,pTitle:Z,pCellGroup:$,imgType:tt,time:et,moreCell:lt,valueClass:at,item:st,label:ot,content:it,photoList:nt,photo:rt,photoMore:ut},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4Zn1eS9wDXB2NJYBgIB7HlCZSZt2rKDxwxLCVQuFgI+BDOi3TVaaBUkBsqxkQ3Qee5M4D6OL5Nm/YWvUGC85gnBd4+Z++vu8Iw3gSa+Hh5fyBrsfZgl8xEvsxifYYlub7cXw36DxouO8KKH0jGPksb7hOavT0b9j/bfYDg4t01SWQvFo4SCPzPzSGMdQOBzZBWsWX+Gsqv1wl23NYoWzcXgLvyU0xh9JVM3NymJ7gI3cRlLRXyiQ/fAGh6tTMXF428HeU9QNhJkw3RFbs+6rhJGnoiy2gt3OF1vt9VZyURI6IdgcjmwOP/hiS+C3D2MNCl05JupQP3GjdiMXiaPx4uMsOXedYQX9xLF93wzt/zVO5+Gt0tNPLlyWVPoLPGGOQKPfm4IAAAAASUVORK5CYII=",dt=C({name:"skeleton-modal",props:{show:{type:Boolean,default:!1},showCount:{type:Array,default:()=>[1,2,3]},isLink:{type:Boolean,default:!0}},setup(s,{slots:m}){const l=w({loading:!1});return L(()=>{l.loading=s.show}),T(()=>s.show,()=>{l.loading=s.show}),()=>t(z,{loading:l.loading,style:"flex-wrap: wrap"},{template:()=>t("div",{style:{height:s.isLink?"calc(100vh - var(--header-height))":"auto",overflow:"hidden",width:"100%"}},[s.showCount.map(()=>t(S,null,[t(d,{rowWidth:"20%",class:e.pTitle},null),t(g,{inset:!0,class:e.pCellGroup},{default:()=>[t(u,{center:!0},{title:()=>t(d,{class:e.title,rowWidth:"60%"},null),value:()=>t(d,{class:e.time,rowWidth:"30%"},null)}),t(u,{center:!0,class:e.moreCell,valueClass:e.valueClass},{default:()=>[t(d,{class:e.item,rowWidth:"90%"},null),t(d,{class:e.item,rowWidth:"90%"},null),t("div",{class:e.photoList},[t(p,{class:e.photo},null),t(p,{class:e.photo},null),t(p,{class:e.photo},null),t(p,{class:e.photo},null)])]})]})]))]),default:()=>m.default&&m.default()})}}),mt="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAADAAAAAwCAYAAABXAvmHAAAAAXNSR0IArs4c6QA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HR6VR6C/fx3dsXEYzDtzNqsBDnQ8jqtFgBWt4giI+GAPg9/MQXmWjZQfob1mnfV/rbIIxKMRAvqWP1koyYbRitBjv+ZbWSqHQGzgXhJiHOCNFlhm4Gm0hfsLLYulIDAM4FFr0nzl9ZUFKu2HW+lSahLAPRmwROgxguFO89nn8+0zDONFImpYg0y2vM7MQ4lEor3YfcDpAUe2QCVGB7uYeflQhOgkn0/uQiSie73eTUKIvwB4CgGzxg4ppd4tioCLI6blCls8epiAbmu9P8e64UNozwXz2QWBM3Nzcy0zMzMLRREwX84c8gkhdjDzWm5fGULDwzeLhiXzv22jIdCFQPj3XBCFQoiIrjDz6WQy+eH09PS/dl6y3YntFJR7vEag5oEiLfAfFbR8T/mhjH4AAAAASUVORK5CYII=";function pt(s){return typeof s=="function"||Object.prototype.toString.call(s)==="[object Object]"&&!U(s)}const kt=C({name:"detail-page",setup(){const s=B(),m=y(),l=w({id:s.query.id,imageShow:!1,imagePreview:[],startPosition:0,headerLoading:!0,detailLoading:!0,detail:[],headerDetail:{},castStatus:!1,studentAllList:[]}),I=async()=>{try{const{data:i}=await D.get("/api-web/schoolActivity/detail/"+l.id),{detail:a,...n}=i||{};a.forEach(o=>{o.attachmentUrl=o.attachmentUrl?o.attachmentUrl.split(","):[]}),l.detail=a,l.headerDetail={...n}}catch(i){}finally{l.headerLoading=!1,l.detailLoading=!1}},b=i=>{const a=[];i.map(n=>{let o=0;const c=[];n.studentList.forEach(A=>{A.selected&&(o++,c.push(A))}),o>0&&a.push({studentCount:n.studentCount,subjectId:n.subjectId,subjectName:n.subjectName,studentList:c})}),l.studentAllList=a,l.castStatus=!0};return L(()=>{I()}),()=>{let i;return t("div",{class:e.detail},[t(j,null,{right:()=>t(f,{name:mt,class:e.iconEdit,onClick:()=>{m.push({path:"/activity-record-operation",query:{id:l.id}})}},null)}),t(V,{show:l.headerLoading,"onUpdate:show":a=>l.headerLoading=a,showCount:[1],isLink:!1},{default:()=>[t(g,{inset:!0,class:e.cellGroup},{default:()=>[t(u,{center:!0,class:e.cellTitle},{icon:()=>t(k,{plain:!0,type:"primary",class:e.tag},{default:()=>[M[l.headerDetail.type]]}),title:()=>t("div",{class:[e.title,"van-ellipsis"]},[l.headerDetail.name])}),t(u,{class:e.cellTimer,center:!0,title:`活动日期:${P(l.headerDetail.startTime).format("YYYY年MM月DD日")}`,value:O[l.headerDetail.status],valueClass:l.headerDetail.status==="PROCESSING"?e.ing:""},null)]})]}),t(dt,{show:l.detailLoading,"onUpdate:show":a=>l.detailLoading=a,showCount:[1,2]},pt(i=l.detail.map((a,n)=>t(S,null,[t("div",{class:e.pTitle},[r("节目"),R(n+1)]),t(g,{inset:!0,class:e.pCellGroup},{default:()=>[t(u,{center:!0},{icon:()=>t("img",{src:ct,class:e.imgType},null),title:()=>t("div",{class:[e.title,"van-ellipsis"]},[a.name]),value:()=>{const o=H(a.time);return t("span",{class:e.time},[o.minute,r("分"),o.secord,r("秒")])}}),t(u,{center:!0,class:e.moreCell,valueClass:e.valueClass},{default:()=>[t(v,{class:e.item},{default:()=>[t(h,{span:5,class:e.label},{default:()=>[r("表演乐团")]}),t(h,{span:19,class:e.content},{default:()=>[a.musicGroupName,t("span",{onClick:()=>{a.studentNum<=0||b(a.studentList)}},[r("共"),a.studentNum,r("名 "),t(f,{name:"arrow"},null)])]})]}),t(v,{class:e.item,style:{marginBottom:"0"}},{default:()=>[t(h,{span:5,class:e.label},{default:()=>[r("表演团队")]}),t(h,{span:19,class:e.content},{default:()=>[a.subjectNameList]})]}),a.attachmentUrl?t("div",{class:e.photoList},[a.attachmentUrl.map((o,c)=>t("div",{class:e.photo,onClick:()=>{l.imagePreview=a.attachmentUrl,l.imageShow=!0,l.startPosition=c}},[t(F,{src:o,fit:"contain"},null),a.attachmentUrl.length>4&&c===3?t("div",{class:e.photoMore},[r("+8")]):""]))]):""]})]})])))?i:{default:()=>[i]}),t(E,{show:l.imageShow,"onUpdate:show":a=>l.imageShow=a,images:l.imagePreview,startPosition:l.startPosition},null),t(X,{modelValue:l.castStatus,"onUpdate:modelValue":a=>l.castStatus=a},{default:()=>[t(G,{type:"look",subjectAllList:l.studentAllList,onClose:()=>l.castStatus=!1},null)]})])}}});export{kt as default};
|