12345 |
- <<<<<<<< HEAD:dist/assets/index-c00271a2.js
- import{d as w,O as M,i as d,o as A,g as a,R as x,B as c,h as p,F as N,T as D}from"./index-6ef77773.js";import{M as F}from"./index-884fd858.js";import{M as I}from"./index-fbc0b234.js";import{s as y,M as R,A as C,a as O,b as P,c as T,e as L}from"./api-5310e764.js";import{S as B}from"./skeletion-index-fb7ee6ea.js";import{M as V}from"./index-03f0ddaa.js";import{D as E,a as G}from"./index-325981c7.js";import{P as j}from"./index-cbfe6e55.js";import{L as U}from"./index-b948e350.js";import"./index-617c3e5c.js";import"./index-2ab268f1.js";import"./icon-student-default-4c78efb2.js";import"./index-6cce5316.js";import"./index-54d65aa5.js";import"./index-46050490.js";import"./index-e5198b82.js";import"./use-tab-status-875823de.js";const le=w({name:"student-manage",setup(){const l=M({page:1,rows:20,keyword:"",musicGroupId:"",statusList:["QUIT"],subjectId:"",vipFlag:""}),t=M({skelet:!0,refresh:!1,loading:!1,finshed:!1,list:[],musicGroups:[{text:"全部乐团",value:""}],musicGroupName:"全部乐团",subjects:[{text:"全部声部",value:""}],subjectName:"全部声部"}),m=d(),f=d(),g=d(),h=d(),S=()=>{P().then(e=>{let s=Array.isArray(e==null?void 0:e.data)?e.data:[];s.length&&(s=[{name:"全部乐团",id:""}].concat(s),t.musicGroups=s.map(o=>({text:o.name,value:o.id})))})},k=()=>{T().then(e=>{let s=Array.isArray(e==null?void 0:e.data)?e.data:[];s.length&&(s=[{name:"全部声部",id:""}].concat(s),t.subjects=s.map(o=>({text:o.name,value:o.id})))})},v=async()=>{t.loading=!0,L({...l,vipFlag:l.vipFlag==="1"?!0:l.vipFlag==="2"?!1:""}).then(e=>{var o;t.refresh&&(t.list=[]);const s=Array.isArray((o=e==null?void 0:e.data)==null?void 0:o.rows)?e.data.rows:[];t.list=t.list.concat(s),(!s.length||s.length<l.rows)&&(t.finshed=!0),l.page++}).catch(()=>{t.finshed=!0}).finally(()=>{setTimeout(()=>{t.loading=!1,t.refresh=!1,t.skelet=!1},500)})},b=()=>{l.page=1,t.refresh=!0,v()};return A(()=>{S(),k()}),()=>a("div",{class:y.container},[a(I,{position:"top"},{default:()=>[a(x,null,null),a(F,{placeholder:"请输入学员姓名",onSearch:e=>{l.keyword=e,b()}},null),a(E,null,{default:()=>[a(G,{ref:m,title:t.musicGroupName},{default:()=>[a(j,{ref:f,showToolbar:!1,visibleOptionNum:5,columns:t.musicGroups},null),a("div",{class:["btnGroupPopup","van-hairline--top"]},[a(c,{round:!0,onClick:()=>{var e;(e=m.value)==null||e.toggle(!1)}},{default:()=>[p("取消")]}),a(c,{disabled:!t.musicGroups.length,type:"primary",round:!0,onClick:()=>{var s,o,n,u,i,r;(o=(s=f.value)==null?void 0:s.confirm)==null||o.call(s);const e=(i=(u=(n=f.value)==null?void 0:n.getSelectedOptions)==null?void 0:u.call(n))==null?void 0:i[0];e&&(l.musicGroupId=e.value,t.musicGroupName=e.text,b()),(r=m.value)==null||r.toggle(!1)}},{default:()=>[p("确定")]})])]}),a(G,{ref:g,title:t.subjectName},{default:()=>[a(j,{ref:h,showToolbar:!1,visibleOptionNum:5,columns:t.subjects},null),a("div",{class:["btnGroupPopup","van-hairline--top"]},[a(c,{round:!0,onClick:()=>{var e;(e=g.value)==null||e.toggle(!1)}},{default:()=>[p("取消")]}),a(c,{disabled:!t.subjects.length,type:"primary",round:!0,onClick:()=>{var s,o,n,u,i,r;(o=(s=h.value)==null?void 0:s.confirm)==null||o.call(s);const e=(i=(u=(n=h.value)==null?void 0:n.getSelectedOptions)==null?void 0:u.call(n))==null?void 0:i[0];console.log(e),l.subjectId=e.value,t.subjectName=e.text,b(),(r=g.value)==null||r.toggle(!1)}},{default:()=>[p("确定")]})])]})]})]}),a(V,{modelValue:t.refresh,"onUpdate:modelValue":e=>t.refresh=e,onRefresh:()=>{l.page=1,t.finshed=!1,v()}},{default:()=>[a(U,{class:y.list,loading:t.loading,finished:t.finshed,onLoad:()=>{t.loading=!0,console.log("触底了"),v()}},{default:()=>[a(B,{loading:t.skelet},{default:()=>[a(N,null,[t.list.map(e=>a("div",{class:y.student},[a(R,{item:e},null),a(C,{item:e},null),a(O,{item:e},null)])),!t.loading&&!t.list.length&&a(D,{description:"暂无数据",style:{minHeight:"100%"}},null)])]})]})]})])}});export{le as default};
- ========
- import{d as w,O as M,i as d,o as A,g as a,R as x,B as c,h as p,F as N,T as D}from"./index-dbd58bee.js";import{M as F}from"./index-f894e88f.js";import{M as I}from"./index-8b3add60.js";import{s as y,M as R,A as C,a as O,b as P,c as T,e as L}from"./api-f7a373f4.js";import{S as B}from"./skeletion-index-ee02825c.js";import{M as V}from"./index-88ef4b67.js";import{D as E,a as G}from"./index-751eeaa2.js";import{P as j}from"./index-96fefea8.js";import{L as U}from"./index-f53d898e.js";import"./index-e510518a.js";import"./index-56f3e976.js";import"./icon-student-default-4c78efb2.js";import"./index-56f13818.js";import"./index-8ef299c2.js";import"./index-360b2184.js";import"./index-96c8c221.js";import"./use-tab-status-855575aa.js";const le=w({name:"student-manage",setup(){const l=M({page:1,rows:20,keyword:"",musicGroupId:"",statusList:["QUIT"],subjectId:"",vipFlag:""}),t=M({skelet:!0,refresh:!1,loading:!1,finshed:!1,list:[],musicGroups:[{text:"全部乐团",value:""}],musicGroupName:"全部乐团",subjects:[{text:"全部声部",value:""}],subjectName:"全部声部"}),m=d(),f=d(),g=d(),h=d(),S=()=>{P().then(e=>{let s=Array.isArray(e==null?void 0:e.data)?e.data:[];s.length&&(s=[{name:"全部乐团",id:""}].concat(s),t.musicGroups=s.map(o=>({text:o.name,value:o.id})))})},k=()=>{T().then(e=>{let s=Array.isArray(e==null?void 0:e.data)?e.data:[];s.length&&(s=[{name:"全部声部",id:""}].concat(s),t.subjects=s.map(o=>({text:o.name,value:o.id})))})},v=async()=>{t.loading=!0,L({...l,vipFlag:l.vipFlag==="1"?!0:l.vipFlag==="2"?!1:""}).then(e=>{var o;t.refresh&&(t.list=[]);const s=Array.isArray((o=e==null?void 0:e.data)==null?void 0:o.rows)?e.data.rows:[];t.list=t.list.concat(s),(!s.length||s.length<l.rows)&&(t.finshed=!0),l.page++}).catch(()=>{t.finshed=!0}).finally(()=>{setTimeout(()=>{t.loading=!1,t.refresh=!1,t.skelet=!1},500)})},b=()=>{l.page=1,t.refresh=!0,v()};return A(()=>{S(),k()}),()=>a("div",{class:y.container},[a(I,{position:"top"},{default:()=>[a(x,null,null),a(F,{placeholder:"请输入学员姓名",onSearch:e=>{l.keyword=e,b()}},null),a(E,null,{default:()=>[a(G,{ref:m,title:t.musicGroupName},{default:()=>[a(j,{ref:f,showToolbar:!1,visibleOptionNum:5,columns:t.musicGroups},null),a("div",{class:["btnGroupPopup","van-hairline--top"]},[a(c,{round:!0,onClick:()=>{var e;(e=m.value)==null||e.toggle(!1)}},{default:()=>[p("取消")]}),a(c,{disabled:!t.musicGroups.length,type:"primary",round:!0,onClick:()=>{var s,o,n,u,i,r;(o=(s=f.value)==null?void 0:s.confirm)==null||o.call(s);const e=(i=(u=(n=f.value)==null?void 0:n.getSelectedOptions)==null?void 0:u.call(n))==null?void 0:i[0];e&&(l.musicGroupId=e.value,t.musicGroupName=e.text,b()),(r=m.value)==null||r.toggle(!1)}},{default:()=>[p("确定")]})])]}),a(G,{ref:g,title:t.subjectName},{default:()=>[a(j,{ref:h,showToolbar:!1,visibleOptionNum:5,columns:t.subjects},null),a("div",{class:["btnGroupPopup","van-hairline--top"]},[a(c,{round:!0,onClick:()=>{var e;(e=g.value)==null||e.toggle(!1)}},{default:()=>[p("取消")]}),a(c,{disabled:!t.subjects.length,type:"primary",round:!0,onClick:()=>{var s,o,n,u,i,r;(o=(s=h.value)==null?void 0:s.confirm)==null||o.call(s);const e=(i=(u=(n=h.value)==null?void 0:n.getSelectedOptions)==null?void 0:u.call(n))==null?void 0:i[0];console.log(e),l.subjectId=e.value,t.subjectName=e.text,b(),(r=g.value)==null||r.toggle(!1)}},{default:()=>[p("确定")]})])]})]})]}),a(V,{modelValue:t.refresh,"onUpdate:modelValue":e=>t.refresh=e,onRefresh:()=>{l.page=1,t.finshed=!1,v()}},{default:()=>[a(U,{class:y.list,loading:t.loading,finished:t.finshed,onLoad:()=>{t.loading=!0,console.log("触底了"),v()}},{default:()=>[a(B,{loading:t.skelet},{default:()=>[a(N,null,[t.list.map(e=>a("div",{class:y.student},[a(R,{item:e},null),a(C,{item:e},null),a(O,{item:e},null)])),!t.loading&&!t.list.length&&a(D,{description:"暂无数据",style:{minHeight:"100%"}},null)])]})]})]})])}});export{le as default};
- >>>>>>>> 87d4d1b1 (更新):dist/assets/index-eb42ac95.js
|