group-controlApp.2e7b24c9.js 49 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["group-controlApp"],{"0906":function(e,t,a){"use strict";var n=a("33f7"),s=a.n(n);s.a},"0de3":function(e,t,a){},"0f83":function(e,t,a){},"19b6":function(e,t,a){},"282f":function(e,t,a){"use strict";var n=a("0f83"),s=a.n(n);s.a},"329c":function(e,t,a){"use strict";var n=a("d04c"),s=a.n(n);s.a},"33f7":function(e,t,a){},"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),l=String(this),c=o.lastIndex;s(c,0)||(o.lastIndex=0);var u=r(o,l);return s(o.lastIndex,c)||(o.lastIndex=c),null===u?-1:u.index}]}))},"47d1":function(e,t){t.yo=function(){alert("Yo Coder!")},t.hello=function(){alert("Hello Coder!")}},"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("\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["e"])(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["h"])(this.paper.questions[this.currentQuestion]).then((function(t){alert(t.result?"修改成功":"修改失败"),e.getQuestion(e.$route.params.pid,e.currentQuestion)})).catch((function(){alert("修改失败")}))}}},l=o,c=(a("a1a6"),a("ade1"),a("2877")),u=Object(c["a"])(l,n,s,!1,null,"d18424aa",null);t["default"]=u.exports},"4d93":function(e,t,a){"use strict";var n=a("9af3"),s=a.n(n);s.a},5171:function(e,t,a){"use strict";var n=a("5d12"),s=a.n(n);s.a},5582:function(e,t,a){"use strict";a.d(t,"a",(function(){return r})),a.d(t,"b",(function(){return i}));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}))}},"5a8d":function(e,t,a){},"5d12":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,l=(a("aca2"),a("2877")),c=Object(l["a"])(o,n,s,!1,null,"3f808ed7",null);t["default"]=c.exports},"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/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,l=(a("5171"),a("2877")),c=Object(l["a"])(o,n,s,!1,null,"3f75fbe8",null);t["default"]=c.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(t)}}},[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,l=(a("e810"),a("4d93"),a("2877")),c=Object(l["a"])(o,n,s,!1,null,"077b79d5",null);t["default"]=c.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}},"84da":function(e,t,a){},8906:function(e,t,a){"use strict";var n=a("84da"),s=a.n(n);s.a},"8fae":function(e,t,a){"use strict";var n=a("5a8d"),s=a.n(n);s.a},"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")),l=a("5582"),c={name:"CheckTable",components:{},data:function(){return{paper:{questions:[]},user:{name:""}}},computed:{},created:function(){var e=this;console.log(this.$route.query.resultId),Object(o["e"])(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(l["b"])(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=c,p=(a("0906"),a("2877")),d=Object(p["a"])(u,r,i,!1,null,"409ffe4e",null),v=d.exports,f=a("c632"),h={name:"SimpleReport",components:{CheckTable:v,Knowledge:f["a"]},data:function(){return{}},computed:{},created:function(){},methods:{}},m=h,b=Object(p["a"])(m,n,s,!1,null,"400ca715",null);t["default"]=b.exports},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"),l=a.n(o),c={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 l.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=c,p=(a("eaf6"),a("2877")),d=Object(p["a"])(u,n,s,!1,null,"e95dac04",null);t["default"]=d.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("\n "+e._s(t.$index+1)+"\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["b"])().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,l=a("2877"),c=Object(l["a"])(o,n,s,!1,null,"19a34d0e",null);t["default"]=c.exports},a1a6:function(e,t,a){"use strict";var n=a("a212"),s=a.n(n);s.a},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("\n "+e._s(t.$index+1)+"\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["a"])().then((function(t){e.tableData=t}))},checkReport:function(e,t){this.$router.push({path:"/ctrlApp/report/"+e+"/"+t})}}},o=i,l=a("2877"),c=Object(l["a"])(o,n,s,!1,null,"e43bbf90",null);t["default"]=c.exports},a92b:function(e,t){e.exports="data:image/png;base64,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"},aca2:function(e,t,a){"use strict";var n=a("f09e"),s=a.n(n);s.a},ade1:function(e,t,a){"use strict";var n=a("19b6"),s=a.n(n);s.a},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("\n   \n "),a("a",{on:{click:function(a){return e.changeQuestion(t.id)}}},[e._v("修改试题")]),e._v("\n   \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["f"])(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["g"])(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})}}},l=o,c=(a("329c"),a("2877")),u=Object(c["a"])(l,n,s,!1,null,"5f4008be",null);t["default"]=u.exports},d04c:function(e,t,a){},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("\n   \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 l(e){return i()({method:"post",url:"/user/addStudent",data:e}).then((function(e){return e.data}))}function c(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 p=a("1aa9"),d={name:"UserList",components:{},data:function(){return{userList:[],user:{},changeUser:{},search:{name:"",grade:""},deleteId:-1,gradeOptions:p["b"],gradeMap:p["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;l(this.user).then((function(t){alert(t.message),e.visibleAdd=!1,e.searchUser()}))},updateUser:function(){var e=this;c(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=d,f=(a("8fae"),a("2877")),h=Object(f["a"])(v,n,s,!1,null,"6c746270",null);t["default"]=h.exports},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")),l=Object(o["a"])(i,n,s,!1,null,"97c60892",null);t["default"]=l.exports},eaf6:function(e,t,a){"use strict";var n=a("0de3"),s=a.n(n);s.a},f078: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("\n    \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("\n       \n "),a("el-button",{attrs:{type:"primary"},on:{click:e.voicePlay}},[e._v("开 始")]),e._v("\n    \n "),a("el-button",{attrs:{type:"primary"},on:{click:e.voicePause}},[e._v("暂 停")]),e._v("\n    \n "),a("el-button",{attrs:{type:"primary"},on:{click:e.voiceResume}},[e._v("继 续")]),e._v("\n    \n "),a("el-button",{attrs:{type:"primary"},on:{click:e.voiceCancel}},[e._v("取 消")])],1)},s=[],r=(a("47d1"),{name:"UserTest",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("8906"),a("2877")),l=Object(o["a"])(i,n,s,!1,null,"4d1fe577",null);t["default"]=l.exports},f09e:function(e,t,a){}}]);