webpackJsonp([5],{CrEx:function(t,e){},k1F2:function(t,e){},rj4K:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=s("g+M4"),i={name:"YourselfReading",data:function(){return{curr:0,loaded:!1,getParameters:{answerid:this.$route.query.answerid,paperid:this.$route.query.paperid},option:[],testList:[],subjectNum:0,isFixed:!1,is_feel:0,isShowOpera:!1,operatstatus:0,operaTips:""}},methods:{getCurr:function(t){this.curr=t},num:function(t){var e="千百亿千百十万千百十个",s=t.length,r="";if(e.length-s<0)return"数字过长";e=e.substr(e.length-s);for(var i=0;i<s;i++)r+="零一二三四五六七八九".charAt(t[i])+e.charAt(i);return r=r.substr(0,r.length-1)},loadPage:function(){var t=this;Object(r.p)(this.getParameters).then(function(e){e.result?(e.data.map(function(t){6==t.tktype?t.tkinfo.childtk.map(function(t){t.new_score=""}):t.new_score=""}),t.testList=e.data):t.testList=[]}),this.loaded=!0},save:function(){var t=this,e=[];this.testList.map(function(t){var s=[];6==t.tktype?t.tkinfo.childtk.map(function(t,e){t.new_score&&(t.userscore=t.new_score),s.push({tkid:e,userscore:t.userscore})}):(t.new_score&&(t.userscore=t.new_score),s.push(t.userscore)),e.push({tkid:t.tkid,userscore:s})});var s={paperid:this.getParameters.paperid,answerid:this.getParameters.answerid,scorelist:e};Object(r.w)(s).then(function(e){e.result?(t.operatstatus=1,t.isShowOpera=!0,t.operaTips="提交成功",setTimeout(function(){t.$router.push({name:"ExaminationResult",query:{answerid:t.getParameters.answerid,paperid:t.getParameters.paperid,type:t.$route.query.type,categoryid:t.$route.query.categoryid,dtnum:t.$route.query.dtnum,tknum:t.$route.query.tknum,answertime:t.$route.query.answertime,sumscore:t.$route.query.sumscore,schoolname:t.$route.query.schoolname}})},1500)):(t.isShowOpera=!0,t.operatstatus=0,t.operaTips=e.msg,setTimeout(function(){t.isShowOpera=!1},1500))})}},mounted:function(){this.loadPage()}},a={render:function(){var t=this,e=t.$createElement,s=t._self._c||e;return 1==t.loaded?s("div",{staticClass:"main"},[s("div",{staticClass:"white-bg"},[s("h2",{staticClass:"test-title align-center f20 weight-normal",staticStyle:{"border-bottom":"0"}},[t._v(t._s(t.$route.query.title))])]),t._v(" "),s("p",{staticClass:"line-height46 align-center darkgray-font"},[t._v("本套试卷含有主观题，针对主观题请自行参考解析评分")]),t._v(" "),s("div",{staticClass:"clearfix test-con"},[s("div",[s("div",{staticClass:"test-type-box"},[s("ul",{staticClass:"test-list"},t._l(t.testList,function(e,r){return s("li",{key:e.tkid,staticClass:"white-bg"},[1==e.tktype||5==e.tktype||6==e.tktype?s("ks-analyze-subjective",{attrs:{item:e,index:r,action:2}}):t._e()],1)}),0)])])]),t._v(" "),s("div",{staticClass:"mt20 align-center"},[s("ks-button",{staticClass:"mb20",attrs:{type:"danger"},on:{click:t.save}},[t._v("提交看成绩")])],1),t._v(" "),s("ks-dialog",{attrs:{visible:t.isShowOpera,title:"提示",width:"300px",align:"center",top:"30%",isshowclose:"1"},on:{"update:visible":function(e){t.isShowOpera=e}}},[s("div",{staticClass:"tips-con"},[s("i",{staticClass:"f50 iconfont vertical-align",class:(0==t.operatstatus?"red-font icon-shibai":1==t.operatstatus&&"green-font icon-chenggong")||3==t.operatstatus&&"red-font icon-jinggao"}),t._v(" "),s("font",{staticClass:"f16 vertical-align ml10"},[t._v(t._s(t.operaTips))])],1)])],1):t._e()},staticRenderFns:[]};var n=s("C7Lr")(i,a,!1,function(t){s("k1F2"),s("CrEx")},"data-v-d841d360",null);e.default=n.exports}});