chunk-7ec6eff6.a1601ed7.js 11 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-7ec6eff6"],{1725:function(e){e.exports={}},"25f7":function(e,t,i){},"28a5":function(e,t,i){"use strict";var n=i("aae3"),r=i("cb7c"),a=i("ebd6"),o=i("0390"),l=i("9def"),s=i("5f1b"),c=i("520a"),u=i("79e5"),h=Math.min,p=[].push,v="split",f="length",d="lastIndex",g=4294967295,b=!u((function(){RegExp(g,"y")}));i("214f")("split",2,(function(e,t,i,u){var m;return m="c"=="abbc"[v](/(b)*/)[1]||4!="test"[v](/(?:)/,-1)[f]||2!="ab"[v](/(?:ab)*/)[f]||4!="."[v](/(.?)(.?)/)[f]||"."[v](/()()/)[f]>1||""[v](/.?/)[f]?function(e,t){var r=String(this);if(void 0===e&&0===t)return[];if(!n(e))return i.call(r,e,t);var a,o,l,s=[],u=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),h=0,v=void 0===t?g:t>>>0,b=new RegExp(e.source,u+"g");while(a=c.call(b,r)){if(o=b[d],o>h&&(s.push(r.slice(h,a.index)),a[f]>1&&a.index<r[f]&&p.apply(s,a.slice(1)),l=a[0][f],h=o,s[f]>=v))break;b[d]===a.index&&b[d]++}return h===r[f]?!l&&b.test("")||s.push(""):s.push(r.slice(h)),s[f]>v?s.slice(0,v):s}:"0"[v](void 0,0)[f]?function(e,t){return void 0===e&&0===t?[]:i.call(this,e,t)}:i,[function(i,n){var r=e(this),a=void 0==i?void 0:i[t];return void 0!==a?a.call(i,r,n):m.call(String(r),i,n)},function(e,t){var n=u(m,e,this,t,m!==i);if(n.done)return n.value;var c=r(e),p=String(this),v=a(c,RegExp),f=c.unicode,d=(c.ignoreCase?"i":"")+(c.multiline?"m":"")+(c.unicode?"u":"")+(b?"y":"g"),_=new v(b?c:"^(?:"+c.source+")",d),x=void 0===t?g:t>>>0;if(0===x)return[];if(0===p.length)return null===s(_,p)?[p]:[];var w=0,y=0,C=[];while(y<p.length){_.lastIndex=b?y:0;var I,A=s(_,b?p:p.slice(y));if(null===A||(I=h(l(_.lastIndex+(b?0:y)),p.length))===w)y=o(p,y,f);else{if(C.push(p.slice(w,y)),C.length===x)return C;for(var k=1;k<=A.length-1;k++)if(C.push(A[k]),C.length===x)return C;y=w=I}}return C.push(p.slice(w)),C}]}))},"5dbc":function(e,t,i){var n=i("d3f4"),r=i("8b97").set;e.exports=function(e,t,i){var a,o=t.constructor;return o!==i&&"function"==typeof o&&(a=o.prototype)!==i.prototype&&n(a)&&r&&r(e,a),e}},6520:function(e,t,i){"use strict";i.r(t);var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{directives:[{name:"show",rawName:"v-show",value:e.container_show,expression:"container_show"}]},[i("div",{staticClass:"chart"},[i("x-chart",{ref:"child",staticClass:"high",attrs:{id:"highcharts",chartId:e.charId}})],1),e._v(" "),i("div",{staticClass:"control"},[i("div",{ref:"box",staticStyle:{width:"50%",border:"1px solid lightgrey",float:"left"}},[i("div",[i("span",{staticClass:"text"},[e._v("Curve Display:")]),e._v(" "),i("el-select",{staticStyle:{"margin-top":"10px"},attrs:{size:"mini",multiple:"","collapse-tags":"",placeholder:"请选择显示项"},on:{change:e.showCurve},model:{value:e.CurveValue,callback:function(t){e.CurveValue=t},expression:"CurveValue"}},[i("el-option",{attrs:{label:"All",value:"All"}}),e._v(" "),e._l(e.option.series,(function(e,t){return i("el-option",{key:t,attrs:{label:e.name,value:e.name}})}))],2)],1),e._v(" "),i("br"),e._v(" "),i("div",[i("span",{staticClass:"text"},[e._v("Line Width:")]),e._v(" "),i("el-select",{staticStyle:{"margin-left":"15px"},attrs:{size:"mini",placeholder:"请选择线宽"},on:{change:e.changeLine},model:{value:e.linevalue,callback:function(t){e.linevalue=t},expression:"linevalue"}},e._l(e.lineWdith,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("div",[i("span",{staticClass:"text"},[e._v("BackGroundColor:")]),e._v(" "),i("el-color-picker",{staticStyle:{"margin-top":"10px"},attrs:{size:"mini"},on:{change:e.changeBackColor},model:{value:e.back_color,callback:function(t){e.back_color=t},expression:"back_color"}})],1)]),e._v(" "),i("div",{staticStyle:{width:"50%",border:"1px solid lightgrey",float:"right"}},[i("div",[i("span",{staticClass:"text"},[e._v("Curve Display:")]),e._v(" "),i("el-select",{staticStyle:{"margin-top":"10px"},attrs:{size:"mini",placeholder:"请选择隐藏项"},model:{value:e.displayLine,callback:function(t){e.displayLine=t},expression:"displayLine"}},e._l(e.option.series,(function(e,t){return i("el-option",{key:t,attrs:{label:e.name,value:e.name,disabled:e.display}})})),1)],1),e._v(" "),i("br"),e._v(" "),i("div",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}]},[i("span",{staticClass:"text"},[e._v("Line Type:")]),e._v(" --\x3e\n "),i("el-select",{staticStyle:{"margin-left":"15px"},attrs:{size:"mini",placeholder:"请选择线的类型"},model:{value:e.lineType,callback:function(t){e.lineType=t},expression:"lineType"}},e._l(e.lineStyle,(function(e){return i("el-option",{key:e.value,attrs:{label:e.label,value:e.value}})})),1)],1),e._v(" "),i("div",[i("span",{staticClass:"text"},[e._v("Line Color:")]),e._v(" "),i("el-color-picker",{staticStyle:{"margin-top":"10px"},attrs:{size:"mini"},on:{change:e.changeLineColor},model:{value:e.lineColor,callback:function(t){e.lineColor=t},expression:"lineColor"}})],1)])])])},r=[],a=(i("ac6a"),i("28a5"),i("5530")),o=(i("c5f6"),i("7f7f"),i("e9b1")),l=(i("1725"),i("5a89")),s=i("7dac"),c={data:function(){return{container_show:!1,url:"http://192.168.0.43:6868/8525e93c277749e7a54dde92fc31405d/tf/test/data_out/converge.dat",convergeDate:{title:"hcfd",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:"",back_color:"#FFFFF",lineType:"",lineColor:"",linevalue:"3",CurveValue:["All"],newOption:[],charId:"char1",option:{title:{text:"HCFD"},chart:{plotBackgroundColor:"#FFFFF",borderWidth:1},subtitle:{},yAxis:{},xAxis:{},plotOptions:{series:{lineWidth:1,label:{connectorAllowed:!1},marker:{radius:5},pointStart:1}},series:[],credits:{enabled:!1},responsive:{rules:[{condition:{maxWidth:500},chartOptions:{legend:{layout:"horizontal",align:"center",verticalAlign:"bottom"}}}]}}}},props:{name:String},created:function(){},watch:{},mounted:function(){},methods:{hiden:function(){this.container_show=!1},nhiden:function(){this.container_show=!0},show:function(){this.option.title.text=this.name,this.nhiden();var e=this.convergeDate;for(var t in e.VARIABLES){var i={name:"",data:[],color:"",display:!1};i.name=e.VARIABLES[t],this.option.series.push(i)}for(var t in e.VARIABLES)for(var n in e.value)this.option.series[t].data.push(Number(e.value[n][t].toFixed(10)));var r=this.option;this.newOption=Object(a["a"])({},r),this.$refs.child.showChart(this.charId,this.newOption)},loadConverge:function(e){var t=this;t.url=e;var i=new l["s"];i.load(t.url,(function(e){t.convergeDateLoad(e),t.show()}),(function(e){}),(function(e){console.error("An error happened")}))},convergeDateLoad:function(e){var t=this,i=e.split("\n"),n=/^ Iter /,r=/^ iter /;i.forEach((function(e){if(null!==n.exec(e)){var i=Object(s["a"])(e.trim()).split(" ").map((function(e){return e.trim()}));t.convergeDate.VARIABLES=i.slice(1)}if(null!==r.exec(e)){var a=Object(s["a"])(e.trim()).split(" ").map((function(e){return e.trim()}));t.convergeDate.value.push(a.slice(2).map((function(e){return Number(e)})))}}))},showCurve:function(){var e=[],t=this.CurveValue;for(var i in t){if("All"==t[i])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==t[i]}));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 t in e)for(var i in this.option.series)e[t]==this.option.series[i].name&&(this.option.series[i].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,t=this.displayLine;if(""!=t){for(var i in this.newOption.series)this.newOption.series[i].name==t&&(this.newOption.series[i].color=e);this.$refs.child.showChart("highcharts",this.newOption)}else this.$message.error("请先选择线条")}},components:{XChart:o["a"]}},u=c,h=(i("9acd"),i("2877")),p=Object(h["a"])(u,n,r,!1,null,null,null);t["default"]=p.exports},"7dac":function(e,t,i){"use strict";i.d(t,"a",(function(){return n}));i("c5f6"),i("28a5"),i("a481");var n=function(e){while(e.indexOf(" ")>0)e=e.replace(" "," ");return e}},"8b97":function(e,t,i){var n=i("d3f4"),r=i("cb7c"),a=function(e,t){if(r(e),!n(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,n){try{n=i("9b43")(Function.call,i("11e9").f(Object.prototype,"__proto__").set,2),n(e,[]),t=!(e instanceof Array)}catch(r){t=!0}return function(e,i){return a(e,i),t?e.__proto__=i:n(e,i),e}}({},!1):void 0),check:a}},"9acd":function(e,t,i){"use strict";var n=i("25f7"),r=i.n(n);r.a},aa77:function(e,t,i){var n=i("5ca1"),r=i("be13"),a=i("79e5"),o=i("fdef"),l="["+o+"]",s="​…",c=RegExp("^"+l+l+"*"),u=RegExp(l+l+"*$"),h=function(e,t,i){var r={},l=a((function(){return!!o[e]()||s[e]()!=s})),c=r[e]=l?t(p):o[e];i&&(r[i]=c),n(n.P+n.F*l,"String",r)},p=h.trim=function(e,t){return e=String(r(e)),1&t&&(e=e.replace(c,"")),2&t&&(e=e.replace(u,"")),e};e.exports=h},aae3:function(e,t,i){var n=i("d3f4"),r=i("2d95"),a=i("2b4c")("match");e.exports=function(e){var t;return n(e)&&(void 0!==(t=e[a])?!!t:"RegExp"==r(e))}},c5f6:function(e,t,i){"use strict";var n=i("7726"),r=i("69a8"),a=i("2d95"),o=i("5dbc"),l=i("6a99"),s=i("79e5"),c=i("9093").f,u=i("11e9").f,h=i("86cc").f,p=i("aa77").trim,v="Number",f=n[v],d=f,g=f.prototype,b=a(i("2aeb")(g))==v,m="trim"in String.prototype,_=function(e){var t=l(e,!1);if("string"==typeof t&&t.length>2){t=m?t.trim():p(t,3);var i,n,r,a=t.charCodeAt(0);if(43===a||45===a){if(i=t.charCodeAt(2),88===i||120===i)return NaN}else if(48===a){switch(t.charCodeAt(1)){case 66:case 98:n=2,r=49;break;case 79:case 111:n=8,r=55;break;default:return+t}for(var o,s=t.slice(2),c=0,u=s.length;c<u;c++)if(o=s.charCodeAt(c),o<48||o>r)return NaN;return parseInt(s,n)}}return+t};if(!f(" 0o1")||!f("0b1")||f("+0x1")){f=function(e){var t=arguments.length<1?0:e,i=this;return i instanceof f&&(b?s((function(){g.valueOf.call(i)})):a(i)!=v)?o(new d(_(t)),i,f):_(t)};for(var x,w=i("9e1e")?c(d):"MAX_VALUE,MIN_VALUE,NaN,NEGATIVE_INFINITY,POSITIVE_INFINITY,EPSILON,isFinite,isInteger,isNaN,isSafeInteger,MAX_SAFE_INTEGER,MIN_SAFE_INTEGER,parseFloat,parseInt,isInteger".split(","),y=0;w.length>y;y++)r(d,x=w[y])&&!r(f,x)&&h(f,x,u(d,x));f.prototype=g,g.constructor=f,i("2aba")(n,v,f)}},e9b1:function(e,t,i){"use strict";var n=function(){var e=this,t=e.$createElement,i=e._self._c||t;return i("div",{staticClass:"x-bar"},[i("div",{attrs:{id:e.chartId}})])},r=[],a=i("ea7f"),o=i.n(a),l={props:{chartId:String},methods:{showChart:function(e,t){o.a.chart(e,t)}}},s=l,c=i("2877"),u=Object(c["a"])(s,n,r,!1,null,null,null);t["a"]=u.exports},fdef:function(e,t){e.exports="\t\n\v\f\r   ᠎              \u2028\u2029\ufeff"}}]);