File: /var/www/html/public/static/js/hookMySi-95aa99b5.js
import{i as v}from"./index-128e205b.js";import{DeliverAction as ee,getPaperChartWeb as ae,getPaperQuestionList as te,getPaperNoteWeb as re,setPaperNote as se,getGroupPaperDetailWeb as oe,getPaperQuestionListWeb as ie}from"./po-399a971b.js";import{d as ne,u as pe}from"./vue-router-a383d220.js";import{b7 as m}from"./message-2472a54a.js";import{r,A as t,o as de}from"./runtime-core.esm-bundler-6128546f.js";import"./index-23ee140c.js";import"./preload-helper-78dc9057.js";import"./vue-i18n.runtime.esm-bundler-6949bcab.js";import"./index-b7f916e1.js";import"./_commonjsHelpers-87174ba5.js";import"./utils-2ab4f76a.js";function Ie(){const{query:p,params:ce}=ne(),I=pe(),A=r(!1),_=r(!1),d=r(!1),D=r(!1),x=r(""),o=r(""),L=r([]),g=r([]),C=r([]),S=r([]),f=r([]),h=r([]),P=r({average_score:"",full_marks:"",highest_score:"",lowest_score:"",passed_radio:"",persons:""}),w=r([{id:1,name:"做题情况"},{id:2,name:"分数段统计"},{id:3,name:"易出错题目统计"}]);t({page:1,resault:""}),t({});const N=t({});t({});const W=t({}),q=t({});t({});const O=t({}),j=t({}),k=t({}),Q=t({destination_comp:"",state:"",city:"",address:"",phone:"",contact:"",customer_id:""}),a=t({paper_id:"",group_id:"",total:"",has_paper_user:"",userPaperId:"",paperName:"",paperScore:"",name:"",tableIndex:0,user_id:"",note:"",addPiont:"",redoUserPaperList:""}),E=t({}),s=t({qo_item_str:"",name:"",address:"",way:"",shipping:[],itemsDetail:[],trackingNo:"",courier:"",comment:""}),c=t({total:0,pageSize:10,currentPage:1,background:!0,currentPage:1,pageSizes:[10,25,50,100]}),z=[{label:"题号",prop:"sort_no",width:120,hide:({checkList:e})=>!e.includes("题号")},{label:"标题",prop:"content",minWidth:120,hide:({checkList:e})=>!e.includes("标题")},{label:"错误次数",prop:"nums",minWidth:120,hide:({checkList:e})=>!e.includes("错误次数")},{label:"属于分数段",prop:"sort_no",minWidth:200,slot:"operation",hide:({checkList:e})=>!e.includes("属于分数段")}],T=["题号","标题","错误次数","属于分数段"];function U(e){c.pageSize=e,loadPartList()}function G(e){c.currentPage=e,loadPartList()}function B(e){s.qo_item_str="";const n=[];e.forEach((l,y)=>{n.push(l.qo_item_id)}),s.qo_item_str=n.toString()}async function M(){const{data:e}=await ee(Object.assign(E,{items:s.itemsDetail,shipping_address_id:s.address,customer_id:Q.customer_id,trackingNo:s.trackingNo,deliverType:s.way,courier:s.courier,comment:s.comment}));e.code==1?(loadPartList(),_.value=!1,m({type:"success",message:e.msg})):m({type:"error",message:e.msg})}async function b(){const{data:e}=await oe(Object.assign(N,{paper_id:a.paper_id,group_id:a.group_id}));e.code==1&&(a.total=e.data.user,a.has_paper_user=e.data.has_paper_user,a.userPaperId=e.data.has_paper_user[0].user_paper_id,a.name=e.data.has_paper_user[0].first_name+e.data.has_paper_user[0].last_name,a.user_id=e.data.has_paper_user[0].id,i())}async function i(){const{data:e}=await ie(Object.assign(W,{actionType:"detail",examStatus:"all",paperId:a.paper_id,searchKey:"",userPaperId:a.userPaperId}));e.code==0&&(a.paperName=e.data.paperName,a.paperScore=e.data.userScore,f.value=e.data.paperQuestionData)}function R(e){b(),u()}function K(e){b(),u()}function F(e){}function H(){I.push({path:"/crm/yuyue/changePaper",query:{paper_id:a.paper_id,group_id:a.group_id,userPaperId:a.userPaperId}})}function J(e){a.tableIndex=e,u(),i()}function V(){var e=v(document.getElementById("chart_box1")),n=v(document.getElementById("chart_box2")),l={tooltip:{},legend:{data:["销量"]},xAxis:{data:o.value.label},yAxis:{name:"人数"},series:[{type:"bar",data:o.value.value}]},y={xAxis:{type:"category",data:o.value.label},yAxis:{type:"value",name:"人数"},series:[{data:o.value.value,type:"line",smooth:!0}]};e.setOption(y),n.setOption(l)}async function u(){const{data:e}=await ae(Object.assign(q,{paper_id:a.paper_id,group_id:a.group_id}));e.code==1&&(h.value=e.rateData,P.value=e.ranking_data,o.value=e.xAxis_data,g.value=e.last5errorDetail,V())}async function X(){a.paper_id=Number(p.paperId);const{data:e}=await te(Object.assign(j,{userPaperId:p.userPaperId,paperId:p.paperId,onlyWrong:"",examStatus:"all",actionType:"test",currentTime:""}));e.code==0&&(a.userPaperId=e.data.redoUserPaperList[0].userPaperId,a.redoUserPaperList=e.data.redoUserPaperList,i())}function Y(e){a.userPaperId=e.userPaperId,i()}async function Z(){const{data:e}=await re(Object.assign(k,{paper_id:a.paper_id}));e.result==1&&(a.note=e.note,d.value=!0)}async function $(){const{data:e}=await se(Object.assign(O,{paperId:a.paper_id,note:a.note}));e.result==1&&(i(),m({type:"success",message:e.msg}),d.value=!1)}return de(()=>{X()}),{loading:A,small:D,pagination:c,handleSizeChange:U,handleCurrentChange:G,PartList:L,order_date:x,deliverDialog:_,selectClick:B,deliverDataArr:s,btnDeliverConfirm:M,queDataList:S,itemArr:a,groupData:C,onGroupData:R,onQueDataList:K,handleSelectionChange:F,btnStudent:Y,questionList:f,btnChengePaper:H,situationArr:w,onSituationArr:J,rateData:h,paperInfo:P,last5errorDetail:g,columns:z,selectList:T,noteDialog:d,btnNote:Z,btnNoteConfirm:$}}export{Ie as useEqu};