(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-6adedfe7"],{1725:function(e){e.exports={}},"94cf":function(e,i,t){"use strict";t.r(i);var n=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",[t("div",{attrs:{id:"container"}}),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.container_show,expression:"container_show"}]},[t("div",{staticClass:"chart"},[t("x-chart",{ref:"child",staticClass:"high",attrs:{id:"highcharts",chartId:e.charId}})],1),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:e.f,expression:"f"}],staticClass:"control"},[t("div",{ref:"box",staticStyle:{width:"50%",border:"1px solid lightgrey",float:"left"}},[t("div",[t("span",{staticClass:"text"},[e._v("Curve Display:")]),e._v(" "),t("el-select",{staticStyle:{"margin-top":"10px"},attrs:{size:"mini",multiple:"","collapse-tags":"",placeholder:"请选择显示项"},on:{change:e.showCurve},model:{value:e.CurveValue,callback:function(i){e.CurveValue=i},expression:"CurveValue"}},[t("el-option",{attrs:{label:"All",value:"All"}}),e._v(" "),e._l(e.option.series,(function(e,i){return t("el-option",{key:i,attrs:{label:e.name,value:e.name}})}))],2)],1),e._v(" "),t("br"),e._v(" "),t("div",[t("span",{staticClass:"text"},[e._v("Line Width:")]),e._v(" "),t("el-select",{staticStyle:{"margin-left":"15px"},attrs:{size:"mini",placeholder:"请选择线宽"},on:{change:e.changeLine},model:{value:e.linevalue,callback:function(i){e.linevalue=i},expression:"linevalue"}},e._l(e.lineWdith,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),t("div",[t("span",{staticClass:"text"},[e._v("BackGroundColor:")]),e._v(" "),t("el-color-picker",{staticStyle:{"margin-top":"10px"},attrs:{size:"mini"},on:{change:e.changeBackColor},model:{value:e.back_color,callback:function(i){e.back_color=i},expression:"back_color"}})],1)]),e._v(" "),t("div",{staticStyle:{width:"50%",border:"1px solid lightgrey",float:"right"}},[t("div",[t("span",{staticClass:"text"},[e._v("Curve Display:")]),e._v(" "),t("el-select",{staticStyle:{"margin-top":"10px"},attrs:{size:"mini",placeholder:"请选择隐藏项"},model:{value:e.displayLine,callback:function(i){e.displayLine=i},expression:"displayLine"}},e._l(e.option.series,(function(e,i){return t("el-option",{key:i,attrs:{label:e.name,value:e.name,disabled:e.display}})})),1)],1),e._v(" "),t("br"),e._v(" "),t("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]},[t("span",{staticClass:"text"},[e._v("Line Type:")]),e._v(" --\x3e\n "),t("el-select",{staticStyle:{"margin-left":"15px"},attrs:{size:"mini",placeholder:"请选择线的类型"},model:{value:e.lineType,callback:function(i){e.lineType=i},expression:"lineType"}},e._l(e.lineStyle,(function(e){return t("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),t("div",[t("span",{staticClass:"text"},[e._v("Line Color:")]),e._v(" "),t("el-color-picker",{staticStyle:{"margin-top":"10px"},attrs:{size:"mini"},on:{change:e.changeLineColor},model:{value:e.lineColor,callback:function(i){e.lineColor=i},expression:"lineColor"}})],1)])])])])},a=[],o=(t("ac6a"),t("28a5"),t("5530")),r=(t("c5f6"),t("7f7f"),t("2909")),l=t("ade3"),s=t("5a89"),c=(t("4721"),t("b775"),t("b9d8")),h=t("e9b1"),u=(t("1725"),t("a481"),function(e){while(e.indexOf(" ")>0)e=e.replace(" "," ");return e}),p={name:"ThreeTest",data:function(){var e;return{camera:null,scene:null,renderer:null,mesh:null,f:!1,colorConfirm:String,container_show:!0,convergeDate:{title:"cfd",VARIABLES:[],value:[]},lineWdith:[{value:"1",label:"1"},{value:"2",label:"2"},{value:"3",label:"3"},{value:"4",label:"4"}],lineStyle:[{value:"Line",label:"Line"},{value:"point",label:"point"},{value:"Square",label:"Square"},{value:"Triangle",label:"Triangle"}],displayLine:"Apollo",back_color:"#333",lineType:"",lineColor:"",linevalue:"3",CurveValue:["All"],newOption:[],charId:"char1",option:{title:{text:"CFD"},credits:{enabled:!1},chart:{height:"500px",type:"spline",plotBackgroundColor:"rgba(0,0,0,0.0)",borderWidth:0,backgroundColor:"rgba(0,0,0,0.0)",borderColor:"#333",alignTicks:!0,showAxes:!0},yAxis:(e={alternateGridColor:!1,tickColor:"red",tickLength:"2",minorGridLineWidth:"3"},Object(l["a"])(e,"tickColor","red"),Object(l["a"])(e,"minorTickWidth",1),e),xAxis:{minorGridLineWidth:"2",tickColor:"red"},plotOptions:{series:{lineWidth:1,label:{connectorAllowed:!1},marker:{radius:5},pointStart:1}},series:[]}}},components:{XChart:h["a"]},mounted:function(){this.loadConverge(this.url)},created:function(){},methods:{demo1:function(){var e=function(){this.lineWidth=1,this.CurveDispaly="All",this.button=function(){},this.color0="#ffae23",this.Display="None",this.GlyphType="Line",this.color3="#ef1a4c",this.button=function(){}},i=this,t=new e,n=new c["a"],a=(n.addFolder("Flow All"),Object(r["a"])(i.convergeDate.VARIABLES));a.unshift("All");n.add(t,"CurveDispaly",a).name("Curve Dispaly").onChange((function(e){var t=[],n=e;if("All"==n)return i.CurveValue=["All"],i.newOption.series=i.option.series,void i.$refs.child.showChart("highcharts",i.newOption);var a=i.option.series.filter((function(e){return e.name==n}));t.push(a[0]),i.newOption.series=t,i.$refs.child.showChart("highcharts",i.newOption)})),n.add(t,"lineWidth",[0,1,2]).onChange((function(e){var t=e;i.$set(i.option.plotOptions.series,"lineWidth",Number(t)),i.$refs.child.showChart("highcharts",i.newOption)}));n.addColor(t,"color0").name("Curve Dispaly").onChange((function(e){i.$emit("changecolorConfirm1",e)}));n.addFolder("Flow area");var o=i.convergeDate.VARIABLES;n.add(t,"Display",o).onChange((function(e){i.displayLine=e})),n.add(t,"GlyphType",["Line","point","square","Triangle"]);n.addColor(t,"color3").name("Line Color").onChange((function(e){var t=e,n=i.displayLine;if(""!=n){for(var a in i.newOption.series)i.newOption.series[a].name==n&&(i.newOption.series[a].color=t);i.$refs.child.showChart("highcharts",i.newOption)}else i.$message.error("请先选择线条")})),n.add(t,"button").name("清空").onChange((function(){i.$emit("empty")}))},show:function(){var e=this.convergeDate;for(var i in this.option.series=[],e.VARIABLES){var t={name:"",data:[],color:"",display:!1};t.name=e.VARIABLES[i],console.log(t.name),this.option.series.push(t)}for(var i in e.VARIABLES)for(var n in e.value)this.option.series[i].data.push(Number(e.value[n][i].toFixed(10)));var a=this.option;this.newOption=Object(o["a"])({},a),this.$refs.child.showChart(this.charId,this.newOption)},loadConverge:function(e){var i=this;i.url=e,i.convergeDate.VARIABLES=[],i.convergeDate.value=[];var t=new s["s"];t.load(i.url,(function(e){i.convergeDateLoad(e),i.show(),i.demo1()}),(function(e){}),(function(e){console.error("An error happened")}))},convergeDateLoad:function(e){var i=this,t=e.split("\n"),n=/^Apollo/,a=/^ITER:/;t.forEach((function(e){if(null!==n.exec(e)){var t=u(e.trim()).split(" ").map((function(e){return e.trim()}));i.convergeDate.VARIABLES=t.slice(0),i.convergeDate.VARIABLES.push("djfdjf")}if(null!==a.exec(e)){var o=u(e.trim()).split(" ").map((function(e){return e.trim()}));i.convergeDate.value.push(o.slice(2).map((function(e){return Number(e)})))}}))},showCurve:function(){var e=[],i=this.CurveValue;for(var t in i){if("All"==i[t])return this.CurveValue=["All"],this.newOption.series=this.option.series,void this.$refs.child.showChart("highcharts",this.newOption);var n=this.option.series.filter((function(e){return e.name==i[t]}));e.push(n[0])}this.changeDisplay(),this.newOption.series=e,this.$refs.child.showChart("highcharts",this.newOption)},changeDisplay:function(){var e=this.CurveValue;for(var i in e)for(var t in this.option.series)e[i]==this.option.series[t].name&&(this.option.series[t].display=!1)},changeBackColor:function(){var e=this.back_color;this.$set(this.newOption.chart,"plotBackgroundColor",e),this.$refs.child.showChart("highcharts",this.newOption)},changeLine:function(){var e=this.linevalue;this.$set(this.option.plotOptions.series,"lineWidth",Number(e)),this.$refs.child.showChart("highcharts",this.newOption)},changeLineColor:function(){var e=this.lineColor,i=this.displayLine;if(""!=i){for(var t in this.newOption.series)this.newOption.series[t].name==i&&(this.newOption.series[t].color=e);this.$refs.child.showChart("highcharts",this.newOption)}else this.$message.error("请先选择线条")}}},d=p,v=(t("fb3b"),t("2877")),f=Object(v["a"])(d,n,a,!1,null,"5fd885eb",null);i["default"]=f.exports},bcdb:function(e,i,t){},e9b1:function(e,i,t){"use strict";var n=function(){var e=this,i=e.$createElement,t=e._self._c||i;return t("div",{staticClass:"x-bar"},[t("div",{attrs:{id:e.chartId}})])},a=[],o=t("ea7f"),r=t.n(o),l={props:{chartId:String},methods:{showChart:function(e,i){r.a.chart(e,i)}}},s=l,c=t("2877"),h=Object(c["a"])(s,n,a,!1,null,null,null);i["a"]=h.exports},fb3b:function(e,i,t){"use strict";var n=t("bcdb"),a=t.n(n);a.a}}]);