detail-05a1f6b5.js 22 KB

1
  1. import{d as z,O as C,o as G,w as L,g as e,i as R,I as h,S as T,h as i,F as x,B as E,T as q,X as N,W as O,a as V,f as b,R as Y}from"./index-071fe22e.js";import{M as Q}from"./index-9eb775de.js";import{i as J}from"./icon-timer-ac089c62.js";import{i as K}from"./icon-teacher-default-a5bec550.js";import{i as Z}from"./icon-edit-9f02937c.js";import{R as $,a as ee,i as te,M as ae,b as le,d as se}from"./deep-clone-a1b2826f.js";import{S as oe,b as w,a as v}from"./index-ba01ad91.js";import{C as j}from"./index-5ff8e868.js";import{C as f}from"./index-02fc6d53.js";import{i as ue,M as re}from"./index-577b32ce.js";import{M as ne}from"./index-627a2934.js";import{e as d,p as m,a as D,c as H}from"./constant-a400d214.js";import{M as ie}from"./index-6bc7eb19.js";import{c as U}from"./toolsValidate-2f258ec3.js";import{L as ce}from"./index-378e01f1.js";import{I as k}from"./index-71c05002.js";import{T as F}from"./index-3c908e76.js";import{C as pe,a as ve}from"./index-94a14f02.js";import{F as de}from"./index-df3b588b.js";import{D as me,a as ye}from"./index-e9165e94.js";import{T as fe,a as P}from"./index-119ece69.js";import"./use-tab-status-9f8207e0.js";const Ae="_searchContainer_ctasv_15",Te="_searchTitle_ctasv_23",be="_searchTypeGroup_ctasv_31",he="_searchTypeFlex_ctasv_38",De="_searchTypeItem_ctasv_41",xe="_success_ctasv_50",Ee="_error_ctasv_53",Se="_cellGroup_ctasv_74",ge="_tips_ctasv_77",Ve="_iconTips_ctasv_88",He="_timerCell_ctasv_93",Fe="_iconTimer_ctasv_99",Le="_timer_ctasv_93",ze="_eStatus_ctasv_108",Ce="_over_ctasv_116",Ge="_evaluateResult_ctasv_119",we="_iconFace_ctasv_124",Ue="_iconEdit_ctasv_132",ke="_usernameCell_ctasv_140",Pe="_iconTeacher_ctasv_146",Xe="_classname_ctasv_152",Be="_photoList_ctasv_162",Me="_photo_ctasv_162",Re="_photoMore_ctasv_185",je="_resultCell_ctasv_200",Ie="_result_ctasv_200",We="_typeGroup_ctasv_210",_e="_operationCell_ctasv_244",qe="_operationTitle_ctasv_247",Ne="_questionContent_ctasv_264",Oe="_uploadGroup_ctasv_275",Ye="_btnGroup_ctasv_283",Qe="_singleBtn_ctasv_288",a={"patrol-evaluation-detail":"_patrol-evaluation-detail_ctasv_1",searchContainer:Ae,searchTitle:Te,searchTypeGroup:be,searchTypeFlex:he,searchTypeItem:De,success:xe,error:Ee,"is-active":"_is-active_ctasv_69",cellGroup:Se,tips:ge,iconTips:Ve,timerCell:He,iconTimer:Fe,timer:Le,eStatus:ze,over:Ce,evaluateResult:Ge,iconFace:we,iconEdit:Ue,usernameCell:ke,iconTeacher:Pe,classname:Xe,photoList:Be,photo:Me,photoMore:Re,resultCell:je,result:Ie,typeGroup:We,operationCell:_e,operationTitle:qe,questionContent:Ne,uploadGroup:Oe,btnGroup:Ye,singleBtn:Qe},X="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACQAAAAkCAMAAADW3miqAAACB1BMVEUAAAD9xFL+xVH+xVH/x1D+xlL/zFD/01z/yE3/yEn/2GP+x1X+xlP+xlH/4nD/yE//5Hf/1lr/5Hb/1lr9xFD+x1X/4XP/3mv/5Hb/327/2mH/4nX/5Xb/4W7+yFT9xkz/5Hb/11r/zlP/4W7/6Hz/223/0V3+xlL+xlH/zkz/01b/0E/+xlL+yFb+ylj/2GD/01T/3m//0Ez+xFNpU0L/3Gj/22XwZmn/mKD/137/2F7/2WL/3Wv/327/3mz/1lv/1VrSrVH/1Fn/2GH/z03/zUn/2Xz/4HD/0FD/3nb/0lP/23j/2Hj9xFEwMDD/23v9x1b/nZn/3nn/4nX/3nP/0WDnglz+xk//zEdzWkP/v3f/4nL/3XD/1nD/1mv9uWb/2GX/1GX8lp7/pJH/rIr/tYb9p4b+q37/13X9sXT/2nP/1nP/03D/2W/oZmb31GLlbmLgwV3xlFz9wFnlwliyXVbpo1WuXFWkW1P3vlLApFDutU7+yUy/mEqciUqWhEqTdEaMekWJbERxVER2aE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dJoa6MY1EaDaGeCIGbzrsy83XWz2exMhH3lm3PPmblz77kj9Pj0aWEnko4iMoKyG9jWgH9D+IhqjYhpKc58WY1Gui3o1PAOcuuvASeBXK9NAHXgEfU/E3L89VwndoWAVuPDqD5GZbOHePmy6DwiJ6RonrUvLBPQSnyRVG8hEq2JvAlWTYnkkiTmdvNXS8DtfEmr/03eLrJOis2TOAGX84GBd560fAW5DLoE3ASGVj2lTdfi4j57J5lAOb4PnO6ZFmFMEjPp8JX4CsoNTxofSMmcEa3mh0jls7dahElJzFi2ocJ10Kve6op0l2i1cJ5U73gvVfWhHJ05lQnk74Kc88ZEckG0Ej9HGfGCYVpKZrSR0ingmDdGqImW4w/AHi8Y3kjJDDcEXgIHAmJmrcA8sMkLFj5JYqxd2KJ4C+z3xsBCuIAFl4zrbi3n50C2hwqEpgg2DG7k55bf5H78AgYDBGbXcsmW7wmw4O2Zfz5RCy/TgO2ugLgyDW20LPp9g2RvgF4d22jBVgEvSMwhR2x7Bw4GWYUTCDE7kQlJXo07fKUwjqodSN2/TrNzQX67/g7R2YwxvQds7cpuZ0KnXTeBfR04LZF+jsyWSD+HfnteXQkTHUG1+7NFpAZpz2fLX+Wf82tkASuqAAAAAElFTkSuQmCC",et=z({name:"skeleton-modal",props:{show:{type:Boolean,default:!1},showCount:{type:Array,default:()=>[1,2,3,4,5,6]},isLink:{type:Boolean,default:!0}},setup(r,{slots:s}){const l=C({loading:!1});return G(()=>{l.loading=r.show}),L(()=>r.show,()=>{l.loading=r.show}),()=>e(oe,{loading:l.loading,style:"flex-wrap: wrap"},{template:()=>e("div",{style:{height:"calc(100vh - var(--header-height) - var(--van-tabs-line-height))",overflow:"hidden",width:"100%"}},[r.showCount.map(()=>e(j,{inset:!0,class:a.cellGroup},{default:()=>[e(f,{center:!0,class:a.timerCell,border:!1},{icon:()=>e(w,{class:a.iconTimer},null),title:()=>e("div",{class:a.timer,style:{width:"120px"}},[e(v,null,null)]),value:()=>e("div",{class:a.eStatus},[e(v,{rowWidth:"50%"},null)])}),e(f,{center:!0,class:a.usernameCell},{icon:()=>e(w,{class:a.iconTeacher},null),title:()=>e("div",null,[e("div",{class:a.classname},[e(v,{rowWidth:"50%"},null)]),e("div",{class:a.name,style:{marginTop:"4px"}},[e(v,{rowWidth:"50%"},null)])]),value:()=>e("div",{class:a.photoList},[e(v,{class:a.photo},null),e(v,{class:a.photo},null),e(v,{class:a.photo},null)])})]}))]),default:()=>s.default&&s.default()})}});function B(r){return typeof r=="function"||Object.prototype.toString.call(r)==="[object Object]"&&!N(r)}const M=z({name:"detail-list",props:{type:{type:String,default:""},evaluateStatus:{type:String,default:""},problemType:{type:String,default:""},courseType:{type:String,default:""},status:{type:String,default:""},activeTab:{type:String,default:"NotEvaluated"}},setup(r){const s=O(),l=C({isClick:!1,imageShow:!1,startPosition:0,imagePreview:[],listState:{dataShow:!0,loading:!0,finished:!1,refreshing:!1},params:{evaluateFlag:r.type==="Evaluated",evaluateStatus:"",problemType:"",courseType:"",status:"",startTime:s.query.date||"",endTime:s.query.date||"",page:1,rows:20},changeType:null,questionType:null,evaluateList:[],problemTypeList:[],list:[],btnLoading:!1}),c=R([]),u=()=>{l.params.page=1,l.listState.refreshing=!0,S()},S=async()=>{try{if(l.isClick)return;l.isClick=!0;const{data:t}=await V.post("/api-web/coursePatrolEvaluation/page",{data:l.params}),n=t||{},p=n.rows||[];p.forEach(o=>{const y=o.attachmentUrl?o.attachmentUrl.split(","):[],A=o.problemType?o.problemType.split(","):[];o.problemTypeList=A,o.submitEvaluateStatus=o.evaluateStatus||"",o.submitProblemType=A||[],o.submitProblemDesc=o.problemDesc||"",o.submitVideoList=[],o.submitImgList=[],y.forEach(g=>{U(g,"image")?o.submitImgList.push(g):o.submitVideoList.push(g)}),o.attachmentUrlList=y||[],o.evaluateFlag||(o.isEdit=!0),T(T().format("YYYY-MM-DD")).isAfter(T(o.courseDate).format("YYYY-MM-DD"))&&!o.evaluateFlag&&(o.isEdit=!1,o.isDisabled=!0)}),l.listState.refreshing?c.value=p||[]:c.value=c.value.concat(p||[]),l.listState.finished=n.pageNo>=n.totalPage,l.params.page=n.pageNo+1}catch(t){l.listState.finished=!0}finally{setTimeout(()=>{l.listState.dataShow=c.value.length>0,l.listState.refreshing=!1,l.listState.loading=!1,l.isClick=!1},300)}},I=async t=>{try{const n=[...t.submitImgList,...t.submitVideoList];if(!t.submitEvaluateStatus){b("请选择评价");return}if(t.submitEvaluateStatus==="UNQUALIFIED"){if(!t.submitProblemType||t.submitProblemType&&t.submitProblemType.length<=0){b("请选择问题类型");return}if(!t.submitProblemDesc){b("请输入问题描述");return}if(t.submitProblemDesc.length<3){b("问题描述最少输入3个字");return}if((t.submitProblemDesc.length<3||t.submitProblemDesc.length<=50)&&n.length<=0){b("请上传附件");return}}const p={id:t.id,evaluateStatus:t.submitEvaluateStatus,problemType:t.submitProblemType.join(","),problemDesc:t.submitProblemDesc,attachmentUrl:n.join(",")};l.btnLoading=!0,t.evaluateFlag?await V.post("/api-web/coursePatrolEvaluation/update",{data:p}):await V.post("/api-web/coursePatrolEvaluation/save",{data:{...p,courseScheduleId:t.courseScheduleId}}),l.btnLoading=!1,c.value=[],u()}catch(n){l.btnLoading=!1}},W=(t,n)=>{l.imagePreview=se(t),l.imageShow=!0,l.startPosition=n},_=t=>t==="EXCELLENT"?X:t==="GOOD"?Je:t==="QUALIFIED"?Ke:t==="UNQUALIFIED"?Ze:X;return G(()=>{for(const t in d)Object.prototype.hasOwnProperty.call(d,t)&&l.evaluateList.push({text:d[t],value:t});for(const t in m)Object.prototype.hasOwnProperty.call(m,t)&&l.problemTypeList.push({text:m[t],value:t});S()}),L(()=>[r.evaluateStatus,r.problemType,r.courseType,r.status],()=>{l.params.evaluateStatus=r.evaluateStatus,l.params.problemType=r.problemType,l.params.courseType=r.courseType,l.params.status=r.status,c.value=[],u()}),L(()=>r.activeTab,()=>{r.type===r.activeTab&&(l.params.evaluateStatus=r.evaluateStatus,l.params.problemType=r.problemType,l.params.courseType=r.courseType,l.params.status=r.status,c.value=[],u())}),()=>e("div",null,[e(et,{show:l.listState.loading,"onUpdate:show":t=>l.listState.loading=t},{default:()=>[e(ne,{modelValue:l.listState.refreshing,"onUpdate:modelValue":t=>l.listState.refreshing=t,onRefresh:()=>u(),style:{minHeight:"calc(100vh - var(--header-height) - var(--van-tabs-line-height))"}},{default:()=>[e(ce,{finished:l.listState.finished,finishedText:" ",style:{overflow:"hidden",marginBottom:"18px"},onLoad:S,offset:100,immediateCheck:!1},{default:()=>[l.listState.dataShow?c.value.map(t=>{let n,p;return e(j,{inset:!0,class:a.cellGroup},{default:()=>[e(f,{center:!0,class:a.timerCell,border:!1},{icon:()=>e(h,{name:J,class:a.iconTimer},null),title:()=>e("div",{class:a.timer},[T(t.startClassTime).format("YYYY-MM-DD HH:mm"),i("~"),T(t.endClassTime).format("HH:mm")]),value:()=>e("div",{class:a.eStatus,onClick:()=>{t.isDisabled||(t.isEdit=!0)}},[t.evaluateFlag?e(x,null,[e("div",{class:a.evaluateResult},[e(h,{name:_(t.evaluateStatus),class:a.iconFace},null),e("span",{class:[a.sLevel,t.evaluateStatus==="UNQUALIFIED"?a.error:a.success]},[d[t.evaluateStatus]])]),e(h,{name:Z,class:a.iconEdit},null)]):e("span",{class:[a.sLevel,t.courseStatus==="UNDERWAY"?a.success:"",t.courseStatus=="OVER"?a.over:""]},[D[t.courseStatus]])])}),e(f,{center:!0,class:a.usernameCell},{icon:()=>e(k,{src:t.teacherAvatar||K,class:a.iconTeacher,fit:"cover"},null),title:()=>e("div",null,[e("div",{class:a.classname},[t.courseName]),e("div",{class:a.name},[t.teacherName])]),value:()=>e("div",{class:a.photoList},[t.attachmentUrlList.map((o,y)=>y<3&&e("div",{class:a.photo,onClick:A=>{A.stopPropagation(),A.preventDefault(),W(t.attachmentUrlList,y)}},[U(o,"image")?e(k,{src:o,fit:"cover"},null):e("video",{poster:ue,src:o+"#t=1,4",controls:!1},null),t.attachmentUrlList.length>3&&y===2?e("div",{class:a.photoMore},[i("+"),t.attachmentUrlList.length-3]):""]))])}),(t.submitProblemType.length>0||t.problemDesc)&&!t.isEdit?e(f,{center:!0,class:a.resultCell},{default:()=>[t.problemTypeList.length>0?e("div",{class:a.typeGroup},[t.problemTypeList.map(o=>e(F,{type:"primary",plain:!0},{default:()=>[m[o]]}))]):"",t.problemDesc?e("div",{class:a.result},[t.problemDesc]):""]}):"",t.isEdit&&t.courseStatus!="NOT_START"?e(f,{center:!0,class:a.operationCell},{default:()=>[e($,{class:a.typeGroup,modelValue:t.submitEvaluateStatus,"onUpdate:modelValue":o=>t.submitEvaluateStatus=o},B(n=l.evaluateList.map(o=>e(F,{type:t.submitEvaluateStatus===o.value?"primary":"default",plain:!0},{default:()=>[e(ee,{name:o.value},null),o.text]})))?n:{default:()=>[n]}),t.submitEvaluateStatus==="UNQUALIFIED"?e(x,null,[e("div",{class:a.operationTitle},[i("问题类型")]),e(pe,{class:a.typeGroup,modelValue:t.submitProblemType,"onUpdate:modelValue":o=>t.submitProblemType=o},B(p=l.problemTypeList.map(o=>e(F,{type:t.submitProblemType.includes(o.value)?"primary":"default",plain:!0},{default:()=>[e(ve,{name:o.value},null),o.text]})))?p:{default:()=>[p]}),e("div",{class:a.operationTitle},[i("问题描述")]),e(de,{type:"textarea",rows:2,modelValue:t.submitProblemDesc,"onUpdate:modelValue":o=>t.submitProblemDesc=o,maxlength:50,class:a.questionContent,placeholder:"请输入问题描述...",border:!1},null)]):"",e("div",{class:a.operationTitle},[i("上传附件")]),e("div",{class:a.uploadGroup},[e(re,{uploadIcon:te,maxCount:5,native:!0,modelValue:t.submitImgList,"onUpdate:modelValue":o=>t.submitImgList=o},{default:()=>[e(ae,{uploadIcon:le,uploadType:"VIDEO",accept:".mp4",uploadSize:50,native:!0,maxCount:3,modelValue:t.submitVideoList,"onUpdate:modelValue":o=>t.submitVideoList=o},null)]})]),e("div",{class:[a.btnGroup,t.evaluateFlag?"":a.singleBtn]},[t.evaluateFlag?e(E,{type:"default",round:!0,block:!0,onClick:()=>t.isEdit=!1},{default:()=>[i("取消")]}):"",e(E,{type:"primary",round:!0,block:!0,disabled:l.btnLoading,loading:l.btnLoading,onClick:()=>I(t)},{default:()=>[i("确认")]})])]}):"",t.isDisabled?e("div",{class:a.tips},[e(h,{name:$e,class:a.iconTips},null),i("昨天及昨天之前课程不可评价")]):""]})}):e(q,{style:{minHeight:"calc(100vh - var(--header-height))"},description:"暂无数据"},null)]})]})]}),e(ie,{teleport:"body",show:l.imageShow,"onUpdate:show":t=>l.imageShow=t,images:l.imagePreview,startPosition:l.startPosition},null)])}}),Et=z({name:"patrol-evaluation-detail",setup(){const r=R(),s=C({heightV:0,active:"NotEvaluated",listState:{loading:!0},dropDownValue:{evaluateStatus:"",problemType:"",evaluateStatus1:"",courseType:"",status:""},dropDownValueSelect:{evaluateStatus:"",problemType:"",evaluateStatus1:"",courseType:"",status:""},courseStatusType:[{text:"全部状态",value:""}],eveluationType:[{text:"全部评价",value:""}],questionType:[{text:"全部问题",value:""}],courseType:[{text:"全部类型",value:""}]}),l=u=>{u.value&&u.value.toggle()},c=()=>{s.active==="Evaluated"?(s.dropDownValue.evaluateStatus=s.dropDownValueSelect.evaluateStatus,s.dropDownValue.problemType=s.dropDownValueSelect.problemType):s.active==="NotEvaluated"&&(s.dropDownValue.evaluateStatus1=s.dropDownValueSelect.evaluateStatus1,s.dropDownValue.courseType=s.dropDownValueSelect.courseType,s.dropDownValue.status=s.dropDownValueSelect.status),l(r)};return G(()=>{for(const u in D)Object.prototype.hasOwnProperty.call(D,u)&&s.courseStatusType.push({text:D[u],value:u});for(const u in d)Object.prototype.hasOwnProperty.call(d,u)&&s.eveluationType.push({text:d[u],value:u});for(const u in m)Object.prototype.hasOwnProperty.call(m,u)&&s.questionType.push({text:m[u],value:u});for(const u in H)Object.prototype.hasOwnProperty.call(H,u)&&s.courseType.push({text:H[u],value:u})}),()=>e("div",{class:a["patrol-evaluation-detail"]},[e(Q,{position:"top",onBarHeight:u=>{s.heightV=u}},{default:()=>[e(Y,null,{right:()=>e(me,{class:a.patrolDetailDropDown,closeOnClickOutside:!1},{default:()=>[e(ye,{title:"筛选",ref:r,teleport:"body",onOpen:()=>{s.dropDownValueSelect={...s.dropDownValue}}},{default:()=>[e("div",{class:a.searchContainer},[s.active==="Evaluated"?e(x,null,[e("div",{class:a.searchTitle},[i("评价类型")]),e("div",{class:[a.searchTypeGroup,a.searchTypeFlex]},[s.eveluationType.map(u=>e("div",{class:[a.searchTypeItem,s.dropDownValueSelect.evaluateStatus===u.value&&a["is-active"]],onClick:()=>{s.dropDownValueSelect.evaluateStatus=u.value}},[u.text]))]),e("div",{class:a.searchTitle},[i("问题类型")]),e("div",{class:[a.searchTypeGroup,a.searchTypeFlex]},[s.questionType.map(u=>e("div",{class:[a.searchTypeItem,s.dropDownValueSelect.problemType===u.value&&a["is-active"]],onClick:()=>{s.dropDownValueSelect.problemType=u.value}},[u.text]))])]):null,s.active==="NotEvaluated"?e(x,null,[e("div",{class:a.searchTitle},[i("课程状态")]),e("div",{class:[a.searchTypeGroup,a.searchTypeFlex]},[s.courseStatusType.map(u=>e("div",{class:[a.searchTypeItem,s.dropDownValueSelect.status===u.value&&a["is-active"]],onClick:()=>{s.dropDownValueSelect.status=u.value}},[u.text]))]),e("div",{class:a.searchTitle},[i("课程类型")]),e("div",{class:[a.searchTypeGroup,a.searchTypeFlex]},[s.courseType.map(u=>e("div",{class:[a.searchTypeItem,s.dropDownValueSelect.courseType===u.value&&a["is-active"]],onClick:()=>{s.dropDownValueSelect.courseType=u.value}},[u.text]))])]):null]),e("div",{class:["btnGroupPopup","van-hairline--top"]},[e(E,{round:!0,onClick:()=>l(r)},{default:()=>[i("取消")]}),e(E,{type:"primary",round:!0,onClick:c},{default:()=>[i("确定")]})])]})]})})]}),e(fe,{active:s.active,"onUpdate:active":u=>s.active=u,offsetTop:s.heightV,sticky:!0,lazyRender:!0,swipeable:!0},{default:()=>[e(P,{name:"NotEvaluated",title:"未评价"},{default:()=>[e(M,{type:"NotEvaluated",evaluateStatus:s.dropDownValue.evaluateStatus1,courseType:s.dropDownValue.courseType,status:s.dropDownValue.status,activeTab:s.active},null)]}),e(P,{name:"Evaluated",title:"已评价"},{default:()=>[e(M,{type:"Evaluated",evaluateStatus:s.dropDownValue.evaluateStatus,problemType:s.dropDownValue.problemType,activeTab:s.active},null)]})]})])}});export{Et as default};