group-controlApp.082de928.js 67 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["group-controlApp"],{"066b":function(e,t,a){},"0897":function(e,t,a){"use strict";a("ad00")},"0906":function(e,t,a){"use strict";a("33f7")},"0de3":function(e,t,a){},"0f83":function(e,t,a){},"19b6":function(e,t,a){},2706:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"search-part"},[a("label",[e._v("名称:")]),a("el-input",{attrs:{placeholder:"请输入名称"},model:{value:e.search.name,callback:function(t){e.$set(e.search,"name",t)},expression:"search.name"}}),a("label",[e._v("学科:")]),a("el-select",{attrs:{placeholder:"请选择"},on:{change:e.searchList},model:{value:e.search.subjectId,callback:function(t){e.$set(e.search,"subjectId",t)},expression:"search.subjectId"}},e._l(e.subjectOptions,(function(e){return a("el-option",{key:e.id,attrs:{label:e.name,value:e.id}})})),1),a("el-button",{attrs:{icon:"el-icon-search",circle:""},on:{click:e.searchList}}),a("el-button",{staticClass:"add-user",attrs:{type:"primary"},on:{click:function(t){e.visibleAdd=!0,e.addPaperSet=JSON.parse(JSON.stringify(e.initPaperSet))}}},[e._v("新增")])],1),a("table",[e._m(0),a("tbody",e._l(e.paperList,(function(t,n){return a("tr",{key:n},[a("td",[e._v(e._s(n+1))]),a("td",[e._v(e._s(t.name))]),a("td",[e._v(e._s(e.subjectOptions.filter((function(e){return e.id==t.subjectId}))[0].name))]),a("td",[e._v(e._s(e.gradeMap[t.grade]))]),a("td",[a("a",{on:{click:function(a){return e.changeSet(t)}}},[e._v("修改参数")]),e._v("\r\n   \r\n "),a("a",{on:{click:function(a){return e.checkPaper(t.id)}}},[e._v("查看")]),e._v("\r\n   \r\n "),a("a",{on:{click:function(a){e.visibleDelete=!0,e.deleteId=t.id}}},[e._v("删除")])])])})),0)]),a("el-dialog",{staticClass:"dialog-style",attrs:{title:e.addPaperSet.id?"编辑":"添加",visible:e.visibleAdd,width:"800px"},on:{"update:visible":function(t){e.visibleAdd=t}}},[a("div",[a("label",[e._v("名称:")]),a("el-input",{attrs:{placeholder:"请输入名称"},model:{value:e.addPaperSet.name,callback:function(t){e.$set(e.addPaperSet,"name",t)},expression:"addPaperSet.name"}})],1),a("div",{staticClass:"short"},[a("label",[e._v("学科:")]),a("el-select",{model:{value:e.addPaperSet.subjectId,callback:function(t){e.$set(e.addPaperSet,"subjectId",t)},expression:"addPaperSet.subjectId"}},[a("el-option",{attrs:{label:"数学",value:2}})],1),a("label",[e._v("教材:")]),a("el-select",{model:{value:e.addPaperSet.publisher,callback:function(t){e.$set(e.addPaperSet,"publisher",t)},expression:"addPaperSet.publisher"}},[a("el-option",{attrs:{label:"人教版",value:"人教版"}})],1)],1),a("div",{staticClass:"left"},[a("label",[e._v("模块一选择")]),e._l(e.gradeOptions,(function(t,n){return a("div",{key:n},[e.chapterData[t.value]?a("p",[e._v(e._s(t.label)+": ")]):e._e(),e._l(e.chapterData[t.value],(function(t){return a("el-checkbox",{key:t.id,attrs:{label:t.name,border:"",size:"medium"},model:{value:t.choose,callback:function(a){e.$set(t,"choose",a)},expression:"chapter.choose"}})}))],2)}))],2),a("div",{staticClass:"left"},[a("label",[e._v("模块二、三选择")])]),a("div",[a("label",[e._v("年级:")]),a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.addPaperSet.grade,callback:function(t){e.$set(e.addPaperSet,"grade",t)},expression:"addPaperSet.grade"}},e._l(e.gradeOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.visibleAdd=!1}}},[e._v("取消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.addPaper}},[e._v("确 定")])],1)]),a("el-dialog",{attrs:{title:"提示",visible:e.visibleDelete,width:"200px"},on:{"update:visible":function(t){e.visibleDelete=t}}},[a("p",{staticClass:"center-text"},[e._v("确认删除?")]),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.visibleDelete=!1}}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.deletePaper}},[e._v("确 定")])],1)])],1)},s=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("thead",[a("tr",[a("th",[e._v("序号")]),a("th",[e._v("名称")]),a("th",[e._v("学科")]),a("th",[e._v("年级")]),a("th",[e._v("操作")])])])}],r=(a("6b54"),a("6762"),a("2fdb"),a("28a5"),a("386d"),a("456d"),a("ac6a"),a("5582")),i=a("bc3a"),o=a.n(i);function c(){return o.a.get("/subject/list",{params:{}}).then((function(e){return e.data}))}function l(e){return o.a.get("/issueChapter/list",{params:e}).then((function(e){return e.data}))}var u=a("1aa9"),d={name:"IssueList",components:{},data:function(){return{subjectOptions:[],search:{name:"",subjectId:""},paperList:[],gradeOptions:u["b"],gradeMap:u["a"],chapterData:{},chapterSearch:{grades:"7X,7Y,8X,8Y,9X,9Y",publisher:"人教版",subjectId:2},initPaperSet:{name:"",subjectId:2,publisher:"人教版",chapterIds:"",grade:""},addPaperSet:{name:"",subjectId:2,publisher:"人教版",chapterIds:"",grade:""},deleteId:-1,visibleAdd:!1,visibleDelete:!1}},created:function(){this.searchSubject(),this.issueChapterList(),this.searchList()},methods:{searchSubject:function(){var e=this;c().then((function(t){e.subjectOptions=t}))},issueChapterList:function(){var e=this;l(this.chapterSearch).then((function(t){Object.keys(t).forEach((function(e){t[e]=t[e].map((function(e){return e.choose=!1,e}))})),e.chapterData=t}))},searchList:function(){var e=this;Object(r["e"])(this.search).then((function(t){e.paperList=t.t}))},addPaper:function(){var e=this,t=[];Object.keys(this.chapterData).forEach((function(a){e.chapterData[a].forEach((function(e){e.choose&&t.push(e.id)}))})),this.addPaperSet.chapterIds=t.join(","),this.addPaperSet.id?Object(r["f"])(this.addPaperSet).then((function(t){t.result&&(e.$message("修改成功"),e.visibleAdd=!1,e.searchList())})):Object(r["a"])(this.addPaperSet).then((function(t){t.result&&(e.$message("添加成功"),e.visibleAdd=!1,e.searchList())}))},deletePaper:function(){var e=this;Object(r["b"])(this.deleteId).then((function(t){e.$message(t.result?"删除成功":"删除失败"),e.visibleDelete=!1,e.searchList()}))},changeSet:function(e){var t=this;this.visibleAdd=!0,this.addPaperSet=e,this.addPaperSet.publisher="人教版";var a=this.addPaperSet.chapterIds.split(",");Object.keys(this.chapterData).forEach((function(e){t.chapterData[e].forEach((function(e){e.choose=a.includes(e.id.toString())}))}))},checkPaper:function(e){this.$router.push({path:"/ctrlApp/ctrlMainPage/issueQuestions/"+e})}}},p=d,v=(a("bc2f"),a("2877")),f=Object(v["a"])(p,n,s,!1,null,"4ecf4364",null);t["default"]=f.exports},"282f":function(e,t,a){"use strict";a("0f83")},"2fdb":function(e,t,a){"use strict";var n=a("5ca1"),s=a("d2c8"),r="includes";n(n.P+n.F*a("5147")(r),"String",{includes:function(e){return!!~s(this,e,r).indexOf(e,arguments.length>1?arguments[1]:void 0)}})},"329c":function(e,t,a){"use strict";a("d04c")},"33f7":function(e,t,a){},3846:function(e,t,a){a("9e1e")&&"g"!=/./g.flags&&a("86cc").f(RegExp.prototype,"flags",{configurable:!0,get:a("0bfb")})},"386d":function(e,t,a){"use strict";var n=a("cb7c"),s=a("83a1"),r=a("5f1b");a("214f")("search",1,(function(e,t,a,i){return[function(a){var n=e(this),s=void 0==a?void 0:a[t];return void 0!==s?s.call(a,n):new RegExp(a)[t](String(n))},function(e){var t=i(a,e,this);if(t.done)return t.value;var o=n(e),c=String(this),l=o.lastIndex;s(l,0)||(o.lastIndex=0);var u=r(o,c);return s(o.lastIndex,l)||(o.lastIndex=l),null===u?-1:u.index}]}))},"47d1":function(e,t){t.yo=function(){alert("Yo Coder!")},t.hello=function(){alert("Hello Coder!")}},"4a85":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"report"},[a("div",{staticClass:"top"},[a("el-button",{attrs:{type:"primary",plain:""},on:{click:e.download}},[e._v("导出PDF")])],1),e._m(0),a("canvas",{attrs:{id:"singleCanvas",width:"1240",height:"1754"}})])},s=[function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{attrs:{id:"print-part"}},[n("div",{staticClass:"page"},[n("img",{attrs:{src:a("d7d9")}}),n("p",[e._v("初中数学学科")]),n("p",[e._v("诊断报告")]),n("p",[e._v("[Mathematics - Diagnostic Report]")])]),n("div",{staticClass:"page"},[n("h1",[e._v("B")])]),n("div",{staticClass:"page"},[n("h1",[e._v("C")])]),n("div",{staticClass:"page"},[n("h1",[e._v("D")])]),n("div",{staticClass:"page"},[n("h1",[e._v("E")])]),n("div",{staticClass:"page"},[n("h1",[e._v("F")])]),n("div",{staticClass:"page"},[n("h1",[e._v("G")])]),n("div",{staticClass:"page"},[n("h1",[e._v("H")])]),n("div",{staticClass:"page"},[n("h1",[e._v("I")])]),n("div",{staticClass:"page"},[n("h1",[e._v("J")])]),n("div",{staticClass:"page"},[n("h1",[e._v("K")])]),n("div",{staticClass:"page"},[n("h1",[e._v("L")])]),n("div",{staticClass:"page"},[n("h1",[e._v("M")])]),n("div",{staticClass:"page"},[n("h1",[e._v("N")])]),n("div",{staticClass:"page"},[n("h1",[e._v("O")])]),n("div",{staticClass:"page"},[n("h1",[e._v("P")])])])}],r=a("c0e9"),i=a.n(r),o=a("e511"),c=a.n(o),l={name:"Report",components:{},data:function(){return{imgWidth:595.28,imgHeight:841.89,PDF:new c.a("p","pt","a4")}},created:function(){},mounted:function(){},methods:{download:function(){var e=this;this.PDF=new c.a("p","pt","a4"),i()(document.getElementById("print-part"),{allowTaint:!0}).then((function(t){for(var a=t.getContext("2d"),n=document.getElementById("singleCanvas"),s=n.getContext("2d"),r=n.width,i=n.height,o=t.height/i,c=0;c<o;c++){var l=a.getImageData(0,i*c,r,i*(c+1));s.putImageData(l,0,0);var u=n.toDataURL("image/jpeg",1);e.PDF.addImage(u,"JPEG",0,0,e.imgWidth,e.imgHeight),c+1<o&&e.PDF.addPage()}e.PDF.save("title.pdf")}))}}},u=l,d=(a("ff22"),a("2877")),p=Object(d["a"])(u,n,s,!1,null,"5fbb514a",null);t["default"]=p.exports},"4d3b":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"index-area"},[n("el-collapse",{attrs:{accordion:""},model:{value:e.currentSection,callback:function(t){e.currentSection=t},expression:"currentSection"}},e._l(e.paper.sections,(function(t,a){return n("el-collapse-item",{key:a,attrs:{title:"M"+String(a+1),name:a+1}},[n("ul",e._l(e.paper.questions,(function(t,a){return n("li",{directives:[{name:"show",rawName:"v-show",value:e.currentSection==t.section||e.currentSection==-1*t.section,expression:"currentSection == ques.section || currentSection == ques.section * -1"}],key:a,class:{choose:e.currentQuestion==a},on:{click:function(t){return e.changePage(a)}}},[e._v(e._s(a+1))])})),0)])})),1)],1),n("div",{staticClass:"change-area"},[e.paper.sections[e.currentSection-1].hasMaterial?n("div",{staticClass:"material-part"}):e._e(),n("div",{staticClass:"question-part",class:{halfScreen:e.paper.sections[e.currentSection-1].hasMaterial}},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.paper.questions[e.currentQuestion].content,expression:"paper.questions[currentQuestion].content"}],domProps:{value:e.paper.questions[e.currentQuestion].content},on:{input:function(t){t.target.composing||e.$set(e.paper.questions[e.currentQuestion],"content",t.target.value)}}}),e._l(e.paper.questions[e.currentQuestion].options,(function(t){return n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.content,expression:"answer.content"}],key:t.id,domProps:{value:t.content},on:{input:function(a){a.target.composing||e.$set(t,"content",a.target.value)}}})})),n("br"),n("br"),n("div",[e._v("\r\n 答案:"),e._l(e.paper.questions[e.currentQuestion].options,(function(t,a){return n("el-checkbox",{key:a,model:{value:t.correct,callback:function(a){e.$set(t,"correct",a)},expression:"answer.correct"}},[e._v(e._s(e.allOptionList[t.oindex]))])}))],2),n("br"),n("br"),n("el-button",{attrs:{type:"primary"},on:{click:function(t){e.drawer=!0}}},[e._v("查看")]),n("el-button",{attrs:{type:"danger"},on:{click:e.updateQuestion}},[e._v("保存")])],2)]),""!=e.currentSection?n("el-drawer",{attrs:{visible:e.drawer,size:"900px","show-close":!1},on:{"update:visible":function(t){e.drawer=t}}},[n("div",{staticClass:"exam"},[e.paper.sections[e.currentSection-1].hasMaterial?n("div",{staticClass:"material-part"},[n("div",{staticClass:"triangle-top"},[n("span",[e._v("材")]),n("span",[e._v("料")])]),n("div",[n("div",{staticClass:"material-html",domProps:{innerHTML:e._s(e.paper.sections[e.currentSection-1].material)}})])]):e._e(),n("div",{staticClass:"scroll-part",class:{halfScreen:e.paper.sections[e.currentSection-1].hasMaterial}},[n("div",{staticClass:"content-part"},[n("div",{staticClass:"question-area"},[n("div",{staticClass:"triangle-top"},[n("span",[e._v("#"+e._s(e.currentQuestion-e.indexRange[e.currentSection-1].min+1))])]),n("div",{staticClass:"question-html"},[n("div",{staticClass:"content-html",domProps:{innerHTML:e._s(e.paper.questions[e.currentQuestion].content)}})])]),n("div",e._l(e.paper.questions[e.currentQuestion].options,(function(t){return n("div",{key:t.id,staticClass:"answer-area2"},[n("div",{class:{correct:t.choose}},[n("i",{class:{multiChooseType:e.paper.questions[e.currentQuestion].correctNum>1}},[t.choose?n("img",{attrs:{src:a("08d0")}}):e._e()]),n("label",[e._v(e._s(e.allOptionList[t.oindex]))])]),n("div",{ref:"htmlContent",refInFor:!0,staticClass:"answer-html",domProps:{innerHTML:e._s(t.content)}})])})),0)])]),n("div",{staticClass:"page-part"},[n("button",{on:{click:function(t){return e.changePage(e.currentQuestion-1)}}},[n("span",{attrs:{id:"preLeft"}},[n("img",{attrs:{src:a("1d40")}})]),n("label",[e._v("上一题")])]),n("button",{on:{click:function(t){return e.changePage(e.currentQuestion+1)}}},[n("label",[e._v("下一题")]),n("span",{attrs:{id:"nextRight"}},[n("img",{attrs:{src:a("9378")}})])])])])]):e._e(),n("el-dialog",{attrs:{title:"提示",visible:e.visibleDelete,width:"200px"},on:{"update:visible":function(t){e.visibleDelete=t}}},[n("p",{staticClass:"center-text"},[e._v("确认删除?")]),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.visibleDelete=!1}}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"}},[e._v("确 定")])],1)])],1)},s=[],r=(a("ac6a"),a("c5f6"),a("28a5"),a("39f0")),i=a("1aa9"),o={name:"QuestionList",components:{},data:function(){return{paper:{questions:[{}],sections:[{}]},currentQuestion:0,currentSection:1,indexRange:[{min:0,max:1}],allOptionList:i["c"],drawer:!1,visibleDelete:!1}},created:function(){var e=document.createElement("script");e.type="text/javascript",e.src="mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML",document.body.appendChild(e),this.getQuestion(this.$route.params.pid,0)},methods:{getQuestion:function(e,t){var a=this;Object(r["f"])(e).then((function(e){Object.assign(a.paper,e),a.setIndexRange(),a.changePage(t)}))},setIndexRange:function(){var e=this;this.indexRange=[];var t=this.paper.sectionNums.split(",").map(Number);t.forEach((function(a,n){0!=n&&(t[n]=a+t[n-1]),e.indexRange.push({min:0==n?0:t[n-1],max:t[n]-1})}))},changePage:function(e){e>=0&&e<this.paper.questions.length&&(this.currentQuestion=e,setTimeout((function(){MathJax.Hub.Queue(["Typeset",MathJax.Hub])}),100))},updateQuestion:function(){var e=this,t=this.paper.questions[this.currentQuestion].options.filter((function(e){return e.correct})).map((function(t){return e.allOptionList[t.oindex]})).join(",");this.paper.questions[this.currentQuestion].answer=t,console.log(this.paper.questions[this.currentQuestion]),Object(r["i"])(this.paper.questions[this.currentQuestion]).then((function(t){alert(t.result?"修改成功":"修改失败"),e.getQuestion(e.$route.params.pid,e.currentQuestion)})).catch((function(){alert("修改失败")}))}}},c=o,l=(a("a1a6"),a("ade1"),a("2877")),u=Object(l["a"])(c,n,s,!1,null,"d18424aa",null);t["default"]=u.exports},"4d93":function(e,t,a){"use strict";a("9af3")},5147:function(e,t,a){var n=a("2b4c")("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(a){try{return t[n]=!1,!"/./"[e](t)}catch(s){}}return!0}},5582:function(e,t,a){"use strict";a.d(t,"c",(function(){return r})),a.d(t,"d",(function(){return i})),a.d(t,"e",(function(){return o})),a.d(t,"a",(function(){return c})),a.d(t,"f",(function(){return l})),a.d(t,"b",(function(){return u}));var n=a("bc3a"),s=a.n(n);function r(){return s.a.get("/paper/listPaperCommit",{params:{}}).then((function(e){return e.data}))}function i(e,t){return s.a.get("/paperResult/listSimpleResult",{params:{uid:e,pid:t}}).then((function(e){return e.data}))}function o(e){return s.a.get("/issuePaper/list",{params:e}).then((function(e){return e.data}))}function c(e){return s()({method:"post",url:"/issuePaper/add",data:e}).then((function(e){return e.data}))}function l(e){return s()({method:"post",url:"/issuePaper/update",data:e}).then((function(e){return e.data}))}function u(e){return s()({method:"post",url:"/issuePaper/delete",params:{id:e}}).then((function(e){return e.data}))}},5836:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"home-page"},[a("el-input",{attrs:{type:"textarea",autosize:"",placeholder:"请输入内容"},model:{value:e.voiceSet.text,callback:function(t){e.$set(e.voiceSet,"text",t)},expression:"voiceSet.text"}}),a("label",[e._v("语速:")]),a("el-input-number",{attrs:{precision:1,step:.1,max:10},model:{value:e.voiceSet.rate,callback:function(t){e.$set(e.voiceSet,"rate",t)},expression:"voiceSet.rate"}}),e._v("\r\n    \r\n "),a("label",[e._v("音高:")]),a("el-input-number",{attrs:{step:.1,min:0,max:2},model:{value:e.voiceSet.pitch,callback:function(t){e.$set(e.voiceSet,"pitch",t)},expression:"voiceSet.pitch"}}),e._v("\r\n       \r\n "),a("el-button",{attrs:{type:"primary"},on:{click:e.voicePlay}},[e._v("开 始")]),e._v("\r\n    \r\n "),a("el-button",{attrs:{type:"primary"},on:{click:e.voicePause}},[e._v("暂 停")]),e._v("\r\n    \r\n "),a("el-button",{attrs:{type:"primary"},on:{click:e.voiceResume}},[e._v("继 续")]),e._v("\r\n    \r\n "),a("el-button",{attrs:{type:"primary"},on:{click:e.voiceCancel}},[e._v("取 消")])],1)},s=[],r={name:"VoiceTest",components:{},data:function(){return{voiceSet:{text:"The first step is one of awareness. It will be hard to make a change to positive thinking without being acutely intimate with the thoughts that run through your mind. Recently, I was amazed to discover deep buried emotions from negative thoughts that I had for fewer than 10 minutes. Without awareness, I would have carried the hurt and anger inside. Awareness helped me to bring them out to the open for me to deal with.",rate:.5,pitch:1},msg:new SpeechSynthesisUtterance,syn:window.speechSynthesis}},created:function(){},methods:{voicePlay:function(){this.msg.text=this.voiceSet.text,this.msg.lang="en",this.msg.volume="1",this.msg.rate=this.voiceSet.rate,this.msg.pitch=this.voiceSet.pitch,this.syn.speak(this.msg)},voicePause:function(){this.syn.pause()},voiceResume:function(){this.syn.resume()},voiceCancel:function(){this.syn.cancel()}}},i=r,o=(a("0897"),a("2877")),c=Object(o["a"])(i,n,s,!1,null,"62b8f803",null);t["default"]=c.exports},"5a8d":function(e,t,a){},"634a":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"report"},[n("div",{attrs:{id:"pdfDom"}},[n("div",{staticClass:"A4-size"},[n("p",{staticClass:"title"},[e._v("数学能力诊断报告")]),n("p",{staticClass:"base"},[e._v("(based on V1.0)")]),n("div",{staticClass:"mark-part"},[n("div",[e._m(0),n("p",[e._v("姓名:"+e._s(e.userInfo.name))]),n("p",[e._v("年级:六年级")]),n("p",[e._v("科目:"+e._s(e.userInfo.subject))]),n("p",[e._v("就诊时间:"+e._s(e.diagnosisTime))]),n("p",[e._v("诊断编号:"+e._s(e.userInfo.code))]),n("img",{attrs:{src:a("a92b")}})]),n("div",[e._m(1),n("p",[e._v("总分:"+e._s(e.globalResultInfo.score))]),n("p",[e._v("知识掌握率:")]),n("p",[e._v("计算能力:"+e._s(e.globalResultInfo.abilityScore["计算能力"]))]),n("p",[e._v("归纳类比:"+e._s(e.globalResultInfo.abilityScore["归纳类比"]))]),n("p",[e._v("语言理解:"+e._s(e.globalResultInfo.abilityScore["语言理解"]))]),n("p",[e._v("空间想象:"+e._s(e.globalResultInfo.abilityScore["空间想象"]))]),n("p",[e._v("逻辑推理:"+e._s(e.globalResultInfo.abilityScore["逻辑推理"]))]),n("p",[e._v("转化迁移:"+e._s(e.globalResultInfo.abilityScore["转化迁移"]))])])]),n("div",{staticClass:"cell-part"},[n("ul",e._l(e.cellList,(function(t,a){return n("li",{key:a},e._l(t,(function(e,t){return n("div",{key:t,class:{color0:0==e,color1:1==e,color2:2==e}})})),0)})),0)])]),n("div",{staticClass:"A4-size"},[n("div",{staticClass:"chapter-rate"},e._l(e.keyWordList,(function(t,a){return n("div",{key:a},[e.globalResultInfo.chapterRate[t]||0==e.globalResultInfo.chapterRate[t]?n("p",[e._v(e._s(t)+"掌握率:"+e._s(e.globalResultInfo.chapterRate[t])+"%")]):e._e()])})),0)]),n("div",{staticClass:"A4-size"},[n("table",{staticClass:"table table-common",attrs:{border:"1",cellspacing:"0"}},[e._m(2),e._l(e.keyWordList,(function(t,a){return n("tbody",{directives:[{name:"show",rawName:"v-show",value:e.globalResultInfo.knowledgeKeepStatus[t],expression:"globalResultInfo.knowledgeKeepStatus[item]"}],key:a},e._l(e.globalResultInfo.knowledgeKeepStatus[t],(function(a,s){return n("tr",{key:s},[0==s?n("td",{attrs:{rowspan:e.globalResultInfo.knowledgeKeepStatus[t].length}},[e._v(e._s(a.chapter))]):e._e(),n("td",[e._v(e._s(s+1))]),n("td",[e._v(e._s(a.knowledgeName))]),n("td",[e._v(e._s(e._f("keepState")(a.keep)))]),n("td",[e._v(e._s(a.matter))])])})),0)}))],2)]),n("div",{staticClass:"A4-size"},[n("div",[n("div",{directives:[{name:"echarts-render",rawName:"v-echarts-render",value:{options:e.echartOp1},expression:"{options: echartOp1}"}],staticClass:"chart1"})]),n("table",{staticClass:"table table-common",attrs:{border:"1",cellspacing:"0"}},[e._m(3),n("tbody",e._l(e.globalResultInfo.sectionInfo,(function(t,a){return n("tr",{key:a},[n("td",[e._v(e._s(t.section))]),n("td",[e._v(e._s(t.info))]),n("td",[e._v(e._s(t.useTime))]),n("td",[e._v(e._s(t.score))])])})),0)])]),n("div",{staticClass:"A4-size"},[n("div",[n("div",{directives:[{name:"echarts-render",rawName:"v-echarts-render",value:{options:e.echartOp2},expression:"{options: echartOp2}"}],staticClass:"chart2"})])]),n("div",{staticClass:"A4-size"},e._l(e.abilityEvaluateList,(function(t){return n("div",{key:t.keyName,staticClass:"abiliy-card"},[n("p",[e._v(e._s(t.keyName))]),n("div",[n("p",[e._v("简评:")]),n("p",[e._v("编码:"+e._s(t.abilityCode))]),n("p",[e._v("得分:"+e._s(t.score))]),n("p",[e._v(e._s(t.evaluate))])]),e._m(4,!0),n("div",[n("p",[e._v("示例与解释")]),n("p",[e._v(e._s(t.explain))])])])})),0),n("div",{staticClass:"A4-size"},[n("div",[n("div",{directives:[{name:"echarts-render",rawName:"v-echarts-render",value:{options:e.echartOp3},expression:"{options: echartOp3}"}],staticClass:"chart3"})])])]),n("button",{attrs:{type:"button"},on:{click:function(t){return e.getPdf2()}}},[e._v("导出PDF")])])},s=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",[a("span",[e._v("个人信息")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("p",[a("span",[e._v("诊断结果")])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("tbody",[a("tr",[a("td"),a("td"),a("td",[e._v("内容")]),a("td",[e._v("掌握情况")]),a("td",[e._v("指向问题")])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("thead",[a("tr",[a("td"),a("td",[e._v("作答时间")]),a("td",[e._v("所用时间")]),a("td",[e._v("得分")])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("p",[e._v("知识点与能力对应图")])])}],r=(a("28a5"),a("ac6a"),a("1c31")),i={name:"FirstEdition",components:{},data:function(){return{htmlTitle:"PDF文件",keyWordList:["预备知识","第一章","第二章","第三章","第四章","第五章","第六章","第七章","第八章","第九章","第十章","第十一章","第十二章","第十三章","第十四章","第十五章","第十六章","第十七章","第十八章","第十九章","第二十章"],abilityKeyList:["计算能力","空间想象","语言理解","归纳类比","逻辑推理"],userInfo:{},globalResultInfo:{abilityScore:{},chapterRate:{},knowledgeKeepStatus:{}},cellList:[],abilityEvaluateList:[],echartOp1:{title:{text:"模块一每题作答时间",left:"center"},tooltip:{trigger:"axis"},legend:{show:!1},grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},toolbox:{feature:{}},xAxis:{type:"category",boundaryGap:!1,data:[]},yAxis:{name:"单位(s)",type:"value"},series:[{name:"个人",type:"line",data:[]},{name:"平均",type:"line",data:[]}]},echartOp2:{series:{type:"sankey",layout:"none",focusNodeAdjacency:"allEdges",data:[],links:[]}},matterList:["粗心大意","注意力不集中","畏难情绪","基础不好","思维不活跃"],matterList2:["计算出错","审题不仔细","读不懂题","没有思路","知识记忆不牢","思考不严谨","情绪紧张","过分轻敌","学习动力问题","学习方法不合适","审题不仔细且知识记忆不牢"],echartOp3:{series:{type:"sankey",layout:"none",focusNodeAdjacency:"allEdges",data:[],links:[]}}}},computed:{diagnosisTime:function(){return new Date(this.userInfo.diagnosisTime).toLocaleString()}},created:function(){var e=this;Object(r["c"])(this.$route.params.pid,this.$route.params.uid).then((function(t){e.userInfo=t.t,Object(r["b"])(e.userInfo.paperResultId).then((function(t){e.globalResultInfo=t.t,e.globalResultInfo.abilityScore=JSON.parse(e.globalResultInfo.abilityScore),e.globalResultInfo.knowledgeAcceptanceLevel=JSON.parse(e.globalResultInfo.knowledgeAcceptanceLevel),e.dealCellList(),e.globalResultInfo.chapterRate=JSON.parse(e.globalResultInfo.chapterRate),e.globalResultInfo.knowledgeKeepStatus=JSON.parse(e.globalResultInfo.knowledgeKeepStatus),e.globalResultInfo.useTime=JSON.parse(e.globalResultInfo.useTime);for(var a=0;a<50;a++)e.echartOp1.xAxis.data.push(a+1),e.echartOp1.series[0].data.push(e.globalResultInfo.useTime[a+1]);e.globalResultInfo.sectionInfo=JSON.parse(e.globalResultInfo.sectionInfo),e.globalResultInfo.chapterAbility=JSON.parse(e.globalResultInfo.chapterAbility);for(var n=function(t){if(!e.globalResultInfo.chapterAbility[t])return"continue";e.echartOp2.series.data.push({name:String(t)}),e.globalResultInfo.chapterAbility[t].forEach((function(a){a.abilityCodes.split(",").forEach((function(a){e.echartOp2.series.links.push({source:String(t),target:a,value:1})}))}))},s=1;s<20;s++)n(s);for(var r=1;r<7;r++)e.echartOp2.series.data.push({name:"A"+r});e.globalResultInfo.abilityEvaluate=JSON.parse(e.globalResultInfo.abilityEvaluate),e.abilityKeyList.forEach((function(t){e.abilityEvaluateList.push(Object.assign({keyName:t},e.globalResultInfo.abilityEvaluate[t]))})),e.globalResultInfo.mistakeMatters=JSON.parse(e.globalResultInfo.mistakeMatters),e.globalResultInfo.commonMatters=JSON.parse(e.globalResultInfo.commonMatters);for(var i=1;i<70;i++)e.echartOp3.series.data.push({name:i});e.matterList.forEach((function(t){e.echartOp3.series.data.push({name:t}),e.globalResultInfo.mistakeMatters[t]&&e.globalResultInfo.mistakeMatters[t].wrongs.forEach((function(a){e.echartOp3.series.links.push({source:String(a),target:t,value:1})}))})),e.matterList2.forEach((function(t){e.echartOp3.series.data.push({name:t}),e.globalResultInfo.commonMatters[t]&&e.echartOp3.series.links.push({source:e.globalResultInfo.commonMatters[t].mistakeMatter,target:t,value:1})}))}))})),Object(r["d"])(this.$route.params.pid,this.$route.params.uid).then((function(t){for(var a=0;a<50;a++)e.echartOp1.series[1].data.push(JSON.parse(t.t)[a+1])}))},methods:{dealCellList:function(){var e=this;this.globalResultInfo.knowledgeAcceptanceLevel.forEach((function(t){while(t.length<16)t.push(-1);e.cellList.push(t)}))},getPdf2:function(){var e=window.open("","oPop"),t="",a=document.getElementById("pdfDom").innerHTML;return e.document.body.innerHTML=t+a,"HKEY_CURRENT_USER","\\Software\\Microsoft\\Internet Explorer\\PageSetup\\",PageSetup_Null(),e.document.close(),e.print(),!1},PageSetup_Null:function(){try{var e=new ActiveXObject("WScript.Shell");HKEY_Key="header",e.RegWrite(HKEY_Root+HKEY_Path+HKEY_Key,""),HKEY_Key="footer",e.RegWrite(HKEY_Root+HKEY_Path+HKEY_Key,"")}catch(t){}}},filters:{keepState:function(e){switch(e){case 0:return"未掌握";case 1:return"欠缺";case 2:return"掌握"}}}},o=i,c=(a("aca2"),a("2877")),l=Object(c["a"])(o,n,s,!1,null,"3f808ed7",null);t["default"]=l.exports},"63a9":function(e,t,a){"use strict";a("960e")},"63c1":function(e,t,a){},"64c1":function(e,t,a){},6762:function(e,t,a){"use strict";var n=a("5ca1"),s=a("c366")(!0);n(n.P,"Array",{includes:function(e){return s(this,e,arguments.length>1?arguments[1]:void 0)}}),a("9c6c")("includes")},"6b54":function(e,t,a){"use strict";a("3846");var n=a("cb7c"),s=a("0bfb"),r=a("9e1e"),i="toString",o=/./[i],c=function(e){a("2aba")(RegExp.prototype,i,e,!0)};a("79e5")((function(){return"/a/b"!=o.call({source:"a",flags:"b"})}))?c((function(){var e=n(this);return"/".concat(e.source,"/","flags"in e?e.flags:!r&&e instanceof RegExp?s.call(e):void 0)})):o.name!=i&&c((function(){return o.call(this)}))},"7ad4":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:"main-page"},[n("div",{staticClass:"top-part"},[n("img",{attrs:{src:a("c834")}}),n("p",[n("label",[e._v("管理员")]),n("a",{on:{click:e.logout}},[e._v("退出")])])]),n("div",{staticClass:"aside"},[n("el-menu",{staticClass:"el-menu-vertical-demo",attrs:{"default-active":"1"},on:{open:e.handleOpen,close:e.handleClose}},[n("el-submenu",{attrs:{index:"1"}},[n("template",{slot:"title"},[n("i",{staticClass:"el-icon-menu"}),n("span",[e._v("已测试")])]),n("el-menu-item",{attrs:{index:"1-2"},on:{click:function(t){return e.jumpState("/ctrlApp/ctrlMainPage/paperListSimple")}}},[e._v("简单报告")])],2),n("el-menu-item",{attrs:{index:"2"},on:{click:function(t){return e.jumpState("/ctrlApp/ctrlMainPage/docList")}}},[n("i",{staticClass:"el-icon-setting"}),n("span",{attrs:{slot:"title"},slot:"title"},[e._v("试卷")])]),n("el-menu-item",{attrs:{index:"3"},on:{click:function(t){return e.jumpState("/ctrlApp/ctrlMainPage/issuePaperList")}}},[n("i",{staticClass:"el-icon-setting"}),n("span",{attrs:{slot:"title"},slot:"title"},[e._v("组卷")])]),n("el-menu-item",{attrs:{index:"4"},on:{click:function(t){return e.jumpState("/ctrlApp/ctrlMainPage/userList")}}},[n("i",{staticClass:"el-icon-setting"}),n("span",{attrs:{slot:"title"},slot:"title"},[e._v("用户")])])],1)],1),n("router-view",{staticClass:"main-content"})],1)},s=[],r=(a("a481"),a("7ded")),i={name:"ControlMainPage",components:{},data:function(){return{}},created:function(){},methods:{handleOpen:function(e,t){},handleClose:function(e,t){},jumpState:function(e){e!=this.$route.path&&this.$router.push({path:e})},logout:function(){var e=this;Object(r["d"])().then((function(t){t&&"1"==t.ok?e.$router.replace({name:"ControlLogin"}):e.$alert(t&&t.msg||"登出失败!","提示",{confirmButtonText:"确定",callback:function(){}})})).catch((function(){e.$alert(res&&res.msg||"登出失败!","提示",{confirmButtonText:"确定",callback:function(){}})}))}}},o=i,c=(a("fffb"),a("2877")),l=Object(c["a"])(o,n,s,!1,null,"313f1793",null);t["default"]=l.exports},"7d36":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"notfound"},[a("div",{staticClass:"sun"}),a("form",{attrs:{role:"form"}},[a("div"),a("div",[a("el-input",{attrs:{name:"username",placeholder:"请输入用户名",required:"required"},model:{value:e.username,callback:function(t){e.username=t},expression:"username"}})],1),a("div",[a("el-input",{attrs:{placeholder:"请输入密码","show-password":"",required:"required"},model:{value:e.password,callback:function(t){e.password=t},expression:"password"}})],1),a("div",[a("el-button",{attrs:{type:"primary",loading:e.loading},on:{click:function(t){return t.preventDefault(),e.submit.apply(null,arguments)}}},[e._v(e._s(e.loading?"请稍等":"登录"))]),e.error?a("p",{staticClass:"error"},[e._v("登录账号或密码错误")]):e._e()],1)])])},s=[],r=(a("a481"),a("7ded")),i={name:"ControlLogin",data:function(){return{error:!1,loading:!1,username:"",password:""}},watch:{},created:function(){var e=this;document.onkeypress=function(t){var a;if(!t)window.event;t.keyCode?a=t.keyCode:t.which&&(a=t.which),13==a&&e.submit()}},mounted:function(){},methods:{submit:function(){var e=this;this.username&&this.password?(this.loading=!0,Object(r["c"])({username:this.username,password:this.password,loginFrom:"admin"}).then((function(t){t&&"1"==t.ok?e.$router.replace({name:"ControlApp"}):e.error=!0,e.loading=!1}),(function(){e.error=!0,e.loading=!1}))):this.error=!0}}},o=i,c=(a("e810"),a("4d93"),a("2877")),l=Object(c["a"])(o,n,s,!1,null,"077b79d5",null);t["default"]=l.exports},"83a1":function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e===1/t:e!=e&&t!=t}},"8ea0":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",[n("div",{staticClass:"index-area"},[n("el-collapse",{attrs:{accordion:""},on:{change:e.handleSection},model:{value:e.collapseSection,callback:function(t){e.collapseSection=t},expression:"collapseSection"}},e._l(e.indexRange,(function(t,a){return n("el-collapse-item",{key:a,attrs:{title:"M"+String(a+1),name:a+1}},[n("ul",e._l(e.paper.issues,(function(t,a){return n("li",{directives:[{name:"show",rawName:"v-show",value:e.currentSection==t.section||e.currentSection==-1*t.section,expression:"currentSection == ques.section || currentSection == ques.section * -1"}],key:a,class:{choose:e.currentQuestion==a},on:{click:function(t){return e.changePage(a)}}},[e._v(e._s(a+1))])})),0)])})),1)],1),n("div",{staticClass:"change-area"},[e.indexRange[e.currentSection-1].material?n("div",{staticClass:"material-edit"},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.paper.issues[e.currentQuestion].material,expression:"paper.issues[currentQuestion].material"}],domProps:{value:e.paper.issues[e.currentQuestion].material},on:{input:function(t){t.target.composing||e.$set(e.paper.issues[e.currentQuestion],"material",t.target.value)}}})]):e._e(),n("div",{staticClass:"question-part",class:{halfScreen:e.indexRange[e.currentSection-1].material}},[n("textarea",{directives:[{name:"model",rawName:"v-model",value:e.paper.issues[e.currentQuestion].content,expression:"paper.issues[currentQuestion].content"}],domProps:{value:e.paper.issues[e.currentQuestion].content},on:{input:function(t){t.target.composing||e.$set(e.paper.issues[e.currentQuestion],"content",t.target.value)}}}),e._l(e.paper.issues[e.currentQuestion].options,(function(t){return n("textarea",{directives:[{name:"model",rawName:"v-model",value:t.content,expression:"answer.content"}],key:t.id,domProps:{value:t.content},on:{input:function(a){a.target.composing||e.$set(t,"content",a.target.value)}}})})),n("br"),n("br"),n("div",[e._v("\r\n 答案:"),e._l(e.paper.issues[e.currentQuestion].options,(function(t,a){return n("el-checkbox",{key:a,model:{value:t.correct,callback:function(a){e.$set(t,"correct",a)},expression:"answer.correct"}},[e._v(e._s(e.allOptionList[t.oindex]))])}))],2),n("br"),n("br"),n("el-button",{attrs:{type:"primary"},on:{click:function(t){e.drawer=!0}}},[e._v("查看")])],2)]),""!=e.currentSection?n("el-drawer",{attrs:{visible:e.drawer,size:"1000px","show-close":!1},on:{"update:visible":function(t){e.drawer=t}}},[n("div",{staticClass:"exam"},[e.indexRange[e.currentSection-1].material?n("div",{staticClass:"material-part"},[n("div",{staticClass:"triangle-top"},[n("span",[e._v("材料")])]),n("div",[n("div",{staticClass:"material-html",domProps:{innerHTML:e._s(e.paper.issues[e.currentQuestion].material)}})])]):e._e(),n("div",{staticClass:"scroll-part",class:{halfScreen:e.indexRange[e.currentSection-1].material},staticStyle:{height:"calc(100% - 105px)"}},[n("div",{staticClass:"content-part"},[n("div",{staticClass:"question-area"},[n("div",{staticClass:"triangle-top"},[n("span",[e._v("#"+e._s(e.currentQuestion-e.indexRange[e.currentSection-1].min+1))])]),n("div",{staticClass:"question-html"},[n("div",{staticClass:"content-html",domProps:{innerHTML:e._s(e.paper.issues[e.currentQuestion].content)}})])]),n("div",e._l(e.paper.issues[e.currentQuestion].options,(function(t){return n("div",{key:t.id,staticClass:"answer-area2"},[n("div",{class:{correct:t.choose}},[n("i",{class:{multiChooseType:e.paper.issues[e.currentQuestion].correctNum>1}},[t.choose?n("img",{attrs:{src:a("08d0")}}):e._e()]),n("label",[e._v(e._s(e.allOptionList[t.oindex]))])]),n("div",{ref:"htmlContent",refInFor:!0,staticClass:"answer-html",domProps:{innerHTML:e._s(t.content)}})])})),0)])]),n("div",{staticClass:"page-part",class:{materialModel:e.indexRange[e.currentSection-1].material}},[n("button",{on:{click:function(t){return e.changePage(e.currentQuestion-1)}}},[n("span",{attrs:{id:"preLeft"}},[n("img",{attrs:{src:a("1d40")}})]),n("label",[e._v("上一题")])]),n("button",{on:{click:function(t){return e.changePage(e.currentQuestion+1)}}},[n("label",[e._v("下一题")]),n("span",{attrs:{id:"nextRight"}},[n("img",{attrs:{src:a("9378")}})])])])])]):e._e(),n("el-dialog",{attrs:{title:"提示",visible:e.visibleDelete,width:"200px"},on:{"update:visible":function(t){e.visibleDelete=t}}},[n("p",{staticClass:"center-text"},[e._v("确认删除?")]),n("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[n("el-button",{on:{click:function(t){e.visibleDelete=!1}}},[e._v("取 消")]),n("el-button",{attrs:{type:"primary"}},[e._v("确 定")])],1)])],1)},s=[],r=(a("ac6a"),a("39f0")),i=a("1aa9"),o={name:"IssueQuestions",components:{},data:function(){return{paper:{issues:[{}]},currentQuestion:0,currentSection:1,collapseSection:1,indexRange:[{min:0,max:1,material:!1}],allOptionList:i["c"],drawer:!1,visibleDelete:!1}},created:function(){var e=document.createElement("script");e.type="text/javascript",e.src="mathjax/MathJax.js?config=TeX-AMS-MML_HTMLorMML",document.body.appendChild(e),this.getQuestion(this.$route.params.pid,0)},methods:{handleSection:function(e){""!=e&&(this.currentSection=e)},getQuestion:function(e,t){var a=this;Object(r["e"])(e).then((function(e){e.result?(Object.assign(a.paper,e.t),a.setIndexRange(),a.changePage(t)):a.$message("获取试卷失败")}))},setIndexRange:function(){var e=this;this.indexRange=[];var t=0,a=0,n=0;this.paper.issues.forEach((function(s,r){0==r?t=s.section:(s.section==t?n++:(e.indexRange.push({min:a,max:n}),a=r,n=r,t=s.section),r==e.paper.issues.length-1&&e.indexRange.push({min:a,max:n}))})),this.indexRange=this.indexRange.map((function(t){return t.material=!!e.paper.issues[t.min].material,t}))},changePage:function(e){var t=this;e>=0&&e<this.paper.issues.length&&(this.currentQuestion=e,this.indexRange.forEach((function(a,n){e>=a.min&&e<=a.max&&(t.currentSection=n+1,t.collapseSection=n+1)})),setTimeout((function(){MathJax.Hub.Queue(["Typeset",MathJax.Hub])}),100))}}},c=o,l=(a("b011"),a("63a9"),a("2877")),u=Object(l["a"])(c,n,s,!1,null,"3ab2a660",null);t["default"]=u.exports},"8fae":function(e,t,a){"use strict";a("5a8d")},"94d3":function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("CheckTable"),a("Knowledge")],1)},s=[],r=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"report3"},[a("p",[a("a",{on:{click:e.returnBack}},[e._v("返回")]),e._v(e._s(e.user.name)+"作答情况")]),a("table",{staticClass:"table-common",attrs:{border:"1",cellspacing:"0"}},[e._m(0),a("tbody",e._l(e.paper.questions,(function(t,n){return a("tr",{key:n},[t.countNum?a("td",{attrs:{rowspan:t.countNum}},[e._v(e._s(t.section))]):e._e(),a("td",[e._v(e._s(t.number))]),a("td",[e._v(e._s(t.answer))]),a("td",{style:{color:t.wrongAnswer?"red":"black"}},[e._v(e._s(t.wrongAnswer?t.wrongAnswer:t.answer))]),a("td",{style:{color:t.wrongAnswer?"red":"black"}},[e._v(e._s(t.wrongAnswer?"错误":"正确"))])])})),0)])])},i=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("thead",[a("tr",[a("th",[e._v("模块")]),a("th",[e._v("题目")]),a("th",[e._v("答案")]),a("th",[e._v("选择")]),a("th",[e._v("结果")])])])}],o=(a("c5f6"),a("28a5"),a("20d6"),a("ac6a"),a("39f0")),c=a("5582"),l={name:"CheckTable",components:{},data:function(){return{paper:{questions:[]},user:{name:""}}},computed:{},created:function(){var e=this;console.log(this.$route.query.resultId),Object(o["f"])(this.$route.params.pid).then((function(t){e.paper=t,e.setIndexStart(t.sectionNums).forEach((function(t){e.paper.questions[t.index].countNum=t.num})),Object(c["d"])(e.$route.params.uid,e.$route.params.pid).then((function(t){var a=t.t.findIndex((function(t){return t.id==e.$route.query.resultId}));e.user.name=t.t[a].uname;var n=JSON.parse(t.t[a].wrongAnswerContrast);n.forEach((function(t){e.paper.questions[t.number-1].wrongAnswer=""==t.options?"无":t.options,e.paper.questions[t.number-1].useTime=t.useTime}))}))}))},methods:{setIndexStart:function(e){var t=[],a=e.split(",").map(Number);return a.forEach((function(e,n){var s=a[n];0!=n&&(a[n]=e+a[n-1]),t.push({index:0==n?0:a[n-1],num:s})})),t},returnBack:function(){this.$router.push({path:"/ctrlApp/ctrlMainPage/paperListSimple"})}}},u=l,d=(a("0906"),a("2877")),p=Object(d["a"])(u,r,i,!1,null,"409ffe4e",null),v=p.exports,f=a("c632"),h={name:"SimpleReport",components:{CheckTable:v,Knowledge:f["a"]},data:function(){return{}},computed:{},created:function(){},methods:{}},m=h,b=Object(d["a"])(m,n,s,!1,null,"400ca715",null);t["default"]=b.exports},"960e":function(e,t,a){},9943:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"report2",staticStyle:{width:"795px"},attrs:{id:"rr"}},[a("div",{directives:[{name:"echarts-render",rawName:"v-echarts-render",value:{options:e.echartOp1},expression:"{options: echartOp1}"}],staticClass:"chart1",staticStyle:{width:"400px",height:"250px"}}),a("div",{directives:[{name:"echarts-render",rawName:"v-echarts-render",value:{options:e.echartOp1},expression:"{options: echartOp1}"}],staticClass:"chart1",staticStyle:{width:"400px",height:"250px"}}),e._m(0),e._m(1),e._m(2),a("button",{on:{click:e.down}},[e._v("PDF")])])},s=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("table",{staticClass:"table-common",attrs:{border:"1",cellspacing:"0"}},[a("tbody",[a("tr",[a("td",{attrs:{colspan:"10"}},[a("p",[e._v("基础知识点")]),a("p",[e._v("掌握率:100%")])])]),a("tr",[a("td",{staticStyle:{background:"#ffffcc"},attrs:{colspan:"7"}},[a("p",[e._v("《数与量》")]),a("p",[e._v("掌握率:100%")])]),a("td",{staticStyle:{background:"#ccecff"},attrs:{colspan:"3"}},[a("p",[e._v("《数的运算》")]),a("p",[e._v("掌握率:100%")])])]),a("tr",[a("td",[a("p",[e._v("《基本概念认识》")]),a("p",[e._v("评级:掌握")])]),a("td",[a("p",[e._v("《基本性质规律》")]),a("p",[e._v("评级:掌握")])]),a("td",[a("p",[e._v("《基本方法》")]),a("p",[e._v("评级:掌握")])]),a("td",[a("p",[e._v("《用字母表示数》")]),a("p",[e._v("评级:掌握")])]),a("td",[a("p",[e._v("《简易方程》")]),a("p",[e._v("评级:掌握")])]),a("td",[a("p",[e._v("《比》")]),a("p",[e._v("评级:掌握")])]),a("td",[a("p",[e._v("《比例》")]),a("p",[e._v("评级:掌握")])]),a("td",[a("p",[e._v("《基本运算》")]),a("p",[e._v("评级:掌握")])]),a("td",[a("p",[e._v("《混合运算》")]),a("p",[e._v("评级:掌握")])]),a("td",[a("p",[e._v("《运算定律》")]),a("p",[e._v("评级:掌握")])])])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("table",{staticClass:"table-common second",attrs:{border:"1",cellspacing:"0"}},[a("tbody",[a("tr",[a("td",{attrs:{colspan:"10"}},[a("p",[e._v("基础知识点")]),a("p",[e._v("掌握率:100%")])])]),a("tr",[a("td",{staticStyle:{background:"#ccecff"},attrs:{colspan:"2"}},[a("p",[e._v("《数的运算》")]),a("p",[e._v("掌握率:100%")])]),a("td",{staticStyle:{background:"#ccffcc"},attrs:{colspan:"6"}},[a("p",[e._v("《图形与空间》")]),a("p",[e._v("掌握率:100%")])]),a("td",{staticStyle:{background:"#ffffcc"},attrs:{colspan:"2"}},[a("p",[e._v("《统计与可能性》")]),a("p",[e._v("掌握率:100%")])])]),a("tr",[a("td",[a("p",[e._v("《运算性质》")]),a("p",[e._v("评级:掌握")])]),a("td",[a("p",[e._v("《计量单位》")]),a("p",[e._v("评级:掌握")])]),a("td",[a("p",[e._v("《平面图形的基本认识》")]),a("p",[e._v("评级:掌握")])]),a("td",[a("p",[e._v("《平面图形公式计算》")]),a("p",[e._v("评级:掌握")])]),a("td",[a("p",[e._v("《图形与变换》")]),a("p",[e._v("评级:掌握")])]),a("td",[a("p",[e._v("《方向与位置》")]),a("p",[e._v("评级:掌握")])]),a("td",[a("p",[e._v("《立体几何基本认识》")]),a("p",[e._v("评级:掌握")])]),a("td",[a("p",[e._v("《立体图形公式计算》")]),a("p",[e._v("评级:掌握")])]),a("td",[a("p",[e._v("《统计》")]),a("p",[e._v("评级:掌握")])]),a("td",[a("p",[e._v("《可能性》")]),a("p",[e._v("评级:掌握")])])])])])},function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("table",{staticClass:"table-common third",attrs:{border:"1",cellspacing:"0"}},[a("tbody",[a("tr",[a("td",{attrs:{colspan:"12"}},[a("p",[e._v("技能提升")]),a("p",[e._v("掌握率:100%")])])]),a("tr",[a("td",{staticStyle:{background:"#ccffff"},attrs:{colspan:"3"}},[a("p",[e._v("《数量关系》")]),a("p",[e._v("掌握率:100%")])]),a("td",{staticStyle:{background:"#ccffcc"},attrs:{colspan:"4"}},[a("p",[e._v("《计算提升》")]),a("p",[e._v("掌握率:100%")])]),a("td",{staticStyle:{background:"#ffffcc"},attrs:{colspan:"2"}},[a("p",[e._v("《几何方法》")]),a("p",[e._v("掌握率:100%")])]),a("td",{staticStyle:{background:"#ccecff"},attrs:{colspan:"3"}},[a("p",[e._v("《组合应用》")]),a("p",[e._v("掌握率:100%")])])]),a("tr",[a("td",[a("p",[e._v("《基本数量关系》")]),a("p",[e._v("评级:掌握")])]),a("td",[a("p",[e._v("《经典应用题数量关系》")]),a("p",[e._v("评级:掌握")])]),a("td",[a("p",[e._v("《分百比应用题》")]),a("p",[e._v("评级:掌握")])]),a("td",[a("p",[e._v("《简便计算》")]),a("p",[e._v("评级:掌握")])]),a("td",[a("p",[e._v("《硬算》")]),a("p",[e._v("评级:掌握")])]),a("td",[a("p",[e._v("《方法技巧》")]),a("p",[e._v("评级:掌握")])]),a("td",[a("p",[e._v("《规律与特征》")]),a("p",[e._v("评级:掌握")])]),a("td",[a("p",[e._v("《公式应用》")]),a("p",[e._v("评级:掌握")])]),a("td",[a("p",[e._v("《面积计算技巧》")]),a("p",[e._v("评级:掌握")])]),a("td",[a("p",[e._v("《枚举》")]),a("p",[e._v("评级:掌握")])]),a("td",[a("p",[e._v("《包含与排除》")]),a("p",[e._v("评级:掌握")])]),a("td",[a("p",[e._v("《最不利原则与抽屉原理》")]),a("p",[e._v("评级:掌握")])])])])])}],r=a("c0e9"),i=a.n(r),o=a("e511"),c=a.n(o),l={name:"PDFTest",components:{},data:function(){return{echartOp1:{grid:{left:"3%",right:"4%",bottom:"3%",containLabel:!0},xAxis:{type:"category",boundaryGap:!1,data:["Mon","Tue","Wed","Thu","Fri","Sat","Sun"]},yAxis:{type:"value"},series:[{data:[3,3,4,5,2,1,1],type:"line",areaStyle:{}}]},PDF:new c.a("","pt","a4")}},computed:{},created:function(){},methods:{down:function(){this.convertCanvasToImage()},convertCanvasToImage:function(){var e=this;i()(document.getElementById("rr"),{allowTaint:!0}).then((function(t){var a=t.width,n=t.height,s=t.toDataURL("image/jpeg",1);e.PDF.addImage(s,"JPEG",0,0,a,n),e.PDF.addPage(),e.PDF.addImage(s,"JPEG",0,0,a,n),e.PDF.save("title.pdf")}))}}},u=l,d=(a("eaf6"),a("2877")),p=Object(d["a"])(u,n,s,!1,null,"e95dac04",null);t["default"]=p.exports},"9af3":function(e,t,a){},a0e1:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"page-list"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{label:"序号",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\r\n "+e._s(t.$index+1)+"\r\n ")]}}])}),a("el-table-column",{attrs:{prop:"uname",label:"用户名",width:"180"}}),a("el-table-column",{attrs:{prop:"region",label:"校区"}}),a("el-table-column",{attrs:{prop:"name",label:"试卷"}}),a("el-table-column",{attrs:{prop:"score",label:"得分"}}),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"mini"},on:{click:function(a){return e.checkReport(t.row)}}},[e._v("简单报告")])]}}])})],1)],1)},s=[],r=a("5582"),i={name:"PageListSimple",components:{},data:function(){return{tableData:[]}},created:function(){this.getCommitPaperResult()},methods:{getCommitPaperResult:function(){var e=this;Object(r["d"])().then((function(t){e.tableData=t.t}))},checkReport:function(e){this.$router.push({path:"/ctrlApp/simpleReport/"+e.pid+"/"+e.uid,query:{resultId:e.id}})}}},o=i,c=a("2877"),l=Object(c["a"])(o,n,s,!1,null,"19a34d0e",null);t["default"]=l.exports},a1a6:function(e,t,a){"use strict";a("a212")},a212:function(e,t,a){},a8e7:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"page-list"},[a("el-table",{staticStyle:{width:"100%"},attrs:{data:e.tableData}},[a("el-table-column",{attrs:{label:"序号",width:"80"},scopedSlots:e._u([{key:"default",fn:function(t){return[e._v("\r\n "+e._s(t.$index+1)+"\r\n ")]}}])}),a("el-table-column",{attrs:{prop:"uid",label:"用户ID",width:"180"}}),a("el-table-column",{attrs:{prop:"name",label:"试卷"}}),a("el-table-column",{attrs:{label:"操作"},scopedSlots:e._u([{key:"default",fn:function(t){return[a("el-button",{attrs:{size:"mini"},on:{click:function(a){return e.checkReport(t.row.pid,t.row.uid)}}},[e._v("查看")])]}}])})],1)],1)},s=[],r=a("5582"),i={name:"PageList",components:{},data:function(){return{tableData:[]}},created:function(){this.getCommitPaperResult()},methods:{getCommitPaperResult:function(){var e=this;Object(r["c"])().then((function(t){e.tableData=t}))},checkReport:function(e,t){this.$router.push({path:"/ctrlApp/report/"+e+"/"+t})}}},o=i,c=a("2877"),l=Object(c["a"])(o,n,s,!1,null,"e43bbf90",null);t["default"]=l.exports},a92b:function(e,t){e.exports="data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAN4AAABpCAYAAABVqJ16AAAAAXNSR0IArs4c6QAAAARnQU1BAACxjwv8YQUAAAAJcEhZcwAADsMAAA7DAcdvqGQAAAAhdEVYdENyZWF0aW9uIFRpbWUAMjAxOTowOTowMSAxNzoyNTozMgKZsaQAAAZmSURBVHhe7dk7cBVVHMfxP2TCTQJ5vwkkJBOQDHQpKHSY0QYKmqShCYwiDhTqKJ04WuiItdAQRzMKsUiTNBTQyIxoQZEOJihKeIVg3onkhjiT4J7lnLBZ9j7z+DvD99Psnn2d/zl7f7v3JhueeQTAutpolwDWEcEDFBA8QAHBAxQQPEABwQMUrNm/Ey5dviLX+/tlc0GBHG5vl8aGersne4P37ktXd7e/fujgAdnX2uqvr1RX90/ete9JVWWFHOvo8GvO1s/XrsnVX66t6rhX22w87s/jyOiY7G1p8epss3v+H0x9Pb19q3ZP0mH6PNf5rb9cjznJKHimqLPnz0vcW4aNjI1JaXGx5Obm+sfdffDQ7hF/266mRtsSmZqekVgsJvl5MbslmjnOKCkukoWFBbl9Z1AWFhf9bUZTQ0PCazweGZXioqKl/XNP52V6ZkZqqir9tmPqHh2fsC2Roi1bZHvdVttKLVhjeNw5ORtld3OzbaXPjPXh8LDENsWksrzMu06O/O3VWWbn14xlfHJSyktLI8c/MTUl8/P/Sm11ld2ynKnR1OqYOTHXSoeZ1/z8PCkuLPTHbmotL4s+Nzg3Ucz+goJ82eSNKSh8T8z5dTU1tvXc7NycN8Z5KSspsVvSF/VZyGROCryHwIcnT67oYZBR8M51dsrVX3+zLeDV9eYbr8sHJ07YVuZW5Y3nnlA5G70n/M7ml55Yxp7XdvnL4Fthx/ZtCZ8a4eOM4NvEMG+DqooK23oh2L/r9+bvf/hL84QMvgnCTzrDnZNKsEZzXfNmGh0f99tOsjEm4mpytbrxuG8OM0+eyIOhR/6x4VrTmV83F445xs1xMsF5Nce7frbV1nrfLgr9dSedOv7xxmG++YTfeG78TlR9bgyJrp2MOzf4+clkTtb9jZeI+T7e09cnZd6r+buz3yy1g3ovXvCXNwYG5PMzX/vrFzvPJyw+eNwXpz/xl67tHG5ri/wuHuzf9dt+5Ki/DJ/z2Vdn5OatW7b1nDsnlWCNp0+dkr8GB18at6nd/GbIhKvJ1erGs2f3bvny09PL+g3XGp63qL7dXDjuuqkE59VcO1k/6dSRSPieRNXnxpDN/EZ9FrKdk2yt6l81a6ur7Vp6VvLE+L/JS/F7FQji3wmAAoIHKCB4gAKCByggeIACggcoIHiAAoIHKCB4gAKCByggeIACggcoIHiAAoIHKCB4gAKCByggeIACggcoIHiAAoIHKCB4gAKCByggeIACggcoIHiAAoIHKCB4gAKCByggeIACggcoIHiAAoIHKCB4gAKCByggeIACggcoIHiAAoIHKCB4gAKCByggeIACggcoIHiAAoIHKCB4gAKCByggeIACggcoIHiAAoIHKCB4gAKCByggeIACggcoIHiAAoIHKCB4gAKCByggeIACggcoIHiAAoIHKCB4gAKCByggeIACggcoIHiAAoIHKCB4gAKCByggeIACggcoIHiAAoIHKCB4gAKCByggeIACggfZXFBg17BeNjzz2PWUBu/dl+9//EHCJ4xNTMjo+IR3A/Olvq5uqR3UsrPZX8bjcbk39Mhfd9uiBI9rqNvqL13bqSwvk4qyMtt6Idi/62Pg9p/+MnzO/aEhmY3P2dZzyeoKCtcYn3sqo17fQWZ7QYYfbFeTqzU8v8nmMFxTVN9Dw8My82TWtkTqaqqlqLDQthILzqu5drJ+0qkjkfA9ceMOcvczm/mN+iy4bU5Un05j/XY5/vY7tpWdjIJ34qOPvYkfty3g1fX+e8flrf37bStzGb/xui5esK3lRsbGpLy0VHJycrynVVzuPnho94jk5ubKrqZG2xKZmp6RWCwm+XkxuyWaOc4oKS6ShYUFuX1nUBYWF/1tRlNDQ8JrPB4ZleKioqX9c0/nZXpmRmqqKv22Y+oOvp1NX3U1NbaVmrnu/Py8f16qcafLjHV8clKqKirsluXzaySbw+C8rbZgHcGxR8m2jnTuSaq+k4n6LJj7Zu6fY/pLdO0dDfXy7pGjtpWdjIKXiev9/XLp8hX/98Ph9nZp9IpdKRP8nt5ef4IOHTwg+1pb7Z6V6entkxsDA1JVWSHHOjr8mrO1FuN+Fa3mPUmH+Ux1dXfLyOiY7G1p8e5dm92zNtYseAAS46+agAKCByggeIACggcoIHiAAoIHKCB4gAKCByggeMC6E/kP9EXdVnolVBsAAAAASUVORK5CYII="},a99e:function(e,t,a){},aca2:function(e,t,a){"use strict";a("f09e")},ad00:function(e,t,a){},ade1:function(e,t,a){"use strict";a("19b6")},b011:function(e,t,a){"use strict";a("64c1")},bc2f:function(e,t,a){"use strict";a("63c1")},c292:function(e,t,a){"use strict";a("066b")},c834:function(e,t,a){e.exports=a.p+"img/LOGO.6977afc0.png"},cc13:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"search-part"},[a("label",[e._v("状态:")]),a("el-select",{attrs:{placeholder:"请选择"},on:{change:e.searchDoc},model:{value:e.search.status,callback:function(t){e.$set(e.search,"status",t)},expression:"search.status"}},[a("el-option",{attrs:{label:"全部",value:""}}),a("el-option",{attrs:{label:"可用",value:1}}),a("el-option",{attrs:{label:"不可用",value:0}}),a("el-option",{attrs:{label:"隐藏",value:2}})],1),a("el-button",{attrs:{icon:"el-icon-search",circle:""},on:{click:e.searchDoc}})],1),a("table",[e._m(0),a("tbody",e._l(e.docList,(function(t,n){return a("tr",{key:n},[a("td",[e._v(e._s(n+1))]),a("td",[e._v(e._s(t.name))]),a("td",[e._v(e._s(e.gradeMap[t.grade]))]),a("td",[e._v(e._s(e.statusList[t.status]))]),a("td",[a("a",{on:{click:function(a){e.visibleChange=!0,e.paperData=t}}},[e._v("修改参数")]),e._v("\r\n   \r\n "),a("a",{on:{click:function(a){return e.changeQuestion(t.id)}}},[e._v("修改试题")]),e._v("\r\n   \r\n "),a("a",{on:{click:function(a){e.visibleDelete=!0,e.deleteId=t.id}}},[e._v("删除")])])])})),0)]),a("el-dialog",{staticClass:"dialog-style",attrs:{title:"编辑",visible:e.visibleAdd,width:"500px"},on:{"update:visible":function(t){e.visibleAdd=t}}},[a("div",[a("label",[e._v("名称:")]),a("el-input",{attrs:{name:"name",placeholder:"请输入姓名",required:"required"},model:{value:e.paperAdd.name,callback:function(t){e.$set(e.paperAdd,"name",t)},expression:"paperAdd.name"}})],1),a("div",[a("label",[e._v("年级:")]),a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.paperAdd.grade,callback:function(t){e.$set(e.paperAdd,"grade",t)},expression:"paperAdd.grade"}},e._l(e.gradeOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("div",[a("label",[e._v("题数:")]),a("el-input",{attrs:{placeholder:"例:xx,xx,xx",required:"required"},model:{value:e.paperAdd.sectionNums,callback:function(t){e.$set(e.paperAdd,"sectionNums",t)},expression:"paperAdd.sectionNums"}})],1),a("div",[a("label",[e._v("时间:")]),a("el-input",{attrs:{placeholder:"例:xx,xx,xx",required:"required"},model:{value:e.paperAdd.sectionDurations,callback:function(t){e.$set(e.paperAdd,"sectionDurations",t)},expression:"paperAdd.sectionDurations"}})],1),a("div",[a("label",[e._v("休息:")]),a("el-input",{attrs:{placeholder:"例:xx,xx,xx",required:"required"},model:{value:e.paperAdd.sectionRests,callback:function(t){e.$set(e.paperAdd,"sectionRests",t)},expression:"paperAdd.sectionRests"}})],1),a("div",[a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.paperAdd.remark,expression:"paperAdd.remark"}],domProps:{value:e.paperAdd.remark},on:{input:function(t){t.target.composing||e.$set(e.paperAdd,"remark",t.target.value)}}})]),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:e.addPaper}},[e._v("确 定")]),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.visibleAdd=!1}}},[e._v("取消")])],1)]),a("el-dialog",{attrs:{title:"提示",visible:e.visibleDelete,width:"200px"},on:{"update:visible":function(t){e.visibleDelete=t}}},[a("p",{staticClass:"center-text"},[e._v("确认删除?")]),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.visibleDelete=!1}}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.deletePaper}},[e._v("确 定")])],1)]),a("el-dialog",{staticClass:"dialog-style",attrs:{title:"编辑",visible:e.visibleChange,width:"500px"},on:{"update:visible":function(t){e.visibleChange=t}}},[a("div",[a("label",[e._v("名称:")]),a("el-input",{attrs:{name:"name",placeholder:"请输入姓名",required:"required"},model:{value:e.paperData.name,callback:function(t){e.$set(e.paperData,"name",t)},expression:"paperData.name"}})],1),a("div",[a("label",[e._v("年级:")]),a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.paperData.grade,callback:function(t){e.$set(e.paperData,"grade",t)},expression:"paperData.grade"}},e._l(e.gradeOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("div",[a("label",[e._v("题数:")]),a("el-input",{attrs:{placeholder:"例:xx,xx,xx",required:"required"},model:{value:e.paperData.sectionNums,callback:function(t){e.$set(e.paperData,"sectionNums",t)},expression:"paperData.sectionNums"}})],1),a("div",[a("label",[e._v("时间:")]),a("el-input",{attrs:{placeholder:"例:xx,xx,xx",required:"required"},model:{value:e.paperData.sectionDurations,callback:function(t){e.$set(e.paperData,"sectionDurations",t)},expression:"paperData.sectionDurations"}})],1),a("div",[a("label",[e._v("休息:")]),a("el-input",{attrs:{placeholder:"例:xx,xx,xx",required:"required"},model:{value:e.paperData.sectionRests,callback:function(t){e.$set(e.paperData,"sectionRests",t)},expression:"paperData.sectionRests"}})],1),a("div",[a("textarea",{directives:[{name:"model",rawName:"v-model",value:e.paperData.remark,expression:"paperData.remark"}],domProps:{value:e.paperData.remark},on:{input:function(t){t.target.composing||e.$set(e.paperData,"remark",t.target.value)}}})]),a("div",[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.showRemark=!0}}},[e._v("预览")])],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:e.updatePaper}},[e._v("确 定")]),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.visibleChange=!1}}},[e._v("取消")])],1)]),a("el-dialog",{attrs:{title:"考试说明",visible:e.showRemark,width:"900px"},on:{"update:visible":function(t){e.showRemark=t}}},[a("div",{staticStyle:{width:"800px",border:"3px solid #3895ce","text-align":"left",padding:"50px 30px"},domProps:{innerHTML:e._s(e.paperData.remark)}}),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.showRemark=!1}}},[e._v("确 定")])],1)])],1)},s=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("thead",[a("tr",[a("th",[e._v("序号")]),a("th",[e._v("名称")]),a("th",[e._v("年级")]),a("th",[e._v("状态")]),a("th",[e._v("操作")])])])}],r=(a("7f7f"),a("386d"),a("39f0")),i=a("1aa9"),o={name:"DocList",components:{},data:function(){return{docList:[],search:{status:"",name:""},paperAdd:{},paperData:{},deleteId:-1,gradeOptions:i["b"],gradeMap:i["a"],statusList:["不可用","可用","隐藏"],visibleAdd:!1,visibleDelete:!1,visibleChange:!1,showRemark:!1}},created:function(){this.searchDoc()},methods:{searchDoc:function(){var e=this;Object(r["g"])(this.search.status,"").then((function(t){e.docList=t}))},addPaper:function(){var e=this;Object(r["a"])(this.paperAdd).then((function(t){alert(t.message),e.visibleAdd=!1,e.searchDoc()}))},updatePaper:function(){var e=this,t={grade:this.paperData.grade,name:this.paperData.name,pid:this.paperData.id,remark:this.paperData.remark,sectionDurations:this.paperData.sectionDurations,sectionNums:this.paperData.sectionNums,sectionRests:this.paperData.sectionRests};Object(r["h"])(t).then((function(t){alert(t.result?"修改成功":"修改失败"),e.visibleChange=!1,e.searchDoc()})).catch((function(){alert("修改失败")}))},deletePaper:function(){var e=this;Object(r["d"])(this.deleteId).then((function(t){alert(t?"删除成功":"删除失败"),e.visibleDelete=!1,e.searchDoc()}))},changeQuestion:function(e){this.$router.push({path:"/ctrlApp/ctrlMainPage/questionList/"+e})}}},c=o,l=(a("329c"),a("2877")),u=Object(l["a"])(c,n,s,!1,null,"5f4008be",null);t["default"]=u.exports},d04c:function(e,t,a){},d2c8:function(e,t,a){var n=a("aae3"),s=a("be13");e.exports=function(e,t,a){if(n(t))throw TypeError("String#"+a+" doesn't accept regex!");return String(s(e))}},d408:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("div",{staticClass:"search-part"},[a("label",[e._v("年级:")]),a("el-select",{attrs:{placeholder:"请选择"},on:{change:e.searchUser},model:{value:e.search.grade,callback:function(t){e.$set(e.search,"grade",t)},expression:"search.grade"}},e._l(e.gradeOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1),a("el-button",{attrs:{icon:"el-icon-search",circle:""},on:{click:e.searchUser}}),a("el-button",{staticClass:"add-user",attrs:{type:"primary"},on:{click:function(t){e.visibleAdd=!0}}},[e._v("新增")])],1),a("table",[e._m(0),a("tbody",e._l(e.userList,(function(t,n){return a("tr",{key:n},[a("td",[e._v(e._s(n+1))]),a("td",[e._v(e._s(t.name))]),a("td",[e._v(e._s(t.username))]),a("td",[e._v(e._s(t.region))]),a("td",[e._v(e._s(e.gradeMap[t.grade]))]),a("td",[a("a",{on:{click:function(a){e.visibleChange=!0,e.changeUser.id=t.id}}},[e._v("修改密码")]),e._v("\r\n   \r\n "),a("a",{on:{click:function(a){e.visibleDelete=!0,e.deleteId=t.id}}},[e._v("删除")])])])})),0)]),a("el-dialog",{staticClass:"dialog-style",attrs:{title:"编辑",visible:e.visibleAdd,width:"500px"},on:{"update:visible":function(t){e.visibleAdd=t}}},[a("div",[a("label",[e._v("姓名:")]),a("el-input",{attrs:{name:"name",placeholder:"请输入姓名",required:"required"},model:{value:e.user.name,callback:function(t){e.$set(e.user,"name",t)},expression:"user.name"}})],1),a("div",[a("label",[e._v("年级:")]),a("el-select",{attrs:{placeholder:"请选择"},model:{value:e.user.grade,callback:function(t){e.$set(e.user,"grade",t)},expression:"user.grade"}},e._l(e.gradeOptions,(function(e){return a("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),a("div",[a("label",[e._v("手机:")]),a("el-input",{attrs:{placeholder:"请输入手机",required:"required"},model:{value:e.user.username,callback:function(t){e.$set(e.user,"username",t)},expression:"user.username"}})],1),a("div",[a("label",[e._v("密码:")]),a("el-input",{attrs:{placeholder:"请输入密码","show-password":"",required:"required"},model:{value:e.user.password,callback:function(t){e.$set(e.user,"password",t)},expression:"user.password"}})],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary"},on:{click:e.addUser}},[e._v("确 定")]),a("el-button",{attrs:{type:"primary"},on:{click:function(t){e.visibleAdd=!1}}},[e._v("取消")])],1)]),a("el-dialog",{attrs:{title:"提示",visible:e.visibleDelete,width:"200px"},on:{"update:visible":function(t){e.visibleDelete=t}}},[a("p",{staticClass:"center-text"},[e._v("确认删除?")]),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.visibleDelete=!1}}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.deleteUser}},[e._v("确 定")])],1)]),a("el-dialog",{staticClass:"dialog-style",attrs:{title:"修改密码",visible:e.visibleChange,width:"500px"},on:{"update:visible":function(t){e.visibleChange=t}}},[a("div",[a("label",[e._v("旧密码:")]),a("el-input",{attrs:{placeholder:"请输入旧密码","show-password":"",required:"required"},model:{value:e.changeUser.oldPass,callback:function(t){e.$set(e.changeUser,"oldPass",t)},expression:"changeUser.oldPass"}})],1),a("div",[a("label",[e._v("新密码:")]),a("el-input",{attrs:{placeholder:"请输入新密码","show-password":"",required:"required"},model:{value:e.changeUser.newPass,callback:function(t){e.$set(e.changeUser,"newPass",t)},expression:"changeUser.newPass"}})],1),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(t){e.visibleChange=!1}}},[e._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:e.updateUser}},[e._v("确 定")])],1)])],1)},s=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("thead",[a("tr",[a("th",[e._v("序号")]),a("th",[e._v("姓名")]),a("th",[e._v("手机")]),a("th",[e._v("学校")]),a("th",[e._v("年级")]),a("th",[e._v("操作")])])])}],r=(a("7f7f"),a("386d"),a("bc3a")),i=a.n(r);function o(e,t){return i.a.get("/user/listStudent",{params:{grade:e,username:t}}).then((function(e){return e.data}))}function c(e){return i()({method:"post",url:"/user/addStudent",data:e}).then((function(e){return e.data}))}function l(e){return i()({method:"post",url:"/user/updatePassword",data:e}).then((function(e){return e.data}))}function u(e){return i()({method:"post",url:"/user/deleteStudent",params:{uid:e}}).then((function(e){return e}))}var d=a("1aa9"),p={name:"UserList",components:{},data:function(){return{userList:[],user:{},changeUser:{},search:{name:"",grade:""},deleteId:-1,gradeOptions:d["b"],gradeMap:d["a"],visibleAdd:!1,visibleDelete:!1,visibleChange:!1}},created:function(){this.searchUser()},methods:{searchUser:function(){var e=this;o(this.search.grade,this.search.name).then((function(t){e.userList=t}))},addUser:function(){var e=this;c(this.user).then((function(t){alert(t.message),e.visibleAdd=!1,e.searchUser()}))},updateUser:function(){var e=this;l(this.changeUser).then((function(t){alert(t.message),e.visibleChange=!1,e.searchUser()}))},deleteUser:function(){var e=this;u(this.deleteId).then((function(t){alert(t?"删除成功":"删除失败"),e.visibleDelete=!1,e.searchUser()}))}}},v=p,f=(a("8fae"),a("2877")),h=Object(f["a"])(v,n,s,!1,null,"6c746270",null);t["default"]=h.exports},d7d9:function(e,t,a){e.exports=a.p+"img/start-main.a46c5983.png"},e23e:function(e,t,a){},e4ec:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"app"}},[a("router-view")],1)},s=[],r={name:"ControlApp",components:{}},i=r,o=(a("e810"),a("282f"),a("2877")),c=Object(o["a"])(i,n,s,!1,null,"97c60892",null);t["default"]=c.exports},eaf6:function(e,t,a){"use strict";a("0de3")},f078:function(e,t,a){"use strict";a.r(t);var n=function(){var e=this,t=e.$createElement;e._self._c;return e._m(0)},s=[function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"home-page"},[a("div",{attrs:{id:"e"}})])}],r=(a("47d1"),{name:"UserTest",components:{},data:function(){return{}},created:function(){},mounted:function(){var e=document.getElementById("e");setTimeout((function(){function t(){e.style.left="500px",window.requestAnimationFrame(t)}t()}),500)},methods:{}}),i=r,o=(a("c292"),a("2877")),c=Object(o["a"])(i,n,s,!1,null,"f9a756c0",null);t["default"]=c.exports},f09e:function(e,t,a){},ff22:function(e,t,a){"use strict";a("e23e")},fffb:function(e,t,a){"use strict";a("a99e")}}]);