chunk-51bc0bf6.baba2665.js 15 KB

12
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-51bc0bf6"],{"057f":function(t,e,n){var r=n("fc6a"),o=n("241c").f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],c=function(t){try{return o(t)}catch(e){return a.slice()}};t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?c(t):o(r(t))}},"0b42":function(t,e,n){var r=n("861d"),o=n("e8b5"),i=n("b622"),a=i("species");t.exports=function(t){var e;return o(t)&&(e=t.constructor,"function"!=typeof e||e!==Array&&!o(e.prototype)?r(e)&&(e=e[a],null===e&&(e=void 0)):e=void 0),void 0===e?Array:e}},"0c6d":function(t,e,n){"use strict";n.d(e,"b",(function(){return a})),n.d(e,"a",(function(){return c}));n("d3b7");var r=n("2b0e"),o=function(t){return new Promise((function(e,n){axios(t).then((function(t){return e(t)})).catch((function(t){return n(t)}))}))},i=function(t){return new Promise((function(e,n){var r=t.data.code;return 0==r?(e(JSON.parse(JSON.stringify(t.data))),!1):(n(t.data.msg),!1)}))},a=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={url:t,method:"POST",headers:{Authorization:sessionStorage.getItem("token")},data:JSON.parse(JSON.stringify(e))};return new Promise((function(t,e){o(n).then((function(t){return i(t)})).then((function(e){return t(e)})).catch((function(t){return r["default"].prototype.$message.error("温馨提示:".concat(t))}))}))},c=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={url:t,method:"GET",headers:{Authorization:sessionStorage.getItem("token")},params:JSON.parse(JSON.stringify(e))};return new Promise((function(t,e){o(n).then((function(t){return i(t)})).then((function(e){return t(e)})).catch((function(t){return r["default"].prototype.$message.error("温馨提示:".concat(t))}))}))}},"159b":function(t,e,n){var r=n("da84"),o=n("fdbc"),i=n("785a"),a=n("17c2"),c=n("9112"),u=function(t){if(t&&t.forEach!==a)try{c(t,"forEach",a)}catch(e){t.forEach=a}};for(var f in o)u(r[f]&&r[f].prototype);u(i)},"17c2":function(t,e,n){"use strict";var r=n("b727").forEach,o=n("a640"),i=o("forEach");t.exports=i?[].forEach:function(t){return r(this,t,arguments.length>1?arguments[1]:void 0)}},"1a79":function(t,e,n){},"1dde":function(t,e,n){var r=n("d039"),o=n("b622"),i=n("2d00"),a=o("species");t.exports=function(t){return i>=51||!r((function(){var e=[],n=e.constructor={};return n[a]=function(){return{foo:1}},1!==e[t](Boolean).foo}))}},3191:function(t,e,n){"use strict";n("99af");var r=n("0c6d");e["a"]={index:function(){return Object(r["a"])("/staff/exam/exam_log/get_home_exam/")},mock_examination_a:function(){return Object(r["a"])("/staff/practise/dict/")},mock_examination_b:function(t){return Object(r["a"])("/staff/practise/",t)},exam:function(t){return Object(r["b"])("/staff/practise/",t)},mock_examination_type:function(){return Object(r["a"])("/staff/mock/dict/")},mock_examination_list:function(t){return Object(r["a"])("/staff/mock/exam_paper/",t)},mock_examination_exam:function(t){return Object(r["b"])("/staff/mock/exam_log/",t)},wrongquestion_sort:function(t){return Object(r["a"])("/staff/errorbook/",t)},wrongquestion_type:function(){return Object(r["a"])("/staff/errorbook/dict/")},examinationrecord_a:function(t){return Object(r["a"])("/staff/exam/exam_log/",t)},examinationrecord_b:function(t){return Object(r["a"])("/staff/mock/exam_log/",t)},mock_examination_report:function(t){return Object(r["a"])("/staff/".concat(t.type,"/exam_log/").concat(t.id,"/"))},knowledgebase_data:function(t){return Object(r["a"])("/staff/knowledge/",t)},knowledgebase_tree:function(){return Object(r["a"])("/staff/practise/dict/")},knowledgebase_error:function(t){return Object(r["b"])("/staff/knowledge/feedback/",t)},formal_examination:function(){return Object(r["a"])("/staff/exam/exam_log/get_exam/")}}},"428f":function(t,e,n){var r=n("da84");t.exports=r},"4de4":function(t,e,n){"use strict";var r=n("23e7"),o=n("b727").filter,i=n("1dde"),a=i("filter");r({target:"Array",proto:!0,forced:!a},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},5530:function(t,e,n){"use strict";n.d(e,"a",(function(){return i}));n("b64b"),n("a4d3"),n("4de4"),n("e439"),n("159b"),n("dbb4");function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?o(Object(n),!0).forEach((function(e){r(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}},"65f0":function(t,e,n){var r=n("0b42");t.exports=function(t,e){return new(r(t))(0===e?0:e)}},"746f":function(t,e,n){var r=n("428f"),o=n("5135"),i=n("e538"),a=n("9bf2").f;t.exports=function(t){var e=r.Symbol||(r.Symbol={});o(e,t)||a(e,t,{value:i.f(t)})}},8418:function(t,e,n){"use strict";var r=n("a04b"),o=n("9bf2"),i=n("5c6c");t.exports=function(t,e,n){var a=r(e);a in t?o.f(t,a,i(0,n)):t[a]=n}},9023:function(t,e,n){"use strict";n("1a79")},"99af":function(t,e,n){"use strict";var r=n("23e7"),o=n("d039"),i=n("e8b5"),a=n("861d"),c=n("7b0b"),u=n("50c4"),f=n("8418"),s=n("65f0"),l=n("1dde"),b=n("b622"),d=n("2d00"),p=b("isConcatSpreadable"),m=9007199254740991,v="Maximum allowed index exceeded",h=d>=51||!o((function(){var t=[];return t[p]=!1,t.concat()[0]!==t})),g=l("concat"),y=function(t){if(!a(t))return!1;var e=t[p];return void 0!==e?!!e:i(t)},O=!h||!g;r({target:"Array",proto:!0,forced:O},{concat:function(t){var e,n,r,o,i,a=c(this),l=s(a,0),b=0;for(e=-1,r=arguments.length;e<r;e++)if(i=-1===e?a:arguments[e],y(i)){if(o=u(i.length),b+o>m)throw TypeError(v);for(n=0;n<o;n++,b++)n in i&&f(l,b,i[n])}else{if(b>=m)throw TypeError(v);f(l,b++,i)}return l.length=b,l}})},a4d3:function(t,e,n){"use strict";var r=n("23e7"),o=n("da84"),i=n("d066"),a=n("c430"),c=n("83ab"),u=n("4930"),f=n("d039"),s=n("5135"),l=n("e8b5"),b=n("861d"),d=n("d9b5"),p=n("825a"),m=n("7b0b"),v=n("fc6a"),h=n("a04b"),g=n("577e"),y=n("5c6c"),O=n("7c73"),j=n("df75"),w=n("241c"),_=n("057f"),x=n("7418"),k=n("06cf"),S=n("9bf2"),P=n("d1e7"),E=n("9112"),T=n("6eeb"),C=n("5692"),F=n("f772"),N=n("d012"),J=n("90e3"),q=n("b622"),A=n("e538"),D=n("746f"),R=n("d44e"),$=n("69f3"),V=n("b727").forEach,B=F("hidden"),I="Symbol",z="prototype",H=q("toPrimitive"),M=$.set,G=$.getterFor(I),L=Object[z],Q=o.Symbol,W=i("JSON","stringify"),K=k.f,U=S.f,X=_.f,Y=P.f,Z=C("symbols"),tt=C("op-symbols"),et=C("string-to-symbol-registry"),nt=C("symbol-to-string-registry"),rt=C("wks"),ot=o.QObject,it=!ot||!ot[z]||!ot[z].findChild,at=c&&f((function(){return 7!=O(U({},"a",{get:function(){return U(this,"a",{value:7}).a}})).a}))?function(t,e,n){var r=K(L,e);r&&delete L[e],U(t,e,n),r&&t!==L&&U(L,e,r)}:U,ct=function(t,e){var n=Z[t]=O(Q[z]);return M(n,{type:I,tag:t,description:e}),c||(n.description=e),n},ut=function(t,e,n){t===L&&ut(tt,e,n),p(t);var r=h(e);return p(n),s(Z,r)?(n.enumerable?(s(t,B)&&t[B][r]&&(t[B][r]=!1),n=O(n,{enumerable:y(0,!1)})):(s(t,B)||U(t,B,y(1,{})),t[B][r]=!0),at(t,r,n)):U(t,r,n)},ft=function(t,e){p(t);var n=v(e),r=j(n).concat(pt(n));return V(r,(function(e){c&&!lt.call(n,e)||ut(t,e,n[e])})),t},st=function(t,e){return void 0===e?O(t):ft(O(t),e)},lt=function(t){var e=h(t),n=Y.call(this,e);return!(this===L&&s(Z,e)&&!s(tt,e))&&(!(n||!s(this,e)||!s(Z,e)||s(this,B)&&this[B][e])||n)},bt=function(t,e){var n=v(t),r=h(e);if(n!==L||!s(Z,r)||s(tt,r)){var o=K(n,r);return!o||!s(Z,r)||s(n,B)&&n[B][r]||(o.enumerable=!0),o}},dt=function(t){var e=X(v(t)),n=[];return V(e,(function(t){s(Z,t)||s(N,t)||n.push(t)})),n},pt=function(t){var e=t===L,n=X(e?tt:v(t)),r=[];return V(n,(function(t){!s(Z,t)||e&&!s(L,t)||r.push(Z[t])})),r};if(u||(Q=function(){if(this instanceof Q)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?g(arguments[0]):void 0,e=J(t),n=function(t){this===L&&n.call(tt,t),s(this,B)&&s(this[B],e)&&(this[B][e]=!1),at(this,e,y(1,t))};return c&&it&&at(L,e,{configurable:!0,set:n}),ct(e,t)},T(Q[z],"toString",(function(){return G(this).tag})),T(Q,"withoutSetter",(function(t){return ct(J(t),t)})),P.f=lt,S.f=ut,k.f=bt,w.f=_.f=dt,x.f=pt,A.f=function(t){return ct(q(t),t)},c&&(U(Q[z],"description",{configurable:!0,get:function(){return G(this).description}}),a||T(L,"propertyIsEnumerable",lt,{unsafe:!0}))),r({global:!0,wrap:!0,forced:!u,sham:!u},{Symbol:Q}),V(j(rt),(function(t){D(t)})),r({target:I,stat:!0,forced:!u},{for:function(t){var e=g(t);if(s(et,e))return et[e];var n=Q(e);return et[e]=n,nt[n]=e,n},keyFor:function(t){if(!d(t))throw TypeError(t+" is not a symbol");if(s(nt,t))return nt[t]},useSetter:function(){it=!0},useSimple:function(){it=!1}}),r({target:"Object",stat:!0,forced:!u,sham:!c},{create:st,defineProperty:ut,defineProperties:ft,getOwnPropertyDescriptor:bt}),r({target:"Object",stat:!0,forced:!u},{getOwnPropertyNames:dt,getOwnPropertySymbols:pt}),r({target:"Object",stat:!0,forced:f((function(){x.f(1)}))},{getOwnPropertySymbols:function(t){return x.f(m(t))}}),W){var mt=!u||f((function(){var t=Q();return"[null]"!=W([t])||"{}"!=W({a:t})||"{}"!=W(Object(t))}));r({target:"JSON",stat:!0,forced:mt},{stringify:function(t,e,n){var r,o=[t],i=1;while(arguments.length>i)o.push(arguments[i++]);if(r=e,(b(e)||void 0!==t)&&!d(t))return l(e)||(e=function(t,e){if("function"==typeof r&&(e=r.call(this,t,e)),!d(e))return e}),o[1]=e,W.apply(null,o)}})}Q[z][H]||E(Q[z],H,Q[z].valueOf),R(Q,I),N[B]=!0},a640:function(t,e,n){"use strict";var r=n("d039");t.exports=function(t,e){var n=[][t];return!!n&&r((function(){n.call(null,e||function(){throw 1},1)}))}},b0c0:function(t,e,n){var r=n("83ab"),o=n("9bf2").f,i=Function.prototype,a=i.toString,c=/^\s*function ([^ (]*)/,u="name";r&&!(u in i)&&o(i,u,{configurable:!0,get:function(){try{return a.call(this).match(c)[1]}catch(t){return""}}})},b64b:function(t,e,n){var r=n("23e7"),o=n("7b0b"),i=n("df75"),a=n("d039"),c=a((function(){i(1)}));r({target:"Object",stat:!0,forced:c},{keys:function(t){return i(o(t))}})},b727:function(t,e,n){var r=n("0366"),o=n("44ad"),i=n("7b0b"),a=n("50c4"),c=n("65f0"),u=[].push,f=function(t){var e=1==t,n=2==t,f=3==t,s=4==t,l=6==t,b=7==t,d=5==t||l;return function(p,m,v,h){for(var g,y,O=i(p),j=o(O),w=r(m,v,3),_=a(j.length),x=0,k=h||c,S=e?k(p,_):n||b?k(p,0):void 0;_>x;x++)if((d||x in j)&&(g=j[x],y=w(g,x,O),t))if(e)S[x]=y;else if(y)switch(t){case 3:return!0;case 5:return g;case 6:return x;case 2:u.call(S,g)}else switch(t){case 4:return!1;case 7:u.call(S,g)}return l?-1:f||s?s:S}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterReject:f(7)}},dbb4:function(t,e,n){var r=n("23e7"),o=n("83ab"),i=n("56ef"),a=n("fc6a"),c=n("06cf"),u=n("8418");r({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){var e,n,r=a(t),o=c.f,f=i(r),s={},l=0;while(f.length>l)n=o(r,e=f[l++]),void 0!==n&&u(s,e,n);return s}})},e439:function(t,e,n){var r=n("23e7"),o=n("d039"),i=n("fc6a"),a=n("06cf").f,c=n("83ab"),u=o((function(){a(1)})),f=!c||u;r({target:"Object",stat:!0,forced:f,sham:!c},{getOwnPropertyDescriptor:function(t,e){return a(i(t),e)}})},e538:function(t,e,n){var r=n("b622");e.f=r},e8b5:function(t,e,n){var r=n("c6b6");t.exports=Array.isArray||function(t){return"Array"==r(t)}},fcdb:function(t,e,n){"use strict";n.r(e);var r=function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:"knowledgebase"},[n("div",{staticClass:"left"},[n("p",[t._v("知识目录")]),n("div",{staticClass:"content"},[n("Tree",{on:{Func:t.TreeFunc}})],1)]),n("div",{staticClass:"center"},[n("p",[t._v("识别特征"),n("i",{staticClass:"el-icon-question error",attrs:{title:"反馈"},on:{click:t.ErrorFunc}},[t._v("反馈")])]),n("div",{staticClass:"content",domProps:{innerHTML:t._s(t.content)}}),n("div",{staticClass:"flex"},[n("div",[n("el-button",{attrs:{disabled:t.btns.a,type:"success"},on:{click:function(e){return t.BtnFunc("-")}}},[t._v("上一页")])],1),n("div",[n("el-button",{attrs:{disabled:t.btns.b,type:"success"},on:{click:function(e){return t.BtnFunc("+")}}},[t._v("下一页 ")])],1)])]),n("div",{staticClass:"right"},[n("p",[t._v(t._s(t.subject_name))]),n("div",{staticClass:"content"},[n("p",[t._v(t._s(t.name))])])]),n("el-dialog",{attrs:{title:"反馈",visible:t.dialogTableVisible},on:{"update:visible":function(e){t.dialogTableVisible=e}}},[n("el-form",{ref:"form",attrs:{rules:t.rules,model:t.form,"label-width":"80px"}},[n("el-form-item",{attrs:{label:"错误类型",prop:"type"}},[n("el-radio-group",{model:{value:t.form.type,callback:function(e){t.$set(t.form,"type",e)},expression:"form.type"}},[n("el-radio",{attrs:{label:"名称错误"}}),n("el-radio",{attrs:{label:"特征错误"}}),n("el-radio",{attrs:{label:"图片错误"}}),n("el-radio",{attrs:{label:"其他"}})],1)],1),n("el-form-item",{attrs:{label:"错误描述"}},[n("el-input",{attrs:{type:"textarea"},model:{value:t.form.desc,callback:function(e){t.$set(t.form,"desc",e)},expression:"form.desc"}})],1),n("el-form-item",[n("el-button",{attrs:{type:"primary"},on:{click:function(e){return t.onSubmit("form")}}},[t._v("提交")])],1)],1)],1)],1)},o=[],i=n("5530"),a=(n("d3b7"),n("3ca3"),n("ddb0"),n("4de4"),n("b0c0"),n("3191")),c=function(){return n.e("chunk-50bf5053").then(n.bind(null,"4331"))},u={components:{Tree:c},data:function(){return{form:{desc:"",type:""},rules:{type:[{required:!0,message:"请选择错误类型!",trigger:"change"}]},dialogTableVisible:!1,id:"",content:"<h1>Hello world!</h1>",subject_name:"",name:"",btns:{a:!0,b:!1},active:{chapter:"",limit:1,page:1}}},created:function(){this.Request({limit:1,page:1})},methods:{ErrorFunc:function(){this.dialogTableVisible=!0},onSubmit:function(t){var e=this;this.$refs[t].validate((function(t){if(t){var n=e.form,r=n.type,o=n.desc,i=[{id:1,name:"名称错误"},{id:2,name:"特征错误"},{id:3,name:"图片错误"},{id:4,name:"其他"}],c=i.filter((function(t){return t.name==r}));a["a"].knowledgebase_error({type:c[0].id,desc:o,main:e.id}).then((function(t){e.dialogTableVisible=!1,e.form={desc:"",type:""}}))}}))},TreeFunc:function(t){this.active={chapter:t["chapter"],limit:1,page:1},this.Request({chapter:t["chapter"],limit:1,page:1})},Request:function(){var t=this,e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};try{a["a"].knowledgebase_data(e).then((function(e){var n=e.currentPage,r=e.totalPage,o=e.data;t.btns=1==n?Object(i["a"])(Object(i["a"])({},t.btns),{},{a:!0}):Object(i["a"])(Object(i["a"])({},t.btns),{},{a:!1}),t.btns=n==r?Object(i["a"])(Object(i["a"])({},t.btns),{},{b:!0}):Object(i["a"])(Object(i["a"])({},t.btns),{},{b:!1}),t.content=o[0]["feature"],t.active=Object(i["a"])(Object(i["a"])({},t.active),{},{page:n}),t.name=o[0]["name"],t.subject_name=o[0]["subject_name"],t.id=o[0]["id"]}))}catch(n){console.error("数据处理错误:".concat(n))}},BtnFunc:function(t){var e=this,n=function(t){var n=Object(i["a"])(Object(i["a"])({},e.active),{},{page:e.active.page+t});return n};"+"==t?this.Request(n(1)):this.Request(n(-1))}}},f=u,s=(n("9023"),n("2877")),l=Object(s["a"])(f,r,o,!1,null,null,null);e["default"]=l.exports}}]);
  2. //# sourceMappingURL=chunk-51bc0bf6.baba2665.js.map