text: (function(e){function t(t){for(var n,u,l=t[0],o=t[1],c=t[2],d=0,f=[];d<l.length;d++)u=l[d],Object.prototype.hasOwnProperty.call(s,u)&&s[u]&&f.push(s[u][0]),s[u]=0;for(n in o)Object.prototype.hasOwnProperty.call(o,n)&&(e[n]=o[n]);i&&i(t);while(f.length)f.shift()();return r.push.apply(r,c||[]),a()}function a(){for(var e,t=0;t<r.length;t++){for(var a=r[t],n=!0,l=1;l<a.length;l++){var o=a[l];0!==s[o]&&(n=!1)}n&&(r.splice(t--,1),e=u(u.s=a[0]))}return e}var n={},s={app:0},r=[];function u(t){if(n[t])return n[t].exports;var a=n[t]={i:t,l:!1,exports:{}};return e[t].call(a.exports,a,a.exports,u),a.l=!0,a.exports}u.m=e,u.c=n,u.d=function(e,t,a){u.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:a})},u.r=function(e){"undefined"!==typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},u.t=function(e,t){if(1&t&&(e=u(e)),8&t)return e;if(4&t&&"object"===typeof e&&e&&e.__esModule)return e;var a=Object.create(null);if(u.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var n in e)u.d(a,n,function(t){return e[t]}.bind(null,n));return a},u.n=function(e){var t=e&&e.__esModule?function(){return e["default"]}:function(){return e};return u.d(t,"a",t),t},u.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},u.p="/";var l=window["webpackJsonp"]=window["webpackJsonp"]||[],o=l.push.bind(l);l.push=t,l=l.slice();for(var c=0;c<l.length;c++)t(l[c]);var i=o;r.push([0,"chunk-vendors"]),a()})({0:function(e,t,a){e.exports=a("56d7")},"56d7":function(e,t,a){"use strict";a.r(t);a("e260"),a("e6cf"),a("cca6"),a("a79d");var n=a("2b0e"),s=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"app"}},[a("router-view")],1)},r=[],u={name:"app"},l=u,o=a("2877"),c=Object(o["a"])(l,s,r,!1,null,null,null),i=c.exports,d=a("8c4f"),f=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-container",{staticClass:"home-container"},[a("el-aside",{attrs:{width:e.isCollapse?"30px":"200px"}},[a("div",{staticClass:"toggle-button",on:{click:e.toggleCollapse}},[e._v("|||")]),a("el-menu",{attrs:{"background-color":"#333744","text-color":"#fff","active-text-color":"#409EFF","unique-opened":"",collapse:e.isCollapse,"collapse-transition":!1,router:"","default-active":e.activePath}},e._l(e.menuList,(function(t,n){return a("el-menu-item",{key:n,attrs:{index:"/"+e.pathList[n]},on:{click:function(t){return e.saveNavState("/"+e.pathList[n])}}},[a("template",{slot:"title"},[a("span",[e._v(e._s(t))])])],2)})),1)],1),a("el-main",[a("router-view",{attrs:{activePath:e.activePath}})],1)],1)},p=[],h={data:function(){return{menuList:["三角形问题","电脑销售问题","电信收费问题","万年历问题"],pathList:["triangle","commission","charge","calendar"],isCollapse:!1,activePath:""}},created:function(){},updated:function(){console.log(this.activePath)},methods:{toggleCollapse:function(){this.isCollapse=!this.isCollapse},saveNavState:function(e){this.activePath=e}}},b=h,v=(a("b1cc"),Object(o["a"])(b,f,p,!1,null,"0638f301",null)),m=v.exports,g=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",[a("el-row",[a("el-select",{attrs:{placeholder:"请选择"},on:{change:e.changeMethod},model:{value:e.testMethod,callback:function(t){e.testMethod=t},expression:"testMethod"}},e._l(e.testOptions,(function(e){return a("el-option",{key:e,attrs:{label:e,value:e}})})),1),a("el-button",{attrs:{type:"primary"},on:{click:function(t){return e.Test()}}},[e._v("测试")])],1),a("el-row",[a("Table",{directives:[{name:"show",rawName:"v-show",value:"{}"!=JSON.stringify(e.testResults),expression:"JSON.stringify(testResults) != '{}'"}],staticClass:"result-table",attrs:{testResults:e.testResults}})],1),a("el-row",[a("MyCharts",{directives:[{name:"show",rawName:"v-show",value:"{}"!=JSON.stringify(e.testResults),expression:"JSON.stringify(testResults) != '{}'"}],staticClass:"result-chart",attrs:{dataSet:e.testResults}})],1)],1)},y=[],w=a("1da1"),x=(a("96cf"),function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{attrs:{id:"res"}})}),O=[],_={props:{dataSet:Object},data:function(){return{}},created:function(){},mounted:function(){this.drawLine()},watch:{dataSet:function(e){this.drawLine()}},methods:{drawLine:function(){var e=this.$echarts.init(document.getElementById("res"));e.setOption({title:{text:"测试结果统计",x:"center"},tooltip:{trigger:"item",formatter:"{a}<br/>{b}:{c} ({d}%)"},legend:{orient:"vertical",x:"right",y:"center",data:["False","True"],textStyle:{color:"#000",fontSize:16}},color:["#32dadd","#b6a2de","#5ab1ef"],series:[{type:"pie",radius:"50%",center:["50%","50%"],data:[{name:"False",value:this.dataSet.False},{name:"True",value:this.dataSet.True}],itemStyle:{emphasis:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"},label:{show:!0},labelLine:{show:!0}}}]})}}},k=_,S=(a("adb8"),Object(o["a"])(k,x,O,!1,null,"dfb8bfd0",null)),R=S.exports,j=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("el-table",{staticStyle:{width:"80%"},attrs:{data:e.tableData,stripe:"",border:""}},[a("el-table-column",{attrs:{prop:"True",label:"成功个数",align:"center"}}),a("el-table-column",{attrs:{prop:"False",label:"失败个数",align:"center"}}),a("el-table-column",{attrs:{prop:"accuracy",label:"成功率",align:"center"}})],1)},C=[],M={props:{testResults:Object},data:function(){return{tableData:[this.testResults]}},created:function(){},watch:{testResults:function(e){console.log(e),this.tableData=[e]}},methods:{}},P=M,$=Object(o["a"])(P,j,C,!1,null,"ef41d062",null),T=$.exports,E={props:["activePath"],components:{MyCharts:R,Table:T},data:function(){return{testMethod:"",testResults:{}}},created:function(){},watch:{activePath:function(e){this.testResults={},this.testMethod=""}},computed:{testOptions:function(){var e=[];switch(this.activePath){case"/triangle":e=["BoundaryValue","EquivalenceClass"];break;case"/commission":e=["BoundaryValue"];break;case"/charge":e=["BoundaryValue","EquivalenceClass","DecisionTable"];break;case"/calendar":e=["BoundaryValue","EquivalenceClass"];break}return console.log(e),e}},methods:{Test:function(){var e=this;return Object(w["a"])(regeneratorRuntime.mark((function t(){var a;return regeneratorRuntime.wrap((function(t){while(1)switch(t.prev=t.next){case 0:a={},t.t0=e.activePath,t.next="/triangle"===t.t0?4:"/commission"===t.t0?8:"/charge"===t.t0?12:"/calendar"===t.t0?16:20;break;case 4:return t.next=6,e.$http.get("/question1/triangle/"+e.testMethod);case 6:return a=t.sent,t.abrupt("break",20);case 8:return t.next=10,e.$http.get("/question3/commission/"+e.testMethod);case 10:return a=t.sent,t.abrupt("break",20);case 12:return t.next=14,e.$http.get("/question6/charge/"+e.testMethod);case 14:return a=t.sent,t.abrupt("break",20);case 16:return t.next=18,e.$http.get("/question8/calendar/"+e.testMethod);case 18:return a=t.sent,t.abrupt("break",20);case 20:e.testResults=a.data,console.log(e.testResults);case 22:case"end":return t.stop()}}),t)})))()},changeMethod:function(e){this.testResults={},console.log(this.testResults)}}},L=E,q=(a("7f3d"),Object(o["a"])(L,g,y,!1,null,"057c601a",null)),N=q.exports;n["default"].use(d["a"]);var B=[{path:"/",component:m,children:[{path:"/triangle",component:N},{path:"/commission",component:N},{path:"/charge",component:N},{path:"/calendar",component:N}]}],F=new d["a"]({routes:B}),J=F,D=(a("9e1f"),a("450d"),a("6ed5")),V=a.n(D),z=(a("0fb7"),a("f529")),I=a.n(z),U=(a("9c49"),a("6640")),X=a.n(U),A=(a("d2ac"),a("95b0")),G=a.n(A),H=(a("e612"),a("dd87")),K=a.n(H),Q=(a("075a"),a("72aa")),W=a.n(Q),Y=(a("915d"),a("e04d")),Z=a.n(Y),ee=(a("28b2"),a("c7ad")),te=a.n(ee),ae=(a("6611"),a("e772")),ne=a.n(ae),se=(a("1f1a"),a("4e4b")),re=a.n(se),ue=(a("5e32"),a("6721")),le=a.n(ue),oe=(a("cbb5"),a("8bbc")),ce=a.n(oe),ie=(a("a7cc"),a("df33")),de=a.n(ie),fe=(a("672e"),a("101e")),pe=a.n(fe),he=(a("0c67"),a("299c")),be=a.n(he),ve=(a("e960"),a("b35b")),me=a.n(ve),ge=(a("5466"),a("ecdf")),ye=a.n(ge),we=(a("38a0"),a("ad41")),xe=a.n(we),Oe=(a("f4f9"),a("c2cc")),_e=a.n(Oe),ke=(a("7a0f"),a("0f6c")),Se=a.n(ke),Re=(a("b8e0"),a("a4c4")),je=a.n(Re),Ce=(a("b84d"),a("c216")),Me=a.n(Ce),Pe=(a("8f24"),a("76b9")),$e=a.n(Pe),Te=(a("8bd8"),a("4cb2")),Ee=a.n(Te),Le=(a("ce18"),a("f58e")),qe=a.n(Le),Ne=(a("4ca3"),a("443e")),Be=a.n(Ne),Fe=(a("de31"),a("c69e")),Je=a.n(Fe),De=(a("a769"),a("5cc3")),Ve=a.n(De),ze=(a("a673"),a("7b31")),Ie=a.n(ze),Ue=(a("adec"),a("3d2d")),Xe=a.n(Ue),Ae=(a("10cb"),a("f3ad")),Ge=a.n(Ae),He=(a("eca7"),a("3787")),Ke=a.n(He),Qe=(a("425f"),a("4105")),We=a.n(Qe),Ye=(a("1951"),a("eedf")),Ze=a.n(Ye);n["default"].use(Ze.a),n["default"].use(We.a),n["default"].use(Ke.a),n["default"].use(Ge.a),n["default"].use(Xe.a),n["default"].use(Ie.a),n["default"].use(Ve.a),n["default"].use(Je.a),n["default"].use(Be.a),n["default"].use(qe.a),n["default"].use(Ee.a),n["default"].use($e.a),n["default"].use(Me.a),n["default"].use(je.a),n["default"].use(Se.a),n["default"].use(_e.a),n["default"].use(xe.a),n["default"].use(ye.a),n["default"].use(me.a),n["default"].use(be.a),n["default"].use(pe.a),n["default"].use(de.a),n["default"].use(ce.a),n["default"].use(le.a),n["default"].use(re.a),n["default"].use(ne.a),n["default"].use(te.a),n["default"].use(Z.a),n["default"].use(W.a),n["default"].use(K.a),n["default"].use(G.a),n["default"].use(X.a),n["default"].prototype.$message=I.a,n["default"].prototype.$confirm=V.a.confirm;a("aede");var et=a("bc3a"),tt=a.n(et),at=a("313e");tt.a.defaults.baseURL="http://127.0.0.1:5000/",n["default"].prototype.$http=tt.a,n["default"].prototype.$echarts=at,n["default"].config.productionTip=!1,new n["default"]({router:J,render:function(e){return e(i)}}).$mount("#app")},"7f3d":function(e,t,a){"use strict";a("c401")},a1e4:function(e,t,a){},a77e:function(e,t,a){},adb8:function(e,t,a){"use strict";a("a1e4")},aede:function(e,t,a){},b1cc:function(e,t,a){"use strict";a("a77e")},c401:function(e,t,a){}});
  //# sourceMappingURL=app.5a3710e0.js.map