点击回首页
我的浏览记录 | | 帮助?
当前位置:
首页>> 行业软件>> 在线考试系统>> 源文件浏览
[免费版 Free] WebForm,下载次数:404 次 | 关键字: 考试 办公 高校 竞赛 企事业单位

源码截图

源码目录树

;
当前路径:public/static/control/p__testPaper__preview.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[42],{"+X2T":function(e,t,a){"use strict";a("sRBo");var n=a("kaz8"),r=a("q1tI"),l=a.n(r),c=a("5YGV"),o=a("69+E"),i=a.n(o);function s(e){var t=e.type,a=void 0===t?"answer":t,r=e.title,o=e.question,s=e.result,u=e.onSubmit,m=e.sort,p=e.order,d=Object(c["d"])(s,{});function f(e,t){d[t].answer=e,u&&u(d)}return l.a.createElement("div",{className:i.a.divStyle},l.a.createElement("h3",null,m&&"".concat(Object(c["n"])(m),"\u3001"),"\u591a\u9009\u9898"," ","answer"===a&&"\uff08\u5171".concat(r.questionNum,"\u9898\uff0c\u5171").concat(r.point*r.questionNum,"\u5206\uff09")),l.a.createElement("div",{className:i.a.divStyle},o.map((function(e,t){return l.a.createElement("div",{className:i.a.divStyle,id:"choices".concat(e.id),key:t},l.a.createElement("p",null,p||t+1,".",e.name," ",l.a.createElement("br",null)),l.a.createElement(n["a"].Group,{defaultValue:s?s[e.id].answer:"",onChange:function(t){return u&&f(t,e.id)}},Object(c["i"])(e.options).map((function(e,t){return l.a.createElement(n["a"],{style:{marginLeft:0,display:"block"},value:e.option,key:t},e.option,"\u3001",e.content)}))),"preview"===a&&l.a.createElement("div",{style:{marginTop:20}},l.a.createElement("p",null,l.a.createElement("span",{style:{color:"#1890ff",marginTop:20}},"\u6807\u51c6\u7b54\u6848\uff1a")," ",e.answer),l.a.createElement("p",null,l.a.createElement("span",{style:{color:"#1890ff",marginTop:20}},"\u8bd5\u9898\u89e3\u6790\uff1a"),e.analysis)),"analysis"===a&&l.a.createElement("div",{style:{marginTop:20}},l.a.createElement("p",null,l.a.createElement("span",{style:{color:"#1890ff",marginTop:20}},"\u6807\u51c6\u7b54\u6848\uff1a"),e.questionAnswer),l.a.createElement("p",null,l.a.createElement("span",{style:{color:"#1890ff",marginTop:20}},"\u8003\u751f\u7b54\u6848\uff1a"),e.studentAnswer),0===e.score?l.a.createElement("p",{style:{color:"red",marginTop:20}},l.a.createElement("span",null,"\u672c\u9898\u5f97\u5206\uff1a"),e.score):l.a.createElement("p",{style:{color:"#1890ff",marginTop:20}},l.a.createElement("span",null,"\u672c\u9898\u5f97\u5206\uff1a"),e.score),l.a.createElement("p",null,l.a.createElement("span",{style:{color:"#1890ff",marginTop:20}},"\u8bd5\u9898\u89e3\u6790\uff1a "),e.analysis)))}))))}t["a"]=s},"69+E":function(e,t,a){e.exports={radioStyle:"radioStyle___3_VdP",selectStyle:"selectStyle___DF624",spanStyle:"spanStyle___24Ifv",clickSelect:"clickSelect___2XdWv",divStyle:"divStyle___20uH_",typingContent:"typingContent___1ql8v",incorrect_char:"incorrect_char___1hKIn",correct:"correct___PY8_x",fileButton:"fileButton___1YrY2"}},"6enp":function(e,t,a){"use strict";a.d(t,"a",(function(){return s}));a("7Kak");var n=a("9yH6"),r=a("q1tI"),l=a.n(r),c=a("5YGV"),o=a("69+E"),i=a.n(o);function s(e){var t=e.type,a=void 0===t?"answer":t,r=e.title,o=e.question,s=e.result,u=e.onSubmit,m=e.sort,p=e.order,d=Object(c["d"])(s,{});function f(e,t){d[t].answer=e.target.value,u&&u(d)}return l.a.createElement("div",{className:i.a.divStyle},l.a.createElement("h3",null,m&&"".concat(Object(c["n"])(m),"\u3001"),"\u5224\u65ad\u9898","answer"===a&&"\uff08\u5171".concat(r.questionNum,"\u9898\uff0c\u5171").concat(r.point*r.questionNum,"\u5206\uff09")),l.a.createElement("div",{className:i.a.divStyle},o.map((function(e,t){return l.a.createElement("div",{className:i.a.divStyle,id:"judge".concat(e.id),key:t},l.a.createElement("p",null,p||t+1,". ",e.name),l.a.createElement(n["a"].Group,{defaultValue:s&&s[e.id].answer,onChange:function(t){return s&&f(t,e.id)}},l.a.createElement(n["a"],{style:{display:"block",marginBottom:"10px"},value:1},"\u5bf9"),l.a.createElement(n["a"],{style:{display:"block"},value:0},"\u9519")),"preview"===a&&l.a.createElement("div",{style:{marginTop:20}},l.a.createElement("p",null,l.a.createElement("span",{style:{color:"#1890ff",marginTop:20}},"\u6807\u51c6\u7b54\u6848\uff1a"),1===e.answer?"\u5bf9":"\u9519"),l.a.createElement("p",null,l.a.createElement("span",{style:{color:"#1890ff",marginTop:20}},"\u8bd5\u9898\u89e3\u6790\uff1a"),e.analysis)),"analysis"===a&&l.a.createElement("div",{style:{marginTop:20}},l.a.createElement("p",null,l.a.createElement("span",{style:{color:"#1890ff",marginTop:20}},"\u6807\u51c6\u7b54\u6848\uff1a"),1===e.questionAnswer?"\u5bf9":"\u9519"),l.a.createElement("p",null,l.a.createElement("span",{style:{color:"#1890ff",marginTop:20}},"\u8003\u751f\u7b54\u6848\uff1a"),e.studentAnswer?1===e.studentAnswer?"\u5bf9":"\u9519":"\u7a7a"),0===e.score?l.a.createElement("p",{style:{color:"red",marginTop:20}},l.a.createElement("span",null,"\u672c\u9898\u5f97\u5206\uff1a"),e.score):l.a.createElement("p",{style:{color:"#1890ff",marginTop:20}},l.a.createElement("span",null,"\u672c\u9898\u5f97\u5206\uff1a"),e.score),l.a.createElement("p",null,l.a.createElement("span",{style:{color:"#1890ff",marginTop:20}},"\u8bd5\u9898\u89e3\u6790\uff1a "),e.analysis)))}))))}},FsuU:function(e,t,a){"use strict";a.d(t,"a",(function(){return h}));a("DZo9");var n=a("8z0m"),r=(a("+L6B"),a("2/Rp")),l=a("WmNS"),c=a.n(l),o=a("9og8"),i=a("tJVT"),s=a("q1tI"),u=a.n(s),m=a("dF/Y"),p=a("z7Xi"),d=a("69+E"),f=a.n(d),E=a("5YGV"),y=a("szSY"),v=a("aF7B");function h(e){var t=Object(s["useState"])([]),a=Object(i["a"])(t,2),l=a[0],d=a[1],h=e.type,g=void 0===h?"answer":h,w=e.title,b=e.question,T=e.result,S=e.onSubmit,q=e.sort,k=e.order,j=Object(E["d"])(T,{}),x=function(e,t){var a=e.file,n=new FormData;n.append("type","file"),n.append("file",a),v["a"].fileAdd(n).then(function(){var e=Object(o["a"])(c.a.mark((function e(a){var n;return c.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(0!==a.errCode){e.next=9;break}return n=[],n.push({uid:Date.now(),key:"file",name:a.dataSet}),e.next=5,d(n);case 5:j[t].handel=a.dataSet,S&&S(j),e.next=10;break;case 9:Object(E["l"])("error",a.errMsg);case 10:case"end":return e.stop()}}),e)})));return function(t){return e.apply(this,arguments)}}())};return u.a.createElement("div",{className:f.a.divStyle},u.a.createElement("h3",null,q&&"".concat(Object(E["n"])(q),"\u3001")," \u64cd\u4f5c\u9898"," ","answer"===g&&"\uff08\u5171".concat(w.questionNum,"\u9898\uff0c\u5171").concat(w.point*w.questionNum,"\u5206\uff0c\u8bf7\u5148\u4e0b\u8f7d\u64cd\u4f5c\u9898\u6587\u4ef6\uff0c\u5b8c\u6210\u4e4b\u540e\u4e0a\u4f20\u8be5\u6587\u4ef6\uff09")),u.a.createElement("div",{className:f.a.divStyle},u.a.createElement("div",{className:f.a.divStyle},b.map((function(e,t){return u.a.createElement("div",{className:f.a.divStyle,key:t,id:"handel".concat(e.id)},u.a.createElement("p",null,k||t+1,". ",e.name),u.a.createElement("div",null,u.a.createElement(r["a"],{className:f.a.fileButton,type:"ghost",icon:u.a.createElement(m["a"],null)},u.a.createElement("a",{href:"#",target:"_blank",download:Object(y["c"])(null===T||void 0===T?void 0:T[e.id].handel)},"\u4e0b\u8f7d\u64cd\u4f5c\u9898"))),u.a.createElement(n["a"],{accept:".doc, .docx, .pdf",multiple:!0,fileList:l,customRequest:function(t){return x(t,e.id)}},u.a.createElement(r["a"],{className:f.a.fileButton,type:"ghost",icon:u.a.createElement(p["a"],null)},u.a.createElement("a",null,"\u4e0a\u4f20\u64cd\u4f5c\u9898"))),"preview"===g&&u.a.createElement("div",{style:{marginTop:20}},u.a.createElement("p",null,u.a.createElement("span",{style:{color:"#1890ff",marginTop:20}},"\u8bd5\u9898\u89e3\u6790\uff1a"),e.analysis)),"analysis"===g&&u.a.createElement("div",{style:{margin:"20px 0"}},u.a.createElement("p",null,u.a.createElement("span",{style:{color:"#1890ff",marginTop:20}},"\u8003\u751f\u7b54\u6848\uff1a"),e.studentAnswer),0===e.score?u.a.createElement("p",{style:{color:"red",marginTop:20}},u.a.createElement("span",null,"\u672c\u9898\u5f97\u5206\uff1a"),e.score):u.a.createElement("p",{style:{color:"#1890ff",marginTop:20}},u.a.createElement("span",null,"\u672c\u9898\u5f97\u5206\uff1a"),e.score),u.a.createElement("p",null,u.a.createElement("span",{style:{color:"#1890ff",marginTop:20}},"\u8bd5\u9898\u89e3\u6790\uff1a "),e.analysis)))})))))}},QzFp:function(e,t,a){"use strict";a.r(t),a.d(t,"default",(function(){return I}));a("T2oS");var n=a("W9HT"),r=(a("14J3"),a("BMrR")),l=(a("jCWc"),a("kPKH")),c=(a("IzEo"),a("bx4M")),o=(a("+L6B"),a("2/Rp")),i=(a("bP8k"),a("gFTJ")),s=a("WmNS"),u=a.n(s),m=a("9og8"),p=a("fWQN"),d=a("mtLc"),f=a("yKVA"),E=a("879j"),y=(a("tU7J"),a("wFql")),v=a("q1tI"),h=a.n(v),g=a("b6uL"),w=a("9kvl"),b=a("pLYI"),T=a("wd/R"),S=a.n(T),q=a("txBU"),k=a("zWjP"),j=a.n(k),x=a("rdXg"),O=a.n(x),N=y["a"].Title,_={style:{margin:"20px 0"}},I=function(e){Object(f["a"])(a,e);var t=Object(E["a"])(a);function a(){var e;Object(p["a"])(this,a);for(var n=arguments.length,r=new Array(n),l=0;l<n;l++)r[l]=arguments[l];return e=t.call.apply(t,[this].concat(r)),e.state={examData:void 0,userInfo:void 0},e}return Object(d["a"])(a,[{key:"componentDidMount",value:function(){var e=Object(m["a"])(u.a.mark((function e(){var t,a,n,r;return u.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.next=2,Object(b["getInitialState"])();case 2:return t=e.sent,a=t.currentUser,n=w["b"].location.query,e.next=7,Object(g["d"])(n);case 7:r=e.sent,0===r.errCode&&this.setState({examData:r.dataSet,userInfo:a});case 9:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"handleSaveDoc",value:function(){var e=this.state.examData;j()({exportElement:"#html-docx",exportFileName:"".concat(e.title,".docx"),StringStyle:"",margins:{top:1440,right:1440,bottom:1440,left:1440,header:720,footer:720,gutter:0}})}},{key:"handlePrint",value:function(){O()({printable:"html-docx",type:"html",targetStyles:["*"],style:"@media print{ #html-docx{height: auto!important }}",scanStyles:!1})}},{key:"render",value:function(){var e=this,t=this.state,a=t.examData,s=t.userInfo;return console.log(a),h.a.createElement(c["a"],null,a&&s?h.a.createElement(r["a"],null,h.a.createElement(l["a"],{span:6},h.a.createElement(c["a"],{style:{height:"100%"},bodyStyle:{height:"100%",display:"flex",flexDirection:"column"}},h.a.createElement("div",{style:{flex:1}},h.a.createElement("div",_,h.a.createElement(N,{level:4},"\u8bd5\u5377\u4fe1\u606f"),h.a.createElement(i["a"],{column:2},h.a.createElement(i["a"].Item,{label:"\u8003\u751f\u8d26\u53f7"},s.uid),h.a.createElement(i["a"].Item,{label:"\u8003\u751f\u59d3\u540d"},s.name),h.a.createElement(i["a"].Item,{label:"\u8bd5\u9898\u6570\u91cf"},a.questionNum),h.a.createElement(i["a"].Item,{label:"\u8bd5\u5377\u603b\u5206"},a.totalPoints),h.a.createElement(i["a"].Item,{label:"\u901a\u8fc7\u5206\u6570"},a.throughPoints))),h.a.createElement("div",_,h.a.createElement(N,{level:4},"\u7b54\u5377\u4fe1\u606f"),h.a.createElement(i["a"],{column:1},h.a.createElement(i["a"].Item,{label:"\u7b54\u5377\u65f6\u95f4"},"".concat(S.a.unix(null===a||void 0===a?void 0:a.timeStart).format("YYYY-MM-DD HH:mm:ss")," -  ").concat(S.a.unix(null===a||void 0===a?void 0:a.timeEnd).format("YYYY-MM-DD HH:mm:ss")))))),h.a.createElement("div",{style:{margin:20}},h.a.createElement(o["a"],{block:!0,type:"primary",onClick:function(){return e.handleSaveDoc()}},"\u5bfc\u51fa\u8bd5\u5377"),h.a.createElement(o["a"],{block:!0,type:"primary",onClick:function(){return e.handlePrint()},style:{marginTop:15}},"\u6253\u5370\u8bd5\u5377"),h.a.createElement(o["a"],{block:!0,onClick:function(){return w["b"].goBack()},style:{marginTop:15}},"\u5173\u95ed\u8bd5\u5377")))),h.a.createElement(l["a"],{span:18,style:{height:"80vh",overflow:"auto"}},h.a.createElement("div",{id:"html-docx"},h.a.createElement(c["a"],null,h.a.createElement(N,{style:{textAlign:"center"},level:2},"\u8bd5\u5377")),h.a.createElement(c["a"],null,h.a.createElement(q["a"],{data:a}))))):h.a.createElement(n["a"],null))}}]),a}(v["PureComponent"])},SuIk:function(e,t,a){"use strict";a.d(t,"a",(function(){return m}));a("14J3");var n=a("BMrR"),r=(a("5NDa"),a("5rEg")),l=(a("jCWc"),a("kPKH")),c=a("q1tI"),o=a.n(c),i=a("5YGV"),s=a("69+E"),u=a.n(s);function m(e){var t=e.type,a=void 0===t?"answer":t,c=e.title,s=e.question,m=e.result,p=e.onSubmit,d=e.sort,f=e.order,E=Object(i["d"])(m,{});function y(e,t){E[t].answer=e.target.value,p&&p(E)}return o.a.createElement("div",{className:u.a.divStyle},o.a.createElement("h3",null,d&&"".concat(Object(i["n"])(d),"\u3001"),"\u586b\u7a7a\u9898"," ","answer"===a&&"\uff08\u5171".concat(c.questionNum,"\u9898\uff0c\u5171").concat(c.point*c.questionNum,"\u5206\uff09")),o.a.createElement("div",{className:u.a.divStyle},s.map((function(e,t){return o.a.createElement("div",{className:u.a.divStyle,id:"fillIn".concat(e.id),key:t},o.a.createElement("p",null,f||t+1,". ",e.name),o.a.createElement(n["a"],{gutter:12},o.a.createElement(l["a"],{span:3},"\u7b54\u6848\uff1a"),o.a.createElement(l["a"],{span:8},o.a.createElement(r["a"],{width:300,defaultValue:m&&(null===m||void 0===m?void 0:m[e.id].answer),onChange:function(t){return y(t,e.id)}}))),"preview"===a&&o.a.createElement("div",{style:{marginTop:20}},o.a.createElement("p",null,o.a.createElement("span",{style:{color:"#1890ff",marginTop:20}},"\u6807\u51c6\u7b54\u6848\uff1a")," ",e.answer),o.a.createElement("p",null,o.a.createElement("span",{style:{color:"#1890ff",marginTop:20}},"\u8bd5\u9898\u89e3\u6790\uff1a"),e.analysis)),"analysis"===a&&o.a.createElement("div",{style:{marginTop:20}},o.a.createElement("p",null,o.a.createElement("span",{style:{color:"#1890ff",marginTop:20}},"\u6807\u51c6\u7b54\u6848\uff1a"),e.questionAnswer),o.a.createElement("p",null,o.a.createElement("span",{style:{color:"#1890ff",marginTop:20}},"\u8003\u751f\u7b54\u6848\uff1a"),e.studentAnswer),0===e.score?o.a.createElement("p",{style:{color:"red",marginTop:20}},o.a.createElement("span",null,"\u672c\u9898\u5f97\u5206\uff1a"),e.score):o.a.createElement("p",{style:{color:"#1890ff",marginTop:20}},o.a.createElement("span",null,"\u672c\u9898\u5f97\u5206\uff1a"),e.score),o.a.createElement("p",null,o.a.createElement("span",{style:{color:"#1890ff",marginTop:20}},"\u8bd5\u9898\u89e3\u6790\uff1a "),e.analysis)))}))))}},aF7B:function(e,t,a){"use strict";var n=a("WmNS"),r=a.n(n),l=a("9og8"),c=a("9kvl");t["a"]={fileAdd:function(e){return Object(l["a"])(r.a.mark((function t(){return r.a.wrap((function(t){while(1)switch(t.prev=t.next){case 0:return t.abrupt("return",Object(c["d"])("/core/tools/upload",{method:"POST",data:e}));case 1:case"end":return t.stop()}}),t)})))()}}},b6uL:function(e,t,a){"use strict";a.d(t,"f",(function(){return o})),a.d(t,"e",(function(){return s})),a.d(t,"a",(function(){return m})),a.d(t,"b",(function(){return d})),a.d(t,"c",(function(){return E})),a.d(t,"d",(function(){return v}));var n=a("WmNS"),r=a.n(n),l=a("9og8"),c=a("9kvl");function o(e){return i.apply(this,arguments)}function i(){return i=Object(l["a"])(r.a.mark((function e(t){return r.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(c["d"])("/exam/paper/search",{method:"POST",data:t}));case 1:case"end":return e.stop()}}),e)}))),i.apply(this,arguments)}function s(e){return u.apply(this,arguments)}function u(){return u=Object(l["a"])(r.a.mark((function e(t){return r.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(c["d"])("/exam/paper/strategy",{method:"POST",data:t}));case 1:case"end":return e.stop()}}),e)}))),u.apply(this,arguments)}function m(e){return p.apply(this,arguments)}function p(){return p=Object(l["a"])(r.a.mark((function e(t){return r.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(c["d"])("/exam/paper/add",{method:"POST",data:t}));case 1:case"end":return e.stop()}}),e)}))),p.apply(this,arguments)}function d(e){return f.apply(this,arguments)}function f(){return f=Object(l["a"])(r.a.mark((function e(t){return r.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(c["d"])("/exam/paper/delete",{method:"POST",data:t}));case 1:case"end":return e.stop()}}),e)}))),f.apply(this,arguments)}function E(e){return y.apply(this,arguments)}function y(){return y=Object(l["a"])(r.a.mark((function e(t){return r.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(c["d"])("/exam/paper/detail",{method:"POST",data:t}));case 1:case"end":return e.stop()}}),e)}))),y.apply(this,arguments)}function v(e){return h.apply(this,arguments)}function h(){return h=Object(l["a"])(r.a.mark((function e(t){return r.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:return e.abrupt("return",Object(c["d"])("/exam/paper/preview",{method:"POST",data:t}));case 1:case"end":return e.stop()}}),e)}))),h.apply(this,arguments)}},bsj0:function(e,t,a){"use strict";var n=a("q1tI"),r=a.n(n),l=a("27j4"),c=a.n(l),o=a("5YGV"),i=a("69+E"),s=a.n(i);function u(e){var t=e.type,a=void 0===t?"answer":t,n=e.title,l=e.question,i=e.result,u=e.onSubmit,m=e.sort,p=e.order,d=Object(o["d"])(i,{});function f(e,t){d[t].answer=e.target.value,u&&u(d)}return r.a.createElement("div",{className:s.a.divStyle},r.a.createElement("h3",null,m&&"".concat(Object(o["n"])(m),"\u3001")," ","answer"===n.type?"\u95ee\u7b54\u9898":"\u4f5c\u6587\u9898"," ","answer"===a&&"\uff08\u5171".concat(n.questionNum,"\u9898\uff0c\u5171").concat(n.point*n.questionNum,"\u5206\uff09")),r.a.createElement("div",{className:s.a.divStyle},r.a.createElement("div",{className:s.a.divStyle},l.map((function(e,t){return r.a.createElement("div",{className:s.a.divStyle,key:t,id:"".concat("answer"===n.type?"answer".concat(e.id):"composition".concat(e.id))},r.a.createElement("p",null,p||t+1,". ",e.name),r.a.createElement(c.a,{key:Math.random(),defaultValue:i?i[e.id].answer:"",onChange:function(t){return f(t,e.id)}}),"preview"===a&&r.a.createElement("div",{style:{marginTop:20}},r.a.createElement("p",null,r.a.createElement("span",{style:{color:"#1890ff",marginTop:20}},"\u6807\u51c6\u7b54\u6848\uff1a")," ",e.answer),r.a.createElement("p",null,r.a.createElement("span",{style:{color:"#1890ff",marginTop:20}},"\u8bd5\u9898\u89e3\u6790\uff1a"),e.analysis)),"analysis"===a&&r.a.createElement("div",{style:{margin:"20px 0"}},r.a.createElement("p",null,r.a.createElement("span",{style:{color:"#1890ff",marginTop:20}},"\u6807\u51c6\u7b54\u6848\uff1a"),e.questionAnswer),r.a.createElement("p",null,r.a.createElement("span",{style:{color:"#1890ff",marginTop:20}},"\u8003\u751f\u7b54\u6848\uff1a"),e.studentAnswer),0===e.score?r.a.createElement("p",{style:{color:"red",marginTop:20}},r.a.createElement("span",null,"\u672c\u9898\u5f97\u5206\uff1a"),e.score):r.a.createElement("p",{style:{color:"#1890ff",marginTop:20}},r.a.createElement("span",null,"\u672c\u9898\u5f97\u5206\uff1a"),e.score),r.a.createElement("p",null,r.a.createElement("span",{style:{color:"#1890ff",marginTop:20}},"\u8bd5\u9898\u89e3\u6790\uff1a "),e.analysis)))})))))}t["a"]=u},l8T3:function(e,t,a){"use strict";a("7Kak");var n=a("9yH6"),r=a("q1tI"),l=a.n(r),c=a("5YGV"),o=a("69+E"),i=a.n(o);function s(e){console.log("choice");var t=e.type,a=void 0===t?"answer":t,r=e.title,o=e.question,s=e.result,u=e.onSubmit,m=e.sort,p=e.order,d=Object(c["d"])(s,{});function f(e,t){d[t].answer=e.target.value,u&&u(d)}return l.a.createElement("div",{className:i.a.divStyle},l.a.createElement("h3",null,m&&"".concat(Object(c["n"])(m),"\u3001"),"\u5355\u9009\u9898"," ","answer"===a&&"\uff08\u5171".concat(r.questionNum,"\u9898\uff0c\u5171").concat(r.point*r.questionNum,"\u5206\uff09")),l.a.createElement("div",{className:i.a.divStyle},o.map((function(e,t){return l.a.createElement("div",{className:i.a.divStyle,key:t,id:"choice".concat(e.id)},l.a.createElement("p",null,p||t+1,". ",e.name),l.a.createElement(n["a"].Group,{defaultValue:s?s[e.id].answer:"",onChange:function(t){return u&&f(t,e.id)}},Object(c["i"])(e.options).map((function(e,t){return l.a.createElement(n["a"],{style:{display:"block",marginBottom:"10px"},value:e.option,key:t},e.option,"\u3001",e.content)}))),"preview"===a&&l.a.createElement("div",{style:{marginTop:20}},l.a.createElement("p",null,l.a.createElement("span",{style:{color:"#1890ff",marginTop:20}},"\u6807\u51c6\u7b54\u6848\uff1a")," ",e.answer),l.a.createElement("p",null,l.a.createElement("span",{style:{color:"#1890ff",marginTop:20}},"\u8bd5\u9898\u89e3\u6790\uff1a"),e.analysis)),"analysis"===a&&l.a.createElement("div",{style:{marginTop:20}},l.a.createElement("p",null,l.a.createElement("span",{style:{color:"#1890ff",marginTop:20}},"\u6807\u51c6\u7b54\u6848\uff1a"),e.questionAnswer),l.a.createElement("p",null,l.a.createElement("span",{style:{color:"#1890ff",marginTop:20}},"\u8003\u751f\u7b54\u6848\uff1a"),e.studentAnswer),0===e.score?l.a.createElement("p",{style:{color:"red",marginTop:20}},l.a.createElement("span",null,"\u672c\u9898\u5f97\u5206\uff1a"),e.score):l.a.createElement("p",{style:{color:"#1890ff",marginTop:20}},l.a.createElement("span",null,"\u672c\u9898\u5f97\u5206\uff1a"),e.score),l.a.createElement("p",null,l.a.createElement("span",{style:{color:"#1890ff",marginTop:20}},"\u8bd5\u9898\u89e3\u6790\uff1a "),e.analysis)))}))))}t["a"]=s},txBU:function(e,t,a){"use strict";var n=a("q1tI"),r=a.n(n),l=a("l8T3"),c=a("6enp"),o=a("SuIk"),i=a("+X2T"),s=a("bsj0"),u=a("FsuU"),m=function(e){var t=e.data,a=e.type,n=void 0===a?"preview":a;function m(e){var t=[];for(var a in e.question)"judge"===a&&t.push(r.a.createElement(c["a"],{title:e.questionType["judge"],question:e.question["judge"],result:void 0,type:n})),"fillIn"===a&&t.push(r.a.createElement(o["a"],{title:e.questionType["fillIn"],question:e.question["fillIn"],result:void 0,type:n})),"choices"===a&&t.push(r.a.createElement(i["a"],{title:e.questionType["choices"],question:e.question["choices"],result:void 0,type:n})),"choice"===a&&t.push(r.a.createElement(l["a"],{title:e.questionType["choice"],question:e.question["choice"],result:void 0,type:n})),"answer"===a&&t.push(r.a.createElement(s["a"],{title:e.questionType["answer"],question:e.question["answer"],result:void 0,type:n})),"composition"===a&&t.push(r.a.createElement(s["a"],{title:e.questionType["composition"],question:e.question["composition"],result:void 0,type:n})),"handel"===a&&t.push(r.a.createElement(u["a"],{title:e.questionType["handel"],question:e.question["handel"],result:void 0,type:n}));return t}return r.a.createElement("div",null,m(t))};t["a"]=r.a.memo(m)}}]);
关于我们 | 顾问团队 | 发展历程 | 联系我们 | 源码上传
联系电话(Tel):4008-010-151(免长途)
地址:北京市海淀区大恒科技大厦五层 邮编:100080
Floor 5th,Daheng Building,Zhongguancun,Beijing,China,100080
51Aspx.com 版权所有 CopyRight © 2006-2022. 京ICP备09089570号 | 京公网安备11010702000869号