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

源码截图

源码目录树

;
当前路径:public/static/control/p__previewTestPage__preview.js
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([[28],{"+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"),s=a.n(o);function i(e){var t=e.type,a=void 0===t?"answer":t,r=e.title,o=e.question,i=e.result,u=e.onSubmit,m=e.sort,p=e.order,d=Object(c["d"])(i,{});function f(e,t){d[t].answer=e,u&&u(d)}return l.a.createElement("div",{className:s.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:s.a.divStyle},o.map((function(e,t){return l.a.createElement("div",{className:s.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:i?i[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"]=i},"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 i}));a("7Kak");var n=a("9yH6"),r=a("q1tI"),l=a.n(r),c=a("5YGV"),o=a("69+E"),s=a.n(o);function i(e){var t=e.type,a=void 0===t?"answer":t,r=e.title,o=e.question,i=e.result,u=e.onSubmit,m=e.sort,p=e.order,d=Object(c["d"])(i,{});function f(e,t){d[t].answer=e.target.value,u&&u(d)}return l.a.createElement("div",{className:s.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:s.a.divStyle},o.map((function(e,t){return l.a.createElement("div",{className:s.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:i&&i[e.id].answer,onChange:function(t){return i&&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"),s=a("tJVT"),i=a("q1tI"),u=a.n(i),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(i["useState"])([]),a=Object(s["a"])(t,2),l=a[0],d=a[1],h=e.type,w=void 0===h?"answer":h,b=e.title,g=e.question,T=e.result,k=e.onSubmit,x=e.sort,S=e.order,O=Object(E["d"])(T,{}),j=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:O[t].handel=a.dataSet,k&&k(O),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,x&&"".concat(Object(E["n"])(x),"\u3001")," \u64cd\u4f5c\u9898"," ","answer"===w&&"\uff08\u5171".concat(b.questionNum,"\u9898\uff0c\u5171").concat(b.point*b.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},g.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,S||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 j(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"===w&&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"===w&&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)))})))))}},Mtkf:function(e,t,a){"use strict";var n=a("WmNS"),r=a.n(n),l=a("9og8"),c=a("9kvl");t["a"]={processAll: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"])("/exam/process/search",{method:"POST",data:e}));case 1:case"end":return t.stop()}}),t)})))()},processDetail: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"])("/exam/process/detail",{method:"POST",data:e}));case 1:case"end":return t.stop()}}),t)})))()},processMissing: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"])("/exam/process/missing",{method:"POST",data:e}));case 1:case"end":return t.stop()}}),t)})))()},processExport: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"])("/exam/process/export",{method:"POST",data:e}));case 1:case"end":return t.stop()}}),t)})))()},processDelete: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"])("/exam/process/delete",{method:"POST",data:e}));case 1:case"end":return t.stop()}}),t)})))()},processStatistics: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"])("/exam/process/statistics",{method:"POST",data:e}));case 1:case"end":return t.stop()}}),t)})))()},deleteRecord: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"])("/exam/process/deleteRecord",{method:"POST",data:e}));case 1:case"end":return t.stop()}}),t)})))()},processPreview: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"])("/exam/process/preview",{method:"POST",data:e}));case 1:case"end":return t.stop()}}),t)})))()},processMarkPreview: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"])("/exam/process/markPreview",{method:"POST",data:e}));case 1:case"end":return t.stop()}}),t)})))()},processMark: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"])("/exam/process/mark",{method:"POST",data:e}));case 1:case"end":return t.stop()}}),t)})))()}}},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),s=a("5YGV"),i=a("69+E"),u=a.n(i);function m(e){var t=e.type,a=void 0===t?"answer":t,c=e.title,i=e.question,m=e.result,p=e.onSubmit,d=e.sort,f=e.order,E=Object(s["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(s["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},i.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)})))()}}},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"),s=a("69+E"),i=a.n(s);function u(e){var t=e.type,a=void 0===t?"answer":t,n=e.title,l=e.question,s=e.result,u=e.onSubmit,m=e.sort,p=e.order,d=Object(o["d"])(s,{});function f(e,t){d[t].answer=e.target.value,u&&u(d)}return r.a.createElement("div",{className:i.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:i.a.divStyle},r.a.createElement("div",{className:i.a.divStyle},l.map((function(e,t){return r.a.createElement("div",{className:i.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:s?s[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},ekP7:function(e,t,a){"use strict";a.d(t,"c",(function(){return o})),a.d(t,"d",(function(){return i})),a.d(t,"b",(function(){return m})),a.d(t,"a",(function(){return d}));var n=a("WmNS"),r=a.n(n),l=a("9og8"),c=a("9kvl");function o(e){return s.apply(this,arguments)}function s(){return s=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/personal/search",{method:"POST",data:t}));case 1:case"end":return e.stop()}}),e)}))),s.apply(this,arguments)}function i(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/personal/statistics",{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/personal/ranking",{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/personal/preview",{method:"POST",data:t}));case 1:case"end":return e.stop()}}),e)}))),f.apply(this,arguments)}},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"),s=a.n(o);function i(e){console.log("choice");var t=e.type,a=void 0===t?"answer":t,r=e.title,o=e.question,i=e.result,u=e.onSubmit,m=e.sort,p=e.order,d=Object(c["d"])(i,{});function f(e,t){d[t].answer=e.target.value,u&&u(d)}return l.a.createElement("div",{className:s.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:s.a.divStyle},o.map((function(e,t){return l.a.createElement("div",{className:s.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:i?i[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"]=i},pMCq: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")),s=(a("7Kak"),a("9yH6")),i=(a("bP8k"),a("gFTJ")),u=a("WmNS"),m=a.n(u),p=a("9og8"),d=a("fWQN"),f=a("mtLc"),E=a("yKVA"),y=a("879j"),v=(a("tU7J"),a("wFql")),h=a("q1tI"),w=a.n(h),b=a("Mtkf"),g=a("9kvl"),T=a("wd/R"),k=a.n(T),x=a("txBU"),S=a("ekP7"),O=a("zWjP"),j=a.n(O),q=a("rdXg"),N=a.n(q),P=v["a"].Title,_={style:{margin:"20px 0"}},I=function(e){Object(E["a"])(a,e);var t=Object(y["a"])(a);function a(){var e;Object(d["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,visibelMode:"all"},e}return Object(f["a"])(a,[{key:"componentDidMount",value:function(){var e=Object(p["a"])(m.a.mark((function e(){var t,a,n,r,l;return m.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(t=g["b"].location.query,a=t.id,n=t.isPersonal,"1"!==n){e.next=8;break}return e.next=4,Object(S["a"])({id:a,type:"all"});case 4:r=e.sent,0===r.errCode&&this.setState({examData:r.data}),e.next=12;break;case 8:return e.next=10,b["a"].processPreview({id:a,type:"all"});case 10:l=e.sent,0===l.errCode&&this.setState({examData:l.data});case 12:case"end":return e.stop()}}),e,this)})));function t(){return e.apply(this,arguments)}return t}()},{key:"onChangeMode",value:function(){var e=Object(p["a"])(m.a.mark((function e(t){var a,n,r,l,c;return m.a.wrap((function(e){while(1)switch(e.prev=e.next){case 0:if(a=g["b"].location.query,n=a.id,r=a.isPersonal,"1"!==r){e.next=8;break}return e.next=4,Object(S["a"])({id:n,type:t});case 4:l=e.sent,0===l.errCode&&this.setState({examData:l.data,visibelMode:t}),e.next=12;break;case 8:return e.next=10,b["a"].processPreview({id:n,type:t});case 10:c=e.sent,0===c.errCode&&this.setState({visibelMode:t,examData:c.data});case 12:case"end":return e.stop()}}),e,this)})));function t(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(){N()({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,u=t.visibelMode,m=g["b"].location.query.isPersonal;return w.a.createElement(c["a"],{loading:!a},a?w.a.createElement(r["a"],null,w.a.createElement(l["a"],{span:6},w.a.createElement(c["a"],{style:{height:"100%"},bodyStyle:{height:"100%",display:"flex",flexDirection:"column"}},w.a.createElement("div",{style:{flex:1}},w.a.createElement("div",_,w.a.createElement(P,{level:4},"\u8bd5\u5377\u4fe1\u606f"),w.a.createElement(i["a"],{column:2},w.a.createElement(i["a"].Item,{label:"\u8003\u751f\u8d26\u53f7"},a.userId),w.a.createElement(i["a"].Item,{label:"\u8003\u751f\u59d3\u540d"},a.userName),w.a.createElement(i["a"].Item,{label:"\u8bd5\u9898\u6570\u91cf"},a.questionNum),w.a.createElement(i["a"].Item,{label:"\u8bd5\u5377\u603b\u5206"},a.totalPoints),w.a.createElement(i["a"].Item,{label:"\u901a\u8fc7\u5206\u6570"},a.throughPoints),w.a.createElement(i["a"].Item,{label:"\u8003\u751f\u5f97\u5206"},a.score))),w.a.createElement("div",_,w.a.createElement(P,{level:4},"\u7b54\u5377\u4fe1\u606f"),w.a.createElement(i["a"],{column:1},w.a.createElement(i["a"].Item,{label:"\u7b54\u5377\u65f6\u95f4"},k.a.unix(null===a||void 0===a?void 0:a.timeEnd).format("YYYY-MM-DD HH:mm:ss")),w.a.createElement(i["a"].Item,{label:"\u8bc4\u5377\u4eba"},null===a||void 0===a?void 0:a.markTitle))),w.a.createElement("div",_,w.a.createElement(P,{level:4},"\u5c55\u793a\u8bbe\u7f6e"),w.a.createElement(s["a"].Group,{onChange:function(t){return e.onChangeMode(t.target.value)},value:u},w.a.createElement(s["a"],{value:"all"},"\u663e\u793a\u5168\u90e8"),w.a.createElement(s["a"],{value:"wrong"},"\u9519\u9898\u663e\u793a")))),w.a.createElement("div",{style:{margin:20}},1!==m&&w.a.createElement(w.a.Fragment,null,w.a.createElement(o["a"],{block:!0,type:"primary",onClick:function(){return e.handleSaveDoc()}},"\u5bfc\u51fa\u8bd5\u5377"),w.a.createElement(o["a"],{block:!0,type:"primary",onClick:function(){return e.handlePrint()},style:{marginTop:15}},"\u6253\u5370\u8bd5\u5377")),w.a.createElement(o["a"],{block:!0,onClick:function(){return g["b"].goBack()},style:{marginTop:15}},"\u5173\u95ed\u8bd5\u5377")))),w.a.createElement(l["a"],{span:18,style:{height:"80vh",overflow:"auto"}},w.a.createElement("div",{id:"html-docx"},w.a.createElement(c["a"],null,w.a.createElement(P,{style:{textAlign:"center"},level:2},a.title)),w.a.createElement(c["a"],null,w.a.createElement(x["a"],{data:{question:null===a||void 0===a?void 0:a.show,questionType:null===a||void 0===a?void 0:a.questionType},type:"analysis"}))))):w.a.createElement(n["a"],null))}}]),a}(h["PureComponent"])},txBU:function(e,t,a){"use strict";var n=a("q1tI"),r=a.n(n),l=a("l8T3"),c=a("6enp"),o=a("SuIk"),s=a("+X2T"),i=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(s["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(i["a"],{title:e.questionType["answer"],question:e.question["answer"],result:void 0,type:n})),"composition"===a&&t.push(r.a.createElement(i["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号