12 |
- (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-48d77be5"],{4711:function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"testpaper"},[a("div",{staticClass:"card"},[a("el-card",{attrs:{shadow:"hover"}},["radio"==t.Data.type?a("Radio",{attrs:{Data:t.Data,State:t.State},on:{Func:t.Answer}}):t._e(),"checkbox"==t.Data.type?a("Checkbox",{attrs:{Data:t.Data,State:t.State},on:{Func:t.Answer}}):t._e(),"input"==t.Data.type?a("Input",{attrs:{Data:t.Data,State:t.State},on:{Func:t.Answer}}):t._e(),"bool"==t.Data.type?a("Bool",{attrs:{Data:t.Data,State:t.State},on:{Func:t.Answer}}):t._e(),t.State?t._e():a("p",[a("el-button",{attrs:{disabled:t.A,type:"success"},on:{click:function(e){return t.Success({tag:"btn",type:"-",id:t.Data.id})}}},[t._v("上一题")]),a("el-button",{attrs:{disabled:t.B,type:"success"},on:{click:function(e){return t.Success({tag:"btn",type:"+",id:t.Data.id})}}},[t._v("下一题")])],1)],1)],1),a("div",{staticClass:"list"},[a("el-card",{staticStyle:{"background-color":"#f03",color:"#fff","text-align":"center"},attrs:{shadow:"never"}},[t._v(t._s(t.timer_msg))]),a("br"),a("el-card",{attrs:{shadow:"hover"}},[a("div",{staticClass:"exam-card"},[a("h3",[t._v("答题卡")]),t._l(t.StateData,(function(e,n){return a("SelectCircle",{key:n,attrs:{Data:e,props:n},on:{Success:t.Success}})})),a("el-button",{attrs:{type:"success"},on:{click:function(e){return t.JJ({tag:"btn",type:"+",id:t.Data.id})}}},[t._v("交卷")])],2)])],1),a("el-dialog",{attrs:{title:"提示",visible:t.dialogVisible,width:"30%"},on:{"update:visible":function(e){t.dialogVisible=e}}},[a("span",[t._v(t._s(t.dialog_msg))]),a("span",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{on:{click:function(e){t.dialogVisible=!1}}},[t._v("取 消")]),a("el-button",{attrs:{type:"primary"},on:{click:t.dialog}},[t._v("确 定")])],1)])],1)},r=[],i=(a("d3b7"),a("3ca3"),a("ddb0"),a("a9e3"),a("99af"),function(){return a.e("chunk-a2c9752a").then(a.bind(null,"168a"))}),o=function(){return a.e("chunk-5375b83c").then(a.bind(null,"5651"))},c=function(){return a.e("chunk-4876201d").then(a.bind(null,"2bb6"))},s=function(){return a.e("chunk-0ef61f6e").then(a.bind(null,"fdd7"))},u=function(){return a.e("chunk-a6f0a4e8").then(a.bind(null,"6a06"))},l={components:{Radio:i,Checkbox:o,Input:c,Bool:s,SelectCircle:u},props:{State:{type:Boolean,default:!1},Data:{type:Object,default:{}},Total:{type:Number/String,default:1},Timer:{type:Number/String,default:0},Unselected:{type:Number/String,default:0},StateData:{type:Array,default:function(){return[]}},Type:{type:String,default:""}},data:function(){return{value:null,timer_msg:"",A:!1,B:!1,dialogVisible:!1,dialog_msg:""}},created:function(){},mounted:function(){"formal"==this.Type?this.TimeFunc(!1):this.TimeFunc()},methods:{dialog:function(){this.dialogVisible=!1,this.Success({tag:"btns",type:"+",id:this.Data.id})},TimeFunc:function(){var t=this,e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0],a=this,n=this.Timer;this.timer=setInterval((function(){if(e){++n;var r=Math.floor(n/60/60),i=Math.floor((n-60*r*60)/60),o=Math.floor(n%60);a.timer_msg="练习时间:".concat(r,"时").concat(i,"分").concat(o,"秒")}else{--n;var c=Math.floor(n/60/60),s=Math.floor((n-60*c*60)/60),u=Math.floor(n%60);a.timer_msg="结束时间:".concat(c,"时").concat(s,"分").concat(u,"秒"),n<=0&&(t.dialog(),clearInterval(t.timer))}}),1e3)},Answer:function(t){this.value=t},JJ:function(){this.Unselected<=1?this.dialog_msg="确认交卷吗?":this.dialog_msg="你还有".concat(this.Unselected,"道题尚未完成,确认交卷吗?"),this.dialogVisible=!0},Success:function(t){this.$emit("Func",JSON.parse(JSON.stringify({data:t,value:this.value})))},able:function(t,e){return"-"==t&&1==e||("+"==t&&e>=this.Total||void 0)}},watch:{Data:function(t,e){clearInterval(this.timer),"formal"==this.Type?this.TimeFunc(!1):this.TimeFunc(),1==t.id?this.A=!0:this.A=!1,t.id==this.Total?this.B=!0:this.B=!1,this.value=[]}},beforeDestroy:function(){clearInterval(this.timer)}},f=l,d=(a("ea71"),a("2877")),h=Object(d["a"])(f,n,r,!1,null,"cd5f2ade",null);e["default"]=h.exports},5899:function(t,e){t.exports="\t\n\v\f\r \u2028\u2029\ufeff"},"58a8":function(t,e,a){var n=a("1d80"),r=a("577e"),i=a("5899"),o="["+i+"]",c=RegExp("^"+o+o+"*"),s=RegExp(o+o+"*$"),u=function(t){return function(e){var a=r(n(e));return 1&t&&(a=a.replace(c,"")),2&t&&(a=a.replace(s,"")),a}};t.exports={start:u(1),end:u(2),trim:u(3)}},7156:function(t,e,a){var n=a("861d"),r=a("d2bb");t.exports=function(t,e,a){var i,o;return r&&"function"==typeof(i=e.constructor)&&i!==a&&n(o=i.prototype)&&o!==a.prototype&&r(t,o),t}},"99af":function(t,e,a){"use strict";var n=a("23e7"),r=a("d039"),i=a("e8b5"),o=a("861d"),c=a("7b0b"),s=a("50c4"),u=a("8418"),l=a("65f0"),f=a("1dde"),d=a("b622"),h=a("2d00"),p=d("isConcatSpreadable"),b=9007199254740991,g="Maximum allowed index exceeded",v=h>=51||!r((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),m=f("concat"),y=function(t){if(!o(t))return!1;var e=t[p];return void 0!==e?!!e:i(t)},S=!v||!m;n({target:"Array",proto:!0,forced:S},{concat:function(t){var e,a,n,r,i,o=c(this),f=l(o,0),d=0;for(e=-1,n=arguments.length;e<n;e++)if(i=-1===e?o:arguments[e],y(i)){if(r=s(i.length),d+r>b)throw TypeError(g);for(a=0;a<r;a++,d++)a in i&&u(f,d,i[a])}else{if(d>=b)throw TypeError(g);u(f,d++,i)}return f.length=d,f}})},a9e3:function(t,e,a){"use strict";var n=a("83ab"),r=a("da84"),i=a("94ca"),o=a("6eeb"),c=a("5135"),s=a("c6b6"),u=a("7156"),l=a("d9b5"),f=a("c04e"),d=a("d039"),h=a("7c73"),p=a("241c").f,b=a("06cf").f,g=a("9bf2").f,v=a("58a8").trim,m="Number",y=r[m],S=y.prototype,_=s(h(S))==m,I=function(t){if(l(t))throw TypeError("Cannot convert a Symbol value to a number");var e,a,n,r,i,o,c,s,u=f(t,"number");if("string"==typeof u&&u.length>2)if(u=v(u),e=u.charCodeAt(0),43===e||45===e){if(a=u.charCodeAt(2),88===a||120===a)return NaN}else if(48===e){switch(u.charCodeAt(1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+u}for(i=u.slice(2),o=i.length,c=0;c<o;c++)if(s=i.charCodeAt(c),s<48||s>r)return NaN;return parseInt(i,n)}return+u};if(i(m,!y(" 0o1")||!y("0b1")||y("+0x1"))){for(var N,w=function(t){var e=arguments.length<1?0:t,a=this;return a instanceof w&&(_?d((function(){S.valueOf.call(a)})):s(a)!=m)?u(new y(I(e)),a,w):I(e)},A=n?p(y):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger,fromString,range".split(","),D=0;A.length>D;D++)c(y,N=A[D])&&!c(w,N)&&g(w,N,b(y,N));w.prototype=S,S.constructor=w,o(r,m,w)}},e8d8:function(t,e,a){},ea71:function(t,e,a){"use strict";a("e8d8")}}]);
- //# sourceMappingURL=chunk-48d77be5.845d19bd.js.map
|