webpackJsonp([8],{"84jf":function(t,e){},MiHJ:function(t,e){},rj4K:function(t,e,s){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var i=s("g+M4"),r={name:"YourselfReading",data(){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(t){this.curr=t},num(t){var e="千百亿千百十万千百十个",s=t.length,i="";if(e.length-s<0)return"数字过长";e=e.substr(e.length-s);for(var r=0;r<s;r++)i+="零一二三四五六七八九".charAt(t[r])+e.charAt(r);return i=i.substr(0,i.length-1)},loadPage(){Object(i.o)(this.getParameters).then(t=>{t.result?(t.data.map(t=>{6==t.tktype?t.tkinfo.childtk.map(t=>{t.new_score=""}):t.new_score=""}),this.testList=t.data):this.testList=[]}),this.loaded=!0},save(){let t=[];this.testList.map(e=>{let s=[];6==e.tktype?e.tkinfo.childtk.map((t,e)=>{t.new_score&&(t.userscore=t.new_score),s.push({tkid:e,userscore:t.userscore})}):(e.new_score&&(e.userscore=e.new_score),s.push(e.userscore)),t.push({tkid:e.tkid,userscore:s})});let e={paperid:this.getParameters.paperid,answerid:this.getParameters.answerid,scorelist:t};Object(i.v)(e).then(t=>{t.result?(this.operatstatus=1,this.isShowOpera=!0,this.operaTips="提交成功",setTimeout(()=>{this.$router.push({name:"ExaminationResult",query:{answerid:this.getParameters.answerid,paperid:this.getParameters.paperid,type:this.$route.query.type,categoryid:this.$route.query.categoryid,dtnum:this.$route.query.dtnum,tknum:this.$route.query.tknum,answertime:this.$route.query.answertime,sumscore:this.$route.query.sumscore,schoolname:this.$route.query.schoolname}})},1500)):(this.isShowOpera=!0,this.operatstatus=0,this.operaTips=t.msg,setTimeout(()=>{this.isShowOpera=!1},1500))})}},mounted(){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,i){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:i,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 o=s("C7Lr")(r,a,!1,function(t){s("84jf"),s("MiHJ")},"data-v-6a16ba16",null);e.default=o.exports}});