PageSourceSearch

https://mantago.cc/assets/QuizAnalysisView.DCwHd9Yi.js

js mantago.cc collected 2026-09-24 13:00:47 UTC 11,033 bytes, 1 lines download raw bytes

1import{L as St,e as l,D as r,G as e,O as o,M as D,$ as yt,I as m,Q as p,g as _t,F as g,E as S,U as bt,H as ft,K as y,N as T,R as f,f as vt,W as I,T as C}from"./vendor.BbJGQBol.js";import{_,k as kt,a as Dt,__tla as Tt}from"./index.Io32nV-M.js";import{S as It,__tla as Ct}from"./SelectCard.BLrQO29N.js";import{_ as Lt}from"./ic_export.GJ61uJHX.js";let L,$t=Promise.all([(()=>{try{return Tt}catch{}})(),(()=>{try{return Ct}catch{}})()]).then(async()=>{const $={class:"transcript"},w={class:"transcript__header"},A={class:"d-flex"},R={class:"title"},O={key:0,class:"checkbox"},P={class:"selectCard",ref:"selectCard"},F={key:0,class:"selectCard__optionList"},x=["onClick"],q={class:"transcript__body"},E={class:"transcript__list"},Q={class:"transcript__info"},z={class:"transcript__info__title"},N=["title"],U={class:"tooltips"},K={class:"position-relative"},V={key:0,src:"/img/ic_topic.svg"},W={class:"tooltips__tips"},B={class:"transcript__info__progress"},j={class:"progress"},M={name:"Transcript",components:{},props:{title:{type:String,default:"\u4F7F\u7528\u8005\u7B54\u5C0D\u7387"},shoeFilterCheckbox:{type:Boolean,default:!0},clientData:{type:Array,default:()=>[]},questionData:{type:Array,default:()=>[]}},data:()=>({isFilterChecked:!1,openFilterSelectOption:!1,filterSelectItem:"latestTime"}),methods:{toggleOption(){this.openFilterSelectOption=!this.openFilterSelectOption,document.addEventListener("click",this.hidePanel,!1)},closeOption(){this.openFilterSelectOption=!1,document.removeEventListener("click",this.hidePanel,!1)},hidePanel(t){this.$refs.selectCard.contains(t.target)||this.closeOption()},updateFilterSelectItem(t){this.filterSelectItem=t,this.closeOption()}},computed:{statisticsClientData(){let t=Object.assign([],this.clientData.length>0?this.clientData:this.questionData);const i=this.filterSelectItem==="latestTime"||this.filterSelectItem==="furthestTime",n=this.filterSelectItem==="furthestTime"||this.filterSelectItem==="lowPercentage";return i?t.sort((c,h)=>c.createdAt<h.createdAt?1:-1):t.sort((c,h)=>c.correctRate<h.correctRate?1:-1),n&&(t=t.reverse()),this.isFilterChecked&&this.clientData.length>0&&(t=t.filter(c=>c.correctRate<60)),t},filterSelectItemList(){return{latestTime:this.$t("latestTime"),furthestTime:this.$t("furthestTime"),highPercentage:this.$t("highPercentage"),lowPercentage:this.$t("lowPercentage")}}},created(){}},G={class:"ranking"},H={class:"ranking__header"},Y={class:"title"},J={class:"desc"},X={class:"ranking__body"},Z={class:"rankingCard"},tt={class:"rankingCard__level"},et={src:"/img/ic_sad.svg"},it={class:"rankingCard__desc"},at={class:"quizAnalysisView"},st={class:"quizAnalysisView__header"},nt=["disabled"],lt={key:0,src:Lt},rt={key:1},ot={class:"quizAnalysisView__body"},ct={class:"navbar"},dt={class:"navbar__nav"},ht=["onClick"],ut={class:"nav__link"},mt={class:"row",style:{height:"calc(100% - 3rem)"}},pt={class:"col-12 col-lg-6 mb-4 mb-lg-0 h-100"},gt={class:"col-12 col-lg-6 mb-4 mb-lg-0 h-100"};L=_({name:"quizAnalysisList",components:{QuizAnalysisView:_({name:"QuizAnalysisView",components:{Transcript:_(M,[["render",function(t,i,n,c,h,a){const d=St("scrollbar");return l(),r("div",$,[e("div",w,[e("div",A,[e("h2",R,o(n.title),1),n.shoeFilterCheckbox?(l(),r("label",O,[D(e("input",{type:"checkbox","onUpdate:modelValue":i[0]||(i[0]=s=>t.isFilterChecked=s)},null,512),[[yt,t.isFilterChecked]]),i[2]||(i[2]=e("div",{class:"img"},null,-1)),e("p",null,o(t.$t("lessThanPercentage",{number:60})),1)])):m("",!0)]),e("div",P,[e("div",{class:"selectCard__body",onClick:i[1]||(i[1]=(...s)=>a.toggleOption&&a.toggleOption(...s))},[i[3]||(i[3]=e("img",{src:"/img/ic_sort.svg"},null,-1)),e("p",null,o(a.filterSelectItemList[t.filterSelectItem]),1)]),p(bt,{name:"fade"},{default:_t(()=>[t.openFilterSelectOption?(l(),r("ul",F,[(l(!0),r(g,null,S(Object.entries(a.filterSelectItemList),(s,b)=>(l(),r("li",{class:"selectCard__optionList__item",key:s[0],onClick:v=>a.updateFilterSelectItem(s[0])},o(s[1]),9,x))),128))])):m("",!0)]),_:1})],512)]),D((l(),r("div",q,[e("ul",E,[(l(!0),r(g,null,S(a.statisticsClientData,s=>(l(),r("li",{class:"transcript__item",key:s.id},[e("div",Q,[e("div",z,[e("h2",{title:s.clientName||t.$t("numberOfQuestions",{numbet:s.questionNumber})},o(s.clientName||t.$t("numberOfQuestions",{number:s.questionNumber})),9,N),e("div",U,[e("div",K,[s.questionNumber?(l(),r("img",V)):m("",!0),i[4]||(i[4]=e("div",{class:"tooltips__arrow"},null,-1))]),e("div",W,[e("p",null,o(t.$t("transcriptQuestion"))+": "+o(s.question),1)])])]),e("div",B,[e("div",j,[e("div",{class:"progress__bar",style:ft({width:s.correctRate+"%"})},null,4)]),e("p",null,o(s.correctRate),1)])])]))),128))])])),[[d]])])}],["__scopeId","data-v-f6662871"]]),Ranking:_({name:"Ranking",props:{title:{type:String,default:""},desc:{type:String,default:""},clientRankingData:{type:Array,default:()=>[]},questionRankingData:{type:Array,default:()=>[]}},data:()=>({}),methods:{},computed:{statisticsQuestionData(){return Object.assign([],this.clientRankingData.length>0?this.clientRankingData:this.questionRankingData)}},created(){}},[["render",function(t,i,n,c,h,a){return l(),r("div",G,[e("div",H,[e("h2",Y,o(n.title),1),e("p",J,o(n.desc),1)]),e("div",X,[e("ul",null,[(l(!0),r(g,null,S(a.statisticsQuestionData,(d,s)=>(l(),r("li",{key:d.id},[e("div",Z,[e("p",null,"0"+o(s+1),1),e("div",tt,[(l(!0),r(g,null,S(3-s,b=>(l(),r("img",et))),256))]),e("div",it,[e("p",null,o(d.clientName||t.$t("numberOfQuestions",{number:d.questionNumber})),1),e("span",null,o(d.correctRate)+"%",1)])])]))),128))])])])}],["__scopeId","data-v-05679941"]]),SelectCard:It,SyncLoader:Dt},props:{learningSheetStatistics:{type:Object,default:()=>{}},editPermission:{type:Boolean,default:!1}},data:()=>({dataType:"user",openSelectOption:!1,isExportLoading:!1,infoFocus:0,selectItem:"oneWeekAgo",selectCardData:{value:"oneWeekAgo",name:"\u6700\u8FD1\u4E00\u9031",nameKey:"oneWeekAgo",selectItemList:[{name:"\u6700\u8FD1\u4E00\u9031",nameKey:"oneWeekAgo",value:"oneWeekAgo"},{name:"\u6700\u8FD1\u4E00\u500B\u6708",nameKey:"oneMonthAgo",value:"oneMonthAgo"}
1,{name:"\u5168\u90E8",nameKey:"all",value:"all"}]},endTime:null,startTime:null}),methods:{bindSync:kt,viewQuizAnalysis(){this.$emit("changeView",1)},toggleOption(){this.openSelectOption=!this.openSelectOption,document.addEventListener("click",this.hidePanel,!1)},closeOption(){this.openSelectOption=!1,document.removeEventListener("click",this.hidePanel,!1)},hidePanel(t){this.$refs.selectCard.contains(t.target)||this.closeOption()},updateInfoData(t){this.infoFocus=t,this.dataType=t===0?"user":"question",this.$emit("updateStatiticsDataType",this.startTime,this.endTime,this.dataType)},updateSelectItem({value:t,name:i,nameKey:n}){this.selectItem=t,this.selectCardData.value=t,this.selectCardData.name=i,this.selectCardData.nameKey=n,this.updateStartEndTime()},getFewDaysAway(){if(this.selectItem==="oneWeekAgo")return 7;const t=[0,31,28,31,30,31,30,31,31,30,31,30,31],i=new Date().getFullYear();return t[2]=i%4==0&&i%100!=0||i%400==0?29:28,t[new Date().getMonth()]},updateStartEndTime(){this.endTime=this.selectItem==="all"?void 0:new Date,this.startTime=this.selectItem==="all"?void 0:new Date(new Date().setDate(this.endTime.getDate()-this.getFewDaysAway())),this.$emit("updateTimeRage",this.startTime,this.endTime,this.dataType)},exportLearningSheet(){this.editPermission&&(this.isExportLoading=!0,this.$emit("exportLearningSheet",()=>{this.isExportLoading=!1}))}},computed:{infoList(){return{user:this.$t("accordingToUser"),question:this.$t("accordingToQuestion")}},transcriptData(){return{title:this.infoFocus===0?this.$t("userCorrectAnswerRate"):this.$t("correctAnswerRate"),shoeFilterCheckbox:this.infoFocus===0}},rankingData(){return{title:this.$t("lowestCorrectAnswerRate"),desc:this.infoFocus===0?`(${this.$t("lowestScore")})`:`(${this.$t("mostPeopleWrong")})`}}},created(){this.updateStartEndTime()}},[["render",function(t,i,n,c,h,a){const d=y("SyncLoader"),s=y("SelectCard"),b=y("Transcript"),v=y("Ranking");return l(),r("div",at,[e("div",st,[e("button",{class:T(["btn btn--outline--primaryDark btn--img",{"btn--loading":t.isExportLoading}]),onClick:i[0]||(i[0]=(...u)=>a.exportLearningSheet&&a.exportLearningSheet(...u)),disabled:!n.editPermission},[t.isExportLoading?m("",!0):(l(),r("img",lt)),t.isExportLoading?m("",!0):(l(),r("p",rt,o(t.$t("exportAllReports")),1)),p(d,{class:"SyncLoader",color:"#fff",size:10,loading:t.isExportLoading},null,8,["loading"])],10,nt)]),e("div",ot,[e("div",ct,[e("ul",dt,[(l(!0),r(g,null,S(Object.entries(a.infoList),(u,k)=>(l(),r("li",{class:T(["nav__item",{"nav__item--active":t.infoFocus===k}]),key:u[0],onClick:wt=>a.updateInfoData(k,u)},[e("a",ut,o(u[1]),1)],10,ht))),128))]),p(s,f({class:"ml-auto"},a.bindSync(t.selectCardData),{onUpdateSelectItem:a.updateSelectItem,editPermission:!0}),null,16,["onUpdateSelectItem"])]),e("div",mt,[e("div",pt,[p(b,f(a.transcriptData,{clientData:n.learningSheetStatistics.allClientData,questionData:n.learningSheetStatistics.allQuestionData}),null,16,["clientData","questionData"])]),e("div",gt,[p(v,f(a.rankingData,{clientRankingData:n.learningSheetStatistics.lowestCorrectClients,questionRankingData:n.learningSheetStatistics.lowestCorrectQuestions}),null,16,["clientRankingData","questionRankingData"])])])])])}],["__scopeId","data-v-ab5171f6"]])},data:()=>({botId:"",learningSheetId:""}),methods:{...C(["updateBreadcrumbPath"]),...C("chatbot",["getChatbot"]),async initBreadcrumb(){this.tempChatbot.botName||(await this.getChatbot(this.botId),this.updateBreadcrumbPath([{name:this.tempChatbot.botName,path:{name:"chatbotMainPage"}},{nameKey:"learningSheetListTitle",path:{name:"quizAnalysisList"}}]))},exportLearningSheet(t){this.$store.dispatch("learningSheet/getLearningSheetExcelFile",this.learningSheetId).then(()=>{t()})},updateTimeRage(t,i,n){const c={botId:this.$route.params.chatbotID,learningSheetId:this.learningSheetId,type:n,startTime:t,endTime:i};this.$store.dispatch("learningSheet/getLearningSheetStatistics",c)},updateStatiticsDataType(t,i,n){const c={botId:this.$route.params.chatbotID,learningSheetId:this.learningSheetId,type:n,startTime:t,endTime:i};this.$store.dispatch("learningSheet/getLearningSheetStatistics",c)}},computed:{...I("chatbot",["tempChatbot"]),...I("learningSheet",["learningSheetStatistics"]),editPermission(){var t;return((t=this.$store.state.chatbot.userBotPermissions)==null?void 0:t.learningSheetAnalysis)||this.$store.state.chatbot.editPermission}},created(){this.botId=this.$route.params.chatbotID,this.learningSheetId=this.$route.params.learningSheetId,this.initBreadcrumb()}},[["render",function(t,i,n,c,h,a){const d=y("QuizAnalysisView",!0);return l(),vt(d,{learningSheetStatistics:t.learningSheetStatistics,editPermission:a.editPermission,onExportLearningSheet:a.exportLearningSheet,onUpdateTimeRage:a.updateTimeRage,onUpdateStatiticsDataType:a.updateStatiticsDataType},null,8,["learningSheetStatistics","editPermission","onExportLearningSheet","onUpdateTimeRage","onUpdateStatiticsDataType"])}]])});export{$t as __tla,L as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.