<html><head><meta name="color-scheme" content="light dark"></head><body><pre style="word-wrap: break-word; white-space: pre-wrap;">(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-29cc3a8a","chunk-2d0be6be"],{"083a":function(t,e,a){"use strict";var i=a("0d51"),s=TypeError;t.exports=function(t,e){if(!delete t[e])throw s("Cannot delete property "+i(e)+" of "+i(t))}},"0ccd":function(t,e,a){},"0f61":function(t,e,a){},"13ab":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.onLoading,expression:"onLoading"}]},[t._t("default"),t.display?a("div",[a("div",[a("FOFECharts",{attrs:{option:t.option,toFile:"äº§å“å‡€å€¼",height:300,"data-zoom-norm":!0}})],1),t.productParam.categoryControl?a("el-row",[a("el-col",{attrs:{align:"center"}},[a("el-radio-group",{staticClass:"margin-r10",attrs:{size:"mini"},model:{value:t.radio,callback:function(e){t.radio=e},expression:"radio"}},[a("el-radio-button",{attrs:{label:"å½“æœˆ"},nativeOn:{click:function(e){return t.onPeriodChanged("MONTH_TO_DATE")}}}),a("el-radio-button",{attrs:{label:"ä¸€ä¸ªæœˆ"},nativeOn:{click:function(e){return t.onPeriodChanged("ONE_MONTH")}}}),a("el-radio-button",{attrs:{label:"ä¸‰ä¸ªæœˆ"},nativeOn:{click:function(e){return t.onPeriodChanged("THREE_MONTH")}}}),a("el-radio-button",{attrs:{label:"ä»Šå¹´ä»¥æ¥"},nativeOn:{click:function(e){return t.onPeriodChanged("YEAR_TO_DATE")}}}),a("el-radio-button",{attrs:{label:"è‡ªæˆç«‹ä»¥æ¥"},nativeOn:{click:function(e){return t.onPeriodChanged("SINCE_INCEPTION")}}})],1)],1)],1):t._e()],1):a("div",{staticClass:"tc text_color margin-t5"},[a("div",{staticClass:"f14 tc flex",staticStyle:{width:"100%","letter-spacing":"2px",height:"200px",display:"flex","align-items":"center","justify-content":"center"}},[a("div",[a("svg",{staticClass:"icon-xiangguanxing",attrs:{"aria-hidden":"true"}},[a("use",{attrs:{"xlink:href":"#icon-zanwuzhuzhuangtu"}})]),a("p",{staticClass:"chartFontStyle"},[t._v("æš‚æ—&nbsp;æ»šåŠ¨ç›¸å…³æ€§")])])])])],2)},s=[],r=(a("14d9"),a("13d5"),a("f65d")),o=(a("313e"),a("9a0f")),n=a("2fd8"),l={components:{FOFECharts:r["a"]},props:{productParam:{type:Object}},data(){return{option:null,onLoading:!0,radio:"è‡ªæˆç«‹ä»¥æ¥",period:"SINCE_INCEPTION",display:!1}},computed:{theme(){return this.$store.state.theme||"FOFtheme"}},methods:{onPeriodChanged(t){this.period=t,this.refreshNavChart(),this.$emit("setPeriod",t)},refreshNavChart(t){setTimeout(()=&gt;{let e={},a={},i=[];if(a=this.productParam.categoryControl?this.productParam.chartData[this.period]:this.productParam.chartData,this.productParam.performancechange)for(const[t,r]of Object.entries(a)){let t=[],a=[];t=r.map(t=&gt;({x:t.valueAsOfDate,y:t.netAssetValue})),a=r.map(t=&gt;({x:t.valueAsOfDate,y:t.accumulatedNav})),e["å‡€å€¼"]=t,e["ç´¯è®¡å‡€å€¼"]=a}else if(this.productParam.areaMap)for(const[t,r]of Object.entries(a)){let a=[];r.characteristics?a=r.characteristics.map(t=&gt;({x:t.asOfDate,y:o["a"].numberToPercent(t.doubleValue)})):r.length&amp;&amp;(a=r.map(t=&gt;({x:t.valueAsOfDate,y:t.netAssetValue}))),e[t.split("|").length&gt;1?t.split("|")[2]:t]=a}else if(this.productParam.rolling)e=a;else if(this.productParam.varianceModelAreaMap)for(const[t,r]of Object.entries(a)){let a=t;r&amp;&amp;(e[a]=r)}else if(this.productParam.effectiveFrontierParam){let t=[];this.productParam.front_mean.forEach((e,a)=&gt;{t.push({x:o["a"].numberToPercent(this.productParam.front_var[a],6),y:o["a"].numberToPercent(e,10),z:this.productParam.frontWeight[a]})}),e["æœ‰æ•ˆå‰æ²¿"]=t,i=this.productParam.productName;for(const[i,s]of Object.entries(a)){let t=i;s&amp;&amp;(e[t]=s)}}else for(const[t,r]of Object.entries(a)){let a=t;if(r){let t=r.find(t=&gt;"NORMAL"===t.classification);if(t){const i=t.returnData.map(t=&gt;({x:t.asOfDate,y:o["a"].numberToPercent(t.cumulativeReturn,2)}));e[a]=i}}}let s=JSON.parse(JSON.stringify(e));if(t&amp;&amp;Object.keys(t).forEach((e,a)=&gt;{t[e]||(s[e]=[])}),e&amp;&amp;Object.keys(e).length){let t=null;if(this.productParam.areaMap?(t=n["a"].lineChart(s,"",!this.productParam.percent,!1,"areaMap"),this.productParam.showFirstLegendOnly?this.showFirstLegendOnly(t):this.option&amp;&amp;this.option.legend&amp;&amp;this.option.legend.length&gt;0&amp;&amp;(t.legend.selected=this.option.legend[0].selected)):(t=this.productParam.effectiveFrontierParam?n["a"].lineChart(s,"",!this.productParam.percent,!1,!1,!1,!0,i,"é£Žé™©","æ”¶ç›Š"):this.productParam.varianceModelAreaMap?n["a"].lineChart(s,"",!this.productParam.percent,!1,"varianceModelAreaMap",!1,!1,[],"é£Žé™©","æƒé‡"):n["a"].lineChart(s,"",!this.productParam.percent),this.option&amp;&amp;this.option.legend&amp;&amp;this.option.legend.length&gt;0&amp;&amp;(t.legend.selected=this.option.legend[0].selected)),this.productParam.transactionData&amp;&amp;this.productParam.transactionData.length&gt;0){let e={};this.productParam.transactionData.forEach(t=&gt;{e[t.tradeDate]={xAxis:t.tradeDate,yAxis:null,symbol:"FUND_PURCHASE"==t.transactionType?"pin":"triangle",symbolSize:10,label:{show:!1,position:[-20,-12]},itemStyle:{color:"FUND_PURCHASE"==t.transactionType?"red":"green"},emphasis:{label:{show:!0,formatter:t.masterProductName+"("+this.$store.state.transactionType[t.transactionType]+")"}}}}),t.series[0].data.forEach(t=&gt;{let a=e[t[0]];a&amp;&amp;(a["yAxis"]=o["a"].formatNumber(t[1],4))}),t.series[0].markPoint={data:Object.values(e)}}t.grid.top=0,t.grid.bottom=null,t.legend.bottom=8,this.option=t,this.onLoading=!1}},1)},showFirstLegendOnly(t){if(t){let e=t.legend.data.slice();const a=e[0];let i=e.map(t=&gt;{let e={};return e[t]=!1,e}).reduce((t,e)=&gt;Object.assign(t,e));i[a]=!0,t.legend.selected=i}},initDatas(){this.display=!1,this.productParam.chartData&amp;&amp;Object.values(this.productParam.chartData).forEach((t,e)=&gt;{Object.keys(t).length&amp;&amp;(this.display=!0)}),this.productParam.frontWeight&amp;&amp;this.productParam.front_mean&amp;&amp;this.productParam.front_var&amp;&amp;this.productParam.frontWeight.length&amp;&amp;this.productParam.front_mean.length&amp;&amp;this.productParam.front_var.length&amp;&amp;(this.display=!0),this.$nextTick(()=&gt;{this.display?(this.onLoading=!0,this.refreshNavChart()):(this.display=!1,this.onLoading=!1)})}},watch:{productParam:{deep:!0,handler:function(){this.initDatas()}},theme(t){t&amp;&amp;this.$nextTick(()=&gt;{this.initDatas()})}},mounted(){this.initDatas()}},c=l,h=a("0c7c"),d=Object(h["a"])(c,i,s,!1,null,null,null);e["a"]=d.exports},"15bb":function(t,e,a){},"168b":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t._t("default"),t.display?a("div",[a("el-row",[a("el-col",{attrs:{span:12}},[a("p",{staticClass:"margin-b5",staticStyle:{color:"black","font-size":"18px","font-weight":"bold"}})]),a("el-col",{attrs:{span:12,align:"left"}},[a("div",{staticStyle:{float:"right","margin-right":"10px"}},[this.allProductNames.length&gt;t.defaultShowThreshold?a("el-popover",{attrs:{placement:"top-start",title:"é€‰æ‹©äº§å“",width:"200",trigger:"click"}},[a("el-checkbox-group",{on:{change:t.selectProducts},model:{value:t.selProductNames,callback:function(e){t.selProductNames=e},expression:"selProductNames"}},t._l(t.allProductNames,(function(e,i){return a("el-checkbox",{key:"item_"+i,staticStyle:{width:"100%"},attrs:{label:e}},[t._v(t._s(e)+" ")])})),1),a("i",{staticClass:"fa fa-database",staticStyle:{cursor:"pointer"},attrs:{slot:"reference","aria-hidden":"true"},slot:"reference"})],1):t._e()],1)])],1),a("div",[t.productParam?a("div",{directives:[{name:"show",rawName:"v-show",value:t.filteredChartData&amp;&amp;Object.keys(t.filteredChartData).length&gt;0,expression:"\n          filteredChartData &amp;&amp; Object.keys(filteredChartData).length &gt; 0\n        "}],style:"width:100%; height:"+(t.productParam.height?t.productParam.height:400)+"px;",attrs:{id:t.domId}}):a("div",{staticClass:"f12 fb tc margin-v10"},[t._v("æš‚æ—&nbsp;æ•°æ®")]),!t.productParam||t.filteredChartData&amp;&amp;0!=Object.keys(t.filteredChartData).length?t._e():a("div",{staticClass:"f12 fb tc margin-v10"},[t._v(" æš‚æ—&nbsp;æ•°æ® ")])]),a("el-row",[a("el-col",{attrs:{align:"center"}},[t.productParam.categoryControl?a("el-radio-group",{staticClass:"margin-r10",attrs:{size:"mini"},on:{change:t.onPeriodChanged},model:{value:t.radio,callback:function(e){t.radio=e},expression:"radio"}},[t.hasCustomizedNav()?t._e():a("el-radio-button",{attrs:{label:"MONTH_TO_DATE"}},[t._v("å½“æœˆ")]),t.hasCustomizedNav()?t._e():a("el-radio-button",{attrs:{label:"ONE_MONTH"}},[t._v("ä¸€ä¸ªæœˆ")]),t.hasCustomizedNav()?t._e():a("el-radio-button",{attrs:{label:"THREE_MONTH"}},[t._v("ä¸‰ä¸ªæœˆ")]),t.hasCustomizedNav()?t._e():a("el-radio-button",{attrs:{label:"YEAR_TO_DATE"}},[t._v("ä»Šå¹´ä»¥æ¥")]),a("el-radio-button",{attrs:{label:"SINCE_INCEPTION"}},[t._v("è‡ªæˆç«‹ä»¥æ¥")]),t.hasCustomizedNav()?a("el-radio-button",{attrs:{label:"CUSTOMIZED"}},[t._v("è‡ªå®šä¹‰åŒºé—´")]):t._e()],1):t._e(),t.productParam.categoryControl?a("el-checkbox",{attrs:{label:"ç´¯è®¡å‡€å€¼",border:"",size:"mini"},on:{change:t.refreshNavChart},model:{value:t.isAccumulated,callback:function(e){t.isAccumulated=e},expression:"isAccumulated"}}):t._e(),t.productParam.normalizedControl?a("el-checkbox",{attrs:{label:"å‡€å€¼å½’ä¸€",border:"",size:"mini"},on:{change:t.refreshNavChart},model:{value:t.isNormalized,callback:function(e){t.isNormalized=e},expression:"isNormalized"}}):t._e(),t.text?a("el-button",{staticClass:"tag-read",attrs:{size:"mini","data-clipboard-text":t.text,icon:"iconfont icon-copy"},on:{click:t.copy}},[t._v("å¤åˆ¶è¡¨æ&nbsp;¼ ")]):t._e()],1)],1)],1):a("div",{staticClass:"f12 fb tc"},[t._v("æš‚æ—&nbsp;æ•°æ®")])],2)},s=[],r=(a("14d9"),a("13d5"),a("313e")),o=a("9a0f"),n=a("2fd8"),l=a("b311"),c=a.n(l),h=a("f2d9"),d=a("8ff3"),p=a.n(d),u=a("25ca"),m={components:{jsonExcel:h["a"],HashMap:p.a},props:{productParam:{type:Object},chartStyle:{type:Object,default:()=&gt;({title:null,groupId:null,yAxisScale:!1,lineArea:!1,yAxisName:null,xAxisLabelRotate:null})}},data(){return{dataMap:null,tableData:[],jsonExportColumns:{},defaultShowThreshold:9999,filteredChartData:null,selProductNames:[],allProductNames:[],tableExcelData:[],copyChartData:null,navChart:null,radio:"è‡ªæˆç«‹ä»¥æ¥",period:"SINCE_INCEPTION",domId:"navChart"+Math.random(),display:!1,isAccumulated:!0,isNormalized:!0,text:"",option:null}},computed:{theme(){return this.$store.state.theme||"FOFtheme"}},methods:{exportExcel(){let t=this.tableExcelData;var e=u["utils"].aoa_to_sheet(t),a=u["utils"].book_new();u["utils"].book_append_sheet(a,e,"Sheet1"),u["writeFile"](a,"å‡€å€¼èµ°åŠ¿.xlsx")},extractExportJson(){if(this.tableExcelData=[],this.tableData&amp;&amp;this.tableData.length){let t=["X"];t.push("å½“å‰é…ç½®"),this.tableExcelData.push(t),this.tableData.forEach(e=&gt;{let a=[];for(let i=0;i&lt;t.length;i++)if(0==i)a.push(Object.values(e)[0]);else{let s=e[t[i]];isNaN(s)?a.push(s||0):a.push(+s)}this.tableExcelData.push(a)})}},selectProducts(){this.refreshNavChart2()},copy(){let t=new c.a(".tag-read");t.on("success",e=&gt;{this.$message({showClose:!0,message:"å¤åˆ¶æˆåŠŸï¼",type:"success"}),t.destroy()}),t.on("error",e=&gt;{console.error("###e:",e),this.$message({showClose:!0,message:"è¯¥æµè§ˆå™¨ä¸æ”¯æŒè‡ªåŠ¨å¤åˆ¶ï¼",type:"error"}),t.destroy()})},onPeriodChanged(t){this.period=t,this.refreshNavChart(),this.$emit("setPeriod",t)},refreshNavChart(t){this.$nextTick(()=&gt;{let e={},a={};if(a=this.productParam.categoryControl?this.productParam.chartData[this.period]:this.productParam.chartData,this.productParam.areaMap)for(const[t,i]of Object.entries(a)){let a=[];i.characteristics&amp;&amp;(a=i.characteristics.map(t=&gt;({x:t.asOfDate,y:o["a"].numberToPercent(t.doubleValue)}))),e[t]=a}else if(this.productParam.rolling)e=a;else for(const[t,i]of Object.entries(a)){const a=t;if(i){let t=i.find(t=&gt;"NORMAL"===t.classification);if(t){let i=JSON.parse(JSON.stringify(t));if(this.isNormalized){const t=i.valuationData[0].netAssetValue,e=i.valuationData[0].accumulatedNav;i.valuationData.forEach(a=&gt;{a.netAssetValue=a.netAssetValue/t,a.accumulatedNav=a.accumulatedNav/e})}const s=i.valuationData.map(t=&gt;this.isAccumulated?{x:t.valueAsOfDate,y:o["a"].formatNumber(t.accumulatedNav,4)}:{x:t.valueAsOfDate,y:o["a"].formatNumber(t.netAssetValue,4)});e[a.split("|").length&gt;1?a.split("|")[2]:a]=s}}}this.copyChartData=JSON.parse(JSON.stringify(e)),this.allProductNames=[],Object.keys(this.copyChartData).forEach((t,e)=&gt;{this.allProductNames.push(t)}),this.allProductNames.length&lt;=this.defaultShowThreshold&amp;&amp;(this.selProductNames=this.allProductNames),t&amp;&amp;Object.keys(t).forEach((e,a)=&gt;{t[e]||(this.copyChartData[e]=[])}),this.refreshNavChart2(),this.extractExportJson()})},refreshNavChart2(){if(this.copyChartData&amp;&amp;Object.keys(this.copyChartData).length){this.filteredChartData={},Object.keys(this.copyChartData).forEach((t,e)=&gt;{this.selProductNames.includes(t)&amp;&amp;(this.filteredChartData[t]=this.copyChartData[t])});let t=null;if(this.productParam.areaMap?(t=n["a"].lineChart(this.filteredChartData,"",!this.productParam.percent,!1,!0),this.productParam.showFirstLegendOnly&amp;&amp;this.showFirstLegendOnly(t)):(t=n["a"].lineChart(this.filteredChartData,"",!this.productParam.percent,!1,!1,"line",!1),this.navChart&amp;&amp;this.navChart.getOption()&amp;&amp;(t.legend.selected=this.navChart.getOption().legend[0].selected),this.initEcharts()),this.navChart){if(this.chartStyle.toolbox){let e=this;t.toolbox=this.chartStyle.toolbox,t.toolbox.feature.myTool1={show:!0,title:"å¯¼å‡ºæ•°æ®",icon:"image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAAAsSAAALEgHS3X78AAAE/klEQVR4nO2cT2gbRxTGPyuRFzesZKQNJTJRSVuwD5JP8WkLLe0lTSG+RqWnHuqW+C5QznFx7iXOOYeE9BQffArOJXuyoSDpkECoQcKC2GtheesuIxu5B3XFSruSdjQr7x/N77h6mh19jObN+2aYqYuLiwtwRibidQeCDheQES4gI1xARq563YFBlFQCpabjbU2Hsq/jpNnCszs3cPfWNa+71mHKT1nYTrBe5NQMNpfnPOidPZ6OQCeC+Z1LFTAMgvUyVgHHIViDtKDUdBd6R0dsOoKsJFieuzoHhnGEmXn5QwrfpT/pesY0AsMuWC+vK/+yCegHwTJJAWtfSUPj7r3ap4p30pYdAwX0g2C9xIUI5NTM2OJpsQhYUgnWd+u+EczvWAS892qfC0eBpRbm4tHBzQRGuICM+NqNsaOkkoHLCtZ4WgIn4EmTrpSjjaeF/4UZCdwIdOoHJp98oIp30pYdfAQywgVkhAvICBeQEWYBn925gc3lOcSm6Zp6JEv4++fP8b2PdthGgTkLl1SC/FICa7KE1TcHjr4jp2bw6+IsAKCsEqr30Vr6494CsFj6g1J2P/766TOkxSi+fllF+Wi4IEb8RvEYDxWV+n1e8Ut2Fr/3mLOuzIGr2+2R58T5XVmcRVqMokFaWN+pu/F6T3FlIa3UdGztneLurWu4Py/ixXvNNi42HUH+dgIAUFAOR7LObopXkZuPDY17vFuninfSlh2uVSIF5RByagb5pQS29k5txVmTJcSFCJSa3lfkYaTFKPJLiaFxxo92Gu+kLTtcW8ZUtXNsFI+RFqOdBGEmkxSQW2iPhMLb4Mx7w3B1Hfh4t46Kdob8UgI3xe7BbcyPG8VjR4kmKLi+kO4kFPl659n9eRFyaiY0icOM626MOaEc/fZl12ejJg4/M5ZSrqAcokG6hWJJHH5mLH6gkVDM2c+txDExlr65fFJqumuJY2IsfXMW7s3IYWIsvyw2HenKwmkxipXFWTwtHjO3PRGWfn4pgbjQ3XT+doLa8goCrv+iTFLoVCLrO3Ukn3xAQVERFyJYk9mOmfkR1wU0Kg6lpndqyKfFYyg1HbmF2FiPmnmBqwIaFQdgXbY82P4IoO1EhwnXBDQnjufvTizLFmNtmJUErNiYDUHFNQGNxNEgLRT6uMzrO3U0SCtUCcWVZUxX4tit9613T5otFJRD/PHtp1R7KGaUmk617UAbT4srw8BIHBXtbOha78V7DSWVhCahMI9Ac+IwrKxhPFRUbC7P4ZEs4Zs/q1TvC52l/+P/LvPW3qnjmlOp6Xj+7gS5hdjAPRQ7/GbpMwv4YPsj4tNXqM2C1TcH2Cg2UNHOWLvgKcwCVrVzVHE+0nfDYO2HYy3hIVxARriAjATO6axoZ1Q7e7TxtAROwKp2PnBZwRpPC/8LMxK4ETgRlv4kwQVkhAvICBeQES4gIxYBM0nr5TKc/lhO6TdIC1t7/6B01ERZJSipJHRH0kbF7pS+ZR0YFyLILcSQMz2raGcoq02UVILSEUFZJahqo1lYQeaL2ajl2chXPzVIC+Wj9ggtqQRltXkp/l6/O6zGTUYSbE9WuH5/YFtMMrYpIPT3B2YlAVlJmJgp4FJq4bQYRVqMdl3d6dUU4DaemQnGnVa9e8PDpoCMB/PfIHx1h2o/GqSFA/0cDdJCVhIgXJnyuksdAiGgn+GlHCNcQEa4gIxwARn5D/oby6g3QU8UAAAAAElFTkSuQmCC",onclick:function(){e.exportExcel()}}}this.navChart.setOption(t),this.$nextTick(()=&gt;{this.navChart.resize()}),this.dataMap=new p.a,this.tableData=[];let e=[],a=[];this.jsonExportColumns={},this.jsonExportColumns["æ—¥æœŸ"]="æ—¥æœŸ",Object.keys(this.filteredChartData).forEach((t,i)=&gt;{let s=t;e.push(s),this.jsonExportColumns[s]=s;let r=new p.a;this.filteredChartData[t].forEach(t=&gt;{r.set(t.x,t.y),a.push(t.x)}),this.dataMap.set(s,r)}),a=a.distinct(),a.sort((t,e)=&gt;t===e?0:t&gt;e?1:-1),a.forEach((t,a)=&gt;{let i={};i["æ—¥æœŸ"]=t,e.forEach((e,a)=&gt;{i[e]=this.getYData(e,t)}),this.tableData.push(i)})}}},getYData(t,e){return this.dataMap.get(t).get(e)},showFirstLegendOnly(t){if(t){let e=t.legend.data.slice();const a=e[0];let i=e.map(t=&gt;{let e={};return e[t]=!1,e}).reduce((t,e)=&gt;Object.assign(t,e));i[a]=!0,t.legend.selected=i}},initEcharts(){const t=document.getElementById(this.domId);t&amp;&amp;(this.navChart&amp;&amp;this.navChart.dispose(),this.navChart=r["init"](t,this.theme),this.productParam.areaMap||this.navChart.on("legendselectchanged",()=&gt;{this.refreshNavChart(this.navChart.getOption().legend[0].selected)}))},initDatas(t){this.display=!1,Object.values(this.productParam.chartData).forEach((t,e)=&gt;{Object.keys(t).length&amp;&amp;(this.display=!0)}),this.hasCustomizedNav()?(this.radio="è‡ªå®šä¹‰åŒºé—´",this.period="CUSTOMIZED"):(this.radio="è‡ªæˆç«‹ä»¥æ¥",this.period="SINCE_INCEPTION"),this.$nextTick(()=&gt;{!t&amp;&amp;this.navChart||this.initEcharts(),this.display?this.refreshNavChart():this.display=!1})},setNormalized(t){this.isNormalized=t},hasCustomizedNav(){return!!this.productParam.categoryControl&amp;&amp;Object.keys(this.productParam.chartData).includes("CUSTOMIZED")}},watch:{productParam(t){if(t.chartData&amp;&amp;t.chartData["SINCE_INCEPTION"]){let e=Object.keys(t.chartData["SINCE_INCEPTION"]).length;this.setNormalized(1!=e)}this.initDatas()},theme(t){t&amp;&amp;this.$nextTick(()=&gt;{this.initDatas()})}},mounted(){if(this.productParam.chartData&amp;&amp;this.productParam.chartData["SINCE_INCEPTION"]){let t=Object.keys(this.productParam.chartData["SINCE_INCEPTION"]).length;this.setNormalized(1!=t)}let t;this.initDatas(!0),window.addEventListener("resize",()=&gt;{t||(t=setTimeout(()=&gt;{this.navChart&amp;&amp;this.navChart.resize(),t=null},500))})}},f=m,g=a("0c7c"),b=Object(g["a"])(f,i,s,!1,null,null,null);e["a"]=b.exports},"17b8":function(t,e,a){},"1b2a":function(t,e,a){},"1bcd":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-form",{attrs:{"label-width":"120px",size:"mini"}},[t._l(t.openDayList,(function(e,i){return a("el-form-item",{key:"openDayRecord_"+i},[a("span",{attrs:{slot:"label"},slot:"label"},[t._v(" "+t._s("é…ç½®"+(i+1)+"ï¼š")+" ")]),a("el-form",{attrs:{"label-width":"80px"}},[a("el-form-item",{directives:[{name:"show",rawName:"v-show",value:!1,expression:"false"}],attrs:{label:"ç”³èµŽç±»åž‹ï¼š"}},[a("el-radio-group",{attrs:{disabled:!0},model:{value:e.transactionType,callback:function(a){t.$set(e,"transactionType",a)},expression:"openDayRecord.transactionType"}},[a("el-radio",{attrs:{label:"PURCHASE"}},[t._v("ç”³è´­")]),a("el-radio",{attrs:{label:"REDEMPTION"}},[t._v("èµŽå›ž")]),a("el-radio",{attrs:{label:"PURCHASE_REDEMPTION"}},[t._v("ç”³èµŽç›¸åŒ")])],1)],1),a("el-form-item",{attrs:{label:"é¡ºå»¶è§„åˆ™ï¼š"}},[a("el-radio-group",{model:{value:e.deferMode,callback:function(a){t.$set(e,"deferMode",a)},expression:"openDayRecord.deferMode"}},[a("el-radio",{attrs:{label:"FUTURE"}},[t._v("å¾€åŽé¡ºå»¶")]),a("el-radio",{attrs:{label:"PAST"}},[t._v("å¾€å‰é¡ºå»¶")]),a("el-radio",{attrs:{label:"NONE"}},[t._v("ä¸é¡ºå»¶")])],1)],1),a("el-form-item",{attrs:{label:"å¯é€‰é¡¹ï¼š"}},[a("el-checkbox-group",{on:{change:function(a){return t.changeCategory(e)}},model:{value:e.options,callback:function(a){t.$set(e,"options",a)},expression:"openDayRecord.options"}},[a("el-checkbox",{attrs:{label:"YEAR"}},[t._v("å¹´åº¦")]),a("el-checkbox",{attrs:{label:"MONTH"}},[t._v("æœˆåº¦")]),a("el-checkbox",{attrs:{label:"WEEK"}},[t._v("å‘¨åº¦")]),a("el-checkbox",{attrs:{label:"DAILY",disabled:!0}},[t._v("æ—¥åº¦")])],1)],1),t.showOption(e,"YEAR")?a("el-form-item",{attrs:{label:"å¹´åº¦ï¼š"}},[a("el-radio-group",{on:{change:function(a){return t.changeYearMode(e)}},model:{value:e.yearMode,callback:function(a){t.$set(e,"yearMode",a)},expression:"openDayRecord.yearMode"}},[a("el-radio",{attrs:{label:"ALL"}},[t._v(" æ¯å¹´ ")]),a("el-radio",{attrs:{label:"SPECIFIC",disabled:"fee"==t.mode}},[t._v(" æŒ‡å®š "),a("el-input-number",{attrs:{disabled:"SPECIFIC"!=e.yearMode,size:"mini",min:2020,max:2100},model:{value:e.year,callback:function(a){t.$set(e,"year",a)},expression:"openDayRecord.year"}}),t._v(" å¹´å¼€æ”¾ ")],1)],1)],1):t._e(),t.showOption(e,"MONTH")?a("el-form-item",{staticClass:"margin-t5",attrs:{label:"æœˆåº¦ï¼š"}},[a("el-radio-group",{on:{change:function(a){return t.changeMonthMode(e)}},model:{value:e.monthMode,callback:function(a){t.$set(e,"monthMode",a)},expression:"openDayRecord.monthMode"}},[a("el-radio",{attrs:{label:"ALL"}},[t._v(" æ¯æœˆ ")]),a("el-radio",{attrs:{label:"SPECIFIC"}},[t._v(" æŒ‡å®šæœˆ "),a("el-select",{staticStyle:{width:"150px"},attrs:{disabled:"SPECIFIC"!=e.monthMode,size:"mini",clearable:"",multiple:"","collapse-tags":""},model:{value:e.months,callback:function(a){t.$set(e,"months",a)},expression:"openDayRecord.months"}},t._l(t.monthOptions,(function(t){return a("el-option",{key:t.key,attrs:{label:t.value,value:t.key}})})),1)],1)],1)],1):t._e(),t.showOption(e,"WEEK")?a("el-form-item",{staticClass:"margin-t5",attrs:{label:"å‘¨åº¦ï¼š"}},[a("el-radio-group",{on:{change:function(a){return t.changeWeekMode(e)}},model:{value:e.weekMode,callback:function(a){t.$set(e,"weekMode",a)},expression:"openDayRecord.weekMode"}},[a("el-radio",{attrs:{label:"ALL"}},[t._v(" æ¯å‘¨ ")]),a("el-radio",{attrs:{label:"SPECIFIC"}},[t._v(" æŒ‡å®šå‘¨ "),a("el-select",{staticStyle:{width:"150px"},attrs:{disabled:"SPECIFIC"!=e.weekMode,size:"mini",clearable:"",multiple:"","collapse-tags":""},model:{value:e.weeks,callback:function(a){t.$set(e,"weeks",a)},expression:"openDayRecord.weeks"}},t._l(t.weekOptions,(function(t){return a("el-option",{key:t.key,attrs:{label:t.value,value:t.key}})})),1)],1)],1)],1):t._e(),t.showOption(e,"DAILY")?a("el-form-item",{staticClass:"margin-t5",attrs:{label:"æ—¥åº¦ï¼š"}},[a("el-radio-group",{on:{change:function(a){return t.changeDayMode(e)}},model:{value:e.dayMode,callback:function(a){t.$set(e,"dayMode",a)},expression:"openDayRecord.dayMode"}},[a("el-radio",{attrs:{label:"ALL"}},[t._v(" æ¯å¤© ")]),a("el-radio",{attrs:{label:"SPECIFIC_DAY"}},[t._v(" æŒ‡å®šæ—¥ "),a("el-select",{staticStyle:{width:"150px"},attrs:{disabled:"SPECIFIC_DAY"!=e.dayMode,size:"mini",clearable:"",multiple:"","collapse-tags":""},model:{value:e.days,callback:function(a){t.$set(e,"days",a)},expression:"openDayRecord.days"}},t._l(t.dateOptions,(function(t){return a("el-option",{key:t.key,attrs:{label:t.value,value:t.key}})})),1)],1),a("p",{staticClass:"margin-t5"},[a("el-radio",{attrs:{label:"SPECIFIC_WEEK_DAY"}},[t._v(" æŒ‡å®šæ˜ŸæœŸ "),a("el-select",{staticStyle:{width:"150px"},attrs:{disabled:"SPECIFIC_WEEK_DAY"!=e.dayMode,size:"mini",clearable:"",multiple:"","collapse-tags":""},model:{value:e.weekDays,callback:function(a){t.$set(e,"weekDays",a)},expression:"openDayRecord.weekDays"}},t._l(t.weekDayOptions,(function(t){return a("el-option",{key:t.key,attrs:{label:t.value,value:t.key}})})),1)],1)],1),a("p",{staticClass:"margin-t5"},[a("el-radio",{attrs:{label:"CUSTOM",disabled:t.isOnlyDailyChecked(e)}},[t._v(" è‡ªå®šä¹‰ "),a("el-select",{staticStyle:{width:"80px"},attrs:{disabled:"CUSTOM"!=e.dayMode,size:"mini"},model:{value:e.customDirection,callback:function(a){t.$set(e,"customDirection",a)},expression:"openDayRecord.customDirection"}},[a("el-option",{attrs:{label:"æœ€åŽ",value:"DESCENDING"}}),a("el-option",{attrs:{label:"å¼€å§‹",value:"ASCENDING"}})],1),t._v(" ç¬¬ "),a("span",{staticClass:"el-input--mini"},[a("el-select",{staticStyle:{width:"130px"},attrs:{disabled:"CUSTOM"!=e.dayMode,size:"mini",clearable:"",multiple:"","collapse-tags":""},model:{value:e.customDeltas,callback:function(a){t.$set(e,"customDeltas",a)},expression:"openDayRecord.customDeltas"}},t._l(t.tradeDayOptions,(function(t){return a("el-option",{key:t.key,attrs:{label:t.value,value:t.key}})})),1)],1),a("el-select",{staticStyle:{width:"100px","margin-left":"5px"},attrs:{disabled:"CUSTOM"!=e.dayMode,size:"mini"},model:{value:e.customCalendarType,callback:function(a){t.$set(e,"customCalendarType",a)},expression:"openDayRecord.customCalendarType"}},[a("el-option",{attrs:{label:"è‡ªç„¶æ—¥",value:"NATURAL_DAY"}}),a("el-option",{attrs:{label:"äº¤æ˜“æ—¥",value:"TRADE_DAY"}})],1),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"è‡ªå®šä¹‰äº¤æ˜“æ—¥ï¼ˆè‡ªç„¶æ—¥ï¼‰åªèƒ½æ­é…æ—¥åº¦ä»¥å¤–çš„å…¶ä»–é¢‘çŽ‡ä¸€èµ·ä½¿ç”¨",placement:"top"}},[a("i",{staticClass:"el-icon-info",staticStyle:{"margin-left":"5px"}})])],1)],1)],1)],1):t._e(),a("el-form-item",{staticClass:"margin-t5",attrs:{align:"center","label-width":"0"}},[a("span",{staticStyle:{"padding-right":"210px"}},[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:function(e){return t.deleteOpenDayRecord(i)}}},[t._v("åˆ&nbsp;é™¤é…ç½®")])],1)])],1),a("hr")],1)})),a("el-form-item",{attrs:{align:"center","label-width":"0"}},[a("span",{staticStyle:{"padding-right":"80px"}},[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.addOpenDayRecord}},[t._v(t._s(t.addConfigButtonDesc))])],1)])],2)],1)},s=[],r=(a("14d9"),a("2ef0")),o=a.n(r),n={name:"open-day-config",props:{paramOpenDayList:{type:Array,default:()=&gt;[]},transactionType:{type:String,default:"PURCHASE"},mode:{type:String,default:"openDay"}},data(){return{openDayList:[],backupOpenDayList:[],monthOptions:[],weekOptions:[],weekDayOptions:[],tradeDayOptions:[],dateOptions:[]}},methods:{deleteOpenDayRecord(t){this.openDayList.splice(t,1)},isOnlyDailyChecked(t){return t.options&amp;&amp;1==t.options.length&amp;&amp;t.options.includes("DAILY")},showOption(t,e){return(t.options||[]).includes(e)},changeCategory(t){t.options.includes("YEAR")||(t.yearMode="ALL"),t.options.includes("MONTH")||(t.monthMode="ALL"),t.options.includes("WEEK")||(t.weekMode="ALL"),t.dayMode=this.getDefaultDayMode(),this.changeYearMode(t),this.changeMonthMode(t),this.changeWeekMode(t)},changeYearMode(t){"SPECIFIC"!=t.yearMode&amp;&amp;(t.year=void 0)},changeMonthMode(t){"SPECIFIC"!=t.monthMode&amp;&amp;(t.months=[])},changeWeekMode(t){"SPECIFIC"!=t.weekMode&amp;&amp;(t.weeks=[])},changeDayMode(t){"SPECIFIC_DAY"!=t.dayMode&amp;&amp;(t.days=[]),"SPECIFIC_WEEK_DAY"!=t.dayMode&amp;&amp;(t.weekDays=[]),"CUSTOM"!=t.dayMode&amp;&amp;(t.customDeltas=[])},addOpenDayRecord(){this.openDayList.push({transactionType:this.transactionType,deferMode:"FUTURE",options:["DAILY"],year:null,months:[],weeks:[],days:[],weekDays:[],yearMode:"ALL",monthMode:"ALL",weekMode:"ALL",dayMode:this.getDefaultDayMode(),customDirection:"DESCENDING",customDeltas:[],customCalendarType:"TRADE_DAY",monthDateOptions:[]})},getDefaultDayMode(){return"fee"==this.mode?"SPECIFIC_DAY":"ALL"},validConfig(t){let e=0,a="";if("PURCHASE"==this.transactionType?a="ç”³è´­":"REDEMPTION"==this.transactionType&amp;&amp;(a="èµŽå›ž"),!t&amp;&amp;0==this.openDayList.length)return this.$message.error(a+"ï¼ˆéžä¸´å¼€æƒ…å†µä¸‹ï¼‰å¼€æ”¾æ—¥é…ç½®ä¸èƒ½ä¸ºç©º"),!1;for(let i of this.openDayList){e++;let t=a+"é…ç½®"+e;if("SPECIFIC"==i.yearMode&amp;&amp;!i.year)return this.$message.error(t+"æŒ‡å®šå¹´ä¸èƒ½ä¸ºç©º"),!1;if("SPECIFIC"==i.monthMode&amp;&amp;0==i.months.length)return this.$message.error(t+"æŒ‡å®šæœˆä¸èƒ½ä¸ºç©º"),!1;if("SPECIFIC"==i.weekMode&amp;&amp;0==i.weeks.length)return this.$message.error(t+"æŒ‡å®šå‘¨ä¸èƒ½ä¸ºç©º"),!1;if("SPECIFIC_DAY"==i.dayMode&amp;&amp;0==i.days.length)return this.$message.error(t+"æŒ‡å®šæ—¥ä¸èƒ½ä¸ºç©º"),!1;if("SPECIFIC_WEEK_DAY"==i.dayMode&amp;&amp;0==i.weekDays.length)return this.$message.error(t+"æŒ‡å®šæ˜ŸæœŸä¸èƒ½ä¸ºç©º"),!1;if("CUSTOM"==i.dayMode){if("TRADE_DAY"==i.customCalendarType&amp;&amp;0==i.customDeltas.length)return this.$message.error(t+"è‡ªå®šä¹‰æ•°å­—ä¸èƒ½ä¸ºç©º"),!1;if(!i.options.includes("YEAR")&amp;&amp;!i.options.includes("MONTH")&amp;&amp;!i.options.includes("WEEK"))return this.$message.error(t+"æ—¥åº¦è‡ªå®šä¹‰éœ€è¦å¯é€‰é¡¹ä¸­å¹´åº¦ã€æœˆåº¦ã€å‘¨åº¦è‡³å°‘é€‰æ‹©ä¸€é¡¹"),!1}}return!0},getOpenDayList(){return this.openDayList}},watch:{paramOpenDayList:{deep:!0,immediate:!0,handler:function(t){this.openDayList=o.a.cloneDeep(this.paramOpenDayList)||[],this.backupOpenDayList=o.a.cloneDeep(this.openDayList)}}},computed:{isDirty(){return JSON.stringify(this.openDayList)!=JSON.stringify(this.backupOpenDayList)},addConfigButtonDesc(){let t="";switch(this.transactionType){case"PURCHASE":t="æ·»åŠ&nbsp;ç”³è´­é…ç½®";break;case"REDEMPTION":t="æ·»åŠ&nbsp;èµŽå›žé…ç½®";break;case"PURCHASE_REDEMPTION":t="æ·»åŠ&nbsp;ç”³è´­èµŽå›žé…ç½®";break;case"PERFORMANCE_FEE":t="æ·»åŠ&nbsp;ä¸šç»©æŠ¥é…¬æå–é…ç½®"}return t}},mounted(){this.monthOptions=[];for(let a=1;a&lt;=12;a++)this.monthOptions.push({key:a,value:a+"æœˆ"});let t=["ä¸€","äºŒ","ä¸‰","å››"];t.forEach((t,e)=&gt;{this.weekOptions.push({key:e+1,value:"ç¬¬"+t+"å‘¨"})});let e=["ä¸€","äºŒ","ä¸‰","å››","äº”"];e.forEach((t,e)=&gt;{this.weekDayOptions.push({key:e+1,value:"æ˜ŸæœŸ"+t})});for(let a=1;a&lt;=31;a++)this.dateOptions.push({key:a,value:a+"å·"});for(let a=1;a&lt;=23;a++)this.tradeDayOptions.push({key:a,value:a+"ä¸ª"})}},l=n,c=a("0c7c"),h=Object(c["a"])(l,i,s,!1,null,"b8359f30",null);e["a"]=h.exports},"1d0b":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"tf-autocomplete"},[a("el-input",{staticStyle:{width:"240px"},attrs:{size:"mini",placeholder:"æŸ¥æ‰¾ åŸºé‡‘/æŒ‡æ•°/è™šæ‹Ÿæ¯åŸºé‡‘/MOMâ€¦","prefix-icon":"el-icon-search","suffix-icon":t.isLoading?"el-icon-loading":null},on:{change:t.onChange,input:t.onInput,focus:t.onInputFocus},model:{value:t.innerValue,callback:function(e){t.innerValue=e},expression:"innerValue"}}),a("div",{directives:[{name:"show",rawName:"v-show",value:t.showSuggestions,expression:"showSuggestions"},{name:"infinite-scroll",rawName:"v-infinite-scroll",value:t.loadMore,expression:"loadMore"}],class:["tf-autocomplete__popover","scroll-panel",t.position],attrs:{"infinite-scroll-disabled":"disableScrollLoad"}},[t.isLoading?a("div",{staticClass:"info-row"},[t._v("æœç´¢ä¸­â€¦â€¦")]):t.isEmpty?a("div",{staticClass:"info-row"},[t._v("æ²¡æœ‰æ‰¾åˆ°åˆé€‚çš„å†…å®¹")]):a("div",{staticClass:"suggestions"},[t._l(t.candidates,(function(e,i){return a("div",{key:"item_"+i,staticClass:"suggestion"},[a("div",{staticClass:"data",staticStyle:{width:"240px",overflow:"hidden"}},[a("p",{staticClass:"title",attrs:{title:e.productShortName||e.productName}},[t._v(" "+t._s(e.productShortName||e.productName)+" ")]),a("p",{staticClass:"ellipsis",staticStyle:{color:"#909399",margin:"4px -4px 0px -4px"}},[e.code?a("span",{staticStyle:{margin:"0px 4px"}},[t._v(t._s(e.code))]):t._e(),e.strategyConsultant?a("span",{staticStyle:{margin:"0px 4px"}},[t._v(t._s(e.strategyConsultant))]):t._e(),e.maintainer&amp;&amp;"QUANT_STRATEGY"===e.type?a("span",{staticStyle:{margin:"0px 4px"}},[t._v(t._s(e.maintainer))]):t._e()])]),a("div",{staticClass:"data",staticStyle:{width:"80px","text-align":"center"}},["MUTUAL_FUND"==e.type?a("th-tag",{attrs:{size:"mini",type:"primary"}},[t._v(t._s(t.formatType(e.code)))]):"FUND"==e.type?a("th-tag",{attrs:{size:"mini",type:"primary"}},[t._v("åŸºé‡‘")]):"INDEX"==e.type?a("th-tag",{attrs:{size:"mini",type:"primary"}},[t._v("æŒ‡æ•°")]):"QUANT_STRATEGY"==e.type?a("th-tag",{attrs:{size:"mini",type:"primary"}},[t._v("å†…éƒ¨ç­–ç•¥")]):a("th-tag",{attrs:{size:"mini",type:"primary"}},[t._v("å…¶ä»–")])],1),a("div",{staticClass:"data",staticStyle:{width:"160px","text-align":"center"}},[e.strategyDesc&amp;&amp;e.strategyDesc.strategyDesc?a("p",[a("seeMoreTooltip",{attrs:{showLength:15,content:e.strategyDesc.strategyDesc}})],1):a("p",[t._v("æœªè®¾äº§å“ç­–ç•¥")])]),a("div",{staticClass:"data",staticStyle:{width:"100px","text-align":"center"}},[e.source?a("p",[t._v(" "+t._s(""+t.$store.state.sources[e.source])+" ")]):"QUANT_STRATEGY"===e.type?a("p",[e.published?a("span",[t._v("å·²å‘å¸ƒ")]):a("span",[t._v("æœªå‘å¸ƒ")])]):a("p",[t._v("æ—&nbsp;äº§å“æ¥æº")])]),a("div",{staticClass:"data",staticStyle:{width:"100px","text-align":"right"}},[e.valueAsOf?a("div",[a("p",[t._v("æœ€æ–°å‡€å€¼æ—¥")]),a("p",{staticStyle:{"margin-top":"4px"}},[t._v(t._s(e.valueAsOf))])]):a("span",[t._v("æ—&nbsp;å‡€å€¼")])]),a("div",{staticClass:"data",staticStyle:{width:"100px","text-align":"right"}},[e.perfStartDate?a("div",{staticClass:"th-link-click",attrs:{size:"mini",type:"text"},on:{click:function(a){return t.onSelect(e)}}},[t._v(" æŸ¥çœ‹è¯¦æƒ… ")]):a("p",[t._v("æ—&nbsp;å‡€å€¼")])]),a("div",{staticClass:"data",staticStyle:{width:"100px","vertical-align":"middle","text-align":"right"}},[e.perfStartDate?a("div",[e.isChosen?a("p",[t._v("å·²åŠ&nbsp;å…¥")]):a("div",{staticClass:"th-link-click",attrs:{size:"mini",type:"text"},on:{click:function(a){return t.onAddSelection(e)}}},[t._v(" åŠ&nbsp;å…¥å·²é€‰ ")])]):a("p",[t._v("æ—&nbsp;å‡€å€¼")])])])})),t.isLoadingMore?a("div",{staticClass:"info-row"},[a("i",{staticClass:"el-icon-loading"}),a("span",{staticStyle:{"margin-left":"4px"}},[t._v("åŠ&nbsp;è½½ä¸­â€¦â€¦")])]):t._e(),t.noMore?a("div",{staticClass:"info-row"},[t._v("æ²¡æœ‰æ›´å¤šç¬¦åˆæ¡ä»¶çš„ç»“æžœ")]):t._e()],2)]),a("div",{directives:[{name:"show",rawName:"v-show",value:t.showSuggestions,expression:"showSuggestions"}],staticClass:"tf-autocomplete__overlay",on:{click:t.onOverlayClicked}},[t._v(" Â&nbsp; ")])],1)},s=[],r=(a("14d9"),a("8b55")),o=a("f37e");let n=null;var l={name:"product-keyword-search",components:{seeMoreTooltip:o["a"]},props:{value:String,debounce:{type:Number,default:500},position:{type:String,default:"left"},productType:{type:String,default:"FUND"}},model:{prop:"value",event:"change"},data(){return{candidates:null,showSuggestions:!1,retainFocus:!1,isLoading:!1,isLoadingMore:!1,requestId:null,page:0,noMore:!1}},watch:{value(t){this.innerValue=t},showSuggestions(){if(this.showSuggestions&amp;&amp;this.candidates){const t=this.$store.getters.getChosenItems()||[];this.candidates.forEach(e=&gt;{let a=t.findIndex(t=&gt;t.id==e.id)&gt;=0;e.isChosen=a})}}},computed:{innerValue:{get(){return(this.value||"").trim()},set(t){this.$emit("change",t)}},disableScrollLoad(){return this.isLoadingMore||this.noMore},isEmpty(){return null==this.candidates||0==this.candidates.length}},methods:{onOverlayClicked(){this.showSuggestions=!1},formatType(t){const e=t.split(".");return"OF"==e[1]?"å…¬å‹Ÿåœºå¤–":"å…¬å‹Ÿåœºå†…"},async loadOptions(t){if(t&amp;&amp;t.trim()){this.isLoading=!0;const e=r["b"].uuid();this.requestId=e,this.page=0;const a=await this.$productService.getProductByKeyword(t.trim(),null,null,null,0,10);if(this.requestId!=e)return;if(a.length&gt;0){const t=this.$store.getters.getChosenItems()||[];this.candidates=a.map(e=&gt;{const a=t.find(t=&gt;t.id==e.id);return Object.assign(e,{isChosen:a})}),this.page+=1,this.noMore=a.length&lt;10}else this.candidates=[]}else this.candidates=null;this.isLoading=!1},async loadMore(){this.isLoadingMore=!0;const t=this.innerValue,e=await this.$productService.getProductByKeyword(t,null,null,null,this.page,10);if(0==e.length)this.noMore=!0;else{const t=this.$store.getters.getChosenItems()||[],a=this.candidates||[];a.push(...e.map(e=&gt;{const a=t.find(t=&gt;t.id==e.id);return Object.assign(e,{isChosen:a})})),this.candidates=a,this.page+=1}this.isLoadingMore=!1},resetData(){this.innerValue=null,this.candidates=null},onInput(t){n&amp;&amp;(clearTimeout(n),n=null),n=setTimeout(()=&gt;{this.showSuggestions=!0,this.loadOptions(t)},this.debounce)},onChange(t){this.$emit("onChange",t)},onSelect(t){this.$emit("onSelect",t),this.resetData(),this.showSuggestions=!1},onAddSelection(t){const e=this.$store.getters.getChosenItems()||[];"MUTUAL_FUND"==this.productType&amp;&amp;e.length&gt;=200||"FUND"==this.productType&amp;&amp;e.length&gt;=200?this.$message.warning("åŸºé‡‘æ•°é‡è¶…è¿‡200ä¸ªï¼Œè¯·é‡æ–°é€‰æ‹©"):(t.isChosen=!0,this.$store.commit("addChosenItem",t),this.$emit("onAddSelection",t))},onInputFocus(){null!=this.innerValue&amp;&amp;""!=this.innerValue?this.showSuggestions=!0:this.showSuggestions=!1}}},c=l,h=(a("1eb8"),a("0c7c")),d=Object(h["a"])(c,i,s,!1,null,"31ab9b68",null);e["a"]=d.exports},"1d2b4":function(t,e,a){"use strict";a.d(e,"l",(function(){return l})),a.d(e,"f",(function(){return c})),a.d(e,"e",(function(){return h})),a.d(e,"o",(function(){return d})),a.d(e,"d",(function(){return p})),a.d(e,"t",(function(){return u})),a.d(e,"q",(function(){return m})),a.d(e,"k",(function(){return f})),a.d(e,"u",(function(){return g})),a.d(e,"g",(function(){return b})),a.d(e,"b",(function(){return v})),a.d(e,"n",(function(){return y})),a.d(e,"s",(function(){return x})),a.d(e,"j",(function(){return w})),a.d(e,"m",(function(){return D})),a.d(e,"r",(function(){return S})),a.d(e,"a",(function(){return C})),a.d(e,"c",(function(){return A})),a.d(e,"p",(function(){return k})),a.d(e,"h",(function(){return O})),a.d(e,"i",(function(){return E}));var i=a("ade3"),s=(a("14d9"),a("9a0f")),r=a("ac8f"),o=a("2ef0"),n=a.n(o);class l{constructor(t,e={}){Object(i["a"])(this,"OPTION",{title:{text:"",show:!1},legend:{show:!0,type:"scroll",data:[],icon:"bar",itemWidth:10,itemHeight:3,bottom:40},grid:{containLabel:!0,left:46,right:36,bottom:60,top:36},xAxis:{type:"category",data:[],boundaryGap:!1,axisLabel:{rotate:45,color:"#333"},axisLine:{lineStyle:{color:"rgba(107,107,107,0.80 )"}},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}},dataZoom:{show:!0,start:0,end:100,height:10,left:100,right:100,bottom:15,type:"slider",filterMode:"weakFilter",showDataShadow:!1,borderColor:"#fff",backgroundColor:"#fff",handleColor:"#409eff",handleIcon:"path://M725.725 527.476c0 122.054-98.994 221.050-221.050 221.050-122.054 0-220.941-98.994-220.941-221.050 0-122.054 98.887-221.050 220.941-221.050 122.054 0 221.050 98.994 221.050 221.050zM504.721 121.757c-223.731 0-405.74 182.009-405.74 405.74s182.009 405.74 405.74 405.74c223.731 0 405.74-182.009 405.74-405.74 0-223.731-182.009-405.74-405.74-405.74M504.721 993.296c-98.243 0-189.516-30.567-264.807-82.8-85.909-59.525-150.903-147.259-181.579-249.793-12.656-42.257-19.412-86.981-19.412-133.206 0-78.403 19.412-152.3 53.733-217.187 34.428-64.887 83.658-120.767 143.184-163.025 75.935-53.948 168.816-85.589 268.884-85.589 83.013 0 161.095 21.772 228.665 60.062 85.482 48.37 154.337 123.019 195.309 212.897 26.919 58.775 41.828 124.094 41.828 192.839 0 91.595-26.599 177.183-72.503 249.363-42.686 67.141-102.107 122.591-172.247 160.558-65.853 35.609-141.145 55.879-221.050 55.879z",handleSize:15,fillerColor:"#d4e7ff"},yAxis:[{name:"å‡€ å€¼",nameRotate:90,nameLocation:"middle",nameGap:42,type:"value",scale:!0,percent:!1,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{formatter:"{value}"},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}},{name:"æ”¶ ç›Š çŽ‡",nameRotate:90,nameLocation:"middle",nameGap:48,type:"value",scale:!0,percent:!0,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{formatter:"{value} %"},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}}],tooltip:{trigger:"axis"},series:[]}),Object(i["a"])(this,"SERIES",{name:null,data:[],type:"line",showSymbol:!1,symbol:"circle",stack:!1,areaStyle:null,step:null,yAxisIndex:0,emphasis:{focus:"series"},lineStyle:{width:1}}),this.title=t,this.style=e,this.seriesData=[],this.xAxis=[],this.legend=[],this.series=[]}appendSeries(t,e,a={}){if(e&amp;&amp;e.length&gt;0){this.seriesData.push(e);let i=[],s=[];e.forEach(t=&gt;{i.push(t.date),s.push([t.date,t.value])});const r=Object.assign({},this.SERIES,a);r.name=t,r.data=s,this.legend.push(t),this.mergeXAxisData(i),this.series.push(r)}return this}mergeXAxisData(t){const e=this.xAxis.slice();let a=!1;for(const i of t)e.includes(i)||(e.push(i),a=!0);e.length&gt;1&amp;&amp;a&amp;&amp;e.sort((t,e)=&gt;t.localeCompare(e)),this.xAxis=e}get option(){const t=n.a.cloneDeep(this.OPTION);return t.xAxis.data=this.xAxis.distinct(),t.legend.data=this.legend,t.series=this.series,t.tooltip.formatter=t=&gt;{t.sort((t,e)=&gt;e.value[1]-t.value[1]);let e='&lt;div style="font-size: 12px"&gt;'+t[0].name+"&lt;/div&gt;",a="",i="";for(let s=0;s&lt;t.length;s++){let e=t[s].value[1];i+=t[s].marker,i+=t[s].seriesName+'ï¼š&lt;span style="float: right"&gt;'+e+"&lt;/span&gt; &lt;br&gt;",s%20==19&amp;&amp;(a+='&lt;div style="display: inline-block; margin: 12px; vertical-align: top; font-size: 12px !important;"&gt;'+i+"&lt;/div&gt;",i="")}return""!=i&amp;&amp;(a+='&lt;div style="display: inline-block; margin: 12px; vertical-align: top; font-size: 12px !important;"&gt;'+i+"&lt;/div&gt;"),e+'&lt;div style="margin: 0px -4px; overflow: auto"&gt;'+a+"&lt;/div&gt;"},t}}class c{constructor(t,e={}){Object(i["a"])(this,"OPTION",{title:{text:"",show:!1},legend:{show:!0,type:"scroll",data:[],icon:"bar",itemWidth:10,bottom:40,itemHeight:3},grid:{containLabel:!0,left:36,right:36,bottom:60,top:36},xAxis:{type:"category",data:[],boundaryGap:!1,axisLabel:{rotate:45,color:"#333"},axisLine:{lineStyle:{color:"rgba(107,107,107,0.80 )"}},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}},yAxis:{type:"value",scale:!0,percent:!0,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{formatter:function(t,e){return s["a"].formatNumber(t,2)+"%"}},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}},dataZoom:{show:!0,start:0,end:100,height:10,left:100,right:100,bottom:15,type:"slider",filterMode:"weakFilter",showDataShadow:!1,borderColor:"#fff",backgroundColor:"#fff",handleColor:"#409eff",handleIcon:"path://M725.725 527.476c0 122.054-98.994 221.050-221.050 221.050-122.054 0-220.941-98.994-220.941-221.050 0-122.054 98.887-221.050 220.941-221.050 122.054 0 221.050 98.994 221.050 221.050zM504.721 121.757c-223.731 0-405.74 182.009-405.74 405.74s182.009 405.74 405.74 405.74c223.731 0 405.74-182.009 405.74-405.74 0-223.731-182.009-405.74-405.74-405.74M504.721 993.296c-98.243 0-189.516-30.567-264.807-82.8-85.909-59.525-150.903-147.259-181.579-249.793-12.656-42.257-19.412-86.981-19.412-133.206 0-78.403 19.412-152.3 53.733-217.187 34.428-64.887 83.658-120.767 143.184-163.025 75.935-53.948 168.816-85.589 268.884-85.589 83.013 0 161.095 21.772 228.665 60.062 85.482 48.37 154.337 123.019 195.309 212.897 26.919 58.775 41.828 124.094 41.828 192.839 0 91.595-26.599 177.183-72.503 249.363-42.686 67.141-102.107 122.591-172.247 160.558-65.853 35.609-141.145 55.879-221.050 55.879z",handleSize:15,fillerColor:"#d4e7ff"},tooltip:{trigger:"axis"},series:[]}),Object(i["a"])(this,"SERIES",{name:null,data:[],type:"line",showSymbol:!1,stack:!1,areaStyle:null,step:null,yAxisIndex:0}),this.title=t,this.style=e,this.seriesData=[],this.xAxis=[],this.legend=[],this.series=[]}appendSeries(t,e,a={}){if(e&amp;&amp;e.length&gt;0){this.seriesData.push(e);let i=[],r=[];e.forEach(t=&gt;{i.push(t.date),r.push([t.date,s["a"].roundPercent(t.value,2)])});const o=Object.assign({},this.SERIES,a);o.name=t,o.data=r,this.legend.push(t),this.mergeXAxisData(i),this.series.push(o)}return this}mergeXAxisData(t){let e=[...this.xAxis||[],...t||[]];e=e.distinct(t=&gt;t),e&amp;&amp;e.length&gt;1&amp;&amp;e.sort((t,e)=&gt;t.localeCompare(e)),this.xAxis=e}get option(){const t=n.a.cloneDeep(this.OPTION);return t.xAxis.data=this.xAxis,t.legend.data=this.legend,t.series=this.series,t}}class h{constructor(t,e={}){Object(i["a"])(this,"OPTION",{title:{},legend:{data:[],type:"scroll",bottom:10,icon:"bar",itemWidth:10,itemHeight:3},tooltip:{trigger:"axis"},grid:{containLabel:!0,left:36,right:36,bottom:24,top:36},xAxis:{type:"category",data:[],axisLabel:{rotate:45,color:"#333"},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}},yAxis:{type:"value",scale:!1,axisTick:{show:!1},axisLine:{show:!0,lineStyle:{color:"rgba(107,107,107,0.2 )"}},axisLabel:{color:"#333"},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}},series:[{data:[],name:"",type:"bar",showSymbol:!1,symbol:"circle",barGap:"30%",barCategoryGap:"20%",barWidth:null}]}),Object(i["a"])(this,"BAR_SERIES",{data:[],name:"",itemStyle:{normal:{label:{show:!1,position:"top",textStyle:{color:"black",fontSize:14}}}},type:"bar",showSymbol:!1,symbol:"circle",barGap:"30%",barCategoryGap:"20%",barWidth:null}),this.title=t,this.style=e,this.seriesData=[],this.xAxis=[],this.legend=[],this.series=[]}appendSeries(t,e,a={}){if(this.legend.push(t),e&amp;&amp;e.length&gt;0){this.seriesData.push(e);let i=[],s=[];e.forEach(t=&gt;{i.push(t.key),s.push([t.key,t.value])});const r=Object.assign({},this.BAR_SERIES,a);r.data=s,r.name=t,this.xAxis.push(...i),this.series.push(r)}return this}get option(){const t=n.a.cloneDeep(this.OPTION);return this.xAxis&amp;&amp;this.xAxis.length&gt;1&amp;&amp;this.xAxis[0].includes(" - ")&amp;&amp;this.xAxis.sort((t,e)=&gt;{let a=parseFloat(t.split(" - ")[0]),i=parseFloat(t.split(" - ")[1].replace("%","")),s=parseFloat(e.split(" - ")[0]),r=parseFloat(e.split(" - ")[1].replace("%","")),o=a-s;return Math.abs(o)&lt;=1e-6&amp;&amp;(o=i-r),o}),t.xAxis.data=this.xAxis.distinct(),t.legend.data=this.legend,t.series=this.series,t}}class d{constructor(t,e={}){this._seriesData=t,this._style=e,this.parseSeriesData(t)}parseSeriesData(t=[]){if(t&amp;&amp;t.length){let e,a=[],i=[],r=[];t.forEach(({legendName:t,data:e,style:s})=&gt;{i.push(t),a.push(...e.map(t=&gt;t.date))}),a=a.distinct().sort((t,e)=&gt;t.localeCompare(e));for(let o=0;o&lt;t.length;o++){const i=t[o],n=i.data.map(({date:t,value:i})=&gt;{const r=100*i;e=!e||Math.abs(e)&lt;Math.abs(r)?Math.abs(r):e;const n=a.indexOf(t);return[n,o,s["a"].roundNumber(r,4)]});r.push(...n)}this._xAxisData=a,this._yAxisData=i,this._matrix=r,this._min=-1*e,this._max=e,this.ready=!0}else this.ready=!1}formatter(t,e){const{name:a,marker:i,seriesName:s}=t;let[r,o,n]=t.value;const l=e[o];return`${s} [${l}]&lt;br/&gt;${i} ${a}: ${n}`}get option(){return this.ready?{tooltip:{trigger:"item",position:"top",formatter:t=&gt;this.formatter(t,this._yAxisData)},animation:!1,grid:{left:24,top:24,bottom:64,right:32,containLabel:!0},xAxis:{type:"category",data:this._xAxisData,splitArea:{show:!0},axisLabel:{fontSize:10}},yAxis:{type:"category",data:this._yAxisData,splitArea:{show:!0},axisLabel:{fontSize:10}},visualMap:{precision:4,min:this._min,max:this._max,calculable:!0,orient:"horizontal",left:"center",bottom:12,inRange:{color:["#799f82","#ffffff","#d25757"]},itemHeight:320,itemWidth:10},series:[{name:"æ»šåŠ¨å›&nbsp;å­æš´éœ²",type:"heatmap",data:this._matrix,emphasis:{itemStyle:{shadowBlur:10,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]}:null}}class p{tooltipFormatter(t,e,a,i){let[s,r,o,n]=t.value;const l=e[s],c=a[r],h=t.seriesName,d=i.percentage?"%":"";return 999999==o?h+"&lt;br/&gt;"+t.marker+c+" vs "+l+": æ—&nbsp;":h+"&lt;br/&gt;"+t.marker+c+" vs "+l+": "+o+d}constructor(t,e,a,s,o={}){Object(i["a"])(this,"OPTION",{title:{text:"çƒ­åŠ›å›¾",show:!1},tooltip:{show:!0,position:"top",confine:!0},animation:!1,grid:{top:24,bottom:24,left:24,right:80,color:"#999999",containLabel:!0},xAxis:{type:"category",data:[],splitArea:{show:!0},axisLabel:{rotate:45,fontSize:10,formatter:function(t){return r["a"].transitName(t,10)}}},yAxis:{type:"category",data:[],splitArea:{show:!0},axisTick:{show:!1},axisLabel:{interval:0,fontSize:10,formatter:function(t){return r["a"].transitName(t,10)}}},visualMap:{min:-1,max:1,precision:2,calculable:!0,orient:"vertical",right:12,top:12,splitNumber:21,inRange:{color:["#799f82","#ffffff","#d25757"]},itemWidth:"5"},series:[{name:"ç›¸å…³æ€§",type:"heatmap",data:[],label:{normal:{show:!0,textStyle:{color:"#333333",fontSize:12}}},itemStyle:{normal:{borderColor:"#ededed",borderWidth:.5},emphasis:{shadowBlur:10,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]}),this.title=t,this.matrix=e,this.xAxis=a,this.yAxis=s,this.style=o}get option(){const t=n.a.cloneDeep(this.OPTION);t.tooltip.formatter=t=&gt;this.tooltipFormatter(t,this.xAxis,this.yAxis,this.style);let e=[],a=null;for(let r=0;r&lt;this.xAxis.length;r++)for(let t=0;t&lt;this.yAxis.length;t++)this.matrix[r]&amp;&amp;(0==this.matrix[r][t]||this.matrix[r][t])?(a=!a||Math.abs(a)&lt;Math.abs(this.matrix[r][t])?Math.abs(this.matrix[r][t]):a,e.push([r,t,s["a"].roundNumber(this.matrix[r][t],3),s["a"].roundNumber(this.matrix[r][t],3)])):e.push([r,t,999999,0]);t.series[0].data=e,t.xAxis.data=this.xAxis,t.yAxis.data=this.yAxis,t.visualMap.min=-1*a,t.visualMap.max=a;const{height:i}=this.style;return t.visualMap.top=(i-140)/2,this.style.seriesName&amp;&amp;(t.series[0].name=this.style.seriesName),this.style.percentage?t.series[0].label={normal:{show:!0,textStyle:{color:"#000000"},formatter:function(t){return 999999==t.data[2]?"-":t.data[2]+"%"}}}:t.series[0].label={normal:{show:!0,textStyle:{color:"#000000"},formatter:function(t){return 999999==t.data[2]?"-":t.data[2]}}},t.xAxis.data.length&gt;20&amp;&amp;t.series.forEach(t=&gt;t.label.normal.show=!1),t}}class u{constructor(t,e=[],a={}){Object(i["a"])(this,"OPTION",{tooltip:{},legend:{left:0,top:24,data:[],itemWidth:8,itemHeight:8,textStyle:{fontSize:12,color:"#999"},icon:"circle",bottom:0},radar:{name:{show:!0},nameGap:10,shape:"circle",radius:70,center:["50%","60%"],indicator:[{name:"å¸‚åœºbetaæš´éœ²",min:0,max:100},{name:"å¤§å°ç›˜æš´éœ²",min:0,max:100},{name:"ä¼°å€¼æš´éœ²",min:0,max:100},{name:"å¸‚åœºbetaæ‹©æ—¶èƒ½åŠ›",min:0,max:100},{name:"å¤§å°ç›˜æ‹©æ—¶èƒ½åŠ›",min:0,max:100},{name:"ä¼°å€¼æ‹©æ—¶èƒ½åŠ›",min:0,max:100}]},series:[{name:"å¤§ç±»èµ„äº§é…ç½®",type:"radar",symbol:"none",data:[{name:"æ‚¬é“ƒCå·2æœŸ",value:[25,25,25,25]}]}],grid:{top:65,bottom:60}}),Object(i["a"])(this,"SERIES",{name:"",type:"radar",symbol:"none",data:[]}),this.title=t,this.indicators=e,this.style=a,this.series=n.a.cloneDeep(this.SERIES),this.max=null,this.min=null,this.legend=[]}appendData(t,e,a={}){if(e){const a=this.indicators.map(t=&gt;s["a"].roundNumber(e[t.key],2)),i={value:a,name:t};this.legend.push(t),this.series.data.push(i),this.max=Math.max(this.max,...a),this.min=Math.min(this.min,...a)}return this}get option(){const t=n.a.cloneDeep(this.OPTION);return t.legend.data=this.legend,t.radar.indicator=this.indicators.map(t=&gt;({name:t.name,max:this.max,min:this.min})),t.series=[this.series],t.legend.data&amp;&amp;t.legend.data.length&gt;=8&amp;&amp;(console.log("ddddd"),t.legend.type="scroll"),t}}class m{constructor(t,e={}){Object(i["a"])(this,"OPTION",{title:{text:"",show:!1},tooltip:{trigger:"axis",axisPointer:{animation:!1},formatter:function(t){let e=t[0].name+"&lt;br&gt;";for(let a=0;a&lt;t.length;a++)e+=t[a].marker,e+=t[a].seriesName+": "+s["a"].formatNumberDash(t[a].value[1],4)+"&lt;br&gt;";return e}},grid:{containLabel:!0,left:36,right:36,bottom:24,top:36},legend:{data:[],icon:"bar",type:"scroll",itemWidth:10,itemHeight:3,selected:{}},xAxis:{type:"category",boundaryGap:!0,axisLabel:{show:!0},axisLine:{lineStyle:{color:"rgba(107,107,107,0.64 )"}},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}},scale:!0,data:[],name:""},yAxis:{type:"value",scale:!0,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{formatter:"{value}",color:"#333"},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.3)"}},name:""},series:[]}),Object(i["a"])(this,"SERIES",{name:"",type:"line",symbol:"circle",symbolSize:1,showAllSymbol:!1,data:[]}),this.title=t,this.style=e,this.seriesData=[],this.xAxis=[],this.legend=[],this.series=[]}appendData(t,e,a={}){if(e&amp;&amp;e.length&gt;0){this.seriesData.push(e);const i=[],s=e.map(t=&gt;{const{date:e,value:a}=t;return i.push(e),[e,a]});this.legend.push(t);let r=Object.assign({},this.SERIES,a);r.name=t,r.data=s,this.mergeXAxisData(i),this.series.push(r)}return this}mergeXAxisData(t){let e=[...this.xAxis||[],...t||[]];e=e.distinct(t=&gt;t),e&amp;&amp;e.length&gt;1&amp;&amp;e.sort((t,e)=&gt;t.localeCompare(e)),this.xAxis=e}get option(){const t=n.a.cloneDeep(this.OPTION);return t.legend.data=this.legend,t.xAxis.data=this.xAxis,t.series=this.series,t}}class f{constructor(t,e={}){Object(i["a"])(this,"OPTION",{tooltip:{trigger:"item",formatter:"{a} &lt;br/&gt;{b}: {d}%"},legend:{show:!1,orient:"vertical",left:10,data:[]},series:[]}),Object(i["a"])(this,"SERIES",{name:"è®¿é—®æ¥æº",type:"pie",selectedMode:"single",radius:[0,"80%"],label:{position:"outer"},data:[{value:335,name:"ç›´è¾¾",selected:!0},{value:679,name:"è¥é”€å¹¿å‘Š"},{value:1548,name:"æœç´¢å¼•æ“Ž"}]}),this.title=t,this.style=e,this.seriesData=[],this.legend=[],this.series=[]}appendSeries(t,e,a={}){if(e&amp;&amp;e.length&gt;0){this.seriesData.push(e);let i=[],s=[];e.forEach(t=&gt;{i.push(t.key),s.push(t)});const r=Object.assign({},this.SERIES,a);r.name=t,r.data=s,this.legend=i,this.series.push(r)}return this}get option(){const t=n.a.cloneDeep(this.OPTION);return t.series=this.series,t}}class g{constructor(t,e={}){Object(i["a"])(this,"OPTION",{title:{text:"",show:!1},legend:{show:!0,type:"scroll",data:[],icon:"bar",itemWidth:10,itemHeight:3},grid:{containLabel:!0,left:36,right:36,bottom:24,top:36},xAxis:{type:"category",data:[],triggerEvent:!0,axisLabel:{rotate:45,color:"#409eff"},axisLine:{lineStyle:{color:"rgba(107,107,107,0.20 )"}},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}},yAxis:{type:"value",scale:!0,percent:!1,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{formatter:"{value} %"},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}},tooltip:{trigger:"axis"},series:[]}),Object(i["a"])(this,"SERIES",{name:null,data:[],type:"bar",showSymbol:!1,barMaxWidth:200,symbol:"circle",stack:!1,areaStyle:null,step:null,yAxisIndex:0,itemStyle:{normal:{label:{show:!1,position:"top",textStyle:{color:"black",fontSize:14}}}}}),this.title=t,this.style=e,this.seriesData=[],this.xAxis=[],this.legend=[],this.series=[]}appendSeries(t,e,a={}){if(e&amp;&amp;e.length&gt;0){this.seriesData.push(e);let i=[],s=[];e.forEach(t=&gt;{i.push(t.date),s.push([t.date,t.value])});const r=Object.assign({},this.SERIES,a);r.name=t,r.data=s,this.legend.push(t),this.mergeXAxisData(i),this.series.push(r)}return this}mergeXAxisData(t){let e=[...this.xAxis||[],...t||[]];e=e.distinct(t=&gt;t),e&amp;&amp;e.length&gt;1&amp;&amp;(e.sort((t,e)=&gt;t.localeCompare(e)),this.SERIES.itemStyle.normal.label.textStyle.fontSize=12),e&amp;&amp;e.length&gt;30&amp;&amp;(this.SERIES.itemStyle.normal.label.textStyle.fontSize=10),e&amp;&amp;e.length&gt;=40&amp;&amp;(this.SERIES.itemStyle.normal.label.show=!1),this.xAxis=e}get option(){const t=n.a.cloneDeep(this.OPTION);return t.xAxis.data=this.xAxis,t.legend.data=this.legend,t.series=this.series,t.tooltip.formatter=function(t){let e="";const a=(t||[]).filter(t=&gt;t.value&amp;&amp;0!=t.value[1]).map(t=&gt;(e=t.name,`&lt;tr&gt;&lt;td&gt;${t.marker}&lt;/td&gt;&lt;td&gt;${t.seriesName}&lt;/td&gt;&lt;td style="text-align: right; padding-left: 8px"&gt;${t.value[1]} %&lt;/td&gt;&lt;/tr&gt;`)).join("");let i=`&lt;p&gt;${e}&lt;/p&gt;&lt;table&gt;${a}&lt;/table&gt;`;return i+="(ç‚¹å‡»å›¾ç¤ºæˆ–æ—¥æœŸå±•ç¤ºå½“æœŸè¯¦æƒ…)",i},t}}class b{constructor(t,e={}){Object(i["a"])(this,"OPTION",{title:{text:"",show:!1},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{data:[]},grid:{left:"3%",bottom:"3%",top:"3%",containLabel:!0},xAxis:{type:"value",axisLabel:{formatter:"{value} %"},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}},yAxis:{type:"category",data:[],inverse:!0,axisLabel:{interval:0},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}},series:[{name:"å&nbsp;è‚¡ç¥¨å¸‚å€¼æ¯”ï¼ˆ%ï¼‰",type:"bar",showAllSymbol:!0,data:[],label:{normal:{show:!0,position:"right"}},barMaxWidth:"18px",itemStyle:{}}],dataZoom:[{type:"slider",show:!0,startValue:0,endValue:10,orient:"vertical",showDetail:!1,showDataShadow:!1,zoomLock:!0,backgroundColor:"#f5f5f5",borderWidth:0,fillerColor:"#94c9ff",right:"8",top:"25",bottom:"30",handleSize:"0",x2:20,width:10}]}),this.title=t,this.style=e,this.seriesData=[],this.yAxisData=[]}appendSeries(t,e={}){return t&amp;&amp;t.length&gt;0&amp;&amp;(this.seriesData=t,this.yAxisData=t.map(t=&gt;t[1])),this}get option(){const t=n.a.cloneDeep(this.OPTION);return t.yAxis.data=this.yAxisData,t.series[0].data=this.seriesData,this.seriesData.length&lt;=15&amp;&amp;(t.dataZoom[0].show=!1),t.tooltip.formatter=function(t){let e="";const a=(t||[]).filter(t=&gt;t.value&amp;&amp;0!=t.value[1]).map(t=&gt;(e=t.name,`&lt;tr&gt;&lt;td&gt;${t.marker}&lt;/td&gt;&lt;td&gt;${t.seriesName}&lt;/td&gt;&lt;td style="text-align: right; padding-left: 8px"&gt;${t.value[0]} %&lt;/td&gt;&lt;/tr&gt;`)).join("");let i=`&lt;p&gt;${e}&lt;/p&gt;&lt;table&gt;${a}&lt;/table&gt;`;return i},t}}class v{constructor(t,e={}){Object(i["a"])(this,"OPTION",{title:{text:"",show:!1},legend:{show:!0,type:"scroll",data:[],icon:"bar",itemWidth:10,itemHeight:3},grid:{containLabel:!0,left:36,right:36,bottom:24,top:36},xAxis:{boundaryGap:!1,axisLabel:{color:"#333",formatter:"{value} %"},axisLine:{lineStyle:{color:"rgba(107,107,107,0.70 )"}},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}},yAxis:{type:"category",scale:!0,percent:!1,axisTick:{show:!1},axisLine:{show:!1},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.3)"}}},tooltip:{trigger:"axis",formatter:function(t){let e=t[0].name+"&lt;br&gt;";for(let a=0;a&lt;t.length;a++)e+=t[a].marker,e+=t[a].seriesName+": "+s["a"].formatNumberDash(t[a].value[0],2)+"%&lt;br&gt;";return e}},series:[]}),Object(i["a"])(this,"SERIES",{name:null,data:[],type:"bar",showSymbol:!1,symbol:"circle",stack:!1,areaStyle:null,step:null,yAxisIndex:0,barGap:"30%",barCategoryGap:"20%",barWidth:null}),this.title=t,this.style=e,this.seriesData=[],this.xAxis=[],this.legend=[],this.series=[],this.categoryArr=[]}appendSeries(t,e,a={}){if(e&amp;&amp;e.length&gt;0){this.seriesData.push(e);let i=[],s=[];e.forEach(t=&gt;{i.push(t.date),s.push([t.date,t.value]),this.categoryArr.includes(t.value)||this.categoryArr.push(t.value)});const r=Object.assign({},this.SERIES,a);r.name=t,r.data=s,this.legend.push(t),this.mergeXAxisData(i),this.series.push(r)}return this}mergeXAxisData(t){let e=[...this.xAxis||[],...t||[]];e=e.distinct(t=&gt;t),e&amp;&amp;e.length&gt;1&amp;&amp;e.sort(),this.xAxis=e}get option(){const t=n.a.cloneDeep(this.OPTION);return t.yAxis.data=["å…¶å®ƒ","çŽ°é‡‘","å€ºåˆ¸","è‚¡ç¥¨"],t.legend.data=this.legend,t.series=this.series,t}}class y{constructor(t,e={}){Object(i["a"])(this,"OPTION",{title:{text:"",show:!1},tooltip:{trigger:"item"},xAxis:{axisLine:{lineStyle:{color:"#ccc"}},show:!0,splitLine:{lineStyle:{}},scale:!0,name:"æƒé‡å¢žå‡(%)",nameLocation:"center",nameTextStyle:{padding:[10,0,0,0],color:"#333"},axisLabel:{formatter:"{value} %",color:"#333"}},yAxis:{axisLine:{lineStyle:{color:"#ccc"}},show:!0,splitLine:{lineStyle:{}},nameTextStyle:{padding:[0,0,30,0],color:"#333"},name:"æŒè‚¡æ”¶ç›Š(%)",nameLocation:"center",axisLabel:{formatter:"{value} %",color:"#333"},scale:!0},grid:{containLabel:!0,left:25},series:[{name:"æŒä»“å˜åŠ¨ä¸ŽæŒè‚¡æ”¶ç›Š",data:[],type:"scatter"}]}),this.title=t,this.style=e,this.seriesData=[]}appendSeries(t,e={}){return t&amp;&amp;t.length&gt;0&amp;&amp;(this.seriesData=t),this}get option(){const t=n.a.cloneDeep(this.OPTION);return t.series[0].data=this.seriesData,t.tooltip.formatter=function(t){let e=t.data[3];const a=`&lt;tr&gt;&lt;td&gt;æŒè‚¡æ”¶ç›Š&lt;/td&gt;&lt;td style="text-align: right"&gt;${t.data[1]} %&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;æƒé‡å¢žå‡&lt;/td&gt;&lt;td style="text-align: right"&gt;${t.data[0]} %&lt;/td&gt;&lt;/tr&gt;&lt;tr&gt;&lt;td&gt;å&nbsp;è‚¡ç¥¨å¸‚å€¼æ¯”(%)&lt;/td&gt;&lt;td style="text-align: right"&gt;${t.data[2]} %&lt;/td&gt;&lt;/tr&gt;`;let i=`&lt;p&gt;${e}&lt;/p&gt;&lt;table style="width: 200px;"&gt;${a}&lt;/table&gt;`;return i},t.series[0].symbolSize=function(t){return 10*Math.sqrt(t[2])},t}}class x{constructor(t,e={}){Object(i["a"])(this,"OPTION",{title:{text:"",show:!1},legend:{show:!0,type:"scroll",data:[],icon:"bar",itemWidth:10,itemHeight:3},grid:{containLabel:!0,left:36,right:36,bottom:24,top:36},xAxis:{type:"category",data:[],boundaryGap:!1,triggerEvent:!0,axisLabel:{rotate:45,color:"#409eff"},axisLine:{lineStyle:{color:"rgba(107,107,107,0.80 )"}},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}},yAxis:{type:"value",scale:!0,percent:!1,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{formatter:"{value} %"},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.3)"}}},tooltip:{trigger:"axis"},series:[]}),Object(i["a"])(this,"SERIES",{name:null,data:[],type:"line",showSymbol:!1,symbol:"circle",barMaxWidth:200,emphasis:{},stack:!1,areaStyle:null,step:null,yAxisIndex:0}),this.title=t,this.style=e,this.seriesData=[],this.xAxis=[],this.legend=[],this.series=[]}appendSeries(t,e,a={}){if(e&amp;&amp;e.length&gt;0){this.seriesData.push(e);let i=[],s=[];e.forEach(t=&gt;{i.push(t.date),s.push([t.date,t.value])});const r=Object.assign({},this.SERIES,a);r.name=t,r.data=s,this.legend.push(t),this.mergeXAxisData(i),this.series.push(r)}return this}mergeXAxisData(t){let e=[...this.xAxis||[],...t||[]];e=e.distinct(t=&gt;t),e&amp;&amp;e.length&gt;1?e.sort((t,e)=&gt;t.localeCompare(e)):(e.length=1)&amp;&amp;(this.SERIES.type="bar"),this.xAxis=e}get option(){const t=n.a.cloneDeep(this.OPTION);return t.xAxis.data=this.xAxis,t.legend.data=this.legend,t.series=this.series,t.tooltip.formatter=function(t){let e="";const a=(t||[]).filter(t=&gt;t.value&amp;&amp;0!=t.value[1]).map(t=&gt;(e=t.name,`&lt;tr&gt;&lt;td&gt;${t.marker}&lt;/td&gt;&lt;td&gt;${t.seriesName}&lt;/td&gt;&lt;td style="text-align: right; padding-left: 8px"&gt;${t.value[1]} %&lt;/td&gt;&lt;/tr&gt;`)).join("");let i=`&lt;p&gt;${e}&lt;/p&gt;&lt;table&gt;${a}&lt;/table&gt;`;return i+="(ç‚¹å‡»å›¾ç¤ºæˆ–æ—¥æœŸå±•ç¤ºå½“æœŸè¯¦æƒ…)",i},t}}class w{constructor(t,e={}){Object(i["a"])(this,"OPTION",{title:{text:"",show:!1},legend:{show:!0,type:"scroll",data:[],icon:"bar",itemWidth:10,itemHeight:3},grid:{containLabel:!0,left:36,right:36,bottom:24,top:36},xAxis:{type:"category",data:[],axisLabel:{rotate:45,color:"#333"},axisLine:{lineStyle:{color:"rgba(107,107,107,0.2 )"}},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}},yAxis:{type:"value",scale:!0,percent:!1,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{formatter:"{value} %"},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}},tooltip:{trigger:"axis"},series:[]}),Object(i["a"])(this,"SERIES",{name:null,data:[],type:"bar",showSymbol:!1,symbol:"circle",stack:!1,barMaxWidth:200,areaStyle:null,step:null,yAxisIndex:0,itemStyle:{normal:{label:{show:!1,position:"top",textStyle:{color:"black",fontSize:14}}}}}),this.title=t,this.style=e,this.seriesData=[],this.xAxis=[],this.legend=[],this.series=[]}appendSeries(t,e,a={}){if(e&amp;&amp;e.length&gt;0){this.seriesData.push(e);let i=[],s=[];e.forEach(t=&gt;{i.push(t.date),s.push([t.date,t.value])});const r=Object.assign({},this.SERIES,a);r.name=t,r.data=s,this.legend.push(t),this.mergeXAxisData(i),this.series.push(r)}return this}mergeXAxisData(t){let e=[...this.xAxis||[],...t||[]];e=e.distinct(t=&gt;t),e&amp;&amp;e.length&gt;1&amp;&amp;(e.sort((t,e)=&gt;t.localeCompare(e)),this.SERIES.itemStyle.normal.label.textStyle.fontSize=12),e&amp;&amp;e.length&gt;30&amp;&amp;(this.SERIES.itemStyle.normal.label.textStyle.fontSize=10),e&amp;&amp;e.length&gt;=40&amp;&amp;(this.SERIES.itemStyle.normal.label.show=!1),this.xAxis=e}get option(){const t=n.a.cloneDeep(this.OPTION);return t.xAxis.data=this.xAxis,t.legend.data=this.legend,t.series=this.series,t.tooltip.formatter=function(t){let e="";const a=(t||[]).filter(t=&gt;t.value&amp;&amp;0!=t.value[1]).map(t=&gt;(e=t.name,`&lt;tr&gt;&lt;td&gt;${t.marker}&lt;/td&gt;&lt;td&gt;${t.seriesName}&lt;/td&gt;&lt;td style="text-align: right; padding-left: 8px"&gt;${t.value[1]} %&lt;/td&gt;&lt;/tr&gt;`)).join("");let i=`&lt;p&gt;${e}&lt;/p&gt;&lt;table&gt;${a}&lt;/table&gt;`;return i},t}}class D{constructor(t,e={}){Object(i["a"])(this,"OPTION",{title:{text:"",show:!1},legend:{show:!0,type:"scroll",data:[],icon:"bar",itemWidth:10,itemHeight:3},grid:{containLabel:!0,left:36,right:36,bottom:24,top:36},xAxis:{type:"category",data:[],boundaryGap:!1,axisLabel:{rotate:45,color:"#333"},axisLine:{lineStyle:{color:"rgba(107,107,107,0.80 )"}},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}},yAxis:{type:"value",scale:!0,percent:!1,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{formatter:"{value} %"},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.3)"}}},tooltip:{trigger:"axis"},series:[]}),Object(i["a"])(this,"SERIES",{name:null,data:[],type:"line",showSymbol:!1,symbol:"circle",stack:!1,areaStyle:null,step:null,yAxisIndex:0}),this.title=t,this.style=e,this.seriesData=[],this.xAxis=[],this.legend=[],this.series=[]}appendSeries(t,e,a={}){if(e&amp;&amp;e.length&gt;0){this.seriesData.push(e);let i=[],s=[];e.forEach(t=&gt;{i.push(t.date),s.push([t.date,t.value])});const r=Object.assign({},this.SERIES,a);r.name=t,r.data=s,this.legend.push(t),this.mergeXAxisData(i),this.series.push(r)}return this}mergeXAxisData(t){let e=[...this.xAxis||[],...t||[]];e=e.distinct(t=&gt;t),e&amp;&amp;e.length&gt;1&amp;&amp;e.sort((t,e)=&gt;t.localeCompare(e)),this.xAxis=e}get option(){const t=n.a.cloneDeep(this.OPTION);return t.xAxis.data=this.xAxis,t.legend.data=this.legend,t.series=this.series,t.tooltip.formatter=function(t){let e="";const a=(t||[]).filter(t=&gt;t.value&amp;&amp;0!=t.value[1]).map(t=&gt;(e=t.name,`&lt;tr&gt;&lt;td&gt;${t.marker}&lt;/td&gt;&lt;td&gt;${t.seriesName}&lt;/td&gt;&lt;td style="text-align: right; padding-left: 8px"&gt;${t.value[1]} %&lt;/td&gt;&lt;/tr&gt;`)).join("");let i=`&lt;p&gt;${e}&lt;/p&gt;&lt;table&gt;${a}&lt;/table&gt;`;return i},t}}class S{constructor(t,e={}){Object(i["a"])(this,"OPTION",{title:{text:"",show:!1},legend:{show:!0,type:"scroll",data:[],icon:"bar",itemWidth:10,itemHeight:3},grid:{containLabel:!0,left:36,right:36,bottom:24,top:36},xAxis:{type:"category",data:[],boundaryGap:!0,axisLabel:{rotate:45,color:"#333"},axisLine:{lineStyle:{color:"rgba(107,107,107,0.2 )"}},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}},yAxis:{type:"value",name:"å•ä½(äº¿å…ƒ)",scale:!0,percent:!1,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{formatter:"{value}"},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.3)"}}},tooltip:{trigger:"axis"},series:[]}),Object(i["a"])(this,"SERIES",{name:null,data:[],type:"bar",showSymbol:!1,symbol:"circle",stack:!1,areaStyle:null,step:null,yAxisIndex:0,barMaxWidth:"30",itemStyle:{normal:{label:{show:!1,position:"top",textStyle:{color:"black",fontSize:14}}}}}),this.title=t,this.style=e,this.seriesData=[],this.xAxis=[],this.legend=[],this.series=[]}appendSeries(t,e,a={}){if(e&amp;&amp;e.length&gt;0){this.seriesData.push(e);let i=[],s=[];e.forEach(t=&gt;{i.push(t.date),s.push([t.date,t.value])});const r=Object.assign({},this.SERIES,a);r.name=t,r.data=s,this.legend.push(t),this.mergeXAxisData(i),this.series.push(r)}return this}mergeXAxisData(t){let e=[...this.xAxis||[],...t||[]];e=e.distinct(t=&gt;t),e&amp;&amp;e.length&gt;1&amp;&amp;(e.sort((t,e)=&gt;t.localeCompare(e)),this.SERIES.itemStyle.normal.label.textStyle.fontSize=12),e&amp;&amp;e.length&gt;30&amp;&amp;(this.SERIES.itemStyle.normal.label.textStyle.fontSize=10),e&amp;&amp;e.length&gt;=40&amp;&amp;(this.SERIES.itemStyle.normal.label.show=!1),this.xAxis=e}get option(){const t=n.a.cloneDeep(this.OPTION);return t.xAxis.data=this.xAxis,t.legend.data=this.legend,t.series=this.series,t}}class C{constructor(t,e={}){Object(i["a"])(this,"OPTION",{title:{text:"",show:!1},legend:{show:!0,type:"scroll",data:[],icon:"bar",itemWidth:10,itemHeight:3},grid:{containLabel:!0,left:36,right:36,bottom:24,top:36},xAxis:{type:"category",triggerEvent:!0,data:[],boundaryGap:!0,axisLabel:{rotate:45,color:"#409eff"},axisLine:{lineStyle:{color:"rgba(107,107,107,0.80 )"}},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}},yAxis:{type:"value",scale:!1,percent:!1,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{formatter:"{value} %"},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}},max:function(t){return 100}},tooltip:{trigger:"axis",formatter:function(t){let e=t[0].name+"&lt;br&gt;";for(let a=0;a&lt;t.length;a++)e+=t[a].marker,e+=t[a].seriesName+": "+s["a"].formatNumberDash(t[a].value[1],2)+"%&lt;br&gt;";return e+="(ç‚¹å‡»å›¾ç¤ºæˆ–æ—¥æœŸå±•ç¤ºå½“æœŸè¯¦æƒ…)",e}},series:[]}),Object(i["a"])(this,"SERIES",{name:null,data:[],type:"bar",showSymbol:!0,symbol:"circle",stack:!0,areaStyle:null,barMaxWidth:200,step:null,yAxisIndex:0}),this.title=t,this.style=e,this.seriesData=[],this.xAxis=[],this.legend=[],this.series=[]}appendSeries(t,e,a={}){if(e&amp;&amp;e.length&gt;0){this.seriesData.push(e);let i=[],s=[];e.forEach(t=&gt;{i.push(t.date),s.push([t.date,t.value])});const r=Object.assign({},this.SERIES,a);r.name=t,r.data=s,this.legend.push(t),this.mergeXAxisData(i),this.series.push(r)}return this}mergeXAxisData(t){const e=this.xAxis.slice();let a=!1;for(const i of t)e.includes(i)||(e.push(i),a=!0);e.length&gt;1&amp;&amp;a&amp;&amp;e.sort((t,e)=&gt;t.localeCompare(e)),this.xAxis=e}get option(){const t=n.a.cloneDeep(this.OPTION);return t.xAxis.data=this.xAxis,t.legend.data=this.legend,t.series=this.series,t}}class A{constructor(t,e=[],a={}){Object(i["a"])(this,"OPTION",{tooltip:{},legend:{data:[],type:"scroll",bottom:10,icon:"bar",itemWidth:10,itemHeight:3},radar:{name:{show:!0},nameGap:10,shape:"circle",radius:70,center:["50%","50%"],indicator:[{name:"è‚¡ç¥¨",min:0,max:100},{name:"å€ºåˆ¸",min:0,max:100},{name:"çŽ°é‡‘",min:0,max:100},{name:"å…¶å®ƒ",min:0,max:100}]},series:[],grid:{top:20,bottom:60}}),Object(i["a"])(this,"SERIES",{name:"",type:"radar",symbol:"none",data:[]}),this.title=t,this.indicators=e,this.style=a,this.series=n.a.cloneDeep(this.SERIES),this.max=null,this.min=null,this.legend=[]}appendData(t,e,a={}){if(e){const a=this.indicators.map(t=&gt;s["a"].roundNumber(e[t.name],2)),i={value:a,name:t};this.legend.push(t),this.series.data.push(i),this.max=Math.max(this.max,...a),this.min=Math.min(this.min,...a)}return this}get option(){const t=n.a.cloneDeep(this.OPTION);return t.legend.data=this.legend,t.radar.indicator=this.indicators.map(t=&gt;({name:t.name,max:this.max,min:this.min})),t.series=[this.series],t}}class k{constructor(t,e=[],a={}){Object(i["a"])(this,"OPTION",{tooltip:{position:["55%","55%"]},legend:{data:[],type:"scroll",bottom:10,icon:"bar",itemWidth:10,itemHeight:3},radar:{name:{show:!0},nameGap:10,shape:"circle",radius:70,center:["50%","50%"],indicator:[{name:"æ”¶ç›Šç®¡ç†",min:0,max:1},{name:"é£Žé™©ç®¡ç†",min:0,max:1},{name:"é£Žé™©è°ƒæ•´æ”¶ç›Š",min:0,max:1},{name:"è§„æ¨¡",min:0,max:1},{name:"æœ€è¿‘åŸºé‡‘ç»ç†ä»»èŒå¹´é™",min:0,max:1},{name:"æœºæž„åå¥½",min:0,max:1}]},series:[],grid:{top:20,bottom:60}}),Object(i["a"])(this,"SERIES",{name:"",type:"radar",symbol:"none",data:[]}),this.title=t,this.indicators=e,this.style=a,this.series=n.a.cloneDeep(this.SERIES),this.max=null,this.min=null,this.legend=[]}appendData(t,e,a={}){if(e){const a=this.indicators.map(t=&gt;s["a"].roundNumber(e[t.name],4)),i={value:a,name:t};this.legend.push(t),this.series.data.push(i),this.max=Math.max(this.max,...a),this.min=Math.min(this.min,...a)}return this}get option(){const t=n.a.cloneDeep(this.OPTION);return t.legend.data=this.legend,t.radar.indicator=this.indicators.map(t=&gt;({name:t.name,max:this.max,min:this.min})),t.series=[this.series],t}}class O{constructor(t,e={}){Object(i["a"])(this,"OPTION",{title:{text:"",show:!1},legend:{show:!0,type:"scroll",data:[],icon:"bar",itemWidth:10,itemHeight:3},grid:{containLabel:!0,left:36,right:36,bottom:24,top:36},xAxis:{type:"category",data:[],boundaryGap:!0,axisLabel:{rotate:45,color:"#333"},axisLine:{lineStyle:{color:"rgba(107,107,107,0.80 )"}},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}},yAxis:{type:"value",scale:!0,max:100,min:0,percent:!1,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{formatter:"{value} %"},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}},tooltip:{trigger:"axis"},series:[]}),Object(i["a"])(this,"SERIES",{name:null,data:[],type:"bar",showSymbol:!0,symbol:"circle",stack:!0,areaStyle:null,emphasis:{itemStyle:{shadowColor:"rgba(131,101,101,0.5)",borderWidth:1,borderColor:"#409eff",shadowOffsetY:0,shadowOffsetX:8,shadowBlur:15}},step:null,yAxisIndex:0}),this.title=t,this.style=e,this.seriesData=[],this.xAxis=[],this.legend=[],this.series=[]}appendSeries(t,e,a={}){if(e&amp;&amp;e.length&gt;0){this.seriesData.push(e);let i=[],s=[];e.forEach(t=&gt;{i.push(t.date),s.push([t.date,t.value])});const r=Object.assign({},this.SERIES,a);r.name=t,r.data=s,this.legend.push(t),this.mergeXAxisData(i),this.series.push(r)}return this}mergeXAxisData(t){let e=[...this.xAxis||[],...t||[]];e=e.distinct(t=&gt;t),e&amp;&amp;e.length&gt;1&amp;&amp;e.sort((t,e)=&gt;t.localeCompare(e)),this.xAxis=e}get option(){const t=n.a.cloneDeep(this.OPTION);return t.xAxis.data=this.xAxis,t.legend.data=this.legend,t.series=this.series,t}}class E{constructor(t,e={}){Object(i["a"])(this,"OPTION",{title:{text:"",show:!1},legend:{show:!0,type:"scroll",data:[],icon:"bar",itemWidth:10,itemHeight:3},grid:{containLabel:!0,left:36,right:36,bottom:24,top:36},xAxis:{type:"category",data:[],boundaryGap:!0,axisLabel:{rotate:45,color:"#333"},axisLine:{lineStyle:{color:"rgba(107,107,107,0.80 )"}},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}},yAxis:{type:"value",scale:!0,min:0,percent:!1,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{formatter:"{value}"},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}},tooltip:{trigger:"axis"},series:[]}),Object(i["a"])(this,"SERIES",{name:null,data:[],type:"bar",showSymbol:!0,symbol:"circle",stack:!0,areaStyle:null,emphasis:{itemStyle:{shadowColor:"rgba(131,101,101,0.5)",borderWidth:1,borderColor:"#409eff",shadowOffsetY:0,shadowOffsetX:8,shadowBlur:15}},step:null,yAxisIndex:0}),this.title=t,this.style=e,this.seriesData=[],this.xAxis=[],this.legend=[],this.series=[]}appendSeries(t,e,a={}){if(e&amp;&amp;e.length&gt;0){this.seriesData.push(e);let i=[],s=[];e.forEach(t=&gt;{i.push(t.date),s.push([t.date,t.value])});const r=Object.assign({},this.SERIES,a);r.name=t,r.data=s,this.legend.push(t),this.mergeXAxisData(i),this.series.push(r)}return this}mergeXAxisData(t){let e=[...this.xAxis||[],...t||[]];e=e.distinct(t=&gt;t),e&amp;&amp;e.length&gt;1&amp;&amp;e.sort((t,e)=&gt;t.localeCompare(e)),this.xAxis=e}get option(){const t=n.a.cloneDeep(this.OPTION);return t.xAxis.data=this.xAxis,t.legend.data=this.legend,t.series=this.series,t}}},"1eb8":function(t,e,a){"use strict";a("c975")},"246e":function(t,e,a){"use strict";a("4fbe")},"260c":function(t,e,a){"use strict";a("407d")},"2a8d":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"tf-tabs"},[a("ul",{ref:"scrollPanel",staticClass:"tf-tabs-scroll"},[t._l(t.items,(function(e,i){return["splitter"==e.type?a("li",{key:"SPLITTER_"+Math.random(),staticClass:"tf-tabs-splitter"},[t._v(" | ")]):a("li",{key:"ID_"+Math.random(),ref:"item_"+i,refInFor:!0,class:["tf-tabs-tab",{active:t.currentIndex==i}],on:{click:function(a){return t.onChangeItem(e,i)}}},[t._v(" "+t._s(e[t.valueKey])+" ")])]}))],2),a("div",{directives:[{name:"show",rawName:"v-show",value:t.showScroll,expression:"showScroll"}],staticClass:"tf-tabs-action"},[a("i",{staticClass:"tf-tabs-action__icon el-icon-caret-left",on:{click:function(e){return t.scrollToPrev()}}}),a("i",{staticClass:"tf-tabs-action__icon el-icon-caret-right",on:{click:function(e){return t.scrollToNext()}}})])])},s=[],r={name:"tf-navigator-tabs",props:{value:[String,Object],items:Array,valueKey:{type:String,default:"value"}},model:{prop:"value",event:"change"},data(){return{currentItem:null,currentIndex:0,showScroll:!1}},mounted(){this.initValue(this.value),this.setShowScrollButton()},watch:{value(t){this.initValue(t),this.setShowScrollButton()}},methods:{initValue(t){if(this.currentItem=t,null==t)this.currentIndex=-1;else{const e=(this.items||[]).find(e=&gt;e[this.valueKey]==t[this.valueKey]);e&amp;&amp;(this.currentIndex=this.items.indexOf(e))}},setShowScrollButton(){if(this.$refs.scrollPanel){const t=this.$refs.scrollPanel;this.showScroll=t.scrollWidth&gt;t.clientWidth}else this.showScroll=!1},onChangeItem(t,e){this.currentItem!=t&amp;&amp;(this.currentItem=t,this.currentIndex=e,this.$emit("change",t),this.$emit("onChange",t))},scrollToPrev(){this.$refs.scrollPanel&amp;&amp;this.$refs.scrollPanel.scrollTo(this.$refs.scrollPanel.scrollLeft-100,0)},scrollToNext(){this.$refs.scrollPanel&amp;&amp;this.$refs.scrollPanel.scrollTo(this.$refs.scrollPanel.scrollLeft+100,0)}}},o=r,n=(a("dda4"),a("0c7c")),l=Object(n["a"])(o,i,s,!1,null,"54f6b241",null);e["a"]=l.exports},"2ad5":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.seriesData&amp;&amp;t.seriesData.length?a("div",[a("FOFECharts",{staticStyle:{height:"300px"},attrs:{option:t.option,dialogTitle:t.dialogTitle}})],1):a("div",{staticClass:"f14 tc margin-v10",staticStyle:{width:"100%","text-align":"center","letter-spacing":"2px",height:"130px"}},[a("div",{staticStyle:{"margin-top":"80px"}},[a("svg",{staticClass:"icon-wushuju",attrs:{"aria-hidden":"true"}},[a("use",{attrs:{"xlink:href":"#icon-zanwuzhuzhuangtu"}})]),a("p",{staticClass:"chartFontStyle"},[t._v("æš‚æ—&nbsp;æ•°æ®")])])])])},s=[],r=(a("14d9"),a("313e")),o=a("f65d");const n={title:{},legend:{data:[],icon:"bar",type:"scroll",itemWidth:10,itemHeight:3,bottom:10},grid:{containLabel:!0,left:25,right:25,top:65,bottom:65},xAxis:{type:"category",boundaryGap:!1,data:[],axisLine:{lineStyle:{color:"rgba(107,107,107,0.8 )"}},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}},yAxis:[{type:"value",name:"æ•°å€¼",position:"left",scale:!0,axisLabel:{formatter:"{value}",color:"#333"},axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}},{type:"value",name:"æ•°å€¼",position:"right",scale:!0,axisLine:{show:!1},axisLabel:{formatter:"{value}",color:"#333"},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}},axisTick:{show:!1}}],tooltip:{trigger:"axis"},series:[]};var l={components:{FOFECharts:o["a"]},props:{seriesData:{type:Array,default:()=&gt;[]},dialogTitle:{type:[String,Number],default:null},title:{type:String,default:null},xAxisData:{type:Array,default:()=&gt;[]},leftAxis:{type:Object,default:()=&gt;({name:"left",type:"value",percent:!1,scale:!0})},rightAxis:{type:Object,default:()=&gt;({name:"right",type:"value",percent:!1,scale:!0})},visible:{type:Boolean,default:!0}},data(){return{chartInstance:null,domId:"dual-axis-chart-"+1e16*Math.random(),option:null}},methods:{initEchart(){const t=document.getElementById(this.domId);t&amp;&amp;(this.chartInstance&amp;&amp;this.chartInstance.dispose(),this.chartInstance=r["init"](t,this.theme),this.groupId&amp;&amp;(this.chartInstance.group=this.groupId))},resize(){this.chartInstance&amp;&amp;this.chartInstance.resize()},setChartOption(){if(this.initEchart(),this.seriesData&amp;&amp;this.seriesData.length){let t=JSON.parse(JSON.stringify(n));t.xAxis.data=this.xAxis||this.getXAxisData(this.seriesData),t.series=this.seriesData.map(e=&gt;{const a=e.legendName;t.legend.data.push(a);const i=e.type||"line";"bar"===i&amp;&amp;(t.xAxis.boundaryGap=!0);let s=0;return"right"===e.yAxis&amp;&amp;(s=1),{name:a,data:e.data.map(({x:t,y:e})=&gt;[t,e]),type:i,showSymbol:!1,symbol:"circle",lineStyle:{normal:{width:e.step?-1:2}},stack:e.stack||!1,areaStyle:e.stack||e.lineArea?{normal:{}}:null,step:e.step||!1,yAxisIndex:s,barMaxWidth:"30%"}}),this.title&amp;&amp;""!==this.title.trim()?t.title.text=this.title:t.grid.top=65,t.yAxis[0].name=this.leftAxis.name,t.yAxis[0].type=this.leftAxis.type,t.yAxis[0].scale=this.leftAxis.scale,!0===this.leftAxis.percent&amp;&amp;(t.yAxis[0].axisLabel.formatter="{value} %"),t.yAxis[1].name=this.rightAxis.name,t.yAxis[1].type=this.rightAxis.type,t.yAxis[1].scale=this.rightAxis.scale,!0===this.rightAxis.percent&amp;&amp;(t.yAxis[1].axisLabel.formatter="{value} %"),t.tooltip.formatter=(t,e,a)=&gt;{let i=t[0].axisValue;const s=t.map(t=&gt;{let e="&lt;tr&gt;";return e=e+"&lt;td&gt;"+t.marker+"&lt;/td&gt;&lt;td&gt;"+t.seriesName+'&lt;/td&gt;&lt;td style="text-align: right; padding-left: 10px"&gt;'+t.value[1]+"&lt;/td&gt;",e+="&lt;/tr&gt;",e}).join("");return i=i+"&lt;br/&gt;&lt;table&gt;"+s+"&lt;/table&gt;",i},this.option=t}else this.option=null},getXAxisData(t){let e=[];return t&amp;&amp;t.length?(t.forEach(t=&gt;{t.data.forEach(t=&gt;{e.includes(t.x)||e.push(t.x)})}),e.distinct().sort((t,e)=&gt;t.localeCompare(e))):null}},mounted(){let t;this.initEchart(),window.addEventListener("resize",()=&gt;{t||(t=setTimeout(()=&gt;{this.chartInstance&amp;&amp;this.chartInstance.resize(),t=null},100))})},watch:{seriesData:{immediate:!0,handler(t){t&amp;&amp;t.length&amp;&amp;this.setChartOption()}}},computed:{theme(){return this.$store.state.theme||"FOFtheme"}}},c=l,h=a("0c7c"),d=Object(h["a"])(c,i,s,!1,null,"bcccc9b4",null);e["a"]=d.exports},"2ba4":function(t,e,a){var i=a("40d5"),s=Function.prototype,r=s.apply,o=s.call;t.exports="object"==typeof Reflect&amp;&amp;Reflect.apply||(i?o.bind(r):function(){return o.apply(r,arguments)})},"2ce4":function(t,e,a){},"2e7b":function(module,__webpack_exports__,__webpack_require__){"use strict";var core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__=__webpack_require__("14d9"),core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0___default=__webpack_require__.n(core_js_modules_es_array_push_js__WEBPACK_IMPORTED_MODULE_0__),lodash__WEBPACK_IMPORTED_MODULE_1__=__webpack_require__("2ef0"),lodash__WEBPACK_IMPORTED_MODULE_1___default=__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);__webpack_exports__["a"]={name:"smart-sort",props:{scene:{type:String,default:"defaultScene"},fieldList:{type:Array,default:()=&gt;[{prop:"field1",label:"åˆ—1",type:"number"},{prop:"field2",label:"åˆ—2",type:"string"}]}},data(){return{description:null,popupShow:!1,selectedFieldList:[]}},methods:{initSelectedFieldList(){let t=!1,e=this.$localStorage.get(this.cacheKey);if(e){let a=e.fieldList||[];t=JSON.stringify(a)==JSON.stringify(this.fieldList)}t?this.selectedFieldList=e.selectedFieldList||[]:this.fieldList.forEach(t=&gt;{this.selectedFieldList.push({prop:t.prop,sortOrder:"none"})}),this.apply()},getFieldList(t){let e=[],a=[];for(let i=0;i&lt;this.selectedFieldList.length;i++)i!=t&amp;&amp;a.push(this.selectedFieldList[i].prop);return e=this.fieldList.filter(t=&gt;!a.includes(t.prop)),e},moveUp(t){if(0==t)return void this.$message.error("å·²åˆ°é¡¶");let e=lodash__WEBPACK_IMPORTED_MODULE_1___default.a.cloneDeep(this.selectedFieldList),a=e[t-1],i=e[t];e[t-1]=i,e[t]=a,this.selectedFieldList=e},moveDown(t){if(t==this.selectedFieldList.length-1)return void this.$message.error("å·²åˆ°åº•");let e=lodash__WEBPACK_IMPORTED_MODULE_1___default.a.cloneDeep(this.selectedFieldList),a=e[t+1],i=e[t];e[t+1]=i,e[t]=a,this.selectedFieldList=e},toAdd(){this.selectedFieldList.push({prop:null,sortOrder:"ascending"})},showPopup(){},handleCommand(t){let e=this.fieldList.find(e=&gt;e.prop==t);this.selectedFieldList.push({prop:e.prop,sortOrder:"ascending"})},deleteOrder(t){this.selectedFieldList.splice(t,1)},cancel(){this.popupShow=!1},getSelectedFieldList(){let t=(this.selectedFieldList||[]).filter(t=&gt;null!=t.prop&amp;&amp;"none"!=t.sortOrder);return t.forEach(t=&gt;{t.type=this.fieldList.find(e=&gt;e.prop==t.prop).type}),t},clearSelectedFieldList(){let t=[];this.fieldList.forEach(e=&gt;{t.push({prop:e.prop,sortOrder:"none"})}),this.selectedFieldList=t,this.description="æœªè®¾ç½®"},getDesc(){let t="",e=(this.selectedFieldList||[]).filter(t=&gt;null!=t.prop&amp;&amp;"none"!=t.sortOrder);if(e&amp;&amp;e.length&gt;0){let a=[];for(let i of e){let e=this.fieldList.find(t=&gt;t.prop==i.prop).label,s="ascending"==i.sortOrder?"å‡":"é™";a.push(e+"ï¼ˆ"+s+"ï¼‰"),t=a.join("ã€")}}else t="æœªè®¾ç½®";return t},apply(){let t=(this.selectedFieldList||[]).filter(t=&gt;null!=t.prop);if(t&amp;&amp;t.length&gt;0)for(let i=0;i&lt;t.length;i++){let e=t[i];for(let a=i+1;a&lt;t.length;a++){let i=t[a];if(e.prop==i.prop){let t=this.fieldList.find(t=&gt;t.prop==e.prop).label;return void this.$message.error(t+"å­˜åœ¨é‡å¤æ•°æ®ï¼Œè¯·åˆ&nbsp;é™¤å†è¯•")}}}this.description=this.getDesc(),this.$emit("refresh",t),this.cancel();let e=2592e6,a={selectedFieldList:this.selectedFieldList,fieldList:this.fieldList};this.$localStorage.set(this.cacheKey,a,e)},sortTableData(dataList,sortFieldList){return dataList=lodash__WEBPACK_IMPORTED_MODULE_1___default.a.cloneDeep(dataList),sortFieldList&amp;&amp;sortFieldList.length&gt;0?(dataList||[]).sort((x,y)=&gt;{let finalResult=!1;for(let field of sortFieldList){let result=!1,prop=field.prop;field.type||(field.type="string");let xValue=eval("x."+prop),yValue=eval("y."+prop);if(result="number"==field.type?(xValue||0)-(yValue||0):(xValue||"").localeCompare(yValue||""),"descending"==field.sortOrder&amp;&amp;(result*=-1),finalResult=finalResult||result,finalResult)break}return finalResult}):dataList}},computed:{cacheKey(){return"smart-sort-"+this.scene}},watch:{fieldList:{deep:!0,immediate:!0,handler:function(){this.initSelectedFieldList()}}}}},"2fd8":function(t,e,a){"use strict";a.d(e,"a",(function(){return c}));a("ade3"),a("14d9");var i=a("8b55"),s=a("6a57"),r=a("9a0f"),o=a("ac8f");a("2ef0");function n(t,e){let a=[],s=[];return t&amp;&amp;t.filter(t=&gt;null!==t.y).forEach(t=&gt;{if(a.push(t.x),e){let e=[];Object.keys(t).forEach(a=&gt;{"x"===a&amp;&amp;e.push(t[a]),"y"===a&amp;&amp;e.push(t[a]),"z"===a&amp;&amp;t[a].forEach((s,r)=&gt;{e.push(i["b"].formatPercent(t[a][r],2))})}),s.push(e)}else{const e=Object.keys(t).map(e=&gt;t[e]);s.push(e)}}),{x:a,y:s}}function l(t,e){let a={};for(const[s,r]of Object.entries(t)){const t=e?n(r,!0):n(r);a[s]=t.x}let i=s["a"].getAllXaxisData(a);return i.sort((t,e)=&gt;t&gt;e?1:t==e?0:t&lt;e?-1:void 0),i}const c={levelBarChart(t){let e={grid:{left:"3%",right:"4%",containLabel:!0,y2:10},title:{text:"",subtext:""},containLabel:!0,tooltip:{trigger:"item",formatter:"{a} &lt;br/&gt;{b} : {c} (%)"},legend:{data:t.name},toolbox:{show:!0,feature:{mark:{show:!1},dataView:{show:!0,readOnly:!1,icon:"image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsSAAALEgHS3X78AAABcUlEQVRYhe2YMUvDQBTH/3c2aSlN1SlDBKHQQdx0Lw5+ATtWwW/g9+incHZxEV3qF1DoJmRwKhS0Qi0YDCFt+hykaao5GzhsrnC/KQcvyS933Mu9x4iIoDA8b4FlaEFZtKAsygsWZhfXz2P0vWmeLjHVIkOzbqBqMjAiotNbH4+vUd5eC1gmw81JGbzTmygnBwBeSLh8GoO7Q/XkZrjDSP1NogVlUV6wkBw4FQankq+zFxLc93k+XhBs1g1cHBRXLpXk4SXC2Z0fj9driZOMAkJ3kJ4jD+0NbJdYPL7vTTLFdQcRRsHvA3xti6O2mT5XQsFwCrz56dVA+OOXnTVuFFBqrF0WVx3KL7EWlEV5QeEmscsMrT0j00Oyxh3vCl8nZH1nUOfBBDoP/idaUBadB2VZ+KSOIJ+tkuRxHwBY34vo6OozJ52/aTdK4E6Fo90owTLZ8jtWyPm+iWbd+G4eAcBHSHCHanS3dqx5dcl0l1+SL8VNkl3qriIAAAAAAElFTkSuQmCC"},magicType:{show:!1,type:["line","bar"]},restore:{show:!1},saveAsImage:{show:!1,type:"jpeg",backgroundColor:"#fff",icon:"image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsSAAALEgHS3X78AAAChElEQVRYhe2YPXMSURSG391lL6i7FG4TZp2h2oy4NFIEKqrYWFhAYeMM6w+QlsKUWmDpLyCFpYyVDU2GKrGwCpMZqZgJExstAjpkF7gWEbK4nzd8OsPTcbmcfTjncO4uHKWUYoPh1y0QxFZwXraC87IVnJcIALw5vsJhy1y3ywwlneAgF0Wk3rY2Tg4ADlsmHik8+PPeeN0unpz3xv9JD7KytyOguCtClXic/Ryhdmqh219OJZgFq/kYCpo4fZ1NCDB0gkpzgHrbWqgcwDhm9pORGTk71XwMqrT4jmGK6CV38/6tOsYXpog9k/3WUSYcDnJRqBKPk4shai2LKQ6T4MdvlmcWL02KenvoWP/w9C5SynWhsgkBD2QeleYg9DWZSvzl+8g1+KVJUWkOHL/kgiZO5exrLL3K3DT1toWTixH2kxHECdDtUzQ6Q9eylTPENYaRFvH2+Go5ggDQ7Y8Dj8eSTjwzVdBEvP9qhurFpZwkMuE8swcAccLB0P0nwoSlCBq6iDjhfPcUd8MJhipxQRP/9hyHRmeIett7VKgSDyPtnT37voImBp4+gYKvc1EY+s0FswkBRU3Es0+/XPeXMyQwe/a9QYK+JVYlfkZuQkrh8eqxc32SlbCoEo+9HeH2gn6NXs5E8fD+7Mer+VhoOXscPzwFZcIFZuNd/s50lJR0gmzCPxtuZBOC44va8ezBMGMgpfA4en6PWepfXqaJ5/Hnqi4TLtQvcVH4HX+uq2Hm2KLxulVzCK46exOMNIHskhSHYM+kOPux+ie9bo+6Dn/XvL74/HvpQmHZ+MfOzRdMKezDdVWkFAEcpZQ2OkPUTjfr/xkjTfAkGbkWXLeMHxvfg38AQIiyhzbvBIMAAAAASUVORK5CYII=",pixelRatio:2}}},calculable:!0,xAxis:[{type:"value",boundaryGap:[0,.01]}],yAxis:[{type:"category",data:t.data.map((t,e)=&gt;t.name)}],series:[]};return e},lineChart(t,e,a,i,s,r,o,c,h,d){let p={title:{text:e,show:!1},tooltip:{trigger:"axis",axisPointer:{animation:!1},formatter:function(t,e){let i="";if(o)i+=t.map(t=&gt;{if(t.value&amp;&amp;t.value.length&gt;2){let e="";return c.forEach((a,i)=&gt;{e+='&lt;span style="font-size:12px"&gt;'+a+"("+t.value[2+i]+"%)&lt;/span&gt;&lt;br/&gt;"}),"æ”¶ç›Š:"+t.value[1]+(a?"%":"")+' &lt;span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:'+t.color+'"&gt;&lt;/span&gt;é£Žé™©:'+t.value[0]+(a?"%":"")+"&lt;br/&gt;äº§å“æƒé‡:&lt;br/&gt;"+e}});else if("varianceModelAreaMap"===s)i="ç»„åˆé£Žé™©:"+t[0].name+"%&lt;/br&gt;äº§å“æƒé‡:&lt;/br&gt;",i+=t.map(t=&gt;'&lt;span style="font-size:12px"&gt;'+t.seriesName+" : "+t.value+"%&lt;/span&gt;").join("&lt;br/&gt;");else{let e=t.find(t=&gt;void 0!=t.value).value[0];i=e+"&lt;br&gt;",i+=t.map(t=&gt;t.value&amp;&amp;t.value[0]==e?'&lt;span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:'+t.color+'"&gt;&lt;/span&gt;'+t.seriesName+" : "+t.value[1]+(a?" %":""):'&lt;span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:'+t.color+'"&gt;&lt;/span&gt;'+t.seriesName+" : -").join("&lt;br/&gt;"),void 0==e&amp;&amp;(e=t.find(t=&gt;void 0!=t.axisValue).axisValue,i=e+"&lt;br&gt;",i+=t.map(t=&gt;t.axisValue&amp;&amp;t.axisValue==e?'&lt;span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:'+t.color+'"&gt;&lt;/span&gt;'+t.seriesName+" : "+t.value+(a?" %":""):'&lt;span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:'+t.color+'"&gt;&lt;/span&gt;'+t.seriesName+" : -").join("&lt;br/&gt;"))}return i}},toolbox:{show:!0,top:20,right:3,feature:{dataView:{show:!0,readOnly:!0,icon:"image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsSAAALEgHS3X78AAABcUlEQVRYhe2YMUvDQBTH/3c2aSlN1SlDBKHQQdx0Lw5+ATtWwW/g9+incHZxEV3qF1DoJmRwKhS0Qi0YDCFt+hykaao5GzhsrnC/KQcvyS933Mu9x4iIoDA8b4FlaEFZtKAsygsWZhfXz2P0vWmeLjHVIkOzbqBqMjAiotNbH4+vUd5eC1gmw81JGbzTmygnBwBeSLh8GoO7Q/XkZrjDSP1NogVlUV6wkBw4FQankq+zFxLc93k+XhBs1g1cHBRXLpXk4SXC2Z0fj9driZOMAkJ3kJ4jD+0NbJdYPL7vTTLFdQcRRsHvA3xti6O2mT5XQsFwCrz56dVA+OOXnTVuFFBqrF0WVx3KL7EWlEV5QeEmscsMrT0j00Oyxh3vCl8nZH1nUOfBBDoP/idaUBadB2VZ+KSOIJ+tkuRxHwBY34vo6OozJ52/aTdK4E6Fo90owTLZ8jtWyPm+iWbd+G4eAcBHSHCHanS3dqx5dcl0l1+SL8VNkl3qriIAAAAAAElFTkSuQmCC"},saveAsImage:{show:!1,backgroundColor:"#fff",type:"jpeg"}}},dataZoom:{show:!0,start:0,end:100,height:10,left:100,right:100,bottom:2,type:"slider",filterMode:"weakFilter",backgroundColor:"#fff",showDataShadow:!1,borderColor:"#fff",handleColor:"#409eff",handleIcon:"path://M725.725 527.476c0 122.054-98.994 221.050-221.050 221.050-122.054 0-220.941-98.994-220.941-221.050 0-122.054 98.887-221.050 220.941-221.050 122.054 0 221.050 98.994 221.050 221.050zM504.721 121.757c-223.731 0-405.74 182.009-405.74 405.74s182.009 405.74 405.74 405.74c223.731 0 405.74-182.009 405.74-405.74 0-223.731-182.009-405.74-405.74-405.74M504.721 993.296c-98.243 0-189.516-30.567-264.807-82.8-85.909-59.525-150.903-147.259-181.579-249.793-12.656-42.257-19.412-86.981-19.412-133.206 0-78.403 19.412-152.3 53.733-217.187 34.428-64.887 83.658-120.767 143.184-163.025 75.935-53.948 168.816-85.589 268.884-85.589 83.013 0 161.095 21.772 228.665 60.062 85.482 48.37 154.337 123.019 195.309 212.897 26.919 58.775 41.828 124.094 41.828 192.839 0 91.595-26.599 177.183-72.503 249.363-42.686 67.141-102.107 122.591-172.247 160.558-65.853 35.609-141.145 55.879-221.050 55.879z",handleSize:15,fillerColor:"#d4e7ff"},grid:{x2:0,y:35,right:"5%",bottom:65},legend:{data:[],icon:"bar",type:"scroll",itemWidth:10,itemHeight:3},xAxis:{type:o?"value":"category",boundaryGap:!0,splitLine:{show:!1},axisLabel:{margin:20,color:"#333"},axisLine:{lineStyle:{color:"rgba(107,107,107,0.64 )"}},scale:!0,data:[],name:h||""},yAxis:{type:"value",scale:!0,axisLine:{show:!1},axisTick:{show:!1},axisLabel:{formatter:"{value}",color:"#333"},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.3)",type:"dashed"}},name:d||""},series:[]};if(!t)return p;let u=0,m=o?l(t,o):l(t);for(const[l,v]of Object.entries(t)){let t=o?n(v,!0):n(v);if(i){for(const e in m){const a=m[e];-1==t.x.indexOf(a)&amp;&amp;(t.x.push(a),t.y.push([a,0]))}t.x.sort((function(t,e){return t&gt;e?1:t==e?0:t&lt;e?-1:void 0})),t.y.sort((function(t,e){return t[0]&gt;e[0]?1:t[0]==e[0]?0:t[0]&lt;e[0]?-1:void 0}))}p.legend.data[u]=l;let e=1;o&amp;&amp;(e=5);let a=t.y;t.y.forEach((e,a)=&gt;{e.length&gt;1&amp;&amp;s&amp;&amp;(t.y[a]=e[1])}),p.series[u]={name:l,type:"line",symbol:u&gt;0&amp;&amp;o?"diamond":"circle",symbolSize:u&gt;0&amp;&amp;o?10:e,showAllSymbol:!1,data:a},i&amp;&amp;(p.series[u].stack="total",p.series[u].areaStyle={normal:{}}),s&amp;&amp;(p.series[u].areaStyle={normal:{}}),"bar"===r&amp;&amp;(p.series[u].type=r,p.series[u].barMaxWidth=20),u++}"bar"===r&amp;&amp;(p.dataZoom.start=90,p.dataZoom.end=100),p.xAxis.data=m,a&amp;&amp;(p.yAxis.axisLabel.formatter="{value} %"),(o||"varianceModelAreaMap"===s)&amp;&amp;(p.xAxis.axisLabel.formatter="{value} %");const f=p.legend.data.length,g=8,b=f/g;if(b&gt;0){for(let e=0;e&lt;b;e++)p.legend.data.splice(g*(e+1),0,"");const t=16+3.5*b+"%";p.grid.top=t}return p},pieChart(t,e){let a={title:{text:e,show:!1},tooltip:{trigger:"item",formatter:"{a} &lt;br/&gt;{b} : {c} ({d}%)"},toolbox:{show:!0,feature:{dataView:{show:!0,readOnly:!0,icon:"image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsSAAALEgHS3X78AAABcUlEQVRYhe2YMUvDQBTH/3c2aSlN1SlDBKHQQdx0Lw5+ATtWwW/g9+incHZxEV3qF1DoJmRwKhS0Qi0YDCFt+hykaao5GzhsrnC/KQcvyS933Mu9x4iIoDA8b4FlaEFZtKAsygsWZhfXz2P0vWmeLjHVIkOzbqBqMjAiotNbH4+vUd5eC1gmw81JGbzTmygnBwBeSLh8GoO7Q/XkZrjDSP1NogVlUV6wkBw4FQankq+zFxLc93k+XhBs1g1cHBRXLpXk4SXC2Z0fj9driZOMAkJ3kJ4jD+0NbJdYPL7vTTLFdQcRRsHvA3xti6O2mT5XQsFwCrz56dVA+OOXnTVuFFBqrF0WVx3KL7EWlEV5QeEmscsMrT0j00Oyxh3vCl8nZH1nUOfBBDoP/idaUBadB2VZ+KSOIJ+tkuRxHwBY34vo6OozJ52/aTdK4E6Fo90owTLZ8jtWyPm+iWbd+G4eAcBHSHCHanS3dqx5dcl0l1+SL8VNkl3qriIAAAAAAElFTkSuQmCC",optionToContent:function(t){let e=t.series[0].data,a=0;for(let s=0,r=e.length;s&lt;r;s++)a+=e[s].value;let i="&lt;textarea style='width:100% height: 100% font-size: 14px line-height: 1.6rem monospace'&gt;";for(let s=0,o=e.length;s&lt;o;s++)i+=e[s].name+"\t"+r["a"].numberToPercent(e[s].value/a)+"\t"+e[s].value+"\n";return i+="&lt;/textarea&gt;",i},lang:["","å…³é—­"]},saveAsImage:{show:!1,type:"jpeg",backgroundColor:"#fff",icon:"image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsSAAALEgHS3X78AAAChElEQVRYhe2YPXMSURSG391lL6i7FG4TZp2h2oy4NFIEKqrYWFhAYeMM6w+QlsKUWmDpLyCFpYyVDU2GKrGwCpMZqZgJExstAjpkF7gWEbK4nzd8OsPTcbmcfTjncO4uHKWUYoPh1y0QxFZwXraC87IVnJcIALw5vsJhy1y3ywwlneAgF0Wk3rY2Tg4ADlsmHik8+PPeeN0unpz3xv9JD7KytyOguCtClXic/Ryhdmqh219OJZgFq/kYCpo4fZ1NCDB0gkpzgHrbWqgcwDhm9pORGTk71XwMqrT4jmGK6CV38/6tOsYXpog9k/3WUSYcDnJRqBKPk4shai2LKQ6T4MdvlmcWL02KenvoWP/w9C5SynWhsgkBD2QeleYg9DWZSvzl+8g1+KVJUWkOHL/kgiZO5exrLL3K3DT1toWTixH2kxHECdDtUzQ6Q9eylTPENYaRFvH2+Go5ggDQ7Y8Dj8eSTjwzVdBEvP9qhurFpZwkMuE8swcAccLB0P0nwoSlCBq6iDjhfPcUd8MJhipxQRP/9hyHRmeIett7VKgSDyPtnT37voImBp4+gYKvc1EY+s0FswkBRU3Es0+/XPeXMyQwe/a9QYK+JVYlfkZuQkrh8eqxc32SlbCoEo+9HeH2gn6NXs5E8fD+7Mer+VhoOXscPzwFZcIFZuNd/s50lJR0gmzCPxtuZBOC44va8ezBMGMgpfA4en6PWepfXqaJ5/Hnqi4TLtQvcVH4HX+uq2Hm2KLxulVzCK46exOMNIHskhSHYM+kOPux+ie9bo+6Dn/XvL74/HvpQmHZ+MfOzRdMKezDdVWkFAEcpZQ2OkPUTjfr/xkjTfAkGbkWXLeMHxvfg38AQIiyhzbvBIMAAAAASUVORK5CYII=",pixelRatio:2}}},legend:{show:!1,orient:"vertical",left:"left",y:"center",data:[],icon:"rect",type:"scroll",itemWidth:10,itemHeight:10},series:[{name:"",type:"pie",radius:["40%","80%"],center:["50%","50%"],data:[],label:{normal:{formatter:"{b} ({d} %) "}}}],itemStyle:{emphasis:{shadowBlur:10,shadowOffsetX:0,shadowColor:"rgba(0, 0, 0, 0.5)"}}};if(!t||Object.keys(t).length&lt;=0)return a;a.series[0].name=t["name"];for(let i in t.series){let e=t.series[i];a.legend.data[i]=e.name,a.series[0].data[i]={value:e.value,name:e.name}}return a},barChart(t,e,a,i){let s={grid:{vertical:{left:"3%",right:"4%",bottom:"3%",top:"8%",containLabel:!0},horizontal:{left:"3%",bottom:"3%",top:"3%",containLabel:!0}},label:{vertical:{normal:{show:!0,position:"top",formatter:function(t){return t.value[1]+(a?"%":"")}}},horizontal:{normal:{show:!0,position:"right",formatter:function(t){return t.value[0]+(a?"%":"")}}}},tooltip_formatter:{vertical:function(t){let e="";const i=t.map(t=&gt;{e=t.seriesName;let i='&lt;span style="display:inline-blockmargin-right:5pxborder-radius:10pxwidth:9pxheight:9pxbackground-color:'+t.color+'"&gt;&lt;/span&gt;';return i+=t.axisValue.replace("\n","")+": "+t.value[1]+(a?"%":""),3===t.value.length&amp;&amp;(i+=" ( "+t.value[2]+" )"),i}).join("&lt;br/&gt;");return[e,i].join("&lt;br/&gt;")},horizontal:function(t){let e="";const i=t.map(t=&gt;{e=t.seriesName;let i='&lt;span style="display:inline-blockmargin-right:5pxborder-radius:10pxwidth:9pxheight:9pxbackground-color:'+t.color+'"&gt;&lt;/span&gt;';return i+=t.axisValue.replace("\n","")+": "+t.value[0]+(a?"%":""),t.value.length&gt;2&amp;&amp;(i+=" ( "+t.value[2]+" )"),i}).join("&lt;br/&gt;");return[e,i].join("&lt;br /&gt;")}},axisLabel:{showPercent:{formatter:function(t,e){return t+"%"}},normal:{},interval:0}},r={title:{text:e,show:!1},tooltip:{trigger:"axis",axisPointer:{type:"shadow"},formatter:""},legend:{data:[]},toolbox:{show:!0,feature:{dataView:{show:!0,readOnly:!0,icon:"image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsSAAALEgHS3X78AAABcUlEQVRYhe2YMUvDQBTH/3c2aSlN1SlDBKHQQdx0Lw5+ATtWwW/g9+incHZxEV3qF1DoJmRwKhS0Qi0YDCFt+hykaao5GzhsrnC/KQcvyS933Mu9x4iIoDA8b4FlaEFZtKAsygsWZhfXz2P0vWmeLjHVIkOzbqBqMjAiotNbH4+vUd5eC1gmw81JGbzTmygnBwBeSLh8GoO7Q/XkZrjDSP1NogVlUV6wkBw4FQankq+zFxLc93k+XhBs1g1cHBRXLpXk4SXC2Z0fj9driZOMAkJ3kJ4jD+0NbJdYPL7vTTLFdQcRRsHvA3xti6O2mT5XQsFwCrz56dVA+OOXnTVuFFBqrF0WVx3KL7EWlEV5QeEmscsMrT0j00Oyxh3vCl8nZH1nUOfBBDoP/idaUBadB2VZ+KSOIJ+tkuRxHwBY34vo6OozJ52/aTdK4E6Fo90owTLZ8jtWyPm+iWbd+G4eAcBHSHCHanS3dqx5dcl0l1+SL8VNkl3qriIAAAAAAElFTkSuQmCC",optionToContent:function(t){let e=i?t.yAxis[0].data:t.xAxis[0].data,a=t.series,s="&lt;textarea style='width:100% height: 100% font-size: 14px line-height: 1.6rem monospace'&gt;";for(let r=0,o=e.length;r&lt;o;r++)s+=e[r].replace(/\n/g,""),i?(void 0!==a[0].data[o-r-1][0]&amp;&amp;(s+="\t"+a[0].data[o-r-1][0]),void 0!==a[0].data[o-r-1][2]&amp;&amp;(s+="\t"+a[0].data[o-r-1][2])):(void 0!==a[0].data[r][1]&amp;&amp;(s+="\t"+a[0].data[r][1]),void 0!==a[0].data[r][2]&amp;&amp;(s+="\t"+a[0].data[r][2])),s+="\n";return s+="&lt;/textarea&gt;",s},lang:["","å…³é—­"]},saveAsImage:{show:!1,type:"jpeg",backgroundColor:"#fff",icon:"image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsSAAALEgHS3X78AAAChElEQVRYhe2YPXMSURSG391lL6i7FG4TZp2h2oy4NFIEKqrYWFhAYeMM6w+QlsKUWmDpLyCFpYyVDU2GKrGwCpMZqZgJExstAjpkF7gWEbK4nzd8OsPTcbmcfTjncO4uHKWUYoPh1y0QxFZwXraC87IVnJcIALw5vsJhy1y3ywwlneAgF0Wk3rY2Tg4ADlsmHik8+PPeeN0unpz3xv9JD7KytyOguCtClXic/Ryhdmqh219OJZgFq/kYCpo4fZ1NCDB0gkpzgHrbWqgcwDhm9pORGTk71XwMqrT4jmGK6CV38/6tOsYXpog9k/3WUSYcDnJRqBKPk4shai2LKQ6T4MdvlmcWL02KenvoWP/w9C5SynWhsgkBD2QeleYg9DWZSvzl+8g1+KVJUWkOHL/kgiZO5exrLL3K3DT1toWTixH2kxHECdDtUzQ6Q9eylTPENYaRFvH2+Go5ggDQ7Y8Dj8eSTjwzVdBEvP9qhurFpZwkMuE8swcAccLB0P0nwoSlCBq6iDjhfPcUd8MJhipxQRP/9hyHRmeIett7VKgSDyPtnT37voImBp4+gYKvc1EY+s0FswkBRU3Es0+/XPeXMyQwe/a9QYK+JVYlfkZuQkrh8eqxc32SlbCoEo+9HeH2gn6NXs5E8fD+7Mer+VhoOXscPzwFZcIFZuNd/s50lJR0gmzCPxtuZBOC44va8ezBMGMgpfA4en6PWepfXqaJ5/Hnqi4TLtQvcVH4HX+uq2Hm2KLxulVzCK46exOMNIHskhSHYM+kOPux+ie9bo+6Dn/XvL74/HvpQmHZ+MfOzRdMKezDdVWkFAEcpZQ2OkPUTjfr/xkjTfAkGbkWXLeMHxvfg38AQIiyhzbvBIMAAAAASUVORK5CYII=",pixelRatio:2}}},grid:{},xAxis:{type:"category",data:[],axisLabel:{interval:0}},yAxis:{type:"value"},series:[]};if(!t||Object.keys(t).length&lt;=0)return r;let o=0,c=i?"horizontal":"vertical",h=a?"showPercent":"normal";r.tooltip.formatter=s.tooltip_formatter[c],r.yAxis.axisLabel=s.axisLabel[h],r.grid=s.grid[c];let d=l(t);for(let l in t){let e=t[l],a=n(e);r.legend.data[o]=l,r.series[o]={name:l,type:"bar",showAllSymbol:!1,data:a.y,label:s.label[c],barMaxWidth:"18px",itemStyle:{normal:{}}},o++}if(1===r.legend.data.length&amp;&amp;(r.legend.data=[]),r.xAxis.data=d,i){let t=r.xAxis;r.xAxis=r.yAxis,r.yAxis=t;for(let e in r.series){let t=r.series[e];for(let e in t.data){let a=t.data[e],i=a[0];a[0]=a[1],a[1]=i,t.data[e]=a}}r.yAxis.data.reverse()}return r},heatChart(t,e,a){let i={title:{text:"çƒ­åŠ›å›¾",show:!1},tooltip:{show:!0,position:"top",confine:!0},toolbox:{top:0,show:!0,feature:{dataView:{show:!0,readOnly:!0,icon:"image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsSAAALEgHS3X78AAABcUlEQVRYhe2YMUvDQBTH/3c2aSlN1SlDBKHQQdx0Lw5+ATtWwW/g9+incHZxEV3qF1DoJmRwKhS0Qi0YDCFt+hykaao5GzhsrnC/KQcvyS933Mu9x4iIoDA8b4FlaEFZtKAsygsWZhfXz2P0vWmeLjHVIkOzbqBqMjAiotNbH4+vUd5eC1gmw81JGbzTmygnBwBeSLh8GoO7Q/XkZrjDSP1NogVlUV6wkBw4FQankq+zFxLc93k+XhBs1g1cHBRXLpXk4SXC2Z0fj9driZOMAkJ3kJ4jD+0NbJdYPL7vTTLFdQcRRsHvA3xti6O2mT5XQsFwCrz56dVA+OOXnTVuFFBqrF0WVx3KL7EWlEV5QeEmscsMrT0j00Oyxh3vCl8nZH1nUOfBBDoP/idaUBadB2VZ+KSOIJ+tkuRxHwBY34vo6OozJ52/aTdK4E6Fo90owTLZ8jtWyPm+iWbd+G4eAcBHSHCHanS3dqx5dcl0l1+SL8VNkl3qriIAAAAAAElFTkSuQmCC",optionToContent:function(e){let a='&lt;div class=" survey-table survey-table-2"&gt;&lt;table class="el-table__body"  style="min-width:100%"&gt;&lt;tr class="el-table__row"&gt;&lt;td&gt;&lt;/td&gt;';e.xAxis[0].data.forEach((t,e)=&gt;{a+='&lt;td class="remind tc" style="color:#4d627b"&gt;'+t+"&lt;/td&gt;"}),a+="&lt;/tr&gt;";let i=e.xAxis[0].data.slice(0);return i.push(""),t.matrixData.forEach((t,s)=&gt;{a+='&lt;tr class="el-table__row"&gt;',i.forEach((i,r)=&gt;{a+=0===r?'&lt;td class="remind tc" style="color:#4d627b"&gt;'+e.xAxis[0].data[s]+"&lt;/td&gt;":'&lt;td class="remind tc" style="color:#4d627b"&gt;'+(t[r-1]?t[r-1]:"")+"&lt;/td&gt;"}),a+="&lt;/tr&gt;"}),a+="&lt;/table&gt;&lt;/div&gt;",a}},saveAsImage:{show:!1,type:"jpeg",backgroundColor:"#fff",icon:"image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsSAAALEgHS3X78AAAChElEQVRYhe2YPXMSURSG391lL6i7FG4TZp2h2oy4NFIEKqrYWFhAYeMM6w+QlsKUWmDpLyCFpYyVDU2GKrGwCpMZqZgJExstAjpkF7gWEbK4nzd8OsPTcbmcfTjncO4uHKWUYoPh1y0QxFZwXraC87IVnJcIALw5vsJhy1y3ywwlneAgF0Wk3rY2Tg4ADlsmHik8+PPeeN0unpz3xv9JD7KytyOguCtClXic/Ryhdmqh219OJZgFq/kYCpo4fZ1NCDB0gkpzgHrbWqgcwDhm9pORGTk71XwMqrT4jmGK6CV38/6tOsYXpog9k/3WUSYcDnJRqBKPk4shai2LKQ6T4MdvlmcWL02KenvoWP/w9C5SynWhsgkBD2QeleYg9DWZSvzl+8g1+KVJUWkOHL/kgiZO5exrLL3K3DT1toWTixH2kxHECdDtUzQ6Q9eylTPENYaRFvH2+Go5ggDQ7Y8Dj8eSTjwzVdBEvP9qhurFpZwkMuE8swcAccLB0P0nwoSlCBq6iDjhfPcUd8MJhipxQRP/9hyHRmeIett7VKgSDyPtnT37voImBp4+gYKvc1EY+s0FswkBRU3Es0+/XPeXMyQwe/a9QYK+JVYlfkZuQkrh8eqxc32SlbCoEo+9HeH2gn6NXs5E8fD+7Mer+VhoOXscPzwFZcIFZuNd/s50lJR0gmzCPxtuZBOC44va8ezBMGMgpfA4en6PWepfXqaJ5/Hnqi4TLtQvcVH4HX+uq2Hm2KLxulVzCK46exOMNIHskhSHYM+kOPux+ie9bo+6Dn/XvL74/HvpQmHZ+MfOzRdMKezDdVWkFAEcpZQ2OkPUTjfr/xkjTfAkGbkWXLeMHxvfg38AQIiyhzbvBIMAAAAASUVORK5CYII=",pixelRatio:2},myTool1:{show:!0,title:"å¯¼å‡ºæ•°æ®",icon:"image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAAAsSAAALEgHS3X78AAAE/klEQVR4nO2cT2gbRxTGPyuRFzesZKQNJTJRSVuwD5JP8WkLLe0lTSG+RqWnHuqW+C5QznFx7iXOOYeE9BQffArOJXuyoSDpkECoQcKC2GtheesuIxu5B3XFSruSdjQr7x/N77h6mh19jObN+2aYqYuLiwtwRibidQeCDheQES4gI1xARq563YFBlFQCpabjbU2Hsq/jpNnCszs3cPfWNa+71mHKT1nYTrBe5NQMNpfnPOidPZ6OQCeC+Z1LFTAMgvUyVgHHIViDtKDUdBd6R0dsOoKsJFieuzoHhnGEmXn5QwrfpT/pesY0AsMuWC+vK/+yCegHwTJJAWtfSUPj7r3ap4p30pYdAwX0g2C9xIUI5NTM2OJpsQhYUgnWd+u+EczvWAS892qfC0eBpRbm4tHBzQRGuICM+NqNsaOkkoHLCtZ4WgIn4EmTrpSjjaeF/4UZCdwIdOoHJp98oIp30pYdfAQywgVkhAvICBeQEWYBn925gc3lOcSm6Zp6JEv4++fP8b2PdthGgTkLl1SC/FICa7KE1TcHjr4jp2bw6+IsAKCsEqr30Vr6494CsFj6g1J2P/766TOkxSi+fllF+Wi4IEb8RvEYDxWV+n1e8Ut2Fr/3mLOuzIGr2+2R58T5XVmcRVqMokFaWN+pu/F6T3FlIa3UdGztneLurWu4Py/ixXvNNi42HUH+dgIAUFAOR7LObopXkZuPDY17vFuninfSlh2uVSIF5RByagb5pQS29k5txVmTJcSFCJSa3lfkYaTFKPJLiaFxxo92Gu+kLTtcW8ZUtXNsFI+RFqOdBGEmkxSQW2iPhMLb4Mx7w3B1Hfh4t46Kdob8UgI3xe7BbcyPG8VjR4kmKLi+kO4kFPl659n9eRFyaiY0icOM626MOaEc/fZl12ejJg4/M5ZSrqAcokG6hWJJHH5mLH6gkVDM2c+txDExlr65fFJqumuJY2IsfXMW7s3IYWIsvyw2HenKwmkxipXFWTwtHjO3PRGWfn4pgbjQ3XT+doLa8goCrv+iTFLoVCLrO3Ukn3xAQVERFyJYk9mOmfkR1wU0Kg6lpndqyKfFYyg1HbmF2FiPmnmBqwIaFQdgXbY82P4IoO1EhwnXBDQnjufvTizLFmNtmJUErNiYDUHFNQGNxNEgLRT6uMzrO3U0SCtUCcWVZUxX4tit9613T5otFJRD/PHtp1R7KGaUmk617UAbT4srw8BIHBXtbOha78V7DSWVhCahMI9Ac+IwrKxhPFRUbC7P4ZEs4Zs/q1TvC52l/+P/LvPW3qnjmlOp6Xj+7gS5hdjAPRQ7/GbpMwv4YPsj4tNXqM2C1TcH2Cg2UNHOWLvgKcwCVrVzVHE+0nfDYO2HYy3hIVxARriAjATO6axoZ1Q7e7TxtAROwKp2PnBZwRpPC/8LMxK4ETgRlv4kwQVkhAvICBeQES4gIxYBM0nr5TKc/lhO6TdIC1t7/6B01ERZJSipJHRH0kbF7pS+ZR0YFyLILcSQMz2raGcoq02UVILSEUFZJahqo1lYQeaL2ajl2chXPzVIC+Wj9ggtqQRltXkp/l6/O6zGTUYSbE9WuH5/YFtMMrYpIPT3B2YlAVlJmJgp4FJq4bQYRVqMdl3d6dUU4DaemQnGnVa9e8PDpoCMB/PfIHx1h2o/GqSFA/0cDdJCVhIgXJnyuksdAiGgn+GlHCNcQEa4gIxwARn5D/oby6g3QU8UAAAAAElFTkSuQmCC",pixelRatio:2,onclick:function(){console.log("this:",this),console.log("callback:",a)}}}},animation:!1,grid:{top:80,bottom:20,left:150,x:"15%",color:"rgba(0,0,0,0.5)"},xAxis:{type:"category",data:[],splitArea:{show:!0},axisLabel:{rotate:0},position:"top"},yAxis:{type:"category",data:[],splitArea:{show:!0},axisTick:{show:!1},axisLabel:{interval:0}},visualMap:{min:-1,max:1,precision:2,calculable:!0,left:"right",bottom:"4%",orient:"vertical",splitNumber:21,inRange:{color:["#799f82","#ffffff","#d25757"]},itemHeight:"100",itemWidth:"5"},series:[{name:"",type:"heatmap",data:[],label:{normal:{show:!0,textStyle:{color:"#000000"}}},itemStyle:{normal:{borderColor:"#ededed",borderWidth:.5},emphasis:{shadowBlur:10,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]},s=[];for(let o in t.matrixData){let e=t.matrixData[o];for(let t in e)s.push([+o,+t,e[t]])}let r=t.axis.y.length-1;s=s.map((function(t){return[t[1],r-t[0],t[2]]})),t.matrixData.length&gt;=15?(i.series[0].label.normal.textStyle.fontSize=8,i.xAxis.axisLabel.rotate=270,i.xAxis.axisLabel.interval=0,i.xAxis.data=t.axis.x):(i.series[0].label.normal.textStyle.fontSize=12,i.xAxis.data=o["a"].transitNamesInArray(t.axis.x,10,!0));let n=o["a"].transitNamesInArray(t.axis.y,10,!0);return i.yAxis.data=n.reverse(),i.series[0].name=t.title,i.series[0].data=s,i}}},3207:function(t,e,a){"use strict";a("697f")},"348d":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{attrs:{onLoading:t.onLoading}},[t.seriesData?a("div",[a("div",{style:"width:100%; height: "+t.height+"px;",attrs:{id:t.domId}})]):a("div",{staticClass:"th-empty tc"},[a("div",[a("svg",{staticClass:"icon-wushuju",attrs:{"aria-hidden":"true"}},[a("use",{attrs:{"xlink:href":"#icon-zanwuzhuzhuangtu"}})])]),a("p",[t._v("æš‚æ—&nbsp;"+t._s(t.chartStyle.title||"")+"æ•°æ®")])]),a("el-dialog",{attrs:{width:"80%",visible:t.bigDialogVisible,title:t.dialogTitle,"close-on-click-modal":!1},on:{"update:visible":function(e){t.bigDialogVisible=e}}},[t.bigDialogVisible?a("div",{style:"width:100%; height: "+t.height+"px;",attrs:{id:t.domId2}}):t._e()])],1)},s=[],r=(a("14d9"),a("2ef0")),o=a.n(r),n=(a("4328"),a("313e")),l=(a("9a0f"),a("2fd8"),a("25ca")),c={props:{seriesData:{type:Object,default:t=&gt;({})},bounds:{type:Array,default:t=&gt;[-1,1]},dialogTitle:{type:[String,Number],default:"æ”¾å¤§æ•ˆæžœå›¾"},chartStyle:{type:Object,default:t=&gt;({title:null,ancher:"bottom-left"})},visible:{type:Boolean,default:!1}},data(){return{bigDialogVisible:!1,height:300,onLoading:!1,heatChart:null,heatChart2:null,domId:"heat-chart-"+1e16*Math.random(),domId2:"heat-chart-"+1e16*Math.random(),chartData:null,chartOption:null,heatOption:{title:{show:!1},tooltip:{position:"top",backgroundColor:"rgba(245, 245, 245, 0.8)",borderWidth:1,borderColor:"#ccc",padding:10,textStyle:{color:"#000"}},animation:!1,grid:{top:20,bottom:10,containLabel:!0,color:"rgba(0,0,0,0.5)"},xAxis:{type:"category",data:[],axisLabel:{show:!0,rotate:45},splitArea:{show:!0}},yAxis:{type:"category",data:[],axisLabel:{show:!0,rotate:0,interval:0},splitArea:{show:!0},axisTick:{show:!1}},visualMap:{show:!1,min:-1,max:1,calculable:!0,orient:"horizontal",left:"center",itemHeight:"400",precision:2,splitNumber:21,inRange:{color:["#799f82","#ffffff","#d25757"]}},series:[]}}},computed:{theme(){return this.$store.state.theme||"FOFtheme"}},methods:{showBig(){this.bigDialogVisible=!0,this.$nextTick(()=&gt;{const t=document.getElementById(this.domId2);if(t&amp;&amp;(this.heatChart2&amp;&amp;this.heatChart2.dispose(),this.heatChart2=n["init"](t,this.theme)),this.heatChart2&amp;&amp;this.chartOption){this.setOption(this.chartOption);let t=o.a.cloneDeep(this.chartOption);delete t.toolbox.feature.mytool1,this.heatChart2.setOption(t),this.heatChart2.resize(),this.$nextTick(()=&gt;{this.onLoading=!1})}this.chartData&amp;&amp;this.chartData.axis.length&gt;10&amp;&amp;(this.height=36*this.chartData.axis.length+24+this.chartOption.grid.top+this.chartOption.grid.bottom,this.$nextTick(()=&gt;{this.heatChart2.resize()}))})},setOption(t){let e=this;t.toolbox={feature:{mytool:{show:!0,title:"å¯¼å‡ºæ•°æ®",icon:"image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAAAsSAAALEgHS3X78AAAE/klEQVR4nO2cT2gbRxTGPyuRFzesZKQNJTJRSVuwD5JP8WkLLe0lTSG+RqWnHuqW+C5QznFx7iXOOYeE9BQffArOJXuyoSDpkECoQcKC2GtheesuIxu5B3XFSruSdjQr7x/N77h6mh19jObN+2aYqYuLiwtwRibidQeCDheQES4gI1xARq563YFBlFQCpabjbU2Hsq/jpNnCszs3cPfWNa+71mHKT1nYTrBe5NQMNpfnPOidPZ6OQCeC+Z1LFTAMgvUyVgHHIViDtKDUdBd6R0dsOoKsJFieuzoHhnGEmXn5QwrfpT/pesY0AsMuWC+vK/+yCegHwTJJAWtfSUPj7r3ap4p30pYdAwX0g2C9xIUI5NTM2OJpsQhYUgnWd+u+EczvWAS892qfC0eBpRbm4tHBzQRGuICM+NqNsaOkkoHLCtZ4WgIn4EmTrpSjjaeF/4UZCdwIdOoHJp98oIp30pYdfAQywgVkhAvICBeQEWYBn925gc3lOcSm6Zp6JEv4++fP8b2PdthGgTkLl1SC/FICa7KE1TcHjr4jp2bw6+IsAKCsEqr30Vr6494CsFj6g1J2P/766TOkxSi+fllF+Wi4IEb8RvEYDxWV+n1e8Ut2Fr/3mLOuzIGr2+2R58T5XVmcRVqMokFaWN+pu/F6T3FlIa3UdGztneLurWu4Py/ixXvNNi42HUH+dgIAUFAOR7LObopXkZuPDY17vFuninfSlh2uVSIF5RByagb5pQS29k5txVmTJcSFCJSa3lfkYaTFKPJLiaFxxo92Gu+kLTtcW8ZUtXNsFI+RFqOdBGEmkxSQW2iPhMLb4Mx7w3B1Hfh4t46Kdob8UgI3xe7BbcyPG8VjR4kmKLi+kO4kFPl659n9eRFyaiY0icOM626MOaEc/fZl12ejJg4/M5ZSrqAcokG6hWJJHH5mLH6gkVDM2c+txDExlr65fFJqumuJY2IsfXMW7s3IYWIsvyw2HenKwmkxipXFWTwtHjO3PRGWfn4pgbjQ3XT+doLa8goCrv+iTFLoVCLrO3Ukn3xAQVERFyJYk9mOmfkR1wU0Kg6lpndqyKfFYyg1HbmF2FiPmnmBqwIaFQdgXbY82P4IoO1EhwnXBDQnjufvTizLFmNtmJUErNiYDUHFNQGNxNEgLRT6uMzrO3U0SCtUCcWVZUxX4tit9613T5otFJRD/PHtp1R7KGaUmk617UAbT4srw8BIHBXtbOha78V7DSWVhCahMI9Ac+IwrKxhPFRUbC7P4ZEs4Zs/q1TvC52l/+P/LvPW3qnjmlOp6Xj+7gS5hdjAPRQ7/GbpMwv4YPsj4tNXqM2C1TcH2Cg2UNHOWLvgKcwCVrVzVHE+0nfDYO2HYy3hIVxARriAjATO6axoZ1Q7e7TxtAROwKp2PnBZwRpPC/8LMxK4ETgRlv4kwQVkhAvICBeQES4gIxYBM0nr5TKc/lhO6TdIC1t7/6B01ERZJSipJHRH0kbF7pS+ZR0YFyLILcSQMz2raGcoq02UVILSEUFZJahqo1lYQeaL2ajl2chXPzVIC+Wj9ggtqQRltXkp/l6/O6zGTUYSbE9WuH5/YFtMMrYpIPT3B2YlAVlJmJgp4FJq4bQYRVqMdl3d6dUU4DaemQnGnVa9e8PDpoCMB/PfIHx1h2o/GqSFA/0cDdJCVhIgXJnyuksdAiGgn+GlHCNcQEa4gIxwARn5D/oby6g3QU8UAAAAAElFTkSuQmCC",onclick:function(){e.exportExcelHeat(t)}},mytool1:{show:!0,title:"æ”¾å¤§",icon:"image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA4AAAAOCAYAAAAfSC3RAAAACXBIWXMAAAsSAAALEgHS3X78AAABEklEQVQokZWSsW3DMBBFn4y0BLRBXJh1vIE1gjeIAg6QbJCMoAFMRG5SewNrBKVmY29gmwMwhT8DyjAQ5ACCdzy947+jqpQSANbHGlhr1cABGIIzPXesSilhfVwCO+AROAqaK/4GmuDMaQIuNpc5MCpeB2eGnLQ+tkCnQhN4BnzIbzJkfWwAJLMFnrRTgs9AH5wZi/N9doIzO8ldl+CD9nxTByzlDyrYq//3e2CtvZe/VwuHIn++BY/S/yvX+kg5JMksY2a6ZaUJ5r6q7Fsfv7g+S1eC+R1HrpPbqtAINMAbsNK32+BMewvW6umVqZ11fgI+S7jKv5xk1WiqkjwUubaEJ+BfVsAvpJT+tRabS5NS4gfLupvOG7M+GAAAAABJRU5ErkJggg==",onclick:function(){e.showBig()}},dataView:{readOnly:!0,lang:["","å…³é—­"],icon:"image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsSAAALEgHS3X78AAABcUlEQVRYhe2YMUvDQBTH/3c2aSlN1SlDBKHQQdx0Lw5+ATtWwW/g9+incHZxEV3qF1DoJmRwKhS0Qi0YDCFt+hykaao5GzhsrnC/KQcvyS933Mu9x4iIoDA8b4FlaEFZtKAsygsWZhfXz2P0vWmeLjHVIkOzbqBqMjAiotNbH4+vUd5eC1gmw81JGbzTmygnBwBeSLh8GoO7Q/XkZrjDSP1NogVlUV6wkBw4FQankq+zFxLc93k+XhBs1g1cHBRXLpXk4SXC2Z0fj9driZOMAkJ3kJ4jD+0NbJdYPL7vTTLFdQcRRsHvA3xti6O2mT5XQsFwCrz56dVA+OOXnTVuFFBqrF0WVx3KL7EWlEV5QeEmscsMrT0j00Oyxh3vCl8nZH1nUOfBBDoP/idaUBadB2VZ+KSOIJ+tkuRxHwBY34vo6OozJ52/aTdK4E6Fo90owTLZ8jtWyPm+iWbd+G4eAcBHSHCHanS3dqx5dcl0l1+SL8VNkl3qriIAAAAAAElFTkSuQmCC",optionToContent:function(t){let e='&lt;div class=" survey-table-chart"&gt;&lt;table class="el-table__body"  style="min-width:100%;min-height:300px"&gt;&lt;tr class="el-table__row"&gt;&lt;td&gt;&lt;/td&gt;';return console.log(t),t.xAxis[0].data.forEach((t,a)=&gt;{e+='&lt;td class="remind tc" style="color:#4d627b"&gt;'+t+"&lt;/td&gt;"}),e+="&lt;/tr&gt;",t.yAxis[0].data.forEach((a,i)=&gt;{e+='&lt;tr class="el-table__row"&gt;&lt;td class="remind tc" style="color:#4d627b"&gt;'+a+"&lt;/td&gt;",t.xAxis[0].data.forEach((a,s)=&gt;{const r=t.series[0].data.find(t=&gt;t[0]==s&amp;&amp;t[1]==i);r&amp;&amp;(e+='&lt;td class="remind tc" style="color: #4d627b"&gt;'+r[2]+"&lt;/td&gt;")}),e+="&lt;/tr&gt;"}),e+="&lt;/table&gt;&lt;/div&gt;",e}},saveAsImage:{show:!0,type:"jpeg",name:"å¯¼å‡ºå›¾",backgroundColor:"#fff",icon:"image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsSAAALEgHS3X78AAAChElEQVRYhe2YPXMSURSG391lL6i7FG4TZp2h2oy4NFIEKqrYWFhAYeMM6w+QlsKUWmDpLyCFpYyVDU2GKrGwCpMZqZgJExstAjpkF7gWEbK4nzd8OsPTcbmcfTjncO4uHKWUYoPh1y0QxFZwXraC87IVnJcIALw5vsJhy1y3ywwlneAgF0Wk3rY2Tg4ADlsmHik8+PPeeN0unpz3xv9JD7KytyOguCtClXic/Ryhdmqh219OJZgFq/kYCpo4fZ1NCDB0gkpzgHrbWqgcwDhm9pORGTk71XwMqrT4jmGK6CV38/6tOsYXpog9k/3WUSYcDnJRqBKPk4shai2LKQ6T4MdvlmcWL02KenvoWP/w9C5SynWhsgkBD2QeleYg9DWZSvzl+8g1+KVJUWkOHL/kgiZO5exrLL3K3DT1toWTixH2kxHECdDtUzQ6Q9eylTPENYaRFvH2+Go5ggDQ7Y8Dj8eSTjwzVdBEvP9qhurFpZwkMuE8swcAccLB0P0nwoSlCBq6iDjhfPcUd8MJhipxQRP/9hyHRmeIett7VKgSDyPtnT37voImBp4+gYKvc1EY+s0FswkBRU3Es0+/XPeXMyQwe/a9QYK+JVYlfkZuQkrh8eqxc32SlbCoEo+9HeH2gn6NXs5E8fD+7Mer+VhoOXscPzwFZcIFZuNd/s50lJR0gmzCPxtuZBOC44va8ezBMGMgpfA4en6PWepfXqaJ5/Hnqi4TLtQvcVH4HX+uq2Hm2KLxulVzCK46exOMNIHskhSHYM+kOPux+ie9bo+6Dn/XvL74/HvpQmHZ+MfOzRdMKezDdVWkFAEcpZQ2OkPUTjfr/xkjTfAkGbkWXLeMHxvfg38AQIiyhzbvBIMAAAAASUVORK5CYII=",pixelRatio:2}}}},exportExcelHeat(t){const e="ç›¸å…³æ€§.xlsx";let a=[""],i=[],s=[];t.xAxis.data.forEach((t,e)=&gt;{a.push(t)}),t.yAxis.data.forEach((e,a)=&gt;{const s=[];s.push(e),t.xAxis.data.forEach((e,i)=&gt;{const r=t.series[0].data.find(t=&gt;t[0]==i&amp;&amp;t[1]==a);r&amp;&amp;s.push(r[2])}),i.push(s)}),s.push(a),i&amp;&amp;i.length&gt;0&amp;&amp;s.push(...i);const r=l["utils"].aoa_to_sheet(s),o=l["utils"].book_new();l["utils"].book_append_sheet(o,r,"Sheet1"),l["writeFile"](o,e)},preprocessSeriesData(){if(this.seriesData&amp;&amp;Object.keys(this.seriesData).length){let{legendName:t,data:e,axis:a}=this.seriesData,i=a.length-1;e=e.map(t=&gt;[t[1],i-t[0],t[2]]),this.chartData={legendName:t,data:e,axis:a}}else this.chartData=null},processChartData(){this.chartData?(this.chartOption=JSON.parse(JSON.stringify(this.heatOption)),this.chartOption.series=[{name:this.chartData.legendName,type:"heatmap",data:this.chartData.data,label:{normal:{show:!0,textStyle:{color:"#000000"}}},itemStyle:{normal:{borderColor:"#ededed",borderWidth:.5},emphasis:{shadowBlur:10,shadowColor:"rgba(0, 0, 0, 0.5)"}}}],this.chartData.data.length&gt;=15?this.chartOption.series[0].label.normal.textStyle.fontSize=8:this.chartData.data.length&gt;=30&amp;&amp;(this.chartOption.series[0].label.normal.show=!1),this.chartOption.xAxis.data=this.chartData.axis,this.chartOption.xAxis.axisLabel.formatter=function(t,e){if(t&amp;&amp;t.length&gt;10){let e=t.length;return t.substr(0,e/2)+"\n"+t.substr(e/2,e)}return t},this.chartOption.yAxis.data=this.chartData.axis.slice(0).reverse(),this.chartOption.yAxis.axisLabel.formatter=function(t,e){if(t&amp;&amp;t.length&gt;10){let e=t.length;return t.substr(0,e/2)+"\n"+t.substr(e/2,e)}return t},this.chartStyle.title?(this.chartOption.title.text=this.chartStyle.title,this.chartOption.title.show=!0):(this.chartOption.title.show=!1,this.chartOption.grid.y="5%"),this.chartStyle.bounds&amp;&amp;(this.chartOption.visualMap.min=this.chartStyle.bounds[0],this.chartOption.visualMap.max=this.chartStyle.bounds[1]),this.chartOption.tooltip.formatter=t=&gt;{let[e,a,i]=t.value;const s=this.chartData.axis[e],r=this.chartData.axis[this.chartData.axis.length-a-1],o=t.seriesName;return o+'&lt;br/&gt;&lt;span style="display:inline-block;margin-right:5px;border-radius:10px;width:9px;height:9px;background-color:'+t.color+'"&gt;&lt;/span&gt;'+r+" vs "+s+": "+i}):this.chartOption=null},refreshChart(){this.initEcharts(),this.heatChart&amp;&amp;this.chartOption&amp;&amp;(this.setOption(this.chartOption),this.heatChart.setOption(this.chartOption),this.heatChart.resize(),this.$nextTick(()=&gt;{this.onLoading=!1})),this.chartData&amp;&amp;this.chartData.axis.length&gt;10&amp;&amp;(this.height=36*this.chartData.axis.length+24+this.chartOption.grid.top+this.chartOption.grid.bottom,this.$nextTick(()=&gt;{this.heatChart.resize()}))},initEcharts(){const t=document.getElementById(this.domId);t&amp;&amp;(this.heatChart&amp;&amp;this.heatChart.dispose(),this.heatChart=n["init"](t,this.theme))}},watch:{seriesData:{deep:!0,immediate:!0,handler(t,e){t?(this.onLoading=!0,this.preprocessSeriesData(),this.processChartData(),this.$nextTick(()=&gt;{this.refreshChart()})):this.chartData=null}},chartOption(t){t&amp;&amp;Object.keys(t).length&amp;&amp;this.refreshChart()},visible(t){t&amp;&amp;this.$nextTick(()=&gt;{this.refreshChart()})},theme(t){t&amp;&amp;this.$nextTick(()=&gt;{this.refreshChart()})}},mounted(){let t;this.seriesData&amp;&amp;this.seriesData.length&amp;&amp;(this.preprocessSeriesData(),this.processChartData()),this.visible&amp;&amp;(this.onLoading=!0,this.$nextTick(()=&gt;{this.refreshChart()})),window.addEventListener("resize",()=&gt;{t||(t=setTimeout(()=&gt;{this.heatChart&amp;&amp;this.heatChart.resize(),t=null},100))})}},h=c,d=a("0c7c"),p=Object(d["a"])(h,i,s,!1,null,null,null);e["a"]=p.exports},"361d":function(t,e,a){"use strict";a("89c2")},"37a3":function(t,e,a){"use strict";a("15bb")},3861:function(t,e,a){},3917:function(t,e,a){"use strict";a("7480")},"3c65":function(t,e,a){"use strict";var i=a("23e7"),s=a("7b0b"),r=a("07fa"),o=a("3a34"),n=a("083a"),l=a("3511"),c=1!==[].unshift(0),h=!function(){try{Object.defineProperty([],"length",{writable:!1}).unshift()}catch(t){return t instanceof TypeError}}();i({target:"Array",proto:!0,arity:1,forced:c||h},{unshift:function(t){var e=s(this),a=r(e),i=arguments.length;if(i){l(a+i);var c=a;while(c--){var h=c+i;c in e?e[h]=e[c]:n(e,h)}for(var d=0;d&lt;i;d++)e[d]=arguments[d]}return o(e,a+i)}})},"3ca4":function(t,e,a){"use strict";a("dcb3")},"407d":function(t,e,a){},"40b8":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"product-detail__section sticky-panel"},[a("div",[a("el-collapse",{model:{value:t.expandItems,callback:function(e){t.expandItems=e},expression:"expandItems"}},t._l(t.toc,(function(e,i){return a("el-collapse-item",{key:i,attrs:{name:e.name}},[a("template",{slot:"title"},[a("i",{class:e.iconCls,staticStyle:{"font-size":"14px",color:"#333"}}),a("span",{staticStyle:{"margin-left":"8px","font-size":"14px",color:"#333"}},[t._v(t._s(e.name))])]),a("ul",{staticClass:"product-navigator"},t._l(e.items,(function(e,s){return a("li",{key:"11asdhqwers_"+i+"_"+s,staticClass:"navi-item-sub"},[a("a",{attrs:{href:"#"+e.anchor}},[t._v(t._s(e.name))])])})),0)],2)})),1)],1),t.isCompare?t._e():a("el-button",{staticStyle:{"margin-top":"12px",width:"100%"},attrs:{size:"mini",icon:"el-icon-plus"},on:{click:t.onAddToCompare}},[t._v("åŠ&nbsp;å…¥å·²é€‰")]),t.product?a("div",{staticClass:"margin-t10"},[t.product.favorite?a("el-button",{staticStyle:{width:"100%","font-size":"12px","background-color":"#409eff",color:"#fff","border-color":"#409eff"},attrs:{size:"mini"},on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.removeFavorite()}}},[a("i",{staticClass:"iconfont icon-yiguanzhu",staticStyle:{"font-size":"12px"}}),a("span",{staticClass:"margin-l5"},[t._v("å–æ¶ˆå…³æ³¨")])]):a("el-button",{staticStyle:{width:"100%"},attrs:{size:"mini"},on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.addFavorite()}}},[a("i",{staticClass:"iconfont icon-guanzhu",staticStyle:{"font-size":"12px"}}),a("span",{staticClass:"margin-l5"},[t._v("åŠ&nbsp;å…¥å…³æ³¨")])])],1):t._e()],1)},s=[],r={name:"product-detail-navi",props:{product:Object,toc:Array,isCompare:{type:Boolean,default:!1}},data(){return{expandItems:["pa-p","pa-a","pa-port"]}},computed:{productType(){return this.product?this.product.productType:null}},watch:{toc:{deep:!0,immediate:!0,handler:function(t,e){this.toc&amp;&amp;(this.expandItems=this.toc.map(t=&gt;t.name),this.$nextTick(()=&gt;{document.querySelectorAll('a[href^="#"]').forEach(t=&gt;{t.addEventListener("click",(function(t){t.preventDefault(),document.querySelector(this.getAttribute("href"))&amp;&amp;document.querySelector(this.getAttribute("href")).scrollIntoView({behavior:"smooth"})}))})}))}}},methods:{async addFavorite(t){const e=await this.$productService.addMyFavorite(this.product.id);e?this.product.favorite=!0:this.error("æ“ä½œå¤±è´¥ï¼")},async removeFavorite(t){const e=await this.$productService.removeMyFavorite(this.product.id);e?this.product.favorite=!1:this.error("æ“ä½œå¤±è´¥ï¼")},onAddToCompare(){const t=this.$store.getters.getChosenItems()||[];if(null==t||!t.find(t=&gt;t.id==this.product.id)){if("MUTUAL_FUND"==this.productType&amp;&amp;t.length&gt;=200)return void this.$message.warning("åŸºé‡‘æ•°é‡è¶…è¿‡200ä¸ªï¼Œè¯·é‡æ–°é€‰æ‹©");if("FUND"==this.productType&amp;&amp;t.length&gt;=200)return void this.$message.warning("åŸºé‡‘æ•°é‡è¶…è¿‡200ä¸ªï¼Œè¯·é‡æ–°é€‰æ‹©");this.$store.commit("addChosenItem",this.product)}}}},o=r,n=(a("3917"),a("0c7c")),l=Object(n["a"])(o,i,s,!1,null,null,null);e["a"]=l.exports},4569:function(t,e,a){"use strict";a("de68")},"4a74":function(t,e,a){"use strict";a("6271")},"4adc":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.noMarketMsg?a("div",{staticStyle:{"margin-bottom":"20px","font-size":"13px",padding:"12px",color:"#f6a23c","background-color":"#fdf6ec"}},[a("i",{staticClass:"el-icon-warning",staticStyle:{"padding-right":"6px","font-size":"16px"}}),a("span",[t._v("æ—¶é—´åŒºé—´è¿‡çŸ­ï¼Œæ—&nbsp;æ³•åˆ’åˆ†å¸‚åœºçŽ¯å¢ƒ")])]):t._e(),a("div",[a("el-form",{staticClass:"th-el-form-params",attrs:{inline:"",size:"mini",disabled:t.isMktEnvLoading}},[a("el-form-item",{attrs:{label:"å¸‚åœºçŽ¯å¢ƒ"}},[a("el-select",{staticStyle:{width:"210px"},attrs:{size:"mini"},on:{change:t.loadMarketSensitivityAnalysisData},model:{value:t.params.name,callback:function(e){t.$set(t.params,"name",e)},expression:"params.name"}},t._l(t.marketEnvOptions,(function(t,e){return a("el-option",{key:"mkt_"+e,attrs:{label:t,value:t}})})),1)],1),a("el-form-item",{attrs:{label:"åˆ†ä½ç±»åž‹"}},[a("el-select",{staticStyle:{width:"120px"},attrs:{placeholder:"åˆ†ä½ç±»åž‹"},on:{change:t.loadMarketSensitivityAnalysisData},model:{value:t.params.type,callback:function(e){t.$set(t.params,"type",e)},expression:"params.type"}},[a("el-option",{attrs:{label:"å…¨åŽ†å²",value:"å…¨åŽ†å²"}}),a("el-option",{attrs:{label:"è¿‘ä¸€å¹´",value:"è¿‘ä¸€å¹´"}}),a("el-option",{attrs:{label:"è¿‘ä¸‰å¹´",value:"è¿‘ä¸‰å¹´"}}),a("el-option",{attrs:{label:"å‡€å€¼åŒºé—´",value:"å‡€å€¼åŒºé—´"}})],1)],1),a("el-form-item",{attrs:{label:"æŽ’åå‰"}},[a("el-select",{staticStyle:{width:"80px"},on:{change:t.loadMarketSensitivityAnalysisData},model:{value:t.params.pct,callback:function(e){t.$set(t.params,"pct",e)},expression:"params.pct"}},[a("el-option",{attrs:{label:"5%",value:5}}),a("el-option",{attrs:{label:"10%",value:10}}),a("el-option",{attrs:{label:"15%",value:15}}),a("el-option",{attrs:{label:"20%",value:20}})],1)],1),a("el-form-item",{attrs:{label:"æ•°æ®è§†å›¾"}},[a("el-select",{attrs:{size:"mini"},on:{change:t.refreshChart},model:{value:t.filter.prop,callback:function(e){t.$set(t.filter,"prop",e)},expression:"filter.prop"}},[a("el-option",{attrs:{label:"ç›ˆäºæ¯”",value:"pnl"}}),a("el-option",{attrs:{label:"èƒœçŽ‡",value:"win_ratio"}}),a("el-option",{attrs:{label:"å‡&nbsp;ä½•å¹³å‡æ”¶ç›Š",value:"gret"}}),a("el-option",{attrs:{label:"æ»šåŠ¨ICå‡å€¼",value:"ic"}})],1)],1)],1),a("th-box",{directives:[{name:"loading",rawName:"v-loading",value:t.isMktEnvLoading,expression:"isMktEnvLoading"}],staticStyle:{"margin-top":"8px"},attrs:{border:""}},[a("FOFECharts",{attrs:{option:t.mktEnvChartOption,height:300,showClearButton:!1,showDataView:!0}}),t.noteMsg&amp;&amp;0==t.index?a("p",{staticClass:"th-descriptionnote"},[t._v(" * "),a("span",{staticStyle:{"font-weight":"700"}},[t._v(t._s(t.noteMsg))]),a("br"),t._v(" * å¸‚åœºæ•æ„Ÿæ€§åˆ†æžæ˜¾ç¤ºçš„æ˜¯æŒ‰ç…§ä¸åŒæ&nbsp;‡å‡†åˆ’åˆ†çš„å¸‚åœºçŽ¯å¢ƒä¸‹ï¼Œå•æœŸçš„å‡&nbsp;ä½•å¹³å‡æ”¶ç›ŠçŽ‡ã€‚å½“åŸºé‡‘ä¸ºæ—¥é¢‘æˆ–å‘¨é¢‘æ—¶ï¼Œå•æœŸåˆ†åˆ«å¯¹åº”å•æ—¥æˆ–å•å‘¨ã€‚"),a("br"),t._v(" * ç©ºæ•°æ®è¡¨ç¤ºæŸ¥è¯¢æ—¶é—´åŒºé—´å†…æ—&nbsp;æ­¤çŠ¶æ€ ")]):t._e()],1)],1)])},s=[],r=(a("14d9"),a("25ca")),o=a("9a0f"),n=(a("6a57"),a("f65d")),l=a("9479"),c=(a("b3a2"),a("2ef0"),a("1d2b4"));const h=["æŒ¯å¹…|æ²ªæ·±300","æŒ¯å¹…|ä¸­è¯500","æŒ¯å¹…|ä¸­è¯1000","æŒ¯å¹…|ä¸­è¯å…¨æŒ‡","æŒ¯å¹…|åˆ›ä¸šæ¿æŒ‡","æ¢æ‰‹çŽ‡|æ²ªæ·±300","æ¢æ‰‹çŽ‡|ä¸­è¯500","æ¢æ‰‹çŽ‡|ä¸­è¯1000","æ¢æ‰‹çŽ‡|ä¸­è¯å…¨æŒ‡","æ¢æ‰‹çŽ‡|åˆ›ä¸šæ¿æŒ‡","å¸‚ç›ˆçŽ‡|æ²ªæ·±300","å¸‚ç›ˆçŽ‡|ä¸­è¯500","å¸‚ç›ˆçŽ‡|ä¸­è¯1000","å¸‚ç›ˆçŽ‡|ä¸­è¯å…¨æŒ‡","å¸‚ç›ˆçŽ‡|åˆ›ä¸šæ¿æŒ‡","æ¶¨è·Œå¹…|æ²ªæ·±300","æ¶¨è·Œå¹…|ä¸­è¯500","æ¶¨è·Œå¹…|ä¸­è¯1000","æ¶¨è·Œå¹…|ä¸­è¯å…¨æŒ‡","æ¶¨è·Œå¹…|åˆ›ä¸šæ¿æŒ‡","èµšé’±æ•ˆåº”|æ²ªæ·±300","èµšé’±æ•ˆåº”|ä¸­è¯500","èµšé’±æ•ˆåº”|ä¸­è¯1000","èµšé’±æ•ˆåº”|ä¸­è¯å…¨æŒ‡","èµšé’±æ•ˆåº”|åˆ›ä¸šæ¿æŒ‡","éš”å¤œè·³ç©º|æ²ªæ·±300","éš”å¤œè·³ç©º|ä¸­è¯500","éš”å¤œè·³ç©º|ä¸­è¯1000","éš”å¤œè·³ç©º|ä¸­è¯å…¨æŒ‡","éš”å¤œè·³ç©º|åˆ›ä¸šæ¿æŒ‡","å›½å€ºåˆ°æœŸæ”¶ç›ŠçŽ‡|2å¹´","å›½å€ºåˆ°æœŸæ”¶ç›ŠçŽ‡|10å¹´","å¤§ç›˜ç›¸å¯¹å°ç›˜","åŒ—å‘èµ„é‡‘å‡€æµå…¥","èžèµ„å‡€ä¹°å…¥","çƒ­ç‚¹æ‰©æ•£","åŸºå·®å˜åŒ–","éšå«æ³¢åŠ¨çŽ‡å˜åŒ–","ä¸­è¯500ç›¸å¯¹ä¸­è¯1000æ¶¨è·Œå¹…","ä¸­è¯500ç›¸å¯¹åˆ›ä¸šæ¿æ¶¨è·Œå¹…","ä¿¡ç”¨åˆ©å·®","å›&nbsp;å­å¤šç©ºæ”¶ç›Š|å¸‚å€¼","å›&nbsp;å­å¤šç©ºæ”¶ç›Š|åŠ¨é‡","å›&nbsp;å­å¤šç©ºæ”¶ç›Š|æˆé•¿","å›&nbsp;å­å¤šç©ºæ”¶ç›Š|Beta","å›&nbsp;å­æ‹¥æŒ¤åº¦|å°å¸‚å€¼","å›&nbsp;å­æ‹¥æŒ¤åº¦|é«˜è´å¡”","å›&nbsp;å­æ‹¥æŒ¤åº¦|é«˜åŠ¨é‡","å›&nbsp;å­æ‹¥æŒ¤åº¦|é«˜æˆé•¿"];var d={name:"compare-performance-market-sensitivity-analysis",props:{products:Array,benchmarks:Array,productDiffReturns:Array,showDifference:Boolean,differenceById:Number,showAfterFee:Boolean,benchmarkId:{type:[Number,String],default:null},valuationPeriod:String,start:String,end:String},components:{FOFECharts:n["a"],legendExplain:l["a"]},data(){return{params:{pct:20,type:"å…¨åŽ†å²"},filter:{prop:"pnl",marketEnvs:["æŒ¯å¹…|æ²ªæ·±300"],checkAllMarketEnv:!1},isMarketEnvCheckboxVisible:!0,series:null,noMarketMsg:!1,onLoading:!1,fundDatas:[],chartOptions:[],chartOptionTitles:[],topLabel:"å‰20%",middleLabel:"ä¸­60%",lastLabel:"åŽ20%",noteMsg:null,chartOption:null,isMktEnvLoading:!1,mktEnvData:null,mktEnvChartOption:null}},mounted(){},watch:{},computed:{paramObj(){return{products:this.products,benchmarks:this.benchmarks,productDiffReturns:this.productDiffReturns,showDifference:this.showDifference,differenceById:this.differenceById,showAfterFee:this.showAfterFee,benchmarkId:this.benchmarkId,valuationPeriod:this.valuationPeriod,start:this.start,end:this.end}},productId(){return this.product?this.product.id:null},productName(){return this.product?this.product.productShortName:null},marketEnvOptions(){return h},isAnalysisPartial(){return this.filter.marketEnvs&amp;&amp;this.filter.marketEnvs.length&amp;&amp;this.filter.marketEnvs.length&lt;this.marketEnvOptions.length||!1}},methods:{setHeatOption(t,e){let a=this;t.toolbox={feature:{mytool:{show:!0,title:"å¯¼å‡ºæ•°æ®",icon:"image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAAAsSAAALEgHS3X78AAAE/klEQVR4nO2cT2gbRxTGPyuRFzesZKQNJTJRSVuwD5JP8WkLLe0lTSG+RqWnHuqW+C5QznFx7iXOOYeE9BQffArOJXuyoSDpkECoQcKC2GtheesuIxu5B3XFSruSdjQr7x/N77h6mh19jObN+2aYqYuLiwtwRibidQeCDheQES4gI1xARq563YFBlFQCpabjbU2Hsq/jpNnCszs3cPfWNa+71mHKT1nYTrBe5NQMNpfnPOidPZ6OQCeC+Z1LFTAMgvUyVgHHIViDtKDUdBd6R0dsOoKsJFieuzoHhnGEmXn5QwrfpT/pesY0AsMuWC+vK/+yCegHwTJJAWtfSUPj7r3ap4p30pYdAwX0g2C9xIUI5NTM2OJpsQhYUgnWd+u+EczvWAS892qfC0eBpRbm4tHBzQRGuICM+NqNsaOkkoHLCtZ4WgIn4EmTrpSjjaeF/4UZCdwIdOoHJp98oIp30pYdfAQywgVkhAvICBeQEWYBn925gc3lOcSm6Zp6JEv4++fP8b2PdthGgTkLl1SC/FICa7KE1TcHjr4jp2bw6+IsAKCsEqr30Vr6494CsFj6g1J2P/766TOkxSi+fllF+Wi4IEb8RvEYDxWV+n1e8Ut2Fr/3mLOuzIGr2+2R58T5XVmcRVqMokFaWN+pu/F6T3FlIa3UdGztneLurWu4Py/ixXvNNi42HUH+dgIAUFAOR7LObopXkZuPDY17vFuninfSlh2uVSIF5RByagb5pQS29k5txVmTJcSFCJSa3lfkYaTFKPJLiaFxxo92Gu+kLTtcW8ZUtXNsFI+RFqOdBGEmkxSQW2iPhMLb4Mx7w3B1Hfh4t46Kdob8UgI3xe7BbcyPG8VjR4kmKLi+kO4kFPl659n9eRFyaiY0icOM626MOaEc/fZl12ejJg4/M5ZSrqAcokG6hWJJHH5mLH6gkVDM2c+txDExlr65fFJqumuJY2IsfXMW7s3IYWIsvyw2HenKwmkxipXFWTwtHjO3PRGWfn4pgbjQ3XT+doLa8goCrv+iTFLoVCLrO3Ukn3xAQVERFyJYk9mOmfkR1wU0Kg6lpndqyKfFYyg1HbmF2FiPmnmBqwIaFQdgXbY82P4IoO1EhwnXBDQnjufvTizLFmNtmJUErNiYDUHFNQGNxNEgLRT6uMzrO3U0SCtUCcWVZUxX4tit9613T5otFJRD/PHtp1R7KGaUmk617UAbT4srw8BIHBXtbOha78V7DSWVhCahMI9Ac+IwrKxhPFRUbC7P4ZEs4Zs/q1TvC52l/+P/LvPW3qnjmlOp6Xj+7gS5hdjAPRQ7/GbpMwv4YPsj4tNXqM2C1TcH2Cg2UNHOWLvgKcwCVrVzVHE+0nfDYO2HYy3hIVxARriAjATO6axoZ1Q7e7TxtAROwKp2PnBZwRpPC/8LMxK4ETgRlv4kwQVkhAvICBeQES4gIxYBM0nr5TKc/lhO6TdIC1t7/6B01ERZJSipJHRH0kbF7pS+ZR0YFyLILcSQMz2raGcoq02UVILSEUFZJahqo1lYQeaL2ajl2chXPzVIC+Wj9ggtqQRltXkp/l6/O6zGTUYSbE9WuH5/YFtMMrYpIPT3B2YlAVlJmJgp4FJq4bQYRVqMdl3d6dUU4DaemQnGnVa9e8PDpoCMB/PfIHx1h2o/GqSFA/0cDdJCVhIgXJnyuksdAiGgn+GlHCNcQEa4gIxwARn5D/oby6g3QU8UAAAAAElFTkSuQmCC",onclick:function(){a.exportExcelHeat(t)}}}}},exportExcelHeat(t){const e=t.title.text+".xlsx";let a=[""],i=[],s=[];t.xAxis.data.forEach((t,e)=&gt;{a.push(t)}),t.yAxis.data.forEach((e,a)=&gt;{const s=[];s.push(e),t.xAxis.data.forEach((e,i)=&gt;{const r=t.series[0].data.find(t=&gt;t[0]==i&amp;&amp;t[1]==a);r&amp;&amp;(r.length&gt;3?999999==r[2]?s.push("-"):s.push(r[3]):s.push(r[2]))}),i.push(s)}),s.push(a),i&amp;&amp;i.length&gt;0&amp;&amp;s.push(...i);const o=r["utils"].aoa_to_sheet(s),n=r["utils"].book_new();r["utils"].book_append_sheet(n,o,"Sheet1"),r["writeFile"](n,e)},async loadData(){this.products&amp;&amp;this.products.length&gt;0&amp;&amp;await this.loadMarketSensitivityAnalysisData()},async loadMarketSensitivityAnalysisData(){const{pct:t,type:e,name:a}=this.params;if(null!=t&amp;&amp;null!=e&amp;&amp;null!=a){if(this.products&amp;&amp;this.products.length){this.isMktEnvLoading=!0;const i=this.products.map(i=&gt;{const s={productId:i.id,valuationPeriod:this.valuationPeriod,showDifference:this.showDifference,differenceById:this.differenceById,showAfterFee:this.showAfterFee,pct:t,type:e,start:this.start,end:this.end};return s.envNames=[a],this.$api.marketSensitivityEndpoint.postJson(s)}),s=await Promise.all(i),r={};let o=0;for(const t of s){const e=this.products[o];if(t&amp;&amp;0===t.errorNo){const a=t.result;for(const[t,i]of Object.entries(a)){const a=r[t]||{};a[e.productShortName||e.productName]=i,r[t]=a}}o++}this.mktEnvData=r}else this.mktEnvData=null;this.refreshChart(),this.isMktEnvLoading=!1}},refreshChart(){let t=null;if(this.mktEnvData)for(const[e,a]of Object.entries(this.mktEnvData)){let i=e;const s=this.params.pct,{prop:r}=this.filter,n=Object.keys(a),l=[`é«˜ï¼ˆ${s} %ï¼‰`,`ä¸­ï¼ˆ${100-2*s} %ï¼‰`,`ä½Žï¼ˆ${s} %ï¼‰`];let h=[],d="pnl"!=r;for(const t of n){const e=a[t][r];if("pnl"==r){let t=[o["a"].roundNumber(e["é«˜"],2),o["a"].roundNumber(e["ä¸­"],2),o["a"].roundNumber(e["ä½Ž"],2)];h.push(t)}else{let t=[o["a"].roundPercent(e["é«˜"],2),o["a"].roundPercent(e["ä¸­"],2),o["a"].roundPercent(e["ä½Ž"],2)];h.push(t)}}t=new c["d"](i,h,n,l,{hideVisual:!0,height:300,percentage:d,seriesName:"å¸‚åœºæ•æ„Ÿæ€§åˆ†æž"}).option,t.grid.top=20,t.grid.bottom=10,t.visualMap.show=!1}this.mktEnvChartOption=t},onCheckAll(t){const e=this.marketEnvOptions.map(t=&gt;t);this.filter.marketEnvs=t?e:[],this.loadMarketSensitivityAnalysisData()},onCheckSome(t){const e=t.length;this.checkAllMarketEnv=e===this.marketEnvOptions.length,this.loadMarketSensitivityAnalysisData()}}},p=d,u=(a("4569"),a("0c7c")),m=Object(u["a"])(p,i,s,!1,null,"fc3f4270",null);e["a"]=m.exports},"4d96":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("th-section",{attrs:{title:"ç»„åˆç›¸å…³æ€§",level:"2"}},[a("template",{slot:"action"},[a("el-popover",{attrs:{placement:"top-start",title:"é€‰æ‹©äº§å“",width:"200",trigger:"click"}},[a("el-checkbox-group",{on:{change:t.selectProducts},model:{value:t.selProductNames,callback:function(e){t.selProductNames=e},expression:"selProductNames"}},t._l(t.allProductNames,(function(e,i){return a("el-checkbox",{key:"item_"+i,staticStyle:{width:"100%"},attrs:{label:e}},[t._v(t._s(e)+" ")])})),1),a("i",{staticClass:"el-icon-s-fold",staticStyle:{cursor:"pointer",padding:"5px 10px",border:"1px solid #e5e5e5","border-radius":"4px",color:"#606266"},attrs:{slot:"reference","aria-hidden":"true"},slot:"reference"},[a("span",{staticClass:"margin-l5 f12"},[t._v("äº§å“é€‰æ‹©")])])],1)],1),a("heatChartPresenter",{attrs:{seriesData:t.correlationSeries,visible:t.visible,height:t.chartHeight}})],2),t.portfolioBenchCorrData?a("th-section",{attrs:{title:"ä¼˜æŠ•FOFç­–ç•¥æŒ‡æ•°ç›¸å…³æ€§",level:"2"}},[a("el-table",{staticClass:"hr-table",attrs:{"header-row-class-name":"hr-table-header",size:"mini",data:t.portfolioBenchCorrData}},[a("el-table-column",{attrs:{prop:"ä¼˜æŠ•FOFç­–ç•¥æŒ‡æ•°(åŠ&nbsp;æƒ)-å€ºåˆ¸",label:"å€ºåˆ¸","show-overflow-tooltip":"",formatter:t.formatNumber,align:"center"}}),a("el-table-column",{attrs:{prop:"ä¼˜æŠ•FOFç­–ç•¥æŒ‡æ•°(åŠ&nbsp;æƒ)-å¤šç­–ç•¥",label:"å¤šç­–ç•¥","show-overflow-tooltip":"",formatter:t.formatNumber,align:"center"}}),a("el-table-column",{attrs:{prop:"ä¼˜æŠ•FOFç­–ç•¥æŒ‡æ•°(åŠ&nbsp;æƒ)-å¥—åˆ©",label:"å¥—åˆ©","show-overflow-tooltip":"",formatter:t.formatNumber,align:"center"}}),a("el-table-column",{attrs:{prop:"ä¼˜æŠ•FOFç­–ç•¥æŒ‡æ•°(åŠ&nbsp;æƒ)-å®è§‚å¯¹å†²",label:"å®è§‚å¯¹å†²","show-overflow-tooltip":"",formatter:t.formatNumber,align:"center"}}),a("el-table-column",{attrs:{prop:"ä¼˜æŠ•FOFç­–ç•¥æŒ‡æ•°(åŠ&nbsp;æƒ)-ç®¡ç†æœŸè´§",label:"ç®¡ç†æœŸè´§","show-overflow-tooltip":"",formatter:t.formatNumber,align:"center"}}),a("el-table-column",{attrs:{prop:"ä¼˜æŠ•FOFç­–ç•¥æŒ‡æ•°(åŠ&nbsp;æƒ)-è‚¡ç¥¨å¤šå¤´",label:"è‚¡ç¥¨å¤šå¤´","show-overflow-tooltip":"",formatter:t.formatNumber,align:"center"}}),a("el-table-column",{attrs:{prop:"ä¼˜æŠ•FOFç­–ç•¥æŒ‡æ•°(åŠ&nbsp;æƒ)-è‚¡ç¥¨å¸‚åœºä¸­æ€§",label:"è‚¡ç¥¨å¸‚åœºä¸­æ€§","show-overflow-tooltip":"",formatter:t.formatNumber,align:"center"}})],1)],1):t._e(),a("th-section",{attrs:{title:"20æ—¥æ»šåŠ¨ç›¸å…³æ€§",level:"2"}},[a("template",{slot:"action"},[a("el-popover",{attrs:{placement:"top-start",title:"é€‰æ‹©äº§å“",width:"200",trigger:"click"}},[a("el-checkbox-group",{on:{change:t.selectRCorrProducts},model:{value:t.selProductNamesRollingCorr,callback:function(e){t.selProductNamesRollingCorr=e},expression:"selProductNamesRollingCorr"}},t._l(t.allProductNames,(function(e,i){return a("el-checkbox",{key:"item_"+i,staticStyle:{width:"100%"},attrs:{label:e}},[t._v(t._s(e))])})),1),a("i",{staticClass:"el-icon-s-fold",staticStyle:{cursor:"pointer",padding:"5px 10px",border:"1px solid #e5e5e5","border-radius":"4px",color:"#606266"},attrs:{slot:"reference","aria-hidden":"true"},slot:"reference"},[a("span",{staticClass:"margin-l5 f12"},[t._v("äº§å“é€‰æ‹©")])])],1)],1),a("lineChartPresenter",{attrs:{seriesData:t.rollingCorrSeries,chartStyle:{title:"",legendPosition:"bottom45",yAxisAutoScale:!0},visible:t.visible,exportFileTitle:"20æ—¥æ»šåŠ¨ç›¸å…³æ€§"}})],2)],1)},s=[],r=(a("14d9"),a("8b55")),o=a("9a0f"),n=a("8771"),l=a("348d"),c=a("f2d9"),h={components:{lineChartPresenter:n["a"],heatChartPresenter:l["a"],jsonExcel:c["a"]},props:{visible:{type:Boolean,default:!1},data:{type:Object,default:t=&gt;({})},portfolio:{type:Object,default:t=&gt;({productId:null,productName:null,productShortName:null,slaveProducts:[]})},valuations:Array,benchmarkIds:{type:Array,default:t=&gt;[]}},data(){return{dataLocal:{},selProductNames:[],selProductNamesRollingCorr:[],allProductNames:[],exportJson:[],exportJsonHeader:{},correlationSeries:[],rollingCorrSeries:[],portfolioBenchCorrData:null}},methods:{exportExcel(t,e,a){r["b"].exportExcel(t,e,a)},buildExportJson(){if(this.data&amp;&amp;this.data.correlation&amp;&amp;this.data.correlation.length){const t=JSON.parse(JSON.stringify(this.data.correlation));t.reverse();for(let i=0;i&lt;t.length;i++){const e=t[i];for(let a=0;a&lt;e.length;a++)t[i][a]=o["a"].formatNumber(e[a],4)}const e=JSON.parse(JSON.stringify(this.correlationSeries.axis));e.reverse(),this.exportJsonHeader={"":"key"},e.forEach(t=&gt;{this.exportJsonHeader[t]=t});let a=[];e.forEach((i,s)=&gt;{let r={key:i},o=t[s];o.forEach((t,a)=&gt;{let i=e[a];r[i]=t}),a.push(r)}),this.exportJson=a}},initData(){this.correlationSeries&amp;&amp;!this.correlationSeries.length&amp;&amp;(this.allProductNames=this.correlationSeries.axis,this.selProductNames=this.allProductNames)},selectRCorrProducts(){this.getRollingCorrelation()},selectProducts(){let t=JSON.parse(JSON.stringify(this.allProductNames)),e=JSON.parse(JSON.stringify(this.data.correlation)),a=0;this.allProductNames.forEach((i,s)=&gt;{if(-1==this.selProductNames.indexOf(i)){e.splice(a,1),t.splice(a,1);for(var r=0;r&lt;e.length;r++)e[r].splice(a,1);a--}a++}),this.dataLocal.correlation=e,this.getSlaveCorrelation(),this.correlationSeries&amp;&amp;t&amp;&amp;(this.correlationSeries.axis=t)},getSlaveCorrelation(){if(this.dataLocal&amp;&amp;this.dataLocal.correlation&amp;&amp;this.dataLocal.correlation.length){const t=this.dataLocal.products.map(t=&gt;t.productShortName),e=JSON.parse(JSON.stringify(this.dataLocal.correlation));let a=[];for(let i=0;i&lt;e.length;i++){const t=e[i];for(let e=0;e&lt;t.length;e++)a.push([i,e,o["a"].formatNumber(t[e],4)])}this.correlationSeries={legendName:"ç›¸å…³æ€§",data:a,axis:t}}else this.correlationSeries=null},getRollingCorrelation(){if(this.dataLocal&amp;&amp;this.dataLocal.rCorrelation){const t=this.dataLocal.products.map(t=&gt;t.productShortName);let e={},a=t.length;for(const[i,s]of Object.entries(this.dataLocal.rCorrelation))for(let r=0;r&lt;a-1;r++)for(let n=r+1;n&lt;a;n++){let a=t[r]+" VS "+t[n];if(this.selProductNamesRollingCorr.includes(t[r])&amp;&amp;this.selProductNamesRollingCorr.includes(t[n])&amp;&amp;(e[a]?e[a]:e[a]=[],s[r][n])){let t=s[r][n]?s[r][n]:0;t=o["a"].formatNumber(t,3),e[a].push({x:i,y:t})}}this.rollingCorrSeries=Object.entries(e).map(([t,e])=&gt;({legendName:t,data:e}))}},async getPortfolioCorrelationWithBenchmark(){if(console.log("this.valuations:",this.valuations),!this.valuations)return;const t={returns:this.valuations.map(t=&gt;({date:t.valueAsOf,value:t.dailyReturn})),benchmarkIds:[10,11,12,13,14,15,16,18],startDate:null,endDate:null},e=await this.$api.portfolioCorrelation2Endpoint.postJson(t);0===e.errorNo?this.portfolioBenchCorrData=[e.result]:this.portfolioBenchCorrData=null},formatNumber(t,e,a){return a?o["a"].roundNumber(a,2):"-"}},computed:{chartHeight(){if(this.correlationSeries&amp;&amp;this.correlationSeries.axis&amp;&amp;this.correlationSeries.axis.length&gt;10){const t=40*this.correlationSeries.axis.length+100;return t+"px"}return"400px"}},watch:{data:{deep:!0,immediate:!0,handler(){this.dataLocal=JSON.parse(JSON.stringify(this.data)),this.getSlaveCorrelation(0),this.getRollingCorrelation(),this.initData(),this.buildExportJson()}},visible:{immediate:!0,handler(t){t&amp;&amp;this.getPortfolioCorrelationWithBenchmark()}}}},d=h,p=(a("9b92"),a("0c7c")),u=Object(p["a"])(d,i,s,!1,null,"8f744310",null);e["a"]=u.exports},"4f6c8":function(t,e,a){},"4fbe":function(t,e,a){},"555b":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"tf-skeleton"},[t.loading?a("div",{staticClass:"tf-skeleton__wrap tf-skeleton__loading"},[t.avatar?a("div",{staticClass:"tf-skeleton__wrap_avatar"},[t._v("Â&nbsp;")]):t._e(),t._m(0)]):a("div",[t._t("default")],2)])},s=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{display:"inline-block","vertical-align":"middle"}},[a("div",{staticClass:"tf-skeleton__wrap_title"},[t._v("Â&nbsp;")]),a("div",{staticClass:"tf-skeleton__wrap_subtitle"},[t._v("Â&nbsp;")])])}],r={name:"tf-skeleton",props:{loading:Boolean,avatar:Boolean,title:Boolean,subTitle:Boolean},data(){return{}}},o=r,n=(a("37a3"),a("0c7c")),l=Object(n["a"])(o,i,s,!1,null,"25c2ff0e",null);e["a"]=l.exports},"583e":function(t,e,a){"use strict";a("14d9"),a("b7ef"),a("907a"),a("986a"),a("1d02"),a("3c5d");var i=a("21a6"),s=a.n(i),r=a("25ca"),o=a("8b55"),n=a("2b0e"),l=a("2ef0"),c=a.n(l);function h(t){return new Promise(e=&gt;setTimeout(e,t))}function d(t){return t.classList.contains("gutter")}async function p(t){let e="",a=t.classList.contains("is-hidden");return a&amp;&amp;t.classList.remove("is-hidden"),e=t.innerText,e||(await h(10),e=t.innerText),a&amp;&amp;t.classList.add("is-hidden"),e}function u(t,e,a,i){let s=Math.random(),r=0,o=0,n=!1;for(let l=0;l&lt;i.length&amp;&amp;!n;l++){let t=i[l];for(let e=0;e&lt;t.length&amp;&amp;!n;e++){let a=t[e];a.used||(r=l,o=e,n=!0)}}for(let l=0;l&lt;t;l++)for(let n=0;n&lt;e;n++){let c=i[r+l][o+n];c.used=!0,c.headerObj={cellText:a,uniqueId:s},0==l&amp;&amp;0==n&amp;&amp;(c.rowSpan=t,c.colSpan=e)}for(let l=0;l&lt;i.length;l++){let t=i[l];for(let e=0;e&lt;t.length;e++){let a=t[e];a.used||(r=l,o=e,n=!0)}}}async function m(t){let e=[],a=0;if(!t||0==t.length)return e;for(let o=0;o&lt;t.length;o++){let e=t[o],i=e.getElementsByTagName("th");for(let t=0;t&lt;i.length;t++){let e=i[t];if(!d(e)){let t=e.rowSpan||1,i=e.colSpan||1;a+=t*i}}}let i=t.length,s=a/t.length;for(let o=0;o&lt;i;o++){let t=[];for(let e=0;e&lt;s;e++)t.push({used:!1,headerObj:{},parentHeaderList:[]});e.push(t)}for(let o=0;o&lt;t.length;o++){let a=t[o],i=a.getElementsByTagName("th");for(let t=0;t&lt;i.length;t++){let a=i[t];if(!d(a)){let t=a.rowSpan||1,i=a.colSpan||1,s=await p(a);u(t,i,s,e)}}}let r=e[e.length-1];for(let o=0;o&lt;e[0].length;o++)for(let t=0;t&lt;e.length-1;t++){let a=e[t][o],i=!1;for(let t of r[o].parentHeaderList)if(t["uniqueId"]==a.headerObj["uniqueId"]){i=!0;break}i||r[o].parentHeaderList.push(a.headerObj)}for(let o=0;o&lt;r.length;o++){let t=r[o],e=new Set,a=t.headerObj.cellText;e.add(t.headerObj.uniqueId);let i=t.parentHeaderList||[],s=[];for(let r of i)e.has(r.uniqueId)||s.push(r.cellText);s.length&gt;0&amp;&amp;(a+="ï¼ˆ"+s.join(" / ")+"ï¼‰"),t["compoundHeader"]=a}return e}async function f(t){let e={children:[]};if(t&amp;&amp;t.length&gt;0)if(1==t.length){let a=t[0],i=a.children;for(let t=0;t&lt;i.length;t++){let a=i[t];d(a)||e.children.push({columnIndex:t,cellText:await p(a)})}}else{let a=await m(t),i=a[a.length-1];for(let t=0;t&lt;i.length;t++){let a=i[t];e.children.push({columnIndex:t,cellText:a.compoundHeader})}}return e}function g(t,e,a,i){let s;if(a.mapper){let r=t.tableData[e],o=a.property,n=r&amp;&amp;r[o]?r[o]:null;s=a.mapper(i,r,n)}else s=i;return s}const b={exportToExcelBackEnd:async(t,e,a={},i=null)=&gt;{let s="showSummary"in t.$options.propsData,r=[];t.columns.forEach(e=&gt;{let a=null,i=null,s=!0;i=e.type,e.property&amp;&amp;(a=t.$children.find(t=&gt;t.prop==e.property),a&amp;&amp;(s=!(a.$attrs.exportable+""=="false"))),r.push({prop:e.property,type:i,exportable:s})});let l=t.$el,h=l.querySelector(".el-table__fixed"),d=l.querySelector(".el-table__fixed-right"),u=0;if(h){let t=h.getElementsByTagName("thead")[0].getElementsByTagName("th");for(let e=0;e&lt;t.length;e++){let a=t[e];!a.classList.contains("is-hidden")&amp;&amp;e&lt;=r.length-1&amp;&amp;r[e].exportable+""!="false"&amp;&amp;u++}l.removeChild(h)}else u=1;d&amp;&amp;l.removeChild(d);let m=l.getElementsByTagName("thead")[0].getElementsByTagName("tr"),b=await f(m),v=[],y=[];if(b){let t=b.children;for(let e=0;e&lt;t.length;e++){let i=t[e],s=i.columnIndex,o=r[s].prop,n={property:o,label:i.cellText,exportable:r[s].exportable,columnIndex:s};if(a[o]&amp;&amp;Object.assign(n,a[o]),n.exportable&amp;&amp;!["selection","expand"].includes(r[s].type)||(n["exportable"]=!1),"customHeaderList"in n){let t=n["customHeaderList"]||[];for(let e of t){let t=c.a.cloneDeep(n);Object.assign(t,e),v.push(t)}}else v.push(n)}}if(i)for(let o=0;o&lt;i.length;o++){let e=i[o],a=[];for(let i=0;i&lt;v.length;i++){let s=v[i],r=s["property"]?e[s["property"]]:null;r=g(t,o,s,r),a.push(r)}y.push(a)}else{let e=[],a=l.getElementsByTagName("tbody");for(let t of a)e.push(...t.getElementsByTagName("tr"));for(let i=0;i&lt;e.length;i++){let a=e[i],s=a.children,r=[];for(let e=0;e&lt;v.length;e++){let a=v[e],o=s[a.columnIndex],n=await p(o);n=g(t,i,a,n),r.push(n)}y.push(r)}}h&amp;&amp;l.appendChild(h),d&amp;&amp;l.appendChild(d);let x={showSummary:s,fileBaseName:e,headerList:v,bodyList:y,leftFixedColumnCount:u},w=await n["default"].prototype.$tableToolService.export(x),D=w.result,S=o["b"].stringToArrayBuffer(atob(D.fileContent)),C=new Blob([S],{type:"application/octet-binary"}),A=document.createElement("a");A.href=window.URL.createObjectURL(C),A.download=D.fileName,A.click()},exportToExcel:(t,e="å¯¼å‡ºæ•°æ®",a=null)=&gt;{let i=document.getElementById(t),o={};try{let t=i.querySelector(".el-table__fixed"),e=i.querySelector(".el-table__fixed-right");t||e?(t&amp;&amp;i.removeChild(t),e&amp;&amp;i.removeChild(e),o=r["utils"].table_to_book(i,a),t&amp;&amp;i.appendChild(t),e&amp;&amp;i.appendChild(e)):o=r["utils"].table_to_book(i,a)}catch(l){o={SheetNames:["Sheet1"],Sheets:{Sheet1:{}}}}let n=r["write"](o,{bookType:"xlsx",bookSST:!0,type:"array"});try{s.a.saveAs(new Blob([n],{type:"application/octet-stream"}),e+".xlsx")}catch(l){"undefined"!==typeof console&amp;&amp;console.log(l,n)}return n},exportSheetsToExcel:(t,e="å¯¼å‡ºæ•°æ®")=&gt;{const a=r["utils"].book_new();a["SheetNames"]=[];let i={};for(const[s,l]of Object.entries(t)){a["SheetNames"].push(s);let t=document.getElementById(l);i[s]=r["utils"].table_to_sheet(t)}a["Sheets"]=i;let o=r["write"](a,{bookType:"xlsx",bookSST:!0,type:"array"});try{s.a.saveAs(new Blob([o],{type:"application/octet-stream"}),e+".xlsx")}catch(n){"undefined"!==typeof console&amp;&amp;console.log(n,o)}return o},s2ab:t=&gt;{let e=new ArrayBuffer(t.length),a=new Uint8Array(e);for(let i=0;i&lt;t.length;i++)a[i]=255&amp;t.charCodeAt(i);return e},getSubAttachDataObj(t){if(t&amp;&amp;"EXCEL"==t.type&amp;&amp;"DOWNLOAD"==t.method&amp;&amp;t.data&amp;&amp;t.data.length&gt;0){let e=t.data[0];if(t.attachHeaderList=e,t.data.length&gt;1){let a=[];for(let i=1;i&lt;t.data.length;i++){let s=t.data[i],r={};for(let t=0;t&lt;s.length;t++)r[e[t]]=s[t];a.push(r)}t.attachContentList=a}}return t}};e["a"]=b},"5b28":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:{callback:t.visibilityChanged,throttle:300},expression:"{ callback: visibilityChanged, throttle: 300 }"}]},[a("th-section",{attrs:{title:"å›žå½’åˆ†æž",level:"2"}},[null==t.errorMessage?[a("div",{staticClass:"info-box-o"},[a("div",{staticClass:"info-item"},[a("span",{staticClass:"label"},[t._v("æ—¶é—´å‘¨æœŸ")]),a("span",{staticClass:"value"},[a("el-date-picker",{staticStyle:{width:"300px"},attrs:{size:"mini",type:"daterange","value-format":"yyyy-MM-dd","unlink-panels":!0,"picker-options":t.pickerOptions},model:{value:t.dateRange,callback:function(e){t.dateRange=e},expression:"dateRange"}})],1)]),a("div",{staticClass:"info-item"},[a("span",{staticClass:"label"},[t._v("å›&nbsp;å­å¤§ç±»")]),t.modelOptions&amp;&amp;t.modelOptions.length?a("span",{staticClass:"value"},t._l(t.modelOptions,(function(e){return a("span",{key:e.value,staticStyle:{"margin-right":"12px"}},[t._v(t._s(e.name))])})),0):a("span",{staticClass:"value"},[t._v("N/A")])]),a("br"),a("div",{staticClass:"info-item",staticStyle:{"margin-left":"0px"}},[a("span",{staticClass:"label"},[t._v("æ»šåŠ¨å‘¨æœŸ")]),"DAY"==t.valuationPeriod?a("span",{staticClass:"value"},[t._v(" æ—¥é¢‘ "),a("el-select",{staticStyle:{width:"100px","margin-left":"12px"},attrs:{size:"mini"},model:{value:t.params.period.rolling_window.daily,callback:function(e){t.$set(t.params.period.rolling_window,"daily",e)},expression:"params.period.rolling_window.daily"}},[a("el-option",{attrs:{value:30,label:"30 å¤©"}}),a("el-option",{attrs:{value:60,label:"60 å¤©"}})],1)],1):t._e(),"WEEK"==t.valuationPeriod?a("span",{staticClass:"value"},[t._v(" å‘¨é¢‘ "),a("el-select",{staticStyle:{width:"100px","margin-left":"12px"},attrs:{size:"mini"},model:{value:t.params.period.rolling_window.weekly,callback:function(e){t.$set(t.params.period.rolling_window,"weekly",e)},expression:"params.period.rolling_window.weekly"}},[a("el-option",{attrs:{value:20,label:"20 å‘¨"}})],1)],1):t._e()]),a("div",{staticClass:"info-item"},[a("span",{staticClass:"label"},[t._v("é€‰æ‹©å›&nbsp;å­")]),a("span",{staticClass:"value"},[a("el-radio-group",{model:{value:t.params.factor.factorType,callback:function(e){t.$set(t.params.factor,"factorType",e)},expression:"params.factor.factorType"}},[a("el-radio",{attrs:{label:"GROUPED"}},[t._v("å…¨éƒ¨å›&nbsp;å­")]),a("el-radio",{attrs:{label:"SINGLE"}},[t._v("å•å›&nbsp;å­")])],1),"SINGLE"==t.params.factor.factorType?a("el-select",{staticStyle:{width:"200px","margin-left":"12px"},attrs:{size:"mini",multiple:"","multiple-limit":10,placeholder:"è¯·é€‰æ‹©å›&nbsp;å­","value-key":"code"},model:{value:t.params.factor.factors,callback:function(e){t.$set(t.params.factor,"factors",e)},expression:"params.factor.factors"}},t._l(t.factorOptions,(function(e){return a("el-option",{key:e.code,attrs:{value:e,label:e.name}},[a("span",{staticStyle:{float:"left"}},[t._v(t._s(e.name))]),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[t._v(t._s(t.formatStockType(e.stockType))+"/"+t._s(e.groupLevel2))])])})),1):t._e()],1)]),a("div",{staticClass:"action"},[a("el-button",{attrs:{type:"primary",size:"mini",loading:t.onLoading},on:{click:t.getRegressionResult}},[t._v("å¼€å§‹å›žå½’")])],1)]),a("el-row",{staticStyle:{"margin-top":"12px"}},[a("el-col",{attrs:{span:24,align:"right"}},[a("el-popover",{attrs:{placement:"right-start",width:"400",trigger:"hover"}},[a("el-checkbox-group",{attrs:{min:1},model:{value:t.selectTagName,callback:function(e){t.selectTagName=e},expression:"selectTagName"}},t._l(t.products,(function(e,i){return a("li",{key:"poolType_"+i},[a("el-checkbox",{attrs:{label:e}},[t._v(t._s(e.productName))])],1)})),0),a("el-button",{staticClass:"section-sub-header",attrs:{slot:"reference",size:"mini",type:"text"},slot:"reference"},[a("span",{staticStyle:{color:"#409eff","font-weight":"normal"}},[a("i",{staticClass:"el-icon-s-fold",staticStyle:{"font-size":"12px"}}),t._v("åŸºé‡‘é€‰æ‹©")])])],1)],1)],1),a("tf-navigator-tabs",{attrs:{items:t.selectTagName,"value-key":"productName"},on:{onChange:t.onChangeProduct},model:{value:t.product,callback:function(e){t.product=e},expression:"product"}}),t.productErrorMessage?a("div",{staticStyle:{"margin-top":"12px"}},[a("p",{staticClass:"warning-message"},[a("i",{staticClass:"el-icon-warning-outline",staticStyle:{"margin-right":"8px"},attrs:{"data-v-6c159f40":""}}),"è¯·é…ç½®è¶…é¢åŸºå‡†"==t.productErrorMessage?a("el-button",{attrs:{size:"mini",type:"text"},on:{click:function(e){return t.editBenchmark(t.product.id)}}},[t._v(t._s(t.productErrorMessage))]):a("span",[t._v(t._s(t.productErrorMessage))])],1)]):a("el-row",{staticStyle:{"margin-top":"12px"},attrs:{gutter:12}},[a("el-col",{attrs:{span:16}},[a("div",[a("div",{staticStyle:{padding:"8px","background-color":"#f5f5f5",color:"#999","font-size":"12px"}},[t._v(" å›žå½’ç»“æžœ ")]),t.isRegressionReady?[a("div",{staticClass:"chart-holder"},[t.regressionData&amp;&amp;t.regressionData.showDualAxis?a("dual-axis-chart",{attrs:{"series-data":t.returnChartSeries,leftAxis:{name:"å‡€å€¼",type:"value",scale:!0},rightAxis:{name:"å›&nbsp;å­å€¼",type:"value",scale:!0},"chart-style":{title:"æ”¶ç›ŠçŽ‡"}}}):a("multi-line-chart",{attrs:{"series-data":t.returnChartSeries,visible:!0,"chart-style":{yAxisScale:!0,legendType:"plain"},toFile:"CTA"}})],1),a("div",{staticClass:"chart-holder"},[a("multi-line-chart",{attrs:{"series-data":t.estReturnChartSeries,visible:!0,toFile:"æ‹Ÿåˆæ”¶ç›Š","chart-style":{yAxisScale:!0,toolbox:{feature:{saveAsImage:{show:!1,type:"jpeg",backgroundColor:"#fff",icon:"image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsSAAALEgHS3X78AAAChElEQVRYhe2YPXMSURSG391lL6i7FG4TZp2h2oy4NFIEKqrYWFhAYeMM6w+QlsKUWmDpLyCFpYyVDU2GKrGwCpMZqZgJExstAjpkF7gWEbK4nzd8OsPTcbmcfTjncO4uHKWUYoPh1y0QxFZwXraC87IVnJcIALw5vsJhy1y3ywwlneAgF0Wk3rY2Tg4ADlsmHik8+PPeeN0unpz3xv9JD7KytyOguCtClXic/Ryhdmqh219OJZgFq/kYCpo4fZ1NCDB0gkpzgHrbWqgcwDhm9pORGTk71XwMqrT4jmGK6CV38/6tOsYXpog9k/3WUSYcDnJRqBKPk4shai2LKQ6T4MdvlmcWL02KenvoWP/w9C5SynWhsgkBD2QeleYg9DWZSvzl+8g1+KVJUWkOHL/kgiZO5exrLL3K3DT1toWTixH2kxHECdDtUzQ6Q9eylTPENYaRFvH2+Go5ggDQ7Y8Dj8eSTjwzVdBEvP9qhurFpZwkMuE8swcAccLB0P0nwoSlCBq6iDjhfPcUd8MJhipxQRP/9hyHRmeIett7VKgSDyPtnT37voImBp4+gYKvc1EY+s0FswkBRU3Es0+/XPeXMyQwe/a9QYK+JVYlfkZuQkrh8eqxc32SlbCoEo+9HeH2gn6NXs5E8fD+7Mer+VhoOXscPzwFZcIFZuNd/s50lJR0gmzCPxtuZBOC44va8ezBMGMgpfA4en6PWepfXqaJ5/Hnqi4TLtQvcVH4HX+uq2Hm2KLxulVzCK46exOMNIHskhSHYM+kOPux+ie9bo+6Dn/XvL74/HvpQmHZ+MfOzRdMKezDdVWkFAEcpZQ2OkPUTjfr/xkjTfAkGbkWXLeMHxvfg38AQIiyhzbvBIMAAAAASUVORK5CYII=",pixelRatio:2}}}}}})],1)]:a("div",{staticClass:"chart-holder"},[t.warning?a("p",{staticStyle:{padding:"12px","font-size":"12px",color:"#999","letter-spacing":"1px"}},[a("i",{staticClass:"el-icon-warning-outline",staticStyle:{"margin-right":"8px"},attrs:{"data-v-6c159f40":""}}),t._v(t._s(t.warning)+" ")]):t.onLoading?a("p",{staticStyle:{padding:"12px","font-size":"12px",color:"#999","line-height":"1.4em"}},[t._v(" æ­£åœ¨åˆ†æžâ€¦"),a("br"),t._v(" ä¾æ®åˆ†æžäº§å“æ•°é‡å’Œå‘¨æœŸé•¿çŸ­ï¼Œå›&nbsp;å­å›žå½’åˆ†æžå¯èƒ½éœ€è¦å‡&nbsp;åˆ†é’Ÿã€‚åœ¨æ­¤è¿‡ç¨‹ä¸­è¯·å‹¿"),a("strong",[t._v("å…³é—­")]),t._v("æˆ–"),a("strong",[t._v("ç¦»å¼€")]),t._v("æ­¤é¡µé¢ã€‚ ")]):a("p",{staticStyle:{padding:"12px","font-size":"12px",color:"#999","letter-spacing":"1px"}},[t._v(" å°šæœªæ‰§è¡Œå›&nbsp;å­å›žå½’åˆ†æžï¼Œæš‚æ—&nbsp;æ•°æ®æ˜¾ç¤ºã€‚ ")])])],2),a("div",{staticStyle:{"margin-top":"12px"}},[a("div",{staticStyle:{padding:"8px","background-color":"#f5f5f5",color:"#999","font-size":"12px"}},[t._v(" æ»šåŠ¨å›žå½’ "),a("el-link",{staticStyle:{float:"right","font-size":"12px"},attrs:{underline:!1,type:"primary"},on:{click:t.getRollingRegressionResult}},[a("i",{directives:[{name:"show",rawName:"v-show",value:t.onRolling,expression:"onRolling"}],staticClass:"el-icon-loading"}),a("span",[a("i",{directives:[{name:"show",rawName:"v-show",value:!t.onRolling,expression:"!onRolling"}],staticClass:"el-icon-data-analysis",staticStyle:{"padding-right":"4px"}}),t._v("å¼€å§‹åˆ†æž")])])],1),a("div",{staticClass:"chart-holder"},[t.isRollingReady?a("div",[a("fof-e-charts",{attrs:{option:t.rollingChartOption,height:t.rollingChartHeight}})],1):a("div",[t.rollingWarning?a("p",{staticStyle:{padding:"12px","font-size":"12px",color:"#999","letter-spacing":"1px"}},[a("i",{staticClass:"el-icon-warning-outline",staticStyle:{"margin-right":"8px"},attrs:{"data-v-6c159f40":""}}),t._v(t._s(t.rollingWarning)+" ")]):t.onRolling?a("p",{staticStyle:{padding:"12px","font-size":"12px",color:"#999","line-height":"1.4em"}},[t._v(" æ­£åœ¨åˆ†æžâ€¦"),a("br"),t._v(" ä¾æ®åˆ†æžäº§å“æ•°é‡å’Œå‘¨æœŸé•¿çŸ­ï¼Œæ»šåŠ¨åˆ†æžå¯èƒ½éœ€è¦å‡&nbsp;åˆ†é’Ÿã€‚åœ¨æ­¤è¿‡ç¨‹ä¸­è¯·å‹¿"),a("strong",[t._v("å…³é—­")]),t._v("æˆ–"),a("strong",[t._v("ç¦»å¼€")]),t._v("æ­¤é¡µé¢ã€‚ ")]):a("p",{staticStyle:{padding:"12px","font-size":"12px",color:"#999"}},[t._v(" å°šæœªæ‰§è¡Œæ»šåŠ¨å›žå½’åˆ†æžï¼Œæš‚æ—&nbsp;æ•°æ®æ˜¾ç¤ºã€‚ ")])])])])]),a("el-col",{attrs:{span:8}},[a("div",{staticStyle:{padding:"8px","background-color":"#f5f5f5",color:"#999","font-size":"12px"}},[t._v(" ç»Ÿè®¡æ‘˜è¦ ")]),a("div",{staticClass:"info-box-o"},[a("div",{staticClass:"info-item"},[a("span",{staticClass:"label"},[t._v("è§‚æµ‹å€¼")]),a("span",{staticClass:"value"},[t._v(t._s(t.regressionData?t.regressionData.no_obs:"N/A"))])]),a("div",{staticClass:"info-item"},[a("span",{staticClass:"label"},[t._v("è°ƒæ•´åŽ R Square")]),a("span",{staticClass:"value"},[t._v(t._s(t._f("formatDecimal")(t.regressionData?t.regressionData.rsquared_adj:"N/A")))])]),a("div",{staticClass:"info-item",staticStyle:{"margin-left":"0px"}},[a("span",{staticClass:"label"},[t._v("F å€¼")]),a("span",{staticClass:"value"},[t._v(t._s(t._f("formatDecimal")(t.regressionData?t.regressionData.f_value:"N/A")))])])]),t.regressionData?a("el-table",{attrs:{size:"mini",data:t.regressionData.results}},[a("el-table-column",{attrs:{prop:"factorName",label:"å›&nbsp;å­","min-width":"120","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{"min-width":"140",label:"ç³»æ•°",align:"center"},scopedSlots:t._u([{key:"default",fn:function(e){return[a("tf-swing-bar",{staticStyle:{width:"60%"},attrs:{max:t._f("formatParams")(t.regressionData.max),min:t._f("formatParams")(t.regressionData.min),value:t._f("formatParams")(e.row.params)}}),a("span",{staticStyle:{width:"30%","padding-left":"4px"}},[t._v(t._s(t._f("formatParams")(e.row.params)))])]}}],null,!1,985679161)}),a("el-table-column",{attrs:{prop:"std_err",label:"æ&nbsp;‡å‡†å·® %",width:"70",align:"right",formatter:t.formatPercent}}),a("el-table-column",{attrs:{prop:"t_values",label:"T å€¼",width:"60",align:"right",formatter:t.formatDecimal}}),a("el-table-column",{attrs:{prop:"p_values",label:"P å€¼",width:"60",align:"right",formatter:t.formatDecimal}})],1):t._e()],1)],1)]:a("div",[a("p",{staticClass:"warning-message"},[a("i",{staticClass:"el-icon-warning-outline",staticStyle:{"margin-right":"8px"},attrs:{"data-v-6c159f40":""}}),"è¯·é…ç½®è¶…é¢åŸºå‡†"==t.errorMessage?a("el-button",{attrs:{size:"mini",type:"text"},on:{click:t.editBenchmark}},[t._v(t._s(t.errorMessage))]):a("span",[t._v(t._s(t.errorMessage))])],1)])],2)],1)},s=[],r=(a("14d9"),a("8b55")),o=a("6a57"),n=a("9a0f"),l=a("f65d"),c=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"tf-swing-bar"},[t.leftWidth?a("div",{staticClass:"bar bar-shadow",style:{width:t.leftWidth+"%"}}):t._e(),t.centerWidth?a("div",{staticClass:"bar bar-primary",style:{width:t.centerWidth+"%"}}):t._e(),t.rightWidth?a("div",{staticClass:"bar bar-shadow",style:{width:t.rightWidth+"%"}}):t._e()])},h=[],d={name:"tf-swing-bar",props:{max:[String,Number],min:[String,Number],median:{type:[String,Number],default:0},value:[String,Number]},mode:{prop:"value",event:"change"},data(){return{innerValue:null}},mounted(){this.innerValue=this.value},watch:{value(t){this.innerValue=t}},computed:{negativePct(){if(this.min&gt;this.median)return 0;if(this.max&lt;this.median)return 100;const t=Math.abs(this.median-this.min),e=Math.abs(this.max-this.min);return t/e*100},positivePct(){if(this.max&lt;this.median)return 0;if(this.min&gt;this.median)return 100;const t=Math.abs(this.median-this.max),e=Math.abs(this.max-this.min);return t/e*100},leftWidth(){if(this.value&gt;this.median)return this.negativePct;const t=Math.abs(this.median-this.value),e=Math.abs(this.median-this.min);return(1-t/e)*this.negativePct},rightWidth(){if(this.value&lt;this.median)return this.positivePct;const t=Math.abs(this.median-this.value),e=Math.abs(this.median-this.max);return(1-t/e)*this.positivePct},centerWidth(){return 100-this.leftWidth-this.rightWidth}}},p=d,u=(a("7567"),a("0c7c")),m=Object(u["a"])(p,c,h,!1,null,"33e1f1d2",null),f=m.exports,g=a("7af9"),b=a("2ad5"),v=a("2a8d"),y=a("1d2b4"),x=a("2ef0"),w=a.n(x);const D={"å¤åˆç­–ç•¥":["index","cfutures"],"è‚¡ç¥¨å¤šå¤´":["index"],"å¸‚åœºä¸­æ€§":["index"],"ç®¡ç†æœŸè´§":["cfutures"]},S=[{name:"è‚¡ç¥¨ç±»",value:"index"},{name:"æœŸè´§ç±»",value:"cfutures"}],C={"Insufficient valuations":"å‡€å€¼é•¿åº¦ä¸è¶³ï¼ˆæ—¥é¢‘å°‘äºŽ60å¤©ã€å‘¨é¢‘å°‘äºŽ20å‘¨ï¼‰"};var A={name:"analysis-regression",props:{products:Array},components:{fofECharts:l["a"],tfSwingBar:f,multiLineChart:g["a"],dualAxisChart:b["a"],tfNavigatorTabs:v["a"]},data(){return{isVisible:!1,lastParamObj:null,product:null,pickerOptions:{shortcuts:o["a"].getShortcuts("ONE_MONTH","THREE_MONTH","SIX_MONTH","ONE_YEAR","TWO_YEAR","THREE_YEAR","YEAR_TO_DATE")},selectTagName:[],params:{start:o["a"].getYearAgoDateString(),end:o["a"].getNowDateString(),factor:{model:"index",factorType:"GROUPED",factors:[]},period:{start:"2019-01-01",end:null,rolling_window:{weekly:20,daily:30}}},factorLists:[],factorReturnSeries:{},fundReturnSeries:[],regressionData:null,regressionDataMap:null,returnChartSeries:[],estReturnChartSeries:[],rollingResult:null,rollingChartOption:null,onLoading:!1,onRolling:!1,isRegressionReady:!1,isRollingReady:!1,warning:null,rollingWarning:null}},computed:{paramObj(){return{products:this.products}},dateRange:{get(){const{start:t,end:e}=this.params;return null!=t&amp;&amp;null!=e?[t,e]:[]},set(t){if(t&amp;&amp;t.length&gt;1){const[e,a]=t;this.params.start=e,this.params.end=a}else this.params.start=null,this.params.end=null}},productId(){return this.product?this.product.id:null},productName(){return this.product?this.product.productShortName||this.product.productName:null},valuationPeriod(){return this.product?this.product.valuationPeriod:null},strategyCategory(){if(this.product&amp;&amp;this.product.strategyCode){const t=this.$store.getters.getStrategy(this.product.strategyCode,1);return t.assetCategory}return null},modelOptions(){const t=this.product;if(t&amp;&amp;t.strategyCode){const e=this.$store.getters.getStrategyName(t.strategyCode,1),a=D[e]||[],i=S.filter(t=&gt;a.includes(t.value))||[];return i.length?this.params.factor.model=i[0].value:this.params.factor.model=null,i}return S},factorOptions(){return this.factorLists?this.factorLists.filter(t=&gt;this.factorModels.includes(t.stockType)):[]},factorModels(){let t=[];if(this.product&amp;&amp;this.product.strategyCode){const e=this.$store.getters.getStrategyName(this.product.strategyCode,1),a=D[e]||[];t.push(...a)}return t},errorMessage(){if(this.products&amp;&amp;1==this.products.length){const{strategyCode:t}=this.products[0]||{},e=this.$store.getters.getStrategyName(t,1),a=["å¸‚åœºä¸­æ€§","è‚¡ç¥¨å¤šå¤´","ç®¡ç†æœŸè´§","å¤åˆç­–ç•¥"];if(!a.includes(e))return"ç›®å‰åªæ”¯æŒè‚¡ç¥¨å¤šå¤´ã€è‚¡ç¥¨å¸‚åœºä¸­æ€§ã€ç®¡ç†æœŸè´§ã€å¤åˆç­–ç•¥å››ç§ç§å‹Ÿç­–ç•¥ç±»åž‹ï¼Œå…¶ä»–ç±»åž‹çš„æ”¯æŒæ­£åœ¨å®Œå–„ä¸­";if("è‚¡ç¥¨å¤šå¤´"==e&amp;&amp;!this.benchmarkExist)return"è¯·é…ç½®è¶…é¢åŸºå‡†"}return null},productErrorMessage(){if(this.product){const{strategyCode:t}=this.product,e=this.$store.getters.getStrategyName(t,1),a=["å¸‚åœºä¸­æ€§","è‚¡ç¥¨å¤šå¤´","ç®¡ç†æœŸè´§","å¤åˆç­–ç•¥"];if(!a.includes(e))return"ç›®å‰åªæ”¯æŒè‚¡ç¥¨å¤šå¤´ã€è‚¡ç¥¨å¸‚åœºä¸­æ€§ã€ç®¡ç†æœŸè´§ã€å¤åˆç­–ç•¥å››ç§ç§å‹Ÿç­–ç•¥ç±»åž‹ï¼Œå…¶ä»–ç±»åž‹çš„æ”¯æŒæ­£åœ¨å®Œå–„ä¸­";if("è‚¡ç¥¨å¤šå¤´"==e&amp;&amp;!this.benchmarkExist)return"è¯·é…ç½®è¶…é¢åŸºå‡†"}return null},benchmarkExist(){return this.product&amp;&amp;this.product.benchmarks&amp;&amp;this.product.benchmarks.length&gt;0}},watch:{paramObj:{deep:!0,immediate:!0,handler(t){this.loadData()}}},mounted(){},methods:{visibilityChanged(t,e){this.isVisible=t,this.loadData()},async reloadData(){await this.loadData(!0)},loadData(t=!1){t&amp;&amp;(this.lastParamObj=Math.random().toString()),this.isVisible&amp;&amp;JSON.stringify(this.lastParamObj)!=JSON.stringify(this.paramObj)&amp;&amp;(this.lastParamObj=w.a.cloneDeep(this.paramObj),this.selectTagName=this.products,this.product=this.products&amp;&amp;this.products.length&gt;0?this.products[0]:null,this.$nextTick(()=&gt;{this.loadFactors()}))},editBenchmark(t){this.$emit("editBenchmark",t)},onChangeProduct(t){this.getRegressionResult(),this.isRollingReady=!1},async loadFactors(){const t=await this.$service.modelFactorConfigService.getConfigList();this.factorLists=t||[]},formatStockType(t){switch(t){case"index":return"è‚¡ç¥¨ç±»";case"cfutures":return"æœŸè´§ç±»"}},async getRegressionResult(){const t=this.validateProduct(this.product);if(t)return void this.$message.warning(t);let e=[];e="GROUPED"==this.params.factor.factorType?this.factorOptions:this.params.factor.factors;const a=e.map(t=&gt;t.code);if(0==a.length)return void this.$message.warning("è¯·å…ˆé€‰æ‹©å›&nbsp;å­");if(!this.validateProductBenchmark(this.product))return;this.factorReturnSeries={},this.fundReturnSeries=[],this.warning=null,this.onLoading=!0,this.isRegressionReady=!1;const{start:i,end:s}=this.params,r=await this.$service.factorRegressionService.getFundFactorRegressionResult(this.productId,a,i,s);if(null!=r&amp;&amp;0==r.errorNo){const t=r.result;if(null==t||null==t.results||0==t.results.length)this.warning="å·²é€‰å›&nbsp;å­æš´éœ²éƒ½ä¸æ˜¾è‘—";else{const e=t.results;e.length&gt;1&amp;&amp;e.sort((t,e)=&gt;e.params-t.params);let a=null,r=null,o=!1;e.forEach(t=&gt;{(null==a||t.params&gt;a)&amp;&amp;(a=t.params),(null==r||t.params&lt;r)&amp;&amp;(r=t.params);const e=this.factorLists.find(e=&gt;e.type==t.factorName);o=o||"value"==e.calcType});const l={identifier:this.productName,max:n["a"].roundNumber(a,4),min:n["a"].roundNumber(r,4),showDualAxis:o},c=Object.assign({},t,l);this.regressionData=c;const h=e.map(t=&gt;this.factorLists.find(e=&gt;e.type==t.factorName));await this.loadFactorSeries(h),await this.loadFundReturnSeries2(this.product,i,s),this.buildReturnSeries(),this.buildEstReturnSeries(),this.isRegressionReady=!0}}else null!=r&amp;&amp;(this.warning=C[r.message]);this.onLoading=!1},async getRollingRegressionResult(){if(1==this.onRolling||0==this.factorModels.length)return;const{start:t,end:e}=this.params;let a=[];if(a="GROUPED"==this.params.factor.factorType?this.factorOptions.map(t=&gt;t.code):this.params.factor.factors.map(t=&gt;t.code),0==a.length)return void this.$message.warning("è¯·å…ˆé€‰æ‹©å›&nbsp;å­");this.onRolling=!0,this.isRollingReady=!1,this.rollingWarning=null;let i=[],s=[],r=this.params.period.rolling_window.daily;"WEEK"==this.product.valuationPeriod&amp;&amp;(r=this.params.period.rolling_window.weekly);const o=await this.$factorRegressionService.getRollingRegression(this.productId,a,t,e,r);if(null!=o&amp;&amp;0==o.errorNo){const t=o.result;null==t?this.rollingWarning="å·²é€‰å›&nbsp;å­æš´éœ²éƒ½ä¸æ˜¾è‘—":(s.push({productName:this.productName,data:t}),Object.keys(t).forEach(t=&gt;{const e=this.params.factor.factors.find(e=&gt;e.type==t);e&amp;&amp;!i.includes(e)&amp;&amp;i.push(e)}),this.rollingResult={factors:i,data:s},this.buildProductRollingView(this.productName),this.isRollingReady=!0)}else null!=o&amp;&amp;(this.rollingWarning=C[o.message]);this.onRolling=!1},async loadFundReturnSeries2(t,e,a){if(t){let i=t.perfStartDate;e&amp;&amp;i&amp;&amp;e&lt;i&amp;&amp;(e=i);const{productId:s,id:r,productShortName:o,strategyCode:n}=t,l=s||r;let c=null;const h=this.$store.getters.getStrategyName(n,1);if(c=h&amp;&amp;"è‚¡ç¥¨å¤šå¤´"==h?await this.$returnService.getDiffReturnSeries(l,null,e,a):await this.$returnService.getReturnSeries(l,e,a),c&amp;&amp;c.length){const t=this.fundReturnSeries.find(t=&gt;t.productId==l);t?t.series=c:this.fundReturnSeries.push({productId:l,productName:o,series:c})}}},async loadFactorSeries(t){let{start:e,end:a}=this.params;const i=t||this.params.factor.factors||[];let s=this.product?this.product.perfStartDate:"";e&amp;&amp;e&lt;s&amp;&amp;(e=s);for(const r of i){if(this.factorReturnSeries[r.name])continue;const t=await this.$service.modelFactorConfigService.getFactorSeries(r.code,e,a);t&amp;&amp;(this.factorReturnSeries[r.name]=t)}},onFactorTypeChange(t){this.params.factor.factors=[]},onModelChange(t){this.params.factor.factors=[],this.products=(this.products||[]).map(t=&gt;{const e=this.validateProductStrategy(t);return Object.assign({},t,{disabled:!e})})},buildReturnSeries(){if(this.regressionData&amp;&amp;this.fundReturnSeries&amp;&amp;this.fundReturnSeries.length){const{identifier:t,results:e}=this.regressionData;let a=null,i=null;const s=this.fundReturnSeries.filter(e=&gt;e.productName==t).map(t=&gt;{(null==a||a&gt;t.series[0].date)&amp;&amp;(a=t.series[0].date),(null==i||i&lt;t.series[t.series.length-1].date)&amp;&amp;(i=t.series[t.series.length-1].date);const e=r["b"].cumprod(t.series.map(t=&gt;({x:t.date,y:t.value})));return{legendName:t.productName,data:e}});if(this.factorReturnSeries&amp;&amp;Object.keys(this.factorReturnSeries).length){const t=(e||[]).map(t=&gt;this.getFactorNameByType(t.factorName)),o=Object.entries(this.factorReturnSeries).filter(e=&gt;t.includes(e[0])).map(([t,e])=&gt;{const s=this.factorLists.find(e=&gt;e.name==t);if("return"==s.calcType){const o=e.filter(t=&gt;(null==a||t.date&gt;=a)&amp;&amp;(null==i||t.date&lt;=i)).map(t=&gt;({x:t.date,y:t.value*s.multiplier}));return{legendName:t,data:r["b"].cumprod(o),yAxis:"left"}}{const o=e.filter(t=&gt;(null==a||t.date&gt;=a)&amp;&amp;(null==i||t.date&lt;=i)).map(t=&gt;({x:t.date,y:t.value*s.multiplier}));return{legendName:t,data:r["b"].roundNumber(o),yAxis:"right"}}});s.push(...o)}this.returnChartSeries=s}else this.returnChartSeries=[]},buildEstReturnSeries(){if(this.regressionData){const{fittingResults:t}=this.regressionData,{productId:e,id:a,productShortName:i}=this.product,s=e||a,o=this.fundReturnSeries.filter(t=&gt;t.productId==s).map(t=&gt;{const e=r["b"].cumprod(t.series.map(t=&gt;({x:t.date,y:t.value})));return{legendName:i,data:e}}),n=t.map(({date:t,value:e})=&gt;({x:t,y:e}));this.estReturnChartSeries=[...o,{legendName:"å›žå½’æ‹Ÿåˆæ”¶ç›Š",data:r["b"].cumprod(n)}]}else this.estReturnChartSeries=[]},buildProductRollingView(t){if(this.rollingChartOption=null,t){const e=this.rollingResult.data.find(e=&gt;e.productName==t),a=Object.entries(e.data).filter(([t,e])=&gt;!(!e||!e.length)&amp;&amp;null!=e.find(t=&gt;0!=t.value)).map(([t,e])=&gt;{const a=this.getFactorNameByType(t);return{legendName:a,data:e}}),i=new y["o"](a).option;this.rollingChartOption=i,this.rollingChartHeight=110+24*a.length}},buildFactorRollingView(t){if(this.rollingChartOption=null,t){const e=(this.rollingResult.data||[]).map(e=&gt;{const{productName:a,data:i}=e,s=i[t];return s?{legendName:a,data:s}:null}).filter(t=&gt;null!=t);if(e&amp;&amp;e.length){const t=new y["o"](e).option;this.rollingChartOption=t,this.rollingChartHeight=110+24*e.length}}},validateProductBenchmark(t){let e=!0;if(t){const{strategyCode:a}=t,i=this.$store.getters.getStrategyName(a,1);"è‚¡ç¥¨å¤šå¤´"==i&amp;&amp;(e=this.benchmarkExist)}return e||this.$message.warning(t.productShortName+"å°šæœªé…ç½®è¶…é¢åŸºå‡†ï¼Œæ—&nbsp;æ³•æ‰§è¡Œå›žå½’"),e},validateProduct(t){if(null==t)return"æœªé€‰æ‹©äº§å“";const{strategyCode:e}=t,a=["å¸‚åœºä¸­æ€§","è‚¡ç¥¨å¤šå¤´","ç®¡ç†æœŸè´§","å¤åˆç­–ç•¥"],i=this.$store.getters.getStrategyName(e,1);return a.includes(i)?"è‚¡ç¥¨å¤šå¤´"!=i||this.benchmarkExist?void 0:"è¯·é…ç½®è¶…é¢åŸºå‡†":"ç›®å‰åªæ”¯æŒè‚¡ç¥¨å¤šå¤´ã€è‚¡ç¥¨å¸‚åœºä¸­æ€§ã€ç®¡ç†æœŸè´§ã€å¤åˆç­–ç•¥å››ç§ç§å‹Ÿç­–ç•¥ç±»åž‹ï¼Œå…¶ä»–ç±»åž‹çš„æ”¯æŒæ­£åœ¨å®Œå–„ä¸­"},getFactorNameByType(t){const e=this.factorLists.find(e=&gt;e.type==t);return e?e.name:null},formatDecimal(t,e,a){return a?n["a"].formatNumber2(a,4):a},formatPercent(t,e,a){return a?n["a"].formatPercent(a,2):a}},filters:{formatModelType(t){return"index"==t?"è‚¡ç¥¨ç±»":"cfutures"==t?"æœŸè´§ç±»":t},formatParams(t){return n["a"].roundNumber(t,4)}}},k=A,O=(a("246e"),Object(u["a"])(k,i,s,!1,null,"833bd1e2",null));e["a"]=O.exports},6271:function(t,e,a){},"63ee":function(t,e,a){},"697f":function(t,e,a){},"6b86":function(t,e,a){"use strict";a("86c3")},7480:function(t,e,a){},7567:function(t,e,a){"use strict";a("63ee")},7954:function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-popover",{attrs:{placement:"bottom-start",trigger:"click"},on:{show:function(e){return t.showPopup()}},model:{value:t.popupShow,callback:function(e){t.popupShow=e},expression:"popupShow"}},[a("el-row",[a("el-col",{staticStyle:{"margin-top":"3px","font-size":"14px","font-weight":"bold",color:"black"},attrs:{span:18}},[t._v(" è®¾ç½®æŽ’åºæ¡ä»¶ "),a("el-tooltip",{attrs:{effect:"dark","open-delay":500,content:"é€‰æ‹©æŽ’åºæ¡ä»¶ï¼Œä¿¡æ¯å°†æ&nbsp;¹æ®è¯¥æ¡ä»¶è¿›è¡Œé¡ºåºæˆ–å€’åºæŽ’åˆ—ã€‚å½“é€‰æ‹©å¤šä¸ªæ¡ä»¶æ—¶ï¼Œæ•°æ®å°†æ&nbsp;¹æ®æ¡ä»¶é¡ºåºé€å±‚æŽ’åº",placement:"top"}},[a("i",{staticClass:"el-icon-info"})])],1),a("el-col",{attrs:{span:6,align:"right"}},[a("i",{staticClass:"el-icon-close",staticStyle:{cursor:"pointer"},on:{click:t.cancel}})])],1),a("el-table",{staticClass:"th-el-table",attrs:{size:"mini","highlight-current-row":"",data:t.selectedFieldList,"max-height":500}},[a("el-table-column",{attrs:{type:"index",width:"50",align:"center"}}),a("el-table-column",{attrs:{label:"å­—æ®µ",align:"center",width:"200","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-select",{attrs:{"value-key":"value",size:"mini"},model:{value:e.row.prop,callback:function(a){t.$set(e.row,"prop",a)},expression:"scope.row.prop"}},t._l(t.getFieldList(e.$index),(function(t){return a("el-option",{key:t.prop+"_selected",attrs:{label:t.label,value:t.prop}})})),1)]}}])}),a("el-table-column",{attrs:{label:"æŽ’åº",align:"center",width:"200","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-radio-group",{attrs:{size:"mini"},model:{value:e.row.sortOrder,callback:function(a){t.$set(e.row,"sortOrder",a)},expression:"scope.row.sortOrder"}},[a("el-radio-button",{attrs:{label:"none"}},[t._v("ä¸æŽ’")]),a("el-radio-button",{attrs:{label:"ascending"}},[t._v("å‡åº")]),a("el-radio-button",{attrs:{label:"descending"}},[t._v("é™åº")])],1)]}}])}),a("el-table-column",{attrs:{label:"æ“ä½œ",width:"100",align:"center","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("i",{staticClass:"iconfont icon-shanchu2 margin-l20",staticStyle:{cursor:"pointer",color:"#3585cb"},on:{click:function(e){return t.deleteOrder(t.index)}}}),a("i",{staticClass:"el-icon-top",staticStyle:{"margin-left":"5px",cursor:"pointer"},on:{click:function(e){return t.moveUp(t.index)}}}),a("i",{staticClass:"el-icon-bottom",staticStyle:{"margin-left":"5px",cursor:"pointer"},on:{click:function(e){return t.moveDown(t.index)}}})]}}])})],1),a("el-row",{staticClass:"margin-t10"},[a("el-col",{attrs:{align:"center"}},[t.selectedFieldList.length!=t.fieldList.length?a("el-button",{attrs:{size:"mini"},on:{click:t.toAdd}},[t._v("æ·»åŠ&nbsp;æ¡ä»¶")]):t._e(),a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:t.apply}},[t._v("åº”ç”¨")])],1)],1),a("span",{attrs:{slot:"reference",size:"mini",type:"primary"},slot:"reference"},[a("span",{staticStyle:{color:"black"}},[t._v(t._s(t.description))]),a("span",{staticClass:"th-link-click"},[a("i",{staticClass:"iconfont icon-sort-ascending"}),t._v("è‡ªå®šä¹‰æŽ’åº")])])],1)},s=[],r=a("2e7b"),o=r["a"],n=a("0c7c"),l=Object(n["a"])(o,i,s,!1,null,"1fdf27c8",null);e["a"]=l.exports},"7afe":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.readOnly?a("el-alert",{attrs:{type:"warning",title:t.warningMessage,"show-icon":""}}):t._e(),a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.isLoading||t.onSaving,expression:"isLoading || onSaving"}],ref:"costForm",attrs:{model:t.formData,"label-width":"120px",inline:!1,rules:t.addFormRules,disabled:t.readOnly||t.onSaving}},[a("el-form-item",{attrs:{label:"è®¡ææ–¹å¼ï¼š",prop:"calculationMethod"}},[a("el-select",{staticStyle:{width:"150px"},attrs:{size:"mini"},on:{change:function(e){return t.changeCalculationMethod(t.formData)}},model:{value:t.formData.calculationMethod,callback:function(e){t.$set(t.formData,"calculationMethod",e)},expression:"formData.calculationMethod"}},t._l(t.calculationMethodDic,(function(t,e){return a("el-option",{key:"method_"+e,attrs:{label:t,value:e}})})),1),a("el-select",{staticStyle:{width:"150px"},attrs:{size:"mini",disabled:"OVERALL"==t.formData.calculationMethod},on:{change:function(e){return t.changeCalculationMethodDetail(t.formData)}},model:{value:t.formData.calculationMethodDetail,callback:function(e){t.$set(t.formData,"calculationMethodDetail",e)},expression:"formData.calculationMethodDetail"}},t._l(t.calculationMethodDetailDic,(function(t,e){return a("el-option",{key:"asdf_"+e,attrs:{label:t,value:e}})})),1),a("span",{directives:[{name:"show",rawName:"v-show",value:"THRESHOLD_BASED"==t.formData.calculationMethodDetail,expression:"formData.calculationMethodDetail == 'THRESHOLD_BASED'"}],staticStyle:{"margin-left":"10px"}},[a("el-input",{staticStyle:{width:"140px"},attrs:{size:"mini","auto-complete":"off",placeholder:"è¯·è¾“å…¥é—¨æ§›æ”¶ç›ŠçŽ‡"},model:{value:t.formData.perfBenchmark,callback:function(e){t.$set(t.formData,"perfBenchmark",e)},expression:"formData.perfBenchmark"}}),t._v("ï¼ˆ%ï¼‰ "),a("el-checkbox",{model:{value:t.formData.returnRestriction,callback:function(e){t.$set(t.formData,"returnRestriction",e)},expression:"formData.returnRestriction"}},[t._v("æå–åŽä¸èƒ½å°‘äºŽä¸šç»©åŸºå‡†")])],1),a("span",{directives:[{name:"show",rawName:"v-show",value:"BENCHMARK_BASED"==t.formData.calculationMethodDetail,expression:"formData.calculationMethodDetail == 'BENCHMARK_BASED'"}]},[a("el-select",{staticStyle:{width:"150px","margin-left":"5px"},attrs:{clearable:"",filterable:"",size:"mini",placeholder:"è¯·é€‰æ‹©æŒ‡æ•°"},model:{value:t.formData.perfBenchmarkProductId,callback:function(e){t.$set(t.formData,"perfBenchmarkProductId",e)},expression:"formData.perfBenchmarkProductId"}},t._l(t.benchmarkOptions,(function(t,e){return a("el-option",{key:"fee_bench_"+e,attrs:{label:t.label,value:t.value}})})),1),a("el-checkbox",{staticStyle:{"margin-left":"10px"},model:{value:t.formData.returnRestriction,callback:function(e){t.$set(t.formData,"returnRestriction",e)},expression:"formData.returnRestriction"}},[t._v("æå–åŽåŸºé‡‘æ”¶ç›Šä¸èƒ½ä¸ºè´Ÿ")]),a("el-checkbox",{staticStyle:{"margin-left":"10px"},model:{value:t.formData.benchmarkRestriction,callback:function(e){t.$set(t.formData,"benchmarkRestriction",e)},expression:"formData.benchmarkRestriction"}},[t._v("åŸºå‡†ç´¯è®¡æ”¶ç›Šä¸èƒ½ä¸ºè´Ÿ, max(åŸºå‡†åŒæœŸç´¯è®¡æ”¶ç›Š, 0)")])],1)],1),"THRESHOLD_BASED"==t.formData.calculationMethodDetail||"BENCHMARK_BASED"==t.formData.calculationMethodDetail?a("el-form-item",{attrs:{prop:"provisionScope"}},[a("span",{attrs:{slot:"label"},slot:"label"},[a("span",[t._v("è®¡æèŒƒå›´ï¼š")]),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"ï¼ˆ1ï¼‰æŒæœ‰æœŸè¶…é¢æ”¶ç›ŠæŒ‡çš„æ˜¯è¶…å‡ºä¸šç»©æŠ¥é…¬è®¡æåŸºå‡†çš„æŒæœ‰æœŸå·®é¢æ”¶ç›Šï¼Œå³ç´¯è®¡æ”¶ç›ŠçŽ‡è¶…å‡ºéƒ¨åˆ†;\n                     ï¼ˆ2ï¼‰æŒæœ‰æœŸæ”¶ç›ŠæŒ‡çš„æ˜¯ç´¯è®¡æ”¶ç›ŠçŽ‡æœ¬èº«ã€‚",placement:"bottom-start"}},[a("i",{staticClass:"el-icon-info"})])],1),a("el-select",{staticStyle:{width:"150px"},attrs:{size:"mini",clearable:""},model:{value:t.formData.provisionScope,callback:function(e){t.$set(t.formData,"provisionScope",e)},expression:"formData.provisionScope"}},t._l(t.feeProvisionScopeDic,(function(t,e){return a("el-option",{key:"fp_"+e,attrs:{label:t,value:e}})})),1)],1):t._e(),a("el-form-item",{attrs:{label:"æ‰£å‡æ–¹å¼ï¼š",prop:"provisionMethod"}},[a("el-select",{staticStyle:{width:"100px"},attrs:{size:"mini",clearable:""},model:{value:t.formData.provisionMethod,callback:function(e){t.$set(t.formData,"provisionMethod",e)},expression:"formData.provisionMethod"}},t._l(t.feeProvisionMethodDic,(function(t,e){return a("el-option",{key:"fpm_"+e,attrs:{label:t,value:e}})})),1)],1),a("el-form-item",{attrs:{label:"è®¡ææ—¶ç‚¹ï¼š",prop:"feeProvisionDateConfigs"}},[a("el-checkbox-group",{on:{change:t.changeFeeProvisionDateConfig},model:{value:t.formData.feeProvisionDateConfigs,callback:function(e){t.$set(t.formData,"feeProvisionDateConfigs",e)},expression:"formData.feeProvisionDateConfigs"}},[a("div",[a("el-checkbox",{attrs:{label:"REDEMPTION"}},[t._v("èµŽå›ž")]),a("el-checkbox",{attrs:{label:"DIVIDEND"}},[t._v("åˆ†çº¢")]),a("el-checkbox",{attrs:{label:"TERMINATION"}},[t._v("ç»ˆæ­¢")]),a("el-checkbox",{attrs:{label:"OPEN"}},[t._v("å¼€æ”¾æ—¥"+t._s(t.getMethodDesc()))]),a("el-checkbox",{attrs:{label:"FREQUENCY_BASED"}},[t._v("å›ºå®šæ—¶ç‚¹"+t._s(t.getMethodDesc()))])],1)])],1),t.isProvisionFrequencyChecked?a("el-form-item",{attrs:{label:"å›ºå®šæ—¶ç‚¹è§„åˆ™ï¼š",prop:"openDayList"}},[t._v(" "+t._s(t.openDayDesc||"æœªè®¾ç½®")+" "),a("el-button",{staticStyle:{"font-size":"12px"},attrs:{type:"text"},on:{click:t.showOpenDayDialog}},[t._v("è®¾ç½®è§„åˆ™")])],1):t._e(),a("el-row",[a("el-col",{attrs:{span:5.5}},[a("el-form-item",{attrs:{label:"æ”¶è´¹æ¨¡å¼ï¼š",prop:"rateType"}},[a("el-select",{staticStyle:{width:"150px"},attrs:{size:"mini"},on:{change:t.changeRateType},model:{value:t.formData.rateType,callback:function(e){t.$set(t.formData,"rateType",e)},expression:"formData.rateType"}},t._l(t.rateTypeOptions,(function(t){return a("el-option",{key:"rt_"+t.id,attrs:{label:t.value,value:t.id}})})),1)],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{prop:"rateAnnualized"}},[a("span",{attrs:{slot:"label"},slot:"label"},[a("span",[t._v("æ”¶ç›Šè®¡ç®—æ–¹å¼ï¼š")]),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"bottom"}},[t.formData.rateAnnualized?a("div",{attrs:{slot:"content"},slot:"content"},[t._v(" å‡è®¾è´¹ç”¨è®¡æè§„åˆ™ä¸º0-10%æ”¶å–20%, 10ä»¥ä¸Šæ”¶å–30%:"),a("br"),t._v(" â€¢ æœ¬è®¡æç‚¹ç´¯è®¡å‡€å€¼A"),a("br"),t._v(" â€¢ ä¸Šä¸€è®¡æç‚¹è®¡æåŽç´¯è®¡å‡€å€¼Cã€å•ä½å‡€å€¼D"),a("br"),t._v(" â€¢ ä¸¤æ¬¡è®¡æç‚¹ä¹‹é—´çš„è‡ªç„¶æ—¥å¤©æ•°T"),a("br"),t._v(" â€¢ åŒºé—´æ”¶ç›ŠçŽ‡r=(A-C)/D"),a("br"),t._v(" â€¢ åŒºé—´å¹´åŒ–æ”¶ç›ŠçŽ‡R=(365/T)*(A-C)/D"),a("br"),t._v(" âœ” å½“0%&lt;R&lt;=10%æ—¶ï¼Œå•ä½ä»½é¢è®¡æ=D*(R-0%)*20%*T/365"),a("br"),t._v(" âœ” å½“R&gt;10%æ—¶ï¼Œå•ä½ä»½é¢è®¡æ=D*[(R-10%)*30%-(10%-0%)*20%]*T/365"),a("br"),t._v(" æ³¨æ„ ï¼šå¯¹é—¨æ§›æ”¶ç›ŠçŽ‡æ³•ï¼Œå½•å…¥çš„é—¨æ§›æ”¶ç›ŠçŽ‡ä¸ºå¹´åŒ–æ”¶ç›ŠçŽ‡ã€‚ ")]):t.formData.rateAnnualized?t._e():a("div",{attrs:{slot:"content"},slot:"content"},[t._v(" å‡è®¾è´¹ç”¨è®¡æè§„åˆ™ä¸º0-10%æ”¶å–20%, 10ä»¥ä¸Šæ”¶å–30%:"),a("br"),t._v(" â€¢ æœ¬è®¡æç‚¹ç´¯è®¡å‡€å€¼A"),a("br"),t._v(" â€¢ ä¸Šä¸€è®¡æç‚¹è®¡æåŽç´¯è®¡å‡€å€¼Cã€å•ä½å‡€å€¼D"),a("br"),t._v(" â€¢ åŒºé—´æ”¶ç›ŠçŽ‡r=(A-C)/D"),a("br"),t._v(" âœ” å½“0%&lt;r&lt;=10%æ—¶ï¼Œå•ä½ä»½é¢è®¡æ=D*r*20%=(A-C)*20%"),a("br"),t._v(" âœ” å½“r&gt;10%æ—¶ï¼Œå•ä½ä»½é¢è®¡æ=D*[(r-10%)*30%-(10%-0%)*20%] ")]),a("i",{staticClass:"el-icon-info"})])],1),a("el-select",{staticStyle:{width:"100px"},attrs:{size:"mini",clearable:""},model:{value:t.formData.rateAnnualized,callback:function(e){t.$set(t.formData,"rateAnnualized",e)},expression:"formData.rateAnnualized"}},t._l(t.rateAnnualizedOptions,(function(t){return a("el-option",{key:"rt_"+t.value,attrs:{label:t.label,value:t.value}})})),1)],1)],1)],1),"FIXED"==t.formData.rateType?a("el-form-item",{attrs:{label:"è´¹ç”¨ï¼š",prop:"fixedValue"}},[a("el-input",{staticStyle:{width:"140px"},attrs:{size:"mini","auto-complete":"off",placeholder:"è¯·è¾“å…¥"},model:{value:t.formData.rangeDetails[0].value,callback:function(e){t.$set(t.formData.rangeDetails[0],"value",e)},expression:"formData.rangeDetails[0].value"}}),t._v("ï¼ˆ%ï¼‰ ")],1):t._e(),"FLOAT"==t.formData.rateType?a("el-form-item",{attrs:{prop:"floatValue"}},t._l(t.formData.rangeDetails,(function(e,i){return a("el-row",{key:"range_detail"+i},[a("hr",{staticClass:"hr-dash margin-b10"}),a("el-row",[a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"æ¯”ä¾‹åŒºé—´"+(i+1)+"ï¼š"}},[a("el-input",{staticStyle:{width:"140px"},attrs:{size:"mini","auto-complete":"off",placeholder:"ä¸‹é™",maxlength:20},model:{value:e.sectionLowerLimit,callback:function(a){t.$set(e,"sectionLowerLimit",a)},expression:"rangeDetailItem.sectionLowerLimit"}}),t._v("ï¼ˆ%ï¼‰ ")],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",[a("el-input",{staticStyle:{width:"220px"},attrs:{size:"mini",disabled:e.noUpperLimit,"auto-complete":"off",placeholder:e.noUpperLimit?"æ—&nbsp;ä¸Šé™":"ä¸Šé™",maxlength:20},model:{value:e.sectionUpperLimit,callback:function(a){t.$set(e,"sectionUpperLimit",a)},expression:"rangeDetailItem.sectionUpperLimit"}},[i==t.formData.rangeDetails.length-1?a("el-checkbox",{staticStyle:{width:"50px"},attrs:{slot:"prepend"},on:{change:function(a){return t.toggleUpperLimit(e)}},slot:"prepend",model:{value:e.noUpperLimit,callback:function(a){t.$set(e,"noUpperLimit",a)},expression:"rangeDetailItem.noUpperLimit"}},[t._v("æ—&nbsp;ä¸Šé™ ")]):t._e()],1),t._v("ï¼ˆ%ï¼‰ ")],1)],1),a("el-col",{attrs:{span:8}},[a("el-form-item",{attrs:{label:"è´¹ç”¨ï¼š"}},[a("el-input",{staticStyle:{width:"150px"},attrs:{size:"mini","auto-complete":"off",placeholder:"è¯·è¾“å…¥"},model:{value:e.value,callback:function(a){t.$set(e,"value",a)},expression:"rangeDetailItem.value"}}),t._v("ï¼ˆ%ï¼‰ "),e.noUpperLimit||i!=t.formData.rangeDetails.length-1?t._e():a("span",{staticClass:"pointer add",on:{click:function(e){return t.addRangeDetail(t.formData)}}},[a("i",{staticClass:"fa fa-plus"})]),a("span",{directives:[{name:"show",rawName:"v-show",value:t.formData.rangeDetails&amp;&amp;t.formData.rangeDetails.length&gt;1,expression:"\n                  formData.rangeDetails &amp;&amp; formData.rangeDetails.length &gt; 1\n                "}],staticClass:"pointer add",on:{click:function(e){return t.subRangeDetail(t.formData,i)}}},[a("i",{staticClass:"fa fa-times"})])],1)],1)],1)],1)})),1):t._e(),a("el-form-item",{attrs:{label:"è¯¦æƒ…ï¼š"}},[a("el-input",{attrs:{type:"textarea",size:"mini","auto-complete":"off",placeholder:"è¯·è¾“å…¥è¯¦æƒ…",maxlength:500},model:{value:t.formData.description,callback:function(e){t.$set(t.formData,"description",e)},expression:"formData.description"}})],1),a("el-row",[a("el-col",{staticStyle:{"padding-left":"110px"},attrs:{span:24}},[a("div",{staticStyle:{padding:"3px 5px 10px 0px"}},[t._v(" "+t._s(t.getFeeDesc(t.formData))+" ")])])],1),a("el-form-item",{attrs:{"label-width":"0px",align:"center"}},[a("el-badge",{attrs:{"is-dot":t.isDirty}},[a("el-button",{attrs:{size:"mini",type:"primary"},nativeOn:{click:function(e){return t.submitData.apply(null,arguments)}}},[t._v("ç¡®å®š")])],1),a("el-button",{attrs:{size:"mini",type:"primary",loading:t.isLoading},on:{click:t.loadData}},[t._v("é‡ç½®")]),a("el-button",{attrs:{size:"mini",disabled:!1},on:{click:t.onClosed}},[t._v("å–æ¶ˆ")])],1)],1),a("el-dialog",{attrs:{title:"è§„åˆ™è®¾ç½®",visible:t.openDayDialogVisible,"close-on-click-modal":!1,"append-to-body":""},on:{"update:visible":function(e){t.openDayDialogVisible=e},close:t.hideOpenDayDialog}},[a("openDayConfig",{ref:"purchaseRedemptionConfig",attrs:{paramOpenDayList:t.formData.openDayList,transactionType:"PERFORMANCE_FEE",mode:"FEE"}}),a("el-form",{attrs:{"label-width":"120px"}},[a("el-form-item",[a("span",{attrs:{slot:"label"},slot:"label"},[a("span",[t._v("é¢„è§ˆåŠæè¿° "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",content:"åªèƒ½é¢„è§ˆåˆ°ä»Šå¹´å¹´åº•",placement:"top","open-delay":500}},[a("i",{staticClass:"el-icon-info"})]),t._v(" ï¼š ")],1)]),t._l(t.previewDateList,(function(t){return a("p",[a("see-more",{attrs:{content:t,showLength:120}})],1)})),t._l(t.openDayDescList,(function(t){return a("p",[a("see-more",{attrs:{content:t,showLength:120}})],1)}))],2)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{size:"mini",type:"primary"},nativeOn:{click:function(e){return t.preview.apply(null,arguments)}}},[t._v("é¢„è§ˆ")]),a("el-button",{attrs:{size:"mini",type:"primary"},nativeOn:{click:function(e){return t.confirmOpenDayInfo.apply(null,arguments)}}},[t._v("ç¡®å®š")]),a("el-button",{attrs:{size:"mini"},on:{click:t.hideOpenDayDialog}},[t._v("å–æ¶ˆ")])],1)],1)],1)},s=[],r=(a("d9e2"),a("14d9"),a("2ef0")),o=a.n(r),n=a("8b55"),l=a("1bcd"),c=a("f37e"),h={name:"performance-fee-update",components:{openDayConfig:l["a"],seeMore:c["a"]},props:{productId:{type:Number},perfFeeParamData:{type:Object,default:()=&gt;{}},visible:{type:Boolean,default:!1},readOnly:Boolean},data(){let t=(t,e,a)=&gt;{"THRESHOLD_BASED"==this.formData.calculationMethodDetail&amp;&amp;(null==this.formData.perfBenchmark||this.formData.perfBenchmark&lt;0)?a(new Error("é—¨æ§›æ”¶ç›ŠçŽ‡å¿…é¡»å¤§äºŽç­‰äºŽ0")):"BENCHMARK_BASED"!=this.formData.calculationMethodDetail||this.formData.perfBenchmarkProductId?a():a(new Error("è¯·é€‰æ‹©æŒ‡æ•°"))},e=(t,e,a)=&gt;{(this.formData.feeProvisionDateConfigs.includes("FREQUENCY_BASED")||this.formData.feeProvisionDateConfigs.includes("OPEN"))&amp;&amp;(this.formData.provisionMethod||a(new Error("è¯·é€‰æ‹©æ‰£å‡æ–¹å¼ï¼ˆè®¡ææ—¶ç‚¹å‹¾é€‰å¼€æ”¾æ—¥æˆ–å›ºå®šæ—¶ç‚¹æ—¶ï¼Œæ‰£å‡æ–¹å¼å¿…å¡«ï¼‰"))),a()},a=(t,e,a)=&gt;{"THRESHOLD_BASED"!=this.formData.calculationMethodDetail&amp;&amp;"BENCHMARK_BASED"!=this.formData.calculationMethodDetail||this.formData.provisionScope||a(new Error("è¯·é€‰æ‹©è®¡æèŒƒå›´")),a()},i=(t,e,a)=&gt;{"THRESHOLD_BASED"==this.formData.calculationMethodDetail&amp;&amp;(null==this.formData.perfBenchmark||this.formData.perfBenchmark&lt;0)?a(new Error("é—¨æ§›æ”¶ç›ŠçŽ‡å¿…é¡»å¤§äºŽç­‰äºŽ0")):"BENCHMARK_BASED"!=this.formData.calculationMethodDetail||this.formData.perfBenchmarkProductId?a():a(new Error("è¯·é€‰æ‹©æŒ‡æ•°"))},s=(t,e,a)=&gt;{this.formData.rangeDetails&amp;&amp;this.formData.rangeDetails.length&gt;0&amp;&amp;null==this.formData.rangeDetails[0].value?a(new Error("è¯·è¾“å…¥è´¹ç”¨")):a()},r=(t,e,a)=&gt;{let i=null;for(let s=0;s&lt;this.formData.rangeDetails.length;s++){let t=this.formData.rangeDetails[s];null==t.sectionLowerLimit&amp;&amp;a(new Error("è¯·å¡«å†™æ¯”ä¾‹åŒºé—´"+(s+1)+"çš„ä¸‹é™")),null!=t.sectionUpperLimit||t.noUpperLimit||a(new Error("è¯·å¡«å†™æ¯”ä¾‹åŒºé—´"+(s+1)+"çš„ä¸Šé™")),null==t.value&amp;&amp;a(new Error("è¯·å¡«å†™æ¯”ä¾‹åŒºé—´"+(s+1)+"çš„è´¹ç”¨"));let e=parseFloat(t.sectionLowerLimit),r=t.noUpperLimit?9999:parseFloat(t.sectionUpperLimit);e&gt;r&amp;&amp;a(new Error("æ¯”ä¾‹åŒºé—´"+(s+1)+"çš„ä¸‹é™ï¼ˆ"+t.sectionLowerLimit+"%ï¼‰ä¸èƒ½å¤§äºŽä¸Šé™ï¼ˆ"+t.sectionUpperLimit+"%ï¼‰")),null!=i&amp;&amp;parseFloat(t.sectionLowerLimit)&lt;parseFloat(i.sectionUpperLimit)&amp;&amp;a(new Error("æ¯”ä¾‹åŒºé—´"+(s+1)+"çš„ä¸‹é™ï¼ˆ"+t.sectionLowerLimit+"%ï¼‰ä¸èƒ½å°äºŽä¸Šä¸€åŒºé—´çš„ä¸Šé™ï¼ˆ"+i.sectionUpperLimit+"%ï¼‰")),i=t}a()};return{isLoading:!1,product:null,openDayDialogVisible:!1,previewDateList:[],openDayDescList:[],rangeDetailTemplate:{rateOrAmt:1,value:null,sectionLowerLimit:null,sectionUpperLimit:null,noUpperLimit:null},formData:{type:"PERFORMANCE_FEE",calculationMethod:"TRANSACTION_BASED",calculationMethodDetail:"HIGH_WATER_MARK",feeProvisionDateConfigs:[],provisionMethod:"DISCOUNT_SHARE",provisionScope:null,rateType:"FLOAT",rateAnnualized:null,description:null,rangeDetails:[{rateOrAmt:1,value:null,sectionLowerLimit:null,sectionUpperLimit:null,noUpperLimit:null}],firstLevel:null,secondLevel:null,day:null,startDate:null,perfBenchmark:null,perfBenchmarkProductId:null,returnRestriction:!1,benchmarkRestriction:!1,openDayList:[]},backupFormData:{},openDayDesc:null,addFormRules:{calculationMethod:[{required:!0,message:"è¯·é€‰æ‹©è®¡ææ–¹å¼ä¿¡æ¯",trigger:"change"},{validator:t,trigger:"change"}],provisionScope:[{required:!1,message:"è¯·é€‰æ‹©è®¡æèŒƒå›´",trigger:"change"},{validator:a,trigger:"change"}],provisionMethod:[{required:!1,message:"è¯·é€‰æ‹©æ‰£å‡æ–¹å¼",trigger:"change"},{validator:e,trigger:"change"}],feeProvisionDateConfigs:[{required:!0,message:"è¯·é€‰æ‹©è®¡ææ—¶ç‚¹",trigger:"change"},{validator:i,trigger:"change"}],rateType:[{required:!0,message:"è¯·é€‰æ‹©æ”¶è´¹æ¨¡å¼",trigger:"change"}],rateAnnualized:[{required:!0,message:"è¯·é€‰æ‹©æ”¶ç›Šè®¡ç®—æ–¹å¼",trigger:"change"}],fixedValue:[{validator:s,trigger:"change"}],floatValue:[{validator:r,trigger:"change"}],openDayList:[{required:!0,message:"è¯·è®¾ç½®è§„åˆ™",trigger:"change"}]},onSaving:!1}},methods:{async loadProduct(){if(this.productId){const t=await this.$productService.getProductInfo(this.productId);this.product=t}else this.product=null},async preview(){let t=this.$refs["purchaseRedemptionConfig"].validConfig();if(!t)return;let e=o.a.cloneDeep(this.$refs["purchaseRedemptionConfig"].getOpenDayList()),a=[],i=[],s={transactionType:"PERFORMANCE_FEE",openDayList:e,productId:this.productId};const r=await this.$fundService.previewOpenDayWindow(s);a.push(r.openDayList.join("ï¼Œ")||"æ—&nbsp;");let n=await this.$api.getOpenDayDescByObj.postJson(s);i.push(n.result||"æ—&nbsp;"),this.previewDateList=a,this.openDayDescList=i},refreshOpenDayList(t){this.formData.openDayList=o.a.cloneDeep(t)},confirmOpenDayInfo(){let t=this.$refs["purchaseRedemptionConfig"].validConfig();t&amp;&amp;(this.formData.openDayList=o.a.cloneDeep(this.$refs["purchaseRedemptionConfig"].getOpenDayList()),this.refreshOpenDayDesc(),this.hideOpenDayDialog())},showOpenDayDialog(){this.openDayDialogVisible=!0,this.previewDateList=[],this.openDayDescList=[]},hideOpenDayDialog(){this.openDayDialogVisible=!1},getMethodDesc(){let t=this.feeProvisionMethodDic[this.formData.provisionMethod];return t?"ï¼ˆ"+t+"ï¼‰":""},async loadData(){if(this.isLoading=!0,this.perfFeeParamData&amp;&amp;this.perfFeeParamData["PERFORMANCE_FEE"]){let t=o.a.cloneDeep(this.perfFeeParamData["PERFORMANCE_FEE"]);t.feeProvisionDateConfigs||(t.feeProvisionDateConfigs=[]),t.perfBenchmark&amp;&amp;(t.perfBenchmark=(100*t.perfBenchmark).toFixed(2)),this.formData.id=t.id,this.formData.type=t.type,this.formData.description=t.description,this.formData.calculationMethod=t.calculationMethod,this.formData.calculationMethodDetail=t.calculationMethodDetail,this.formData.perfBenchmark=t.perfBenchmark,this.formData.perfBenchmarkProductId=t.perfBenchmarkProductId,this.formData.provisionMethod=t.provisionMethod,this.formData.provisionScope=t.provisionScope,this.formData.rateType=t.rateType,this.formData.rateAnnualized=t.rateAnnualized,this.formData.rangeDetails=t.rangeDetails,this.formData.returnRestriction=t.returnRestriction,this.formData.benchmarkRestriction=t.benchmarkRestriction,this.formData.openDayList=t.openDayList,this.formData.feeProvisionDateConfigs=t.feeProvisionDateConfigs.map(t=&gt;t.provisionDate)}else this.formData.calculationMethod="TRANSACTION_BASED",this.formData.calculationMethodDetail="HIGH_WATER_MARK",this.formData.feeProvisionDateConfigs=[],this.formData.provisionMethod="DISCOUNT_SHARE",this.formData.provisionScope="HOLDING_EXCESS_RETURN",this.formData.rateType="FLOAT",this.formData.rateAnnualized=null,this.formData.description=null,this.formData.firstLevel=null,this.formData.secondLevel=null,this.formData.day=null,this.formData.firstLevel=null,this.formData.startDate=null,this.formData.perfBenchmark=null,this.formData.perfBenchmarkProductId=null,this.formData.rangeDetails=[{rateOrAmt:1,value:null,sectionLowerLimit:null,sectionUpperLimit:null,noUpperLimit:null}],this.formData.openDayList=[];this.refreshOpenDayDesc(),this.backupFormData=o.a.cloneDeep(this.formData),this.isLoading=!1},async refreshOpenDayDesc(){let t={transactionType:"PERFORMANCE_FEE",openDayList:this.formData.openDayList},e=await this.$api.getOpenDayDescByObj.postJson(t);this.openDayDesc=e.result},optimiseCalculationMethodValue(){"THRESHOLD_BASED"!=this.formData.calculationMethodDetail&amp;&amp;(this.formData.perfBenchmark=null),"BENCHMARK_BASED"!=this.formData.calculationMethodDetail&amp;&amp;(this.formData.perfBenchmarkProductId=null)},changeFeeProvisionDateConfig(){this.formData.feeProvisionDateConfigs.indexOf("FREQUENCY_BASED")&lt;0?(this.formData.firstLevel=null,this.formData.secondLevel=null,this.formData.startDate=null,this.formData.day=null):(this.showSecondLevelDatePicker||(this.formData.startDate=null),this.showSecondLevelOption||(this.formData.secondLevel=null),"CUSTOMIZED"!=this.formData.secondLevel&amp;&amp;(this.formData.day=null))},changeFirstLevel(){this.formData.secondLevel=null,this.changeFeeProvisionDateConfig()},changeSecondLevel(){this.changeFeeProvisionDateConfig()},changeRateType(){"FIXED"==this.formData.rateType&amp;&amp;(this.formData.rangeDetails=[this.rangeDetailTemplate]),this.$refs.costForm.clearValidate()},submitData(){this.$refs.costForm.validate(t=&gt;{t&amp;&amp;this.submitDataInner()})},onClosed(t){this.$emit("onClosed",t.result),this.$emit("onCancel")},async submitDataInner(){this.onSaving=!0,this.formData.provisionMethod||(this.formData.provisionMethod=null);let t={productId:this.productId},e=o.a.cloneDeep(this.formData),a=[],i=e.openDayList;e.feeProvisionDateConfigs.forEach(t=&gt;{let e={provisionDate:t};"FREQUENCY_BASED"==t&amp;&amp;this.$refs["purchaseRedemptionConfig"]&amp;&amp;(i=o.a.cloneDeep(this.$refs["purchaseRedemptionConfig"].getOpenDayList())),a.push(e)}),e.feeProvisionDateConfigs=a,e.openDayList=i,e.provisionScope||(e.provisionScope=null);const s=await this.$api.productPerformanceFeeUpdate.postJson(e,t);0===s.errorNo?(this.$emit("reloadData"),this.onClosed(s.result)):this.$message.error("æäº¤å¤±è´¥"),this.onSaving=!1},getFeeDesc(t){return n["b"].getFeeDesc(t,this.benchmarkDesc)},toggleUpperLimit(t){t.noUpperLimit&amp;&amp;(t.sectionUpperLimit=null)},changeCalculationMethod(t){"OVERALL"===t.calculationMethod&amp;&amp;(this.formData.calculationMethodDetail="HIGH_WATER_MARK"),this.optimiseCalculationMethodValue()},changeCalculationMethodDetail(t){this.optimiseCalculationMethodValue(),this.formData.benchmarkRestriction=!1,"THRESHOLD_BASED"===this.formData.calculationMethodDetail?this.formData.returnRestriction=!1:"BENCHMARK_BASED"===this.formData.calculationMethodDetail&amp;&amp;(this.formData.returnRestriction=!0)},addRangeDetail(t){t.rangeDetails.push({value:null,rateOrAmt:1,sectionLowerLimit:null,sectionUpperLimit:null,noUpperLimit:null})},subRangeDetail(t,e){t.rangeDetails.splice(e,1)}},computed:{warningMessage(){if(null!=this.product&amp;&amp;this.readOnly){const{productType:t,code:e}=this.product;if("FUND"==t)return"æŠ•åŽäº§å“è¯·åŽ»ã€å­åŸºé‡‘ç®¡ç† - è´¹ç”¨ä¿¡æ¯ã€‘è®¾ç½®è´¹ç”¨è§„åˆ™";if("MASTER_FUND"==t&amp;&amp;null!=e)return"æŠ•åŽäº§å“è¯·åŽ»ã€æ¯åŸºé‡‘ç®¡ç† - è´¹ç”¨ä¿¡æ¯ã€‘è®¾ç½®è´¹ç”¨è§„åˆ™";if("MASTER_FUND"==t&amp;&amp;null==e)return"å·²å‘å¸ƒè™šæ‹Ÿç»„åˆè¯·è”ç³»å‘å¸ƒäººåœ¨ã€è™šæ‹Ÿç»„åˆã€‘ä¸­è®¾ç½®è´¹ç”¨è§„åˆ™"}return null},showSecondLevelOption(){return["QUARTERLY_FIRST_MONTH","QUARTERLY_SECOND_MONTH","QUARTERLY_LAST_MONTH"].indexOf(this.formData.firstLevel)&gt;=0},showSecondLevelDatePicker(){return["THREE_MONTH","HALF_YEAR","YEARLY"].indexOf(this.formData.firstLevel)&gt;=0},benchmarkDesc(){if(this.benchmarkOptions&amp;&amp;this.benchmarkOptions.length&gt;0)for(let t=0;t&lt;this.benchmarkOptions.length;t++){let e=this.benchmarkOptions[t];if(e.id==this.formData.perfBenchmarkProductId)return e.value}return"-"},feeProvisionMethodDic(){return this.$store.state.feeProvisionMethod},feeProvisionScopeDic(){return this.$store.state.feeProvisionScope},calculationMethodDic(){return this.$store.state.calculationMethod},calculationMethodDetailDic(){return this.$store.state.calculationMethodDetail},feeProvisionFrequencyDic(){return this.$store.state.feeProvisionFrequency},benchmarkOptions(){const t=[];return this.$store.state.marketIndexList&amp;&amp;t.push(...this.$store.state.marketIndexList),this.$store.state.customizedIndexList&amp;&amp;t.push(...this.$store.state.customizedIndexList),t},isProvisionFrequencyChecked(){return this.formData.feeProvisionDateConfigs&amp;&amp;this.formData.feeProvisionDateConfigs.includes("FREQUENCY_BASED")},allFeeTypeDic(){let t=JSON.parse(JSON.stringify(this.$store.state.feeType));return t},rateTypeOptions(){const t=Object.keys(this.$store.state.rateType).map(t=&gt;({id:t,value:this.$store.state.rateType[t]}));return t},rateAnnualizedOptions(){return[{value:!0,label:"å¹´åŒ–"},{value:!1,label:"ç´¯è®¡"}]},paramObj(){return{visible:this.visible,productId:this.productId,perfFeeParamData:this.perfFeeParamData}},isDirty(){return JSON.stringify(this.formData)!=JSON.stringify(this.backupFormData)}},watch:{paramObj:{deep:!0,immediate:!0,handler(t,e){this.visible&amp;&amp;(this.loadProduct(),this.loadData())}}},mounted(){this.loadProduct()}},d=h,p=a("0c7c"),u=Object(p["a"])(d,i,s,!1,null,"da140c76",null);e["a"]=u.exports},"7e8b":function(t,e,a){},"81d5":function(t,e,a){},"86c3":function(t,e,a){},"89c2":function(t,e,a){},"8ca8":function(t,e,a){"use strict";a("1b2a")},"935c":function(t,e,a){},9479:function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("span",{staticStyle:{"font-weight":"300"}},[a("span",[a("i",{class:["margin-l5","iconfont",t.iconStyle],style:{color:t.tipColor,cursor:"pointer","font-size":"14px"},on:{click:function(e){return e.stopPropagation(),e.preventDefault(),t.showDialog()}}})]),a("el-dialog",{staticClass:"explain_dialog",attrs:{visible:t.visible,title:t.title,"show-close":!0,width:t.dialogWidth,"append-to-body":""},on:{"update:visible":function(e){t.visible=e},close:t.close}},[a("div",{staticClass:"description-wrap"},[t.content?a("p",{staticStyle:{"line-height":"18px"},domProps:{innerHTML:t._s(t.content)}}):t._e(),t.imgUrls&amp;&amp;t.imgUrls.length&gt;0?t._l(t.imgUrls,(function(t){return a("img",{staticStyle:{display:"inline-block",height:"auto","max-width":"100%","margin-top":"10px"},attrs:{src:t}})})):t._e()],2)])],1)},s=[],r={props:{tipColor:{type:String,default:"#409EFF"},title:{type:String,default:"æç¤º"},content:{type:String,default:null},imgUrls:{type:Array,default(){return[]}},dialogWidth:{type:String,default:"750px"},iconStyle:{type:String,default:"icon-gongshi"}},data(){return{visible:!1}},methods:{showDialog(){this.visible=!0},close(){this.visible=!1}},computed:{}},o=r,n=(a("3ca4"),a("0c7c")),l=Object(n["a"])(o,i,s,!1,null,null,null);e["a"]=l.exports},9549:function(t,e,a){"use strict";var i=a("ade3"),s=(a("14d9"),a("9a0f")),r=a("ac8f"),o=a("2ef0"),n=a.n(o);class l{tooltipFormatter(t,e,a){let[i,s,r]=t.value;const o=e[i],n=a[s],l=t.seriesName;return l+"&lt;br/&gt;"+t.marker+n+" at "+o+": "+r}constructor(t,e,a,s,r){Object(i["a"])(this,"OPTION",{title:{text:"çƒ­åŠ›å›¾",show:!1},tooltip:{show:!0,position:"top",confine:!0},animation:!1,grid:{top:24,bottom:24,left:24,right:80,color:"#999999",containLabel:!0},xAxis:{type:"category",data:[],splitArea:{show:!0},axisLabel:{rotate:45,color:"#999999"},triggerEvent:!1},yAxis:{type:"category",data:[],splitArea:{show:!0},axisTick:{show:!1},axisLabel:{interval:0},triggerEvent:!1},visualMap:{min:-2,max:2,precision:2,calculable:!0,orient:"vertical",top:24,right:12,splitNumber:21,inRange:{color:["#799f82","#ffffff","#d25757"]},itemWidth:"5"},series:[{type:"heatmap",data:[],label:{show:!0,textStyle:{color:"#333333",fontSize:12}},itemStyle:{normal:{borderColor:"#ededed",borderWidth:.5},emphasis:{shadowBlur:10,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]}),Object(i["a"])(this,"STYLE",{transitName:!1,hideValue:!1,enableAxisEvent:!1}),this.title=t,this.matrix=e,this.xAxis=a,this.yAxis=s,this.style=Object.assign({},this.STYLE,r)}get option(){const t=JSON.parse(JSON.stringify(this.OPTION));t.tooltip.formatter=t=&gt;this.tooltipFormatter(t,this.xAxis,this.yAxis);let e=[];for(let a=0;a&lt;this.xAxis.length;a++)for(let t=0;t&lt;this.yAxis.length;t++)e.push([a,t,s["a"].roundNumber(this.matrix[t][a],3)]);if(t.series[0].name=this.title,t.series[0].data=e,this.style.transitName?t.xAxis.data=r["a"].transitNamesInArray(this.xAxis,10,!0):t.xAxis.data=this.xAxis,t.yAxis.data=this.yAxis,null==this.style.max||isNaN(this.style.max)||(t.visualMap.max=this.style.max),null==this.style.min||isNaN(this.style.min)||(t.visualMap.min=this.style.min),1==this.style.hideValue&amp;&amp;(t.series[0].label.show=!1),1==this.style.enableAxisEvent)t.xAxis.triggerEvent=!0,t.yAxis.triggerEvent=!0,t.xAxis.axisLabel.color="#409eff",t.yAxis.axisLabel.color="#409eff";else if(this.style.enableAxisEvent){const{xAxis:e,yAxis:a}=this.style.enableAxisEvent;1==e&amp;&amp;(t.xAxis.triggerEvent=!0,t.xAxis.axisLabel.color="#409eff"),1==a&amp;&amp;(t.yAxis.triggerEvent=!0,t.yAxis.axisLabel.color="#409eff")}return t}}class c{tooltipFormatter(t,e,a){let[i,s,r]=t.value;const o=e[i],n=a[s],l=t.seriesName;return l+"&lt;br/&gt;"+t.marker+n+" at "+o+": "+r}constructor(t,e,a,s,r){Object(i["a"])(this,"OPTION",{title:{text:"çƒ­åŠ›å›¾",show:!1},tooltip:{show:!0,position:"top",confine:!0},animation:!1,grid:{top:24,bottom:24,left:24,right:80,color:"#999999",containLabel:!0},xAxis:{type:"category",data:[],splitArea:{show:!0},axisLabel:{rotate:45},triggerEvent:!1},yAxis:{type:"category",data:[],splitArea:{show:!0},axisTick:{show:!1},axisLabel:{interval:0},triggerEvent:!1},visualMap:{min:-2,max:2,precision:2,calculable:!0,orient:"vertical",top:24,right:12,splitNumber:21,inRange:{color:["#799f82","#ffffff","#d25757"]},itemWidth:"5"},series:[{type:"heatmap",data:[],label:{show:!0,textStyle:{color:"#333333",fontSize:12}},itemStyle:{normal:{borderColor:"#ededed",borderWidth:.5},emphasis:{shadowBlur:10,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]}),Object(i["a"])(this,"STYLE",{transitName:!1,hideValue:!1,enableAxisEvent:!1}),this.title=t,this.matrix=e,this.xAxis=a,this.yAxis=s,this.style=Object.assign({},this.STYLE,r)}get option(){const t=JSON.parse(JSON.stringify(this.OPTION));t.tooltip.formatter=t=&gt;this.tooltipFormatter(t,this.xAxis,this.yAxis);let e=[];for(let a=0;a&lt;this.xAxis.length;a++)for(let t=0;t&lt;this.yAxis.length;t++)e.push([a,t,s["a"].roundNumber(this.matrix[t][a],3)]);if(t.series[0].name=this.title,t.series[0].data=e,this.style.transitName?t.xAxis.data=r["a"].transitNamesInArray(this.xAxis,10,!0):t.xAxis.data=this.xAxis,t.yAxis.data=this.yAxis,null==this.style.max||isNaN(this.style.max)||(t.visualMap.max=this.style.max),null==this.style.min||isNaN(this.style.min)||(t.visualMap.min=this.style.min),1==this.style.hideValue&amp;&amp;(t.series[0].label.show=!1),1==this.style.enableAxisEvent)t.xAxis.triggerEvent=!0,t.yAxis.triggerEvent=!0;else if(this.style.enableAxisEvent){const{xAxis:e,yAxis:a}=this.style.enableAxisEvent;1==e&amp;&amp;(t.xAxis.triggerEvent=!0),1==a&amp;&amp;(t.yAxis.triggerEvent=!0)}return t}}class h{constructor(t,e=[],a={}){Object(i["a"])(this,"OPTION",{tooltip:{},legend:{left:0,top:24,data:[],itemWidth:8,itemHeight:8,textStyle:{fontSize:12,color:"#999"},icon:"circle",bottom:0},radar:{name:{show:!0},nameGap:10,shape:"circle",radius:"60%",center:["50%","50%"],indicator:[]},series:[{name:"å¤§ç±»èµ„äº§é…ç½®",type:"radar",symbol:"none",data:[{name:"æ‚¬é“ƒCå·2æœŸ",value:[25,25,25,25]}]}],grid:{top:65,bottom:60}}),Object(i["a"])(this,"SERIES",{name:"",type:"radar",symbol:"none",data:[]}),this.title=t,this.indicators=e,this.style=a,this.series=JSON.parse(JSON.stringify(this.SERIES)),this.max=null,this.min=null,this.legend=[]}appendData(t,e,a={}){if(e){const a=this.indicators.map(t=&gt;s["a"].roundNumber(e[t.key],2)),i={value:a,name:t};this.legend.push(t),this.series.data.push(i),this.max=Math.max(this.max,...a),this.min=Math.min(this.min,...a)}return this}get option(){const t=JSON.parse(JSON.stringify(this.OPTION));return t.radar.indicator=this.indicators.map(t=&gt;({name:t.name,max:this.max,min:this.min})),t.series=[this.series],this.legend&amp;&amp;this.legend.length&gt;1&amp;&amp;(t.legend.data=this.legend),null!=this.style.radius&amp;&amp;(t.radar.radius=this.style.radius),t}}class d{constructor(t,e={}){Object(i["a"])(this,"OPTION",{title:{text:"",show:!1},legend:{show:!0,type:"scroll",data:[],bottom:0,left:32,right:32,icon:"bar",itemWidth:10,itemHeight:3},grid:{containLabel:!0,left:36,right:36,bottom:36,top:36},xAxis:{type:"category",data:[],boundaryGap:!1,axisLabel:{rotate:45,color:"#333"},axisLine:{lineStyle:{color:"rgba(107,107,107,0.80 )"}},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}},yAxis:[{type:"value",scale:!0,percent:!1,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{formatter:"{value}"},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}}],tooltip:{trigger:"axis"},series:[]}),Object(i["a"])(this,"SERIES",{name:null,data:[],type:"line",showSymbol:!1,symbol:"circle",stack:!1,areaStyle:null,step:null,yAxisIndex:0}),Object(i["a"])(this,"DATA_ZOOM",{backgroundColor:"#fff",borderColor:"#fff",bottom:2,end:100,fillerColor:"#d4e7ff",filterMode:"weakFilter",handleColor:"#409eff",handleIcon:"path://M725.725 527.476c0 122.054-98.994 221.050-221.050 221.050-122.054 0-220.941-98.994-220.941-221.050 0-122.054 98.887-221.050 220.941-221.050 122.054 0 221.050 98.994 221.050 221.050zM504.721 121.757c-223.731 0-405.74 182.009-405.74 405.74s182.009 405.74 405.74 405.74c223.731 0 405.74-182.009 405.74-405.74 0-223.731-182.009-405.74-405.74-405.74M504.721 993.296c-98.243 0-189.516-30.567-264.807-82.8-85.909-59.525-150.903-147.259-181.579-249.793-12.656-42.257-19.412-86.981-19.412-133.206 0-78.403 19.412-152.3 53.733-217.187 34.428-64.887 83.658-120.767 143.184-163.025 75.935-53.948 168.816-85.589 268.884-85.589 83.013 0 161.095 21.772 228.665 60.062 85.482 48.37 154.337 123.019 195.309 212.897 26.919 58.775 41.828 124.094 41.828 192.839 0 91.595-26.599 177.183-72.503 249.363-42.686 67.141-102.107 122.591-172.247 160.558-65.853 35.609-141.145 55.879-221.050 55.879z",handleSize:15,height:10,left:100,right:100,show:!0,showDataShadow:!1,start:0,type:"slider"}),this.title=t,this.style=e,this.seriesData=[],this.xAxis=[],this.legend=[],this.series=[]}appendSeries(t,e,a={}){if(e&amp;&amp;e.length&gt;0){this.seriesData.push(e);let i=[],r=[];e.forEach(t=&gt;{i.push(t.date),r.push([t.date,s["a"].roundNumber(t.value,4)])});const o=Object.assign({},this.SERIES,a);o.name=t,o.data=r,this.legend.push(t),this.mergeXAxisData(i),this.series.push(o)}return this}mergeXAxisData(t){let e=[...this.xAxis||[],...t||[]];e=e.distinct(t=&gt;t),e&amp;&amp;e.length&gt;1&amp;&amp;e.sort((t,e)=&gt;t.localeCompare(e)),this.xAxis=e}get option(){const t=JSON.parse(JSON.stringify(this.OPTION));if(t.xAxis.data=this.xAxis,t.series=this.series,this.legend&amp;&amp;this.legend.length&gt;1&amp;&amp;(t.legend.data=this.legend),this.style.showDataZoom&amp;&amp;this.xAxis.length&gt;50){let e=0;const a=this.xAxis.length;e=s["a"].roundPercent((a-50)/a,0),t.dataZoom=Object.assign({},this.DATA_ZOOM,{start:e}),t.grid.bottom=64,t.legend.bottom=32}return this.style.sortTooltip&amp;&amp;(t.tooltip||(t.tooltip={}),t.tooltip.extraCssText="width:400px;overflow:hidden;white-space:normal;word-break:break-all",t.tooltip.formatter=function(t){let e=t[0].name+"&lt;br&gt;";t.sort((t,e)=&gt;e.value[1]-t.value[1]);for(let a=0;a&lt;t.length;a++){let i=t[a].value[1];e+="&lt;span style='margin-right:8px'&gt;",e+=t[a].marker,e+=t[a].seriesName+"ï¼š"+i+" ",e+="&lt;/span&gt;"}return e}),t}}class p{constructor(t,e={}){Object(i["a"])(this,"OPTION",{title:{text:"",show:!1},legend:{show:!0,type:"scroll",data:[],bottom:32,icon:"bar",itemWidth:10,itemHeight:3},grid:{containLabel:!0,left:36,right:36,bottom:64,top:36},xAxis:{show:!0,type:"category",data:[],axisLabel:{rotate:45,color:"#333"},axisLine:{lineStyle:{color:"rgba(107,107,107,0.80 )"}},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}},yAxis:{type:"value",scale:!1,percent:!1,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{formatter:"{value}"},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}},tooltip:{trigger:"axis"},series:[]}),Object(i["a"])(this,"SERIES",{name:null,data:[],type:"bar",stack:!1,areaStyle:null,yAxisIndex:0,barMaxWidth:"40%"}),this.title=t,this.style=e,this.seriesData=[],this.xAxis=[],this.legend=[],this.series=[]}appendSeries(t,e,a={}){if(e&amp;&amp;e.length&gt;0){this.seriesData.push(e);let i=[],r=[];e.forEach(t=&gt;{i.push(t.date),r.push([t.date,s["a"].roundNumber(t.value,4)])});const o=Object.assign({},this.SERIES,a);o.name=t,o.data=r,a&amp;&amp;a.showAverage&amp;&amp;(o.markLine={data:[{type:"average",name:"å¹³å‡å€¼"}]}),a&amp;&amp;a.showLabel&amp;&amp;(o.label={show:!0,rotate:90,position:[0,-10],distance:30,verticalAlign:"top",textStyle:{color:"black",fontSize:10},formatter:"{b}"}),this.legend.push(t),this.mergeXAxisData(i),this.series.push(o)}return this}mergeXAxisData(t){let e=[...this.xAxis||[],...t||[]];e=e.distinct(t=&gt;t),this.xAxis=e}get option(){const t=JSON.parse(JSON.stringify(this.OPTION));return t.xAxis.data=this.xAxis,t.series=this.series,this.legend&amp;&amp;this.legend.length&gt;1?t.legend.data=this.legend:t.grid.bottom=16,this.style.showTitle&amp;&amp;this.title&amp;&amp;""!=this.title.trim&amp;&amp;(t.title.show=!0,t.title.text=this.title,t.grid.top=48),t}}class u{constructor(t,e={}){Object(i["a"])(this,"OPTION",{title:{text:"",show:!1},legend:{show:!0,type:"scroll",data:[],bottom:32,icon:"bar",itemWidth:10,itemHeight:3},grid:{containLabel:!0,left:36,right:36,bottom:64,top:36},tooltip:{trigger:"axis"},xAxis:{type:"category",data:[],axisLabel:{rotate:45,color:"#333"},axisLine:{lineStyle:{color:"rgba(107,107,107,0.80 )"}},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}},yAxis:{type:"value",scale:!0,percent:!1,axisTick:{show:!1},axisLine:{show:!1},axisLabel:{formatter:"{value}"},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}},series:[]}),Object(i["a"])(this,"SERIES",{type:"k",data:[],itemStyle:{borderColor:"#e77447",borderColor0:"#e77447"}}),Object(i["a"])(this,"format",(function(t){let e=[];const a=t[0];return e.push(a.seriesName),e.push(a.marker+" "+a.name),e.push("- å¹³å‡å€¼: "+a.data[1]),e.push("- æœ€å°å€¼: "+a.data[3]),e.push("- æœ€å¤§å€¼: "+a.data[4]),e.join("&lt;br/&gt;")})),this.title=t,this.style=e,this.seriesData=[],this.xAxis=[],this.legend=[],this.series=[]}appendSeries(t,e,a={}){if(e&amp;&amp;e.length&gt;0){this.seriesData.push(e);let i=[],r=[];e.forEach(({date:t,open:e,close:a,min:o,max:n})=&gt;{i.push(t);const l=[s["a"].roundNumber(e,4),s["a"].roundNumber(a,4),s["a"].roundNumber(o,4),s["a"].roundNumber(n,4)];r.push(l)});const o=Object.assign({},this.SERIES,a);o.name=t,o.data=r,this.xAxis=i,this.legend.push(t),this.series.push(o)}return this}get option(){const t=JSON.parse(JSON.stringify(this.OPTION));return t.xAxis.data=this.xAxis,t.series=this.series,this.legend&amp;&amp;this.legend.length&gt;1?t.legend.data=this.legend:t.grid.bottom=16,t.tooltip.formatter=t=&gt;{let e=[];const a=t[0];return e.push(a.seriesName),e.push(a.marker+" "+a.name),e.push("- å¹³å‡å€¼: "+a.data[1]),e.push("- æœ€å°å€¼: "+a.data[3]),e.push("- æœ€å¤§å€¼: "+a.data[4]),e.join("&lt;br/&gt;")},this.style.showTitle&amp;&amp;this.title&amp;&amp;""!=this.title.trim&amp;&amp;(t.title.show=!0,t.title.text=this.title,t.grid.top=48),t}}class m{formatLabel(t){return s["a"].formatPercent(t)}constructor(t,e={}){Object(i["a"])(this,"OPTION",{title:{text:"",show:!1},legend:{show:!0,type:"scroll",data:[],bottom:32,icon:"bar",itemWidth:10,itemHeight:3},grid:[{left:"1%",right:"81%",bottom:"24px",top:"24px",containLabel:!0},{left:"21%",right:"61%",bottom:"24px",top:"24px",containLabel:!0},{left:"41%",right:"41%",bottom:"24px",top:"24px",containLabel:!0},{left:"61%",right:"21%",bottom:"24px",top:"24px",containLabel:!0},{left:"81%",right:"1%",bottom:"24px",top:"24px",containLabel:!0}],tooltip:{trigger:"axis"},xAxis:[{type:"value",gridIndex:0,name:"è¶…é¢é…ç½® %",nameLocation:"center",nameGap:32,axisLabel:{color:"#333",rotate:45},scale:!1,splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}},{type:"value",gridIndex:1,name:"è¶…é¢æ”¶ç›Š %",nameLocation:"center",nameGap:32,axisLabel:{color:"#333",rotate:45},scale:!1,splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}},{type:"value",gridIndex:2,name:"èµ„äº§é…ç½®æ”¶ç›Š %",nameLocation:"center",nameGap:32,axisLabel:{color:"#333",rotate:45},scale:!1,splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}},{type:"value",gridIndex:3,name:"ä¸ªè‚¡é€‰æ‹©æ”¶ç›Š %",nameLocation:"center",nameGap:32,axisLabel:{color:"#333",rotate:45},scale:!1,splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}},{type:"value",gridIndex:4,name:"äº¤äº’æ”¶ç›Š %",nameLocation:"center",nameGap:32,axisLabel:{color:"#333",rotate:45},scale:!1,splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}}],yAxis:[{type:"category",gridIndex:0,axisTick:{show:!1},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}},{type:"category",gridIndex:1,axisLabel:{show:!0},axisTick:{show:!1},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}},{type:"category",gridIndex:2,axisLabel:{show:!0},axisTick:{show:!1},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}},{type:"category",gridIndex:3,axisLabel:{show:!0},axisTick:{show:!1},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}},{type:"category",gridIndex:4,axisLabel:{show:!0},axisTick:{show:!1},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}}],series:[]}),Object(i["a"])(this,"SERIES",{type:"bar",data:[],barMaxWidth:"40%"}),this.title=t,this.style=e,this.seriesData=[],this.yAxis=[],this.legend=[],this.series=[],this.options=JSON.parse(JSON.stringify(this.OPTION))}setExceedAllocation(t){if(t&amp;&amp;t.length){let e=null,a=[],i=[];for(const{date:o,value:n}of t)e=null==e||Math.abs(n)&gt;e?Math.abs(n):e,a.push([s["a"].roundPercent(n,2),o]),i.push(o);this.yAxis.push(...i),this.yAxis.distinct(t=&gt;t);const r=Object.assign({},this.SERIES,{name:"è¶…é¢é…ç½®"});r.xAxisIndex=0,r.yAxisIndex=0,r.data=a,this.options.xAxis[0].max=s["a"].roundPercent(1.1*e,2),this.options.xAxis[0].min=s["a"].roundPercent(1.1*-e,2),this.series.push(r)}}setExceedReturns(t,e,a){if(t&amp;&amp;t.length){let i=[],r=[];for(const{date:e,value:a}of t)i.push([s["a"].roundPercent(a,2),e]),r.push(e);this.yAxis.push(...r),this.yAxis=this.yAxis.distinct(t=&gt;t);const o=Object.assign({},this.SERIES,{name:"è¶…é¢æ”¶ç›Š"});o.xAxisIndex=1,o.yAxisIndex=1,o.data=i,this.options.xAxis[1].max=e,this.options.xAxis[1].min=a,this.series.push(o)}}setAssetAlloc(t,e,a){if(t&amp;&amp;t.length){let i=[],r=[];for(const{date:e,value:a}of t)i.push([s["a"].roundPercent(a,2),e]),r.push(e);this.yAxis.push(...r),this.yAxis=this.yAxis.distinct(t=&gt;t);const o=Object.assign({},this.SERIES,{name:"èµ„äº§é…ç½®æ”¶ç›Š"});o.xAxisIndex=2,o.yAxisIndex=2,o.data=i,this.options.xAxis[2].max=e,this.options.xAxis[2].min=a,this.series.push(o)}}setSelectionReturns(t,e,a){if(t&amp;&amp;t.length){let i=[],r=[];for(const{date:e,value:a}of t)i.push([s["a"].roundPercent(a,2),e]),r.push(e);this.yAxis.push(...r),this.yAxis=this.yAxis.distinct(t=&gt;t);const o=Object.assign({},this.SERIES,{name:"ä¸ªè‚¡é€‰æ‹©æ”¶ç›Š"});o.xAxisIndex=3,o.yAxisIndex=3,o.data=i,this.options.xAxis[3].max=e,this.options.xAxis[3].min=a,this.series.push(o)}}setInteractiveReturns(t,e,a){if(t&amp;&amp;t.length){let i=[],r=[];for(const{date:e,value:a}of t)i.push([s["a"].roundPercent(a,2),e]),r.push(e);this.yAxis.push(...r),this.yAxis=this.yAxis.distinct(t=&gt;t);const o=Object.assign({},this.SERIES,{name:"äº¤äº’æ”¶ç›Š"});o.xAxisIndex=4,o.yAxisIndex=4,o.data=i,this.options.xAxis[4].max=e,this.options.xAxis[4].min=a,this.series.push(o)}}get option(){const t=this.options;return t.yAxis.forEach(t=&gt;t.data=this.yAxis),t.xAxis.forEach(t=&gt;t.formatter=(t,e)=&gt;this.formatLabel(t)),t.series=this.series,t.legend.data=this.legend,this.style.showTitle&amp;&amp;this.title&amp;&amp;""!=this.title.trim&amp;&amp;(t.title.show=!0,t.title.text=this.title,t.grid.forEach(t=&gt;t.top=48)),t}}class f{constructor(t,e={}){Object(i["a"])(this,"OPTION",{title:{text:"æœªå‘½å",show:!1},legend:{show:!0,type:"scroll",data:[],bottom:0,icon:"bar",itemWidth:10,itemHeight:3},grid:{containLabel:!0,left:32,right:95,bottom:32,top:36},tooltip:{formatter:function(t){const[e,a,i,r]=t.data,o=`&lt;tr&gt;\n          &lt;td&gt;èµ„äº§é…ç½®æ”¶ç›Š&lt;/td&gt;\n          &lt;td style="text-align: right"&gt;${s["a"].formatNumber2(i,2)} %&lt;/td&gt;\n        &lt;/tr&gt;\n        &lt;tr&gt;\n          &lt;td&gt;è¶…é¢é…ç½®&lt;/td&gt;\n          &lt;td style="text-align: right"&gt;${s["a"].formatNumber2(e,2)} %&lt;/td&gt;\n        &lt;/tr&gt;\n        &lt;tr&gt;\n          &lt;td&gt;åŸºå‡†æ”¶ç›ŠçŽ‡&lt;/td&gt;\n          &lt;td style="text-align: right"&gt;${s["a"].formatNumber2(a,2)} %&lt;/td&gt;\n        &lt;/tr&gt;`;let n=`&lt;p&gt;${r}&lt;/p&gt;&lt;table style="width: 200px;"&gt;${o}&lt;/table&gt;`;return n}},xAxis:{name:"è¶…é¢é…ç½®ï¼ˆ%ï¼‰",nameRotate:0,scale:!1,splitLine:{lineStyle:{}}},yAxis:{name:"åŸºå‡†æ”¶ç›ŠçŽ‡ï¼ˆ%ï¼‰",splitLine:{lineStyle:{}},scale:!0},series:[{name:null,data:null,type:"scatter",emphasis:{label:{show:!0,formatter:function(t){return t.data[3]},position:"top"}},itemStyle:{shadowBlur:10,shadowColor:"rgba(120, 36, 50, 0.5)",shadowOffsetY:5,color:{type:"radial",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgb(251, 118, 123)"},{offset:1,color:"rgb(204, 46, 72)"}],globalCoord:!1}}},{name:null,data:null,type:"scatter",emphasis:{label:{show:!0,formatter:function(t){return t.data[3]},position:"top"}},itemStyle:{shadowBlur:10,shadowColor:"rgba(120, 36, 50, 0.5)",shadowOffsetY:5,color:{type:"radial",x:0,y:0,x2:0,y2:1,colorStops:[{offset:0,color:"rgb(129, 227, 238)"},{offset:1,color:"rgb(25, 183, 207)"}],globalCoord:!1}}}]}),this.title=t,this.style=e,this.legend=[],this.xAxis=[],this.yAxis=[],this.series=[],this.options=n.a.cloneDeep(this.OPTION)}setAdvantageBubbles(t,e={}){if(t&amp;&amp;t.length&gt;0){this.legend.push("è¡¨çŽ°ä¼˜å¼‚è¡Œä¸š");const e=this.options.series[0];e.name="è¡¨çŽ°ä¼˜å¼‚è¡Œä¸š";let a=[],i=null;t.forEach(({x:t,y:e,value:s,name:r})=&gt;{i=null==i||Math.abs(s)&gt;i?Math.abs(s):i,a.push([t,e,s,r])}),e.data=a,e.symbolSize=function(t){return 30*Math.abs(t[2]/i)}}else this.options.series[0].data=[]}setDisadvantageBubbles(t,e={}){if(t&amp;&amp;t.length&gt;0){this.legend.push("è¡¨çŽ°ä¸ä½³è¡Œä¸š");const e=this.options.series[1];e.name="è¡¨çŽ°ä¸ä½³è¡Œä¸š";let a=[],i=null;t.forEach(({x:t,y:e,value:s,name:r})=&gt;{i=null==i||Math.abs(s)&gt;i?Math.abs(s):i,a.push([t,e,s,r])}),e.data=a,e.symbolSize=function(t){return 30*Math.abs(t[2]/i)}}else this.options.series[1].data=[]}get option(){return this.options.legend.data=this.legend,this.options}}e["a"]={HeatChart:l,HeatChart2:c,RadarChart:h,LineChart:d,BarChart:p,CandleChart:u,BrinsonAttributionChart:m,BrinsonAttributionBubbleChart:f}},9933:function(t,e,a){"use strict";a("2ce4")},"99ea":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-row",{attrs:{gutter:5}},[a("el-col",{staticClass:"margin-b5",attrs:{span:9}},[a("el-select",{attrs:{size:"mini",filterable:"",clearable:"",placeholder:"é€‰æ‹©å­åŸºé‡‘æˆ–æŒ‡æ•°"},model:{value:t.pid,callback:function(e){t.pid=e},expression:"pid"}},t._l(t.firstDropDown,(function(e){return a("el-option-group",{key:e.label,attrs:{label:e.label}},t._l(e.options,(function(t){return a("el-option",{key:t.productId||t.id,attrs:{label:t.value||t.productName,value:t.productId||t.id}})})),1)})),1)],1),a("el-col",{staticClass:"margin-b5",attrs:{span:9}},[a("el-select",{attrs:{filterable:"",remote:"",clearable:"",size:"mini",placeholder:"è¯·è¾“å…¥åç§°æœç´¢","value-key":"value","reserve-keyword":"","remote-method":t.loadFundOptions,loading:t.fundOptionsLoading},on:{change:t.indexChange},model:{value:t.indices,callback:function(e){t.indices=e},expression:"indices"}},t._l(t.productOptions,(function(e,i){return a("el-option-group",{key:"group_"+i,attrs:{label:e.label}},t._l(e.options,(function(e,i){return a("el-option",{key:"holdings_"+i,attrs:{value:e.id,label:e.value}},[a("span",{staticStyle:{float:"left"}},[t._v(t._s(e.value))]),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[t._v(t._s(e.value4))])])})),1)})),1)],1),a("el-col",{attrs:{span:6}},[a("el-button",{attrs:{type:"primary",size:"mini",loading:t.loading},on:{click:function(e){return t.$emit("load",t.indices,t.pid,!0)}}},[t._v("ç¡®å®š ")])],1)],1)],1)},s=[],r=(a("14d9"),a("8b55"));let o=null;var n={props:{marketIndices:{},onLoading:{type:Boolean,default:!1}},data(){return{index:null,indexOption:[],indices:null,pid:null,loading:this.onLoading,firstDropDown:[],secondDropDown:[],productOptions:[],fundOptionsLoading:!1,chooseOptions:[]}},methods:{async loadFundOptions(t){if(null==t||""==t.trim())return;this.fundOptionsLoading=!0;const e=r["b"].uuid();o=e;let a=[];const i=await this.$api.getMixOptions.get({keyword:t,types:"FUND,MASTER_FUND,INDEX"});if(0==i.errorNo){let t=i.result;t&amp;&amp;t.length&gt;0&amp;&amp;a.push(...t)}o==e&amp;&amp;(this.productOptions=a),this.fundOptionsLoading=!1},indexChange(){this.productOptions.forEach(t=&gt;{t.options.forEach(t=&gt;{this.indices==t.id&amp;&amp;this.chooseOptions.push(t)})})},getName(t){let e="";return this.chooseOptions.forEach(a=&gt;{a.id==t&amp;&amp;(e=a.value)}),this.firstDropDown&amp;&amp;this.firstDropDown.length&gt;0&amp;&amp;this.firstDropDown[0].options.forEach(a=&gt;{a.id==t&amp;&amp;(e=a.value)}),e},generateDropDown(t){if(t.productIds&amp;&amp;t.productIds.length){let e={productIds:t.productIds.join(",")};this.$api.productList.get(e).then(e=&gt;{if(0===e.errorNo){let a=[];e.result.forEach(t=&gt;{a.push({id:t.id,value:t.productShortName})}),this.firstDropDown=[{label:"é€‰å®šäº§å“",options:a}],this.secondDropDown=[{label:"æŒ‡æ•°",options:t.indexNumbers}]}})}else t.netWorths&amp;&amp;t.netWorths.length?(this.firstDropDown=[{label:"é€‰å®šäº§å“",options:t.products}],this.secondDropDown=[{label:"ä¸´æ—¶å‡€å€¼",options:t.netWorths},{label:"æŒ‡æ•°",options:t.indexNumbers}]):(this.firstDropDown=[{label:"é€‰å®šäº§å“",options:t.products}],this.secondDropDown=[{label:"æŒ‡æ•°",options:t.indexNumbers}])}},watch:{marketIndices(t){this.indices=null,this.pid=null,this.indexOption=t,this.generateDropDown(t)},onLoading(t){this.loading=t}},computed:{},mounted(){this.indexOption=this.marketIndices,this.generateDropDown(this.marketIndices)}},l=n,c=a("0c7c"),h=Object(c["a"])(l,i,s,!1,null,null,null);e["a"]=h.exports},"9b92":function(t,e,a){"use strict";a("e9b2")},"9bd6":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:t.title,width:"800px",visible:t.formVisible,"close-on-click-modal":!1,"append-to-body":""},on:{close:t.onClosed}},[a("div",[a("el-row",{staticStyle:{"margin-bottom":"5px"}},[a("el-input",{staticStyle:{width:"200px"},attrs:{size:"mini",placeholder:"åç§°"},nativeOn:{keyup:function(e){return!e.type.indexOf("key")&amp;&amp;t._k(e.keyCode,"enter",13,e.key,"Enter")?null:t.reloadData.apply(null,arguments)}},model:{value:t.filters.keyword,callback:function(e){t.$set(t.filters,"keyword",e)},expression:"filters.keyword"}}),a("el-checkbox",{staticStyle:{"margin-left":"10px"},on:{change:t.reloadData},model:{value:t.filters.onlyShowEmpty,callback:function(e){t.$set(t.filters,"onlyShowEmpty",e)},expression:"filters.onlyShowEmpty"}},[t._v("åªæ˜¾ç¤ºæœªè®¾ç½®")]),a("el-button",{staticStyle:{"margin-left":"10px"},attrs:{size:"mini",icon:"el-icon-refresh"},on:{click:t.reloadData}})],1),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.isLoading,expression:"isLoading"}],staticClass:"th-el-table",attrs:{"highlight-current-row":"","header-row-class-name":"hr-table-header",size:"mini","max-height":500,data:t.dataList},on:{"selection-change":t.handleSelectionChange}},[a("el-table-column",{attrs:{type:"selection",selectable:t.checkboxSelFunc,width:"40"}}),a("el-table-column",{attrs:{prop:"productShortName",label:"åç§°",width:"120","show-overflow-tooltip":""}}),a("el-table-column",{attrs:{prop:"code",label:"code",width:"80","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.code||"-")+" ")]}}])}),a("el-table-column",{attrs:{prop:"sourceDesc",label:"æ¥æº",width:"80","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.sourceDesc||"-")+" ")]}}])}),a("el-table-column",{attrs:{prop:"afterFeeDesc",label:"è´¹ç”¨è§„åˆ™","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(e.row.afterFeeDesc||"-")+" ")]}}])}),a("el-table-column",{attrs:{label:"æ“ä½œ",width:"100",align:"center","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[t.isSupported(e.row)?a("span",[a("el-tooltip",{attrs:{effect:"dark",content:"ç¼–è¾‘",placement:"top","open-delay":500}},[a("i",{staticClass:"iconfont icon-bianji1",staticStyle:{cursor:"pointer","font-size":"14px"},on:{click:function(a){return a.stopPropagation(),a.preventDefault(),t.handleUpdate(e.row)}}})])],1):a("span",{staticStyle:{"font-size":"12px",color:"#999"}},[t._v(" æš‚ä¸æ”¯æŒ ")])]}}])})],1),a("el-row",{staticStyle:{"margin-top":"5px"}},[a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:t.handleBatchUpdate}},[t._v("æ‰¹é‡è®¾ç½®")])],1),a("after_fee_setting",{attrs:{productId:t.toOperateProductId,productIds:t.toOperateProductIds,productSourceParam:t.productSource,formVisible:t.afterFeeSettingDialogVisible},on:{"update:formVisible":function(e){t.afterFeeSettingDialogVisible=e},"update:form-visible":function(e){t.afterFeeSettingDialogVisible=e},afterChangeAfterFeeSetting:t.afterChangeAfterFeeSetting}})],1)])},s=[],r=a("2ef0"),o=a.n(r),n=a("ec34"),l={components:{after_fee_setting:n["a"]},name:"after_fee_batch_setting",props:{formVisible:{type:Boolean,default:!1},productIds:{type:Array,default:()=&gt;[]}},data(){return{filters:{keyword:null,onlyShowEmpty:!1},visible:!1,afterFeeSettingDialogVisible:!1,isLoading:!1,dataList:[],backupDataList:[],toOperateProductId:null,toOperateProductIds:[],multipleSelection:[],productSource:null,loadTimes:0}},computed:{title(){let t="å¤šåŸºé‡‘è´¹ç”¨è§„åˆ™åˆ—è¡¨";return t},paramObj(){return{formVisible:this.formVisible,productIds:this.productIds}}},methods:{isSupported(t){let e="MUTUAL_FUND"==t.productType||"FUND"==t.productType&amp;&amp;t.code&amp;&amp;(t.code.endsWith(".OF")||t.code.endsWith(".SZ")||t.code.endsWith(".SH"));return!e},checkboxSelFunc(t,e){return["INVESTMENT_CONSULTANT","PUBLIC"].includes(t.source)||["INDEX"].includes(t.productType)},handleSelectionChange(t){this.multipleSelection=t},afterChangeAfterFeeSetting(){this.loadData()},onClosed(){this.$emit("update:formVisible",!1);let t=JSON.stringify(this.dataList)!=JSON.stringify(this.backupDataList);this.$emit("afterChangeAfterFeeSetting",t)},async reloadData(){await this.loadData()},async loadData(){this.loadTimes+=1,this.isLoading=!0;let t=await this.$productService.getAfterFeeBatchSettingDesc(this.productIds);this.filters.keyword&amp;&amp;(t=t.filter(t=&gt;t.productName.includes(this.filters.keyword)||t.productShortName.includes(this.filters.keyword))),this.filters.onlyShowEmpty&amp;&amp;(t=t.filter(t=&gt;!t.afterFeeDesc)),this.dataList=t,1==this.loadTimes&amp;&amp;(this.backupDataList=o.a.cloneDeep(this.dataList)),this.isLoading=!1},handleUpdate(t){this.toOperateProductIds=[],this.toOperateProductId=t.productId,this.afterFeeSettingDialogVisible=!0,this.productSource=null},handleBatchUpdate(){this.toOperateProductId=null,this.toOperateProductIds=this.multipleSelection.map(t=&gt;t.productId),0!=this.toOperateProductIds.length?(this.productSource="INVESTMENT_CONSULTANT",this.afterFeeSettingDialogVisible=!0):this.$message.error("è¯·å…ˆå‹¾é€‰äº§å“å†è¯•")}},watch:{paramObj:{immediate:!0,deep:!0,handler(t){this.visible=this.formVisible,this.visible&amp;&amp;(this.loadTimes=0,this.loadData())}}},mounted(){}},c=l,h=a("0c7c"),d=Object(h["a"])(c,i,s,!1,null,null,null);e["a"]=d.exports},"9c93":function(t,e,a){},"9e51":function(t,e,a){"use strict";a("0ccd")},"9f31":function(t,e,a){},"9f36":function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("p",{staticClass:"section-header"},[a("el-row",[a("el-col",{attrs:{span:20}},[t._v(" å·²é€‰åŸºé‡‘ï¼ˆ"+t._s(t.items&amp;&amp;t.items.length?t.items.length:0)+"ï¼‰ ")]),a("el-col",{attrs:{span:4,align:"right"}},[a("i",{staticClass:"el-icon-delete",staticStyle:{cursor:"pointer"},on:{click:t.clearSelectedItems}})])],1)],1),a("ul",{staticClass:"chose-items",staticStyle:{"max-height":"300px","overflow-y":"auto"}},[t.items&amp;&amp;t.items.length?t._l(t.items,(function(e,i){return a("li",{key:"items_"+i,staticClass:"item"},[a("div",{staticStyle:{display:"flex",position:"relative","line-height":"1.5em"}},[a("div",{staticClass:"label",attrs:{title:e.productShortName||e.name},on:{click:function(a){return t.onItemClick(e)}}},[t._v(" "+t._s(i+1)+". "+t._s(e.productShortName||e.name)+" ")]),"MUTUAL_FUND"==e.type||e.genericMutualFund?a("div",{staticStyle:{flex:"0"}},[t._v(t._s(t.formatCode(e.code)))]):t._e(),a("p",{staticClass:"item-action",staticStyle:{flex:"0","white-space":"nowrap"}},[i&gt;0?a("i",{staticClass:"el-icon-top",staticStyle:{"margin-left":"4px"},attrs:{title:"ä¸Šç§»"},on:{click:function(a){return t.onMoveUp(e,i)}}}):t._e(),i&lt;t.items.length-1?a("i",{staticClass:"el-icon-bottom",staticStyle:{"margin-left":"4px"},attrs:{title:"ä¸‹ç§»"},on:{click:function(a){return t.onMoveDown(e,i)}}}):t._e(),a("i",{staticClass:"el-icon-close",staticStyle:{"margin-left":"4px"},attrs:{title:"åˆ&nbsp;é™¤"},on:{click:function(a){return t.onRemoveItem(e)}}})])])])})):a("li",{staticClass:"item"},[t._v("ï¼ˆç©ºï¼‰")])],2),a("el-row",{staticClass:"action-panel",attrs:{gutter:20}},[a("el-col",{staticStyle:{"border-right":"1px solid #ededed"},attrs:{span:12,align:"center"}},[a("div",{staticClass:"action-btn",on:{click:t.onCompare}},[a("p",{staticClass:"icon"},[a("i",{staticClass:"iconfont icon-icon_pk",staticStyle:{"font-size":"16px"}})]),a("p",{staticClass:"label"},[t._v("åŸºé‡‘æ¯”è¾ƒ")])])]),a("el-col",{attrs:{span:12,align:"center"}},[a("div",{staticClass:"action-btn",on:{click:t.onFitting}},[a("p",{staticClass:"icon"},[a("i",{staticClass:"iconfont icon-relation",staticStyle:{"font-size":"16px"}})]),a("p",{staticClass:"label"},[t._v("åŸºé‡‘æ‹Ÿåˆ")])])])],1),a("fitting",{attrs:{"fitting-visible":t.showFitting,"product-ids":t.itemIds},on:{"update:fittingVisible":function(e){t.showFitting=e},"update:fitting-visible":function(e){t.showFitting=e},closeLoading:t.closeLoading}})],1)},s=[],r=(a("14d9"),a("b7ef"),a("8b55")),o=a("6a57"),n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{visible:t.visible,"close-on-click-modal":!1,"show-close":!0,width:"90%","append-to-body":""},on:{"update:visible":function(e){t.visible=e},close:t.onClose}},[a("span",{attrs:{slot:"title"},slot:"title"},[t._v("åŸºé‡‘æ‹Ÿåˆ")]),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.FittingLoading,expression:"FittingLoading"}],attrs:{"element-loading-text":"åŠ&nbsp;è½½ä¸­","element-loading-spinner":"el-icon-loading","element-loading-background":"rgba(0, 0, 0, 0.7)"}},[a("el-row",{staticClass:"hr-perf-comp-title"},[a("el-col",{attrs:{span:18}},[t._v("æ‹Ÿåˆå‚æ•°")]),a("el-col",{attrs:{span:6,align:"right"}},[t.isHighSecurityLevelUser?t._e():a("el-button",{attrs:{type:"primary",size:"mini"},nativeOn:{click:function(e){t.innerVisible=!0}}},[t._v("ä¿å­˜é…ç½®")])],1)],1),a("el-row",{staticClass:"margin-b10",attrs:{gutter:20}},[a("el-col",{attrs:{span:8}},[a("el-select",{attrs:{filterable:"",remote:"",multiple:"",clearable:"",size:"mini",placeholder:"è¯·è¾“å…¥äº§å“åç§°æœç´¢","value-key":"value","reserve-keyword":"","remote-method":t.loadFundOptions,loading:t.loading},model:{value:t.optionValue,callback:function(e){t.optionValue=e},expression:"optionValue"}},t._l(t.productOptions,(function(e,i){return a("el-option-group",{key:"group_"+i,attrs:{label:e.label}},t._l(e.options,(function(e,i){return a("el-option",{key:"holdings_"+i,attrs:{value:e.id,label:e.value}},[a("span",{staticStyle:{float:"left"}},[t._v(t._s(e.value))]),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[t._v(t._s(e.value4))])])})),1)})),1)],1),a("el-col",{attrs:{span:8}},[a("el-button",{attrs:{type:"primary",loading:t.tableRowAddLoading,size:"mini"},nativeOn:{click:function(e){return t.tableRowAdd.apply(null,arguments)}}},[t._v("æ·»åŠ&nbsp;")])],1),a("el-col",{attrs:{span:8}})],1),a("el-row",{staticClass:"margin-b10",attrs:{gutter:20}},[a("el-col",[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.listLoading,expression:"listLoading"}],ref:"listTable",staticClass:"hr-table",staticStyle:{width:"100%"},attrs:{"show-summary":"","summary-method":t.getSummaries,size:"mini","header-row-class-name":"hr-table-header","highlight-current-row":"",data:t.rows},on:{"current-change":t.onRowSelected}},[a("el-table-column",{attrs:{prop:"productShortName",label:"äº§å“åç§°","min-width":"120","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("div",[t._v(" "+t._s(e.row.productShortName.split("|").length&gt;1?e.row.productShortName.split("|")[2]:e.row.productShortName)+" ")])]}}])}),a("el-table-column",{attrs:{label:"ç­–ç•¥ç±»åž‹","min-width":"120","show-overflow-tooltip":"",formatter:t.formatIsNull},scopedSlots:t._u([{key:"default",fn:function(e){return[t._v(" "+t._s(null==e.row.strategy?"-":e.row.strategy.name)+" ")]}}])}),a("el-table-column",{attrs:{prop:"annualizedReturn",label:"å¹´åŒ–æ”¶ç›Š(%)","min-width":"120","show-overflow-tooltip":"",formatter:t.formatPercentage}}),a("el-table-column",{attrs:{prop:"annualizedVolatility",label:"å¹´åŒ–æ³¢åŠ¨çŽ‡(%)","min-width":"120","show-overflow-tooltip":"",formatter:t.formatPercentage}}),a("el-table-column",{attrs:{prop:"maxDrawdown",label:"æœ€å¤§å›žæ’¤(%)","min-width":"120","show-overflow-tooltip":"",formatter:t.formatPercentage}}),a("el-table-column",{attrs:{prop:"sharpeRatio",label:"å¤æ™®æ¯”çŽ‡","min-width":"120","show-overflow-tooltip":"",formatter:t.formatRoundNumber}}),a("el-table-column",{attrs:{"min-width":"220","show-overflow-tooltip":""},scopedSlots:t._u([{key:"header",fn:function(e){return[t._v(" é…ç½®æƒé‡(%) "),a("el-checkbox",{staticStyle:{"margin-left":"20px"},on:{change:t.changeWeight},model:{value:t.isEqualWeighted,callback:function(e){t.isEqualWeighted=e},expression:"isEqualWeighted"}},[t._v("ç­‰æƒ")])]}},{key:"default",fn:function(e){return[a("el-input",{attrs:{size:"mini",maxlength:5,placeholder:"è¯·è¾“å…¥"},on:{input:function(a){return t.countWeight(e.$index)}},model:{value:e.row["weight"],callback:function(a){t.$set(e.row,"weight",a)},expression:"scope.row['weight']"}})]}}])}),a("el-table-column",{attrs:{label:"æ“ä½œ","min-width":"60","show-overflow-tooltip":""},scopedSlots:t._u([{key:"default",fn:function(e){return[a("el-button",{attrs:{type:"text"},on:{click:function(a){return a.stopPropagation(),t.del(e.$index)}}},[t._v("åˆ&nbsp;é™¤")])]}}])})],1)],1)],1),a("div",{staticClass:"margin-b20"},[a("div",{staticStyle:{display:"inline-block","margin-right":"12px"}},[a("span",{staticClass:"hr-form-label"},[t._v(" åˆ†æžå‘¨æœŸï¼š ")]),a("el-date-picker",{staticStyle:{width:"350px"},attrs:{disabled:t.queryLoading,size:"mini",type:"daterange","unlink-panels":"","range-separator":"-","start-placeholder":"èµ·å§‹æ—¥","value-format":"yyyy-MM-dd","end-placeholder":"ç»ˆæ­¢æ—¥"},on:{change:function(e){return t.setOrderVisible(!1)}},model:{value:t.filters.date,callback:function(e){t.$set(t.filters,"date",e)},expression:"filters.date"}})],1),a("div",{staticStyle:{display:"inline-block","margin-right":"12px"}},[a("span",{staticClass:"hr-form-label"},[t._v(" å¹´åŒ–æ—&nbsp;é£Žé™©åˆ©çŽ‡ï¼š ")]),a("el-input",{staticStyle:{width:"100px"},attrs:{size:"mini",maxlength:5,placeholder:"è¯·è¾“å…¥"},on:{input:function(e){return t.setOrderVisible(!1)}},model:{value:t.filters.interestRate,callback:function(e){t.$set(t.filters,"interestRate",e)},expression:"filters.interestRate"}})],1),a("div",{staticStyle:{display:"inline-block","margin-right":"12px"}},[a("span",{staticClass:"hr-form-label"},[t._v(" å‡€å€¼é¢‘çŽ‡ï¼š ")]),a("el-select",{staticStyle:{width:"100px"},attrs:{size:"mini"},model:{value:t.filters.valuationPeriod,callback:function(e){t.$set(t.filters,"valuationPeriod",e)},expression:"filters.valuationPeriod"}},[a("el-option",{attrs:{value:"DAY",label:"æ—¥é¢‘"}}),a("el-option",{attrs:{value:"WEEK",label:"å‘¨é¢‘"}})],1)],1),a("div",{staticStyle:{display:"inline-block","margin-right":"12px"}},[a("span",{staticClass:"hr-form-label"},[t._v(" å†å¹³è¡¡å‘¨æœŸï¼š ")]),a("el-select",{staticStyle:{width:"100px"},attrs:{size:"mini"},model:{value:t.filters.rebalancedDay,callback:function(e){t.$set(t.filters,"rebalancedDay",e)},expression:"filters.rebalancedDay"}},[a("el-option",{attrs:{value:"0",label:"ä¸å†å¹³è¡¡"}}),a("el-option",{attrs:{value:"20",label:"20 å¤©"}}),a("el-option",{attrs:{value:"60",label:"60 å¤©"}}),a("el-option",{attrs:{value:"250",label:"250 å¤©"}})],1)],1),a("div",{staticStyle:{display:"inline-block"}},[a("el-button",{attrs:{type:"primary",size:"mini",loading:t.FittingLoading},nativeOn:{click:function(e){return t.onFitting.apply(null,arguments)}}},[t._v("æ‹Ÿåˆ")])],1)]),a("el-row",{directives:[{name:"show",rawName:"v-show",value:t.orderVisible,expression:"orderVisible"}],staticClass:"hr-perf-comp-title"},[a("el-col",{attrs:{span:18}},[t._v("æ‹Ÿåˆç»“æžœ")])],1),a("el-row",{directives:[{name:"show",rawName:"v-show",value:t.orderVisible,expression:"orderVisible"}]},[a("div",{staticClass:"tab-content"},[a("el-tabs",{model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-tab-pane",{staticClass:"padding-top20",attrs:{label:"å‡€å€¼èµ°åŠ¿",name:"tab1"}},[a("fittingReturnTrends",{ref:"tab1",attrs:{productParam:t.returnParams2,autoPlay:!0,fundsList:t.fundsList}})],1),a("el-tab-pane",{staticClass:"padding-top20",attrs:{label:"æ»šåŠ¨ç›¸å…³æ€§",name:"tab2"}},[t.rollingCorrelationVisible?a("rollingCorrelation",{ref:"tab2",attrs:{productParam:t.returnParams,marketIndices:t.marketIndicesFunds,multiple:!0,fittingVal:t.tableRows,valuationPeriod:t.filters.valuationPeriod,autoPlay:!0}}):t._e()],1),a("el-tab-pane",{staticClass:"padding-top20",attrs:{label:"ç›¸å…³æ€§",name:"tab3"}},[a("fittingCorr",{attrs:{data:t.fittingResult.correlation,visible:"tab3"==t.activeName}})],1),a("el-tab-pane",{staticClass:"padding-top20",attrs:{label:"æ”¶ç›Šå›žæ’¤",name:"tab4"}},[a("fittingReturnDrawdown2",{ref:"tab4",attrs:{productParam:t.ReturnDrawdownParams,fundsList:t.fundsList,visible:"tab4"==t.activeName}})],1),a("el-tab-pane",{ref:"tab5",staticClass:"padding-top20",attrs:{label:"ä¸šç»©æŒ‡æ&nbsp;‡æ¦‚è§ˆ",name:"tab5"}},[a("performanceIndicators",{attrs:{tableRows:t.psData}})],1)],1)],1)])],1),a("el-dialog",{attrs:{width:"30%",title:"ä¿å­˜é…ç½®",visible:t.innerVisible,"append-to-body":"","close-on-click-modal":!1},on:{"update:visible":function(e){t.innerVisible=e}}},[a("el-form",{ref:"addForm",attrs:{model:t.addVirtualFundForm,rules:t.addFormRules,"label-width":"110px","status-icon":"",inline:!1}},[a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"è™šæ‹Ÿç»„åˆåç§°ï¼š",prop:"virtualFundName"}},[a("el-input",{attrs:{placeholder:"è¯·è¾“å…¥å†…å®¹"},model:{value:t.addVirtualFundForm.virtualFundName,callback:function(e){t.$set(t.addVirtualFundForm,"virtualFundName",e)},expression:"addVirtualFundForm.virtualFundName"}})],1)],1)],1),a("el-row",[a("el-col",[a("el-form-item",{attrs:{label:"å¤‡æ³¨ï¼š"}},[a("el-input",{attrs:{placeholder:"è¯·è¾“å…¥å†…å®¹",rows:2,max:"20"},model:{value:t.addVirtualFundForm.memo,callback:function(e){t.$set(t.addVirtualFundForm,"memo",e)},expression:"addVirtualFundForm.memo"}})],1)],1)],1)],1),a("div",{staticClass:"dialog-footer",attrs:{slot:"footer"},slot:"footer"},[a("el-button",{attrs:{type:"primary",loading:t.addLoading,size:"mini"},nativeOn:{click:function(e){return t.saveVirtualFund.apply(null,arguments)}}},[t._v("ç¡®å®š")]),a("el-button",{attrs:{size:"mini"},nativeOn:{click:function(e){return t.close.apply(null,arguments)}}},[t._v("å–æ¶ˆ")])],1)],1)],1)},l=[],c=(a("d9e2"),a("13d5"),a("9a0f")),h=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.onLoading,expression:"onLoading"}],ref:"dataTable",staticClass:"th-el-table",attrs:{"highlight-current-row":"",size:"mini",data:t.tableRows}},[a("el-table-column",{attrs:{label:"åç§°","show-overflow-tooltip":"",prop:"productName"}}),a("el-table-column",{attrs:{prop:"annualizedReturn",label:"å¹´åŒ–æ”¶ç›ŠçŽ‡(%)","show-overflow-tooltip":"",formatter:t.formatPercentage}}),a("el-table-column",{attrs:{prop:"maxDrawdown",label:"æœ€å¤§å›žæ’¤(%)","show-overflow-tooltip":"",formatter:t.formatPercentage}}),a("el-table-column",{attrs:{prop:"returnDrawdownRatio",label:"æ”¶ç›Šå›žæ’¤æ¯”","show-overflow-tooltip":"",formatter:t.formatDrawdownRatio}}),a("el-table-column",{attrs:{prop:"maxDrawdownRecoveryPeriod",label:"æœ€å¤§å›žæ’¤æ¢å¤å‘¨æœŸ(æ—¥)","show-overflow-tooltip":"",formatter:t.formatRecoveryDays}}),a("el-table-column",{attrs:{prop:"annualizedVolatility",label:"å¹´åŒ–æ³¢åŠ¨çŽ‡(%)","show-overflow-tooltip":"",formatter:t.formatPercentage}}),a("el-table-column",{attrs:{prop:"annualizedDownsideDeviation",label:"ä¸‹è¡Œæ&nbsp;‡å‡†å·®(%)","show-overflow-tooltip":"",formatter:t.formatPercentage}}),a("el-table-column",{attrs:{prop:"sharpeRatio",label:"å¤æ™®æ¯”çŽ‡","show-overflow-tooltip":"",formatter:t.formatRoundNumber}}),a("el-table-column",{attrs:{prop:"sortinoRatio",label:"ç´¢æè¯ºæ¯”çŽ‡","show-overflow-tooltip":"",formatter:t.formatRoundNumber}}),a("el-table-column",{attrs:{prop:"dailyWinRatio",label:"æ—¥èƒœçŽ‡(%)","show-overflow-tooltip":"",formatter:t.formatPercentage}})],1)],1)},d=[],p=a("f2d9"),u={components:{jsonExcel:p["a"]},props:{tableRows:{},pName:{}},data(){return{onLoading:!1,jsonExportColumns:{"åŸºé‡‘åç§°":"productShortName","å¹´åŒ–æ”¶ç›ŠçŽ‡(%)":"annualizedReturn","æœ€å¤§å›žæ’¤(%)":"maxDrawdown","æ”¶ç›Šå›žæ’¤æ¯”":"returnDrawdownRatio","æœ€å¤§å›žæ’¤æ¢å¤å‘¨æœŸ(æ—¥)":"maxDrawdownRecoveryPeriod","å¹´åŒ–æ³¢åŠ¨çŽ‡(%)":"annualizedVolatility","ä¸‹è¡Œæ&nbsp;‡å‡†å·®(%)":"annualizedDownsideDeviation","å¤æ™®æ¯”çŽ‡":"sharpeRatio","ç´¢æè¯ºæ¯”çŽ‡":"sortinoRatio","æ—¥èƒœçŽ‡(%)":"dailyWinRatio","å‘¨èƒœçŽ‡(%)":"weeklyWinRatio","æœˆèƒœçŽ‡(%)":"monthlyWinRatio"}}},methods:{formatPercentage(t,e,a){return a?r["b"].formatPercent(a,2):"-"},formatRoundNumber(t,e,a){return a?c["a"].roundNumber(1*a,2):"-"},formatRecoveryDays(t,e,a){return a&amp;&amp;c["a"].formatNumber2(a,0)||"-"},formatDrawdownRatio(t,e,a){return null==a?"-":a&gt;1e3?"&gt; 1000":a&lt;-1e3?"&lt; -1000":c["a"].formatNumber2(a,2)}}},m=u,f=a("0c7c"),g=Object(f["a"])(m,h,d,!1,null,null,null),b=g.exports,v=a("c82b"),y=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t._t("default"),t.multiple?a("multipleBenchmark",{ref:"multipleBenchmarkPid",attrs:{marketIndices:t.indexOption,onLoading:t.onLoading},on:{load:t.loadReturnDataWrapper}}):t._e(),t.isEmptyChartData()?t.params.productIds&amp;&amp;t.params.productIds.length&amp;&amp;t.params.productIds.length&gt;=6?a("el-row",{directives:[{name:"loading",rawName:"v-loading",value:t.onLoading,expression:"onLoading"}]},[a("el-col",{staticClass:"tc lh-200 text_color"},[a("i",{staticClass:"iconfont icon-gantanhao f24 vm"}),t._v("è¯·æ‰‹å·¥é€‰æ‹©ç”Ÿæˆç›¸å…³æ€§")])],1):a("el-row",{directives:[{name:"loading",rawName:"v-loading",value:t.onLoading,expression:"onLoading"}]},[a("el-col",{staticClass:"tc text_color"},[a("div",{staticClass:"f14 tc flex",staticStyle:{width:"100%","letter-spacing":"2px",height:"200px",display:"flex","align-items":"center","justify-content":"center"}},[a("div",[a("svg",{staticClass:"icon-xiangguanxing",attrs:{"aria-hidden":"true"}},[a("use",{attrs:{"xlink:href":"#icon-zanwuzhuzhuangtu"}})]),a("p",{staticClass:"chartFontStyle"},[t._v("æš‚æ—&nbsp;æ»šåŠ¨ç›¸å…³æ€§")])])])])],1):a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.onLoading,expression:"onLoading"}]},[t.active&amp;&amp;t.paramObj?a("incomeTrend",{attrs:{productParam:t.paramObj}}):t._e()],1)],2)},x=[],w=(a("4328"),a("13ab")),D=a("99ea"),S=a("ba50"),C={components:{incomeTrend:w["a"],multipleBenchmark:D["a"],benchmark:S["a"]},props:{productParam:{type:Object},marketIndices:{},multiple:{type:Boolean,default:!1},autoPlay:{type:Boolean,default:!1},watchUnPlay:{},isSubBenchmark:{type:Boolean,default:!1},fittingVal:{type:Array,default:()=&gt;[]},valuationPeriod:{type:String,default:null}},data(){return{period:"SINCE_INCEPTION",chartData:{},chart:null,selIndexIdArr:[],selProductIdArr:[],params:{productIds:null,asOf:null,periods:"MONTH_TO_DATE,ONE_MONTH,THREE_MONTH,YEAR_TO_DATE,SINCE_INCEPTION"},indices:[],pid:"",onLoading:!1,active:!1,indexOption:[],checkFlag:!1,dataObj:{},paramObj:null}},methods:{compileChart(t){this.active=t},returnProductParam(){let t={chartData:{},categoryControl:!1,rolling:!0,percent:!0};if(this.multiple){if(this.pid||"0"==this.pid){let t;t="0"==this.pid?"è™šæ‹Ÿç»„åˆ VS "+this.$refs.multipleBenchmarkPid.getName(this.indices):this.$refs.multipleBenchmarkPid.getName(this.pid)+" VS "+this.$refs.multipleBenchmarkPid.getName(this.indices),this.dataObj[t]=[];for(const[e,a]of Object.entries(this.chartData)){let i=a[0][1]?a[0][1]:0;i=c["a"].formatNumber(i,3),this.dataObj[t].push({x:e,y:i})}}else{let t=this.productParam.productIds,e=t.length;for(const[a,i]of Object.entries(this.chartData))for(let t=0;t&lt;e-1;t++)for(let s=t+1;s&lt;e;s++){let e=this.$refs.multipleBenchmarkPid.getName(this.productParam.productIds[t])+" VS "+this.$refs.multipleBenchmarkPid.getName(this.productParam.productIds[s]);this.dataObj[e]?this.dataObj[e]:this.dataObj[e]=[];let r=i[t][s]?i[t][s]:0;r=c["a"].formatNumber(r,3),this.dataObj[e].push({x:a,y:r})}}t.chartData=this.dataObj}else{let e={};this.indices.forEach((t,a)=&gt;{e[this.productParam.name+" VS "+this.$refs.benchmark.getName(t)]=[];for(const[i,s]of Object.entries(this.chartData)){let r=s[0][a+1]?s[0][a+1]:0;r=c["a"].formatNumber(r,3),e[this.productParam.name+" VS "+this.$refs.benchmark.getName(t)].push({x:i,y:r})}}),t.chartData=e}this.paramObj=t},onClearIndices(){this.params.indices=[],this.loadReturnDataWrapper()},isEmptyChartData(){return!(this.dataObj&amp;&amp;Object.keys(this.dataObj).length||this.chartData&amp;&amp;Object.keys(this.chartData).length)},async loadReturnDataWrapper(t,e,a){t&amp;&amp;(this.selIndexIdArr.push(t),this.selProductIdArr.push(e)),await this.loadReturnData(t,e,a)},async loadReturnData(t,e,a){let i=e?this.$refs.multipleBenchmarkPid.getName(e)+"-"+this.$refs.multipleBenchmarkPid.getName(t):"";if(Object.keys(this.dataObj).includes(i))return;let s,r={};if(this.multiple?(this.pid=e,this.indices=t,r={productIds:e,rollingDays:20,startDate:this.params.startDate,endDate:this.params.endDate,benchmarkIds:t,isSubBenchmark:this.isSubBenchmark},!t&amp;&amp;!e&amp;&amp;this.params.productIds&amp;&amp;this.params.productIds.length&gt;1&amp;&amp;(r.productIds=this.params.productIds.join(","),r.benchmarkIds=null)):(t&amp;&amp;(this.indices=JSON.parse(JSON.stringify(t))),r={productIds:this.params.productIds.join(","),rollingDays:20,startDate:this.params.startDate,endDate:this.params.endDate,benchmarkIds:this.indices&amp;&amp;this.indices.length?this.indices.join(","):null,isSubBenchmark:this.isSubBenchmark}),!r.benchmarkIds&amp;&amp;!this.multiple)return void this.$message({showClose:!0,message:"è¯·è‡³å°‘é€‰æ‹©ä¸€æ¡åŸºå‡†",type:"error"});a&amp;&amp;(this.checkFlag=!0),this.checkFlag=!0,this.onLoading=!0,"0"==r.productIds?(r.valuationPeriod=this.valuationPeriod,s=await this.$api.dailyVirtualCombinationRollingCorrelationEndpoint.postJson(this.fittingVal,r)):s=await this.$api.dailyRollingCorrelationEndpoint.get(r);let o=s;0===o.errorNo?(this.chartData=o.result.matrixData,a||(this.dataObj={}),this.returnProductParam(),this.$emit("afterLoadRollingCorrelationData",this.paramObj)):(this.chartData={},this.paramObj={chartData:{},categoryControl:!1,rolling:!0,percent:!0}),this.onLoading=!1},async refreshData(){for(let t=0;t&lt;this.selProductIdArr.length;t++)await this.loadReturnData(this.selIndexIdArr[t],this.selProductIdArr[t],!0)}},watch:{productParam(t){t&amp;&amp;(this.params.productIds=t.productIds,this.params.asOf=t.asOfDate,this.params.startDate=t.startDate,this.params.endDate=t.endDate,this.watchUnPlay||(this.params.productIds&amp;&amp;this.params.productIds.length&gt;1&amp;&amp;this.params.productIds.length&lt;6?this.loadReturnDataWrapper(null,null,!0):(this.paramObj={},this.dataObj={},this.chartData={})))},marketIndices(t){this.paramObj={},this.dataObj={},this.chartData={},this.indexOption=t},autoPlay(t){t&amp;&amp;(this.active=!0)},isSubBenchmark:{handler(t){this.refreshData()}}},computed:{periodMap(){return{MONTH_TO_DATE:"å½“æœˆ",ONE_MONTH:"è¿‘ä¸€ä¸ªæœˆ",THREE_MONTH:"è¿‘ä¸‰ä¸ªæœˆ",YEAR_TO_DATE:"ä»Šå¹´ä»¥æ¥",SINCE_INCEPTION:"è‡ªæˆç«‹ä»¥æ¥"}}},mounted(){this.indexOption=this.marketIndices,this.params.productIds?(this.params.productIds=this.productParam.productIds,this.params.startDate=this.productParam.startDate,this.params.endDate=this.productParam.endDate,this.params.productIds&amp;&amp;this.params.productIds.length&gt;1&amp;&amp;this.params.productIds.length&lt;6?this.loadReturnDataWrapper():(this.paramObj={},this.dataObj={},this.chartData={})):(this.paramObj={},this.dataObj={},this.chartData={}),this.active=this.autoPlay}},A=C,k=Object(f["a"])(A,y,x,!1,null,null,null),O=k.exports,E=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t._t("default"),a("el-row",{staticClass:"margin-b5",attrs:{gutter:10}},[a("el-col",{attrs:{span:10}},[a("pinyinSelector",{attrs:{size:"mini",clearable:!0,filterable:!0,multiple:!0,placeholder:"æ·»åŠ&nbsp;æ¯åŸºé‡‘",options:t.masterFundOptions,"label-field":"label"},model:{value:t.masterFunds,callback:function(e){t.masterFunds=e},expression:"masterFunds"}})],1),a("el-col",{staticClass:"margin-b5",attrs:{span:10}},[a("el-select",{attrs:{filterable:"",remote:"",multiple:"",clearable:"",size:"mini",placeholder:"è¯·è¾“å…¥äº§å“åç§°æœç´¢","value-key":"value","reserve-keyword":"","remote-method":t.loadFundOptions,loading:t.loading},model:{value:t.funds,callback:function(e){t.funds=e},expression:"funds"}},t._l(t.productOptions,(function(e,i){return a("el-option-group",{key:"group_"+i,attrs:{label:e.label}},t._l(e.options,(function(e,i){return a("el-option",{key:"holdings_"+i,attrs:{value:e.id,label:e.value}},[a("span",{staticStyle:{float:"left"}},[t._v(t._s(e.value))]),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[t._v(t._s(e.value4))])])})),1)})),1)],1),a("el-col",{attrs:{span:4}},[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.contrast}},[t._v("ç¡®å®š")])],1)],1),a("el-row",{staticClass:"margin-b5",attrs:{gutter:10}},[a("el-col",{attrs:{span:10}},[a("pinyinSelector",{attrs:{name:"firstOption",size:"mini",clearable:!0,filterable:!0,multiple:!0,placeholder:"æ·»åŠ&nbsp;æŒ‡æ•°",options:t.indexNumbersList,"label-field":"label"},model:{value:t.indexNumbers,callback:function(e){t.indexNumbers=e},expression:"indexNumbers"}})],1)],1),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.onLoading,expression:"onLoading"}]},[a("lineChartPresenter",{attrs:{seriesData:t.seriesData,chartStyle:{title:"",legendPosition:"bottom45",lineArea:!0},visible:t.visible}})],1)],2)},_=[],P=a("8771"),N=a("a602");let L=null;var I={components:{lineChartPresenter:P["a"],pinyinSelector:N["a"]},props:{productParam:{type:Object},fundsList:{},pName:{},visible:{type:Boolean,default:!0}},data:function(){return{chartData:null,lineChart:null,params:{},onLoading:!1,chartVisible:!0,indices:[],active:!1,paramObj:null,funds:[],masterFunds:[],indexNumbers:[],netWorths:[],seriesData:[],productOptions:[],loading:!1}},methods:{async loadFundOptions(t){if(null==t||""==t.trim())return;this.loading=!0;const e=r["b"].uuid();L=e;let a=[];const i=await this.$api.getMixOptions.get({keyword:t,types:"FUND,MUTUAL_FUND"});if(0==i.errorNo){let t=i.result;t&amp;&amp;t.length&gt;0&amp;&amp;a.push(...t)}L==e&amp;&amp;(this.productOptions=a),this.loading=!1},contrast(){this.loadReturnDrawdown(null,this.masterFunds.concat(this.funds.concat(this.netWorths)).concat(this.indexNumbers))},compileChart(t){this.active=t},isEmptyChartData(){return!this.chartData||!Object.keys(this.chartData).length},returnAreaMapParam(){let t={chartData:this.chartData,categoryControl:!1,areaMap:!0,showFirstLegendOnly:!1};this.paramObj=t},loadReturnDrawdown(t,e){let a={productIds:t?t.concat(this.params.productIds).join(","):this.params.productIds.join(","),startDate:this.params.startDate,endDate:this.params.endDate,weights:this.productParam.weights.join(","),rebalancedDay:60,riskFreeRate:this.productParam.riskFreeRate,benchmarkIds:e?e.join(","):null};a.productIds&amp;&amp;(this.onLoading=!0,this.$api.fittingMaxDrawdowns.get(a).then(t=&gt;{0===t.errorNo?this.seriesData=t.result.map(t=&gt;{const e=t.productName.startsWith("FIT_")?"å½“å‰é…ç½®":t.productName,a=t.characteristics.map(t=&gt;({x:t.asOfDate,y:c["a"].formatPercent(t.doubleValue,2)}));return{legendName:e,data:a}}):this.seriesData=[],this.onLoading=!1}).catch(t=&gt;{this.onLoading=!1}))}},watch:{productParam(t){t&amp;&amp;(this.params.productIds=t.productIds,this.params.startDate=t.startDate,this.params.endDate=t.endDate,this.loadReturnDrawdown())}},computed:{indexNumbersList(){return this.$store.state.marketIndexList||[]},netWorthsList(){return[]},masterFundOptions(){return this.$store.state.masterFundList||[]},slaveFundOptions(){return this.$store.state.fundList?this.$store.state.fundList.filter(t=&gt;t.slaveFund).map(t=&gt;({id:t.id,value:t.name,pinyin:t.pinyin})):[]}},mounted(){this.productParam.productIds&amp;&amp;this.productParam.productIds.length&amp;&amp;(this.params.productIds=this.productParam.productIds,this.params.startDate=this.productParam.startDate,this.params.endDate=this.productParam.endDate,this.loadReturnDrawdown())}},R=I,M=Object(f["a"])(R,E,_,!1,null,null,null),F=M.exports,T=a("4d96");let B=null;var j={name:"fitting",components:{performanceIndicators:b,fittingReturnTrends:v["a"],rollingCorrelation:O,fittingReturnDrawdown2:F,fittingCorr:T["a"]},props:{fittingVisible:{type:Boolean,default:!1},fundAndNetWorth:{},productIds:{}},data(){let t=(t,e,a)=&gt;{const i={shortName:e};this.$api.productCheck.post(i).then(t=&gt;{t.duplicate?a(new Error(t.msg)):a()})};return{user:JSON.parse(sessionStorage.getItem("user")),isEqualWeighted:!1,fittingResult:{productId:null,ps:[],nav:[],prcData:[],frcData:[],drawdown:{},riskData:{},varEs:[]},addVirtualFundForm:{virtualFundName:null,memo:null},innerVisible:!1,virtualProductId:null,filters:{date:[o["a"].getYearAgoDateString(),o["a"].getNowDateString()],interestRate:.015,valuationPeriod:"DAY",rebalancedDay:60},rows:[],visible:this.fittingVisible,optionValue:"",productOptions:[],loading:!1,option:this.fundAndNetWorth,queryLoading:!1,listLoading:!1,tableRowAddLoading:!1,addLoading:!1,weight:0,activeName:"tab1",tableRows:[],returnParams:{},returnParams2:{},correlationParam:{},ReturnDrawdownParams:{},FittingLoading:!1,fundsList:[],rollingCorrelationVisible:!0,orderVisible:!1,addFormRules:{virtualFundName:[{validator:t,trigger:"blur"}]}}},methods:{async loadFundOptions(t){if(null==t||""==t.trim())return;this.loading=!0;const e=r["b"].uuid();B=e;let a=[];const i=await this.$api.getMixOptions.get({keyword:t,types:"FUND,MASTER_FUND,MUTUAL_FUND,JOINT_NAV"});if(0==i.errorNo){let t=i.result;t&amp;&amp;t.length&gt;0&amp;&amp;a.push(...t)}B==e&amp;&amp;(this.productOptions=a),this.loading=!1},changeWeight(){this.isEqualWeighted&amp;&amp;(this.rows&amp;&amp;this.rows.forEach(t=&gt;{this.$set(t,"weight",(100/this.rows.length).toFixed(2))}),this.countWeight(0))},getSummaries(t){const{columns:e,data:a}=t,i=[];return i.push(""),i.push(""),i.push(""),i.push(""),i.push(""),i.push(""),i.push("åˆè®¡ï¼š"+this.weight+"%"),i},getCorrData(t){let e=[this.$api.fittingCorrelationCalcEndpoint.post(t)];this.$http.all(e).then(this.$http.spread(t=&gt;{let e={};0==t.errorNo?(e.products=t.result.products,e.correlation=t.result.correlation,e.rCorrelation=t.result.dailyCorrelations):e.correlation=[],this.fittingResult.correlation=e}))},setRouter(t){this.$router.push({path:"/virtualCombination",query:{autoOpen:{methodName:"enterClick",keyWords:t,url:"/virtualCombination"}}})},close(){this.innerVisible=!1},async saveVirtualPortfolio(){this.addLoading=!0;const[t,e]=this.filters.date,a={name:this.addVirtualFundForm.virtualFundName,memo:this.addVirtualFundForm.memo,scale:1e7,riskFreeRate:this.filters.interestRate,periods:[{start:t,end:e,stockWeights:.25,bondWeights:.25,commodityWeights:.25,cashWeights:.25,optModel:"RP",riskFreeRate:this.filters.interestRate,scale:1e7,incomeAdjustmentMethod:"MULTIPLY",products:this.rows.map(t=&gt;({productId:t.productId,productName:t.productName,weights:parseFloat(t.weight||0)/100,pctOff:1}))}]};try{const t=await this.$api.virtualPortfolioEndpoint.postJson(a);t&amp;&amp;0===t.errorNo&amp;&amp;(this.$message.success("ä¿å­˜æˆåŠŸï¼"),this.$confirm("å‰å¾€è™šæ‹Ÿç»„åˆé¡µé¢?","æç¤º",{confirmButtonText:"ç¡®å®š",cancelButtonText:"å–æ¶ˆ",type:"warning"}).then(()=&gt;{this.$router.push("/virtualCombination")}))}catch(i){this.$message.error("ä¿å­˜è™šæ‹Ÿç»„åˆå¤±è´¥")}this.addLoading=!1},saveVirtualFund(){this.$refs.addForm.validate(t=&gt;{t&amp;&amp;this.saveVirtualPortfolio()})},async saveRelationships(t){if(this.rows&amp;&amp;this.rows.length){const e={masterId:t};await this.$api.relationshipEndpoint.del(e);let a=this.rows.map(e=&gt;{const a={masterProductId:t,slaveProductId:e.productId,slaveProductShare:e.weight,slaveProductClassification:"NORMAL"};return this.$api.relationshipEndpoint.postJson(a)});this.$http.all(a).then(this.$http.spread(t=&gt;{this.$message.success("ä¿å­˜æˆåŠŸ")}))}},fitNavTrend(){this.FittingLoading=!0,this.orderVisible=!0,this.$nextTick(()=&gt;{let t=this.rows.map(t=&gt;t.productId),e=this.rows.map(t=&gt;t.weight),a=this.filters.date[0],i=this.filters.date[1],s={productIds:t,weights:e,startDate:a,endDate:i,valuationPeriod:this.filters.valuationPeriod,riskFreeRate:this.filters.interestRate,rebalancedDay:this.filters.rebalancedDay};this.$api.portfolioFittingEndpoint.postJson(s).then(e=&gt;{if(0===e.errorNo){this.FittingLoading=!1,this.tableRows=e.result;let s=[{classification:"NORMAL",valuationData:[],startDate:a,asOfDate:i}];s[0].valuationData.push({classification:"NORMAL",netAssetValue:1,accumulatedNav:1,shares:null,totalNetAssetValue:null,position:null,dailyReturn:0,valueAsOfDate:""}),this.tableRows.forEach(t=&gt;{s[0].valuationData.push({classification:"NORMAL",netAssetValue:t.netAssetValue,accumulatedNav:t.accumulatedNav,shares:t.shares,totalNetAssetValue:t.totalNetAssetValue,position:null,dailyReturn:t.dailyReturn,valueAsOfDate:t.valueAsOf})}),this.returnParams2={productIds:t,startDate:a,endDate:i,chartData:{"å½“å‰é…ç½®":s}}}});let r={productIds:t.join(","),weights:e.join(","),benchmarkIds:[],startDate:a,endDate:i,riskFreeRate:this.filters.interestRate,rollingDays:20,rebalancedDay:-1};this.getCorrData(r),this.correlationParam={productIds:t,startDate:a,endDate:i},this.ReturnDrawdownParams={productIds:t,weights:e,riskFreeRate:this.filters.interestRate,startDate:a,endDate:i}})},onFitting(){this.virtualProductId=null;let t=!0;if(this.rows.every((e,a)=&gt;{e.weight||(t=!1)}),!t)return void this.$message({showClose:!0,message:"è¯·å¡«å†™å®Œæ•´é…ç½®æƒé‡ï¼",type:"error"});this.rows.map(t=&gt;t.productId),this.rows.map(t=&gt;t.weight),this.filters.date[0],this.filters.date[1];this.weight&gt;100||0===this.weight?this.$message({showClose:!0,message:"è¯·é‡æ–°è¾“å…¥æƒé‡é…ç½®,ä¸”å’Œå¤§äºŽ0å°äºŽç­‰äºŽ100ï¼",type:"error"}):this.filters.date.length?this.fitNavTrend():this.$message({showClose:!0,message:"è¯·é€‰æ‹©æ—¥æœŸåŒºé—´!",type:"error"})},countWeight(t){let e=JSON.parse(JSON.stringify(this.rows));e[t].weight=String(e[t].weight).replace(/\s+/g,""),(isNaN(Math.abs(e[t].weight))||0===Math.abs(e[t].weight))&amp;&amp;(e[t].weight="",this.$message({showClose:!0,message:"è¯·è¾“å…¥å¤§äºŽ0çš„æ•°å­—,ä¸”ä¸ä¸ºç©ºï¼",type:"error"})),e.length&gt;1?this.weight=e.reduce((t,e,a)=&gt;1===a?Number(t.weight)+Number(e.weight):Number(t)+Number(e.weight)):this.weight=e[0].weight,this.setOrderVisible(!1),this.$nextTick(()=&gt;{this.rows=[],this.rows=e})},del(t){this.$confirm("æ˜¯å¦åˆ&nbsp;é™¤å½“å‰äº§å“?","æç¤º",{confirmButtonText:"ç¡®å®š",cancelButtonText:"å–æ¶ˆ",type:"warning"}).then(()=&gt;{this.rows.splice(t,1)}).catch(()=&gt;{})},setOrderVisible(t){this.orderVisible=t},uniq(){let t=this.rows.map((t,e)=&gt;t.productId),e=[];this.optionValue.forEach((a,i)=&gt;{let s=!0;t.forEach((t,e)=&gt;{a===t&amp;&amp;(s=!1)}),s&amp;&amp;e.push(a)}),this.optionValue=e},tableRowAdd(){if(this.optionValue.length){let t={productIds:this.optionValue.join(",")};this.listLoading=!0,this.$api.performanceSummaryListEndpoint.get(t).then(t=&gt;{if(0===t.errorNo){let e=t.result;e.forEach((t,e)=&gt;{this.$set(t,"weight",null)});let a=this.rows.map(t=&gt;t.productId);e.forEach(t=&gt;{-1==a.indexOf(t.productId)&amp;&amp;this.rows.push(t)})}this.listLoading=!1,this.optionValue=[],this.tableRowAddLoading=!1})}},onClose(){this.filters.date=[o["a"].getYearAgoDateString(),o["a"].getNowDateString()],this.filters.interestRate=.015,this.filters.valuationPeriod="DAY",this.filters.rebalancedDay=60,this.isEqualWeighted=!1,this.$emit("update:fittingVisible",!1)},onRowSelected(){},getFunList(){let t={productIds:this.productIds.join(",")};this.listLoading=!0,this.$api.performanceSummaryListEndpoint.get(t).then(t=&gt;{0===t.errorNo&amp;&amp;(this.rows=t.result,this.rows.forEach((t,e)=&gt;{this.$set(t,"weight",null)})),this.listLoading=!1,this.optionValue=[],this.tableRowAddLoading=!1})},getFunOptionList(){this.$api.funds.getData({params:{sources:""}}).then(t=&gt;{this.fundsList=t.result})},formatIsNull(t,e,a){return a||"-"},formatRoundNumber(t,e,a){return a?c["a"].roundNumber(1*a,2):"-"},formatPercentage(t,e,a){return a?r["b"].formatPercent(a,2):"-"}},computed:{isHighSecurityLevelUser(){return!!(this.user&amp;&amp;this.user.profile&amp;&amp;this.user.profile.institution)&amp;&amp;"HIGH"==this.user.profile.institution.fundEntitlementSecurityLevel},psData(){let t=[];return this.lastPv&amp;&amp;t.push(this.lastPv),t},lastPv(){if(this.tableRows&amp;&amp;this.tableRows.length&gt;0){let t=this.tableRows[this.tableRows.length-1];return this.$set(t,"productName","è™šæ‹Ÿç»„åˆ"),t}return null},marketIndicesFunds(){let t=this.$store.state.marketIndexList||[],e={},a=[],i=[];if(t){a=t;let s=[];return this.rows&amp;&amp;this.rows.length&gt;0&amp;&amp;(s.push({id:0,value:"è™šæ‹Ÿç»„åˆ"}),this.rows.forEach(t=&gt;{s.push({id:t.productId,value:t.productShortName})})),e={products:s,indexNumbers:a,netWorths:i},e}return null}},watch:{fittingVisible(){this.visible=this.fittingVisible,this.fittingVisible&amp;&amp;this.$nextTick(()=&gt;{this.orderVisible=!1,this.fundAndNetWorth&amp;&amp;this.fundAndNetWorth.length&gt;1&amp;&amp;this.fundAndNetWorth[1].options.forEach((t,e)=&gt;{t.value2="netWorth"}),this.option=this.fundAndNetWorth,this.$emit("closeLoading"),this.getFunList(),this.getFunOptionList()})},fundAndNetWorth(t){this.option=t},activeName(t){"tab1"!==t&amp;&amp;"tab2"!==t&amp;&amp;"tab4"!==t||(this.$refs[t].compileChart(!1),this.$nextTick(()=&gt;{this.$refs[t].compileChart(!0)}))}},mounted(){}},H=j,V=Object(f["a"])(H,n,l,!1,null,"7912055d",null),z=V.exports;let $;var W={name:"chosen-products",components:{fitting:z},data(){return{isExporting:!1,showFitting:!1}},computed:{items(){let t=this.$store.getters.getChosenItems();return t&amp;&amp;t.length&gt;0&amp;&amp;t.forEach(t=&gt;{if(t.sourceDesc&amp;&amp;t.sourceDesc.startsWith("æŠ•å‰å°½è°ƒ")&amp;&amp;t.sourceDesc.length&gt;4){let e=t.sourceDesc.replace("æŠ•å‰å°½è°ƒï¼ˆ","").replace("ï¼‰","");t.source="INVESTMENT_CONSULTANT",t.createdInstitutionName=e}}),t||[]},itemIds(){if(this.items&amp;&amp;this.items.length&gt;0){const t=this.items.map(t=&gt;t.id);return t}return[]}},mounted(){},methods:{clearSelectedItems(){this.$store.commit("setChosenItems",[]),this.onRemoveItem(null)},formatCode(t){if(t){const e=t.split(".");return"OF"==e[1]||"SZ"==e[1]||"SH"==e[1]?`(${t})`:""}return""},onItemClick(t){this.$router.push("/productAnalysisNew/"+t.id)},onRemoveItem(t){this.$store.commit("removeChosenItem",t),this.$emit("onRemove",t)},onMoveUp(t,e){const a=this.items[e-1];this.items.splice(e-1,2,t,a)},onMoveDown(t,e){const a=this.items[e+1];this.items.splice(e,2,a,t)},onFitting(){this.items&amp;&amp;this.items.length&gt;0?($=this.$loading({lock:!0,text:"Loading",spinner:"el-icon-loading",background:"rgba(0, 0, 0, 0.7)"}),setTimeout(()=&gt;{this.showFitting=!0},200)):this.$message.warning("æœªé€‰æ‹©æ‹Ÿåˆäº§å“")},closeLoading(){$.close()},onExport(){if(this.items&amp;&amp;this.items.length&gt;0){this.isExporting=!0;let t={productIds:this.items.map(t=&gt;t.id).join(",")};this.$api.navExport.get(t).then(t=&gt;{let e=t.result,a=r["b"].stringToArrayBuffer(atob(e)),i=new Blob([a],{type:"application/octet-binary"}),s=document.createElement("a");s.href=window.URL.createObjectURL(i),s.download=`å¯¼å‡ºå‡€å€¼_${o["a"].getNowDateString()}.xlsx`,s.click(),this.isExporting=!1}).catch(t=&gt;{console.log(t),this.isExporting=!1})}else this.$message.warning("æœªé€‰æ‹©å¯¼å‡ºäº§å“")},onCompare(){if(this.items&amp;&amp;this.items.length&gt;0){const t=this.items.map(t=&gt;t.id);localStorage.setItem("compareIds",JSON.stringify(t)),"/productAnalysisNew/compare"==this.$route.path?this.$emit("onCompare",this.items):this.$router.push({path:"/productAnalysisNew/compare"})}}}},U=W,Y=(a("e1f0"),Object(f["a"])(U,i,s,!1,null,"633dece0",null));e["a"]=Y.exports},a602:function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return t.show?a("el-select",{staticStyle:{width:"100%"},attrs:{size:t.size,clearable:t.clearable,"allow-create":t.allowCreate,filterable:t.filterable,placeholder:t.placeholder,disabled:t.disabled,multiple:t.multiple,"filter-method":t.filterEntity,"default-first-option":!0},on:{input:function(e){return t.$emit("input",t.optionValue)},change:function(e){return t.$emit("change",t.optionValue)},clear:function(e){return t.filterEntity("")}},model:{value:t.optionValue,callback:function(e){t.optionValue=e},expression:"optionValue"}},[t._l(t.selectOptions,(function(e){return t.groupOption?t._e():a("el-option",{key:t.keyIdentifier+e.value,attrs:{label:e[t.labelField],value:e.value}},[t.labelField2?a("span",{staticStyle:{float:"left"}},[t._v(t._s(e[t.labelField]))]):t._e(),t.labelField2?a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"12px"}},[t._v(t._s(e[t.labelField2]))]):t._e()])})),t._l(t.selectOptions,(function(e){return t.groupOption?a("el-option-group",{key:t.keyIdentifier+e.label,attrs:{label:e.label}},t._l(e.options,(function(e){return a("el-option",{key:t.keyIdentifier+e.value,attrs:{label:e[t.labelField],value:e.value}},[t.labelField2?a("span",{staticStyle:{float:"left"}},[t._v(t._s(e[t.labelField]))]):t._e(),t.labelField2?a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"12px","padding-left":"5px"}},[t._v(t._s(e[t.labelField2]))]):t._e()])})),1):t._e()}))],2):t._e()},s=[],r=(a("14d9"),a("8b55")),o={props:{options:{type:Array,required:!0,default:[]},placeholder:{type:String,default:""},value:{required:!1,default:null},size:{type:String,default:"mini"},disabled:{type:Boolean,default:!1},identifier:{type:String,default:null},multiple:{type:Boolean,default:!1},groupOption:{type:Boolean,default:!1},labelField:{type:String,default:"label"},labelField2:{type:String,required:!1},clearable:{type:Boolean,default:!0},filterable:{type:Boolean,default:!0},allowCreate:{type:Boolean,default:!1}},data:function(){return{show:!0,selectOptions:this.options,optionValue:this.value,keyIdentifier:this.identifier}},methods:{filterEntity:function(t){t?this.groupOption?(this.selectOptions=[],this.options.forEach(e=&gt;{this.selectOptions.push({label:e.label,options:e.options.filter(this.createEntityFilter(t))})})):this.selectOptions=this.options.filter(this.createEntityFilter(t)):this.selectOptions=this.options},createEntityFilter(t){return e=&gt;r["b"].contains(e[this.labelField],t,!1)||r["b"].contains(e.pinyin,t,!1)}},watch:{optionValue:function(t){this.show=!1,this.$nextTick(()=&gt;{this.selectOptions=this.options,this.show=!0})},value:function(t){this.optionValue=t},identifier:function(t){this.keyIdentifier=t},options:function(t){this.selectOptions=t}},mounted(){null===this.keyIdentifier&amp;&amp;(this.keyIdentifier=(new Date).getTime().toString())}},n=o,l=a("0c7c"),c=Object(l["a"])(n,i,s,!1,null,null,null);e["a"]=c.exports},a773:function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"product-detail__section"},[a("th-section",{attrs:{title:"ä¸šç»©å½’å›&nbsp;",level:"1"}},[a("div",{staticStyle:{"margin-top":"24px"}},[a("analysis-select-time",{ref:"sectionSelectTime",attrs:{products:t.products}})],1),!t.purePrivateFunds||t.isMutualFunds?a("div",{staticStyle:{"margin-top":"24px"}},[a("analysis-factor-sector",{attrs:{products:t.products}})],1):t._e(),t.isTFFof&amp;&amp;!t.isMutualFunds?a("div",{staticStyle:{"margin-top":"24px"}},[a("analysis-regression",{attrs:{product:t.product,products:t.products},on:{editBenchmark:t.editBenchmark}})],1):t._e()])],1)},s=[],r=a("f65d"),o=a("5b28"),n=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:{callback:t.visibilityChanged,throttle:300},expression:"{ callback: visibilityChanged, throttle: 300 }"}]},[a("th-section",{attrs:{title:"æ‹©æ—¶æ¨¡åž‹",level:"2"},scopedSlots:t._u([{key:"title",fn:function(){return[a("span",{staticClass:"slot-text"},[a("legendExplain",{attrs:{title:"æ‹©æ—¶æ¨¡åž‹",imgUrls:["/img/gongshi/select-time.jpg"]}})],1)]},proxy:!0}])},[t.evalProducts&amp;&amp;t.evalProducts.length&gt;0?[a("div",{staticClass:"info-box-o margin-t10"},[a("div",{staticClass:"info-item"},[a("span",{staticClass:"label"},[t._v("æ—¶é—´å‘¨æœŸ")]),a("span",{staticClass:"value"},[a("el-date-picker",{staticStyle:{width:"200px"},attrs:{size:"mini",type:"daterange","unlink-panels":"","value-format":"yyyy-MM-dd","picker-options":t.pickerOptions2},model:{value:t.dateRange,callback:function(e){t.dateRange=e},expression:"dateRange"}})],1)]),t._l(t.evalProducts,(function(e,i){return a("div",{key:"sel_"+i,staticClass:"info-item"},[a("span",{staticClass:"label"},[t._v(t._s(e.productName))]),a("span",{staticClass:"value"},[a("el-select",{staticStyle:{width:"200px"},attrs:{size:"mini","value-key":"id",placeholder:"æ‹©æ—¶åŸºå‡†"},model:{value:t.benchmarkIds[i],callback:function(e){t.$set(t.benchmarkIds,i,e)},expression:"benchmarkIds[index]"}},t._l(t.benchOptions,(function(t){return a("el-option",{key:"pb_"+t.id,attrs:{value:t.id,label:t.name}})})),1)],1)])})),a("el-button",{attrs:{size:"mini",type:"primary",loading:t.isLoading},on:{click:t.onStartAnalysis}},[t._v("å¼€å§‹åˆ†æž")])],2),a("div",{directives:[{name:"show",rawName:"v-show",value:t.warningMessage,expression:"warningMessage"}],staticStyle:{"margin-top":"12px"}},[a("el-alert",{attrs:{title:t.warningMessage,type:"warning",closable:""},on:{close:function(e){t.warningMessage=null}}})],1),t.errorMessage?a("div",{staticStyle:{"margin-top":"12px"}},[a("p",{staticStyle:{border:"1px solid rgb(230, 162, 60)",color:"rgb(230, 162, 60)",padding:"8px","font-size":"12px","letter-spacing":"1px"}},[a("i",{staticClass:"el-icon-warning-outline",staticStyle:{"margin-right":"8px"}}),t._v(t._s(t.errorMessage)+" ")])]):[a("el-row",{staticClass:"hidden-lg-and-down",staticStyle:{"margin-top":"12px"},attrs:{gutter:12}},[a("el-col",{attrs:{span:8}},[a("div",{staticStyle:{padding:"8px","background-color":"#f5f5f5",color:"#999","font-size":"12px"}},[t._v(" TM æ¨¡åž‹ ")]),a("div",{staticStyle:{"text-align":"center","margin-top":"10px"}},[a("el-radio-group",{attrs:{size:"mini"},on:{change:t.refreshChart2},model:{value:t.tmChoose,callback:function(e){t.tmChoose=e},expression:"tmChoose"}},[a("el-radio-button",{attrs:{label:"æ‹©æ—¶èƒ½åŠ›",size:"mini"}},[t._v("æ‹©æ—¶èƒ½åŠ›")]),a("el-radio-button",{attrs:{label:"æš´éœ²",size:"mini"}},[t._v("æš´éœ²")])],1)],1),a("fof-e-charts",{attrs:{option:t.tmOption,height:250,dialogTitle:"TMæ¨¡åž‹"}}),a("el-table",{staticClass:"th-el-table",attrs:{"highlight-current-row":"",size:"mini",border:"",data:t.tmRows,"span-method":t.tableSpanMethod}},[a("el-table-column",{attrs:{prop:"cat",width:"70",fixed:"",align:"center"}}),a("el-table-column",{attrs:{prop:"cat2",width:"80",fixed:""}}),t._l(t.evalProducts,(function(e,i){return a("el-table-column",{key:"tm_"+i,attrs:{prop:e.productName,label:e.productName,formatter:t.formatNumber,align:"right"}})}))],2)],1),a("el-col",{attrs:{span:8}},[a("div",{staticStyle:{padding:"8px","background-color":"#f5f5f5",color:"#999","font-size":"12px"}},[t._v(" HM æ¨¡åž‹ ")]),a("div",{staticStyle:{"text-align":"center","margin-top":"10px"}},[a("el-radio-group",{attrs:{size:"mini"},on:{change:t.refreshChart2},model:{value:t.hmChoose,callback:function(e){t.hmChoose=e},expression:"hmChoose"}},[a("el-radio-button",{attrs:{label:"æ‹©æ—¶èƒ½åŠ›",size:"mini"}},[t._v("æ‹©æ—¶èƒ½åŠ›")]),a("el-radio-button",{attrs:{label:"æš´éœ²",size:"mini"}},[t._v("æš´éœ²")])],1)],1),a("fof-e-charts",{attrs:{option:t.hmOption,height:250,dialogTitle:"HMæ¨¡åž‹"}}),a("el-table",{staticClass:"th-el-table",attrs:{"highlight-current-row":"",size:"mini",border:"",data:t.hmRows,"span-method":t.tableSpanMethod}},[a("el-table-column",{attrs:{prop:"cat",width:"70",fixed:"",align:"center"}}),a("el-table-column",{attrs:{prop:"cat2",width:"80",fixed:""}}),t._l(t.evalProducts,(function(e,i){return a("el-table-column",{key:"hm_"+i,attrs:{prop:e.productName,label:e.productName,formatter:t.formatNumber,align:"right"}})}))],2)],1),a("el-col",{attrs:{span:8}},[a("div",{staticStyle:{padding:"8px","background-color":"#f5f5f5",color:"#999","font-size":"12px"}},[t._v(" CL æ¨¡åž‹ ")]),a("div",{staticStyle:{"text-align":"center","margin-top":"10px"}},[a("el-radio-group",{attrs:{size:"mini"},on:{change:t.refreshChart2},model:{value:t.clChoose,callback:function(e){t.clChoose=e},expression:"clChoose"}},[a("el-radio-button",{attrs:{label:"æ‹©æ—¶èƒ½åŠ›",size:"mini"}},[t._v("æ‹©æ—¶èƒ½åŠ›")]),a("el-radio-button",{attrs:{label:"æ­£å‘æ‹©æ—¶",size:"mini"}},[t._v("æ­£å‘æ‹©æ—¶")]),a("el-radio-button",{attrs:{label:"è´Ÿå‘æ‹©æ—¶",size:"mini"}},[t._v("è´Ÿå‘æ‹©æ—¶")])],1)],1),a("fof-e-charts",{attrs:{option:t.clOption,height:250,dialogTitle:"CLæ¨¡åž‹"}}),a("el-table",{staticClass:"th-el-table",attrs:{"highlight-current-row":"",size:"mini",border:"",data:t.clRows,"span-method":t.clTableSpanMethod}},[a("el-table-column",{attrs:{prop:"cat",width:"70",fixed:"",align:"center"}}),a("el-table-column",{attrs:{prop:"cat2",width:"100",fixed:""}}),t._l(t.evalProducts,(function(e,i){return a("el-table-column",{key:"cl_"+i,attrs:{prop:e.productName,label:e.productName,formatter:t.formatNumber,align:"right"}})}))],2)],1)],1),a("div",{staticClass:"hidden-xl-only",staticStyle:{"margin-top":"12px"}},[a("div",{staticStyle:{padding:"8px","background-color":"#f5f5f5",color:"#999","font-size":"12px"}},[t._v(" TM æ¨¡åž‹ ")]),a("el-row",{staticStyle:{padding:"12px 0px"},attrs:{gutter:12}},[a("el-col",{attrs:{span:13}},[a("div",{staticStyle:{"text-align":"center"}},[a("el-radio-group",{attrs:{size:"mini"},on:{change:t.refreshChart2},model:{value:t.tmChoose,callback:function(e){t.tmChoose=e},expression:"tmChoose"}},[a("el-radio-button",{attrs:{label:"æ‹©æ—¶èƒ½åŠ›",size:"mini"}},[t._v("æ‹©æ—¶èƒ½åŠ›")]),a("el-radio-button",{attrs:{label:"æš´éœ²",size:"mini"}},[t._v("æš´éœ²")])],1)],1),a("fof-e-charts",{attrs:{option:t.tmOption,height:250,dialogTitle:"TMæ¨¡åž‹"}})],1),a("el-col",{attrs:{span:11}},[a("el-table",{staticClass:"th-el-table",attrs:{"highlight-current-row":"",size:"mini",border:"",data:t.tmRows,"span-method":t.tableSpanMethod}},[a("el-table-column",{attrs:{prop:"cat",width:"70",fixed:"",align:"center"}}),a("el-table-column",{attrs:{prop:"cat2",width:"80",fixed:""}}),t._l(t.evalProducts,(function(e,i){return a("el-table-column",{key:"tm2_"+i,attrs:{prop:e.productName,label:e.productName,formatter:t.formatNumber,align:"right"}})}))],2)],1)],1),a("div",{staticStyle:{padding:"8px","background-color":"#f5f5f5",color:"#999","font-size":"12px"}},[t._v(" HM æ¨¡åž‹ ")]),a("el-row",{staticStyle:{padding:"12px 0px"},attrs:{gutter:12}},[a("el-col",{attrs:{span:13}},[a("div",{staticStyle:{"text-align":"center"}},[a("el-radio-group",{attrs:{size:"mini"},on:{change:t.refreshChart2},model:{value:t.hmChoose,callback:function(e){t.hmChoose=e},expression:"hmChoose"}},[a("el-radio-button",{attrs:{label:"æ‹©æ—¶èƒ½åŠ›",size:"mini"}},[t._v("æ‹©æ—¶èƒ½åŠ›")]),a("el-radio-button",{attrs:{label:"æš´éœ²",size:"mini"}},[t._v("æš´éœ²")])],1)],1),a("fof-e-charts",{attrs:{option:t.hmOption,height:250,dialogTitle:"HMæ¨¡åž‹"}})],1),a("el-col",{attrs:{span:11}},[a("el-table",{staticClass:"th-el-table",attrs:{"highlight-current-row":"",size:"mini",border:"",data:t.hmRows,"span-method":t.tableSpanMethod}},[a("el-table-column",{attrs:{prop:"cat",width:"70",fixed:"",align:"center"}}),a("el-table-column",{attrs:{prop:"cat2",width:"80",fixed:""}}),t._l(t.evalProducts,(function(e,i){return a("el-table-column",{key:"hm2_"+i,attrs:{prop:e.productName,label:e.productName,formatter:t.formatNumber,align:"right"}})}))],2)],1)],1),a("div",{staticStyle:{padding:"8px","background-color":"#f5f5f5",color:"#999","font-size":"12px"}},[t._v(" CL æ¨¡åž‹ ")]),a("el-row",{staticStyle:{padding:"12px 0px"},attrs:{gutter:12}},[a("el-col",{attrs:{span:13}},[a("div",{staticStyle:{"text-align":"center"}},[a("el-radio-group",{attrs:{size:"mini"},on:{change:t.refreshChart2},model:{value:t.clChoose,callback:function(e){t.clChoose=e},expression:"clChoose"}},[a("el-radio-button",{attrs:{label:"æ‹©æ—¶èƒ½åŠ›",size:"mini"}},[t._v("æ‹©æ—¶èƒ½åŠ›")]),a("el-radio-button",{attrs:{label:"æ­£å‘æ‹©æ—¶",size:"mini"}},[t._v("æ­£å‘æ‹©æ—¶")]),a("el-radio-button",{attrs:{label:"è´Ÿå‘æ‹©æ—¶",size:"mini"}},[t._v("è´Ÿå‘æ‹©æ—¶")])],1)],1),a("fof-e-charts",{attrs:{option:t.clOption,height:250,dialogTitle:"CLæ¨¡åž‹"}})],1),a("el-col",{attrs:{span:11}},[a("el-table",{staticClass:"th-el-table",attrs:{"highlight-current-row":"",size:"mini",border:"",data:t.clRows,"span-method":t.clTableSpanMethod}},[a("el-table-column",{attrs:{prop:"cat",width:"70",fixed:"",align:"center"}}),a("el-table-column",{attrs:{prop:"cat2",width:"80",fixed:""}}),t._l(t.evalProducts,(function(e,i){return a("el-table-column",{key:"cl2_"+i,attrs:{prop:e.productName,label:e.productName,formatter:t.formatNumber,align:"right"}})}))],2)],1)],1)],1)]]:[a("p",{staticStyle:{border:"1px solid rgb(230, 162, 60)",color:"rgb(230, 162, 60)",padding:"8px","font-size":"12px","letter-spacing":"1px"}},[a("i",{staticClass:"el-icon-warning-outline",staticStyle:{"margin-right":"8px"}}),"MUTUAL_FUND"==t.productType?a("span",[t._v("åŸºé‡‘ç±»åž‹ä¸åœ¨æŒ‡å®šèŒƒå›´å†…ï¼ˆè‚¡ç¥¨åž‹ã€æ··åˆåž‹ï¼‰ï¼Œæ¨¡åž‹æš‚ä¸æ”¯æŒ")]):a("span",[t._v("ç­–ç•¥ç±»åž‹ä¸åœ¨æŒ‡å®šèŒƒå›´å†…ï¼ˆè‚¡ç¥¨å¤šå¤´ã€å¤åˆç­–ç•¥ï¼‰ï¼Œæ¨¡åž‹æš‚ä¸æ”¯æŒ")])])]],2)],1)},l=[],c=(a("14d9"),a("9a0f")),h=a("6a57"),d=a("25ca"),p=a("9479"),u=a("1d2b4"),m=a("5f35"),f=a("2ef0"),g=a.n(f);const b=[{key:"excess",name:"å¸‚åœºBetaæš´éœ²",cat:"å¸‚åœºBeta",cat2:"æš´éœ²"},{key:"excess_TM",name:"å¸‚åœºBetaæ‹©æ—¶èƒ½åŠ›",cat:"å¸‚åœºBeta",cat2:"æ‹©æ—¶èƒ½åŠ›"},{key:"SMB",name:"å¤§å°ç›˜æš´éœ²",cat:"å¤§å°ç›˜",cat2:"æš´éœ²"},{key:"SMB_TM",name:"å¤§å°ç›˜æ‹©æ—¶èƒ½åŠ›",cat:"å¤§å°ç›˜",cat2:"æ‹©æ—¶èƒ½åŠ›"},{key:"HML",name:"ä¼°å€¼æš´éœ²",cat:"ä¼°å€¼",cat2:"æš´éœ²"},{key:"HML_TM",name:"ä¼°å€¼æ‹©æ—¶èƒ½åŠ›",cat:"ä¼°å€¼",cat2:"æ‹©æ—¶èƒ½åŠ›"}],v=[{key:"excess",name:"å¸‚åœºbetaæš´éœ²",cat:"å¸‚åœºBeta",cat2:"æš´éœ²"},{key:"excess_HM",name:"å¸‚åœºbetaæ‹©æ—¶èƒ½åŠ›",cat:"å¸‚åœºBeta",cat2:"æ‹©æ—¶èƒ½åŠ›"},{key:"SMB",name:"å¤§å°ç›˜æš´éœ²",cat:"å¤§å°ç›˜",cat2:"æš´éœ²"},{key:"SMB_HM",name:"å¤§å°ç›˜æ‹©æ—¶èƒ½åŠ›",cat:"å¤§å°ç›˜",cat2:"æ‹©æ—¶èƒ½åŠ›"},{key:"HML",name:"ä¼°å€¼æš´éœ²",cat:"ä¼°å€¼",cat2:"æš´éœ²"},{key:"HML_HM",name:"ä¼°å€¼æ‹©æ—¶èƒ½åŠ›",cat:"ä¼°å€¼",cat2:"æ‹©æ—¶èƒ½åŠ›"}],y=[{key:"excess",name:"å¸‚åœºbetaæ‹©æ—¶èƒ½åŠ›",cat:"å¸‚åœºBeta",cat2:"æ‹©æ—¶èƒ½åŠ›"},{key:"excess_CL_max",name:"å¸‚åœºbetaæ­£å‘æ‹©æ—¶èƒ½åŠ›",cat:"å¸‚åœºBeta",cat2:"æ­£å‘æ‹©æ—¶èƒ½åŠ›"},{key:"excess_CL_min",name:"å¸‚åœºbetaè´Ÿå‘æ‹©æ—¶èƒ½åŠ›",cat:"å¸‚åœºBeta",cat2:"è´Ÿå‘æ‹©æ—¶èƒ½åŠ›"},{key:"SMB",name:"å¤§å°ç›˜æ‹©æ—¶èƒ½åŠ›",cat:"å¤§å°ç›˜",cat2:"æ‹©æ—¶èƒ½åŠ›"},{key:"SMB_CL_max",name:"å¤§å°ç›˜æ­£å‘æ‹©æ—¶èƒ½åŠ›",cat:"å¤§å°ç›˜",cat2:"æ­£å‘æ‹©æ—¶èƒ½åŠ›"},{key:"SMB_CL_min",name:"å¤§å°ç›˜è´Ÿå‘æ‹©æ—¶èƒ½åŠ›",cat:"å¤§å°ç›˜",cat2:"è´Ÿå‘æ‹©æ—¶èƒ½åŠ›"},{key:"HML",name:"ä¼°å€¼æ‹©æ—¶èƒ½åŠ›",cat:"ä¼°å€¼",cat2:"æ‹©æ—¶èƒ½åŠ›"},{key:"HML_CL_max",name:"ä¼°å€¼æ­£å‘æ‹©æ—¶èƒ½åŠ›",cat:"ä¼°å€¼",cat2:"æ­£å‘æ‹©æ—¶èƒ½åŠ›"},{key:"HML_CL_min",name:"ä¼°å€¼è´Ÿå‘æ‹©æ—¶èƒ½åŠ›",cat:"ä¼°å€¼",cat2:"è´Ÿå‘æ‹©æ—¶èƒ½åŠ›"}],x=["è‚¡ç¥¨å¤šå¤´","å¤åˆç­–ç•¥","è‚¡ç¥¨åž‹åŸºé‡‘","æ··åˆåž‹åŸºé‡‘"];var w={name:"analysis-select-time",components:{fofECharts:r["a"],analysisRegression:o["a"],legendExplain:p["a"]},props:{products:Array},data(){return{isVisible:!1,lastParamObj:null,pickerOptions2:{shortcuts:[{text:"æœ€è¿‘ä¸€ä¸ªæœˆ",onClick(t){const e=new Date,a=new Date;a.setTime(a.getTime()-2592e6),t.$emit("pick",[a,e])}},{text:"æœ€è¿‘ä¸‰ä¸ªæœˆ",onClick(t){const e=new Date,a=new Date;a.setTime(a.getTime()-7776e6),t.$emit("pick",[a,e])}},{text:"æœ€è¿‘å…­ä¸ªæœˆ",onClick(t){const e=new Date,a=new Date;a.setTime(a.getTime()-15552e6),t.$emit("pick",[a,e])}},{text:"æœ€è¿‘ä¸€å¹´",onClick(t){const e=new Date,a=new Date;a.setTime(a.getTime()-31536e6),t.$emit("pick",[a,e])}},{text:"æœ€è¿‘ä¸¤å¹´",onClick(t){const e=new Date,a=new Date;a.setTime(a.getTime()-63072e6),t.$emit("pick",[a,e])}},{text:"æœ€è¿‘ä¸‰å¹´",onClick(t){const e=new Date,a=new Date;a.setTime(a.getTime()-94608e6),t.$emit("pick",[a,e])}},{text:"ä»Šå¹´ä»¥æ¥",onClick(t){const e=new Date,a=new Date((new Date).getFullYear()+"-01-01");t.$emit("pick",[a,e])}}]},tmRows:null,tmOption:null,hmRows:null,hmOption:null,clRows:null,clOption:null,navOption:null,rawData:null,rawDataMap:null,evalProducts:null,params:{start:h["a"].getYearAgoDateString(),end:h["a"].getNowDateString(),benchmarkId:null,benchmarks:[]},isLoading:!1,errorMessage:null,warningMessage:null,benchmarkIds:[],benchOptions:[],tmChoose:"æ‹©æ—¶èƒ½åŠ›",hmChoose:"æ‹©æ—¶èƒ½åŠ›",clChoose:"æ‹©æ—¶èƒ½åŠ›"}},computed:{paramObj(){return{products:this.products}},dateRange:{get(){const{start:t,end:e}=this.params;return null!=t&amp;&amp;null!=e?[t,e]:[]},set(t){if(t&amp;&amp;t.length&gt;1){const[e,a]=t;this.params.start=e,this.params.end=a}else this.params.start=null,this.params.end=null}},productType(){return this.products&amp;&amp;this.products.length&gt;0?this.products[0].productType:null}},watch:{paramObj:{deep:!0,immediate:!0,handler(t){this.loadData()}}},mounted(){},methods:{visibilityChanged(t,e){this.isVisible=t,this.loadData()},async reloadData(){await this.loadData(!0)},async loadData(t=!1){if(t&amp;&amp;(this.lastParamObj=Math.random().toString()),!this.isVisible||JSON.stringify(this.lastParamObj)==JSON.stringify(this.paramObj))return;this.lastParamObj=g.a.cloneDeep(this.paramObj);const e=(this.products||[]).filter(t=&gt;this.validateProduct(t));this.evalProducts=e,this.benchmarkIds=(e||[]).map(t=&gt;t.benchmark&amp;&amp;"MUTUAL_FUND"!==t.productType?t.benchmark.id:null),await this.loadParam()},setOption(t,e){let a=this;t.toolbox={feature:{mytool:{show:!0,title:"å¯¼å‡ºæ•°æ®",icon:"image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAAAsSAAALEgHS3X78AAAE/klEQVR4nO2cT2gbRxTGPyuRFzesZKQNJTJRSVuwD5JP8WkLLe0lTSG+RqWnHuqW+C5QznFx7iXOOYeE9BQffArOJXuyoSDpkECoQcKC2GtheesuIxu5B3XFSruSdjQr7x/N77h6mh19jObN+2aYqYuLiwtwRibidQeCDheQES4gI1xARq563YFBlFQCpabjbU2Hsq/jpNnCszs3cPfWNa+71mHKT1nYTrBe5NQMNpfnPOidPZ6OQCeC+Z1LFTAMgvUyVgHHIViDtKDUdBd6R0dsOoKsJFieuzoHhnGEmXn5QwrfpT/pesY0AsMuWC+vK/+yCegHwTJJAWtfSUPj7r3ap4p30pYdAwX0g2C9xIUI5NTM2OJpsQhYUgnWd+u+EczvWAS892qfC0eBpRbm4tHBzQRGuICM+NqNsaOkkoHLCtZ4WgIn4EmTrpSjjaeF/4UZCdwIdOoHJp98oIp30pYdfAQywgVkhAvICBeQEWYBn925gc3lOcSm6Zp6JEv4++fP8b2PdthGgTkLl1SC/FICa7KE1TcHjr4jp2bw6+IsAKCsEqr30Vr6494CsFj6g1J2P/766TOkxSi+fllF+Wi4IEb8RvEYDxWV+n1e8Ut2Fr/3mLOuzIGr2+2R58T5XVmcRVqMokFaWN+pu/F6T3FlIa3UdGztneLurWu4Py/ixXvNNi42HUH+dgIAUFAOR7LObopXkZuPDY17vFuninfSlh2uVSIF5RByagb5pQS29k5txVmTJcSFCJSa3lfkYaTFKPJLiaFxxo92Gu+kLTtcW8ZUtXNsFI+RFqOdBGEmkxSQW2iPhMLb4Mx7w3B1Hfh4t46Kdob8UgI3xe7BbcyPG8VjR4kmKLi+kO4kFPl659n9eRFyaiY0icOM626MOaEc/fZl12ejJg4/M5ZSrqAcokG6hWJJHH5mLH6gkVDM2c+txDExlr65fFJqumuJY2IsfXMW7s3IYWIsvyw2HenKwmkxipXFWTwtHjO3PRGWfn4pgbjQ3XT+doLa8goCrv+iTFLoVCLrO3Ukn3xAQVERFyJYk9mOmfkR1wU0Kg6lpndqyKfFYyg1HbmF2FiPmnmBqwIaFQdgXbY82P4IoO1EhwnXBDQnjufvTizLFmNtmJUErNiYDUHFNQGNxNEgLRT6uMzrO3U0SCtUCcWVZUxX4tit9613T5otFJRD/PHtp1R7KGaUmk617UAbT4srw8BIHBXtbOha78V7DSWVhCahMI9Ac+IwrKxhPFRUbC7P4ZEs4Zs/q1TvC52l/+P/LvPW3qnjmlOp6Xj+7gS5hdjAPRQ7/GbpMwv4YPsj4tNXqM2C1TcH2Cg2UNHOWLvgKcwCVrVzVHE+0nfDYO2HYy3hIVxARriAjATO6axoZ1Q7e7TxtAROwKp2PnBZwRpPC/8LMxK4ETgRlv4kwQVkhAvICBeQES4gIxYBM0nr5TKc/lhO6TdIC1t7/6B01ERZJSipJHRH0kbF7pS+ZR0YFyLILcSQMz2raGcoq02UVILSEUFZJahqo1lYQeaL2ajl2chXPzVIC+Wj9ggtqQRltXkp/l6/O6zGTUYSbE9WuH5/YFtMMrYpIPT3B2YlAVlJmJgp4FJq4bQYRVqMdl3d6dUU4DaemQnGnVa9e8PDpoCMB/PfIHx1h2o/GqSFA/0cDdJCVhIgXJnyuksdAiGgn+GlHCNcQEa4gIxwARn5D/oby6g3QU8UAAAAAElFTkSuQmCC",onclick:function(){a.exportExcel(t,e)}}}}},exportExcel(t,e){const a=e+".xlsx";let i=[""],s=[],r=[];t.radar.indicator.forEach(t=&gt;{i.push(t.name)}),t.series[0].data.forEach((t,e)=&gt;{let a=[t.name,...t.value];s.push(a)}),r.push(i),s&amp;&amp;s.length&gt;0&amp;&amp;r.push(...s);const o=d["utils"].aoa_to_sheet(r),n=d["utils"].book_new();d["utils"].book_append_sheet(n,o,"Sheet1"),d["writeFile"](n,a)},isMutualFunds(){if(null==this.products||0==this.products.length)return!1;for(const{productType:t}of this.products)if("MUTUAL_FUND"!=t)return!1;return!0},async loadParam(){const t=new m["b"].StockSelectTime;t.setReturnValue("para");const e=await this.$fundEvalService.getFundEvaluationData(t.toRequestBody(),null);e&amp;&amp;0==e.errorNo&amp;&amp;e.result&amp;&amp;e.result["åŸºå‡†"]&amp;&amp;(this.benchOptions=e.result["åŸºå‡†"]["option"].map(t=&gt;({id:t,name:t})),this.$nextTick(()=&gt;{this.benchOptions&amp;&amp;this.benchOptions.length&gt;0&amp;&amp;(this.benchmarkIds=(this.evalProducts||[]).map(t=&gt;this.benchOptions[0].id)),this.onStartAnalysis()}))},async loadRawDataMap(t){if(t&amp;&amp;t.length){this.isLoading=!0,this.isReady=!1;const e={};for(const a of t){const{id:i,productName:s,benchmark:r,code:o,perfStartDate:n}=a,l=s,c=t.indexOf(a);let{start:h,end:d}=this.params;e[l]={},n&amp;&amp;n.localeCompare(h)&gt;0&amp;&amp;(h=n);const p=new m["b"].StockSelectTime;this.isMutualFunds()?p.setWindCode(o):p.setProductId(i),p.setBenchmark(this.benchmarkIds[c]),p.setModel("TM"),p.setStart(h),p.setEnd(d),p.setReturnValue("data");const u=await this.$fundEvalService.getFundEvaluationData(p.toRequestBody(),null);u&amp;&amp;(e[l]["TM"]=u.result),p.setModel("HM");const f=await this.$fundEvalService.getFundEvaluationData(p.toRequestBody(),null);f&amp;&amp;(e[l]["HM"]=f.result),p.setModel("CL");const g=await this.$fundEvalService.getFundEvaluationData(p.toRequestBody(),null);g&amp;&amp;(e[l]["CL"]=g.result)}this.rawDataMap=e,this.isReady=!0}else this.rawDataMap=null;this.refreshChart2(),this.isLoading=!1},onStartAnalysis(){for(const t of this.evalProducts){const e=this.evalProducts.indexOf(t);if(!this.benchmarkIds[e]){let e=t.strategyDesc||t.strategyDescObj,a=e?e.firstLevelStrategyName:null;return void(null!=t.strategy&amp;&amp;x.includes(a)&amp;&amp;this.$message.warning("è¯·å…ˆé€‰æ‹©æ‹©æ—¶åŸºå‡†"))}}this.loadRawDataMap(this.evalProducts)},validateProduct(t){const e=this.$store.getters.getStrategyName(t.strategyCode||t.mutualFundStrategyCode,1);return!(null==t||!e)&amp;&amp;x.includes(e)},refreshChart(){if(this.rawData){const{TM:t,HM:e,CL:a}=this.rawData;if(null!=t&amp;&amp;(this.tmOption=new u["t"]("",b).appendData("TM",t).option,this.tmRows=b.map(e=&gt;({cat:e.cat,cat2:e.cat2,name:e.name,value:t[e.key]}))),null!=e&amp;&amp;(this.hmOption=new u["t"]("",v).appendData("HM",e).option,this.hmRows=v.map(t=&gt;({name:t.name,value:e[t.key]}))),null!=a){const t=new u["t"]("",y),{excess:e,SMB:i,HML:s,excess_MAX:r,SMB_MAX:o,HML_MAX:n,excess_MIN:l,SMB_MIN:h,HML_MIN:d}=a,p={excess:e,SMB:i,HML:s,excess_CL_max:r,SMB_CL_max:o,HML_CL_max:n,excess_CL_min:l,SMB_CL_min:h,HML_CL_min:d};t.appendData("CL",p),this.clOption=t.option,this.clRows=y.map(t=&gt;({name:t.name,value:c["a"].roundNumber(p[t.key],2)}))}}else this.tmOption=null,this.tmRows=[],this.hmOption=null,this.hmRows=[],this.clOption=null,this.clRows=[]},refreshChart2(){if(this.rawDataMap){let t=[],e=[],a=[];t="æ‹©æ—¶èƒ½åŠ›"==this.tmChoose?[b[1],b[3],b[5]]:[b[0],b[2],b[4]],e="æ‹©æ—¶èƒ½åŠ›"==this.hmChoose?[v[1],v[3],v[5]]:[v[0],v[2],v[4]],a="æ‹©æ—¶èƒ½åŠ›"==this.clChoose?[y[0],y[3],y[6]]:"æ­£å‘æ‹©æ—¶"==this.clChoose?[y[1],y[4],y[7]]:[y[2],y[5],y[8]];const i=new u["t"]("",t),s=new u["t"]("",e),r=new u["t"]("",a),o=[],n=[],l=[];for(const[c,h]of Object.entries(this.rawDataMap)){const{TM:t,HM:e,CL:a}=h;if(null!=t&amp;&amp;(i.appendData(c,t),b.forEach(e=&gt;{const a={cat:e.cat,cat2:e.cat2,name:e.name,[c]:t[e.key]},i=o.find(t=&gt;t.name==a.name);null==i?o.push(a):Object.assign(i,a)})),null!=e&amp;&amp;(s.appendData(c,e),v.forEach(t=&gt;{const a={cat:t.cat,cat2:t.cat2,name:t.name,[c]:e[t.key]},i=n.find(t=&gt;t.name==a.name);null==i?n.push(a):Object.assign(i,a)})),null!=a){const{excess:t,SMB:e,HML:i,excess_MAX:s,SMB_MAX:o,HML_MAX:n,excess_MIN:h,SMB_MIN:d,HML_MIN:p}=a,u={excess:t,SMB:e,HML:i,excess_CL_max:s,SMB_CL_max:o,HML_CL_max:n,excess_CL_min:h,SMB_CL_min:d,HML_CL_min:p};r.appendData(c,u),y.forEach(t=&gt;{const e={cat:t.cat,cat2:t.cat2,name:t.name,[c]:u[t.key]},a=l.find(t=&gt;t.name==e.name);null==a?l.push(e):Object.assign(a,e)})}}this.tmOption=i.option,this.hmOption=s.option,this.clOption=r.option,this.setOption(this.hmOption,"HMæ¨¡åž‹"),this.setOption(this.tmOption,"TMæ¨¡åž‹"),this.setOption(this.clOption,"CLæ¨¡åž‹"),this.tmRows=o,this.hmRows=n,this.clRows=l}},formatNumber(t,e,a){return null!=a?c["a"].roundNumber(a,2):"-"},tableSpanMethod({row:t,column:e,rowIndex:a,columnIndex:i}){if(0===i)return a%2===0?{rowspan:2,colspan:1}:{rowspan:0,colspan:0}},clTableSpanMethod({row:t,column:e,rowIndex:a,columnIndex:i}){if(0===i)return a%3===0?{rowspan:3,colspan:1}:{rowspan:0,colspan:0}}}},D=w,S=(a("c023"),a("0c7c")),C=Object(S["a"])(D,n,l,!1,null,"0210b2ba",null),A=C.exports,k=a("be88"),O=a("c367"),E={name:"analysis",components:{fofECharts:r["a"],analysisRegression:o["a"],analysisSelectTime:A,analysisFactorSector:k["a"]},props:{product:Object,products:Array,classification:String,start:String,end:String,valuationPeriod:String},data(){return{}},computed:{isTFFof(){return this.$store.state.userProfile&amp;&amp;this.$store.state.userProfile.institution&amp;&amp;203==this.$store.state.userProfile.institution.id},productTypes(){return O["a"].getProductTypes(this.products)},purePrivateFunds(){return this.productTypes&amp;&amp;"PURE_PRIVATE_FUND"==this.productTypes},isMutualFunds(){if(null==this.products||0==this.products.length)return!1;for(const{productType:t}of this.products)if("MUTUAL_FUND"!=t)return!1;return!0}},methods:{editBenchmark(t){this.$emit("editBenchmark",t)},loadData(t,e){}}},_=E,P=(a("4a74"),Object(S["a"])(_,i,s,!1,null,"8f40d1e8",null));e["a"]=P.exports},a7ee:function(t,e,a){"use strict";a("9f31")},ab36:function(t,e,a){var i=a("861d"),s=a("9112");t.exports=function(t,e){i(e)&amp;&amp;"cause"in e&amp;&amp;s(t,"cause",e.cause)}},abb4:function(t,e,a){},aeb0:function(t,e,a){var i=a("9bf2").f;t.exports=function(t,e,a){a in t||i(t,a,{configurable:!0,get:function(){return e[a]},set:function(t){e[a]=t}})}},b3a2:function(t,e,a){"use strict";a.d(e,"a",(function(){return n}));a("14d9");var i=a("2ef0"),s=a.n(i);a("9a0f");const r={top:0,show:!0,feature:{saveAsImage:{show:!1,type:"jpeg",backgroundColor:"#fff",icon:"image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsSAAALEgHS3X78AAAChElEQVRYhe2YPXMSURSG391lL6i7FG4TZp2h2oy4NFIEKqrYWFhAYeMM6w+QlsKUWmDpLyCFpYyVDU2GKrGwCpMZqZgJExstAjpkF7gWEbK4nzd8OsPTcbmcfTjncO4uHKWUYoPh1y0QxFZwXraC87IVnJcIALw5vsJhy1y3ywwlneAgF0Wk3rY2Tg4ADlsmHik8+PPeeN0unpz3xv9JD7KytyOguCtClXic/Ryhdmqh219OJZgFq/kYCpo4fZ1NCDB0gkpzgHrbWqgcwDhm9pORGTk71XwMqrT4jmGK6CV38/6tOsYXpog9k/3WUSYcDnJRqBKPk4shai2LKQ6T4MdvlmcWL02KenvoWP/w9C5SynWhsgkBD2QeleYg9DWZSvzl+8g1+KVJUWkOHL/kgiZO5exrLL3K3DT1toWTixH2kxHECdDtUzQ6Q9eylTPENYaRFvH2+Go5ggDQ7Y8Dj8eSTjwzVdBEvP9qhurFpZwkMuE8swcAccLB0P0nwoSlCBq6iDjhfPcUd8MJhipxQRP/9hyHRmeIett7VKgSDyPtnT37voImBp4+gYKvc1EY+s0FswkBRU3Es0+/XPeXMyQwe/a9QYK+JVYlfkZuQkrh8eqxc32SlbCoEo+9HeH2gn6NXs5E8fD+7Mer+VhoOXscPzwFZcIFZuNd/s50lJR0gmzCPxtuZBOC44va8ezBMGMgpfA4en6PWepfXqaJ5/Hnqi4TLtQvcVH4HX+uq2Hm2KLxulVzCK46exOMNIHskhSHYM+kOPux+ie9bo+6Dn/XvL74/HvpQmHZ+MfOzRdMKezDdVWkFAEcpZQ2OkPUTjfr/xkjTfAkGbkWXLeMHxvfg38AQIiyhzbvBIMAAAAASUVORK5CYII=",pixelRatio:2}}},o={title:{show:!1},animation:!1,grid:{top:60,bottom:24,left:24,right:24,color:"rgba(0,0,0,0.5)",containLabel:!0},xAxis:{type:"category",data:[],splitArea:{show:!0},axisLabel:{rotate:45}},yAxis:{type:"category",data:[],splitArea:{show:!0},axisTick:{show:!1},axisLabel:{interval:0}},visualMap:{min:-1,max:1,precision:2,calculable:!0,left:"right",bottom:"4%",orient:"vertical",splitNumber:21,inRange:{color:["#799f82","#ffffff","#d25757"]},itemHeight:"100",itemWidth:"5"},tooltip:{trigger:"item",formatter:function(t){let e=t.marker+t.name;return 999999==t.value[2]?(e+=": æ—&nbsp;",e):(e+=": "+t.value[2]+"%&lt;br&gt;",e)}},series:[{name:"",type:"heatmap",data:[],label:{normal:{show:!0,textStyle:{color:"#000000"},formatter:function(t){return 999999==t.data[2]?"-":t.data[2]+"%"}}},itemStyle:{normal:{borderColor:"#ededed",borderWidth:.5},emphasis:{shadowBlur:10,shadowColor:"rgba(0, 0, 0, 0.5)"}}}]};class n{constructor(t,e,a,i,s={}){this.title=t,this.xAxis=e,this.yAxis=a,this.dataMatrix=i,this.style=s}get option(){const t=s.a.cloneDeep(o);t.toolbox=r,t.xAxis.data=this.xAxis,t.yAxis.data=this.yAxis;let e=[];return this.dataMatrix.forEach(t=&gt;{t[2]?e.push([t[0],t[1],t[2],t[2]]):e.push([t[0],t[1],999999,0])}),t.series[0].data=e,this.title&amp;&amp;(t.title.text=this.title),this.style.hideVisual&amp;&amp;(t.visualMap.show=!1),this.xAxis.length&gt;25&amp;&amp;t.series.forEach(t=&gt;t.label.normal.show=!1),t}}},b980:function(t,e,a){var i=a("d039"),s=a("5c6c");t.exports=!i((function(){var t=Error("a");return!("stack"in t)||(Object.defineProperty(t,"stack",s(1,7)),7!==t.stack)}))},ba50:function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.optionGroup&amp;&amp;t.optionGroup.length?a("el-row",{attrs:{gutter:5}},[a("el-col",{staticClass:"margin-b5",attrs:{span:18}},[t.optionGroup&amp;&amp;t.optionGroup.length&gt;0?a("el-select",{attrs:{size:"mini",filterable:"",multiple:"",clearable:"",placeholder:"é€‰æ‹©æ¯”è¾ƒåŸºå‡†"},model:{value:t.indices,callback:function(e){t.indices=e},expression:"indices"}},t._l(t.optionGroup,(function(e){return a("el-option-group",{key:e.label,attrs:{label:e.label}},t._l(e.options,(function(e){return a("el-option",{key:e.id,attrs:{label:e.value?e.value.split("|").length&gt;1?e.value.split("|")[2]:e.value:e.productShortName,value:e.id}},[a("span",{staticStyle:{float:"left"}},[t._v(t._s(e.value))]),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[t._v(t._s(e.value2))])])})),1)})),1):t._e()],1),a("el-col",{attrs:{span:6}},[a("el-button",{attrs:{type:"primary",size:"mini",loading:t.loading},on:{click:t.search}},[t._v("ç¡®å®š")])],1)],1):t._e()],1)},s=[],r=(a("14d9"),a("8b55"),{props:{marketIndices:{type:Array},onLoading:{type:Boolean,default:!1},includeTemporaryNetValue:{type:Boolean}},data(){return{index:null,indices:[],loading:this.onLoading}},methods:{search(){this.$emit("load",this.indices)},getName(t){if(this.optionGroup)for(let e=0;e&lt;this.optionGroup.length;e++){let a=this.optionGroup[e];for(let e=0;e&lt;a.options;e++){let i=a[e];if(i.value==t)return i.label}}return"-"},formatterIndexOption(t){}},computed:{optionGroup(){let t=[];return this.$store.state.marketIndexList&amp;&amp;t.push({label:"æŒ‡æ•°",options:this.$store.state.marketIndexList}),this.$store.state.slaveFundList&amp;&amp;t.push({label:"å­åŸºé‡‘",options:this.$store.state.slaveFundList}),this.$store.state.masterFundList&amp;&amp;t.push({label:"æ¯åŸºé‡‘",options:this.$store.state.masterFundList}),t.push({label:"æ‹¼æŽ¥å‡€å€¼",options:this.$store.state.joinNavProductList||[]}),t}},watch:{marketIndices(t){this.formatterIndexOption(t)},onLoading(t){this.loading=t}},mounted(){this.formatterIndexOption(this.marketIndices)}}),o=r,n=a("0c7c"),l=Object(n["a"])(o,i,s,!1,null,null,null);e["a"]=l.exports},bdff:function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.loading,expression:"loading"}]},[t.isReadOnly?a("el-alert",{staticClass:"margin-b5",attrs:{title:t.readOnlyMsg,type:"error",closable:!1}}):t._e(),a("el-form",{ref:"form",attrs:{size:"mini","label-width":"100px",model:t.formData,rules:t.formDataRules,disabled:t.isReadOnly}},[a("el-form-item",{attrs:{prop:"productId",label:"äº§å“"}},[t.freezeProduct?a("div",[t._v(t._s(t.product.productName))]):a("el-select",{model:{value:t.formData.productId,callback:function(e){t.$set(t.formData,"productId",e)},expression:"formData.productId"}},t._l(t.productOptions,(function(t){return a("el-option",{key:t.value,attrs:{value:t.value,label:t.label}})})),1)],1),a("el-form-item",{attrs:{prop:"performanceBenchmarkId",label:"è¶…é¢åŸºå‡†"}},[a("el-select",{attrs:{clearable:"",filterable:"",remote:"","remote-method":function(e){return t.loadBenchmarkOptions(e,"pbOptions")}},model:{value:t.formData.performanceBenchmarkId,callback:function(e){t.$set(t.formData,"performanceBenchmarkId",e)},expression:"formData.performanceBenchmarkId"}},t._l(t.pbOptions,(function(e){return a("el-option-group",{key:e.label,attrs:{label:e.label}},t._l(e.options,(function(i,s){return a("el-option",{key:"pb_"+i.value,attrs:{label:i.label,value:i.value}},[a("span",{staticStyle:{float:"left"}},[t._v(t._s(i.label))]),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[t._v(t._s(e.label))])])})),1)})),1)],1),t.isSupportStrategyAllocBenchmark?a("el-form-item",{attrs:{prop:"strategyAllocBenchmarkId"}},[a("template",{slot:"label"},[a("span",[t._v(t._s(t.strategyAllocBenchmarkName))]),t.isMasterFund?a("el-tooltip",{staticClass:"margin-l5",attrs:{content:"å»ºè®®è®¾ç½®æˆåˆåŒä¸­çº¦å®šçš„åŸºå‡†, ä½œä¸ºæ¯åŸºé‡‘è®¡ç®—è¶…é¢æ”¶ç›Šçš„é»˜è®¤åŸºå‡†"}},[a("i",{staticClass:"el-icon-info"})]):t._e()],1),a("el-select",{attrs:{clearable:"",filterable:"",disabled:t.isMasterFund,remote:"","remote-method":function(e){return t.loadBenchmarkOptions(e,"saOptions")}},model:{value:t.formData.strategyAllocBenchmarkId,callback:function(e){t.$set(t.formData,"strategyAllocBenchmarkId",e)},expression:"formData.strategyAllocBenchmarkId"}},t._l(t.saOptions,(function(e){return a("el-option-group",{key:e.label,attrs:{label:e.label}},t._l(e.options,(function(i,s){return a("el-option",{key:"sa_"+i.value,attrs:{label:i.label,value:i.value}},[a("span",{staticStyle:{float:"left"}},[t._v(t._s(i.label))]),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[t._v(t._s(e.label))])])})),1)})),1)],2):t._e(),t.isSupportSameCompareBenchmark?a("el-form-item",{attrs:{prop:"sameCompareBenchmarkIds",label:"åŒç±»æ¯”è¾ƒåŸºå‡†"}},[a("el-select",{attrs:{multiple:"",clearable:"",filterable:"",disabled:t.isMasterFund,remote:"","remote-method":function(e){return t.loadBenchmarkOptions(e,"scOptions")}},model:{value:t.formData.sameCompareBenchmarkIds,callback:function(e){t.$set(t.formData,"sameCompareBenchmarkIds",e)},expression:"formData.sameCompareBenchmarkIds"}},t._l(t.scOptions,(function(e){return a("el-option-group",{key:e.label,attrs:{label:e.label}},t._l(e.options,(function(i,s){return a("el-option",{key:"sc_"+i.value,attrs:{label:i.label,value:i.value}},[a("span",{staticStyle:{float:"left"}},[t._v(t._s(i.label))]),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[t._v(t._s(e.label))])])})),1)})),1)],1):t._e(),a("el-form-item",{attrs:{"label-width":"0",align:"center"}},[a("el-button",{on:{click:t.onCancel}},[t._v("å–æ¶ˆ")]),a("el-button",{attrs:{type:"primary"},on:{click:t.onConfirm}},[t._v("ç¡®å®š")]),a("el-button",{on:{click:t.clear}},[t._v("æ¸…ç©º")])],1)],1)],1)},s=[],r=a("1a04"),o={name:"edit-product-benchmark",props:{product:Object,productId:Number,isAdminFormal:Boolean,isMasterFund:!1},data(){return{formData:{productId:null,benchmarkId:null,performanceBenchmarkId:null,strategyAllocBenchmarkId:null,sameCompareBenchmarkIds:null},createdInstitutionId:null,backBenchmarkId:null,formDataRules:{benchmarkId:[{required:!1,message:"è¯·é€‰æ‹©åŸºå‡†"}],benchmarkType:[{required:!0,message:"è¯·é€‰æ‹©åŸºå‡†ç±»åž‹"}]},productPool:null,loading:!1,freezeProduct:!1,benchmarks:[],performanceBenchmark:null,strategyAllocBenchmark:null,sameCompareBenchmarks:null,pbOptions:[],saOptions:[],scOptions:[]}},mounted(){this.loadBenchmarks(),this.init(this.product)},computed:{isSupportStrategyAllocBenchmark(){var t,e,a;return!this.isMasterFund||(null===(t=window.config)||void 0===t||null===(e=t.masterFund)||void 0===e||null===(a=e.productBenchmark)||void 0===a?void 0:a.supportStrategyAllocBenchmark)+""!="false"},isSupportSameCompareBenchmark(){var t,e,a;return!this.isMasterFund||(null===(t=window.config)||void 0===t||null===(e=t.masterFund)||void 0===e||null===(a=e.productBenchmark)||void 0===a?void 0:a.supportSameCompareBenchmark)+""!="false"},productOptions(){return[]},productName(){return this.product?this.product.productName||this.product.name:null},strategyAllocBenchmarkName(){return this.isMasterFund?"æ¯”è¾ƒåŸºå‡†":"ç­–ç•¥æ¯”è¾ƒåŸºå‡†"},userLoginInstitutionId(){return this.$store.state.userProfile&amp;&amp;this.$store.state.userProfile.institution?this.$store.state.userProfile.institution.id:null},isReadOnly(){return this.userLoginInstitutionId!=this.createdInstitutionId},readOnlyMsg(){return"éžåˆ›å»ºæœºæž„æ—&nbsp;æƒæŸ¥çœ‹æˆ–ç¼–è¾‘"}},watch:{product(t){t&amp;&amp;this.init(t)},productId(t){this.loadBenchmarks()}},methods:{async loadBenchmarks(){if(this.productId){this.loading=!0;const t=await this.$productService.getProductBenchmarks(this.productId);if("string"===typeof t);else{const e=t||[];if(this.benchmarks=e,this.performanceBenchmark=e.find(t=&gt;"EXCEED_BENCHMARK"===t.benchmarkType),this.performanceBenchmark){const{benchmarkId:t,benchmarkName:e}=this.performanceBenchmark;this.formData.performanceBenchmarkId=t,this.pbOptions=[{label:this.getIndexTypeName(t),options:[{label:e,value:t}]}]}if(this.strategyAllocBenchmark=e.find(t=&gt;"COMPARE_BENCHMARK"===t.benchmarkType),this.strategyAllocBenchmark){const{benchmarkId:t,benchmarkName:e}=this.strategyAllocBenchmark;this.formData.strategyAllocBenchmarkId=t,this.saOptions=[{label:this.getIndexTypeName(t),options:[{label:e,value:t}]}]}if(this.sameCompareBenchmarks=e.filter(t=&gt;"SIMILAR_COMPARE_BENCHMARK"===t.benchmarkType),null!=this.sameCompareBenchmarks){this.formData.sameCompareBenchmarkIds=this.sameCompareBenchmarks.map(t=&gt;t.benchmarkId);const t=this.sameCompareBenchmarks.map(t=&gt;({label:t.benchmarkName,value:t.benchmarkId}));this.scOptions=Object.entries(t.groupby(t=&gt;this.getIndexTypeName(t.value))).map(([t,e])=&gt;({label:t,options:e}))}}this.loading=!1}else this.benchmarks=[],this.performanceBenchmark=null,this.strategyAllocBenchmark=null,this.sameCompareBenchmarks=null},getIndexTypeName(t){const e=this.$store.state.marketIndexMap[t];return e?r["a"].marketIndexType[e.type]:""},async loadBenchmarkOptions(t,e){let a=this.$store.getters.getIndexGroupOptions(t),i=this.$store.getters.getFundGroupOptions(t,null,!0),s=a.concat(i);this.$set(this,e,s)},async init(t){if(this.loading=!0,t){this.formData.productId=t.id;const e=await this.$productService.getBenchmarkId(t.id);let a=await this.$productService.getProductInfo(t.id);this.createdInstitutionId=a.createdInstitutionId,this.formData.benchmarkId=e,this.backBenchmarkId=e,this.freezeProduct=!0}this.loading=!1},async onSaveBenchmark(){const t=await this.$productService.updateProductBenchmarks(this.formData);t&amp;&amp;("string"==typeof t?this.$message.error("æ›´æ–°äº§å“åŸºå‡†å¤±è´¥ï¼ŒåŽŸå›&nbsp;ï¼š"+t):(this.$message.success("æ›´æ–°åŸºå‡†æˆåŠŸï¼"),this.$emit("onSuccess")))},clear(){this.formData.performanceBenchmarkId=null,this.formData.strategyAllocBenchmarkId=null,this.formData.sameCompareBenchmarkIds=null},onConfirm(){this.$confirm("ç¡®å®šè¦æ›´æ–°äº§å“åŸºå‡†å—ï¼Ÿ").then(()=&gt;{this.onSaveBenchmark()}).catch(t=&gt;{})},onCancel(){this.$refs.form.resetFields(),this.$emit("onCancel")}}},n=o,l=a("0c7c"),c=Object(l["a"])(n,i,s,!1,null,"65e73332",null);e["a"]=c.exports},be88:function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("th-section",{attrs:{title:"æŠ•èµ„èƒ½åŠ›åˆ†æž",level:"2"}},[t.effectiveProducts&amp;&amp;t.effectiveProducts.length&amp;&amp;t.invalidProductNames&amp;&amp;t.invalidProductNames.length?[a("p",{staticStyle:{border:"1px solid rgb(230, 162, 60)",color:"rgb(230, 162, 60)",padding:"8px","font-size":"12px","letter-spacing":"1px"}},[a("i",{staticClass:"el-icon-warning-outline",staticStyle:{"margin-right":"8px"}}),a("span",[t._v(t._s(t.invalidProductNames.join("ã€"))+"çš„åŸºé‡‘ç±»åž‹ä¸åœ¨æŒ‡å®šèŒƒå›´å†…ï¼ˆ"+t._s(t.SUPPORT_STRATEGY_NAME.join("ã€"))+"ï¼‰ï¼Œæ¨¡åž‹æš‚ä¸æ”¯æŒ")])])]:t._e(),t.institution||t.manager||t.effectiveProducts&amp;&amp;t.effectiveProducts.length?[a("tf-navigator-tabs",{staticStyle:{"margin-top":"12px"},attrs:{items:t.filteredModeOptions,"value-key":"label"},model:{value:t.mode,callback:function(e){t.mode=e},expression:"mode"}}),a("analysisFactorSectorPeriod",{directives:[{name:"show",rawName:"v-show",value:"BY_PERIOD"==t.modeCode,expression:"modeCode == 'BY_PERIOD'"}],attrs:{products:t.effectiveProducts,institution:t.institution,manager:t.manager}}),a("analysisFactorSectorNav",{directives:[{name:"show",rawName:"v-show",value:"BY_NAV"==t.modeCode,expression:"modeCode == 'BY_NAV'"}],attrs:{products:t.effectiveProducts,institution:t.institution,manager:t.manager}})]:[a("p",{staticStyle:{border:"1px solid rgb(230, 162, 60)",color:"rgb(230, 162, 60)",padding:"8px","font-size":"12px","letter-spacing":"1px"}},[a("i",{staticClass:"el-icon-warning-outline",staticStyle:{"margin-right":"8px"}}),a("span",[t._v("åŸºé‡‘ç±»åž‹ä¸åœ¨æŒ‡å®šèŒƒå›´å†…ï¼ˆ"+t._s(t.SUPPORT_STRATEGY_NAME.join("ã€"))+"ï¼‰ï¼Œæ¨¡åž‹æš‚ä¸æ”¯æŒ")])])]],2)],1)},s=[],r=a("2a8d"),o=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:{callback:t.visibilityChanged,throttle:300},expression:"{ callback: visibilityChanged, throttle: 300 }"}]},[a("div",{staticClass:"info-box-o",staticStyle:{"margin-top":"12px"}},[a("div",{staticClass:"info-item"},[a("span",{staticClass:"label"},[t._v("æ—¶é—´åŒºé—´")]),a("span",{staticClass:"value"},[a("el-date-picker",{staticStyle:{width:"200px"},attrs:{size:"mini",type:"daterange","value-format":"yyyy-MM-dd","unlink-panels":"","picker-options":t.pickerOptions},model:{value:t.dateRange,callback:function(e){t.dateRange=e},expression:"dateRange"}})],1)]),a("div",{staticClass:"info-item"},[a("span",{staticClass:"label"},[t._v("æŠ•èµ„èƒ½åŠ›åˆ†ç±»")]),a("span",{staticClass:"value"},[a("el-select",{staticStyle:{width:"200px"},attrs:{size:"mini",filterable:"",multiple:""},on:{change:t.initBenchmarkOptions},model:{value:t.params.catalog,callback:function(e){t.$set(t.params,"catalog",e)},expression:"params.catalog"}},t._l(t.catalogOptions,(function(t,e){return a("el-option",{key:"catalog_option_"+e,attrs:{value:t,lable:t}})})),1)],1)]),a("div",{staticClass:"info-item"},[a("span",{staticClass:"label"},[t._v("åŸºå‡†")]),a("span",{staticClass:"value"},[a("el-select",{staticStyle:{width:"160px"},attrs:{size:"mini",filterable:""},model:{value:t.params.benchmark,callback:function(e){t.$set(t.params,"benchmark",e)},expression:"params.benchmark"}},t._l(t.benchmarkOptions,(function(t,e){return a("el-option",{key:"benchmark_option_"+e,attrs:{value:t,lable:t}})})),1)],1)]),a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:t.loadCustomData}},[t._v("å¼€å§‹åˆ†æž")])],1),t.isCompare?[a("el-row",{attrs:{gutter:12}},[a("el-col",{attrs:{span:12}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.isLoading,expression:"isLoading"}],staticClass:"chart-holder",staticStyle:{"margin-top":"12px"}},[a("div",{staticStyle:{"background-color":"#f5f5f5",padding:"8px 12px",border:"none"}},[a("p",{staticStyle:{"font-size":"12px",color:"#999","margin-right":"12px",display:"inline-block"}},[t._v(" åå¥½ç¨‹åº¦ - æŠ¥å‘ŠæœŸè§†å›¾ ")]),a("el-dropdown",{attrs:{placement:"bottom-start",trigger:"click"},on:{command:t.onPeriodCommand}},[a("el-link",{staticStyle:{"font-size":"12px"},attrs:{type:"primary",underline:!1}},[a("span",[t._v(t._s(t.compareFilter.period))]),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.compareFilter.periods,(function(e,i){return a("el-dropdown-item",{key:"period_"+i,attrs:{command:e}},[a("span",[t._v(t._s(e))])])})),1)],1)],1),a("fof-e-charts",{attrs:{option:t.preferCompareChart1,height:t.chartHeight1,msg:t.preferenceError}})],1)]),a("el-col",{attrs:{span:12}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.isLoading,expression:"isLoading"}],staticClass:"chart-holder",staticStyle:{"margin-top":"12px"}},[a("div",{staticClass:"chart-holder-header"},[a("p",{staticClass:"chart-holder-header__title"},[t._v("é…ç½®èƒ½åŠ›")])]),a("fof-e-charts",{attrs:{option:t.preferCompareChart2,height:t.chartHeight2,msg:t.allocationError}})],1)])],1),a("el-row",{attrs:{gutter:12}},[a("el-col",{attrs:{span:12}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.isLoading,expression:"isLoading"}],staticClass:"chart-holder",staticStyle:{"margin-top":"12px"}},[a("div",{staticClass:"chart-holder-header"},[a("p",{staticClass:"chart-holder-header__title"},[t._v(" åå¥½ç¨‹åº¦ - è¡Œä¸š/é£Žæ&nbsp;¼å›&nbsp;å­è§†å›¾ ")]),a("el-dropdown",{attrs:{placement:"bottom-start",trigger:"click"},on:{command:t.onFactorCommand}},[a("el-link",{staticStyle:{"font-size":"12px"},attrs:{type:"primary",underline:!1}},[a("span",[t._v(t._s(t.compareFilter.factor))]),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.compareFilter.factors,(function(e,i){return a("el-dropdown-item",{key:"factor_"+i,attrs:{command:e}},[a("span",[t._v(t._s(e))])])})),1)],1)],1),a("fof-e-charts",{attrs:{option:t.preferCompareChart3,height:t.chartHeight3,msg:t.preferenceError}})],1)]),a("el-col",{attrs:{span:12}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.isLoading,expression:"isLoading"}],staticClass:"chart-holder",staticStyle:{"margin-top":"12px"}},[a("div",{staticClass:"chart-holder-header"},[a("p",{staticClass:"chart-holder-header__title"},[t._v("é…ç½®èƒ½åŠ›")])]),a("fof-e-charts",{attrs:{option:t.preferCompareChart4,height:t.chartHeight4,msg:t.allocationError}})],1)])],1)]:[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.isLoading,expression:"isLoading"}],staticClass:"chart-holder",staticStyle:{"margin-top":"12px"}},[t._m(0),a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:12}},[a("fof-e-charts",{attrs:{option:t.preferenceOption,height:t.heatHeight,dialogTitle:"åå¥½ç¨‹åº¦çƒ­åŠ›å›¾",msg:t.preferenceError},on:{onMouseClick:t.handleChartClick}}),t.preferenceCategorySize&gt;1?a("span",["xAxis"==t.preferenceOptionMsg.componentType?a("p",{staticClass:"th-summarynote margin-l10"},[t._v(" * "),a("span",{staticStyle:{"font-weight":"700"}},[t._v(" "+t._s(t.preferenceOptionMsg.lastDate)+" ")]),t._v("ï¼Œ åŸºé‡‘å¯¹"),a("span",{staticStyle:{"font-weight":"700"}},[t._v(" "+t._s(t.preferenceOptionMsg.name)+" ")]),t._v("çš„åå¥½ç¨‹åº¦æœ€é«˜ã€‚ å¹³å‡æ¥çœ‹ï¼ŒåŸºé‡‘å¯¹"),a("span",{staticStyle:{"font-weight":"700"}},[t._v(" "+t._s(t.preferenceOptionMsg.name2)+" ")]),t._v("çš„åå¥½ç¨‹åº¦æœ€é«˜ï¼Œ å¯¹"),a("span",{staticStyle:{"font-weight":"700"}},[t._v(" "+t._s(t.preferenceOptionMsg.name3)+" ")]),t._v("çš„åå¥½ç¨‹åº¦æœ€ä½Žã€‚ "),a("br"),t.productPreferenceMemo?a("span",[t._v("* "+t._s(t.productPreferenceMemo))]):t._e()]):t._e(),"yAxis"==t.preferenceOptionMsg.componentType?a("p",{staticClass:"th-summarynote margin-l10"},[t._v(" * "),a("span",{staticStyle:{"font-weight":"700"}},[t._v(t._s(t.preferenceOptionMsg.lastDate))]),t._v("åœ¨ "),a("span",{staticStyle:{"font-weight":"700"}},[t._v(t._s(t.preferenceOptionMsg.start))]),t._v("è‡³"),a("span",{staticStyle:{"font-weight":"700"}},[t._v(t._s(t.preferenceOptionMsg.end))]),t._v("ä¹‹é—´åå¥½ç¨‹åº¦çš„æœ€å¤§å€¼ä¸º "),a("span",{staticStyle:{"font-weight":"700"}},[t._v(t._s(t.preferenceOptionMsg.maxValue))]),a("br"),t.productPreferenceMemo?a("span",[t._v("* "+t._s(t.productPreferenceMemo))]):t._e()]):t._e(),"series"==t.preferenceOptionMsg.componentType?a("p",{staticClass:"th-summarynote margin-l10"},[t._v(" * "),a("span",{staticStyle:{"font-weight":"700"}},[t._v(t._s(t.preferenceOptionMsg.seriesValue1))]),t._v("åœ¨æŠ¥å‘ŠæœŸ "),a("span",{staticStyle:{"font-weight":"700"}},[t._v(t._s(t.preferenceOptionMsg.seriesValue2))]),t._v("çš„åå¥½ç¨‹åº¦ä¸º "),a("span",{staticStyle:{"font-weight":"700"}},[t._v(t._s(t.preferenceOptionMsg.seriesValue3))]),a("br"),t.productPreferenceMemo?a("span",[t._v("* "+t._s(t.productPreferenceMemo))]):t._e()]):t._e()]):t._e(),a("p",{staticClass:"th-footnote",staticStyle:{margin:"5px 10px"}},[t._v(" * åŸºäºŽæŠ¥å‘ŠæœŸçš„åå¥½ç¨‹åº¦ä¸ºå­£æŠ¥æˆ–å¹´æŠ¥ä¸­çš„æŒä»“æƒé‡ ã€‚ ")])],1),a("el-col",{attrs:{span:12}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.isLoading,expression:"isLoading"}],staticClass:"chart-holder",staticStyle:{"margin-top":"12px"}},[a("div",{staticStyle:{"background-color":"#f5f5f5",padding:"8px 12px",border:"none"}},[a("p",{staticStyle:{"font-size":"12px",color:"#999","margin-right":"12px",display:"inline-block"}},[t._v(" åå¥½åˆ†å¸ƒ ")])]),a("fof-e-charts",{attrs:{option:t.preferenceCandleOption,height:t.heatHeight/2,dialogTitle:"åå¥½åˆ†å¸ƒ",msg:t.preferenceError}})],1),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.isLoading,expression:"isLoading"}],staticClass:"chart-holder",staticStyle:{"margin-top":"12px"}},[a("div",{staticStyle:{"background-color":"#f5f5f5",padding:"8px 12px",border:"none"}},[a("span",{staticStyle:{"font-size":"12px",color:"#999"}},[t._v("åå¥½ç¨‹åº¦")]),a("el-cascader",{staticStyle:{width:"240px"},attrs:{options:t.cascaderOptions,size:"mini"},on:{change:t.onCascadeChange},model:{value:t.cascaderValue,callback:function(e){t.cascaderValue=e},expression:"cascaderValue"}})],1),a("fof-e-charts",{attrs:{option:t.preferenceViewOption,height:t.heatHeight/2,toFile:"åå¥½ç¨‹åº¦",dialogTitle:"åå¥½ç¨‹åº¦",msg:t.preferenceError}})],1)])],1)],1),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.isLoading,expression:"isLoading"}],staticClass:"chart-holder",staticStyle:{"margin-top":"12px"}},[t._m(1),a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:12}},[a("fof-e-charts",{attrs:{option:t.allocationOption,height:t.heatHeight,toFile:"é…ç½®èƒ½åŠ›çƒ­åŠ›å›¾",dialogTitle:"é…ç½®èƒ½åŠ›çƒ­åŠ›å›¾",msg:t.allocationError}}),t.allocationCategorySize&gt;1?a("span",[t.allocationOption?a("p",{staticClass:"margin-l10 th-summarynote"},[t._v(" * "),a("span",{staticStyle:{"font-weight":"700"}},[t._v(" "+t._s(t.allocationOptionMsg.lastDate)+" ")]),t._v("çš„å®šæœŸæŠ¥å‘Šè¡¨æ˜Ž ï¼Œ"),a("span",{staticStyle:{"font-weight":"700"}},[t._v(" "+t._s(t.allocationOptionMsg.name)+" ")]),t._v("å¯¹åŸºé‡‘çš„æ”¶ç›Šè´¡çŒ®æœ€é«˜ï¼Œè¯´æ˜ŽåŸºé‡‘å¯¹è¯¥é¡¹çš„é…ç½®èƒ½åŠ›æœ€å¼ºã€‚ "),a("br"),t.productAllocationMemo?a("span",[t._v("* "+t._s(t.productAllocationMemo))]):t._e()]):t._e()]):t._e(),a("p",{staticClass:"th-footnote",staticStyle:{margin:"5px 10px"}},[t._v(" * åŸºäºŽæŠ¥å‘ŠæœŸçš„é…ç½®èƒ½åŠ›ä¸ºå­£æŠ¥æˆ–å¹´æŠ¥ä¸­çš„æ”¶ç›Šè´¡çŒ® ã€‚ ")])],1),a("el-col",{attrs:{span:12}},[a("fof-e-charts",{attrs:{option:t.allocationSeriesOption,height:t.heatHeight,toFile:"åå¥½ç¨‹åº¦æŸ±çŠ¶å›¾",dialogTitle:"åå¥½æˆéƒ½æŸ±çŠ¶å›¾",msg:t.allocationError}})],1)],1)],1)],t.haveIndustryCatalog?a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.isLoading,expression:"isLoading"}],staticClass:"chart-holder",staticStyle:{"margin-top":"12px"}},[a("div",{staticClass:"chart-holder-header"},[a("p",{staticClass:"chart-holder-header__title"},[t._v("è¡Œä¸šé›†ä¸­åº¦&amp;æ¢æ‰‹çŽ‡")]),a("el-dropdown",{directives:[{name:"show",rawName:"v-show",value:t.isCompare,expression:"isCompare"}],attrs:{placement:"bottom-start",trigger:"click"},on:{command:t.onTurnOverProductCommand}},[a("el-link",{staticStyle:{"font-size":"12px"},attrs:{type:"primary",underline:!1}},[a("span",[t._v(t._s(t.compareFilter.turnoverProduct))]),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.compareFilter.products,(function(e,i){return a("el-dropdown-item",{key:"product_"+i,attrs:{command:e}},[t._v(" "+t._s(e)+" ")])})),1)],1)],1),a("el-row",[a("fof-e-charts",{attrs:{option:t.turnoverSeriesOption}}),t.turnoverMemo?a("p",{staticClass:"margin-l10 th-summarynote"},[t._v(" * "+t._s(t.turnoverMemo)+" ")]):t._e()],1)],1):t._e(),t.haveStockPickingCatalog?a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.isLoading,expression:"isLoading"}],staticClass:"chart-holder",staticStyle:{"margin-top":"12px"}},[a("div",{staticClass:"chart-holder-header"},[a("p",{staticClass:"chart-holder-header__title"},[t._v("åŸºé‡‘é€‰è‚¡æ”¶ç›Š")]),a("el-dropdown",{directives:[{name:"show",rawName:"v-show",value:t.isCompare,expression:"isCompare"}],attrs:{placement:"bottom-start",trigger:"click"},on:{command:t.onStockPickingProductCommand}},[a("el-link",{staticStyle:{"font-size":"12px"},attrs:{type:"primary",underline:!1}},[a("span",[t._v(t._s(t.compareFilter.stockPickingProduct))]),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.compareFilter.products,(function(e,i){return a("el-dropdown-item",{key:"product_"+i,attrs:{command:e}},[t._v(" "+t._s(e)+" ")])})),1)],1)],1),a("el-row",[a("fof-e-charts",{attrs:{option:t.stockPickingSeriesOption}}),t.stockPickingMemo?a("p",{staticClass:"margin-l10 th-summarynote"},[t._v(" * "+t._s(t.stockPickingMemo)+" ")]):t._e()],1)],1):t._e()],2)},n=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{"background-color":"#f5f5f5",padding:"8px 12px",border:"none"}},[a("span",{staticStyle:{"font-size":"12px",color:"#999"}},[t._v("åå¥½ç¨‹åº¦")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticStyle:{"background-color":"#f5f5f5",padding:"8px 12px",border:"none"}},[a("span",{staticStyle:{"font-size":"12px",color:"#999"}},[t._v("é…ç½®èƒ½åŠ›")])])}],l=(a("14d9"),a("f65d")),c=a("25ca"),h=a("6a57"),d=a("9a0f"),p=a("5f35"),u=a("9549"),m=a("9479"),f=a("2ef0"),g=a.n(f);const b={grid:{containLabel:!0,left:36,right:36},tooltip:{trigger:"axis",axisPointer:{animation:!1},formatter:function(t){let e=t[0].name+"&lt;br&gt;";for(let a=0;a&lt;t.length;a++){let i=d["a"].formatNumber2(t[a].value[1],2);e+=t[a].marker,e+=t[a].seriesName+"ï¼š"+i+"%&lt;br&gt;"}return e}},legend:{},xAxis:{type:"category",data:[]},yAxis:{type:"value",axisLabel:{formatter:"{value} %"}},series:[{name:"è¡Œä¸šé›†ä¸­åº¦",data:[],type:"bar"},{name:"æ¢æ‰‹çŽ‡",data:[],type:"bar"}]},v={grid:{containLabel:!0,left:36,right:36},tooltip:{trigger:"axis",axisPointer:{animation:!1},formatter:function(t){let e=t[0].name+"&lt;br&gt;";for(let a=0;a&lt;t.length;a++){let i=d["a"].formatNumber2(t[a].value[1],2);e+=t[a].marker,e+=t[a].seriesName+"ï¼š"+i+"%&lt;br&gt;"}return e}},legend:{},xAxis:{type:"category",data:[]},yAxis:{type:"value",axisLabel:{formatter:"{value} %"}},series:[{name:"å·²çŸ¥é€‰è‚¡æ”¶ç›Š",data:[],type:"line"},{name:"æ€»ä½“é€‰è‚¡æ”¶ç›Š",data:[],type:"line"},{name:"æœªçŸ¥é€‰è‚¡æ”¶ç›Š",data:[],type:"line"}]};var y={name:"analysis-factor-sector-period",components:{tfNavigatorTabs:r["a"],fofECharts:l["a"],legendExplain:m["a"]},props:{products:Array,institution:Object,manager:Object},data(){return{isVisible:!1,lastParamObj:null,benchmarkOptions:[],params:{start:h["a"].getYearAgoDateString(),end:h["a"].getNowDateString(),benchmark:null,catalog:[],approach:null,window:null},paramsApplied:{},requestParamTemplate:{func:"åŸºé‡‘æ”¶ç›Šèƒ½åŠ›",params:{"ä»£ç&nbsp;ç±»åž‹":"fund","åå¥½ç¨‹åº¦/é…ç½®èƒ½åŠ›":"","åŸºå‡†":"æ—&nbsp;","å¼€å§‹æŠ¥å‘ŠæœŸ":"2020-12-31","ç»“æŸæŠ¥å‘ŠæœŸ":"2021-10-14","ä»£ç&nbsp;":"450009.OF","åˆ†ç±»ç±»åž‹":[]},returnParams:null},errorMessage:{preference:[],allocation:[]},preferenceCategorySize:0,preferenceOptionMsg:{name:"",lastDate:"",name2:"",name3:"",componentType:"xAxis",maxValue:"",seriesValue1:null,seriesValue2:null,seriesValue3:null},allocationOptionMsg:{name:"",lastDate:""},isLoading:!1,pickerOptions:{shortcuts:h["a"].getShortcuts("ONE_YEAR","TWO_YEAR","THREE_YEAR","FIVE_YEAR","YEAR_TO_DATE","SINCE_INCEPTION"),disabledDate:t=&gt;t.getTime()&gt;new Date},heatHeight:300,slaveHoldingList:null,productPreferenceData:{},productPreferenceMemo:null,productAllocationData:{},productAllocationMemo:null,preferenceOption:null,preferenceCandleOption:null,preferenceViewOption:null,allocationOption:null,allocationSeriesOption:null,allocationCategorySize:0,turnoverSeriesOption:null,turnoverMemo:null,stockPickingSeriesOption:null,stockPickingMemo:null,preferCompareChart1:null,preferCompareChart2:null,preferCompareChart3:null,preferCompareChart4:null,chartHeight1:200,chartHeight2:200,chartHeight3:200,chartHeight4:200,compareFilter:{factor:null,factors:[],period:null,periods:[],turnoverProduct:null,stockPickingProduct:null,products:[]},cascaderOptions:[],cascaderValue:null}},computed:{paramObj(){return{products:this.products,institution:this.institution,manager:this.manager}},haveIndustryCatalog(){let t=this.paramsApplied.catalog||[];return t.find(t=&gt;t.includes("è¡Œä¸š("))},haveStockPickingCatalog(){let t=this.paramsApplied.catalog||[];return t.find(t=&gt;t.includes("é€‰è‚¡"))},dateRange:{get(){const{start:t,end:e}=this.params;return null!=t&amp;&amp;null!=e?[t,e]:[]},set(t){if(t&amp;&amp;t.length&gt;1){const[e,a]=t;this.params.start=e,this.params.end=a}else this.params.start=null,this.params.end=null}},isCompare(){return this.products&amp;&amp;this.products.length&gt;1},catalogOptions(){return["é£Žæ&nbsp;¼(BARRA)","é£Žæ&nbsp;¼(æŠ•èµ„é£Žæ&nbsp;¼)","é£Žæ&nbsp;¼(å®½åŸºæŒ‡æ•°)","è¡Œä¸š(ç”³ä¸‡ä¸€çº§)","è¡Œä¸š(ä¸­ä¿¡ä¸€çº§)","è¡Œä¸š(ä¸‡å¾—ä¸€çº§)","è¡Œä¸š(ä¸­ä¿¡é£Žæ&nbsp;¼)","è¡Œä¸š(è¯ç›‘ä¼šä¸€çº§)","é€‰è‚¡","åŠ¨æ€","å…¶ä»–(ä¸Šå¸‚æ¿å—)"]},firstProduct(){return this.products&amp;&amp;this.products.length&gt;0?this.products[0]:null},allocationError(){return(this.errorMessage.allocation||[]).filter(t=&gt;null!=t&amp;&amp;""!=t.trim()).distinct().join("; ")},preferenceError(){return(this.errorMessage.preference||[]).filter(t=&gt;null!=t&amp;&amp;""!=t.trim()).distinct().join("; ")}},watch:{paramObj:{deep:!0,immediate:!0,handler(t,e){this.loadData()}}},mounted(){},methods:{onTurnOverProductCommand(t){this.compareFilter.turnoverProduct=t;let e=this.products.find(t=&gt;t.productShortName==this.compareFilter.turnoverProduct);this.loadTurnoverData(e.code,"fund")},onStockPickingProductCommand(t){this.compareFilter.stockPickingProduct=t;let e=this.products.find(t=&gt;t.productShortName==this.compareFilter.stockPickingProduct);this.loadStockPickingData(e.code,"fund")},getBaseRequestParam(){let t=g.a.cloneDeep(this.requestParamTemplate);return t.params.åŸºå‡†=this.params.benchmark,t.params.å¼€å§‹æŠ¥å‘ŠæœŸ=h["a"].toQuarterEnd(this.params.start,-1),t.params.ç»“æŸæŠ¥å‘ŠæœŸ=h["a"].toQuarterEnd(this.params.end,-1),t.params.åˆ†ç±»ç±»åž‹=this.params.catalog,t},visibilityChanged(t,e){this.isVisible=t,this.loadData()},async loadData(t=!1){(1==t||this.isVisible&amp;&amp;JSON.stringify(this.lastParamObj)!=JSON.stringify(this.paramObj))&amp;&amp;(this.lastParamObj=g.a.cloneDeep(this.paramObj),this.heatHeight=400,await this.loadParams(),await this.loadCustomData())},async loadParams(){this.params.catalog=[this.catalogOptions[0]];const t=p["b"].StockCatalogPreference.CHARACTERISTIC_CODE,e=await this.$fundEvalService.getFundEvaluationParam(t);e&amp;&amp;0==e.errorNo&amp;&amp;(this.paramConfigs=e.result),await this.initBenchmarkOptions()},async initBenchmarkOptions(){let t={func:"åŸºé‡‘æ”¶ç›Šèƒ½åŠ›åŸºå‡†åˆ—è¡¨",params:{"åˆ†ç±»ç±»åž‹":this.params.catalog},returnParams:null},e=await this.$fundEvalService.getFundEvaluationRawData(t);e&amp;&amp;(this.benchmarkOptions=e.result,this.benchmarkOptions&amp;&amp;this.benchmarkOptions.length&gt;0&amp;&amp;(this.params.benchmark=this.benchmarkOptions[0]))},setHeatOption(t,e){t.toolbox={feature:{}}},exportExcelHeat(t,e){const a=e+".xlsx";let i=[""],s=[],r=[];t.xAxis.data.forEach((t,e)=&gt;{i.push(t)}),t.yAxis.data.forEach((e,a)=&gt;{const i=[];i.push(e),t.xAxis.data.forEach((e,s)=&gt;{const r=t.series[0].data.find(t=&gt;t[0]==s&amp;&amp;t[1]==a);r&amp;&amp;i.push(r[2])}),s.push(i)}),r.push(i),s&amp;&amp;s.length&gt;0&amp;&amp;r.push(...s);const o=c["utils"].aoa_to_sheet(r),n=c["utils"].book_new();c["utils"].book_append_sheet(n,o,"Sheet1"),c["writeFile"](n,a)},setOption(t){let e=this;t.toolbox={feature:{mytool:{show:!0,title:"å¯¼å‡ºæ•°æ®",icon:"image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAFAAAABQCAYAAACOEfKtAAAACXBIWXMAAAsSAAALEgHS3X78AAAE/klEQVR4nO2cT2gbRxTGPyuRFzesZKQNJTJRSVuwD5JP8WkLLe0lTSG+RqWnHuqW+C5QznFx7iXOOYeE9BQffArOJXuyoSDpkECoQcKC2GtheesuIxu5B3XFSruSdjQr7x/N77h6mh19jObN+2aYqYuLiwtwRibidQeCDheQES4gI1xARq563YFBlFQCpabjbU2Hsq/jpNnCszs3cPfWNa+71mHKT1nYTrBe5NQMNpfnPOidPZ6OQCeC+Z1LFTAMgvUyVgHHIViDtKDUdBd6R0dsOoKsJFieuzoHhnGEmXn5QwrfpT/pesY0AsMuWC+vK/+yCegHwTJJAWtfSUPj7r3ap4p30pYdAwX0g2C9xIUI5NTM2OJpsQhYUgnWd+u+EczvWAS892qfC0eBpRbm4tHBzQRGuICM+NqNsaOkkoHLCtZ4WgIn4EmTrpSjjaeF/4UZCdwIdOoHJp98oIp30pYdfAQywgVkhAvICBeQEWYBn925gc3lOcSm6Zp6JEv4++fP8b2PdthGgTkLl1SC/FICa7KE1TcHjr4jp2bw6+IsAKCsEqr30Vr6494CsFj6g1J2P/766TOkxSi+fllF+Wi4IEb8RvEYDxWV+n1e8Ut2Fr/3mLOuzIGr2+2R58T5XVmcRVqMokFaWN+pu/F6T3FlIa3UdGztneLurWu4Py/ixXvNNi42HUH+dgIAUFAOR7LObopXkZuPDY17vFuninfSlh2uVSIF5RByagb5pQS29k5txVmTJcSFCJSa3lfkYaTFKPJLiaFxxo92Gu+kLTtcW8ZUtXNsFI+RFqOdBGEmkxSQW2iPhMLb4Mx7w3B1Hfh4t46Kdob8UgI3xe7BbcyPG8VjR4kmKLi+kO4kFPl659n9eRFyaiY0icOM626MOaEc/fZl12ejJg4/M5ZSrqAcokG6hWJJHH5mLH6gkVDM2c+txDExlr65fFJqumuJY2IsfXMW7s3IYWIsvyw2HenKwmkxipXFWTwtHjO3PRGWfn4pgbjQ3XT+doLa8goCrv+iTFLoVCLrO3Ukn3xAQVERFyJYk9mOmfkR1wU0Kg6lpndqyKfFYyg1HbmF2FiPmnmBqwIaFQdgXbY82P4IoO1EhwnXBDQnjufvTizLFmNtmJUErNiYDUHFNQGNxNEgLRT6uMzrO3U0SCtUCcWVZUxX4tit9613T5otFJRD/PHtp1R7KGaUmk617UAbT4srw8BIHBXtbOha78V7DSWVhCahMI9Ac+IwrKxhPFRUbC7P4ZEs4Zs/q1TvC52l/+P/LvPW3qnjmlOp6Xj+7gS5hdjAPRQ7/GbpMwv4YPsj4tNXqM2C1TcH2Cg2UNHOWLvgKcwCVrVzVHE+0nfDYO2HYy3hIVxARriAjATO6axoZ1Q7e7TxtAROwKp2PnBZwRpPC/8LMxK4ETgRlv4kwQVkhAvICBeQES4gIxYBM0nr5TKc/lhO6TdIC1t7/6B01ERZJSipJHRH0kbF7pS+ZR0YFyLILcSQMz2raGcoq02UVILSEUFZJahqo1lYQeaL2ajl2chXPzVIC+Wj9ggtqQRltXkp/l6/O6zGTUYSbE9WuH5/YFtMMrYpIPT3B2YlAVlJmJgp4FJq4bQYRVqMdl3d6dUU4DaemQnGnVa9e8PDpoCMB/PfIHx1h2o/GqSFA/0cDdJCVhIgXJnyuksdAiGgn+GlHCNcQEa4gIxwARn5D/oby6g3QU8UAAAAAElFTkSuQmCC",onclick:function(){e.exportExcel(t)}}}}},exportExcel(t){const e="åå¥½åˆ†å¸ƒ.xlsx";let a=["è¡Œä¸š","å¹³å‡å€¼","æœ€å°å€¼","æœ€å¤§å€¼"],i=[],s=[];t.xAxis.data.forEach((e,a)=&gt;{const s=[];s.push(e),t.series[0].data.forEach((t,e)=&gt;{if(a==e){const e=[t[1],t[2],t[3]];s.push(...e)}}),i.push(s)}),s.push(a),i&amp;&amp;i.length&gt;0&amp;&amp;s.push(...i);const r=c["utils"].aoa_to_sheet(s),o=c["utils"].book_new();c["utils"].book_append_sheet(o,r,"Sheet1"),c["writeFile"](o,e)},checkDupCatalog(t){let e="",a=new Set;if(t&amp;&amp;t.length&gt;0)for(let i of t){let t=i.includes("(")?i.substr(0,i.indexOf("(")):i;if(a.has(t)){e=t;break}a.add(t)}return e},async loadCustomData(){this.resetData();let t=this.params;if(!t.catalog||0==t.catalog.length)return void this.$message.error("è¯·é€‰æ‹©æŠ•èµ„èƒ½åŠ›åˆ†ç±»");let e=this.checkDupCatalog(t.catalog);if(e)this.$message.error(e+"æŠ•èµ„èƒ½åŠ›åˆ†ç±»æœ‰é‡å¤ï¼Œè¯·åŽ»é™¤åŽå†è¯•");else if(this.paramsApplied=g.a.cloneDeep(this.params),this.errorMessage.preference=[],this.errorMessage.allocation=[],this.products&amp;&amp;this.products.length&gt;0){const{start:e,end:a,benchmark:i,catalog:s}=t;this.preferenceOptionMsg.start=e,this.preferenceOptionMsg.end=a;for(const t of this.products)await this.loadPreferenceData(t,e,a,i,s),await this.loadAllocationData(t,e,a,i,s);this.onTurnOverProductCommand(this.products[0].productShortName),this.onStockPickingProductCommand(this.products[0].productShortName),this.isCompare?(this.setCompareFilter(),this.refreshCompareCharts()):this.refreshCharts()}else if(this.institution){const{start:e,end:a,benchmark:i,catalog:s,approach:r,window:o}=t;await this.loadInstitutionPreferenceData(this.institution,e,a,i,s,r,o),await this.loadInstitutionAllocationData(this.institution,e,a,i,s,r,o),this.refreshInstitutionCharts(),await this.loadTurnoverData(this.institution.shortName,"company"),await this.loadStockPickingData(this.institution.shortName,"company")}else if(this.manager){const{start:e,end:a,benchmark:i,catalog:s,approach:r,window:o}=t;await this.loadManagerPreferenceData(this.manager,e,a,i,s,r,o),await this.loadManagerAllocationData(this.manager,e,a,i,s,r,o),this.refreshManagerCharts(),await this.loadTurnoverData(this.manager.fundmanagerId,"manager"),await this.loadStockPickingData(this.manager.fundmanagerId,"manager")}else this.resetData()},async loadTurnoverData(t,e){if(this.haveIndustryCatalog){let a=g.a.cloneDeep(b),i=this.params.catalog.find(t=&gt;t.includes("è¡Œä¸š(")),s={func:"è¡Œä¸šæ”¶ç›Šèƒ½åŠ›",params:{"åå¥½ç¨‹åº¦/é…ç½®èƒ½åŠ›":"è¡Œä¸šé›†ä¸­åº¦æ¢æ‰‹çŽ‡","åŸºå‡†":this.params.benchmark,"å¼€å§‹æŠ¥å‘ŠæœŸ":h["a"].toQuarterEnd(this.params.start,-1),"ç»“æŸæŠ¥å‘ŠæœŸ":h["a"].toQuarterEnd(this.params.end,-1),"ä»£ç&nbsp;":t,"åˆ†ç±»ç±»åž‹":i,"ä»£ç&nbsp;ç±»åž‹":e},returnParams:null},r=await this.$fundEvalService.getFundEvaluationRawData(s);r=r.result;let o=[];for(let t in r.result.concentration_ratio)o.push(t),a.series[0].data.push([t,100*(r.result.concentration_ratio[t]||0)]);for(let t in r.result.turnover_ratio)o.push(t),a.series[1].data.push([t,100*(r.result.turnover_ratio[t]||0)]);o=o.distinct().sort(),a.xAxis.data=o,this.turnoverSeriesOption=a,this.turnoverMemo=r.memo}},async loadStockPickingData(t,e){if(this.haveStockPickingCatalog){let a=g.a.cloneDeep(v),i={func:"åŸºé‡‘æ”¶ç›Šèƒ½åŠ›",params:{"ä»£ç&nbsp;ç±»åž‹":e,"åå¥½ç¨‹åº¦/é…ç½®èƒ½åŠ›":"æ€»ä½“é€‰è‚¡æ”¶ç›Š","åŸºå‡†":this.params.benchmark,"å¼€å§‹æŠ¥å‘ŠæœŸ":h["a"].toQuarterEnd(this.params.start,-1),"ç»“æŸæŠ¥å‘ŠæœŸ":h["a"].toQuarterEnd(this.params.end,-1),"ä»£ç&nbsp;":t,"åˆ†ç±»ç±»åž‹":this.params.catalog},returnParams:null},s=await this.$fundEvalService.getFundEvaluationRawData(i);s=s.result;let r=[];for(let t in s.result.å·²çŸ¥é€‰è‚¡æ”¶ç›Š)r.push(t),a.series[0].data.push([t,100*(s.result.å·²çŸ¥é€‰è‚¡æ”¶ç›Š[t]||0)]);for(let t in s.result.æ€»ä½“é€‰è‚¡æ”¶ç›Š)r.push(t),a.series[1].data.push([t,100*(s.result.æ€»ä½“é€‰è‚¡æ”¶ç›Š[t]||0)]);for(let t in s.result.æœªçŸ¥é€‰è‚¡æ”¶ç›Š)r.push(t),a.series[2].data.push([t,100*(s.result.æœªçŸ¥é€‰è‚¡æ”¶ç›Š[t]||0)]);r=r.distinct().sort(),a.xAxis.data=r,this.stockPickingSeriesOption=a,this.stockPickingMemo=s.memo}},async loadPreferenceData(t,e,a,i,s){if(t&amp;&amp;s){this.isLoading=!0;let e=this.getBaseRequestParam();e.params.ä»£ç&nbsp;ç±»åž‹="fund",e.params["åå¥½ç¨‹åº¦/é…ç½®èƒ½åŠ›"]="åå¥½ç¨‹åº¦",e.params.ä»£ç&nbsp;=t.code;let a,i=await this.$fundEvalService.getFundEvaluationRawData(e);i&amp;&amp;(0==i.errorNo?(this.productPreferenceData[t.productShortName]=i.result.result,a=i.result.memo):this.errorMessage.preference.push(i.message)),this.productPreferenceMemo=a,this.isLoading=!1}},async loadSlaveHoldings(t,e,a){let i=await this.$api.getAllSlaveProductHoldings.get({masterProductId:t.productId,startDate:e,endDate:a}),s={date:[],code:[],weight:[]};i.result.slaveWeightDTOList.forEach(t=&gt;{s.date.push(t.asOfDate),s.code.push(t.code),s.weight.push(t.weight)}),this.slaveHoldingList=s},async loadInstitutionPreferenceData(t,e,a,i,s){if(t&amp;&amp;s){this.isLoading=!0;let e=this.getBaseRequestParam();e.params.ä»£ç&nbsp;ç±»åž‹="company",e.params["åå¥½ç¨‹åº¦/é…ç½®èƒ½åŠ›"]="åå¥½ç¨‹åº¦",e.params.ä»£ç&nbsp;=t.shortName;let a,i=await this.$fundEvalService.getFundEvaluationRawData(e);if(null==i)return void(this.isLoading=!1);0==i.errorNo?(this.productPreferenceData[t.shortName]=i.result.result,a=i.result.memo):this.errorMessage.preference.push(i.message),this.productPreferenceMemo=a,this.isLoading=!1}},async loadManagerPreferenceData(t,e,a,i,s){if(t&amp;&amp;s){this.isLoading=!0;let e=this.getBaseRequestParam();e.params.ä»£ç&nbsp;ç±»åž‹="manager",e.params["åå¥½ç¨‹åº¦/é…ç½®èƒ½åŠ›"]="åå¥½ç¨‹åº¦",e.params.ä»£ç&nbsp;=t.fundmanagerId;let a,i=await this.$fundEvalService.getFundEvaluationRawData(e);if(null==i)return void(this.isLoading=!1);0==i.errorNo?(this.productPreferenceData[t.fundManager]=i.result.result,a=i.result.memo):this.errorMessage.preference.push(i.message),this.productPreferenceMemo=a,this.isLoading=!1}},async loadAllocationData(t,e,a,i,s){if(t&amp;&amp;s){this.isLoading=!0;let e=this.getBaseRequestParam();e.params.ä»£ç&nbsp;ç±»åž‹="fund",e.params["åå¥½ç¨‹åº¦/é…ç½®èƒ½åŠ›"]="é…ç½®èƒ½åŠ›",e.params.ä»£ç&nbsp;=t.code;let a,i=await this.$fundEvalService.getFundEvaluationRawData(e);i&amp;&amp;(0==i.errorNo?(this.productAllocationData[t.productShortName]=i.result.result,a=i.result.memo):this.errorMessage.allocation.push(i.message)),this.productAllocationMemo=a,this.isLoading=!1}},async loadInstitutionAllocationData(t,e,a,i,s){if(t&amp;&amp;s){this.isLoading=!0;let e=this.getBaseRequestParam();e.params.ä»£ç&nbsp;ç±»åž‹="company",e.params["åå¥½ç¨‹åº¦/é…ç½®èƒ½åŠ›"]="é…ç½®èƒ½åŠ›",e.params.ä»£ç&nbsp;=t.shortName;let a,i=await this.$fundEvalService.getFundEvaluationRawData(e);if(null==i)return void(this.isLoading=!1);0==i.errorNo?(this.productAllocationData[t.shortName]=i.result.result,a=i.result.memo):this.errorMessage.allocation.push(i.message),this.productAllocationMemo=a,this.isLoading=!1}},async loadManagerAllocationData(t,e,a,i,s){if(t&amp;&amp;s){this.isLoading=!0;let e=this.getBaseRequestParam();e.params.ä»£ç&nbsp;ç±»åž‹="manager",e.params["åå¥½ç¨‹åº¦/é…ç½®èƒ½åŠ›"]="é…ç½®èƒ½åŠ›",e.params.ä»£ç&nbsp;=t.fundmanagerId;let a,i=await this.$fundEvalService.getFundEvaluationRawData(e);if(null==i)return void(this.isLoading=!1);0==i.errorNo?(this.productAllocationData[t.fundManager]=i.result.result,a=i.result.memo):this.errorMessage.allocation.push(i.message),this.productAllocationMemo=a,this.isLoading=!1}},setCompareFilter(){if(this.isCompare&amp;&amp;(this.products&amp;&amp;this.products.length&gt;0?(this.compareFilter.products=this.products.map(t=&gt;t.productShortName),this.compareFilter.turnoverProduct=this.compareFilter.products[0],this.compareFilter.stockPickingProduct=this.compareFilter.products[0]):(this.compareFilter.products=[],this.compareFilter.turnoverProduct=null,this.compareFilter.stockPickingProduct=null)),this.isCompare&amp;&amp;this.productPreferenceData){let t={};for(let e in this.productPreferenceData){let a=this.productPreferenceData[e];for(let e in a)t[e]=a[e]}if(t&amp;&amp;Object.keys(t).length&gt;0){this.compareFilter.factors=Object.keys(t),this.compareFilter.factor=this.compareFilter.factors[0];const e=Object.values(t)[0];e?(this.compareFilter.periods=Object.keys(e),this.compareFilter.period=this.compareFilter.periods[0]):(this.compareFilter.periods=[],this.compareFilter.period=null)}else this.compareFilter.factors=[],this.compareFilter.factor=null}},resetData(){this.productPreferenceData={},this.productAllocationData={},this.preferenceOption=null,this.preferenceCandleOption=null,this.preferenceViewOption=null,this.allocationOption=null,this.allocationSeriesOption=null},refreshCharts(){if(null!=this.firstProduct&amp;&amp;null!=this.productPreferenceData){const t=this.productPreferenceData[this.firstProduct.productShortName];this.refreshPreferenceData(t),this.refreshPreferenceRadarData(t),t&amp;&amp;Object.keys(t).length&gt;0&amp;&amp;(this.buildCascaderOptions(t),this.buildPreferenceDetailChart(this.cascaderValue[1]))}if(null!=this.firstProduct&amp;&amp;null!=this.productAllocationData){const t=this.productAllocationData[this.firstProduct.productShortName];t&amp;&amp;this.refreshAllocationData(t)}},refreshInstitutionCharts(){if(null!=this.institution&amp;&amp;null!=this.productPreferenceData){const t=this.productPreferenceData[this.institution.shortName];this.refreshPreferenceData(t),this.refreshPreferenceRadarData(t),t&amp;&amp;Object.keys(t).length&gt;0&amp;&amp;(this.buildCascaderOptions(t),this.buildPreferenceDetailChart(this.cascaderValue[1]))}if(null!=this.institution&amp;&amp;null!=this.productAllocationData){const t=this.productAllocationData[this.institution.shortName];this.refreshAllocationData(t)}},refreshManagerCharts(){if(null!=this.manager&amp;&amp;null!=this.productPreferenceData){const t=this.productPreferenceData[this.manager.fundManager];this.refreshPreferenceData(t),this.refreshPreferenceRadarData(t),t&amp;&amp;Object.keys(t).length&gt;0&amp;&amp;(this.buildCascaderOptions(t),this.buildPreferenceDetailChart(this.cascaderValue[1]))}if(null!=this.manager&amp;&amp;null!=this.productAllocationData){const t=this.productAllocationData[this.manager.fundManager];this.refreshAllocationData(t)}},refreshCompareCharts(){this.refreshCompareDataByPeriod(),this.refreshCompareDataByFactor()},refreshPreferenceData(t){if(t){const e=[],a=[],i=[];for(const l of Object.keys(t)){const s=t[l];i.push(l);const r=[];for(const t of Object.keys(s)){const e=s[t];a.includes(t)||a.push(t),r.push(e)}e.push(r)}this.heatHeight=Math.max(400,120+24*i.length);const s={hideValue:a.length&gt;13,enableAxisEvent:!0};this.preferenceOption=new u["a"].HeatChart("åå¥½ç¨‹åº¦",e,a,i,s).option;const r=this.preferenceOption.series[0].data.filter(t=&gt;{if(t[0]==this.preferenceOption.xAxis.data.length-1)return t});let o=r[0],n=r[0];r.forEach(t=&gt;{o[2]&lt;t[2]&amp;&amp;(o=t),n[2]&gt;t[2]&amp;&amp;(n=t)}),this.preferenceOptionMsg.name=this.preferenceOption.yAxis.data[o[1]],this.preferenceCategorySize=this.preferenceOption.yAxis.data.length,this.preferenceOptionMsg.lastDate=this.preferenceOption.xAxis.data[o[0]],this.preferenceOption.visualMap.min=-1,this.preferenceOption.visualMap.max=1,this.setHeatOption(this.preferenceOption,"åå¥½ç¨‹åº¦çƒ­åŠ›å›¾")}else this.preferenceOption=null,this.preferenceCategorySize=0},refreshPreferenceRadarData(t){if(t){const e=[];for(const r of Object.keys(t)){const a=t[r];let i=0,s=null,o=null;const n=Object.values(a);for(const t of n)i+=+t,s=null==s||s&lt;+t?+t:s,o=null==o||o&gt;+t?+t:o;const l=i/n.length;e.push({date:r,open:l,close:l,min:o,max:s})}const a=new u["a"].CandleChart("åå¥½åˆ†å¸ƒ",{showTitle:!1});a.appendSeries("åå¥½ç¨‹åº¦",e),this.preferenceCandleOption=a.option,this.preferenceCandleOption.xAxis.axisLabel.formatter=function(t){let e=6;return t=t||"",t.substr(0,e)+(t.length&gt;e?"...":"")};let i=e[0],s=e[0];e.forEach(t=&gt;{i.open&lt;t.open&amp;&amp;(i=t),s.open&gt;t.open&amp;&amp;(s=t)}),this.preferenceOptionMsg.name2=i.date,this.preferenceOptionMsg.name3=s.date,this.setOption(this.preferenceCandleOption)}else this.preferenceCandleOption=null},refreshAllocationData(t){if(t&amp;&amp;Object.keys(t).length&gt;0){const e=[],a=[],i=[],s={};let r=null;for(const p of Object.keys(t)){const o=t[p];i.push(p);const n=[],l=[];for(const t of Object.keys(o)){const e=o[t];a.includes(t)||a.push(t),n.push(e),l.push({date:t,value:e}),r=null==r||r&lt;Math.abs(e)?Math.abs(e):r}e.push(n),s[p]=l}const o=a.length&gt;13;this.allocationOption=new u["a"].HeatChart2("é…ç½®èƒ½åŠ›",e,a,i,{max:r,min:-r,hideValue:o}).option,this.setHeatOption(this.allocationOption,"é…ç½®èƒ½åŠ›çƒ­åŠ›å›¾");const n=this.allocationOption.series[0].data.filter(t=&gt;{if(t[0]==this.allocationOption.xAxis.data.length-1)return t});let l=n[0],c=n[0];n.forEach(t=&gt;{l[2]&lt;t[2]&amp;&amp;(l=t),c[2]&gt;t[2]&amp;&amp;(c=t)}),null!=l[1]&amp;&amp;(this.allocationOptionMsg.name=this.allocationOption.yAxis.data[l[1]]),null!=l[0]&amp;&amp;(this.allocationOptionMsg.lastDate=this.allocationOption.xAxis.data[l[0]]),this.allocationCategorySize=this.allocationOption.yAxis.data.length;const h=new u["a"].BarChart("");for(const t of Object.keys(s)){const e="å½“æœŸæ€»å’Œ"!=t?{stack:"total",areaStyle:{}}:{type:"line"};h.appendSeries(t,s[t],e)}let d=h.option;d.tooltip={trigger:"axis",axisPointer:{animation:!1},formatter:function(t){t.sort((t,e)=&gt;e.value[1]-t.value[1]);let e=t[0].name+"&lt;br&gt;";for(let a=0;a&lt;t.length;a++)e+="&lt;span style='margin-right:8px'&gt;",e+=t[a].marker,e+=t[a].seriesName+": "+t[a].value[1],e+="&lt;br/&gt;",e+="&lt;/span&gt;";return e}},this.allocationSeriesOption=d}else this.allocationOption=null,this.allocationSeriesOption=null,this.allocationCategorySize=0},refreshCompareDataByPeriod(t){const e=t||this.compareFilter.period;if(this.productPreferenceData){let t=[],a=[],i=[];for(const e of Object.keys(this.productPreferenceData)){a.push(e);const t=this.productPreferenceData[e];i.push(...Object.keys(t))}i=i.distinct();for(const r of a){const a=[],s=this.productPreferenceData[r];for(const t of i){const i=s[t]||{};a.push(i[e])}t.push(a)}const s=a.length&gt;13;this.chartHeight1=120+24*i.length,this.preferCompareChart1=new u["a"].HeatChart("åå¥½ç¨‹åº¦",t.transpose(),a,i,{hideValue:s}).option,this.setHeatOption(this.preferCompareChart1,"åå¥½ç¨‹åº¦çƒ­åŠ›å›¾")}if(this.productAllocationData){let t=[],a=[],i=[],s=null;for(const o of Object.keys(this.productAllocationData)){a.push(o);const t=this.productAllocationData[o];for(const a of Object.keys(t)){i.includes(a)||i.push(a);const r=t[a][e];s=null==s||s&lt;Math.abs(r)?Math.abs(r):s}}i=i.distinct();for(const o of a){const a=[],s=this.productAllocationData[o];for(const t of i){const i=s[t]||{};a.push(i[e])}t.push(a)}const r=a.length&gt;13;this.chartHeight2=120+24*i.length,this.preferCompareChart2=new u["a"].HeatChart2("é…ç½®èƒ½åŠ›",t.transpose(),a,i,{max:s,min:-s,hideValue:r}).option,this.setHeatOption(this.preferCompareChart2,"é…ç½®èƒ½åŠ›çƒ­åŠ›å›¾")}},refreshCompareDataByFactor(t){const e=t||this.compareFilter.factor;if(this.productPreferenceData){let t=[],a=[],i=[];for(const r of Object.keys(this.productPreferenceData)){a.push(r);const t=this.productPreferenceData[r];for(const a of Object.keys(t[e]||{}))i.includes(a)||i.push(a)}for(const r of a){const a=[],s=this.productPreferenceData[r][e];for(const t of i)a.push(s[t]);t.push(a)}const s=a.length&gt;13;this.chartHeight3=120+24*i.length,this.preferCompareChart3=new u["a"].HeatChart("åå¥½ç¨‹åº¦",t.transpose(),a,i,{hideValue:s}).option,this.setHeatOption(this.preferCompareChart3,"åå¥½ç¨‹åº¦çƒ­åŠ›å›¾")}if(this.productAllocationData){let t=[],a=[],i=[],s=null;for(const o of Object.keys(this.productAllocationData)){a.push(o);const t=this.productAllocationData[o];for(const[a,r]of Object.entries(t[e]||{}))i.includes(a)||i.push(a),s=null==s||s&lt;Math.abs(r)?Math.abs(r):s}for(const o of a){const a=[],s=this.productAllocationData[o][e];for(const t of i)a.push(s[t]);t.push(a)}const r=a.length&gt;13;this.chartHeight4=120+24*i.length,this.preferCompareChart4=new u["a"].HeatChart("é…ç½®èƒ½åŠ›",t.transpose(),a,i,{max:s,min:-s,hideValue:r}).option,this.setHeatOption(this.preferCompareChart4,"é…ç½®èƒ½åŠ›çƒ­åŠ›å›¾")}},onPeriodCommand(t){this.compareFilter.period=t,this.refreshCompareDataByPeriod(t)},onFactorCommand(t){this.compareFilter.factor=t,this.refreshCompareDataByFactor(t)},handleChartClick(t){const{componentType:e,targetType:a,value:i}=t;this.preferenceOptionMsg.componentType=t.componentType,this.preferenceOptionMsg.lastDate=t.value,"xAxis"==e?(this.buildPreferenceDetailChart(i),this.cascaderValue=["reportPeriod",i]):"yAxis"==e?(this.buildPreferenceDetailChart2(i),this.cascaderValue=["catalog",i]):"series"==e&amp;&amp;(this.preferenceOptionMsg.seriesValue1=this.preferenceOption.yAxis.data[t.value[1]],this.preferenceOptionMsg.seriesValue2=this.preferenceOption.xAxis.data[t.value[0]],this.preferenceOptionMsg.seriesValue3=t.value[2])},buildPreferenceDetailChart(t){if(this.productPreferenceData){const e=`åå¥½ç¨‹åº¦ï¼ˆ${t}ï¼‰`;let a=new u["a"].BarChart(e,{showTitle:!1});for(const[r,o]of Object.entries(this.productPreferenceData)){const e=[];for(const[a,i]of Object.entries(o)){const s=i[t];e.push({date:a,value:s})}e&amp;&amp;e.length&gt;1&amp;&amp;e.sort((t,e)=&gt;e.value-t.value),a.appendSeries(r,e)}let i=a.option;i.xAxis.axisLabel.formatter=function(t){let e=6;return t=t||"",t.substr(0,e)+(t.length&gt;e?"...":"")},this.preferenceViewOption=i;let s=this.preferenceViewOption.series[0].data[0];this.preferenceViewOption.series[0].data.forEach(t=&gt;{s[1]&lt;t[1]&amp;&amp;(s=t)}),this.preferenceOptionMsg.name=s[0]}else this.preferenceViewOption=null},buildPreferenceDetailChart2(t){if(this.productPreferenceData){const e=`åå¥½ç¨‹åº¦ï¼ˆ${t}ï¼‰`;let a=new u["a"].BarChart(e,{showTitle:!1});for(const[i,s]of Object.entries(this.productPreferenceData)){const e=[],r=s[t];if(r)for(const[t,a]of Object.entries(r))e.push({date:t,value:a});a.appendSeries(i,e,{showAverage:!0});let o=e.map(t=&gt;t.value);o.sort((t,e)=&gt;e-t),this.preferenceOptionMsg.maxValue=d["a"].formatNumber(o[0],3)}this.preferenceViewOption=a.option}else this.preferenceViewOption=null},buildCascaderOptions(t){const e=Object.keys(t),a=Object.keys(t[e[0]]);this.cascaderOptions=[{value:"catalog",label:"è¡Œä¸šé£Žæ&nbsp;¼",children:e.map(t=&gt;({value:t,label:t}))},{value:"reportPeriod",label:"æŠ¥å‘ŠæœŸ",children:a.map(t=&gt;({value:t,label:t}))}],this.cascaderValue=["reportPeriod",a[a.length-1]]},onCascadeChange(t){const[e,a]=t;"reportPeriod"==e?this.buildPreferenceDetailChart(a):"catalog"==e&amp;&amp;this.buildPreferenceDetailChart2(a)}}},x=y,w=(a("f01e"),a("0c7c")),D=Object(w["a"])(x,o,n,!1,null,"73b9c0ed",null),S=D.exports,C=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:{callback:t.visibilityChanged,throttle:300},expression:"{ callback: visibilityChanged, throttle: 300 }"}]},[a("div",{staticClass:"info-box-o",staticStyle:{"margin-top":"12px"}},[a("div",{staticClass:"info-item"},[a("span",{staticClass:"label"},[t._v("æ—¶é—´åŒºé—´")]),a("span",{staticClass:"value"},[a("el-date-picker",{staticStyle:{width:"200px"},attrs:{size:"mini",type:"daterange","value-format":"yyyy-MM-dd","unlink-panels":"","picker-options":t.pickerOptions},model:{value:t.dateRange,callback:function(e){t.dateRange=e},expression:"dateRange"}})],1)]),a("div",{staticClass:"info-item"},[a("span",{staticClass:"label"},[t._v("åŸºå‡†")]),a("span",{staticClass:"value"},[a("el-select",{staticStyle:{width:"160px"},attrs:{size:"mini"},model:{value:t.params.benchmark,callback:function(e){t.$set(t.params,"benchmark",e)},expression:"params.benchmark"}},t._l(t.benchmarkOptions,(function(t,e){return a("el-option",{key:"benchmark_option_"+e,attrs:{value:t,lable:t}})})),1)],1)]),a("div",{staticClass:"info-item"},[a("span",{staticClass:"label"},[t._v("è¡Œä¸š/é£Žæ&nbsp;¼")]),a("span",{staticClass:"value"},[a("el-select",{staticStyle:{width:"120px"},attrs:{size:"mini"},model:{value:t.params.catalog,callback:function(e){t.$set(t.params,"catalog",e)},expression:"params.catalog"}},t._l(t.catalogOptions,(function(t,e){return a("el-option",{key:"catalog_option_"+e,attrs:{value:t,lable:t}})})),1)],1)]),a("div",{staticClass:"info-item"},[a("span",{staticClass:"label"},[t._v("å›žå½’æ–¹æ³•")]),a("span",{staticClass:"value"},[a("el-select",{staticStyle:{width:"160px"},attrs:{size:"mini"},model:{value:t.params.approach,callback:function(e){t.$set(t.params,"approach",e)},expression:"params.approach"}},t._l(t.approachOptions,(function(t,e){return a("el-option",{key:"approach_option_"+e,attrs:{value:t,lable:t}})})),1)],1)]),a("div",{staticClass:"info-item"},[a("span",{staticClass:"label"},[t._v("å›žå½’å¤©æ•°")]),a("span",{staticClass:"value"},[a("el-select",{staticStyle:{width:"160px"},attrs:{size:"mini"},model:{value:t.params.window,callback:function(e){t.$set(t.params,"window",e)},expression:"params.window"}},t._l(t.windowOptions,(function(t,e){return a("el-option",{key:"window_option_"+e,attrs:{value:t,lable:t}})})),1)],1)]),a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:t.loadCustomData}},[t._v("å¼€å§‹åˆ†æž")])],1),t.isCompare?[a("el-row",{attrs:{gutter:12}},[a("el-col",{attrs:{span:12}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.isLoading,expression:"isLoading"}],staticClass:"chart-holder",staticStyle:{"margin-top":"12px"}},[a("div",{staticClass:"chart-holder-header"},[a("p",{staticClass:"chart-holder-header__title"},[t._v("åå¥½ç¨‹åº¦ - äº§å“è§†å›¾")]),a("el-dropdown",{attrs:{placement:"bottom-start",trigger:"click"},on:{command:t.onProductCommand}},[a("el-link",{staticStyle:{"font-size":"12px"},attrs:{type:"primary",underline:!1}},[a("span",[t._v(t._s(t.compareFilter.product))]),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.compareFilter.products,(function(e,i){return a("el-dropdown-item",{key:"product_"+i,attrs:{command:e}},[t._v(" "+t._s(e)+" ")])})),1)],1)],1),a("fof-e-charts",{attrs:{option:t.preferCompareChart1,height:t.chartHeight1,msg:t.preferenceError,dialogTitle:"åå¥½ç¨‹åº¦-äº§å“è¯•å›¾"}})],1)]),a("el-col",{attrs:{span:12}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.isLoading,expression:"isLoading"}],staticClass:"chart-holder",staticStyle:{"margin-top":"12px"}},[a("div",{staticClass:"chart-holder-header"},[a("p",{staticClass:"chart-holder-header__title"},[t._v("é…ç½®èƒ½åŠ›")]),a("el-checkbox",{staticStyle:{"margin-left":"8px"},attrs:{size:"mini"},on:{change:t.refreshCompareCharts},model:{value:t.calcCumProd,callback:function(e){t.calcCumProd=e},expression:"calcCumProd"}},[t._v("å±•ç¤ºç´¯è®¡")])],1),a("fof-e-charts",{attrs:{option:t.preferCompareChart2,height:t.chartHeight2,msg:t.allocationError,dialogTitle:"é…ç½®èƒ½åŠ›"}})],1)])],1),a("el-row",{attrs:{gutter:12}},[a("el-col",{attrs:{span:12}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.isLoading,expression:"isLoading"}],staticClass:"chart-holder",staticStyle:{"margin-top":"12px"}},[a("div",{staticClass:"chart-holder-header"},[a("p",{staticClass:"chart-holder-header__title"},[t._v(" åå¥½ç¨‹åº¦ - è¡Œä¸š/é£Žæ&nbsp;¼å›&nbsp;å­è§†å›¾ ")]),a("el-select",{staticStyle:{width:"120px"},attrs:{size:"mini",placeholder:"è¯·é€‰æ‹©",filterable:""},on:{change:t.onFactorCommand},model:{value:t.compareFilter.factor,callback:function(e){t.$set(t.compareFilter,"factor",e)},expression:"compareFilter.factor"}},t._l(t.compareFilter.factors,(function(t,e){return a("el-option",{key:"factor_"+e,attrs:{label:t,value:t}})})),1)],1),a("fof-e-charts",{attrs:{option:t.preferCompareChart3,height:t.chartHeight3,msg:t.preferenceError,dialogTitle:"åå¥½ç¨‹åº¦ - è¡Œä¸š/é£Žæ&nbsp;¼å›&nbsp;å­è§†å›¾"}})],1)]),a("el-col",{attrs:{span:12}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.isLoading,expression:"isLoading"}],staticClass:"chart-holder",staticStyle:{"margin-top":"12px"}},[a("div",{staticClass:"chart-holder-header"},[a("p",{staticClass:"chart-holder-header__title"},[t._v("é…ç½®èƒ½åŠ›")]),a("el-checkbox",{staticStyle:{"margin-left":"8px"},attrs:{size:"mini"},on:{change:t.refreshCompareCharts},model:{value:t.calcCumProd,callback:function(e){t.calcCumProd=e},expression:"calcCumProd"}},[t._v("å±•ç¤ºç´¯è®¡")])],1),a("fof-e-charts",{attrs:{option:t.preferCompareChart4,height:t.chartHeight4,msg:t.allocationError,dialogTitle:"åå¥½èƒ½åŠ›",toFile:"åå¥½èƒ½åŠ›"}})],1)])],1)]:[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.isLoading,expression:"isLoading"}],staticClass:"chart-holder",staticStyle:{"margin-top":"12px"}},[t._m(0),a("div",[a("fof-e-charts",{attrs:{option:t.preferenceNavOption,height:t.heatHeight,msg:t.preferenceError,dialogTitle:"åå¥½ç¨‹åº¦",toFile:"é…ç½®ç¨‹åº¦"}}),a("p",{staticClass:"th-summarynote margin-l10 margin-r10 margin-t10"},[t._v(" * "),a("span",{staticStyle:{"font-weight":"700"}},[t._v(" "+t._s(t.preferenceNavOptionMsg.lastDate)+" ")]),t._v("ï¼ŒåŸºé‡‘å¯¹ "),a("span",{staticStyle:{"font-weight":"700"}},[t._v(" "+t._s(t.preferenceNavOptionMsg.name)+" ")]),t._v("çš„åå¥½ç¨‹åº¦æœ€é«˜ ã€‚ ")]),a("p",{staticClass:"th-footnote",staticStyle:{margin:"5px 10px"}},[t._v(" * åŸºäºŽå‡€å€¼å›žå½’çš„åå¥½ç¨‹åº¦ä¸ºé€šè¿‡å‡€å€¼å’Œå›&nbsp;å­å›žå½’å‡ºçš„å›&nbsp;å­æš´éœ²æƒé‡ã€‚ ")])],1)]),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.isLoading,expression:"isLoading"}],staticClass:"chart-holder",staticStyle:{"margin-top":"12px"}},[a("div",{staticClass:"chart-holder-header"},[a("span",{staticStyle:{"font-size":"12px",color:"#999"}},[t._v("é…ç½®èƒ½åŠ›")]),a("el-checkbox",{staticStyle:{"margin-left":"10px"},attrs:{size:"mini"},on:{change:t.showSum},model:{value:t.calcCumProd,callback:function(e){t.calcCumProd=e},expression:"calcCumProd"}},[t._v("å±•ç¤ºç´¯è®¡")])],1),a("div",[a("fof-e-charts",{attrs:{option:t.allocationNavOption,height:t.heatHeight,msg:t.allocationError,dialogTitle:"é…ç½®èƒ½åŠ›",toFile:"é…ç½®èƒ½åŠ›"}}),t.calcCumProd?a("p",{staticClass:"th-summarynote margin-l10 margin-r10 margin-t10"},[t._v(" * åŸºäºŽåŸºé‡‘å‡€å€¼å›žå½’å¾—å‡ºï¼Œ"),a("span",{staticStyle:{"font-weight":"700"}},[t._v(" "+t._s(t.allocationNavOptionMsg.lastDate)+" ")]),t._v(" ï¼Œ"),a("span",{staticStyle:{"font-weight":"700"}},[t._v(" "+t._s(t.allocationNavOptionMsg.name)+" ")]),t._v("å¯¹åŸºé‡‘çš„ç´¯è®¡æ”¶ç›Šè´¡çŒ®æœ€é«˜ ï¼Œè¯´æ˜ŽåŸºé‡‘å¯¹è¯¥é¡¹çš„ç´¯è®¡é…ç½®èƒ½åŠ›æœ€å¼ºã€‚ ")]):a("p",{staticClass:"th-summarynote margin-l10 margin-r10 margin-t10"},[t._v(" * åŸºäºŽåŸºé‡‘å‡€å€¼å›žå½’å¾—å‡ºï¼Œ"),a("span",{staticStyle:{"font-weight":"700"}},[t._v(" "+t._s(t.allocationNavOptionMsg.lastDate)+" ")]),t._v(" ï¼Œ"),a("span",{staticStyle:{"font-weight":"700"}},[t._v(" "+t._s(t.allocationNavOptionMsg.name)+" ")]),t._v("å¯¹åŸºé‡‘çš„æ”¶ç›Šè´¡çŒ®æœ€é«˜ ï¼Œè¯´æ˜ŽåŸºé‡‘å¯¹è¯¥é¡¹çš„é…ç½®èƒ½åŠ›æœ€å¼ºã€‚ ")]),a("p",{staticClass:"th-footnote",staticStyle:{margin:"5px 10px"}},[t._v(" * åŸºäºŽå‡€å€¼å›žå½’çš„é…ç½®èƒ½åŠ›ä¸ºå›žå½’å‡ºçš„å›&nbsp;å­æ”¶ç›Šè´¡çŒ®ã€‚ ")])],1)])]],2)},A=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"chart-holder-header"},[a("span",{staticStyle:{"font-size":"12px",color:"#999"}},[t._v("åå¥½ç¨‹åº¦")])])}],k=a("eea0"),O={name:"analysis-factor-sector-nav",components:{tfNavigatorTabs:r["a"],fofECharts:l["a"],legendExplain:m["a"]},props:{product:Object,products:Array,institution:Object,manager:Object},data(){return{isVisible:!1,lastParamObj:null,paramConfigs:null,holdingList:null,preferenceNavOptionMsg:{lastDate:"",name:""},modeOptions:[{label:"åŸºäºŽæŠ¥å‘ŠæœŸ",value:"BY_PERIOD"},{label:"åŸºäºŽå‡€å€¼å›žå½’",value:"BY_NAV"}],catalogOptions:[{label:"è¡Œä¸š",options:[{label:"ä¸‡å¾—è¡Œä¸š Lv.1",value:"WD1"},{label:"ä¸‡å¾—è¡Œä¸š Lv.2",value:"WD2"},{label:"ä¸­ä¿¡è¡Œä¸š Lv.1",value:"ZX1"},{label:"ä¸­ä¿¡è¡Œä¸š Lv.2",value:"ZX2"}]},{label:"é£Žæ&nbsp;¼",options:[{label:"ä¸­ä¿¡é£Žæ&nbsp;¼æŒ‡æ•°",value:"ä¸­ä¿¡é£Žæ&nbsp;¼æŒ‡æ•°"},{label:"å®½åŸºæŒ‡æ•°",value:"å®½åŸºæŒ‡æ•°"},{label:"æŠ•èµ„é£Žæ&nbsp;¼æŒ‡æ•°",value:"æŠ•èµ„é£Žæ&nbsp;¼æŒ‡æ•°"}]}],params:{mode:"BY_NAV",start:h["a"].getYearAgoDateString(),end:h["a"].getNowDateString(),benchmark:null,catalog:null,approach:null,window:null},options:{benchmark:[],catalog:[],approach:[],window:null},isLoading:!1,preferenceNavOption:null,allocationNavOption:null,allocationNavOptionMsg:{lastDate:"",name:""},pickerOptions:{shortcuts:h["a"].getShortcuts("ONE_YEAR","TWO_YEAR","THREE_YEAR","FIVE_YEAR","YEAR_TO_DATE")},heatHeight:300,productPreferenceData:{},productAllocationData:{},preferenceOption:null,preferenceRadarOption:null,allocationOption:null,allocationSeriesOption:null,preferCompareChart1:null,preferCompareChart2:null,preferCompareChart3:null,preferCompareChart4:null,chartHeight1:300,chartHeight2:300,chartHeight3:300,chartHeight4:300,compareFilter:{factor:null,factors:[],product:null,products:[]},calcCumProd:!1,errorMessage:{preference:[],allocation:[]}}},computed:{paramObj(){return{products:this.products,institution:this.institution,manager:this.manager}},dateRange:{get(){const{start:t,end:e}=this.params;return null!=t&amp;&amp;null!=e?[t,e]:[]},set(t){if(t&amp;&amp;t.length&gt;1){const[e,a]=t;this.params.start=e,this.params.end=a}else this.params.start=null,this.params.end=null}},isCompare(){return this.products&amp;&amp;this.products.length&gt;1},firstProduct(){return this.products&amp;&amp;this.products.length&gt;0?this.products[0]:null},isMasterFund(){return this.products&amp;&amp;this.products.length&gt;0&amp;&amp;this.products[0].isMasterFund},preferenceError(){return(this.errorMessage.preference||[]).filter(t=&gt;null!=t&amp;&amp;""!=t.trim()).distinct().join("; ")},allocationError(){return(this.errorMessage.allocation||[]).filter(t=&gt;null!=t&amp;&amp;""!=t.trim()).distinct().join("; ")},benchmarkOptions(){return this.paramConfigs&amp;&amp;this.paramConfigs["åŸºå‡†"]?this.paramConfigs["åŸºå‡†"].option:[]},approachOptions(){return this.paramConfigs&amp;&amp;this.paramConfigs["å›žå½’æ–¹æ³•"]?this.paramConfigs["å›žå½’æ–¹æ³•"].option:[]},windowOptions(){return this.paramConfigs&amp;&amp;this.paramConfigs["å›žå½’å¤©æ•°"]?this.paramConfigs["å›žå½’å¤©æ•°"].option:[]}},watch:{paramObj:{deep:!0,immediate:!0,handler(t,e){this.loadData()}}},mounted(){},methods:{visibilityChanged(t,e){this.isVisible=t,this.loadData()},async loadData(t=!1){(1==t||this.isVisible&amp;&amp;JSON.stringify(this.lastParamObj)!=JSON.stringify(this.paramObj))&amp;&amp;(this.lastParamObj=g.a.cloneDeep(this.paramObj),this.resetData(),this.preferenceNavOption=null,this.allocationNavOption=null,await this.loadParams(),await this.loadCustomData())},async loadParams(){const t=p["b"].StockCatalogPreferenceRg.CHARACTERISTIC_CODE,e=await this.$fundEvalService.getFundEvaluationParam(t);if(e&amp;&amp;0==e.errorNo){if(this.paramConfigs=e.result,this.paramConfigs&amp;&amp;this.paramConfigs["åˆ†ç±»"]){const{value:t,option:e}=this.paramConfigs["åˆ†ç±»"];this.params.catalog=t||(e&amp;&amp;e.length&gt;0?e[0]:null)}if(this.paramConfigs&amp;&amp;this.paramConfigs["åŸºå‡†"]){const{value:t,option:e}=this.paramConfigs["åŸºå‡†"];this.params.benchmark=t||(e&amp;&amp;e.length&gt;0?e[0]:null)}if(this.paramConfigs&amp;&amp;this.paramConfigs["å›žå½’æ–¹æ³•"]){const{value:t,option:e}=this.paramConfigs["å›žå½’æ–¹æ³•"];this.params.approach=t||(e&amp;&amp;e.length&gt;0?e[0]:null)}if(this.paramConfigs&amp;&amp;this.paramConfigs["å›žå½’å¤©æ•°"]){const{value:t,option:e}=this.paramConfigs["å›žå½’å¤©æ•°"];this.params.window=t||(e&amp;&amp;e.length&gt;0?e[0]:null)}}},async loadCustomData(){let t=this.params;if(this.errorMessage.preference=[],this.errorMessage.allocation=[],this.products&amp;&amp;this.products.length&gt;0){const{start:e,end:a,benchmark:i,catalog:s,approach:r,window:o}=t;for(const t of this.products)this.isMasterFund?(await this.loadMasterPreferenceData(t,e,a,i,s,r,o),await this.loadMasterAllocationData(t,e,a,i,s,r,o)):(await this.loadPreferenceData(t,e,a,i,s,r,o),await this.loadAllocationData(t,e,a,i,s,r,o));this.isCompare?(this.setCompareFilter(),this.refreshCompareCharts()):this.refreshCharts()}else if(this.institution){const{start:e,end:a,benchmark:i,catalog:s,approach:r,window:o}=t;await this.loadInstitutionPreferenceData(this.institution,e,a,i,s,r,o),await this.loadInstitutionAllocationData(this.institution,e,a,i,s,r,o),this.refreshInstitutionCharts()}else if(this.manager){const{start:e,end:a,benchmark:i,catalog:s,approach:r,window:o}=t;await this.loadManagerPreferenceData(this.manager,e,a,i,s,r,o),await this.loadManagerAllocationData(this.manager,e,a,i,s,r,o),this.refreshManagerCharts()}else this.resetData()},async loadPreferenceData(t,e,a,i,s,r,o){if(t&amp;&amp;s){this.isLoading=!0;const n=new p["b"].StockCatalogPreferenceRg;n.setWindCode(t.code),n.setStart(h["a"].toQuarterEnd(e,-1)),n.setEnd(h["a"].toQuarterEnd(a,-1)),n.setBenchmark(i||"æ—&nbsp;"),n.setCatalog(s||"æ—&nbsp;"),n.setApproach(r),n.setWindow(o);const l=await this.$fundEvalService.getFundEvaluationData(n.toRequestBody());if(null==l)return void(this.isLoading=!1);0==l.errorNo?this.productPreferenceData[t.productShortName]=l.result:this.errorMessage.preference.push(l.message),this.isLoading=!1}},async loadHoldingList(t,e,a){if(null==t)return;let i=await this.$api.getAllSlaveProductHoldings.get({masterProductId:t.productId,startDate:e,endDate:a}),s={date:[],code:[],weight:[]};i.result.slaveWeightDTOList.forEach(t=&gt;{s.date.push(t.asOfDate),s.code.push(t.code),s.weight.push(t.weight)}),this.holdingList=s},async loadMasterPreferenceData(t,e,a,i,s,r,o){if(t&amp;&amp;s){this.isLoading=!0,await this.loadHoldingList(t,e,a);const n=new p["b"].StockCatalogPreferenceRg;n.setWindCode(this.holdingList),n.setStart(h["a"].toQuarterEnd(e,-1)),n.setEnd(h["a"].toQuarterEnd(a,-1)),n.setBenchmark(i||"æ—&nbsp;"),n.setCatalog(s||"æ—&nbsp;"),n.setApproach(r),n.setWindow(o);const l=await this.$fundEvalService.getFundEvaluationData(n.toRequestBody(),p["a"].MASTER_FUND);if(null==l)return void(this.isLoading=!1);0==l.errorNo?this.productPreferenceData[t.productShortName]=l.result:this.errorMessage.preference.push(l.message),this.isLoading=!1}},async loadInstitutionPreferenceData(t,e,a,i,s,r,o){if(t&amp;&amp;s){this.isLoading=!0;const n=new p["b"].StockCatalogPreferenceRg;n.setWindCode(t.shortName),n.setStart(h["a"].toQuarterEnd(e,-1)),n.setEnd(h["a"].toQuarterEnd(a,-1)),n.setBenchmark(i||"æ—&nbsp;"),n.setCatalog(s||"æ—&nbsp;"),n.setApproach(r),n.setWindow(o);const l=await this.$fundEvalService.getFundEvaluationData(n.toRequestBody(),p["a"].INSTITUTION);if(null==l)return void(this.isLoading=!1);0==l.errorNo?this.productPreferenceData[t.shortName]=l.result:this.errorMessage.preference.push(l.message),this.isLoading=!1}},async loadManagerPreferenceData(t,e,a,i,s,r,o){if(t&amp;&amp;s){this.isLoading=!0;const n=new p["b"].StockCatalogPreferenceRg;n.setWindCode(t.fundmanagerId),n.setStart(h["a"].toQuarterEnd(e,-1)),n.setEnd(h["a"].toQuarterEnd(a,-1)),n.setBenchmark(i||"æ—&nbsp;"),n.setCatalog(s||"æ—&nbsp;"),n.setApproach(r),n.setWindow(o);const l=await this.$fundEvalService.getFundEvaluationData(n.toRequestBody(),p["a"].FUND_MANAGER);if(null==l)return void(this.isLoading=!1);0==l.errorNo?this.productPreferenceData[t.fundManager]=l.result:this.errorMessage.preference.push(l.message),this.isLoading=!1}},async loadAllocationData(t,e,a,i,s,r,o){if(t&amp;&amp;s){this.isLoading=!0;const n=new p["b"].StockCatalogAllocationRg;n.setWindCode(t.code),n.setStart(h["a"].toQuarterEnd(e,-1)),n.setEnd(h["a"].toQuarterEnd(a,-1)),n.setBenchmark(i||"æ—&nbsp;"),n.setCatalog(s),n.setApproach(r),n.setWindow(o);const l=await this.$fundEvalService.getFundEvaluationData(n.toRequestBody());if(null==l)return void(this.isLoading=!1);0==l.errorNo?this.productAllocationData[t.productShortName]=l.result:this.errorMessage.allocation.push(l.message),this.isLoading=!1}},async loadMasterAllocationData(t,e,a,i,s,r,o){if(t&amp;&amp;s){this.isLoading=!0;const n=new p["b"].StockCatalogAllocationRg;n.setWindCode(this.holdingList),n.setStart(h["a"].toQuarterEnd(e,-1)),n.setEnd(h["a"].toQuarterEnd(a,-1)),n.setBenchmark(i||"æ—&nbsp;"),n.setCatalog(s),n.setApproach(r),n.setWindow(o);const l=await this.$fundEvalService.getFundEvaluationData(n.toRequestBody(),p["a"].MASTER_FUND);if(null==l)return void(this.isLoading=!1);0==l.errorNo?this.productAllocationData[t.productShortName]=l.result:this.errorMessage.allocation.push(l.message),this.isLoading=!1}},async loadInstitutionAllocationData(t,e,a,i,s,r,o){if(t&amp;&amp;s){this.isLoading=!0;const n=new p["b"].StockCatalogAllocationRg;n.setWindCode(t.shortName),n.setStart(h["a"].toQuarterEnd(e,-1)),n.setEnd(h["a"].toQuarterEnd(a,-1)),n.setBenchmark(i||"æ—&nbsp;"),n.setCatalog(s),n.setApproach(r),n.setWindow(o);const l=await this.$fundEvalService.getFundEvaluationData(n.toRequestBody(),p["a"].INSTITUTION);if(null==l)return void(this.isLoading=!1);0==l.errorNo?this.productAllocationData[t.shortName]=l.result:this.errorMessage.allocation.push(l.message),this.isLoading=!1}},async loadManagerAllocationData(t,e,a,i,s,r,o){if(t&amp;&amp;s){this.isLoading=!0;const n=new p["b"].StockCatalogAllocationRg;n.setWindCode(t.fundmanagerId),n.setStart(h["a"].toQuarterEnd(e,-1)),n.setEnd(h["a"].toQuarterEnd(a,-1)),n.setBenchmark(i||"æ—&nbsp;"),n.setCatalog(s),n.setApproach(r),n.setWindow(o);const l=await this.$fundEvalService.getFundEvaluationData(n.toRequestBody(),p["a"].FUND_MANAGER);if(null==l)return void(this.isLoading=!1);0==l.errorNo?this.productAllocationData[t.fundManager]=l.result:this.errorMessage.allocation.push(l.message),this.isLoading=!1}},setCompareFilter(){if(this.isCompare){this.products&amp;&amp;this.products.length&gt;0?(this.compareFilter.products=this.products.map(t=&gt;t.productShortName),this.compareFilter.product=this.compareFilter.products[0]):(this.compareFilter.products=[],this.compareFilter.product=null);let t={};for(let e in this.productPreferenceData){let a=this.productPreferenceData[e];for(let e in a)t[e]=a[e]}t&amp;&amp;Object.keys(t).length&gt;0?(this.compareFilter.factors=Object.keys(t),this.compareFilter.factor=this.compareFilter.factors[0]):(this.compareFilter.factors=[],this.compareFilter.factor=null)}},showSum(){this.products&amp;&amp;this.products.length&gt;0?this.refreshCharts():this.institution&amp;&amp;this.refreshInstitutionCharts()},refreshCharts(){if(null!=this.firstProduct&amp;&amp;null!=this.productPreferenceData){const t=this.productPreferenceData[this.firstProduct.productShortName];this.refreshPreferenceNavData(t)}if(null!=this.firstProduct&amp;&amp;null!=this.productAllocationData){const t=this.productAllocationData[this.firstProduct.productShortName];this.refreshAllocationNavData(t)}},refreshInstitutionCharts(){if(null!=this.institution&amp;&amp;null!=this.productPreferenceData){const t=this.productPreferenceData[this.institution.shortName];this.refreshPreferenceNavData(t)}if(null!=this.institution&amp;&amp;null!=this.productAllocationData){const t=this.productAllocationData[this.institution.shortName];this.refreshAllocationNavData(t)}},refreshManagerCharts(){if(null!=this.manager&amp;&amp;null!=this.productPreferenceData){const t=this.productPreferenceData[this.manager.fundManager];this.refreshPreferenceNavData(t)}if(null!=this.manager&amp;&amp;null!=this.productAllocationData){const t=this.productAllocationData[this.manager.fundManager];this.refreshAllocationNavData(t)}},refreshCompareCharts(){this.refreshCompareDataByProduct(),this.refreshCompareDataByFactor()},refreshPreferenceNavData(t){if(t){const e=new u["a"].LineChart("é£Žæ&nbsp;¼",{showDataZoom:!0,sortTooltip:!0});for(const a of Object.keys(t)){const i=t[a];let s=Object.entries(i).map(([t,e])=&gt;({date:t,value:e}));s&amp;&amp;s.length&gt;1&amp;&amp;s.sort((t,e)=&gt;t.date.localeCompare(e.date)),e.appendSeries(a,s)}if(this.preferenceNavOption=e.option,this.preferenceNavOption.series&amp;&amp;this.preferenceNavOption.series.length&gt;0){let t=this.preferenceNavOption.series[0];this.preferenceNavOption.series.forEach(e=&gt;{t.data[e.data.length-1][1]&lt;e.data[e.data.length-1][1]&amp;&amp;(t=e)}),this.preferenceNavOptionMsg.lastDate=t.data[t.data.length-1][0],this.preferenceNavOptionMsg.name=t.name}}else this.preferenceNavOption=null},refreshAllocationNavData(t){if(t){const e=new u["a"].LineChart("é£Žæ&nbsp;¼",{showDataZoom:!0,sortTooltip:!0});for(const a of Object.keys(t)){const i=t[a];let s=Object.entries(i).map(([t,e])=&gt;({date:t,value:e}));s&amp;&amp;s.length&gt;1&amp;&amp;s.sort((t,e)=&gt;t.date.localeCompare(e.date)),this.calcCumProd&amp;&amp;(s=k["a"].cumProduct(s)),e.appendSeries(a,s)}if(this.allocationNavOption=e.option,this.allocationNavOption.series&amp;&amp;this.allocationNavOption.series.length&gt;0){let t=this.allocationNavOption.series[0];this.allocationNavOption.series.forEach(e=&gt;{t.data[e.data.length-1][1]&lt;e.data[e.data.length-1][1]&amp;&amp;(t=e)}),this.allocationNavOptionMsg.lastDate=t.data[t.data.length-1][0],this.allocationNavOptionMsg.name=t.name}}else this.allocationNavOption=null},refreshCompareDataByProduct(t){const e=t||this.compareFilter.product;if(this.productPreferenceData&amp;&amp;this.productPreferenceData[e]){const t=this.productPreferenceData[e],a=new u["a"].LineChart("åå¥½ç¨‹åº¦",{showDataZoom:!0,sortTooltip:!0});for(const[e,i]of Object.entries(t)){let t=Object.entries(i).map(([t,e])=&gt;({date:t,value:e}));t&amp;&amp;t.length&gt;1&amp;&amp;t.sort((t,e)=&gt;t.date.localeCompare(e.date)),a.appendSeries(e,t)}this.preferCompareChart1=a.option}else this.preferCompareChart1=null;if(this.productAllocationData&amp;&amp;this.productAllocationData[e]){const t=this.productAllocationData[e],a=new u["a"].LineChart("é…ç½®èƒ½åŠ›",{showDataZoom:!0,sortTooltip:!0});for(const[e,i]of Object.entries(t)){let t=Object.entries(i).map(([t,e])=&gt;({date:t,value:e}));t&amp;&amp;t.length&gt;1&amp;&amp;t.sort((t,e)=&gt;t.date.localeCompare(e.date)),this.calcCumProd&amp;&amp;(t=k["a"].cumProduct(t)),a.appendSeries(e,t)}this.preferCompareChart2=a.option}else this.preferCompareChart2=null},refreshCompareDataByFactor(t){const e=t||this.compareFilter.factor;if(this.productPreferenceData){const t=new u["a"].LineChart("åå¥½ç¨‹åº¦",{showDataZoom:!0,sortTooltip:!0});for(const[a,i]of Object.entries(this.productPreferenceData)){let s=i[e];s&amp;&amp;(s=Object.entries(s).map(([t,e])=&gt;({date:t,value:e})),s&amp;&amp;s.length&gt;1&amp;&amp;s.sort((t,e)=&gt;t.date.localeCompare(e.date)),t.appendSeries(a,s))}this.preferCompareChart3=t.option}if(this.productAllocationData){const t=new u["a"].LineChart("é…ç½®èƒ½åŠ›",{showDataZoom:!0,sortTooltip:!0});for(const[a,i]of Object.entries(this.productPreferenceData)){let s=i[e];s&amp;&amp;(s=Object.entries(s).map(([t,e])=&gt;({date:t,value:e})),s&amp;&amp;s.length&gt;0&amp;&amp;s.sort((t,e)=&gt;t.date.localeCompare(e.date)),this.calcCumProd&amp;&amp;(s=k["a"].cumProduct(s)),t.appendSeries(a,s))}this.preferCompareChart4=t.option}},onProductCommand(t){this.compareFilter.product=t,this.refreshCompareDataByProduct(t)},onFactorCommand(t){this.compareFilter.factor=t,this.refreshCompareDataByFactor(t)},resetData(){this.productPreferenceData={},this.productAllocationData={}},refreshChart(){"BY_NAV"==this.params.mode.value&amp;&amp;1==this.products.length&amp;&amp;this.refreshAllocationData()},async loadByProduct(t){t&amp;&amp;null!=t.code&amp;&amp;(this.loadPreference(this.getPreferCharInstance(),t.code),this.loadAllocation(this.getAllocCharInstance(),t.code))},async loadPreference(t,e){if(this.windCode&amp;&amp;this.params.catalog){this.isLoading=!0;const[a,i]=this.dateRange;t.setWindCode(e),t.setStart(h["a"].toQuarterEnd(a,-1)),t.setEnd(h["a"].toQuarterEnd(i,-1)),t.setBenchmark(this.params.benchmark||"æ—&nbsp;"),t.setCatalog(this.params.catalog||"æ—&nbsp;");const s=await this.$fundEvalService.getFundEvaluationData(t.toRequestBody());if(s&amp;&amp;0==s.errorNo){let t=s.result;this.productPreferenceData[e]=t,this.refreshPreferenceCharts(_data)}else this.preferenceOption=null,this.preferenceRadarOption=null;this.isLoading=!1}},async loadAllocation(t,e){if(this.windCode&amp;&amp;this.params.catalog){this.isLoading=!0;const[a,i]=this.dateRange;null==t&amp;&amp;(t=new p["b"].StockCatalogAllocation),t.setWindCode(e),t.setStart(h["a"].toQuarterEnd(a,-1)),t.setEnd(h["a"].toQuarterEnd(i,-1)),t.setBenchmark(this.params.benchmark||"æ—&nbsp;"),t.setCatalog(this.params.catalog);const s=await this.$fundEvalService.getFundEvaluationData(t.toRequestBody());if(s&amp;&amp;0==s.errorNo){let t=s.result;this.productAllocationData[e]=t,this.refreshAllocationCharts(_data)}else this.allocationOption=null,this.allocationSeriesOption=null;this.isLoading=!1}},refreshPreferenceCharts(t){"BY_NAV"==this.mode?this.refreshPreferenceNavData(t):"BY_PERIOD"==this.mode&amp;&amp;(this.refreshPreferenceData(t),this.refreshPreferenceRadarData(t))},refreshAllocationCharts(t){"BY_NAV"==this.mode?this.refreshAllocationNavData(t):"BY_PERIOD"==this.mode&amp;&amp;this.refreshAllocationData(t)},refreshPreferenceData(t){if(t){const e=[],a=[],i=[];for(const r of Object.keys(t)){const s=t[r];i.push(r);const o=[];for(const t of Object.keys(s)){const e=s[t];a.includes(t)||a.push(t),o.push(e)}e.push(o)}const s=a.length&gt;13;this.heatHeight=110+24*i.length,this.preferenceOption=new u["a"].HeatChart("åå¥½ç¨‹åº¦",e,a,i,{hideValue:s}).option}else this.preferenceOption=null},refreshPreferenceRadarData(t){if(t){const e={},a=[];for(const s of Object.keys(t)){const i=t[s];a.push({key:s,name:s});for(const t of Object.keys(i)){const a=i[t],r=e[t]||{};r[s]=a,e[t]=r}}const i=new u["a"].RadarChart("",a);for(const t of Object.keys(e))i.appendData(t,e[t]);this.preferenceRadarOption=i.option}else this.preferenceRadarOption=null},refreshAllocationData(t){if(t){const e=[],a=[],i=[],s={};let r=null;for(const l of Object.keys(t)){const o=t[l];i.push(l);const n=[],c=[];for(const t of Object.keys(o)){const e=o[t];a.includes(t)||a.push(t),n.push(e),c.push({date:t,value:e}),r=null==r||r&lt;Math.abs(e)?Math.abs(e):r}e.push(n),s[l]=c}const o=a.length&gt;13;this.allocationOption=new u["a"].HeatChart("é…ç½®èƒ½åŠ›",e,a,i,{max:r,min:-r,hideValue:o}).option;const n=new u["a"].LineChart("");for(const t of Object.keys(s)){const e="sum"!=t?{stack:"total",areaStyle:{},type:"bar",barWidth:"30%"}:null;n.appendSeries(t,s[t],e)}this.allocationSeriesOption=n.option}else this.allocationOption=null,this.allocationSeriesOption=null},getPreferCharInstance(){return"BY_NAV"==this.params.mode.value?new p["b"].StockCatalogPreferenceRg:new p["b"].StockCatalogPreference},getAllocCharInstance(){return"BY_NAV"==this.params.mode.value?new p["b"].StockCatalogAllocationRg:new p["b"].StockCatalogAllocation}}},E=O,_=(a("361d"),Object(w["a"])(E,C,A,!1,null,"3b03290b",null)),P=_.exports,N={name:"analysis-factor-sector",components:{tfNavigatorTabs:r["a"],analysisFactorSectorPeriod:S,analysisFactorSectorNav:P},props:{products:Array,institution:Object,manager:Object},data(){return{SUPPORT_STRATEGY_NAME:["æ™®é€šè‚¡ç¥¨åž‹åŸºé‡‘","åè‚¡æ··åˆåž‹åŸºé‡‘","å¹³è¡¡æ··åˆåž‹åŸºé‡‘","çµæ´»é…ç½®åž‹åŸºé‡‘"],mode:null,modeOptions:[{label:"åŸºäºŽæŠ¥å‘ŠæœŸ",value:"BY_PERIOD"},{label:"åŸºäºŽå‡€å€¼å›žå½’",value:"BY_NAV"}]}},computed:{filteredModeOptions(){return this.modeOptions},modeCode(){return this.mode?this.mode.value:null},effectiveProducts(){return(this.products||[]).filter(t=&gt;{if(null==t.mutualFundStrategyCode)return!1;console.log("debug: product: ",t);const e=this.$store.getters.getStrategyName(t.mutualFundStrategyCode,2);return this.SUPPORT_STRATEGY_NAME.includes(e)})},invalidProductNames(){return(this.products||[]).filter(t=&gt;!this.effectiveProducts.map(t=&gt;t.id).includes(t.id)).map(t=&gt;t.productShortName)}},mounted(){this.mode=this.modeOptions[0]},methods:{}},L=N,I=(a("260c"),Object(w["a"])(L,i,s,!1,null,"1bfd3a42",null));e["a"]=I.exports},c023:function(t,e,a){"use strict";a("17b8")},c367:function(t,e,a){"use strict";const i={getProductTypes:t=&gt;{let e="PURE_PRIVATE_FUND",a=!1,i=!1;if(t)for(const s of t)"MUTUAL_FUND"==s.productType?a=!0:"FUND"==s.productType&amp;&amp;(i=!0);return e=a&amp;&amp;i?"HYBRID":a?"PURE_MUTUAL_FUND":"PURE_PRIVATE_FUND",e}};e["a"]=i},c82b:function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t._t("default"),a("el-row",{staticClass:"margin-b5",attrs:{gutter:10}},[a("el-col",{attrs:{span:10}},[a("pinyinSelector",{attrs:{name:"firstOption",size:"mini",clearable:!0,filterable:!0,multiple:!0,placeholder:"æ·»åŠ&nbsp;æ¯åŸºé‡‘",options:t.masterFundOptions,"label-field":"label"},model:{value:t.masterFunds,callback:function(e){t.masterFunds=e},expression:"masterFunds"}})],1),a("el-col",{staticClass:"margin-b5",attrs:{span:10}},[a("el-select",{attrs:{filterable:"",remote:"",multiple:"",clearable:"",size:"mini",placeholder:"è¯·è¾“å…¥å­åŸºé‡‘åç§°æœç´¢","value-key":"value","reserve-keyword":"","remote-method":t.loadFundOptions,loading:t.loading},model:{value:t.funds,callback:function(e){t.funds=e},expression:"funds"}},t._l(t.productOptions,(function(e,i){return a("el-option-group",{key:"group_"+i,attrs:{label:e.label}},t._l(e.options,(function(e,i){return a("el-option",{key:"holdings_"+i,attrs:{value:e.id,label:e.value}},[a("span",{staticStyle:{float:"left"}},[t._v(t._s(e.value))]),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[t._v(t._s(e.value4))])])})),1)})),1)],1),a("el-col",{attrs:{span:4}},[a("el-button",{attrs:{type:"primary",size:"mini"},on:{click:t.contrast}},[t._v("ç¡®å®š")])],1)],1),a("el-row",{staticClass:"margin-b5",attrs:{gutter:10}},[a("el-col",{attrs:{span:10}},[a("pinyinSelector",{attrs:{name:"firstOption",size:"mini",clearable:!0,filterable:!0,multiple:!0,placeholder:"æ·»åŠ&nbsp;æŒ‡æ•°",options:t.indexNumbersList,"label-field":"label"},model:{value:t.indexNumbers,callback:function(e){t.indexNumbers=e},expression:"indexNumbers"}})],1)],1),t.show?a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.onLoading,expression:"onLoading"}]},[t.active&amp;&amp;t.paramObj?a("incomeTrend",{ref:"navTrends",attrs:{productParam:t.paramObj,chartStyle:{title:"å‡€å€¼èµ°åŠ¿",yAxisScale:!0,toolbox:{feature:{saveAsImage:{show:!1,type:"jpeg",backgroundColor:"#fff",icon:"image://data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAACgAAAAoCAYAAACM/rhtAAAACXBIWXMAAAsSAAALEgHS3X78AAAChElEQVRYhe2YPXMSURSG391lL6i7FG4TZp2h2oy4NFIEKqrYWFhAYeMM6w+QlsKUWmDpLyCFpYyVDU2GKrGwCpMZqZgJExstAjpkF7gWEbK4nzd8OsPTcbmcfTjncO4uHKWUYoPh1y0QxFZwXraC87IVnJcIALw5vsJhy1y3ywwlneAgF0Wk3rY2Tg4ADlsmHik8+PPeeN0unpz3xv9JD7KytyOguCtClXic/Ryhdmqh219OJZgFq/kYCpo4fZ1NCDB0gkpzgHrbWqgcwDhm9pORGTk71XwMqrT4jmGK6CV38/6tOsYXpog9k/3WUSYcDnJRqBKPk4shai2LKQ6T4MdvlmcWL02KenvoWP/w9C5SynWhsgkBD2QeleYg9DWZSvzl+8g1+KVJUWkOHL/kgiZO5exrLL3K3DT1toWTixH2kxHECdDtUzQ6Q9eylTPENYaRFvH2+Go5ggDQ7Y8Dj8eSTjwzVdBEvP9qhurFpZwkMuE8swcAccLB0P0nwoSlCBq6iDjhfPcUd8MJhipxQRP/9hyHRmeIett7VKgSDyPtnT37voImBp4+gYKvc1EY+s0FswkBRU3Es0+/XPeXMyQwe/a9QYK+JVYlfkZuQkrh8eqxc32SlbCoEo+9HeH2gn6NXs5E8fD+7Mer+VhoOXscPzwFZcIFZuNd/s50lJR0gmzCPxtuZBOC44va8ezBMGMgpfA4en6PWepfXqaJ5/Hnqi4TLtQvcVH4HX+uq2Hm2KLxulVzCK46exOMNIHskhSHYM+kOPux+ie9bo+6Dn/XvL74/HvpQmHZ+MfOzRdMKezDdVWkFAEcpZQ2OkPUTjfr/xkjTfAkGbkWXLeMHxvfg38AQIiyhzbvBIMAAAAASUVORK5CYII=",pixelRatio:2}}}}}}):t._e()],1):a("el-row",[a("el-col",{staticClass:"tc lh-200 text_color"},[a("i",{staticClass:"iconfont icon-gantanhao f24 vm"}),t._v("æš‚æ—&nbsp;å‡€å€¼èµ°åŠ¿")])],1)],2)},s=[],r=(a("14d9"),a("8b55")),o=(a("4328"),a("168b")),n=a("a602");let l=null;var c={components:{incomeTrend:o["a"],pinyinSelector:n["a"]},props:{productParam:{type:Object},autoPlay:{type:Boolean,default:!1},url:{type:String,default:"/api/valuation/periodical"}},data:function(){return{chartData:{},chart:null,params:{},onLoading:!1,active:!1,indices:[],paramObj:null,show:!1,funds:[],masterFunds:[],indexNumbers:[],netWorths:[],productOptions:[],loading:!1}},methods:{async loadFundOptions(t){if(null==t||""==t.trim())return;this.loading=!0;const e=r["b"].uuid();l=e;let a=[];const i=await this.$api.getMixOptions.get({keyword:t,types:"FUND,MUTUAL_FUND"});if(0==i.errorNo){let t=i.result;t&amp;&amp;t.length&gt;0&amp;&amp;a.push(...t)}l==e&amp;&amp;(this.productOptions=a),this.loading=!1},contrast(){this.loadReturnData()},compileChart(t){this.active=t},returnProductParam(){let t={chartData:this.productParam.chartData,categoryControl:!1,normalizedControl:!0,percent:!0};this.paramObj=t},isEmptyChartData(t){t.chartData&amp;&amp;Object.keys(t.chartData).length?this.show=!0:this.show=!1},loadReturnData(){let t={productIds:this.masterFunds.concat(this.funds.concat(this.netWorths)).join(","),startDate:this.params.startDate,endDate:this.params.endDate,benchmarkIds:this.indexNumbers.join(",")};this.$refs.navTrends.setNormalized(!0),this.onLoading=!0,this.$http({method:"get",url:this.url,params:t}).then(t=&gt;{let e=t.data;if(0===e.errorNo){let t=this.productParam.chartData["å½“å‰é…ç½®"],a={};a["å½“å‰é…ç½®"]=t;let i=Object.assign(a,e.result);this.paramObj={chartData:i,categoryControl:!1,normalizedControl:!0,percent:!0}}this.onLoading=!1}).catch(t=&gt;{this.onLoading=!1})}},watch:{productParam(t){t&amp;&amp;t.chartData&amp;&amp;(this.params.startDate=t.startDate,this.params.endDate=t.endDate,this.isEmptyChartData(t),this.returnProductParam())},autoPlay(t){t&amp;&amp;(this.active=!0)}},computed:{indexNumbersList(){return this.$store.state.marketIndexList||[]},netWorthsList(){return[]},masterFundOptions(){return this.$store.state.masterFundList||[]},slaveFundOptions(){return this.$store.state.fundList?this.$store.state.fundList.filter(t=&gt;t.slaveFund).map(t=&gt;({id:t.id,value:t.name,pinyin:t.pinyin})):[]}},mounted(){this.productParam.chartData&amp;&amp;(this.isEmptyChartData(this.productParam),this.returnProductParam()),this.params.startDate=this.productParam.startDate,this.params.endDate=this.productParam.endDate,this.autoPlay&amp;&amp;(this.active=!0)}},h=c,d=a("0c7c"),p=Object(d["a"])(h,i,s,!1,null,null,null);e["a"]=p.exports},c975:function(t,e,a){},d0cc:function(t,e,a){"use strict";a("7e8b")},d3be:function(t,e,a){"use strict";a("81d5")},d9e2:function(t,e,a){var i=a("23e7"),s=a("da84"),r=a("2ba4"),o=a("e5cb"),n="WebAssembly",l=s[n],c=7!==Error("e",{cause:7}).cause,h=function(t,e){var a={};a[t]=o(t,e,c),i({global:!0,constructor:!0,arity:1,forced:c},a)},d=function(t,e){if(l&amp;&amp;l[t]){var a={};a[t]=o(n+"."+t,e,c),i({target:n,stat:!0,constructor:!0,arity:1,forced:c},a)}};h("Error",(function(t){return function(e){return r(t,this,arguments)}})),h("EvalError",(function(t){return function(e){return r(t,this,arguments)}})),h("RangeError",(function(t){return function(e){return r(t,this,arguments)}})),h("ReferenceError",(function(t){return function(e){return r(t,this,arguments)}})),h("SyntaxError",(function(t){return function(e){return r(t,this,arguments)}})),h("TypeError",(function(t){return function(e){return r(t,this,arguments)}})),h("URIError",(function(t){return function(e){return r(t,this,arguments)}})),d("CompileError",(function(t){return function(e){return r(t,this,arguments)}})),d("LinkError",(function(t){return function(e){return r(t,this,arguments)}})),d("RuntimeError",(function(t){return function(e){return r(t,this,arguments)}}))},db5c:function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-row",{attrs:{type:"flex",align:"middle"}},[a("el-col",{attrs:{span:12}},[a("div",{staticClass:"tf-page-header"},[a("p",{staticClass:"tf-page-header__title"},[t._v(t._s(t.title))]),t.showHelpDoc&amp;&amp;t.helpLink?a("a",{staticClass:"tf-page-header__help",attrs:{target:"_blank",href:t.helpLink}},[a("i",{staticClass:"iconfont icon-552cde723567f margin-l5 help-icon"})]):t._e()]),t.breadcrumbs?a("div",[a("el-breadcrumb",{staticClass:"tf-page-header__breadcrumb",attrs:{separator:"/"}},t._l(t.breadcrumbs,(function(e){return a("el-breadcrumb-item",{key:e.to,attrs:{to:e.to}},[t._v(t._s(e.label))])})),1)],1):t._e()]),a("el-col",{attrs:{span:12,align:"right"}},[t._t("action")],2)],1)},s=[],r={name:"tf-page-header",props:{helpLink:String,title:String,breadcrumbs:Array},computed:{showHelpDoc(){return!(!this.$store.state.userProfile||!this.$store.state.userProfile.institution)&amp;&amp;this.$store.state.userProfile.institution.showHelpDoc}}},o=r,n=(a("ff5d"),a("0c7c")),l=Object(n["a"])(o,i,s,!1,null,"779b9d53",null);e["a"]=l.exports},dcb3:function(t,e,a){},dda4:function(t,e,a){"use strict";a("9c93")},de68:function(t,e,a){},e1f0:function(t,e,a){"use strict";a("3861")},e5cb:function(t,e,a){"use strict";var i=a("d066"),s=a("1a2d"),r=a("9112"),o=a("3a9b"),n=a("d2bb"),l=a("e893"),c=a("aeb0"),h=a("7156"),d=a("e391"),p=a("ab36"),u=a("0d26"),m=a("b980"),f=a("83ab"),g=a("c430");t.exports=function(t,e,a,b){var v="stackTraceLimit",y=b?2:1,x=t.split("."),w=x[x.length-1],D=i.apply(null,x);if(D){var S=D.prototype;if(!g&amp;&amp;s(S,"cause")&amp;&amp;delete S.cause,!a)return D;var C=i("Error"),A=e((function(t,e){var a=d(b?e:t,void 0),i=b?new D(t):new D;return void 0!==a&amp;&amp;r(i,"message",a),m&amp;&amp;r(i,"stack",u(i.stack,2)),this&amp;&amp;o(S,this)&amp;&amp;h(i,this,A),arguments.length&gt;y&amp;&amp;p(i,arguments[y]),i}));if(A.prototype=S,"Error"!==w?n?n(A,C):l(A,C,{name:!0}):f&amp;&amp;v in D&amp;&amp;(c(A,D,v),c(A,D,"prepareStackTrace")),l(A,D),!g)try{S.name!==w&amp;&amp;r(S,"name",w),S.constructor=A}catch(k){}return A}}},e781:function(t,e,a){"use strict";a("0f61")},e9b2:function(t,e,a){},ec34:function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("el-dialog",{attrs:{title:t.title,width:t.dialogWidth,visible:t.formVisible,"close-on-click-modal":!1,"append-to-body":""},on:{close:t.onClosed}},[a("div",[t.genericMutualFund?a("div",[a("el-alert",{attrs:{type:"warning",title:"æš‚ä¸æ”¯æŒ",closable:!1,"show-icon":""}})],1):t.isShowComplexFeeComponent?a("performanceFeeUpdate",{attrs:{visible:t.formVisible,productId:t.productId,readOnly:!0,perfFeeParamData:t.performanceFee},on:{onClosed:t.afterChangeAfterFeeSetting}}):a("afterFeeSettingFormInformal",{attrs:{productId:t.productId,productIds:t.productIds,visible:t.formVisible,"read-only":t.readOnly||!t.enableEdit||t.isPublishedFund},on:{onClosed:t.afterChangeAfterFeeSetting}})],1)])},s=[],r=a("2ef0"),o=a.n(r),n=a("7afe"),l=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[t.readOnly?a("el-alert",{attrs:{type:"warning",title:t.warningMessage,"show-icon":""}}):t._e(),a("el-form",{directives:[{name:"loading",rawName:"v-loading",value:t.isLoading,expression:"isLoading"}],ref:"updateForm",attrs:{size:"mini","label-width":"100px",model:t.formData,disabled:t.readOnly||t.isLoading,rules:t.formDataRules}},[a("div",{staticClass:"popoverStyle"},[!t.productId||["MASTER_FUND","FUND"].includes(t.productType)&amp;&amp;!t.isPublishedFund?t._e():a("th-section",{attrs:{title:"ç®¡ç†è´¹è®¡æ",level:"2"}},[a("el-form-item",{attrs:{label:"è´¹çŽ‡ï¼š",prop:"managementFeeRate"}},[a("el-input",{staticStyle:{width:"100px"},attrs:{type:"text",size:"mini"},model:{value:t.formData.managementFeeRate,callback:function(e){t.$set(t.formData,"managementFeeRate",e)},expression:"formData.managementFeeRate"}}),t._v(" (%) ")],1)],1),a("th-section",{attrs:{title:"ä¸šç»©è®¡æ",level:"2"}},[a("el-form-item",{attrs:{label:"è®¡æç±»åž‹ï¼š",prop:"performanceCalcType"}},[a("el-select",{staticStyle:{width:"150px"},attrs:{size:"mini",clearable:""},on:{change:t.changePerformanceCalcType},model:{value:t.formData.performanceCalcType,callback:function(e){t.$set(t.formData,"performanceCalcType",e)},expression:"formData.performanceCalcType"}},t._l(t.calculationMethodDetailDict,(function(t,e){return a("el-option",{key:"calcDetail_"+e,attrs:{label:t,value:e}})})),1),"THRESHOLD_BASED"==t.formData.performanceCalcType?a("span",{staticStyle:{"margin-left":"5px"}},[a("el-input",{staticStyle:{width:"140px"},attrs:{size:"mini","auto-complete":"off",placeholder:"è¯·è¾“å…¥é—¨æ§›æ”¶ç›ŠçŽ‡"},model:{value:t.formData.performanceThresholdValue,callback:function(e){t.$set(t.formData,"performanceThresholdValue",e)},expression:"formData.performanceThresholdValue"}}),t._v(" (%) ")],1):t._e(),"BENCHMARK_BASED"==t.formData.performanceCalcType?a("el-select",{staticStyle:{width:"150px"},attrs:{clearable:"",filterable:"",size:"mini",placeholder:"è¯·é€‰æ‹©æŒ‡æ•°"},model:{value:t.formData.performanceBenchmark,callback:function(e){t.$set(t.formData,"performanceBenchmark",e)},expression:"formData.performanceBenchmark"}},t._l(t.benchmarkOptions,(function(e){return a("el-option-group",{key:"compare_index_group_"+e.label,attrs:{label:e.label}},t._l(e.options,(function(i){return a("el-option",{key:"compare_index_"+i.value,attrs:{label:i.label,value:i.value}},[a("span",{staticStyle:{float:"left"}},[t._v(t._s(i.label))]),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[t._v(t._s(e.label))])])})),1)})),1):t._e()],1),a("el-form-item",{attrs:{label:"è´¹çŽ‡ï¼š",prop:"performanceFeeRate"}},[a("el-input",{staticStyle:{width:"100px"},attrs:{type:"text",size:"mini"},model:{value:t.formData.performanceFeeRate,callback:function(e){t.$set(t.formData,"performanceFeeRate",e)},expression:"formData.performanceFeeRate"}}),t._v(" (%) ")],1)],1)],1),a("el-form-item",{attrs:{align:"center","label-width":"0"}},[a("el-badge",{attrs:{"is-dot":t.isDirty}},[a("el-button",{attrs:{type:"primary",loading:t.saving},on:{click:t.onSave}},[t._v("ç¡®å®š")])],1),a("el-button",{attrs:{type:"primary",loading:t.isLoading},on:{click:t.loadData}},[t._v("é‡ç½®")]),a("el-button",{attrs:{disabled:t.isLoading},on:{click:t.onClosed}},[t._v("å–æ¶ˆ")])],1)],1)],1)},c=[],h=(a("d9e2"),a("14d9"),a("3c65"),{components:{},name:"after_fee_setting_informal",props:{productId:{type:Number,default:null},productIds:{type:Array,default:()=&gt;[]},visible:{type:Boolean,default:!1},readOnly:Boolean},data(){let t=(t,e,a)=&gt;{e&amp;&amp;isNaN(e)?a(new Error("è¯·è¾“å…¥æœ‰æ•ˆæ•°å­—")):a()},e=(t,e,a)=&gt;{!this.formData.performanceCalcType||null!=e&amp;&amp;""!=(e+"").trim()?e&amp;&amp;isNaN(e)?a(new Error("è¯·è¾“å…¥æœ‰æ•ˆæ•°å­—")):a():a(new Error("è¯·è¾“å…¥è´¹çŽ‡"))},a=(t,e,a)=&gt;{"BENCHMARK_BASED"==e?this.formData.performanceBenchmark?this.$productService.getProductInfo(this.formData.performanceBenchmark).then(t=&gt;{let e=t.navStartDate;if(e&gt;this.productNavStartDate){let t=e||"-",i=this.productNavStartDate||"-";a(new Error(`åŸºå‡†å‡€å€¼å¼€å§‹æ—¥ï¼ˆ${t}ï¼‰æ™šäºŽäº§å“å‡€å€¼å¼€å§‹æ—¥ï¼ˆ${i}ï¼‰ï¼Œæ—&nbsp;æ³•è®¡ç®—ï¼Œè¯·å…ˆè¡¥é½åŸºå‡†å‡€å€¼ã€‚`))}else a()}):a(new Error("è¯·é€‰æ‹©åŸºå‡†")):"THRESHOLD_BASED"!=e||null!=this.formData.performanceThresholdValue&amp;&amp;!isNaN(this.formData.performanceThresholdValue)?a():a(new Error("è¯·è¾“å…¥æœ‰æ•ˆæ•°å­—"))};return{formDataRules:{managementFeeRate:[{validator:t,trigger:"change"}],performanceFeeRate:[{validator:e,trigger:"change"}],performanceCalcType:[{validator:a,trigger:"change"}]},isLoading:!1,saving:!1,productName:null,productType:null,isPublishedFund:null,productNavStartDate:null,productBenchmarkId:null,calculationMethodDetailDict:{BENCHMARK_BASED:"ä¸šç»©æ¯”è¾ƒåŸºå‡†æ³•",THRESHOLD_BASED:"é—¨æ§›æ”¶ç›ŠçŽ‡æ³•"},formData:{managementFeeRate:null,performanceCalcType:null,performanceThresholdValue:null,performanceBenchmark:null,performanceFeeRate:null},defaultFormData:{managementFeeRate:null,performanceCalcType:null,performanceThresholdValue:null,performanceBenchmark:null,performanceFeeRate:null},backupFormData:{},benchmarkOptions:[]}},computed:{title(){let t="è´¹åŽè®¾ç½®";return this.productName&amp;&amp;(t+="ï¼ˆ"+this.productName+"ï¼‰"),t},isDirty(){return JSON.stringify(this.formData)!=JSON.stringify(this.backupFormData)},paramObj(){return{visible:this.visible,productId:this.productId,productIds:this.productIds}},warningMessage(){return"æŒ‡æ•°éœ€è¦æŒ‡æ•°ç»´æŠ¤äººè®¾ç½®è´¹ç”¨ã€‚å·²å‘å¸ƒè™šæ‹Ÿç»„åˆè¯·å‘å¸ƒäººåœ¨ã€è™šæ‹Ÿç»„åˆã€‘ä¿®æ”¹ç»„åˆè´¹ç”¨è®¾ç½®ï¼Œå¹¶é‡æ–°å‘å¸ƒ"}},methods:{changePerformanceCalcType(){"BENCHMARK_BASED"==this.formData.performanceCalcType&amp;&amp;!this.formData.performanceBenchmark&amp;&amp;this.productBenchmarkId&amp;&amp;(this.formData.performanceBenchmark=this.productBenchmarkId)},onSave(){this.$refs.updateForm.validate(t=&gt;{t&amp;&amp;this.save()})},async save(){this.saving=!0;let t=o.a.cloneDeep(this.formData);t.productId=this.productId,t.productIds=this.productIds,t.performanceCalcType||(t.performanceCalcType=null),t.managementFeeRate&amp;&amp;(t.managementFeeRate/=100),t.performanceThresholdValue&amp;&amp;(t.performanceThresholdValue/=100),t.performanceFeeRate&amp;&amp;(t.performanceFeeRate/=100);let e=await this.$productService.updateAfterFeeSetting(t);this.saving=!1,this.onClosed(e)},onClosed(t){this.$emit("onClosed",t)},async loadData(){if(this.productType=null,this.productId){this.isLoading=!0;let t=await this.$productService.getProductInfo(this.productId);if(this.productName=t.productName,this.productType=t.productType,this.productNavStartDate=t.navStartDate,this.isPublishedFund=t.publishedFund,t.benchmark&amp;&amp;t.benchmark.id&amp;&amp;(this.productBenchmarkId=t.benchmark.id),t=await this.$productService.getAfterFeeSetting(this.productId),t&amp;&amp;t.value){let e=t.value;e.managementFeeRate&amp;&amp;(e.managementFeeRate*=100),e.performanceThresholdValue&amp;&amp;(e.performanceThresholdValue=Math.round(100*e.performanceThresholdValue*1e3)/1e3),e.performanceFeeRate&amp;&amp;(e.performanceFeeRate*=100),this.formData.managementFeeRate=e.managementFeeRate,this.formData.performanceCalcType=e.performanceCalcType,this.formData.performanceThresholdValue=e.performanceThresholdValue,this.formData.performanceBenchmark=e.performanceBenchmark,this.formData.performanceFeeRate=e.performanceFeeRate}else this.formData=o.a.cloneDeep(this.defaultFormData);this.isLoading=!1}else this.formData=o.a.cloneDeep(this.defaultFormData);this.backupFormData=o.a.cloneDeep(this.formData)},async loadBenchmarkGroups(){let t=["STD_MKT_INDEX","PRIVATE_FUND_MKT_INDEX","HL_INDEX","HL_STRATEGY_INDEX","MACRO_ALLOCATION_INDEX","JOINT_NAV","CUSTOMIZE","FUND_BENCHMARK"];const e=await this.$indexService.getIndexOptionItems(null,t);let a=[],i=e.filter(t=&gt;"FUND_BENCHMARK"==t.type);a.push({label:"åŸºå‡†æŒ‡æ•°",options:i});let s=e.filter(t=&gt;"STD_MKT_INDEX"==t.type);a.push({label:"æ&nbsp;‡å‡†æŒ‡æ•°",options:s});let r=e.filter(t=&gt;"PRIVATE_FUND_MKT_INDEX"==t.type);a.push({label:"ç§å‹Ÿå¸‚åœºæŒ‡æ•°",options:r});let o=e.filter(t=&gt;"HL_INDEX"==t.type);a.push({label:"ä¼˜æŠ•FOFæŒ‡æ•°",options:o});let n=e.filter(t=&gt;"HL_STRATEGY_INDEX"==t.type);a.push({label:"ä¼˜æŠ•FOFç­–ç•¥æŒ‡æ•°",options:n});let l=e.filter(t=&gt;"MACRO_ALLOCATION_INDEX"==t.type);a.push({label:"å®è§‚é…ç½®æŒ‡æ•°",options:l});let c=e.filter(t=&gt;"JOINT_NAV"==t.type);a.push({label:"æ‹¼æŽ¥å‡€å€¼",options:c});let h=e.filter(t=&gt;"CUSTOMIZE"==t.type);a.push({label:"è‡ªå®šä¹‰æŒ‡æ•°",options:h}),(this.isMutualFund||this.isMasterFund)&amp;&amp;this.product.benchmark&amp;&amp;a.unshift({label:"è¶…é¢åŸºå‡†",options:[{value:this.product.benchmark.id,label:this.product.benchmark.productShortName}]}),this.benchmarkOptions=a}},watch:{paramObj:{deep:!0,immediate:!0,handler(){this.visible&amp;&amp;this.loadData()}}},mounted(){this.loadBenchmarkGroups()}}),d=h,p=a("0c7c"),u=Object(p["a"])(d,l,c,!1,null,null,null),m=u.exports,f={components:{performanceFeeUpdate:n["a"],afterFeeSettingFormInformal:m},name:"after_fee_setting",props:{formVisible:{type:Boolean,default:!1},productId:{type:Number,default:null},productIds:{type:Array,default:()=&gt;[]},productSourceParam:{type:String},readOnly:{type:Boolean,default:!1}},data(){return{visible:!1,isLoading:!1,productName:null,productType:null,productSource:null,performanceFee:null,isPublishedFund:null,genericMutualFund:null,maintainer:null}},computed:{title(){let t="è´¹åŽè§„åˆ™è®¾ç½®";return this.productName?t+="ï¼ˆ"+this.productName+"ï¼‰":this.productIds&amp;&amp;this.productIds.length&gt;0&amp;&amp;(t+="ï¼ˆæ‰¹é‡ï¼‰"),t},paramObj(){return{formVisible:this.formVisible,productId:this.productId,productSourceParam:this.productSourceParam}},isShowComplexFeeComponent(){return("MASTER_FUND"==this.productType||"ADMIN_FORMAL"==this.productSource)&amp;&amp;!this.isPublishedFund},enableEdit(){return"INDEX"!==this.productType||(this.$store.getters.isUserSystemAdmin()||this.$store.state.userProfile.id===this.maintainer)},dialogWidth(){return this.isShowComplexFeeComponent?"1200px":"600px"}},methods:{onClosed(){this.$emit("update:formVisible",!1)},afterChangeAfterFeeSetting(t){this.$emit("afterChangeAfterFeeSetting",t),this.onClosed()},onSuccess(t){this.$emit("onSuccess",t)},async loadData(){if(this.productSource=this.productSourceParam,this.productName=null,this.productId){this.isLoading=!0;let t=await this.$productService.getProductInfo(this.productId);if(this.productName=t.productName,this.productSource=t.source,this.productType=t.productType,this.isPublishedFund=t.publishedFund,this.genericMutualFund=t.genericMutualFund,this.maintainer=t.maintainer,t=await this.$service.productService.getFeeInfo(this.productId),t){const e=t.feeItems.find(t=&gt;"PERFORMANCE_FEE"==t.type)||{};this.performanceFee={PERFORMANCE_FEE:e}}else this.performanceFee={PERFORMANCE_FEE:null};this.isLoading=!1}}},watch:{paramObj:{immediate:!0,deep:!0,handler(t){this.visible=this.formVisible,this.visible&amp;&amp;this.loadData()}}},mounted(){}},g=f,b=Object(p["a"])(g,i,s,!1,null,null,null);e["a"]=b.exports},edf3:function(t,e,a){"use strict";a("abb4")},eea0:function(t,e,a){"use strict";a("14d9");var i=a("9a0f");function s(t){if(t&amp;&amp;t.length&gt;1){let e=1,a=[];for(const{date:i,value:s}of t)e*=1+s,a.push({date:i,value:e-1});return a}return t}function r(t){let e=t;Array.isArray(t)||(e=Object.entries(t).sort((t,e)=&gt;t[0].localeCompare(e[0])));let a=0,i=[];return e.forEach(t=&gt;{if(Array.isArray(t)){const[e,s]=t;a+=+s||0,i.push([e,a])}else{const{date:e,value:s}=t;a+=+s||0,i.push([e,a])}}),i}function o(t){let e=t;Array.isArray(t)||(e=Object.entries(t).sort((t,e)=&gt;t[0].localeCompare(e[0])));let a=1,i=[];return e.forEach(t=&gt;{if(Array.isArray(t)){const[e,s]=t;a*=(+s||0)+1,i.push([e,a-1])}else{const{date:e,value:s}=t;a*=(+s||0)+1,i.push([e,a-1])}}),i}function n(t){let e=t;Array.isArray(t)||(e=Object.entries(t).sort((t,e)=&gt;t[0].localeCompare(e[0])));let a=1;return e.forEach(t=&gt;{if(Array.isArray(t)){const[e,i]=t;a*=(+i||0)+1}else{const{date:e,value:i}=t;a*=(+i||0)+1}}),a-1}function l(t,e=0){let a=t;Array.isArray(t)||(a=Object.entries(t).sort((t,e)=&gt;t[0].localeCompare(e[0])));let i=[];return a.forEach(t=&gt;{if(Array.isArray(t)){const[a,s]=t;i.push([a,s+e])}else{const{date:a,value:s}=t;i.push([a,s+e])}}),i}function c(t,e){let a=t;Array.isArray(t)||(a=Object.entries(t).sort((t,e)=&gt;t[0].localeCompare(e[0])));let i=[];return a.forEach(t=&gt;{if(Array.isArray(t)){const[a,s]=t;i.push([a,s*e])}else{const{date:a,value:s}=t;i.push([a,s*e])}}),i}function h(t,e=2,a=1){let s=t;Array.isArray(t)||(s=Object.entries(t).sort((t,e)=&gt;t[0].localeCompare(e[0])));let r=[];return s.forEach(t=&gt;{if(Array.isArray(t)){const[s,o]=t;let n=i["a"].roundNumber(o*a,e);r.push([s,n])}else{const{date:s,value:o}=t;let n=i["a"].roundNumber(o*a,e);r.push([s,n])}}),r}function d(t,e=2,a=1){let s=t;Array.isArray(t)||(s=Object.entries(t).sort((t,e)=&gt;t[0].localeCompare(e[0])));let r=[],o=null;return s.forEach(t=&gt;{if(Array.isArray(t)){const[s,n]=t;null==o&amp;&amp;(o=n);let l=i["a"].roundNumber(n/o*a,e);r.push([s,l])}else{const{date:s,value:n}=t;null==o&amp;&amp;(o=n);let l=i["a"].roundNumber(n/o*a,e);r.push([s,l])}}),r}function p(t,e=4){return h(l(o(t),1),e)}e["a"]={cumProduct:s,cumProd:n,sumUp:r,prodUp:o,multiplyBy:c,plusBy:l,rounding:h,normalizeNav:d,returnsToNav:p}},f01e:function(t,e,a){"use strict";a("935c")},f37e:function(t,e,a){"use strict";var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("span",[a("el-tooltip",{attrs:{effect:"light",placement:"top","open-delay":500}},[a("span",{attrs:{slot:"content"},slot:"content"},[a("span",{domProps:{innerHTML:t._s(t.content)}})]),a("span",[a("span",{domProps:{innerHTML:t._s(t.localContent)}})])])],1)},s=[],r={name:"see-more-tooltip",props:{content:{type:String,default:""},showLength:{type:Number,default:5}},computed:{localContent(){return this.content?this.content.length&lt;=this.showLength?this.content:this.content.substr(0,this.showLength)+"...":"-"}}},o=r,n=a("0c7c"),l=Object(n["a"])(o,i,s,!1,null,"34a27e1a",null);e["a"]=l.exports},f6c9:function(t,e,a){"use strict";a.r(e);var i=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("th-main-page",{attrs:{title:"åŸºé‡‘æ¯”è¾ƒ",id:"contentDiv",breadcrumbs:t.breadcrumbs}},[a("product-keyword-search",{staticStyle:{"margin-bottom":"12px"},on:{onSelect:t.onSelectItem},model:{value:t.keyword,callback:function(e){t.keyword=e},expression:"keyword"}}),t.isLoading?a("div",{staticClass:"product-detail"},[a("th-box",{attrs:{border:"","background-color":"#fff"}},[a("span",{staticStyle:{color:"#409eff"}},[a("i",{staticClass:"el-icon-loading"}),a("span",{staticStyle:{"margin-left":"8px"}},[t._v("æ•°æ®åŠ&nbsp;è½½ä¸­â€¦â€¦")])])])],1):t._e(),t.isReady?a("el-row",{staticClass:"product-detail",attrs:{gutter:12}},[a("el-col",{attrs:{xl:21,lg:20}},[a("th-box",{attrs:{border:"","background-color":"#fff"}},[a("product-compare-performance",{ref:"performance",attrs:{products:t.compareProducts},on:{refreshToc:t.refreshToc}}),a("el-divider"),a("analysis",{attrs:{products:t.compareProducts},on:{editBenchmark:t.editBenchmark}}),a("el-divider"),t.pureMutualFunds?a("portfolioCompare",{attrs:{products:t.compareProducts}}):t._e()],1)],1),a("el-col",{staticStyle:{position:"sticky",top:"12px"},attrs:{xl:3,lg:4}},[a("th-box",{attrs:{border:"","background-color":"#fff"}},[a("chosen-products",{on:{onCompare:t.reloadCompare}})],1),a("th-box",{staticStyle:{"margin-top":"12px"},attrs:{border:"","background-color":"#fff"}},[a("product-detail-navi",{attrs:{"is-compare":!0,toc:t.toc}})],1)],1)],1):t._e(),a("el-dialog",{attrs:{visible:t.showEditBenchmark,title:"è®¾ç½®è¶…é¢åŸºå‡†",width:"30%"},on:{"update:visible":function(e){t.showEditBenchmark=e}}},[t.showEditBenchmark?a("edit-product-benchmark",{attrs:{product:t.product},on:{onSuccess:t.onUpdateBenchmarkSuccess,onCancel:function(e){t.showEditBenchmark=!1}}}):t._e()],1)],1)},s=[],r=(a("14d9"),a("db5c")),o=a("555b"),n=a("1d0b"),l=a("40b8"),c=a("9f36"),h=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"product-detail__section"},[a("div",{staticStyle:{position:"sticky",top:"0","z-index":"20",background:"#fff","padding-bottom":"10px"}},[a("th-section",{attrs:{title:"ä¸šç»©è¡¨çŽ°",level:"1"}}),a("el-collapse",{directives:[{name:"loading",rawName:"v-loading",value:t.preparingParam,expression:"preparingParam"}],staticClass:"collapse",model:{value:t.activeName,callback:function(e){t.activeName=e},expression:"activeName"}},[a("el-collapse-item",{attrs:{name:"1"}},[a("template",{slot:"title"},[a("i",{staticClass:"el-icon-setting margin-r5"}),t._v("å‚æ•°è®¾ç½® ")]),a("div",{staticClass:"info-box-o",staticStyle:{border:"none"}},[a("div",{staticClass:"info-item"},[a("span",{staticClass:"label"},[t._v("æ¯”è¾ƒåŸºå‡†")]),a("span",{staticClass:"value"},[a("th-select-benchmarks",{staticStyle:{width:"220px"},attrs:{multiple:"",clearable:"","collapse-tags":!1,types:["INDEX","FUND"]},model:{value:t.params.benchmarkIds,callback:function(e){t.$set(t.params,"benchmarkIds",e)},expression:"params.benchmarkIds"}})],1)]),a("div",{staticClass:"info-item"},[a("span",{staticClass:"label"},[t._v("æ&nbsp;¸å¿ƒæ±&nbsp;æ¯”è¾ƒåŸºå‡†")]),a("span",{staticClass:"value"},[a("el-select",{staticStyle:{width:"180px"},attrs:{size:"mini",filterable:"",clearable:"",placeholder:"é€‰æ‹©æ&nbsp;¸å¿ƒæ±&nbsp;æ¯”è¾ƒåŸºå‡†","value-key":"strategyId"},model:{value:t.params.poolBenchmarks,callback:function(e){t.$set(t.params,"poolBenchmarks",e)},expression:"params.poolBenchmarks"}},t._l(t.poolStrategyList,(function(e,i){return a("el-option",{key:"poolBenchmark_"+i,attrs:{label:e.strategyName,value:e}},[a("span",{staticStyle:{float:"left"}},[t._v(t._s(e.strategyName))]),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[t._v(t._s(e.count))])])})),1)],1)]),a("div",{staticClass:"info-item"},[a("span",{staticClass:"label"},[t._v("æ—¶é—´é€‰æ‹©")]),a("span",{staticClass:"value"},[a("el-radio-group",{on:{change:t.onPeriodTypeChange},model:{value:t.params.period,callback:function(e){t.$set(t.params,"period",e)},expression:"params.period"}},[a("el-radio",{attrs:{label:"SINCE_INCEPTION"}},[t._v("è‡ªæˆç«‹ä»¥æ¥")]),a("el-radio",{attrs:{label:"ALIGN_START"}},[t._v("èµ·å§‹ç‚¹å¯¹é½")]),a("el-radio",{attrs:{label:"CUSTOMIZED"}},[t._v("è‡ªå®šä¹‰")])],1),a("th-date-range-picker",{directives:[{name:"show",rawName:"v-show",value:"CUSTOMIZED"===t.params.period,expression:"params.period === 'CUSTOMIZED'"}],staticStyle:{"margin-left":"4px"},attrs:{calendar:"TRADING",scale:t.dateScale,"shortcut-reset-text":"æˆç«‹ä»¥æ¥","init-date-range":t.getInitDateRange()},on:{change:t.changeDateRange},model:{value:t.dateRange,callback:function(e){t.dateRange=e},expression:"dateRange"}})],1)]),a("br"),a("div",{staticClass:"info-item",staticStyle:{"margin-left":"0px"}},[a("span",{staticClass:"label"},[t._v("è´¹åŽè®¾ç½®")]),a("span",{staticClass:"value"},[a("seeMoreTooltip",{attrs:{content:t.afterFeeSettingDesc||"--",showLength:10}}),a("el-button",{attrs:{type:"text",size:"mini"},on:{click:function(){t.afterFeeBatchSettingDialogVisible=!0}}},[t._v("è®¾ç½®")]),a("el-switch",{attrs:{size:"mini"},model:{value:t.params.showAfterFee,callback:function(e){t.$set(t.params,"showAfterFee",e)},expression:"params.showAfterFee"}})],1)]),a("div",{staticClass:"info-item"},[a("span",{staticClass:"label"},[t._v("å‡åŸºå‡† ")]),a("span",{staticClass:"value"},[a("el-switch",{attrs:{size:"mini"},model:{value:t.params.showDifference,callback:function(e){t.$set(t.params,"showDifference",e)},expression:"params.showDifference"}})],1),a("span",{directives:[{name:"show",rawName:"v-show",value:t.params.showDifference,expression:"params.showDifference"}]},[a("span",{staticClass:"label"},[t._v("åŸºå‡†")]),a("span",{staticClass:"value"},[a("th-select-benchmarks",{staticStyle:{width:"220px"},attrs:{clearable:"",types:["INDEX","FUND"]},model:{value:t.params.benchmarkId,callback:function(e){t.$set(t.params,"benchmarkId",e)},expression:"params.benchmarkId"}})],1),a("span",{staticClass:"label"},[t._v("æ˜¾ç¤ºåŽŸå§‹åºåˆ—"+t._s(t.params.normalizeVolatility?"(ç­‰æ³¢)":""))]),a("span",{staticClass:"value"},[a("el-switch",{attrs:{size:"mini"},model:{value:t.params.showRawInDifference,callback:function(e){t.$set(t.params,"showRawInDifference",e)},expression:"params.showRawInDifference"}})],1)])]),a("div",{staticClass:"info-item",staticStyle:{"margin-left":"0px"}},[a("span",{staticClass:"label"},[t._v("ç­‰æ³¢åŠ¨çŽ‡")]),a("span",{staticClass:"value"},[a("el-switch",{attrs:{size:"mini"},on:{change:t.onVolAdjustChange},model:{value:t.params.normalizeVolatility,callback:function(e){t.$set(t.params,"normalizeVolatility",e)},expression:"params.normalizeVolatility"}})],1)]),a("div",{staticClass:"info-item"},[a("span",{staticClass:"label"},[t._v("å‡€å€¼é¢‘çŽ‡ "),a("el-tooltip",{staticClass:"item",attrs:{effect:"dark",placement:"top","open-delay":500,content:"åŽŸå§‹æ˜¯æŒ‰å¯¼å…¥å‡€å€¼å±•ç¤ºåŠè®¡ç®—ï¼Œæ—¥é¢‘ã€å‘¨é¢‘æŒ‡çš„æ˜¯å¤„ç†ä¸ºæ&nbsp;‡å‡†æ—¥æˆ–å‘¨åºåˆ—å†å±•ç¤ºæˆ–è®¡ç®—ã€‚"}},[a("i",{staticClass:"el-icon-info",staticStyle:{color:"#999"}})])],1),a("span",{staticClass:"value"},[a("el-radio-group",{model:{value:t.params.valuationPeriod,callback:function(e){t.$set(t.params,"valuationPeriod",e)},expression:"params.valuationPeriod"}},[a("el-radio",{attrs:{label:null}},[t._v("åŽŸå§‹")]),a("el-radio",{attrs:{label:"DAY"}},[t._v("æ—¥é¢‘")]),a("el-radio",{attrs:{label:"WEEK"}},[t._v("å‘¨é¢‘")])],1)],1)]),a("div",{staticClass:"info-item"},[a("span",{staticClass:"label"},[t._v("å¸‚åœºçŽ¯å¢ƒ")]),a("span",{staticClass:"value"},[a("el-select",{staticStyle:{width:"210px"},attrs:{size:"mini"},model:{value:t.params.marketEnvParam.name,callback:function(e){t.$set(t.params.marketEnvParam,"name",e)},expression:"params.marketEnvParam.name"}},[a("el-option-group",[a("el-option",{attrs:{label:"å…³é—­",value:null}})],1),a("el-option-group",t._l(t.mktEnvOptions,(function(t,e){return a("el-option",{key:"mkt_"+e,attrs:{label:t,value:t}})})),1)],1),t.params.marketEnvParam.name?[a("el-select",{staticStyle:{width:"120px"},attrs:{size:"mini",placeholder:"åˆ†ä½ç±»åž‹"},model:{value:t.params.marketEnvParam.type,callback:function(e){t.$set(t.params.marketEnvParam,"type",e)},expression:"params.marketEnvParam.type"}},[a("el-option",{attrs:{label:"å…¨åŽ†å²",value:"å…¨åŽ†å²"}}),a("el-option",{attrs:{label:"è¿‘ä¸€å¹´",value:"è¿‘ä¸€å¹´"}}),a("el-option",{attrs:{label:"è¿‘ä¸‰å¹´",value:"è¿‘ä¸‰å¹´"}}),a("el-option",{attrs:{label:"å‡€å€¼åŒºé—´",value:"å‡€å€¼åŒºé—´"}})],1),a("el-select",{staticStyle:{width:"90px"},attrs:{size:"mini",placeholder:"åˆ†ä½æ•°"},model:{value:t.params.marketEnvParam.pct,callback:function(e){t.$set(t.params.marketEnvParam,"pct",e)},expression:"params.marketEnvParam.pct"}},[a("el-option",{attrs:{label:"5%",value:5}}),a("el-option",{attrs:{label:"10%",value:10}}),a("el-option",{attrs:{label:"15%",value:15}}),a("el-option",{attrs:{label:"20%",value:20}})],1)]:t._e()],2)])])],2)],1)],1),a("performance-nav",{ref:"compareNav",staticStyle:{"margin-top":"8px"},attrs:{paramObj:t.performanceNavParamObj}}),a("performance-indicator",{ref:"comparePerf",staticStyle:{"margin-top":"24px"},attrs:{performanceParams:t.performanceParams}}),a("div",{staticStyle:{"margin-top":"24px"}},[a("th-section",{attrs:{title:"å¸‚åœºæ•æ„Ÿæ€§åˆ†æž"+(t.params.showAfterFee?"ï¼ˆè´¹åŽï¼‰":"")+(t.params.showDifference&amp;&amp;t.params.benchmarkId?"ï¼ˆå‡åŸºå‡†ï¼‰":""),level:"2"},scopedSlots:t._u([{key:"title",fn:function(){return[a("legendExplain",{attrs:{title:"å¸‚åœºæ•æ„Ÿæ€§åˆ†æž",imgUrls:["/img/gongshi/sensitivityAnalysis.jpg"]}})]},proxy:!0}])},[t.params.normalizeVolatility?t._e():a("productComparePerformanceMarketSensitivityAnalysis",{ref:"marketSensitivityAnalysis",attrs:{products:t.products,benchmarks:t.benchmarks,benchmarkId:t.params.benchmarkId,"show-difference":t.params.showDifference,"valuation-period":t.params.valuationPeriod,"difference-by-id":t.params.benchmarkId||null,showAfterFee:t.params.showAfterFee,start:t.params.start,end:t.params.end}})],1)],1),t.params.normalizeVolatility?t._e():a("productCompareProfitAndLoss",{staticStyle:{"margin-top":"24px"},attrs:{paramObj:t.profitAndLossParamObj},on:{refreshToc:t.refreshToc}}),t.params.normalizeVolatility?t._e():a("performance-correlation",{ref:"compareCorr",staticStyle:{"margin-top":"24px"},attrs:{returnSeries:t.returnSeries,products:t.products,params:t.params,productDiffReturns:t.productDiffReturns}}),t.params.normalizeVolatility?t._e():a("div",{staticStyle:{"margin-top":"24px"}},[a("th-section",{attrs:{title:"ä¸šç»©æŒç»­èƒ½åŠ›",level:"2"}},[a("productComparePerformanceSustainability",{attrs:{products:t.products,start:t.params.start,end:t.params.end,showAfterFee:t.params.showAfterFee}})],1)],1),a("compare-performance-monthly",{attrs:{products:t.products,start:t.params.start,end:t.params.end,showAfterFee:t.params.showAfterFee,"valuation-period":t.params.valuationPeriod,"show-difference":t.params.showDifference,"benchmark-id":t.params.benchmarkId}}),a("after_fee_batch_setting",{attrs:{productIds:t.productIds,formVisible:t.afterFeeBatchSettingDialogVisible},on:{"update:formVisible":function(e){t.afterFeeBatchSettingDialogVisible=e},"update:form-visible":function(e){t.afterFeeBatchSettingDialogVisible=e},afterChangeAfterFeeSetting:t.afterChangeAfterFeeSetting}})],1)},d=[],p=a("84ab"),u=a.n(p),m=a("2ef0"),f=a.n(m),g=a("f37e"),b=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"product-detail__section"},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.isLoading,expression:"isLoading"}],staticClass:"chart-holder"},[a("fof-e-charts",{attrs:{option:t.option,toFile:"ä¸šç»©æŒç»­èƒ½åŠ›-æ¨ªæˆªé¢åˆ†æžæ³•",msg:t.responseMsg}}),t._m(0)],1)])},v=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("p",{staticClass:"th-descriptionnote"},[t._v(" * æ¨ªæˆªé¢åˆ†æžæ³•å°†æ&nbsp;·æœ¬æœŸåˆ’åˆ†ä¸ºé•¿åº¦ç›¸ç­‰çš„ä¸¤ä¸ªå­æœŸé—´ï¼Œåˆ†åˆ«ä¸ºè¯„ä»·æœŸä¸ŽæŒæœ‰æœŸï¼Œå¹¶æ£€éªŒè¯„ä»·æœŸå†…çš„è¶…é¢æ”¶ç›Šæ˜¯å¦ä¸ŽåŽç»­çš„æŒæœ‰æœŸå†…çš„è¶…é¢æ”¶ç›Šæœ‰æ­£ç›¸å…³å…³ç³» ã€‚ "),a("br"),t._v("* å›¾ä¸­å±•ç¤ºæ•°å€¼ä¸ºä¸¤ä¸ªæœŸé—´æ”¶ç›ŠçŽ‡å›žå½’çš„ç³»æ•° ã€‚ "),a("br"),t._v("* ç”±äºŽæ—¥æ”¶ç›ŠçŽ‡çš„ç›¸å…³æ€§ä¸ç¨³å®šï¼Œæ—¥é¢‘æ”¶ç›ŠçŽ‡ç»Ÿä¸€è½¬æ¢æˆå‘¨é¢‘æ”¶ç›ŠçŽ‡è®¡ç®—ä¸šç»©æŒç»­èƒ½åŠ›ã€‚ ")])])}],y=a("6a57"),x=a("5f35"),w=a("f65d"),D=a("9549"),S={components:{fofECharts:w["a"]},props:{products:Array,start:String,end:String},data(){return{responseMsg:null,isLoading:!1,option:null,startDate:y["a"].getYearsAgoString(1),endDate:y["a"].getNowDateString()}},methods:{async loadData(){this.isLoading=!0;let t=this.start,e=this.end;null==this.start&amp;&amp;null==this.end&amp;&amp;this.products.forEach(a=&gt;{(null==t||null!=a.perfStartDate&amp;&amp;a.perfStartDate&lt;t)&amp;&amp;(t=a.perfStartDate),(null==e||null!=a.valueAsOf&amp;&amp;a.valueAsOf&gt;e)&amp;&amp;(e=a.valueAsOf)});const a=[];this.products.forEach(i=&gt;{const s=new x["b"].CrossSectionAnalyze;s.setWindCode(i.windCode),s.setStart(t||this.startDate),s.setEnd(e||this.endDate),s.setLookBackDays(126),a.push(this.$fundEvalService.getFundEvaluationData(s.toRequestBody()))});const i=await Promise.all(a);this.buildOption(i),this.isLoading=!1},buildOption(t){if(this.responseMsg=null,t.forEach(t=&gt;{t.message&amp;&amp;(this.responseMsg=t.message)}),!this.responseMsg&amp;&amp;t&amp;&amp;t.length&gt;0){const e=new D["a"].LineChart("");t.forEach((t,a)=&gt;{const i=t.result.value||{},s=[],r=[];for(const e of Object.keys(i)){const t=i[e];s.includes(e)||s.push(e),r.push({date:e,value:t})}e.appendSeries(this.products[a].productShortName,r,null)}),this.option=e.option}else this.option=null}},computed:{dateRange(){return this.start+"_"+this.end}},watch:{products:{deep:!0,immediate:!0,handler:function(t,e){this.loadData()}},dateRange(){this.loadData()}}},C=S,A=(a("9e51"),a("0c7c")),k=Object(A["a"])(C,b,v,!1,null,"950f8fee",null),O=k.exports,E=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"product-detail__section"},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.isLoading,expression:"isLoading"}],staticClass:"chart-holder"},[a("fof-e-charts",{attrs:{option:t.option,toFile:"ä¸šç»©æŒç»­èƒ½åŠ›-äº¤å‰ç§¯æ¯”çŽ‡æ³•",msg:t.responseMsg}}),t._m(0)],1)])},_=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("p",{staticClass:"th-descriptionnote"},[t._v(" * äº¤å‰ç§¯æ¯”çŽ‡æ³•å°†æ&nbsp;·æœ¬æœŸåˆ†ä¸ºå¤šä¸ªç­‰é•¿åº¦æœŸé—´ï¼ŒæŸä¸€æœŸé—´æ”¶ç›ŠçŽ‡ä¸ºæ­£åˆ™å®šä¹‰ä¸ºWï¼Œæ”¶ç›ŠçŽ‡ä¸ºè´Ÿåˆ™å®šä¹‰ä¸ºLã€‚è¿žç»­ä¸¤ä¸ªæœŸé—´å‡ä¸ºæ­£åˆ™ä¸ºWW ã€‚ "),a("br"),t._v("* äº¤å‰ç§¯æ¯”çŽ‡å…¬å¼ä¸º"),a("span",{staticStyle:{"font-weight":"700"}},[t._v("CPR=WWÃ—LL / (WL Ã—LW)")]),t._v(" ã€‚CPRå€¼è¶Šå¤§è¯´æ˜ŽåŸºé‡‘ä¸šç»©æŒç»­èƒ½åŠ›è¶Šå¼º ã€‚ ")])])}],P={components:{fofECharts:w["a"]},props:{products:Array,start:String,end:String},data(){return{responseMsg:null,isLoading:!1,option:null,startDate:y["a"].getYearsAgoString(1),endDate:y["a"].getNowDateString()}},methods:{async loadData(){this.isLoading=!0;let t=this.start,e=this.end;null==this.start&amp;&amp;null==this.end&amp;&amp;this.products.forEach(a=&gt;{(null==t||null!=a.perfStartDate&amp;&amp;a.perfStartDate&lt;t)&amp;&amp;(t=a.perfStartDate),(null==e||null!=a.valueAsOf&amp;&amp;a.valueAsOf&gt;e)&amp;&amp;(e=a.valueAsOf)});const a=[];this.products.forEach(i=&gt;{const s=new x["b"].CrossProductRatio;s.setWindCode(i.windCode),s.setStart(t||this.startDate),s.setEnd(e||this.endDate),s.setRegressionDays(126),s.setRangeDays(21),a.push(this.$fundEvalService.getFundEvaluationData(s.toRequestBody()))});const i=await Promise.all(a);this.buildOption(i),this.isLoading=!1},buildOption(t){if(this.responseMsg=null,t.forEach(t=&gt;{t.message&amp;&amp;(this.responseMsg=t.message)}),!this.responseMsg&amp;&amp;t&amp;&amp;t.length&gt;0){const e=new D["a"].LineChart("");t.forEach((t,a)=&gt;{const i=t.result.value||{},s=[],r=[];for(const e of Object.keys(i)){const t=i[e];s.includes(e)||s.push(e),r.push({date:e,value:t})}e.appendSeries(this.products[a].productShortName,r,null)}),this.option=e.option}else this.option=null}},computed:{dateRange(){return this.start+"_"+this.end}},watch:{products:{deep:!0,immediate:!0,handler:function(t,e){this.loadData()}},dateRange(){this.loadData()}}},N=P,L=(a("8ca8"),Object(A["a"])(N,E,_,!1,null,"08320a08",null)),I=L.exports,R=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"product-detail__section"},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.isLoading,expression:"isLoading"}],staticClass:"chart-holder"},[a("fof-e-charts",{attrs:{option:t.option,toFile:"ä¸šç»©æŒç»­èƒ½åŠ›-HurstæŒ‡æ•°æ³•",msg:t.responseMsg}}),t._m(0)],1)])},M=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("p",{staticClass:"th-descriptionnote"},[t._v(" * HurstæŒ‡æ•°æ³•è®¡ç®—å‡ºçš„æ•°å€¼è®°ä¸ºHï¼Œè‹¥0.5&lt;H&lt;1åˆ™è¯´æ˜ŽåŸºé‡‘ä¸šç»©æœ‰æ­£å‘æŒç»­æ€§ï¼Œè¶ŠæŽ¥è¿‘äºŽ1è¯´æ˜ŽæŒç»­æ€§è¶Šå¼º ã€‚ "),a("br"),t._v("* è‹¥0&lt;H&lt;0.5åˆ™è¯´æ˜ŽåŸºé‡‘ä¸šç»©å…·æœ‰åè½¬å€¾å‘ï¼Œè¶ŠæŽ¥è¿‘äºŽ0åè½¬æ€§è¶Šå¼º ã€‚ ")])])}],F={components:{fofECharts:w["a"]},props:{products:Array,start:String,end:String},data(){return{responseMsg:null,isLoading:!1,option:null,startDate:y["a"].getYearsAgoString(1),endDate:y["a"].getNowDateString()}},methods:{async loadData(){this.isLoading=!0;let t=this.start,e=this.end;null==this.start&amp;&amp;null==this.end&amp;&amp;this.products.forEach(a=&gt;{(null==t||null!=a.perfStartDate&amp;&amp;a.perfStartDate&lt;t)&amp;&amp;(t=a.perfStartDate),(null==e||null!=a.valueAsOf&amp;&amp;a.valueAsOf&gt;e)&amp;&amp;(e=a.valueAsOf)});const a=[];this.products.forEach(i=&gt;{const s=new x["b"].HurstIndex;s.setWindCode(i.windCode),s.setStart(t||this.startDate),s.setEnd(e||this.endDate),s.setRegressionDays(126),a.push(this.$fundEvalService.getFundEvaluationData(s.toRequestBody()))});const i=await Promise.all(a);this.buildOption(i),this.isLoading=!1},buildOption(t){if(this.responseMsg=null,t.forEach(t=&gt;{t.message&amp;&amp;(this.responseMsg=t.message)}),!this.responseMsg&amp;&amp;t&amp;&amp;t.length&gt;0){const e=new D["a"].LineChart("");t.forEach((t,a)=&gt;{const i=t.result.value||{},s=[],r=[];for(const e of Object.keys(i)){const t=i[e];s.includes(e)||s.push(e),r.push({date:e,value:t})}e.appendSeries(this.products[a].productShortName,r,null)}),this.option=e.option}else this.option=null}},computed:{dateRange(){return this.start+"_"+this.end}},watch:{products:{deep:!0,immediate:!0,handler:function(t,e){this.loadData()}},dateRange(){this.loadData()}}},T=F,B=(a("e781"),Object(A["a"])(T,R,M,!1,null,"0e1c8c14",null)),j=B.exports,H=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("th-section",{attrs:{title:"å‡€å€¼èµ°åŠ¿",level:"2"},scopedSlots:t._u([{key:"action",fn:function(){return[a("span",{staticClass:"slot-text"},[t.enableNavDownload?a("el-button",{staticClass:"margin-l20",attrs:{icon:"el-icon-download",size:"mini",loading:t.isExporting},nativeOn:{click:function(e){return e.preventDefault(),t.onExport.apply(null,arguments)}}},[t._v(" å¯¼å‡ºåŽŸå§‹å‡€å€¼ ")]):t._e()],1)]},proxy:!0}])},[t.noMarketMsg?a("div",{staticStyle:{"font-size":"13px",padding:"12px",color:"#f6a23c","background-color":"#fdf6ec"}},[a("i",{staticClass:"el-icon-warning",staticStyle:{"padding-right":"6px","font-size":"16px"}}),a("span",[t._v("æ—¶é—´åŒºé—´è¿‡çŸ­ï¼Œæ—&nbsp;æ³•åˆ’åˆ†å¸‚åœºçŽ¯å¢ƒ")])]):t._e(),a("div",{staticStyle:{"margin-top":"12px"}},[a("div",{staticClass:"chart-holder"},[a("div",{staticStyle:{display:"flex","align-items":"center","background-color":"#f5f5f5",padding:"8px 12px",border:"none"}},[a("el-checkbox",{directives:[{name:"show",rawName:"v-show",value:!t.showDrawdown,expression:"!showDrawdown"}],attrs:{size:"mini",disabled:t.checked},on:{change:t.onRolling},model:{value:t.showRolling,callback:function(e){t.showRolling=e},expression:"showRolling"}},[t._v("æ»šåŠ¨å¹´åŒ–æ”¶ç›Šï¼ˆ4å‘¨ï¼‰ ")]),a("el-checkbox",{directives:[{name:"show",rawName:"v-show",value:!t.showDrawdown,expression:"!showDrawdown"}],attrs:{disabled:t.onLoadingMktEnvData||null==t.mktEnvData},on:{change:t.refreshChart},model:{value:t.checked,callback:function(e){t.checked=e},expression:"checked"}},[t.onLoadingMktEnvData?a("span",[a("i",{staticClass:"el-icon-loading"}),a("span",[t._v("å¸‚åœºçŽ¯å¢ƒåŠ&nbsp;è½½ä¸­â€¦â€¦")])]):a("span",[t._v("å±•ç¤ºå¸‚åœºçŽ¯å¢ƒ")])]),t.productNames?a("el-popover",{directives:[{name:"show",rawName:"v-show",value:!t.showDrawdown,expression:"!showDrawdown"}],attrs:{placement:"bottom",trigger:"click",width:"600"}},[a("div",{staticStyle:{"overflow-y":"auto","max-height":"400px","overflow-x":"hidden"}},[a("el-checkbox",{attrs:{indeterminate:t.isIndeterminate},on:{change:t.onChooseAllChange},model:{value:t.chooseAll,callback:function(e){t.chooseAll=e},expression:"chooseAll"}},[t._v("å…¨é€‰")]),a("el-row",{attrs:{gutter:10}},[a("el-checkbox-group",{staticClass:"checkboxChange",on:{change:t.refreshChart},model:{value:t.chooseProductNames,callback:function(e){t.chooseProductNames=e},expression:"chooseProductNames"}},t._l(t.productNames,(function(t,e){return a("el-col",{key:t+e,attrs:{span:8}},[a("el-checkbox",{attrs:{size:"mini",label:t}},[a("seeMoreTooltip",{attrs:{content:t,showLength:14}})],1)],1)})),1)],1)],1),a("div",{staticStyle:{color:"#409eff","font-size":"12px","margin-left":"12px","margin-top":"4px",cursor:"pointer"},attrs:{slot:"reference"},slot:"reference"},[a("i",{staticClass:"el-icon-s-fold"}),t._v("åŸºé‡‘é€‰æ‹© ")])]):t._e(),a("el-checkbox",{staticStyle:{"align-self":"center","margin-left":"auto"},attrs:{size:"mini",disabled:t.checked},on:{change:t.toggleShowDrawdown},model:{value:t.showDrawdown,callback:function(e){t.showDrawdown=e},expression:"showDrawdown"}},[t._v("æŸ¥çœ‹å›žæ’¤ ")])],1),t.checked?[a("div",{directives:[{name:"show",rawName:"v-show",value:!t.showDrawdown,expression:"!showDrawdown"}],staticStyle:{height:"20px",margin:"5px 0px 2px 15px",position:"absolute","z-index":"10"}},[a("span",{staticStyle:{"font-size":"12px",color:"#666"}},[t._v("é«˜ï¼ˆ"+t._s(t.topLabel)+"ï¼‰")]),a("div",{staticStyle:{"margin-left":"5px",width:"20px",height:"8px","background-color":"#f2b5b5",display:"inline-block"}}),a("span",{staticStyle:{"margin-left":"10px","font-size":"12px",color:"#666"}},[t._v("ä¸­ï¼ˆ"+t._s(t.middleLabel)+"ï¼‰")]),a("div",{staticStyle:{"margin-left":"5px",width:"20px",height:"8px","background-color":"#b5cdf2",display:"inline-block"}}),a("span",{staticStyle:{"margin-left":"10px","font-size":"12px",color:"#666"}},[t._v("ä½Žï¼ˆ"+t._s(t.lastLabel)+"ï¼‰")]),a("div",{staticStyle:{"margin-left":"5px",width:"20px",height:"8px","background-color":"#b5f2dc",display:"inline-block"}})]),a("fof-e-charts",{directives:[{name:"loading",rawName:"v-loading",value:t.isLoading,expression:"isLoading"}],attrs:{option:t.mktEnvChartOption,height:400,showClearButton:!1,toFile:t.enableNavDownload?"å‡€å€¼èµ°åŠ¿":null,"use-external-legend":!0}}),t.envRadarOption&amp;&amp;3==t.envRadarOption.length?a("el-row",{attrs:{gutter:24}},[a("el-col",{attrs:{span:8}},[a("fof-e-charts",{attrs:{option:t.envRadarOption[0]}})],1),a("el-col",{attrs:{span:8}},[a("fof-e-charts",{attrs:{option:t.envRadarOption[1]}})],1),a("el-col",{attrs:{span:8}},[a("fof-e-charts",{attrs:{option:t.envRadarOption[2]}})],1)],1):t._e()]:[t.showDrawdown?a("fof-e-charts",{directives:[{name:"loading",rawName:"v-loading",value:t.drawdownData.isLoading,expression:"drawdownData.isLoading"}],key:"chart1",attrs:{option:t.drawdownData.option,height:400,toFile:t.enableNavDownload?"æ”¶ç›Šå›žæ’¤":null,dialogTitle:"æ”¶ç›Šå›žæ’¤","use-external-legend":!0}}):a("fof-e-charts",{directives:[{name:"loading",rawName:"v-loading",value:t.isLoading,expression:"isLoading"}],key:"chart2",attrs:{option:t.chartOption,height:400,toFile:t.enableNavDownload?"å‡€å€¼èµ°åŠ¿":null,"data-zoom-norm":!0,"use-external-legend":!0}})]],2)])])],1)},V=[],z=(a("13d5"),a("b7ef"),a("8b55")),$=a("661d"),W=a("1d2b4"),U=a("9479"),Y=a("9a0f"),Q=a("eea0"),J=a("ede9");const X={title:{},grid:[{containLabel:!1,left:48,right:12,top:64,bottom:86}],legend:{type:"scroll",data:[],top:"0",icon:"bar",itemWidth:10,itemHeight:3},xAxis:[{type:"category",boundaryGap:!1,data:[],axisLabel:{margin:12,color:"#333",rotate:45,fontSize:10},axisLine:{lineStyle:{color:"rgba(107,107,107,0.8 )"}}}],yAxis:[{type:"value",scale:!0,axisLabel:{fontSize:10},axisLine:{show:!1},axisTick:{show:!1},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}}],tooltip:{trigger:"axis"},series:[]},K={data:[],type:"line",showSymbol:!1,symbol:"circle",lineStyle:{normal:{width:1}},animationEasing:"quadraticIn",animationDuration:1e3};var q={name:"compare-performance-nav",props:{paramObj:{type:Object,default:()=&gt;({random:null,products:[],benchmarks:[],returnSeries:[],productReturnsFeeOrAfterFee:[],benchmarkId:null,start:null,end:null,valuationPeriod:null,showDifference:null,showAfterFee:null,mktEnvParams:{}})}},components:{fofECharts:w["a"],legendExplain:U["a"],seeMoreTooltip:g["a"]},data(){return{checked:!1,isIndeterminate:!0,showDrawdown:!1,noMarketMsg:!1,drawdownData:{data:null,option:null,isLoading:!1},isExporting:!1,seriesData:[],productData:[],diffSeriesData:[],rollingSeriesData:[],benchSeriesData:[],chartOption:null,showRolling:!1,alignment:!1,isLoading:!1,isReady:!1,onLoading:!1,showReturnSeries:!1,firstDate:null,marketEnvironment:null,marketEnvData:null,topLabel:"å‰20%",middleLabel:"ä¸­60%",lastLabel:"åŽ20%",productNames:[],lastProductNames:[],chooseProductNames:[],chooseAll:!0,mktEnvData:null,mktEnvironments:null,mktEnvChartOption:null,envRadarOption:null,onLoadingMktEnvData:!1}},watch:{paramObj:{deep:!0,immediate:!0,handler(){this.loadData()}}},computed:{userAccessLevel(){return this.$store.state.userProfile?this.$store.state.userProfile.accessLevel:-1},enableNavDownload(){return this.paramObj.products&amp;&amp;this.paramObj.products.length&amp;&amp;null==this.paramObj.products.find(t=&gt;this.userAccessLevel&lt;t.classifiedLevel)},startEndDate(){if(this.paramObj.products&amp;&amp;this.paramObj.products.length){let t=null,e=null;return this.paramObj.products.forEach(a=&gt;{(null==t||null!=a.perfStartDate&amp;&amp;a.perfStartDate&lt;t)&amp;&amp;(t=a.perfStartDate),(null==e||null!=a.valueAsOf&amp;&amp;a.valueAsOf&gt;e)&amp;&amp;(e=a.valueAsOf)}),[t,e]}return null}},methods:{async loadMarketEnvData(){const{name:t,type:e,pct:a}=this.paramObj.mktEnvParams;if(null==t||null==e||null==a)return void(this.marketEnvData2=null);this.onLoadingMktEnvData=!0;let i=this.paramObj.valuationPeriod;this.paramObj.products.forEach(t=&gt;{null!=t.valuationPeriod&amp;&amp;(null==i||"DAY"==i&amp;&amp;"WEEK"==t.valuationPeriod)&amp;&amp;(i=t.valuationPeriod)});const s=this.paramObj.products.map(s=&gt;({productId:s.id,valuationPeriod:i,envNames:[t],start:this.paramObj.start,end:this.paramObj.end,type:e,pct:a,showDifference:this.paramObj.showDifference||!1,differenceById:this.paramObj.benchmarkId})),r=await Promise.all(s.map(t=&gt;this.$api.marketSensitivityEndpoint.postJson(t))),o={};this.paramObj.products.forEach((t,e)=&gt;{const a=r[e];a&amp;&amp;0===a.errorNo&amp;&amp;(o[t.productShortName||t.productName]=a.result)}),this.mktEnvData=o,this.mktEnvironments=this.getMergedMarketEnv(),this.refreshChart(),this.onLoadingMktEnvData=!1},getMergedMarketEnv(){const t=Object.values(this.mktEnvData)||[];let e=[],a=[],i=[];for(const s of t){const{environment:t}=s[this.paramObj.mktEnvParams.name]||{environment:{}};for(const[s,r]of Object.entries(t))"é«˜"!=r||e.includes(s)?"ä¸­"!=r||a.includes(s)?"ä½Ž"!=r||i.includes(s)||i.push(s):a.push(s):e.push(s);e.length&gt;1&amp;&amp;e.sort((t,e)=&gt;t.localeCompare(e)),a.length&gt;1&amp;&amp;a.sort((t,e)=&gt;t.localeCompare(e)),i.length&gt;1&amp;&amp;i.sort((t,e)=&gt;t.localeCompare(e))}return[e,a,i]},refreshChartByMktEnv(){const t=f.a.cloneDeep(X),e=[];if(this.mktEnvData&amp;&amp;Object.keys(this.mktEnvData).length&gt;0){const a=this.paramObj.mktEnvParams.name,[i,s,r]=this.mktEnvironments;let o=[];for(const{productName:u,seriesList:m}of this.seriesData){if(!this.chooseProductNames.includes(u))continue;const a=m.map(t=&gt;(o.includes(t.date)||o.push(t.date),[t.date,t.value])),i=this.getSeriesArray(a,u,this.mktEnvironments);t.series.push(...i),e.push(u)}o.length&gt;1&amp;&amp;o.sort((t,e)=&gt;t.localeCompare(e)),t.legend.data=e,t.legend.top=32,t.grid[0].bottom=24;const n=[];if(i&amp;&amp;i.length){const e=i.filter(t=&gt;o.includes(t));n.push(...e),t.series.push({name:"mark_area_"+1e16*Math.random(),type:"line",markArea:{data:[[{xAxis:e[0]},{xAxis:e[e.length-1]}]]},itemStyle:{normal:{color:"#DE4646"}}})}if(s&amp;&amp;s.length){const e=s.filter(t=&gt;o.includes(t));n.push(...e),t.series.push({name:"mark_area_"+1e16*Math.random(),type:"line",markArea:{data:[[{xAxis:e[0]},{xAxis:e[e.length-1]}]]},itemStyle:{normal:{color:"#4683DE"}}})}if(r&amp;&amp;r.length){const e=r.filter(t=&gt;o.includes(t));n.push(...e),t.series.push({name:"mark_area_"+1e16*Math.random(),type:"line",markArea:{data:[[{xAxis:e[0]},{xAxis:e[e.length-1]}]]},itemStyle:{normal:{color:"#46DEA7"}}})}t.xAxis[0].data=n,t.xAxis[0].axisLabel.show=!1;const l=[{name:"èƒœçŽ‡",min:0,max:100},{name:"ç›ˆäºæ¯”",min:-10,max:10},{name:"æ»šåŠ¨ICå‡å€¼",min:-100,max:100},{name:"å‡&nbsp;ä½•å¹³å‡æ”¶ç›Š",min:-1,max:1}],c={trigger:"item",formatter:t=&gt;{const e="&lt;p&gt;"+t.marker+"å¸‚åœºåŒ¹é…åº¦-"+t.name+"&lt;/p&gt;";let a=`&lt;table&gt;&lt;tr&gt;&lt;td&gt;èƒœçŽ‡&lt;/td&gt;&lt;td style="text-align: right; width: 100px"&gt;${t.data.value[0]} %&lt;/td&gt;&lt;/tr&gt;`;return a+=`&lt;tr&gt;&lt;td&gt;ç›ˆäºæ¯”&lt;/td&gt;&lt;td style="text-align: right; width: 100px"&gt;${t.data.value[1]}&lt;/td&gt;&lt;/tr&gt;`,a+=`&lt;tr&gt;&lt;td&gt;æ»šåŠ¨ICå‡å€¼&lt;/td&gt;&lt;td style="text-align: right; width: 100px"&gt;${t.data.value[2]||"-"} %&lt;/td&gt;&lt;/tr&gt;`,a+=`&lt;tr&gt;&lt;td&gt;å‡&nbsp;ä½•å¹³å‡æ”¶ç›Š&lt;/td&gt;&lt;td style="text-align: right; width: 100px"&gt;${t.data.value[3]||"-"} %&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;`,`&lt;div&gt;${e}${a}&lt;/div&gt;`}},h=new J["a"]("å¸‚åœºåŒ¹é…åº¦-é«˜",l,{tooltip:c}),d=new J["a"]("å¸‚åœºåŒ¹é…åº¦-ä¸­",l,{tooltip:c}),p=new J["a"]("å¸‚åœºåŒ¹é…åº¦-ä½Ž",l,{tooltip:c});for(const[t,e]of Object.entries(this.mktEnvData)){const{ic:i,pnl:s,win_ratio:r,gret:o}=e[a];h.appendData(t,{"èƒœçŽ‡":Y["a"].roundPercent(r["é«˜"],2),"ç›ˆäºæ¯”":Y["a"].roundNumber(s["é«˜"],2),"æ»šåŠ¨ICå‡å€¼":Y["a"].roundPercent(i["é«˜"],2),"å‡&nbsp;ä½•å¹³å‡æ”¶ç›Š":Y["a"].roundPercent(o["é«˜"],2)}),d.appendData(t,{"èƒœçŽ‡":Y["a"].roundPercent(r["ä¸­"],2),"ç›ˆäºæ¯”":Y["a"].roundNumber(s["ä¸­"],2),"æ»šåŠ¨ICå‡å€¼":Y["a"].roundPercent(i["ä¸­"],2),"å‡&nbsp;ä½•å¹³å‡æ”¶ç›Š":Y["a"].roundPercent(o["ä¸­"],2)}),p.appendData(t,{"èƒœçŽ‡":Y["a"].roundPercent(r["ä½Ž"],2),"ç›ˆäºæ¯”":Y["a"].roundNumber(s["ä½Ž"],2),"æ»šåŠ¨ICå‡å€¼":Y["a"].roundPercent(i["ä½Ž"],2),"å‡&nbsp;ä½•å¹³å‡æ”¶ç›Š":Y["a"].roundPercent(o["ä½Ž"],2)})}this.envRadarOption=[h.option,d.option,p.option]}this.mktEnvChartOption=t},getSeriesArray(t,e,a){let[i,s,r]=a,o=[];if(t&amp;&amp;t.length){let a=t.map(([t,e])=&gt;({[t]:e})).reduce((t,e)=&gt;Object.assign(t,e));const n=i.map(t=&gt;[t,a[t]]),l=s.map(t=&gt;[t,a[t]]),c=r.map(t=&gt;[t,a[t]]),h=f.a.cloneDeep(K);h.data=Q["a"].returnsToNav(n),h.name=e,o.push(h);const d=f.a.cloneDeep(K);d.data=Q["a"].returnsToNav(l),d.name=e,o.push(d);const p=f.a.cloneDeep(K);p.data=Q["a"].returnsToNav(c),p.name=e,o.push(p)}return o},toggleShowDrawdown(){this.showDrawdown?this.loadDrawdown():this.drawdownData.option=null},async loadDrawdown(){if(!this.showDrawdown)return;let t=this.paramObj.showDifference&amp;&amp;this.paramObj.benchmarkId?this.paramObj.benchmarkId:null;this.drawdownData.isLoading=!0;let e=this.paramObj.products.map(t=&gt;t.id),a=(this.paramObj.benchmarks||[]).map(t=&gt;t.id),i=y["a"].getAfterDateStr(this.paramObj.start,this.startEndDate&amp;&amp;2==this.startEndDate.length?this.startEndDate[0]:null),s=y["a"].getAfterDateStr(this.paramObj.end,this.startEndDate&amp;&amp;2==this.startEndDate.length?this.startEndDate[1]:null);const r=await this.$performanceService.getMaxDrawdown(e,a,i,s,this.paramObj.valuationPeriod,!1,!1,t,this.paramObj.showAfterFee,this.paramObj.showDifference&amp;&amp;this.paramObj.showRawInDifference);if(r){this.drawdownData.data=r;const t=new W["f"]("");for(const[e,a]of Object.entries(r)){const i={legendName:e};a&amp;&amp;a.length&gt;1&amp;&amp;a.sort((t,e)=&gt;t.date.localeCompare(e.date)),i.data=a,t.appendSeries(e,a,{areaStyle:{}})}this.drawdownData.option=t.option}else this.drawdownData.data=null,this.drawdownData.option=null;this.drawdownData.isLoading=!1},onExport(){this.isExporting=!0;let t={productIds:this.paramObj.products.map(t=&gt;t.id).join(",")};this.$api.navExport.get(t).then(t=&gt;{let e=t.result,a=z["b"].stringToArrayBuffer(atob(e)),i=new Blob([a],{type:"application/octet-binary"}),s=document.createElement("a");s.href=window.URL.createObjectURL(i),s.download="åŸºé‡‘å‡€å€¼_"+(new Date).toLocaleDateString()+".xlsx",s.click(),this.isExporting=!1}).catch(t=&gt;{console.log(t),this.isExporting=!1})},async loadData(){this.isLoading=!0;let t=this.paramObj.returnSeries,e=this.paramObj.productReturnsFeeOrAfterFee;this.seriesData=t,this.productData=e,await this.loadMarketEnvData(),await this.onRolling(this.showRolling),await this.loadDrawdown(),this.isLoading=!1},async loadRollingReturnSeries(t){if(t=f.a.cloneDeep(t),this.isLoading=!0,t&amp;&amp;t.length){const e=[];for(const a of t){let t=a.productId,i=a.perfStartDate;i&amp;&amp;a.seriesList&amp;&amp;a.seriesList.length&gt;0&amp;&amp;(a.seriesList=a.seriesList.filter(t=&gt;t.date&gt;=i));let s=this.paramObj.showDifference&amp;&amp;this.paramObj.benchmarkId;if(s){let e=y["a"].getAfterDateStr(this.paramObj.start,i),r=await this.$returnService.getDiffReturnSeries(t,s,e,this.paramObj.end,this.paramObj.valuationPeriod,this.paramObj.showAfterFee);a.seriesList=r||[],a.productName+="(å‡)"}const r="DAY"==a.valuationPeriod?20:4,o=await this.$returnService.getRollingReturnsBySeries(a,r);e.push(o)}this.rollingSeriesData=e}else this.rollingSeriesData=[];this.initProductNames(),this.refreshChart(),this.isLoading=!1},async onRolling(t){if(t){const t=this.productData;await this.loadRollingReturnSeries(t)}else this.rollingSeriesData=null,this.initProductNames(),this.refreshChart()},initProductNames(){let t=[];if(this.seriesData&amp;&amp;this.seriesData.length&gt;0)for(const e of this.seriesData)t.push(e.productName);if(this.rollingSeriesData&amp;&amp;this.rollingSeriesData.length&gt;0)for(const e of this.rollingSeriesData)t.push(e.productName);this.productNames=t,JSON.stringify(this.productNames)!=JSON.stringify(this.lastProductNames)&amp;&amp;(this.chooseProductNames=this.productNames),this.lastProductNames=f.a.cloneDeep(this.productNames)},onChooseAllChange(){this.chooseAll?this.chooseProductNames=this.productNames:this.chooseProductNames=[],this.refreshChart(),this.isIndeterminate=!1},refreshChart2(){let t=this.chooseProductNames.length;if(this.chooseAll=t===this.productNames.length,this.isIndeterminate=t&gt;0&amp;&amp;t&lt;this.productNames.length,this.seriesData&amp;&amp;this.seriesData.length&gt;0){const t=new W["l"]("å‡€å€¼èµ°åŠ¿");for(const e of this.seriesData)if(this.chooseProductNames.indexOf(e.productName)&gt;-1){let a=[];a=this.cumToNav(this.filterAndAppendSeries(e.seriesList,this.paramObj.start,this.paramObj.end,e.perfStartDate,this.paramObj.valuationPeriod,e.valuationPeriod)),t.appendSeries(e.productName,a,{yAxisIndex:0})}if(this.rollingSeriesData&amp;&amp;this.rollingSeriesData.length&gt;0)for(const e of this.rollingSeriesData)if(this.chooseProductNames.indexOf(e.productName)&gt;-1){let a=[];a=this.filterSeries(e.seriesList,this.paramObj.start,this.paramObj.end),t.appendSeries(e.productName,this.rounding(a,2,100),{yAxisIndex:1,areaStyle:{}})}this.chartOption=t.option}else this.chartOption=null},refreshChart(){this.checked?(this.showRolling=!1,this.refreshChartByMktEnv()):this.refreshChart2()},appendSeries(t,e){const a=this.seriesData.find(e=&gt;e.name==t);null!=a?a.series=e:this.seriesData.push({name:t,series:e})},norm(t,e=4){if(t){let a=void 0;return t.map((t,i)=&gt;{0===i&amp;&amp;(a=t.value);const s=t.date,r=Y["a"].roundNumber((t.value-a)/(1+a)*100,e);return{date:s,value:r}})}return t},rounding(t,e=2,a=1){return t&amp;&amp;t.length?t.map(t=&gt;({date:t.date,value:Y["a"].roundNumber(t.value*a,e)})):[]},normNav(t,e=4){if(t){let a=t.map(({date:t,value:e})=&gt;({date:t,value:e-1})),i=this.norm(a,e);return i.map(({date:t,value:a})=&gt;({date:t,value:Y["a"].roundNumber(a/100+1,e)}))}return t},cumToNav(t){let e=1,a=t.map((t,a)=&gt;(e*=t.value+1||1,{date:t.date,value:Y["a"].formatNumber(e,4)}));return a},filterSeries(t,e,a){return(t||[]).filter(t=&gt;(null==e||t.date&gt;=e)&amp;&amp;(null==a||t.date&lt;=a))},filterAndAppendSeries(t,e,a,i,s,r){let o=f.a.cloneDeep(this.filterSeries(t,e,a));return 0===o.length||(i&amp;&amp;o[0].date===i&amp;&amp;(o[0].value=0),null===s&amp;&amp;"WEEK"===r?o.splice(0,0,{date:y["a"].getAfterDateStr(i,$["a"].getPrevWeekend(o[0].date)),value:0}):"WEEK"===s?o.splice(0,0,{date:$["a"].getPrevWeekend(o[0].date),value:0}):o.splice(0,0,{date:$["a"].getPrevTradeDate(o[0].date),value:0})),o}},filters:{mapNavType(t){switch(t){case"nav":return"å•ä½å‡€å€¼";case"accumulatedNav":return"ç´¯ç§¯å‡€å€¼";case"adjustedNav":return"èµ‹æƒç´¯ç§¯å‡€å€¼"}return t}}},G=q,Z=(a("a7ee"),Object(A["a"])(G,H,V,!1,null,"0cb3b318",null)),tt=Z.exports,et=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:{callback:t.visibilityChanged,throttle:300},expression:"{ callback: visibilityChanged, throttle: 300 }"}]},[a("th-section",{attrs:{title:"ç›¸å…³æ€§",level:"2"},scopedSlots:t._u([{key:"action",fn:function(){return[a("span",{staticClass:"slot-text"},[t.productNames?a("el-popover",{attrs:{placement:"bottom-end",trigger:"hover",width:"300"}},[a("el-button",{staticClass:"el-icon-s-fold",staticStyle:{"font-size":"12px",float:"right"},attrs:{slot:"reference",size:"mini",type:"text"},slot:"reference"},[a("span",[t._v(" åŸºé‡‘é€‰æ‹©")])]),a("el-checkbox-group",{on:{change:t.refreshCorr},model:{value:t.chooseProductNames,callback:function(e){t.chooseProductNames=e},expression:"chooseProductNames"}},[a("p",t._l(t.productNames,(function(e,i){return a("el-checkbox",{key:"cpn_"+i,attrs:{size:"mini",label:e}},[t._v(t._s(e))])})),1)])],1):t._e()],1)]},proxy:!0}])},[t.isReady?[a("div",{staticClass:"chart-holder",staticStyle:{"margin-top":"5px"}},[this.products&amp;&amp;this.products.length&gt;10?a("fof-e-charts",{attrs:{option:t.corrOption,height:t.heatHeight,showDataView:!0,toFile:"ç›¸å…³æ€§"}}):a("fof-e-charts",{attrs:{option:t.corrOption,height:400,showDataView:!0,toFile:"ç›¸å…³æ€§"}})],1),a("div",{staticClass:"chart-holder",staticStyle:{"margin-top":"12px"}},[a("div",{staticStyle:{padding:"8px 12px","background-color":"#f5f5f5",color:"#999","font-size":"12px"}},[a("span",[t._v("æ»šåŠ¨ç›¸å…³æ€§")]),a("span",{staticStyle:{"margin-left":"24px"}},[a("el-select",{staticStyle:{width:"220px"},attrs:{size:"mini",filterable:"",placeholder:"äº§å“A","value-key":"productName"},model:{value:t.productA,callback:function(e){t.productA=e},expression:"productA"}},t._l(t.productOptions,(function(t,e){return a("el-option",{key:"pa_a_"+e,attrs:{label:t.productShortName||t.productName,value:t}})})),1),a("span",{staticStyle:{margin:"0px 12px"}},[t._v("V.S.")]),a("el-select",{staticStyle:{width:"220px"},attrs:{size:"mini",filterable:"",placeholder:"äº§å“B","value-key":"productName"},model:{value:t.productB,callback:function(e){t.productB=e},expression:"productB"}},t._l(t.productOptionsB,(function(t,e){return a("el-option",{key:"pb_b_"+e,attrs:{label:t.productShortName||t.productName,value:t}})})),1),a("el-button",{staticStyle:{"margin-left":"12px","font-size":"12px"},attrs:{size:"mini"},on:{click:t.onAddCompare}},[t._v("æ·»åŠ&nbsp;æ¯”è¾ƒ")])],1),a("el-popover",{attrs:{placement:"bottom-end",trigger:"hover",width:"300"}},[a("el-button",{staticClass:"el-icon-s-fold",staticStyle:{"font-size":"16px",float:"right","vertical-align":"middle"},attrs:{slot:"reference",size:"mini",type:"text"},slot:"reference"}),a("el-checkbox-group",{on:{change:t.refreshChart},model:{value:t.selectedRollingData,callback:function(e){t.selectedRollingData=e},expression:"selectedRollingData"}},[a("p",t._l(t.rollingData,(function(e,i){return a("el-checkbox",{key:"srd_"+i,attrs:{size:"mini",label:e.name}},[t._v(t._s(e.name))])})),1)])],1)],1),a("fof-e-charts",{attrs:{option:t.rollingOption,height:300,toFile:"æ»šåŠ¨ç›¸å…³æ€§",showClearButton:!1}}),a("p",{staticClass:"th-footnote",staticStyle:{margin:"5px 10px"}},[t._v(" * è¿™é‡ŒæŒ‡çš„æ˜¯æ»šåŠ¨20æœŸçš„ç›¸å…³æ€§ï¼›å½“åŸºé‡‘ä¸ºæ—¥é¢‘æˆ–å‘¨é¢‘æ—¶ï¼ŒæœŸæ•°åˆ†åˆ«å¯¹åº”äº¤æ˜“æ—¥ã€äº¤æ˜“å‘¨ï¼›åŸºé‡‘å»ºä»“æœŸçš„ç›¸å…³æ€§å¯èƒ½æœ‰è¾ƒå¤§æ³¢åŠ¨ã€‚ ")])],1)]:t.warningMessage?a("div",[a("el-alert",{attrs:{title:t.warningMessage,type:"warning",closable:""},on:{close:function(e){t.warningMessage=null}}})],1):a("div",{staticClass:"chart-holder"},[a("p",{staticStyle:{padding:"12px","font-size":"12px",color:"#999","letter-spacing":"1px"}},[a("i",{staticClass:"el-icon-info"}),t._v(" æš‚æ—&nbsp;ç›¸å…³æ€§æ•°æ®å±•ç¤ºï¼ ")])])],2)],1)},at=[],it={name:"product-compare-performance-correlation",components:{fofECharts:w["a"],legendExplain:U["a"]},props:{products:Array,productDiffReturns:Array,returnSeries:Array,params:Object},data(){return{isVisible:!1,lastParamObj:null,corrOption:null,rollingOption:null,height:300,heatHeight:400,isReady:!1,onLoading:!1,benchReturns:[],productA:null,productB:null,rollingData:[],selectedRollingData:[],warningMessage:null,productNames:null,dataMatrix:null,chooseProductNames:null}},computed:{paramObj(){return{products:this.products,productDiffReturns:this.productDiffReturns,returnSeries:this.returnSeries,params:this.params}},productOptions(){let t=JSON.parse(JSON.stringify(this.products));return t&amp;&amp;t.length&gt;0&amp;&amp;t.forEach(t=&gt;{this.params.showAfterFee&amp;&amp;(t.productName+="(è´¹åŽ)",t.productShortName+="(è´¹åŽ)",t.showAfterFee=!0)}),t&amp;&amp;t.length&gt;0&amp;&amp;"MUTUAL_FUND"!=t[0].productType&amp;&amp;this.productDiffReturns&amp;&amp;this.productDiffReturns.length&gt;0&amp;&amp;this.params.showDifference&amp;&amp;this.params.benchmarkId&amp;&amp;this.productDiffReturns.forEach(e=&gt;{let a=JSON.parse(JSON.stringify(e));a.isSubtractProduct=!0,a.productShortName=a.productName,this.params.showAfterFee&amp;&amp;(a.showAfterFee=!0),t.push(a)}),t},productOptionsB(){const t=this.productOptions;return this.productA?t.filter(t=&gt;t.productShortName!==this.productA.productShortName):t}},watch:{},methods:{refreshCorr(){if(this.onLoading=!0,this.chooseProductNames&amp;&amp;this.chooseProductNames.length&gt;0){let t=[],e=f.a.cloneDeep(this.chooseProductNames);for(const a of e){const i=this.productNames.indexOf(a),s=[];for(const t of e){const e=this.productNames.indexOf(t);i!=e?s.push(this.dataMatrix[i][e]):s.push(1)}t.push(s)}this.corrOption=new W["d"]("title",t,e,e,{height:300}).option,this.heatHeight=36*e.length+24+this.corrOption.grid.top+this.corrOption.grid.bottom}else this.corrOption=null;this.onLoading=!1},visibilityChanged(t,e){this.isVisible=t,this.loadData()},async loadData(t=!1){t&amp;&amp;(this.lastParamObj=Math.random().toString()),this.isVisible&amp;&amp;JSON.stringify(this.lastParamObj)!=JSON.stringify(this.paramObj)&amp;&amp;(this.lastParamObj=f.a.cloneDeep(this.paramObj),await this.calcCorrelation(this.returnSeries,this.params.start,this.params.end,this.params.valuationPeriod))},async calcCorrelation(t,e,a,i){this.isReady=!1,this.onLoading=!0;let s=f.a.cloneDeep(t);s=s.map(t=&gt;{const i=t.seriesList.filter(t=&gt;(null==e||t.date&gt;=e)&amp;&amp;(null==a||t.date&lt;=a));return Object.assign({},t,{seriesList:i})});const r=await this.$correlationService.getCorrelationBySeries(s,i);r?(this.productNames=f.a.cloneDeep(r.productNames),this.dataMatrix=f.a.cloneDeep(r.dataMatrix),this.chooseProductNames=f.a.cloneDeep(r.productNames),this.corrOption=new W["d"]("title",r.dataMatrix,r.productNames,r.productNames,{height:300}).option,this.heatHeight=36*r.productNames.length+24+this.corrOption.grid.top+this.corrOption.grid.bottom,this.isReady=!0):this.corrOption=null,this.rollingData=[],this.rollingOption=null,this.selectedRollingData=[],this.onLoading=!1},async loadRollingData(){const t=this.getSeriesName(this.productA,this.productB),e=await this.$correlationService.getRollingBySeries(this.productA,this.productB,this.params.valuationPeriod,this.params.benchmarkId);if(e){const a=Object.entries(e).map(([t,e])=&gt;({date:t,value:e[0][1]}));a&amp;&amp;a.length&gt;0?(this.rollingData.push({name:t,data:a}),this.selectedRollingData.push(t)):this.$message.warning("å‡€å€¼ä¸¤ä¸¤é‡å&nbsp;æ—¶ä¸æ»¡21æœŸï¼ˆ21æ—¥æˆ–21å‘¨ï¼‰ï¼Œæ—&nbsp;æ³•è®¡ç®—ç›¸å…³æ€§ã€‚")}this.refreshChart(),this.productA=null,this.productB=null},onAddCompare(){if(this.productA&amp;&amp;this.productB){const t=this.getSeriesName(this.productA,this.productB);if(this.rollingData.find(e=&gt;e.name==t))return void this.$message.warning("å·²å­˜åœ¨æ»šåŠ¨ç›¸å…³æ€§ç»„åˆ");this.loadRollingData()}else this.$message.warning("è¯·é€‰æ‹©äº§å“")},getSeriesName(t,e){return`${t.productName} - ${e.productName}`},refreshChart(){if(this.rollingData&amp;&amp;this.rollingData.length&gt;0){const t=new W["q"]("æ»šåŠ¨ç›¸å…³æ€§");this.selectedRollingData.forEach(e=&gt;{const a=this.rollingData.find(t=&gt;t.name==e),{name:i,data:s}=a;t.appendData(i,s)}),this.rollingOption=t.option}else this.rollingOption=null,this.selectedRollingData=[]}}},st=it,rt=(a("edf3"),Object(A["a"])(st,et,at,!1,null,"c13b3344",null)),ot=rt.exports,nt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:{callback:t.visibilityChanged,throttle:300},expression:"{ callback: visibilityChanged, throttle: 300 }"}]},[a("th-section",{attrs:{title:"ä¸šç»©æŒ‡æ&nbsp;‡",level:"2"},scopedSlots:t._u([{key:"action",fn:function(){return[a("span",{staticClass:"slot-text"},[a("el-dropdown",{attrs:{disabled:t.isExporting}},[a("span",{staticClass:"th-link-click"},[t._v("å¯¼å‡ºExcel"),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),a("el-dropdown-menu",{attrs:{slot:"dropdown"},slot:"dropdown"},[a("el-dropdown-item",[a("el-button",{staticStyle:{width:"100%","text-align":"left"},attrs:{size:"mini",type:"text"},on:{click:t.toExportData}},[t._v("å¯¼å‡ºç»“æžœ")])],1),a("el-dropdown-item",[a("el-button",{staticStyle:{width:"100%","text-align":"left"},attrs:{size:"mini",type:"text"},on:{click:t.toExportDataTransport}},[t._v("å¯¼å‡ºç»“æžœï¼ˆè¡Œåˆ—è½¬ç½®ï¼‰")])],1),a("el-dropdown-item",[a("el-button",{staticStyle:{width:"100%","text-align":"left"},attrs:{size:"mini",type:"text"},on:{click:t.toExportFlatData}},[t._v("å¯¼å‡ºç»“æžœï¼ˆåˆå¹¶å‘¨æœŸï¼‰")])],1)],1)],1)],1)]},proxy:!0}])},[t.noPerformanceMsg?a("div",{staticStyle:{"font-size":"13px",padding:"12px",color:"#f6a23c","background-color":"#fdf6ec"}},[a("i",{staticClass:"el-icon-warning",staticStyle:{"padding-right":"6px","font-size":"16px"}}),a("span",[t._v(t._s(t.noPerformanceMsg2)+"å‡€å€¼ä¸æ»¡"+t._s(t.noPerformanceMsg)+"ï¼Œæ—&nbsp;æ³•è®¡ç®—"+t._s(t.noPerformanceMsg2)+"ï¼Œè¯·é€‰æ‹©è‡ªå®šä¹‰åŒºé—´")])]):t._e(),a("el-row",{staticClass:"margin-b5 margin-t5"},[a("smart-sort",{ref:"smartSortCmp",attrs:{scene:"product.compare.performance.indicator",fieldList:t.fieldList},on:{refresh:t.refreshTableColumns}})],1),a("tf-navigator-tabs",{attrs:{items:t.periodOptions,"value-key":"label"},on:{onChange:t.refreshAndSortTableData2},model:{value:t.period,callback:function(e){t.period=e},expression:"period"}}),a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.onLoading,expression:"onLoading"}],ref:"tableDataRef",staticStyle:{"margin-top":"12px"},attrs:{border:"","highlight-current-row":"",size:"mini",data:t.tableData2,"empty-text":"æš‚æ—&nbsp;æ•°æ®","max-height":"320px"}},[a("el-table-column",{attrs:{prop:"name",label:"",width:"240",fixed:""},scopedSlots:t._u([{key:"header",fn:function(e){return[a("el-dropdown",{attrs:{size:"small","hide-on-click":!1,placement:"bottom-start"},on:{command:t.toggleIndicator,"visible-change":function(e){e||t.refreshTableData2()}}},[a("span",{staticClass:"el-dropdown-link",staticStyle:{"font-size":"12px",color:"#4d627b"}},[t._v(" æŒ‡æ&nbsp;‡"),a("i",{staticClass:"el-icon-arrow-down el-icon--right"})]),a("el-dropdown-menu",{staticStyle:{height:"200px",overflow:"auto"},attrs:{slot:"dropdown"},slot:"dropdown"},t._l(t.indicatorOptions,(function(e,i){return a("el-dropdown-item",{key:"indicator_"+i,attrs:{icon:e.chosen?"el-icon-check":"el-icon-plus",command:e.value}},[t._v(" "+t._s(e.label)+" ")])})),1)],1)]}},{key:"default",fn:function(e){return[e.row.name?[t._l(e.row.name.split("\n"),(function(e,i){return[i&gt;0?a("br"):t._e(),a("span",{key:e+"_"+i},[t._v(t._s(e)+" "),"æ—¥èƒœçŽ‡ï¼ˆ%ï¼‰"==e?a("legendExplain",{attrs:{title:"èƒœçŽ‡",content:"èƒœçŽ‡ä¸ºæ”¶ç›Šä¸ºæ­£çš„é¢‘çŽ‡ ã€‚"}}):"æœ€å¤§å›žæ’¤ï¼ˆ%ï¼‰"==e?a("legendExplain",{attrs:{title:"æœ€å¤§å›žæ’¤",content:"æœ€å¤§å›žæ’¤ä¸ºåœ¨é€‰å®šå‘¨æœŸå†…ä»»ä¸€åŽ†å²æ—¶ç‚¹å¾€åŽæŽ¨ï¼Œäº§å“å‡€å€¼èµ°åˆ°æœ€ä½Žç‚¹æ—¶çš„æ”¶ç›ŠçŽ‡å›žæ’¤å¹…åº¦çš„æœ€å¤§å€¼ ã€‚"}}):"æ”¶ç›Šå›žæ’¤æ¯”"==e?a("legendExplain",{attrs:{title:"æ”¶ç›Šå›žæ’¤æ¯”",content:"æ”¶ç›Šå›žæ’¤æ¯”=å¹´åŒ–æ”¶ç›ŠçŽ‡/æœ€å¤§å›žæ’¤ ã€‚"}}):"å¤æ™®æ¯”çŽ‡"==e?a("legendExplain",{attrs:{title:"å¤æ™®æ¯”çŽ‡",content:"å¤æ™®æ¯”çŽ‡ = (å¹´åŒ–æ”¶ç›ŠçŽ‡-æ—&nbsp;é£Žé™©åˆ©çŽ‡)/å¹´åŒ–æ³¢åŠ¨çŽ‡ ; &lt;span style='font-weight:700'&gt;è¡¨ç¤ºåŸºé‡‘æ‰¿å—ä¸€å•ä½é£Žé™©æ‰€å¾—åˆ°çš„è¶…é¢å›žæŠ¥ ã€‚&lt;/span&gt;"}}):"ä¸»åŠ¨å¤æ™®"==e?a("legendExplain",{attrs:{title:"ä¸»åŠ¨å¤æ™®",content:"ä¸»åŠ¨å¤æ™®=ï¼ˆå¹´åŒ–æ”¶ç›ŠçŽ‡-åŸºå‡†å¹´åŒ–æ”¶ç›ŠçŽ‡ï¼‰ / ï¼ˆå¹´åŒ–æ³¢åŠ¨çŽ‡-åŸºå‡†å¹´åŒ–æ³¢åŠ¨çŽ‡ï¼‰; &lt;span style='font-weight:700'&gt;ä¸»åŠ¨å¤æ™®åŸºå‡†ä¸ºè¯¥å…¬å‹ŸåŸºé‡‘çš„åŸºå‡†æŒ‡æ•° ã€‚&lt;/span&gt;"}}):"Aæ¯”çŽ‡"==e?a("legendExplain",{attrs:{title:"Aæ¯”çŽ‡",content:"æ­£æ”¶ç›ŠçŽ‡å‡å€¼ä¸Žè´Ÿæ”¶ç›ŠçŽ‡å‡å€¼çš„ç»å¯¹å€¼ä¹‹æ¯” ã€‚"}}):"Stutzer"==e?a("legendExplain",{attrs:{title:"Stutzer",content:"Stutzer = signï¼ˆå¹´åŒ–æ”¶ç›ŠçŽ‡ï¼‰*sqrtï¼ˆ2*absï¼ˆä¸»åŠ¨å¤æ™®ï¼‰ï¼‰ ; &lt;span style='font-weight:700'&gt;è¯¥æŒ‡æ&nbsp;‡è€ƒè™‘æ”¶ç›ŠçŽ‡åˆ†å¸ƒçš„ååº¦å’Œå³°åº¦å¯¹å¤æ™®æ¯”çŽ‡è¿›è¡Œè°ƒæ•´ï¼Œåœ¨æ­£æ€åˆ†å¸ƒçš„æƒ…å†µä¸‹ï¼ŒStutzeræŒ‡æ•°å’Œå¤æ™®æŒ‡æ•°çš„å€¼æ˜¯ä¸€æ&nbsp;·çš„ ã€‚&lt;/span&gt;"}}):"ç´¢æè¯ºæ¯”çŽ‡"==e?a("legendExplain",{attrs:{title:"ç´¢æè¯ºæ¯”çŽ‡",content:"ç´¢æè¯ºæ¯”çŽ‡ =ï¼ˆå¹´åŒ–æ”¶ç›ŠçŽ‡-æ—&nbsp;é£Žé™©åˆ©çŽ‡ï¼‰/ä¸‹è¡Œæ³¢åŠ¨çŽ‡ ; &lt;span style='font-weight:700'&gt;è¡¨ç¤ºåŸºé‡‘æ‰¿å—ä¸€å•ä½çš„ä¸‹è¡Œæ³¢åŠ¨æ‰€èƒ½èŽ·å¾—çš„è¶…é¢æ”¶ç›Šã€‚&lt;/span&gt;"}}):"VaR(5%,20æ—¥,åŽ†å²æ³•)(%)"==e?a("legendExplain",{attrs:{title:"VaRï¼ˆ5%,20æ—¥ï¼‰",content:"VaRï¼ˆ5%,20æ—¥ï¼‰ï¼šåœ¨20æ—¥å†…ï¼Œ5%çš„ç½®ä¿¡æ°´å¹³ä¸‹ï¼ŒåŸºé‡‘çš„æœ€å¤§å¯èƒ½æŸå¤± ã€‚"}}):"ES(5%,20æ—¥,åŽ†å²æ³•)(%)"==e?a("legendExplain",{attrs:{title:"ESï¼ˆ5%,20æ—¥ï¼‰",content:"ESï¼ˆ5%,20æ—¥ï¼‰ï¼šå½“æŠ•èµ„ç»„åˆçš„æŸå¤±è¶…è¿‡VaRé˜€å€¼æ—¶æ‰€é­å—çš„å¹³å‡æŸå¤±ç¨‹åº¦ ã€‚"}}):"è¶…é¢å¹´åŒ–æ”¶ç›Š"==e?a("legendExplain",{attrs:{title:"è¶…é¢å¹´åŒ–æ”¶ç›Š",content:"è¶…é¢å¹´åŒ–æ”¶ç›Š = åŸºé‡‘å¹´åŒ–æ”¶ç›ŠçŽ‡-æ¯”è¾ƒåŸºå‡†çš„å¹´åŒ–æ”¶ç›ŠçŽ‡ï¼Œæ¯”è¾ƒåŸºå‡†ä¸ºè¯¥å…¬å‹ŸåŸºé‡‘çš„åŸºå‡†æŒ‡æ•° ã€‚"}}):"Beta"==e?a("legendExplain",{attrs:{title:"Beta",imgUrls:["/img/gongshi/beta.png"]}}):"ç‰¹é›·è¯ºæ¯”çŽ‡"==e?a("legendExplain",{attrs:{title:"ç‰¹é›·è¯ºæ¯”çŽ‡",content:"ç‰¹é›·è¯ºæŒ‡æ•° = (æ”¶ç›ŠçŽ‡-æ—&nbsp;é£Žé™©æ”¶ç›ŠçŽ‡) / Î² ; &lt;span style='font-weight:700'&gt;è¡¨ç¤ºå•ä½ç³»ç»Ÿæ€§é£Žé™©å¯¹åº”çš„è¶…é¢æ”¶ç›Š ã€‚&lt;/span&gt;"}}):"éžç³»ç»Ÿé£Žé™©"==e?a("legendExplain",{attrs:{title:"éžç³»ç»Ÿé£Žé™©",imgUrls:["/img/gongshi/temp.png"]}}):"è©¹æ£®æŒ‡æ•°"==e?a("legendExplain",{attrs:{title:"è©¹æ£®æŒ‡æ•°",imgUrls:["/img/gongshi/Jensen.png"]}}):"å¯å†³ç³»æ•°"==e?a("legendExplain",{attrs:{title:"å¯å†³ç³»æ•°",content:"è¡¨ç¤ºè¯¥åŸºé‡‘åœ¨ç»™å®šæ—¶é—´ç”¨CAPMæ¨¡åž‹å›žå½’çš„æ‹Ÿåˆæ•ˆæžœ ã€‚"}}):t._e()],1)]}))]:t._e()]}}])}),t._l(t.tableColumns,(function(t){return a("el-table-column",{key:t,attrs:{prop:t,label:t}})}))],2)],1)],1)},lt=[],ct=a("7954"),ht=a("25ca"),dt=a("2a8d");const pt=[{value:"pvCount",label:"æœŸæ•°",chosen:!0},{value:"latestWeeklyRtn",label:"æœ€è¿‘ä¸€å‘¨æ”¶ç›Šï¼ˆ%ï¼‰",chosen:!0},{value:"rtn",label:"ç´¯è®¡æ”¶ç›ŠçŽ‡ï¼ˆ%ï¼‰",chosen:!0},{value:"annualizedReturn",label:"å¹´åŒ–æ”¶ç›ŠçŽ‡ï¼ˆ%ï¼‰",chosen:!0},{value:"alpha",label:"è¶…é¢å¹´åŒ–æ”¶ç›Š",chosen:!0},{value:"dailyWinRatio",label:"æ—¥èƒœçŽ‡ï¼ˆ%ï¼‰",chosen:!0},{value:"weeklyWinRatio",label:"å‘¨èƒœçŽ‡ï¼ˆ%ï¼‰",chosen:!0},{value:"monthlyWinRatio",label:"æœˆèƒœçŽ‡ï¼ˆ%ï¼‰",chosen:!0},{value:"maxDrawdown",label:"æœ€å¤§å›žæ’¤ï¼ˆ%ï¼‰",chosen:!0},{value:"returnDrawdownRatio",label:"æ”¶ç›Šå›žæ’¤æ¯”",chosen:!0},{value:"annualizedVolatility",label:"å¹´åŒ–æ³¢åŠ¨çŽ‡ï¼ˆ%ï¼‰",chosen:!0},{value:"annualizedDownsideDeviation",label:"ä¸‹è¡Œæ³¢åŠ¨çŽ‡ï¼ˆ%ï¼‰",chosen:!0},{value:"annualizedSharpe",label:"å¤æ™®æ¯”çŽ‡",chosen:!0},{value:"annualizedActiveSharpe",label:"ä¸»åŠ¨å¤æ™®",chosen:!0},{value:"annualizedSortino",label:"ç´¢æè¯ºæ¯”çŽ‡",chosen:!0},{value:"maxDrawdownRecoveryPeriod",label:"æœ€å¤§æ¢å¤å‘¨æœŸï¼ˆæ—¥ï¼‰",chosen:!0},{value:"VaR_HS",label:"VaR(5%,20æ—¥,åŽ†å²æ³•)(%)",chosen:!0},{value:"ES_HS",label:"ES(5%,20æ—¥,åŽ†å²æ³•)(%)",chosen:!0},{value:"VaR_MB",label:"VaR(5%,20æ—¥,æ¨¡åž‹æ³•)(%)",chosen:!0},{value:"ES_MB",label:"ES(5%,20æ—¥,æ¨¡åž‹æ³•)(%)",chosen:!0},{value:"stutzer",label:"Stutzer",chosen:!0},{value:"aratio",label:"Aæ¯”çŽ‡",chosen:!0},{value:"beta",label:"Beta",chosen:!0},{value:"jensen",label:"è©¹æ£®æŒ‡æ•°",chosen:!0},{value:"rsquared",label:"å¯å†³ç³»æ•°",chosen:!0},{value:"nonSystemRisk",label:"éžç³»ç»Ÿé£Žé™©",chosen:!0},{value:"treynor",label:"ç‰¹é›·è¯ºæ¯”çŽ‡",chosen:!0}],ut=[{value:"customized",label:"è‡ªå®šä¹‰"},{value:"sinceInception",label:"æˆç«‹ä»¥æ¥"},{value:"yearToDate",label:"ä»Šå¹´ä»¥æ¥"},{value:"oneMonth",label:"è¿‘ä¸€æœˆ"},{value:"threeMonth",label:"è¿‘ä¸‰æœˆ"},{value:"sixMonth",label:"è¿‘å…­æœˆ"},{value:"oneYear",label:"è¿‘ä¸€å¹´"}];function mt(){return 1e6*Math.random()+""}let ft=null;var gt={name:"performance-indicator",props:{performanceParams:{type:Object,default:()=&gt;{}}},components:{tfNavigatorTabs:dt["a"],legendExplain:U["a"],smartSort:ct["a"]},data(){return{isVisible:!1,lastParamObj:null,backupTableColumns:[],tableColumns:[],isExporting:!1,benchReturn:null,perfData:null,benchPerfData:null,benchDataMap:{},tableData:[],tableData2:[],seriesData:[],period:null,isCustomized:!1,indicatorOptions:pt,noPerformanceMsg:"",noPerformanceMsg2:"",onLoading:!1,fieldList:[{prop:"æœŸæ•°",label:"æœŸæ•°",type:"number"},{prop:"æœ€è¿‘ä¸€å‘¨æ”¶ç›Š",label:"æœ€è¿‘ä¸€å‘¨æ”¶ç›Š",type:"number"},{prop:"ç´¯è®¡æ”¶ç›ŠçŽ‡",label:"ç´¯è®¡æ”¶ç›ŠçŽ‡",type:"number"},{prop:"å¹´åŒ–æ”¶ç›ŠçŽ‡",label:"å¹´åŒ–æ”¶ç›ŠçŽ‡",type:"number"},{prop:"è¶…é¢å¹´åŒ–æ”¶ç›Š",label:"è¶…é¢å¹´åŒ–æ”¶ç›Š",type:"number"},{prop:"æ—¥èƒœçŽ‡",label:"æ—¥èƒœçŽ‡",type:"number"},{prop:"å‘¨èƒœçŽ‡",label:"å‘¨èƒœçŽ‡",type:"number"},{prop:"æœˆèƒœçŽ‡",label:"æœˆèƒœçŽ‡",type:"number"},{prop:"æœ€å¤§å›žæ’¤",label:"æœ€å¤§å›žæ’¤",type:"number"},{prop:"æ”¶ç›Šå›žæ’¤æ¯”",label:"æ”¶ç›Šå›žæ’¤æ¯”",type:"number"},{prop:"å¹´åŒ–æ³¢åŠ¨çŽ‡",label:"å¹´åŒ–æ³¢åŠ¨çŽ‡",type:"number"},{prop:"ä¸‹è¡Œæ³¢åŠ¨çŽ‡",label:"ä¸‹è¡Œæ³¢åŠ¨çŽ‡",type:"number"},{prop:"å¤æ™®æ¯”çŽ‡",label:"å¤æ™®æ¯”çŽ‡",type:"number"},{prop:"ä¸»åŠ¨å¤æ™®",label:"ä¸»åŠ¨å¤æ™®",type:"number"},{prop:"ç´¢æè¯ºæ¯”çŽ‡",label:"ç´¢æè¯ºæ¯”çŽ‡",type:"number"},{prop:"æœ€å¤§æ¢å¤å‘¨æœŸï¼ˆæ—¥ï¼‰",label:"æœ€å¤§æ¢å¤å‘¨æœŸï¼ˆæ—¥ï¼‰",type:"number"},{prop:"VaR(5%,20æ—¥,åŽ†å²æ³•)",label:"VaR(5%,20æ—¥,åŽ†å²æ³•)",type:"number"},{prop:"ES(5%,20æ—¥,åŽ†å²æ³•)",label:"ES(5%,20æ—¥,åŽ†å²æ³•)",type:"number"},{prop:"VaR(5%,20æ—¥,æ¨¡åž‹æ³•)",label:"VaR(5%,20æ—¥,æ¨¡åž‹æ³•)",type:"number"},{prop:"ES(5%,20æ—¥,æ¨¡åž‹æ³•)",label:"ES(5%,20æ—¥,æ¨¡åž‹æ³•)",type:"number"},{prop:"Stutzer",label:"Stutzer",type:"number"},{prop:"Aæ¯”çŽ‡",label:"Aæ¯”çŽ‡",type:"number"},{prop:"Beta",label:"Beta",type:"number"},{prop:"è©¹æ£®æŒ‡æ•°",label:"è©¹æ£®æŒ‡æ•°",type:"number"},{prop:"å¯å†³ç³»æ•°",label:"å¯å†³ç³»æ•°",type:"number"},{prop:"éžç³»ç»Ÿé£Žé™©",label:"éžç³»ç»Ÿé£Žé™©",type:"number"},{prop:"ç‰¹é›·è¯ºæ¯”çŽ‡",label:"ç‰¹é›·è¯ºæ¯”çŽ‡",type:"number"}]}},mounted(){this.period=ut[1],window.addEventListener("resize",()=&gt;{this.$refs.tableDataRef&amp;&amp;this.$refs.tableDataRef.doLayout()})},computed:{periodOptions(){return ut.filter(t=&gt;this.isCustomized||"customized"!=t.value)},paramObj(){return{performanceParams:this.performanceParams}}},methods:{sortColumns(t,e){let a=this.$refs.smartSortCmp?this.$refs.smartSortCmp.getSelectedFieldList():[];return a&amp;&amp;a.length&gt;0&amp;&amp;t.sort((t,i)=&gt;{let s=!1;for(let r of a){let a=!1,o=r.prop,n=e.find(t=&gt;t.name.includes(o));r.type||(r.type="string");let l=n[t],c=n[i];if("æœŸæ•°"==o&amp;&amp;(l=(l||"").replace("å‘¨","").replace("æ—¥","").trim(),c=(c||"").replace("å‘¨","").replace("æ—¥","").trim()),"number"==r.type?("-"==l&amp;&amp;(l=-999999),"-"==c&amp;&amp;(c=-999999),a=(l||0)-(c||0)):a=(l||"").localeCompare(c||""),"descending"==r.sortOrder&amp;&amp;(a*=-1),s=s||a,s)break}return s}),t},refreshTableColumns(){let t=[];if(this.perfData&amp;&amp;Object.keys(this.perfData).length&gt;0){const e=Object.keys(this.perfData);this.showDifference||null==this.differenceName||e.remove(this.differenceName),t.push(...e)}this.benchPerfData&amp;&amp;Object.keys(this.benchPerfData).length&gt;0&amp;&amp;t.push(...Object.keys(this.benchPerfData)),this.backupTableColumns=f.a.cloneDeep(t);let e=this.$refs.smartSortCmp?this.$refs.smartSortCmp.getSelectedFieldList():[];e&amp;&amp;e.length&gt;0?(this.tableColumns=[],this.$nextTick(()=&gt;{this.tableColumns=this.sortColumns(t,this.tableData2)})):this.tableColumns=f.a.cloneDeep(this.backupTableColumns),this.$nextTick(()=&gt;{this.$refs.tableDataRef&amp;&amp;this.$refs.tableDataRef.doLayout()})},visibilityChanged(t,e){this.isVisible=t,this.loadData()},async reloadData(){await this.loadData(!0)},async loadData(t=!1){if(t&amp;&amp;(this.lastParamObj=Math.random().toString()),!this.isVisible||JSON.stringify(this.lastParamObj)==JSON.stringify(this.paramObj))return;this.lastParamObj=f.a.cloneDeep(this.paramObj);let e=this.performanceParams;if(!e)return;const a=z["b"].uuid();ft=a,this.onLoading=!0;const{start:i,end:s}=e,r=await this.$performanceService.getDetails(e);ft==a&amp;&amp;(this.perfData=r,this.isCustomized=null!=i||null!=s,this.isCustomized?this.period=ut[0]:this.period=ut[1],this.calculateNoPerformanceMsg(),this.refreshTableData2(i,s),this.onLoading=!1,this.refreshTableColumns())},calculateNoPerformanceMsg(){this.noPerformanceMsg="",this.noPerformanceMsg2="",this.perfData&amp;&amp;Object.entries(this.perfData).forEach(([t,e])=&gt;{e&amp;&amp;Object.entries(e).forEach(([t,e])=&gt;{if("oneMonth"==t||"threeMonth"==t||"sixMonth"==t||"oneYear"==t){let a;ut.forEach(e=&gt;{e.value==t&amp;&amp;(a=e.label)}),e&amp;&amp;!e.pvCount&amp;&amp;-1==this.noPerformanceMsg2.indexOf(a)&amp;&amp;(this.noPerformanceMsg+=a.substring(1,3)+"æˆ–",this.noPerformanceMsg2+=a+"ã€")}})}),""!=this.noPerformanceMsg&amp;&amp;(this.noPerformanceMsg=this.noPerformanceMsg.substring(0,this.noPerformanceMsg.length-1)),""!=this.noPerformanceMsg2&amp;&amp;(this.noPerformanceMsg2=this.noPerformanceMsg2.substring(0,this.noPerformanceMsg2.length-1))},refreshAndSortTableData2(){this.refreshTableData2(),this.refreshTableColumns()},refreshTableData2(t,e){this.tableData2=this.getTableData(this.period)},getTableData(t){if(null==this.perfData)return[];let e=[];for(const a of this.indicatorOptions.filter(t=&gt;t.chosen)){const i={id:mt(),name:a.label};for(const e of Object.keys(this.perfData)){const s=this.perfData&amp;&amp;this.perfData[e]&amp;&amp;this.perfData[e][t.value]?this.perfData[e][t.value]:null;if(null==s)Object.assign({[e]:"-"});else{const t=this.getNameAndValue(a,s,e);Object.assign(i,t)}}e.push(i)}return e},getNameAndValue(t,e,a){if(null==e)return{name:t.label,[a]:"-"};const i=t.label;let s=e[t.value];"VaR_HS"!=t.value&amp;&amp;"ES_HS"!=t.value&amp;&amp;"VaR_MB"!=t.value&amp;&amp;"ES_MB"!=t.value||(s=e.varAndES);let r=i,o="-";if(null==s)return{name:r,[a]:"-"};switch(t.value){case"latestWeeklyRtn":const a=y["a"].formatTime(s.startDate,"YYYY/MM/DD"),n=y["a"].formatTime(s.endDate,"YYYY/MM/DD");r=`${i}\n(${a} - ${n})`,(s.rtn||0==s.rtn)&amp;&amp;(o=Y["a"].formatPercent(s.rtn,2));break;case"rtn":case"annualizedReturn":case"dailyWinRatio":case"weeklyWinRatio":case"monthlyWinRatio":case"maxDrawdown":case"annualizedVolatility":case"annualizedDownsideDeviation":case"alpha":(s||0==s)&amp;&amp;(o=Y["a"].formatPercent(s,2));break;case"annualizedSharpe":case"annualizedActiveSharpe":case"stutzer":case"annualizedSortino":case"returnDrawdownRatio":o=null!=s?s&gt;1e3?"&gt; 1000":s&lt;-1e3?"&lt; -1000":Y["a"].formatNumber2(s,2):"-";break;case"beta":case"nonSystemRisk":case"rsquared":case"jensen":case"treynor":case"aratio":(s||0==s)&amp;&amp;(o=Y["a"].formatNumber2(s,4));break;case"VaR_HS":case"ES_HS":case"VaR_MB":case"ES_MB":s=e.varAndES||{},(s[t.value]||0==s[t.value])&amp;&amp;(o=Y["a"].formatPercent(s[t.value],4));break;case"pvCount":const l=this.$constants.valuationPeriodSimple[e["pvPeriod"]];o=s+" "+l;break;default:s&amp;&amp;(o=s);break}return{name:r,[a]:o}},getNameAndNumberValue(t,e,a){if(null==e)return{name:t.label,[a]:"-"};const i=t.label;let s=e[t.value];"VaR_HS"!=t.value&amp;&amp;"ES_HS"!=t.value&amp;&amp;"VaR_MB"!=t.value&amp;&amp;"ES_MB"!=t.value||(s=e.varAndES);let r=i,o="-";if(null==s)return{name:r,[a]:"-"};switch(t.value){case"latestWeeklyRtn":const a=y["a"].formatTime(s.startDate,"YYYY/MM/DD"),n=y["a"].formatTime(s.endDate,"YYYY/MM/DD");r=`${i}\n(${a} - ${n})`,(s.rtn||0==s.rtn)&amp;&amp;(o=Y["a"].roundPercent(s.rtn,2));break;case"rtn":case"annualizedReturn":case"dailyWinRatio":case"weeklyWinRatio":case"monthlyWinRatio":case"maxDrawdown":case"annualizedVolatility":case"annualizedDownsideDeviation":case"alpha":(s||0==s)&amp;&amp;(o=Y["a"].roundPercent(s,2));break;case"annualizedSharpe":case"annualizedActiveSharpe":case"stutzer":case"annualizedSortino":case"returnDrawdownRatio":o=null!=s?s&gt;1e3?"&gt; 1000":s&lt;-1e3?"&lt; -1000":Y["a"].roundNumber(s,2):"-";break;case"beta":case"nonSystemRisk":case"rsquared":case"jensen":case"treynor":case"aratio":(s||0==s)&amp;&amp;(o=Y["a"].roundNumber(s,4));break;case"VaR_HS":case"ES_HS":case"VaR_MB":case"ES_MB":s=e.varAndES||{},(s[t.value]||0==s[t.value])&amp;&amp;(o=Y["a"].roundPercent(s[t.value],4));break;case"pvCount":const l=this.$constants.valuationPeriodSimple[e["pvPeriod"]];o=s+" "+l;break;default:s&amp;&amp;(o=s);break}return{name:r,[a]:o}},toggleIndicator(t){let e=this.indicatorOptions.find(e=&gt;e.value==t);e.chosen=!e.chosen},toExportData_bk(){this.isExporting=!0;try{const t=ht["utils"].book_new(),e="ä¸šç»©æŒ‡æ&nbsp;‡.xlsx";this.periodOptions.forEach(e=&gt;{let a=this.getTableData(e)||[],i=this.sortColumns(this.tableColumns,a),s=[["æŒ‡æ&nbsp;‡",...i]];a.forEach(t=&gt;{let e=[t.name];i.forEach(a=&gt;{e.push(t[a])}),s.push(e)});const r=ht["utils"].aoa_to_sheet(s);ht["utils"].book_append_sheet(t,r,e.label)}),ht["writeFile"](t,e)}catch(t){console.log("debug: error: ",t)}this.isExporting=!1},toExportData(){const t="ä¸šç»©æŒ‡æ&nbsp;‡.xlsx";if(this.perfData){this.isExporting=!0;const e=Object.keys(this.perfData),a=ht["utils"].book_new(),i=this.indicatorOptions.filter(t=&gt;t.chosen);for(const t of this.periodOptions){const s=[["",...e]];i.forEach(a=&gt;{const i=e.map(e=&gt;this.getNameAndNumberValue(a,this.perfData[e][t.value],e)[e]);s.push([a.label,...i])});const r=ht["utils"].aoa_to_sheet(s);ht["utils"].book_append_sheet(a,r,t.label)}ht["writeFile"](a,t),this.isExporting=!1}},toExportDataTransport(){const t="ä¸šç»©æŒ‡æ&nbsp;‡.xlsx";if(this.perfData){this.isExporting=!0;const e=Object.entries(this.perfData)||[],a=ht["utils"].book_new(),i=this.indicatorOptions.filter(t=&gt;t.chosen),s=i.map(t=&gt;t.label);for(const t of this.periodOptions){const r=[["äº§å“",...s]],o=e.map(([e,a])=&gt;{const s=[e];return a&amp;&amp;a[t.value]&amp;&amp;i.forEach(i=&gt;{const r=this.getNameAndNumberValue(i,a[t.value],e);s.push(r[e])}),s});r.push(...o);const n=ht["utils"].aoa_to_sheet(r);ht["utils"].book_append_sheet(a,n,t.label)}ht["writeFile"](a,t),this.isExporting=!1}},toExportFlatData(){const t="ä¸šç»©æŒ‡æ&nbsp;‡-åˆå¹¶å‘¨æœŸ.xlsx";if(this.perfData){this.isExporting=!0;const e=Object.entries(this.perfData)||[],a=ht["utils"].book_new(),i=this.indicatorOptions.filter(t=&gt;t.chosen),s=i.map(t=&gt;t.label),r=[["äº§å“"]];for(const t of s)for(const e of this.periodOptions)r[0].push(t+"("+e.label+")");e.map(([t,e])=&gt;{const a=[t];i.forEach(i=&gt;{for(const s of this.periodOptions){let r="-";if(e&amp;&amp;e[s.value]){const a=this.getNameAndNumberValue(i,e[s.value],t);r=a[t]||"-"}a.push(r)}}),r.push(a)});const o=ht["utils"].aoa_to_sheet(r);ht["utils"].book_append_sheet(a,o),ht["writeFile"](a,t),this.isExporting=!1}}},watch:{paramObj:{deep:!0,immediate:!0,handler(t){this.loadData()}}}},bt=gt,vt=(a("3207"),Object(A["a"])(bt,nt,lt,!1,null,"5f1d779d",null)),yt=vt.exports,xt=a("4adc"),wt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:{callback:t.visibilityChanged,throttle:300},expression:"{ callback: visibilityChanged, throttle: 300 }"}]},[a("th-section",{attrs:{title:"ä¸åŒæŒæœ‰æœŸå¹´åŒ–æ”¶ç›Š",level:"2"},scopedSlots:t._u([{key:"action",fn:function(){return[a("span",{staticClass:"slot-text"},[a("el-select",{staticStyle:{width:"100px"},attrs:{size:"mini"},on:{change:t.buildOption},model:{value:t.period,callback:function(e){t.period=e},expression:"period"}},t._l(t.periodList,(function(t,e){return a("el-option",{key:"period_"+e,attrs:{label:t,value:t}})})),1)],1)]},proxy:!0}])},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.onLoading,expression:"onLoading"}]},[t.optionSeries&amp;&amp;t.optionSeries.length&gt;0?[a("div",[a("FOFECharts",{attrs:{option:t.navOption,height:400,showClearButton:!1,showBigPicture:!0,toFile:"ä¸åŒæŒæœ‰æœŸå¹´åŒ–æ”¶ç›Š"}})],1),a("div",[a("el-table",{staticClass:"th-el-table",staticStyle:{width:"100%"},attrs:{"highlight-current-row":"",border:"",size:"mini","header-row-class-name":"hr-table-header",data:t.tableData}},[a("el-table-column",{attrs:{prop:"productName",label:"äº§å“åç§°","show-overflow-tooltip":"","min-width":"300"}}),a("el-table-column",{attrs:{prop:"max",label:"æœ€å¤§å€¼","show-overflow-tooltip":"",formatter:t.formatPercent,"min-width":"100"}}),a("el-table-column",{attrs:{prop:"min",label:"æœ€å°å€¼","show-overflow-tooltip":"",formatter:t.formatPercent,"min-width":"100"}}),a("el-table-column",{attrs:{prop:"avg",label:"å¹³å‡å€¼","show-overflow-tooltip":"",formatter:t.formatPercent,"min-width":"100"}}),a("el-table-column",{attrs:{prop:"medium",label:"ä¸­ä½æ•°","show-overflow-tooltip":"",formatter:t.formatPercent,"min-width":"100"}})],1)],1),a("div",{staticStyle:{height:"40px","line-height":"40px","margin-top":"10px"}},[a("h2",{staticClass:"section-sub-header",staticStyle:{float:"left"},attrs:{id:"pa-p-profit-forecast"}},[t._v(" ç›ˆåˆ©é¢„æµ‹ ")])]),a("el-row",{staticStyle:{"margin-top":"10px"}},[a("FOFECharts",{attrs:{option:t.barOption,height:t.barOptionHeight,showClearButton:!1,showBigPicture:!0}})],1),a("el-row",{staticStyle:{"margin-top":"10px"}},[a("el-table",{staticClass:"th-el-table",staticStyle:{width:"100%"},attrs:{"highlight-current-row":"",border:"",size:"mini","header-row-class-name":"hr-table-header",data:t.profitForecastPercentList}},[a("el-table-column",{attrs:{prop:"productName",label:"äº§å“åç§°","show-overflow-tooltip":"","min-width":"300"}}),a("el-table-column",{attrs:{prop:"&lt;-5%",label:"&lt;-5%","show-overflow-tooltip":"","min-width":"100"}}),a("el-table-column",{attrs:{prop:"-5~-2%",label:"-5~-2%","show-overflow-tooltip":"","min-width":"100"}}),a("el-table-column",{attrs:{prop:"-2~0%",label:"-2~0%","show-overflow-tooltip":"","min-width":"100"}}),a("el-table-column",{attrs:{prop:"0~2%",label:"0~2%","show-overflow-tooltip":"","min-width":"100"}}),a("el-table-column",{attrs:{prop:"2~5%",label:"2~5%","show-overflow-tooltip":"","min-width":"100"}}),a("el-table-column",{attrs:{prop:"&gt;5%",label:"&gt;5%","show-overflow-tooltip":"","min-width":"100"}}),a("el-table-column",{attrs:{prop:"äºæŸæ¦‚çŽ‡",label:"äºæŸæ¦‚çŽ‡","show-overflow-tooltip":"","min-width":"100"}}),a("el-table-column",{attrs:{prop:"ç›ˆåˆ©æ¦‚çŽ‡",label:"ç›ˆåˆ©æ¦‚çŽ‡","show-overflow-tooltip":"","min-width":"100"}})],1)],1)]:a("div",{staticStyle:{width:"100%",display:"table","padding-bottom":"20px","text-align":"center","letter-spacing":"2px",height:"300px"}},[a("div",{staticStyle:{"vertical-align":"middle",height:"300px",display:"table-cell"}},[a("svg",{staticClass:"icon-wushuju",attrs:{"aria-hidden":"true"}},[a("use",{attrs:{"xlink:href":"#icon-zanwuzhuzhuangtu"}})]),a("div",[a("p",{staticClass:"chartFontStyle"},[t._v(" æ‰€é€‰æ—¶é—´åŒºé—´å°äºŽ"+t._s(t.period)+"ï¼Œæ—&nbsp;æ³•è®¡ç®—ç›ˆåˆ©åŠäºæŸ ")])])])])],2)])],1)},Dt=[],St=a("f2d9");const Ct={tooltip:{trigger:"axis",axisPointer:{animation:!1},formatter:function(t){let e=t[0].name+"&lt;br&gt;";for(let a=0;a&lt;t.length;a++){let i=t[a].value[1];e+=t[a].marker,e+=t[a].seriesName+"ï¼š"+i+" %&lt;br&gt;"}return e}},dataZoom:{show:!0,start:0,end:100,height:10,left:100,right:100,bottom:12,type:"slider",filterMode:"weakFilter",backgroundColor:"#e2e2e2",showDataShadow:!1,borderColor:"#fff",handleColor:"#409eff",handleIcon:"path://M725.725 527.476c0 122.054-98.994 221.050-221.050 221.050-122.054 0-220.941-98.994-220.941-221.050 0-122.054 98.887-221.050 220.941-221.050 122.054 0 221.050 98.994 221.050 221.050zM504.721 121.757c-223.731 0-405.74 182.009-405.74 405.74s182.009 405.74 405.74 405.74c223.731 0 405.74-182.009 405.74-405.74 0-223.731-182.009-405.74-405.74-405.74M504.721 993.296c-98.243 0-189.516-30.567-264.807-82.8-85.909-59.525-150.903-147.259-181.579-249.793-12.656-42.257-19.412-86.981-19.412-133.206 0-78.403 19.412-152.3 53.733-217.187 34.428-64.887 83.658-120.767 143.184-163.025 75.935-53.948 168.816-85.589 268.884-85.589 83.013 0 161.095 21.772 228.665 60.062 85.482 48.37 154.337 123.019 195.309 212.897 26.919 58.775 41.828 124.094 41.828 192.839 0 91.595-26.599 177.183-72.503 249.363-42.686 67.141-102.107 122.591-172.247 160.558-65.853 35.609-141.145 55.879-221.050 55.879z",handleSize:15,fillerColor:"#d4e7ff"},grid:{right:"36px",left:"36px",top:"36px",bottom:"72px",containLabel:!0},legend:{type:"scroll",data:[],bottom:"36px",selected:{"å…¶ä»–":!1}},xAxis:{type:"category",boundaryGap:!1,splitLine:{show:!0},scale:!0,axisLabel:{show:!0},data:[]},yAxis:{type:"value",scale:!0,axisLabel:{formatter:"{value} %"}},series:[]},At={title:{text:"",show:!1},tooltip:{trigger:"axis",axisPointer:{type:"shadow"}},legend:{type:"scroll",data:[]},xAxis:{type:"value",name:"æœŸ",splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}},yAxis:{type:"category",data:[],inverse:!0,axisLabel:{interval:0},splitLine:{show:!0,lineStyle:{color:"rgba(131,101,101,0.2)"}}},series:[]};var kt={components:{jsonExcel:St["a"],FOFECharts:w["a"]},props:{paramObj:{type:Object,default:()=&gt;({random:null,products:[],start:null,end:null,returnSeries:[],showAfterFee:null,valuationPeriod:null})}},data(){return{isVisible:!1,lastParamObj:null,start:null,end:null,productId:null,navOption:null,resultMap:null,onLoading:!1,optionSeries:[],period:"3ä¸ªæœˆ",periodList:["3ä¸ªæœˆ","6ä¸ªæœˆ","12ä¸ªæœˆ","24ä¸ªæœˆ"],profitProbability:0,lossProbability:0,barOption:null,tableData:[],profitForecastPercentList:[],barOptionHeight:250}},methods:{formatPercent(t,e,a){return null!=a?(Y["a"].formatPercent(a,2)||"-")+" %":"-"},visibilityChanged(t,e){this.isVisible=t,this.loadData()},async loadData(t=!1){t&amp;&amp;(this.lastParamObj=Math.random().toString()),this.isVisible&amp;&amp;JSON.stringify(this.lastParamObj)!=JSON.stringify(this.paramObj)&amp;&amp;(this.lastParamObj=f.a.cloneDeep(this.paramObj),await this.loadSeries(this.paramObj.returnSeries))},async loadSeries(t){let e,a;this.start=this.paramObj.start,this.end=this.paramObj.end;let i=[];this.paramObj.products.forEach(s=&gt;{(!e||e&gt;s.perfStartDate)&amp;&amp;(e=s.perfStartDate),(!a||a&lt;s.valueAsOf)&amp;&amp;(a=s.valueAsOf),t.forEach(t=&gt;{if(s.id==t.productId){let e=this.paramObj.valuationPeriod?this.paramObj.valuationPeriod:s.valuationPeriod,a={productId:s.id,productName:t.productName,valuationPeriod:e,perfStartDate:t.perfStartDate,seriesList:t.seriesList,rank:t.rank};i.push(a)}})}),i.sort((t,e)=&gt;t.rank-e.rank);let s=this.start?this.start:e,r=this.end?this.end:a;if(i.length&gt;0&amp;&amp;s&amp;&amp;r){this.onLoading=!0;let t=f.a.cloneDeep(i);t.forEach(t=&gt;{t.seriesList=t.seriesList.filter(t=&gt;t.date&gt;=s&amp;&amp;t.date&lt;=r),t.perfStartDate&amp;&amp;(t.seriesList=t.seriesList.filter(e=&gt;e.date&gt;=t.perfStartDate))});let e=await this.$api.profitAndLossByIdsEndPoint.postJson(t);this.resultMap=e.result}else this.resultMap=null,this.optionSeries=[];this.period="3ä¸ªæœˆ",this.periodList=["3ä¸ªæœˆ","6ä¸ªæœˆ","12ä¸ªæœˆ","24ä¸ªæœˆ"],this.buildOption()},buildOption(){if(this.optionSeries=[],this.tableData=[],this.navOption=null,this.resultMap&amp;&amp;Object.keys(this.resultMap).length&gt;0){const t=[],e=[],a=[];for(const[i,s]of Object.entries(this.resultMap)){let r,o=s[this.period];if(o&amp;&amp;o.length&gt;0){const s=o.map(t=&gt;[t.date,Y["a"].formatPercent(t.value,2)]),r=o.map(t=&gt;t.date);a.push(...r),t.push(i),e.push({name:i,type:"line",symbol:"circle",symbolSize:1,showAllSymbol:!0,data:s,lineStyle:{}})}if("3ä¸ªæœˆ"==this.period&amp;&amp;(r="three"),"6ä¸ªæœˆ"==this.period&amp;&amp;(r="six"),"12ä¸ªæœˆ"==this.period&amp;&amp;(r="twelve"),"24ä¸ªæœˆ"==this.period&amp;&amp;(r="twentyFour"),"è¡¨æ&nbsp;¼"in s){let t={productName:i,max:s["è¡¨æ&nbsp;¼"][0][r],min:s["è¡¨æ&nbsp;¼"][1][r],avg:s["è¡¨æ&nbsp;¼"][2][r],medium:s["è¡¨æ&nbsp;¼"][3][r]};this.tableData.push(t)}}if(t.length&gt;0){this.optionSeries=e;const i=f.a.cloneDeep(Ct);i.series=e,i.legend.data=t,i.xAxis.data=Array.from(new Set(a)).sort(),this.navOption=i,this.buildProfitForecast()}}this.$emit("refreshToc"),this.onLoading=!1},buildProfitForecast(){this.profitForecastPercentList=[];const t=[],e=f.a.cloneDeep(At);let a=["&lt;-5%","-5~-2%","-2~0%","0~2%","2~5%","&gt;5%"];for(const[i,s]of Object.entries(this.resultMap)){let a=[0,0,0,0,0,0],r=[0,0,0,0,0,0],o=s[this.period];o.forEach(t=&gt;{t.value&lt;-.05?a[0]+=1:t.value&gt;=-.05&amp;&amp;t.value&lt;-.02?a[1]+=1:t.value&gt;=-.02&amp;&amp;t.value&lt;0?a[2]+=1:t.value&gt;=0&amp;&amp;t.value&lt;.02?a[3]+=1:t.value&gt;=.02&amp;&amp;t.value&lt;.05?a[4]+=1:t.value&gt;=.05&amp;&amp;(a[5]+=1)});for(let t=0;t&lt;a.length;t++)r[t]=this.formatPercent(null,null,a[t]/o.length);t.push(i);let n=[[a[0],"&lt;-5%"],[a[1],"-5~-2%"],[a[2],"-2~0%"],[a[3],"0~2%"],[a[4],"2~5%"],[a[5],"&gt;5%"]],l={name:i,type:"bar",showAllSymbol:!0,data:n,label:{normal:{show:!1,position:"right"}},barMaxWidth:"18px"};e.series.push(l);let c={productName:i,"&lt;-5%":r[0],"-5~-2%":r[1],"-2~0%":r[2],"0~2%":r[3],"2~5%":r[4],"&gt;5%":r[5]};c["äºæŸæ¦‚çŽ‡"]=this.formatPercent(null,null,(a[0]+a[1]+a[2])/o.length),c["ç›ˆåˆ©æ¦‚çŽ‡"]=this.formatPercent(null,null,(a[3]+a[4]+a[5])/o.length),this.profitForecastPercentList.push(c)}this.barOptionHeight=60*(this.profitForecastPercentList.length-2)+250,e.yAxis.data=a,e.legend.data=t,this.barOption=e},formatPercentage(t,e,a){return a?Y["a"].formatPercent(a,2):"-"},formatNumber(t,e,a){return a?Y["a"].formatNumber2(a,2):"-"}},computed:{forecastMsg(){let t="ä»»æ„æ—¶åˆ»ä¹°å…¥å¹¶æŒæœ‰";return"3ä¸ªæœˆ"==this.period?t+="3ä¸ªæœˆ":"6ä¸ªæœˆ"==this.period?t+="6ä¸ªæœˆ":t+="12ä¸ªæœˆ",t+="ï¼Œç›ˆåˆ©"+(this.profitForecastList[3]+this.profitForecastList[4]+this.profitForecastList[5])+"æœŸï¼Œæ¦‚çŽ‡ä¸º"+this.profitProbability+"%",t+="ï¼ŒäºæŸ"+(this.profitForecastList[0]+this.profitForecastList[1]+this.profitForecastList[2])+"æœŸï¼Œæ¦‚çŽ‡ä¸º"+this.lossProbability+"%",t}},mounted(){},watch:{paramObj:{deep:!0,immediate:!0,handler(t){this.loadData()}}}},Ot=kt,Et=(a("d0cc"),Object(A["a"])(Ot,wt,Dt,!1,null,"6c1c4b64",null)),_t=Et.exports,Pt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:{callback:t.visibilityChanged,throttle:300},expression:"{ callback: visibilityChanged, throttle: 300 }"}]},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.onLoading,expression:"onLoading"}]},[a("tf-navigator-tabs",{staticStyle:{"margin-top":"12px","margin-bottom":"15px"},attrs:{items:t.modeOptions,"value-key":"label"},on:{onChange:t.loadSeries},model:{value:t.mode,callback:function(e){t.mode=e},expression:"mode"}}),"æ¨ªæˆªé¢åˆ†æžæ³•"==t.mode.value?a("div",{staticClass:"info-box-o margin-t10"},[t._m(0),t._l(t.productArray,(function(e,i){return a("div",{key:"sel_"+i,staticClass:"info-item"},[a("span",{staticClass:"label"},[t._v(t._s(e.productName))]),a("span",{staticClass:"value"},[a("el-select",{staticStyle:{width:"300px"},attrs:{size:"mini","value-key":"id",filterable:""},on:{change:t.computeIndexId1NotExist},model:{value:t.indexId1[i],callback:function(e){t.$set(t.indexId1,i,e)},expression:"indexId1[index]"}},t._l(t.indexList[i],(function(e){return a("el-option-group",{key:i+"_æ¨ªæˆªé¢_"+e.label,attrs:{label:e.label}},t._l(e.options,(function(s){return a("el-option",{key:i+"_æ¨ªæˆªé¢_sub_"+s.id,attrs:{label:s.value,value:s.id}},[a("span",{staticStyle:{float:"left"}},[t._v(t._s(s.value))]),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[t._v(t._s(e.label))])])})),1)})),1)],1)])})),a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:t.loadSeries}},[t._v("å¼€å§‹åˆ†æž")])],2):t._e(),"äº¤å‰ç§¯æ¯”çŽ‡æ³•"==t.mode.value?a("div",{staticClass:"info-box-o margin-t10"},[t._m(1),t._l(t.productArray,(function(e,i){return a("div",{key:"sel_"+i,staticClass:"info-item"},[a("span",{staticClass:"label"},[t._v(t._s(e.productName))]),a("span",{staticClass:"value"},[a("el-select",{staticStyle:{width:"300px"},attrs:{size:"mini","value-key":"id"},on:{change:t.computeIndexId2NotExist},model:{value:t.indexId2[i],callback:function(e){t.$set(t.indexId2,i,e)},expression:"indexId2[index]"}},t._l(t.indexList[i],(function(e){return a("el-option-group",{key:i+"_äº¤å‰ç§¯_"+e.label,attrs:{label:e.label}},t._l(e.options,(function(s){return a("el-option",{key:i+"_äº¤å‰ç§¯_sub_"+s.id,attrs:{label:s.value,value:s.id}},[a("span",{staticStyle:{float:"left"}},[t._v(t._s(s.value))]),a("span",{staticStyle:{float:"right",color:"#8492a6","font-size":"13px"}},[t._v(t._s(e.label))])])})),1)})),1)],1)])})),a("el-button",{attrs:{size:"mini",type:"primary"},on:{click:t.loadSeries}},[t._v("å¼€å§‹åˆ†æž")])],2):t._e(),t.indexId1NotExist&amp;&amp;"æ¨ªæˆªé¢åˆ†æžæ³•"==t.mode.value||t.indexId2NotExist&amp;&amp;"äº¤å‰ç§¯æ¯”çŽ‡æ³•"==t.mode.value?a("div",[a("el-alert",{attrs:{title:"è¯·å…ˆé€‰æ‹©æ¯”è¾ƒåŸºå‡†",type:"warning",closable:!1}})],1):t._e(),t.errorMsg?a("div",{staticClass:"th-empty th-chart-border"},[a("svg",{staticClass:"icon-wushuju",attrs:{"aria-hidden":"true"}},[a("use",{attrs:{"xlink:href":"#icon-zanwuzhuzhuangtu"}})]),a("div",[a("p",{staticClass:"chartFontStyle"},[t._v(t._s(t.errorMsg))])])]):[a("FOFECharts",{attrs:{option:t.navOption,height:300,showClearButton:!1,showBigPicture:!0,toFile:t.mode.value}})]],2)])},Nt=[function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"info-item"},[a("span",{staticClass:"label"},[t._v(" æ¯”è¾ƒåŸºå‡†ï¼š")])])},function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{staticClass:"info-item"},[a("span",{staticClass:"label"},[t._v(" æ¯”è¾ƒåŸºå‡†ï¼š")])])}];const Lt={tooltip:{trigger:"axis",axisPointer:{animation:!1}},dataZoom:{show:!0,start:0,end:100,height:10,left:100,right:100,bottom:12,type:"slider",filterMode:"weakFilter",backgroundColor:"#e2e2e2",showDataShadow:!1,borderColor:"#fff",handleColor:"#409eff",handleIcon:"path://M725.725 527.476c0 122.054-98.994 221.050-221.050 221.050-122.054 0-220.941-98.994-220.941-221.050 0-122.054 98.887-221.050 220.941-221.050 122.054 0 221.050 98.994 221.050 221.050zM504.721 121.757c-223.731 0-405.74 182.009-405.74 405.74s182.009 405.74 405.74 405.74c223.731 0 405.74-182.009 405.74-405.74 0-223.731-182.009-405.74-405.74-405.74M504.721 993.296c-98.243 0-189.516-30.567-264.807-82.8-85.909-59.525-150.903-147.259-181.579-249.793-12.656-42.257-19.412-86.981-19.412-133.206 0-78.403 19.412-152.3 53.733-217.187 34.428-64.887 83.658-120.767 143.184-163.025 75.935-53.948 168.816-85.589 268.884-85.589 83.013 0 161.095 21.772 228.665 60.062 85.482 48.37 154.337 123.019 195.309 212.897 26.919 58.775 41.828 124.094 41.828 192.839 0 91.595-26.599 177.183-72.503 249.363-42.686 67.141-102.107 122.591-172.247 160.558-65.853 35.609-141.145 55.879-221.050 55.879z",handleSize:15,fillerColor:"#d4e7ff"},grid:{right:"36px",left:"36px",top:"36px",bottom:"72px",containLabel:!0},legend:{data:[],bottom:"36px",selected:{"å…¶ä»–":!1},type:"scroll"},xAxis:{type:"category",boundaryGap:!0,splitLine:{show:!0},scale:!0,axisLabel:{show:!0},data:[]},yAxis:{type:"value",scale:!0,axisLabel:{formatter:"{value}"}},series:[]};var It={components:{jsonExcel:St["a"],FOFECharts:w["a"],tfNavigatorTabs:dt["a"]},props:{products:Array,start:String,end:String,showAfterFee:Boolean},data(){return{isVisible:!1,lastParamObj:null,errorMsg:null,mode:{label:"æ¨ªæˆªé¢åˆ†æžæ³•",value:"æ¨ªæˆªé¢åˆ†æžæ³•"},modeOptions:[{label:"æ¨ªæˆªé¢åˆ†æžæ³•",value:"æ¨ªæˆªé¢åˆ†æžæ³•"},{label:"äº¤å‰ç§¯æ¯”çŽ‡æ³•",value:"äº¤å‰ç§¯æ¯”çŽ‡æ³•"},{label:"HurstæŒ‡æ•°æ³•",value:"HurstæŒ‡æ•°æ³•"}],productArray:null,startDate:null,endDate:null,navOption:null,resultList:[],onLoading:!1,indexList:[],indexId1:[],indexId2:[],indexId3:[],note:[],indexId1NotExist:!1,indexId2NotExist:!1}},methods:{visibilityChanged(t,e){this.isVisible=t,this.loadData()},async loadData(t=!1){if(t&amp;&amp;(this.lastParamObj=Math.random().toString()),!this.isVisible||JSON.stringify(this.lastParamObj)==JSON.stringify(this.paramObj))return;this.lastParamObj=f.a.cloneDeep(this.paramObj),this.productArray=this.products,this.startDate=this.start,this.endDate=this.end,this.indexList=[],this.indexId1=[],this.indexId2=[];let e=[],a=await this.$api.indexOptions.get(null);0==a.errorNo&amp;&amp;(e=a.result);let i=[],s=e.filter(t=&gt;"STD_MKT_INDEX"==t.value2);i.push({label:"æ&nbsp;‡å‡†æŒ‡æ•°",options:s});let r=e.filter(t=&gt;"PRIVATE_FUND_MKT_INDEX"==t.value2);i.push({label:"ç§å‹Ÿå¸‚åœºæŒ‡æ•°",options:r});let o=e.filter(t=&gt;"HL_INDEX"==t.value2);i.push({label:"ä¼˜æŠ•FOFæŒ‡æ•°",options:o});let n=e.filter(t=&gt;"HL_STRATEGY_INDEX"==t.value2);i.push({label:"ä¼˜æŠ•FOFç­–ç•¥æŒ‡æ•°",options:n});let l=e.filter(t=&gt;"MACRO_ALLOCATION_INDEX"==t.value2);i.push({label:"å®è§‚é…ç½®æŒ‡æ•°",options:l});for(let c=0;c&lt;this.productArray.length;c++){this.indexList[c]=[];let t=this.productArray[c],a=await this.$api.productBenchmarkEndpoint.get({productId:t.id});if(0===a.errorNo&amp;&amp;a.result&amp;&amp;a.result.length&gt;0){let t=a.result[0],s=!1;if(e.length&gt;0&amp;&amp;e.forEach(e=&gt;{e.id==t.benchmarkId&amp;&amp;(s=!0)}),!s){let e={id:t.benchmarkId,value:t.benchmarkName};this.indexList[c].push({label:"è¶…é¢åŸºå‡†",options:[e]})}this.indexList[c].push(...i),this.indexId1[c]=t.benchmarkId,this.indexId2[c]=t.benchmarkId}else this.indexList[c]=i,this.indexId1[c]=null,this.indexId2[c]=null}this.computeIndexId1NotExist(),this.computeIndexId2NotExist(),this.loadSeries()},async loadSeries(){this.errorMsg=null,this.resultList=[];let t=1;for(let e=0;e&lt;this.productArray.length;e++){let a=this.productArray[e];if("æ¨ªæˆªé¢åˆ†æžæ³•"==this.mode.value&amp;&amp;(t=this.indexId1[e]),"äº¤å‰ç§¯æ¯”çŽ‡æ³•"==this.mode.value&amp;&amp;(t=this.indexId2[e]),a.id&amp;&amp;this.startDate&amp;&amp;this.endDate&amp;&amp;this.mode&amp;&amp;this.mode.value&amp;&amp;t){this.onLoading=!0;let i={productId:a.id,indexId:t,startDate:this.startDate,endDate:this.endDate,mode:this.mode.value,showAfterFee:this.showAfterFee},s=await this.$api.performanceSustainabilityEndPoint.get(i);0==s.errorNo?this.resultList[e]=s.result:this.errorMsg=s.message}}this.onLoading=!1,this.errorMsg||this.buildOption()},buildOption(){let t=this.showAfterFee?"(è´¹åŽ)":"";if(this.note=[],this.resultList&amp;&amp;this.resultList.length&gt;0)if("HurstæŒ‡æ•°æ³•"==this.mode.value){const e=[],a=[],i=[];for(let r=0;r&lt;this.productArray.length;r++)if(this.resultList[r]&amp;&amp;this.resultList[r].length&gt;0){let s=this.productArray[r];e.push(s.productShortName+t);let o=[];this.resultList[r].forEach(t=&gt;{o.push([t.date,Y["a"].roundNumber(t.value,4)]),i.push(t.date)}),a.push({name:e[e.length-1],type:"line",symbol:"circle",symbolSize:1,showAllSymbol:!0,data:o,lineStyle:{}})}const s=f.a.cloneDeep(Lt);s.series=a,s.legend.data=e,s.xAxis.data=i.distinct().sort(),this.navOption=s}else{const e=[],a=[],i=[];for(let r=0;r&lt;this.productArray.length;r++)if(this.resultList[r]&amp;&amp;this.resultList[r].length&gt;0){let s,o=1;"æ¨ªæˆªé¢åˆ†æžæ³•"==this.mode.value&amp;&amp;(o=this.indexId1[r]),"äº¤å‰ç§¯æ¯”çŽ‡æ³•"==this.mode.value&amp;&amp;(o=this.indexId2[r]),this.indexList[r].forEach(t=&gt;{t.options.forEach(t=&gt;{t.id==o&amp;&amp;(s=t.value)})}),this.resultList[r].forEach((o,n)=&gt;{if(o.length&gt;0){let l,c=this.productArray[r];l=0==n?c.productShortName+t:1==n?s:c.productShortName+t+"(å‡)"+s,e.push(l);let h=[];o.forEach(t=&gt;{h.push([t.date,Y["a"].roundNumber(t.value,4)]),i.push(t.date)}),a.push({name:l,type:"line",symbol:"circle",symbolSize:1,showAllSymbol:!0,data:h,lineStyle:{}})}})}const s=f.a.cloneDeep(Lt);s.series=a,s.legend.data=e,s.xAxis.data=i.distinct().sort(),this.navOption=s}else this.navOption=null},formatPercentage(t,e,a){return a?Y["a"].formatPercent(a,2):"-"},formatNumber(t,e,a){return a?Y["a"].formatNumber2(a,2):"-"},computeIndexId1NotExist(){let t=!1;for(let e=0;e&lt;this.products.length;e++)this.indexId1[e]||(t=!0);this.indexId1NotExist=t},computeIndexId2NotExist(){let t=!1;for(let e=0;e&lt;this.products.length;e++)this.indexId2[e]||(t=!0);this.indexId2NotExist=t}},mounted(){},computed:{paramObj(){return{products:this.products,start:this.start,end:this.end,showAfterFee:this.showAfterFee}}},watch:{paramObj:{deep:!0,immediate:!0,handler(t){this.loadData()}}}},Rt=It,Mt=(a("d3be"),Object(A["a"])(Rt,Pt,Nt,!1,null,"6e94ad59",null)),Ft=Mt.exports,Tt=a("9bd6"),Bt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",[a("th-section",{directives:[{name:"loading",rawName:"v-loading",value:t.isLoadingRtns,expression:"isLoadingRtns"}],attrs:{level:"2",title:"æœˆåº¦æ”¶ç›Šæ¯”è¾ƒ"}},[a("template",{slot:"action"},[a("span",{staticClass:"th-link-click",staticStyle:{"font-size":"12px"},on:{click:function(e){return t.onExportTable("compareRtnTable","æœˆåº¦æ”¶ç›Šæ¯”è¾ƒ")}}},[a("i",{staticClass:"el-icon-download",staticStyle:{"margin-right":"4px"}}),t._v("Excel ")])]),a("el-select",{staticStyle:{"margin-bottom":"8px"},attrs:{size:"mini",clearable:"",filterable:"",multiple:""},model:{value:t.selections.monthlyRtn,callback:function(e){t.$set(t.selections,"monthlyRtn",e)},expression:"selections.monthlyRtn"}},t._l(t.selectionOptions,(function(t,e){return a("el-option",{key:"rtn_"+e,attrs:{value:t.value,label:t.label}})})),1),a("el-table",{staticClass:"th-el-table",attrs:{id:"compareRtnTable",size:"mini",data:t.filterRtns}},[a("el-table-column",{attrs:{label:"å¹´ä»½",prop:"yearLabel",width:"64"}}),a("el-table-column",{attrs:{label:"äº§å“",prop:"productShortName",width:"120"}}),a("el-table-column",{attrs:{prop:"jan",label:"1æœˆ(%)","show-overflow-tooltip":"","min-width":"80",align:"center",formatter:t.formatPercent}}),a("el-table-column",{attrs:{prop:"feb",label:"2æœˆ(%)","show-overflow-tooltip":"","min-width":"80",align:"center",formatter:t.formatPercent}}),a("el-table-column",{attrs:{prop:"mar",label:"3æœˆ(%)","show-overflow-tooltip":"","min-width":"80",align:"center",formatter:t.formatPercent}}),a("el-table-column",{attrs:{prop:"apr",label:"4æœˆ(%)","show-overflow-tooltip":"","min-width":"80",align:"center",formatter:t.formatPercent}}),a("el-table-column",{attrs:{prop:"may",label:"5æœˆ(%)","show-overflow-tooltip":"","min-width":"80",align:"center",formatter:t.formatPercent}}),a("el-table-column",{attrs:{prop:"jun",label:"6æœˆ(%)","show-overflow-tooltip":"","min-width":"80",align:"center",formatter:t.formatPercent}}),a("el-table-column",{attrs:{prop:"jul",label:"7æœˆ(%)","show-overflow-tooltip":"","min-width":"80",align:"center",formatter:t.formatPercent}}),a("el-table-column",{attrs:{prop:"aug",label:"8æœˆ(%)","show-overflow-tooltip":"","min-width":"80",align:"center",formatter:t.formatPercent}}),a("el-table-column",{attrs:{prop:"sep",label:"9æœˆ(%)","show-overflow-tooltip":"","min-width":"80",align:"center",formatter:t.formatPercent}}),a("el-table-column",{attrs:{prop:"oct",label:"10æœˆ(%)","show-overflow-tooltip":"","min-width":"80",align:"center",formatter:t.formatPercent}}),a("el-table-column",{attrs:{prop:"nov",label:"11æœˆ(%)","show-overflow-tooltip":"","min-width":"80",align:"center",formatter:t.formatPercent}}),a("el-table-column",{attrs:{prop:"dec",label:"12æœˆ(%)","show-overflow-tooltip":"","min-width":"80",align:"center",formatter:t.formatPercent}}),a("el-table-column",{attrs:{prop:"ytd",label:"YTD(%)","show-overflow-tooltip":"","min-width":"80",align:"center",formatter:t.formatPercent}})],1)],2),a("th-section",{directives:[{name:"loading",rawName:"v-loading",value:t.isLoadingVols,expression:"isLoadingVols"}],attrs:{level:"2",title:"æœˆåº¦æ³¢åŠ¨çŽ‡æ¯”è¾ƒ"}},[a("template",{slot:"action"},[a("span",{staticClass:"th-link-click",staticStyle:{"font-size":"12px"},on:{click:function(e){return t.onExportTable("compareVolTable","æœˆåº¦æ³¢åŠ¨çŽ‡æ¯”è¾ƒ")}}},[a("i",{staticClass:"el-icon-download",staticStyle:{"margin-right":"4px"}}),t._v("Excel ")])]),a("el-select",{staticStyle:{"margin-bottom":"8px"},attrs:{size:"mini",clearable:"",filterable:"",multiple:""},model:{value:t.selections.monthlyVol,callback:function(e){t.$set(t.selections,"monthlyVol",e)},expression:"selections.monthlyVol"}},t._l(t.selectionOptions,(function(t,e){return a("el-option",{key:"vol_"+e,attrs:{value:t.value,label:t.label}})})),1),a("el-table",{staticClass:"th-el-table",attrs:{id:"compareVolTable",size:"mini",data:t.filterVols}},[a("el-table-column",{attrs:{label:"å¹´ä»½",prop:"yearLabel",width:"64"}}),a("el-table-column",{attrs:{label:"äº§å“",prop:"productShortName",width:"120"}}),a("el-table-column",{attrs:{prop:"jan",label:"1æœˆ(%)","show-overflow-tooltip":"","min-width":"80",align:"center",formatter:t.formatPercent}}),a("el-table-column",{attrs:{prop:"feb",label:"2æœˆ(%)","show-overflow-tooltip":"","min-width":"80",align:"center",formatter:t.formatPercent}}),a("el-table-column",{attrs:{prop:"mar",label:"3æœˆ(%)","show-overflow-tooltip":"","min-width":"80",align:"center",formatter:t.formatPercent}}),a("el-table-column",{attrs:{prop:"apr",label:"4æœˆ(%)","show-overflow-tooltip":"","min-width":"80",align:"center",formatter:t.formatPercent}}),a("el-table-column",{attrs:{prop:"may",label:"5æœˆ(%)","show-overflow-tooltip":"","min-width":"80",align:"center",formatter:t.formatPercent}}),a("el-table-column",{attrs:{prop:"jun",label:"6æœˆ(%)","show-overflow-tooltip":"","min-width":"80",align:"center",formatter:t.formatPercent}}),a("el-table-column",{attrs:{prop:"jul",label:"7æœˆ(%)","show-overflow-tooltip":"","min-width":"80",align:"center",formatter:t.formatPercent}}),a("el-table-column",{attrs:{prop:"aug",label:"8æœˆ(%)","show-overflow-tooltip":"","min-width":"80",align:"center",formatter:t.formatPercent}}),a("el-table-column",{attrs:{prop:"sep",label:"9æœˆ(%)","show-overflow-tooltip":"","min-width":"80",align:"center",formatter:t.formatPercent}}),a("el-table-column",{attrs:{prop:"oct",label:"10æœˆ(%)","show-overflow-tooltip":"","min-width":"80",align:"center",formatter:t.formatPercent}}),a("el-table-column",{attrs:{prop:"nov",label:"11æœˆ(%)","show-overflow-tooltip":"","min-width":"80",align:"center",formatter:t.formatPercent}}),a("el-table-column",{attrs:{prop:"dec",label:"12æœˆ(%)","show-overflow-tooltip":"","min-width":"80",align:"center",formatter:t.formatPercent}}),a("el-table-column",{attrs:{prop:"ytd",label:"YTD(%)","show-overflow-tooltip":"","min-width":"80",align:"center",formatter:t.formatPercent}})],1)],2),a("th-section",{directives:[{name:"loading",rawName:"v-loading",value:t.isLoadingDrawdowns,expression:"isLoadingDrawdowns"}],attrs:{level:"2",title:"æœˆåº¦å›žæ’¤æ¯”è¾ƒ"}},[a("template",{slot:"action"},[a("span",{staticClass:"th-link-click",staticStyle:{"font-size":"12px"},on:{click:function(e){return t.onExportTable("compareDrawdownTable","æœˆåº¦å›žæ’¤æ¯”è¾ƒ")}}},[a("i",{staticClass:"el-icon-download",staticStyle:{"margin-right":"4px"}}),t._v("Excel ")])]),a("el-select",{staticStyle:{"margin-bottom":"8px"},attrs:{size:"mini",clearable:"",filterable:"",multiple:""},model:{value:t.selections.monthlyDrawdowns,callback:function(e){t.$set(t.selections,"monthlyDrawdowns",e)},expression:"selections.monthlyDrawdowns"}},t._l(t.selectionOptions,(function(t,e){return a("el-option",{key:"ddown_"+e,attrs:{value:t.value,label:t.label}})})),1),a("el-table",{staticClass:"th-el-table",attrs:{id:"compareDrawdownTable",size:"mini",data:t.filterDrawdowns}},[a("el-table-column",{attrs:{label:"å¹´ä»½",prop:"yearLabel",width:"64"}}),a("el-table-column",{attrs:{label:"äº§å“",prop:"productShortName",width:"120"}}),a("el-table-column",{attrs:{prop:"jan",label:"1æœˆ(%)","show-overflow-tooltip":"","min-width":"80",align:"center",formatter:t.formatPercent}}),a("el-table-column",{attrs:{prop:"feb",label:"2æœˆ(%)","show-overflow-tooltip":"","min-width":"80",align:"center",formatter:t.formatPercent}}),a("el-table-column",{attrs:{prop:"mar",label:"3æœˆ(%)","show-overflow-tooltip":"","min-width":"80",align:"center",formatter:t.formatPercent}}),a("el-table-column",{attrs:{prop:"apr",label:"4æœˆ(%)","show-overflow-tooltip":"","min-width":"80",align:"center",formatter:t.formatPercent}}),a("el-table-column",{attrs:{prop:"may",label:"5æœˆ(%)","show-overflow-tooltip":"","min-width":"80",align:"center",formatter:t.formatPercent}}),a("el-table-column",{attrs:{prop:"jun",label:"6æœˆ(%)","show-overflow-tooltip":"","min-width":"80",align:"center",formatter:t.formatPercent}}),a("el-table-column",{attrs:{prop:"jul",label:"7æœˆ(%)","show-overflow-tooltip":"","min-width":"80",align:"center",formatter:t.formatPercent}}),a("el-table-column",{attrs:{prop:"aug",label:"8æœˆ(%)","show-overflow-tooltip":"","min-width":"80",align:"center",formatter:t.formatPercent}}),a("el-table-column",{attrs:{prop:"sep",label:"9æœˆ(%)","show-overflow-tooltip":"","min-width":"80",align:"center",formatter:t.formatPercent}}),a("el-table-column",{attrs:{prop:"oct",label:"10æœˆ(%)","show-overflow-tooltip":"","min-width":"80",align:"center",formatter:t.formatPercent}}),a("el-table-column",{attrs:{prop:"nov",label:"11æœˆ(%)","show-overflow-tooltip":"","min-width":"80",align:"center",formatter:t.formatPercent}}),a("el-table-column",{attrs:{prop:"dec",label:"12æœˆ(%)","show-overflow-tooltip":"","min-width":"80",align:"center",formatter:t.formatPercent}}),a("el-table-column",{attrs:{prop:"ytd",label:"YTD(%)","show-overflow-tooltip":"","min-width":"80",align:"center",formatter:t.formatPercent}})],1)],2)],1)},jt=[],Ht=a("583e");let Vt=null,zt=null,$t=null;var Wt={name:"product-compare-performance-monthly",props:{products:Array,start:String,end:String,benchmarkId:Number,showAfterFee:Boolean,showDifference:Boolean,valuationPeriod:String},data(){return{benchmarkInfo:null,monthlyRtns:[],monthlyVols:[],monthlyDrawdowns:[],isLoadingRtns:!1,isLoadingVols:!1,isLoadingDrawdowns:!1,selections:{monthlyRtn:null,monthlyVol:null,monthlyDrawdowns:null}}},methods:{reloadData(){this.loadMonthlyRtns(),this.loadMonthlyVols(),this.loadMonthlyDrawdowns()},async loadBenchmarkInfo(){if(this.benchmarkId){const t=await this.$productService.getProductInfo(this.benchmarkId);this.benchmarkInfo=t}else this.benchmarkInfo=null},async loadMonthlyRtns(){this.isLoadingRtns=!0;const t=z["b"].randomId();Vt=t;const e={valuationPeriod:this.valuationPeriod,startDate:this.start,endDate:this.end,benchmarkId:this.benchmarkId,showDifference:this.showDifference,showAfterFee:this.showAfterFee},a=this.products.map(t=&gt;{const a=Object.assign({},e,{productId:t.id});return this.$api.monthlyPerformanceEndpoint.get(a)}),i=await Promise.all(a)||[];if(t!=Vt)return;const s={};i.forEach((t,e)=&gt;{const a=t.result||[],{productName:i,productShortName:r,code:o}=this.products[e];a.forEach(t=&gt;{const{yearLabel:e}=t;let a=i,n=r;if(this.showAfterFee&amp;&amp;(a+="ï¼ˆè´¹åŽï¼‰",n+="ï¼ˆè´¹åŽï¼‰"),this.showDifference&amp;&amp;this.benchmarkId){let t=this.benchmarkInfo?this.benchmarkInfo.productName:"";this.showAfterFee&amp;&amp;(t+="ï¼ˆè´¹åŽï¼‰"),a+="(å‡)"+t,n+="(å‡)"+t}const l=s[e]||[];l.push(Object.assign({},t,{productName:a,productShortName:n,code:o})),s[e]=l})});const r=[];Object.values(s).forEach(t=&gt;r.push(...t)),r.length&gt;1&amp;&amp;r.sort((t,e)=&gt;t.yearLabel.localeCompare(e.yearLabel)),this.monthlyRtns=r,this.isLoadingRtns=!1},async loadMonthlyVols(){this.isLoadingVols=!0;const t=z["b"].randomId();zt=t;const e={valuationPeriod:this.valuationPeriod,startDate:this.start,endDate:this.end,benchmarkId:this.benchmarkId,showDifference:this.showDifference,showAfterFee:this.showAfterFee},a=this.products.map(t=&gt;{const a=Object.assign({},e,{productId:t.id});return this.$api.monthlyAnnualizedVolatilityEndpoint.get(a)}),i=await Promise.all(a)||[];if(t!=zt)return;const s={};i.forEach((t,e)=&gt;{const a=t.result||[],{productName:i,productShortName:r,code:o}=this.products[e];a.forEach(t=&gt;{const{yearLabel:e}=t;let a=i,n=r;if(this.showAfterFee&amp;&amp;(a+="ï¼ˆè´¹åŽï¼‰",n+="ï¼ˆè´¹åŽï¼‰"),this.showDifference&amp;&amp;this.benchmarkId){let t=this.benchmarkInfo?this.benchmarkInfo.productName:"";this.showAfterFee&amp;&amp;(t+="ï¼ˆè´¹åŽï¼‰"),a+="(å‡)"+t,n+="(å‡)"+t}const l=s[e]||[];l.push(Object.assign({},t,{productName:a,productShortName:n,code:o})),s[e]=l})});const r=[];Object.values(s).forEach(t=&gt;r.push(...t)),r.length&gt;1&amp;&amp;r.sort((t,e)=&gt;t.yearLabel.localeCompare(e.yearLabel)),this.monthlyVols=r,this.isLoadingVols=!1},async loadMonthlyDrawdowns(){this.isLoadingDrawdowns=!0;const t=z["b"].randomId();$t=t;const e={valuationPeriod:this.valuationPeriod,startDate:this.start,endDate:this.end,benchmarkId:this.benchmarkId,showDifference:this.showDifference,showAfterFee:this.showAfterFee},a=this.products.map(t=&gt;{const a=Object.assign({},e,{productId:t.id});return this.$api.monthlyMaxDrawdownEndpoint.get(a)}),i=await Promise.all(a)||[];if(t!=$t)return;const s={};i.forEach((t,e)=&gt;{const a=t.result||[],{productName:i,productShortName:r,code:o}=this.products[e];a.forEach(t=&gt;{const{yearLabel:e}=t;let a=i,n=r;if(this.showAfterFee&amp;&amp;(a+="ï¼ˆè´¹åŽï¼‰",n+="ï¼ˆè´¹åŽï¼‰"),this.showDifference&amp;&amp;this.benchmarkId){let t=this.benchmarkInfo?this.benchmarkInfo.productName:"";this.showAfterFee&amp;&amp;(t+="ï¼ˆè´¹åŽï¼‰"),a+="(å‡)"+t,n+="(å‡)"+t}const l=s[e]||[];l.push(Object.assign({},t,{productName:a,productShortName:n,code:o})),s[e]=l})});const r=[];Object.values(s).forEach(t=&gt;r.push(...t)),r.length&gt;1&amp;&amp;r.sort((t,e)=&gt;t.yearLabel.localeCompare(e.yearLabel)),this.monthlyDrawdowns=r,this.isLoadingDrawdowns=!1},formatPercent(t,e,a){return null==a||""===a?"-":Y["a"].formatPercent(a,2)},onExportTable(t,e){Ht["a"].exportToExcel(t,e)}},mounted(){this.loadBenchmarkInfo(),this.loadMonthlyRtns(),this.loadMonthlyVols(),this.loadMonthlyDrawdowns()},computed:{selectionOptions(){const t=this.products||[];return t.map(t=&gt;({value:t.productShortName,label:t.productShortName}))},filterRtns(){const t=this.selections.monthlyRtn||[];return this.monthlyRtns.filter(e=&gt;0==t.length||t.includes(e.productShortName))},filterVols(){const t=this.selections.monthlyVol||[];return this.monthlyVols.filter(e=&gt;0==t.length||t.includes(e.productShortName))},filterDrawdowns(){const t=this.selections.monthlyDrawdowns||[];return this.monthlyDrawdowns.filter(e=&gt;0==t.length||t.includes(e.productShortName))}},watch:{start(t){this.reloadData()},end(t){this.reloadData()},valuationPeriod(t){this.reloadData()},showAfterFee(t){this.reloadData()},showDifference(t){this.reloadData()},benchmarkId(t){this.reloadData(),this.loadBenchmarkInfo()}}},Ut=Wt,Yt=Object(A["a"])(Ut,Bt,jt,!1,null,"738435f6",null),Qt=Yt.exports,Jt={name:"compare-performance",components:{legendExplain:U["a"],performanceNav:tt,performanceIndicator:yt,performanceCorrelation:ot,crossSectionAnalyzeCompare:O,crossProductRatioCompare:I,hurstIndexCompare:j,tfNavigatorTabs:dt["a"],productComparePerformanceMarketSensitivityAnalysis:xt["a"],productCompareProfitAndLoss:_t,productComparePerformanceSustainability:Ft,seeMoreTooltip:g["a"],after_fee_batch_setting:Tt["a"],comparePerformanceMonthly:Qt},props:{products:Array},data(){return{cacheKey:"product-compare-performance.filter",cacheLoaded:!1,preparingParam:!1,afterFeeSettingDesc:"å¤šäº§å“",afterFeeBatchSettingDialogVisible:!1,dateRange:[],initialStartDate:null,initialEndDate:null,returnSeries:[],mode:{},activeName:"1",modeOptions:[{label:"æ¨ªæˆªé¢åˆ†æžæ³•",value:"item_1"},{label:"äº¤å‰ç§¯æ¯”çŽ‡æ³•",value:"item_2"},{label:"HurstæŒ‡æ•°æ³•",value:"item_3"}],params:{random:null,benchmarkIds:[],poolBenchmarks:[],benchmarkId:null,period:null,showDifference:!1,showRawInDifference:!0,showAfterFee:!1,valuationPeriod:null,start:null,end:null,normalizeVolatility:!1,marketEnvParam:{pct:20,type:"å…¨åŽ†å²",name:null}},lastParams:{},performanceParams:null,benchmarks:null,productReturnsFeeOrAfterFee:[],productReturns:null,productDiffReturns:null,benchReturns:null,productDifference:[],poolStrategyList:[],returnData:null,pickerOptions:null,mutualFundBenchmarkGroups:[],startBack:null,endBack:null,periodBack:null,mktEnvOptions:["æŒ¯å¹…|æ²ªæ·±300","æŒ¯å¹…|ä¸­è¯500","æŒ¯å¹…|ä¸­è¯1000","æŒ¯å¹…|ä¸­è¯å…¨æŒ‡","æŒ¯å¹…|åˆ›ä¸šæ¿æŒ‡","æ¢æ‰‹çŽ‡|æ²ªæ·±300","æ¢æ‰‹çŽ‡|ä¸­è¯500","æ¢æ‰‹çŽ‡|ä¸­è¯1000","æ¢æ‰‹çŽ‡|ä¸­è¯å…¨æŒ‡","æ¢æ‰‹çŽ‡|åˆ›ä¸šæ¿æŒ‡","å¸‚ç›ˆçŽ‡|æ²ªæ·±300","å¸‚ç›ˆçŽ‡|ä¸­è¯500","å¸‚ç›ˆçŽ‡|ä¸­è¯1000","å¸‚ç›ˆçŽ‡|ä¸­è¯å…¨æŒ‡","å¸‚ç›ˆçŽ‡|åˆ›ä¸šæ¿æŒ‡","æ¶¨è·Œå¹…|æ²ªæ·±300","æ¶¨è·Œå¹…|ä¸­è¯500","æ¶¨è·Œå¹…|ä¸­è¯1000","æ¶¨è·Œå¹…|ä¸­è¯å…¨æŒ‡","æ¶¨è·Œå¹…|åˆ›ä¸šæ¿æŒ‡","èµšé’±æ•ˆåº”|æ²ªæ·±300","èµšé’±æ•ˆåº”|ä¸­è¯500","èµšé’±æ•ˆåº”|ä¸­è¯1000","èµšé’±æ•ˆåº”|ä¸­è¯å…¨æŒ‡","èµšé’±æ•ˆåº”|åˆ›ä¸šæ¿æŒ‡","éš”å¤œè·³ç©º|æ²ªæ·±300","éš”å¤œè·³ç©º|ä¸­è¯500","éš”å¤œè·³ç©º|ä¸­è¯1000","éš”å¤œè·³ç©º|ä¸­è¯å…¨æŒ‡","éš”å¤œè·³ç©º|åˆ›ä¸šæ¿æŒ‡","å›½å€ºåˆ°æœŸæ”¶ç›ŠçŽ‡|2å¹´","å›½å€ºåˆ°æœŸæ”¶ç›ŠçŽ‡|10å¹´","å¤§ç›˜ç›¸å¯¹å°ç›˜","åŒ—å‘èµ„é‡‘å‡€æµå…¥","èžèµ„å‡€ä¹°å…¥","çƒ­ç‚¹æ‰©æ•£","åŸºå·®å˜åŒ–","éšå«æ³¢åŠ¨çŽ‡å˜åŒ–","ä¸­è¯500ç›¸å¯¹ä¸­è¯1000æ¶¨è·Œå¹…","ä¸­è¯500ç›¸å¯¹åˆ›ä¸šæ¿æ¶¨è·Œå¹…","ä¿¡ç”¨åˆ©å·®","å›&nbsp;å­å¤šç©ºæ”¶ç›Š|å¸‚å€¼","å›&nbsp;å­å¤šç©ºæ”¶ç›Š|åŠ¨é‡","å›&nbsp;å­å¤šç©ºæ”¶ç›Š|æˆé•¿","å›&nbsp;å­å¤šç©ºæ”¶ç›Š|Beta","å›&nbsp;å­æ‹¥æŒ¤åº¦|å°å¸‚å€¼","å›&nbsp;å­æ‹¥æŒ¤åº¦|é«˜è´å¡”","å›&nbsp;å­æ‹¥æŒ¤åº¦|é«˜åŠ¨é‡","å›&nbsp;å­æ‹¥æŒ¤åº¦|é«˜æˆé•¿"],performanceNavParamObj:{random:null,products:[],benchmarks:[],returnSeries:[],productReturns:[],benchmarkId:null,start:null,end:null,valuationPeriod:null,showDifference:null,showRawInDifference:null,showAfterFee:null,mktEnvParams:{},normalizeVolatility:!1},profitAndLossParamObj:{random:null,products:[],start:null,end:null,returnSeries:[],showAfterFee:null,valuationPeriod:null}}},computed:{dateScale(){if(this.products&amp;&amp;this.products.length&gt;0)for(let t of this.products)if("DAY"!=t.valuationPeriod)return"WEEK";return"DAY"},paramObj(){return{products:this.products,params:this.params}},productIds(){return(this.products||[]).map(t=&gt;t.id)},calculateRankStr(){return"rankw_5"==this.params.marketEnvironmentRank?"(å¸‚åœºçŽ¯å¢ƒ å‰5% ä¸­90% åŽ5%)":"rankw_10"==this.params.marketEnvironmentRank?"(å¸‚åœºçŽ¯å¢ƒ å‰10% ä¸­80% åŽ10%)":"rankw_15"==this.params.marketEnvironmentRank?"(å¸‚åœºçŽ¯å¢ƒ å‰15% ä¸­70% åŽ15%)":"rankw_20"==this.params.marketEnvironmentRank?"(å¸‚åœºçŽ¯å¢ƒ å‰20% ä¸­60% åŽ20%)":""},productType(){if(this.products&amp;&amp;this.products.length&gt;0){let t="MUTUAL_FUND";return this.products.forEach(e=&gt;{"MUTUAL_FUND"!=e.productType&amp;&amp;(t=e.productType)}),t}return"FUND"},classification(){return"NORMAL"},benchStartEndDate(){if(this.products&amp;&amp;this.products.length){let t=null,e=null;return this.products.forEach(a=&gt;{(null==t||null!=a.perfStartDate&amp;&amp;a.perfStartDate&lt;t)&amp;&amp;(t=a.perfStartDate),(null==e||null!=a.valueAsOf&amp;&amp;a.valueAsOf&gt;e)&amp;&amp;(e=a.valueAsOf)}),t=y["a"].getNextDate(t),[t,e]}return null},commonValuationPeriod(){if(this.products&amp;&amp;this.products.length){let t=null;for(const{valuationPeriod:e}of this.products)("MONTH"==e||"WEEK"==e&amp;&amp;"MONTH"!=t||"DAY"==e&amp;&amp;"MONTH"!=t&amp;&amp;"WEEK"!=t)&amp;&amp;(t=e);return t}return null}},mounted(){this.initPoolStrategyOption();let t=(new Date).getFullYear(),e=t-1,a=e+"-01-01",i=e+"-12-31",s=t-2,r=s+"-01-01",o=s+"-12-31",n=t-3,l=n+"-01-01",c=n+"-12-31",h=t-4,d=h+"-01-01",p=h+"-12-31";this.pickerOptions={shortcuts:[{text:"æœ€è¿‘ä¸€ä¸ªæœˆ",onClick(t){const e=new Date,a=new Date;a.setTime(y["a"].getDateMinusMonths(a.getTime(),1)),t.$emit("pick",[a,e])}},{text:"æœ€è¿‘ä¸‰ä¸ªæœˆ",onClick(t){const e=new Date,a=new Date;a.setTime(y["a"].getDateMinusMonths(a.getTime(),3)),t.$emit("pick",[a,e])}},{text:"æœ€è¿‘å…­ä¸ªæœˆ",onClick(t){const e=new Date,a=new Date;a.setTime(y["a"].getDateMinusMonths(a.getTime(),6)),t.$emit("pick",[a,e])}},{text:"æœ€è¿‘ä¸€å¹´",onClick(t){const e=new Date,a=new Date;a.setTime(y["a"].getDateMinusYears(a.getTime(),1)),t.$emit("pick",[a,e])}},{text:"æœ€è¿‘ä¸¤å¹´",onClick(t){const e=new Date,a=new Date;a.setTime(y["a"].getDateMinusYears(a.getTime(),2)),t.$emit("pick",[a,e])}},{text:"æœ€è¿‘ä¸‰å¹´",onClick(t){const e=new Date,a=new Date;a.setTime(y["a"].getDateMinusYears(a.getTime(),3)),t.$emit("pick",[a,e])}},{text:"ä»Šå¹´ä»¥æ¥",onClick(t){const e=new Date,a=new Date;a.setTime(y["a"].getStartDateOfThisYear()),t.$emit("pick",[a,e])}},{text:e,onClick(t){const e=new Date(a),s=new Date(i);t.$emit("pick",[e,s])}},{text:s,onClick(t){const e=new Date(r),a=new Date(o);t.$emit("pick",[e,a])}},{text:n,onClick(t){const e=new Date(l),a=new Date(c);t.$emit("pick",[e,a])}},{text:h,onClick(t){const e=new Date(d),a=new Date(p);t.$emit("pick",[e,a])}}]}},methods:{getInitDateRange(){return[this.initialStartDate,this.initialEndDate]},changeDateRange(){let t=null,e=null;this.dateRange&amp;&amp;2==this.dateRange.length&amp;&amp;(t=this.dateRange[0],e=this.dateRange[1]),this.params.start=t,this.params.end=e},saveCache(){let t=144e5;this.$localStorage.set(this.cacheKey,this.params,t)},getEffectiveBenchmarkId(t){return t.showDifference&amp;&amp;t.benchmarkId?t.benchmarkId:null},async prepareParamObj(){if(!this.cacheLoaded){let t=this.$localStorage.get(this.cacheKey);t&amp;&amp;(this.params=f.a.cloneDeep(t),this.dateRange=[this.params.start,this.params.end],this.onPeriodTypeChange(this.params.period),this.initValuationPeriod()),this.cacheLoaded=!0}u.a.timeout(this.cacheKey+".timeout",1e3,this.saveCache);let t=f.a.cloneDeep(this.params),e=f.a.cloneDeep(this.lastParams),a=this.getEffectiveBenchmarkId(t),i=this.getEffectiveBenchmarkId(e);if(delete t["showDifference"],delete t["benchmarkId"],delete e["showDifference"],delete e["benchmarkId"],this.lastParams=f.a.cloneDeep(this.params),JSON.stringify(t)==JSON.stringify(e)&amp;&amp;a==i)return;this.preparingParam=!0,await this.initData();let s={random:this.params.random,products:this.products,benchmarks:this.benchmarks,returnSeries:this.returnSeries,productReturnsFeeOrAfterFee:this.productReturnsFeeOrAfterFee,benchmarkId:this.params.benchmarkId,start:this.params.start,end:this.params.end,valuationPeriod:this.params.valuationPeriod,showDifference:this.params.showDifference,showRawInDifference:this.params.showRawInDifference,showAfterFee:this.params.showAfterFee,mktEnvParams:this.params.marketEnvParam,volAdj:this.params.normalizeVolatility?.1:null},r={random:this.params.random,products:this.products,start:this.params.start,end:this.params.end,returnSeries:this.returnSeries,showAfterFee:this.params.showAfterFee,valuationPeriod:this.params.valuationPeriod};this.performanceNavParamObj=f.a.cloneDeep(s),this.profitAndLossParamObj=f.a.cloneDeep(r),this.preparingParam=!1},afterChangeAfterFeeSetting(t){t&amp;&amp;this.params.showAfterFee&amp;&amp;(this.params.random=Math.random())},refreshToc(){this.$emit("refreshToc")},initValuationPeriod(){let t="DAY";if(this.products&amp;&amp;this.products.length&gt;0)for(const e of this.products)"WEEK"==e.valuationPeriod&amp;&amp;(t=e.valuationPeriod);this.params.valuationPeriod=t},async initData(){const t=[];if(this.products&amp;&amp;this.products.length&gt;0)for(const e of this.products)if(e.benchmarkIds&amp;&amp;""!=e.benchmarkIds){const a=await this.$productService.getProductList(e.benchmarkIds);a&amp;&amp;a.length&gt;0&amp;&amp;(e.benchmark=a[0],t.includes(a[0].id)||t.push(a[0].id))}if(this.mode=this.modeOptions[0],t&amp;&amp;t.length&gt;0&amp;&amp;(this.params.benchmarkIds=t),this.params.period||(this.params.period="CUSTOMIZED"),"CUSTOMIZED"==this.params.period){let t=y["a"].formatTime(y["a"].getYearAgo(new Date,3)),e=null,a=null;this.products.forEach(t=&gt;{(null==e||null!=t.perfStartDate&amp;&amp;t.perfStartDate&lt;e)&amp;&amp;(e=t.perfStartDate),(null==a||null!=t.valueAsOf&amp;&amp;t.valueAsOf&gt;a)&amp;&amp;(a=t.valueAsOf)});let i=e&amp;&amp;e&gt;t?e:t,s=y["a"].formatTime(new Date);this.initialStartDate=i,this.initialEndDate=s,this.isDateRangeEmpty()&amp;&amp;(this.dateRange=[this.initialStartDate,this.initialEndDate],this.params.start=this.initialStartDate,this.params.end=this.initialEndDate)}await this.loadProductsReturns(this.products)},isDateRangeEmpty(){if(!this.dateRange||0==this.dateRange.length)return!0;for(let t of this.dateRange)if(!t)return!0;return!1},async loadExistingFundBenchmark(){let t=[],e=[];this.products.forEach(t=&gt;{"MUTUAL_FUND"===t.productType&amp;&amp;t.benchmarks&amp;&amp;t.benchmarks.length&gt;0&amp;&amp;t.benchmarks.forEach(t=&gt;{e.push({value:t.benchmark.id,label:t.benchmark.productShortName})})}),e.length&gt;0&amp;&amp;t.push({label:"è¶…é¢åŸºå‡†",options:e}),this.mutualFundBenchmarkGroups=t},async initPoolStrategyOption(){let t="FUND";try{const e=await this.$api.getPoolStrategyDTOList.get({productType:t});e&amp;&amp;0===e.errorNo?this.poolStrategyList=e.result:this.poolStrategyList=[]}catch(e){this.poolStrategyList=[]}},getProductShortName(t,e){let a=t[e],i=a.productShortName||a.productName,s=!1;for(let r=0;r&lt;t.length;r++)if(r!=e&amp;&amp;(t[r].productShortName||t[r].productName)==(a.productShortName||a.productName)){s=!0;break}return s&amp;&amp;a.sourceName&amp;&amp;(i+="ã€"+a.sourceName+"ã€‘"),i},async loadProductsReturns(t=this.products){let e=this.params.showDifference&amp;&amp;this.params.benchmarkId,a=this.params.showDifference&amp;&amp;this.params.showRawInDifference||!this.params.showAfterFee&amp;&amp;!e,i=this.params.showAfterFee&amp;&amp;!e;if(t&amp;&amp;t.length&gt;0){const s=[],r=[],o=[],{start:n,end:l,valuationPeriod:c,normalizeVolatility:h}=this.params,d=h?.1:null;let p=-1;for(const u of t){p++;let h=y["a"].getAfterDateStr(n,y["a"].getNextDate(u.perfStartDate));const m=await this.$returnService.getDailyReturnSeries(u.id,h,l,c,this.classification,this.params.showAfterFee,d);if(m){let n=[],f=[];for(const{valueAsOf:t,dailyReturn:e,afterFeeDailyReturn:a}of m)null!=e&amp;&amp;(n.push({date:t,value:e}),f.push({date:t,value:a}));let g={},b={},v=this.getProductShortName(t,p);if(this.params.normalizeVolatility&amp;&amp;(v+="(ç­‰æ³¢åŠ¨çŽ‡)"),g={derived:!1,primary:!0,valuationPeriod:this.valuationPeriod||u.valuationPeriod,productId:u.id,perfStartDate:u.perfStartDate,productName:v,seriesList:n||[]},this.params.showAfterFee&amp;&amp;(v+="(è´¹åŽ)",b={derived:!1,primary:!0,valuationPeriod:this.valuationPeriod||u.valuationPeriod,productId:u.id,perfStartDate:u.perfStartDate,productName:v,seriesList:f}),a?this.params.showAfterFee?s.push(b):s.push(g):i&amp;&amp;s.push(b),this.params.showAfterFee?o.push(b):o.push(g),e){let t=await this.$returnService.getDiffReturnSeries(u.id,this.params.benchmarkId,h,l,c,this.params.showAfterFee,d),e=await this.$productService.getProductList([this.params.benchmarkId]),a=this.params.showAfterFee?"(è´¹åŽ)":"",i=this.params.normalizeVolatility?"(ç­‰æ³¢åŠ¨çŽ‡)":"",s=`${u.productShortName||u.productName}${a}${i}(å‡)${e[0].productShortName||e[0].productName}${a}`;const o={derived:!0,primary:!1,valuationPeriod:this.valuationPeriod||u.valuationPeriod,productId:u.id,benchmarkId:this.params.benchmarkId,productName:s,seriesList:t};r.push(o)}}}this.productReturnsFeeOrAfterFee=o,this.productReturns=s,this.productDiffReturns=r}else this.productReturns=null,this.productDiffReturns=null;await this.loadBenchmarks()},async loadBenchmarks(){const t=[],{benchmarkIds:e,poolBenchmarks:a}=this.params;e&amp;&amp;e.length&gt;0&amp;&amp;t.push(...e),a&amp;&amp;a.productIds&amp;&amp;t.push(...a.productIds),this.params.showDifference&amp;&amp;this.params.benchmarkId&amp;&amp;-1==t.indexOf(this.params.benchmarkId)&amp;&amp;t.push(this.params.benchmarkId);let i=[];t&amp;&amp;t.length&gt;0&amp;&amp;(i=await this.$productService.getProductList(t)),this.benchmarks=i,await this.loadExistingFundBenchmark(),await this.loadBenchmarkReturns(i)},async loadBenchmarkReturns(t){if(t&amp;&amp;t.length&gt;0){const e=[],[a,i]=this.benchStartEndDate;for(const s of t){const t=await this.$returnService.getProductSeries(s.id,a,i,this.params.valuationPeriod,this.classification,!1,this.params.showAfterFee,this.params.normalizeVolatility?.1:null);this.params.showAfterFee&amp;&amp;(t.productName=t.productName+"(è´¹åŽ)"),t&amp;&amp;t.seriesList.length&gt;0&amp;&amp;(t.primary=!1,e.push(t))}this.benchReturns=e}else this.benchReturns=null;this.$nextTick(()=&gt;{this.refreshData()})},async refreshData(){const t=[];let e=this.productReturns||[];e.forEach(t=&gt;t.rank=1),t.push(...e);let a=this.benchReturns||[];if(a.forEach(t=&gt;t.rank=5),t.push(...a),this.params.showDifference){let e=this.productDiffReturns||[];e.forEach(t=&gt;t.rank=10),t.push(...e)}if(t.sort((t,e)=&gt;t.rank-e.rank),this.returnSeries=t,this.$refs.comparePerf){let{start:t,end:e,valuationPeriod:a,normalizeVolatility:i,benchmarkId:s}=this.params;this.params.showDifference||(s=null);const r=this.products.map(t=&gt;{let e=t.productShortName||t.productName;return i&amp;&amp;(e+="(ç­‰æ³¢åŠ¨çŽ‡)"),e}),o={productIds:this.products.map(t=&gt;t.id),productNames:r,benchmarkIds:(this.benchmarks||[]).map(t=&gt;t.id),start:t,end:e,volAdj:i?.1:null,showDiffByProductId:s,valuationPeriod:a,showAfterFee:this.params.showAfterFee,showRawInDifference:this.params.showRawInDifference};this.performanceParams=o}this.$refs.compareCorr&amp;&amp;await this.$refs.compareCorr.loadData(),this.$refs.marketSensitivityAnalysis&amp;&amp;await this.$refs.marketSensitivityAnalysis.loadData(t,f.a.cloneDeep(this.params))},onVolAdjustChange(t){t&amp;&amp;(this.params.valuationPeriod=this.commonValuationPeriod)},reset(){this.$refs.sectionNav&amp;&amp;this.$refs.sectionNav.reset()},onPeriodTypeChange(t){if("SINCE_INCEPTION"!==t||null==this.params.start&amp;&amp;null==this.params.end)if("ALIGN_START"===t){let t=null,e=null;for(const{perfStartDate:a,valueAsOf:i}of this.products)t=null==t||t&lt;a?a:t,e=null==e||e&gt;i?i:e;t=y["a"].getNextDate(t),t&gt;e?(this.$message.warning("å½“å‰åŸºé‡‘å‡€å€¼æ—&nbsp;é‡å&nbsp;ï¼Œæ—&nbsp;æ³•å¯¹é½"),this.params.period="SINCE_INCEPTION"):(this.params.start=t,this.params.end=e)}else"CUSTOMIZED"===t&amp;&amp;this.changeDateRange();else this.params.start=null,this.params.end=null}},watch:{paramObj:{deep:!0,immediate:!0,handler(t){this.prepareParamObj()}},products:{deep:!0,immediate:!0,handler(t){this.initValuationPeriod()}}}},Xt=Jt,Kt=(a("6b86"),Object(A["a"])(Xt,h,d,!1,null,null,null)),qt=Kt.exports,Gt=a("a773"),Zt=function(){var t=this,e=t.$createElement,a=t._self._c||e;return a("div",{directives:[{name:"observe-visibility",rawName:"v-observe-visibility",value:{callback:t.visibilityChanged,throttle:300},expression:"{ callback: visibilityChanged, throttle: 300 }"}],staticClass:"product-detail__section"},[a("th-section",{attrs:{title:"æŒä»“åˆ†æž",level:"1"}},[a("div",{staticClass:"info-box-o"},[a("div",{staticClass:"info-item"},[a("span",{staticClass:"label"},[t._v("æ—¶é—´é€‰æ‹©")]),a("span",{staticClass:"value"},[a("el-radio-group",{attrs:{size:"mini"},on:{change:t.onPeriodChange},model:{value:t.period,callback:function(e){t.period=e},expression:"period"}},[a("el-radio-button",{attrs:{label:"1Y",size:"mini"}},[t._v("1Y")]),a("el-radio-button",{attrs:{label:"3Y",size:"mini"}},[t._v("3Y")]),a("el-radio-button",{attrs:{label:"5Y",size:"mini"}},[t._v("5Y")]),a("el-radio-button",{attrs:{label:"MAX",size:"mini"}},[t._v("max")]),a("el-radio-button",{attrs:{label:"è‡ªå®šä¹‰",size:"mini"}},[t._v("è‡ªå®šä¹‰")])],1),"è‡ªå®šä¹‰"==t.period?a("el-date-picker",{staticStyle:{"padding-bottom":"5px"},attrs:{"picker-options":t.tradeDateOption,type:"daterange","unlink-panels":"",placeholder:"é€‰æ‹©æ—¥æœŸ",size:"mini","value-format":"yyyy-MM-dd","start-placeholder":"å¼€å§‹æ—¥æœŸ","end-placeholder":"ç»“æŸæ—¥æœŸ"},on:{change:t.onDateRangeChanged},model:{value:t.dateRange,callback:function(e){t.dateRange=e},expression:"dateRange"}}):t._e()],1)])]),a("th-section",{staticStyle:{"margin-top":"24px"},attrs:{title:"èµ„äº§åˆ†å¸ƒ",level:"2"}},[a("el-row",{staticStyle:{"margin-top":"10px"},attrs:{gutter:20}},[a("el-col",{attrs:{span:8}},[a("p",{staticClass:"section-sub-header",staticStyle:{display:"inline-block","font-weight":"normal",color:"#999"}},[t._v(" æŠ¥å‘ŠæœŸ ")]),a("p",{staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-select",{attrs:{size:"mini"},on:{change:t.assetChangePeriodChange},model:{value:t.assetChangePeriod,callback:function(e){t.assetChangePeriod=e},expression:"assetChangePeriod"}},t._l(t.holdingDetailsPeriodOptions,(function(t){return a("el-option",{key:"holdingDetailsPeriod_"+t,attrs:{label:t,value:t}})})),1)],1),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.assetChangePeriodLoading,expression:"assetChangePeriodLoading"}],staticClass:"chart-holder",staticStyle:{"margin-top":"12px"}},[a("fof-e-charts",{attrs:{option:t.assetChangePeriodOptions,toFile:"èµ„äº§åˆ†å¸ƒ",msg:t.assetChangePeriodResponseMsg,dialogTitle:"èµ„äº§åˆ†å¸ƒ"}})],1)]),a("el-col",{attrs:{span:16}},[a("p",{staticClass:"section-sub-header",staticStyle:{display:"inline-block","font-weight":"normal",color:"#999"}},[t._v(" èµ„äº§ç±»åˆ« ")]),a("p",{staticClass:"section-sub-header",staticStyle:{display:"inline-block","margin-left":"10px"}},[a("el-select",{staticStyle:{width:"160px"},attrs:{size:"mini"},on:{change:t.assetChangeAssetChange},model:{value:t.assetChangeAsset,callback:function(e){t.assetChangeAsset=e},expression:"assetChangeAsset"}},[a("el-option",{attrs:{value:"è‚¡ç¥¨",label:"è‚¡ç¥¨"}}),a("el-option",{attrs:{value:"å€ºåˆ¸",label:"å€ºåˆ¸"}}),a("el-option",{attrs:{value:"çŽ°é‡‘",label:"çŽ°é‡‘"}}),a("el-option",{attrs:{value:"å…¶å®ƒ",label:"å…¶å®ƒ"}})],1)],1),a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.assetChangeAssetLoading,expression:"assetChangeAssetLoading"}],staticClass:"chart-holder",staticStyle:{"margin-top":"4px"}},[a("fof-e-charts",{attrs:{option:t.assetChangeAssetOptions,toFile:"èµ„äº§ç±»åˆ«",msg:t.assetChangeAssetResponseMsg,dialogTitle:"èµ„äº§ç±»åˆ«"}})],1)])],1)],1),a("th-section",{attrs:{title:"æŒè‚¡é›†ä¸­åº¦",level:"2"}},[a("div",{directives:[{name:"loading",rawName:"v-loading",value:t.topHoldingLoading,expression:"topHoldingLoading"}],staticClass:"chart-holder",staticStyle:{"margin-top":"12px"}},[a("fof-e-charts",{attrs:{option:t.topHoldingOptions,toFile:"æŒè‚¡é›†ä¸­åº¦",msg:t.topHoldingResponseMsg,dialogTitle:"æŒè‚¡é›†ä¸­åº¦"}})],1)]),a("th-section",{attrs:{title:"è¡Œä¸šé…ç½®å¯¹æ¯”",level:"2"},scopedSlots:t._u([{key:"action",fn:function(){return[a("el-select",{staticStyle:{width:"120px"},attrs:{size:"mini"},on:{change:t.industryConfigurationPeriodChange},model:{value:t.industryConfigurationPeriod,callback:function(e){t.industryConfigurationPeriod=e},expression:"industryConfigurationPeriod"}},t._l(t.holdingDetailsPeriodOptions,(function(t){return a("el-option",{key:"holdingDetailsPeriod_"+t,attrs:{label:t,value:t}})})),1)]},proxy:!0}])},[a("div",{staticClass:"chart-holder",staticStyle:{"margin-top":"12px"}},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.industryConfigurationsLoading,expression:"industryConfigurationsLoading"}],staticClass:"th-el-table",attrs:{size:"mini",data:t.industryConfigurations,"max-height":"450px","empty-text":t.industryConfigurationResponseMsg}},t._l(t.industryConfigurationCols,(function(t,e){return a("el-table-column",{key:"industryConfigurationCol_"+e,attrs:{prop:t.prop,label:t.label,"min-width":"100px","show-overflow-tooltip":""}})})),1)],1)]),a("th-section",{attrs:{title:"é‡ä»“æŒè‚¡å¯¹æ¯”",level:"2"},scopedSlots:t._u([{key:"action",fn:function(){return[a("el-select",{staticStyle:{width:"120px"},attrs:{size:"mini"},on:{change:t.heavyHoldingPeriodChange},model:{value:t.heavyHoldingPeriod,callback:function(e){t.heavyHoldingPeriod=e},expression:"heavyHoldingPeriod"}},t._l(t.holdingDetailsPeriodOptions,(function(t){return a("el-option",{key:"heavyHoldingPeriod_"+t,attrs:{label:t,value:t}})})),1)]},proxy:!0}])},[a("el-table",{directives:[{name:"loading",rawName:"v-loading",value:t.heavyHoldingLoading,expression:"heavyHoldingLoading"}],staticClass:"th-el-table",attrs:{size:"mini",data:t.heavyHoldings,"max-height":"500px","empty-text":t.heavyHoldingResponseMsg}},t._l(t.heavyHoldingBigCols,(function(e,i){return a("el-table-column",{key:"heavyHoldingBigCol_"+i,attrs:{label:e.label,align:"center"}},t._l(t.heavyHoldingCols,(function(e,s){return s&lt;3*(i+1)&amp;&amp;s&gt;=3*i?a("el-table-column",{key:"heavyHoldingCol_"+s,attrs:{prop:e.prop,label:e.label,"min-width":"100px","show-overflow-tooltip":""}}):t._e()})),1)})),1)],1)],1)],1)},te=[];const ee=[{key:"stock",name:"è‚¡ç¥¨"},{key:"bond",name:"å€ºåˆ¸"},{key:"cash",name:"çŽ°é‡‘"},{key:"other",name:"å…¶å®ƒ"}];var ae={name:"portfolio-compare",props:{products:Array},components:{fofECharts:w["a"]},data(){return{isVisible:!1,lastParamObj:null,assetChangePeriodResponseMsg:null,assetChangeAssetResponseMsg:null,topHoldingResponseMsg:null,industryConfigurationResponseMsg:null,heavyHoldingResponseMsg:null,industryConfigurationPeriod:y["a"].getSeasonEndDateString((new Date).getTime()),heavyHoldingPeriod:y["a"].getSeasonEndDateString((new Date).getTime()),assetChangePeriod:y["a"].getSeasonEndDateString((new Date).getTime()),assetChangeAsset:"è‚¡ç¥¨",assetChangePeriodLoading:!1,assetChangeAssetLoading:!1,topHoldingLoading:!1,industryConfigurationsLoading:!1,heavyHoldingLoading:!1,industryConfigurations:null,industryConfigurationCols:null,heavyHoldings:null,heavyHoldingBigCols:null,heavyHoldingCols:null,period:"3Y",startDate:y["a"].getYearsAgoString(3),endDate:y["a"].getNowDateString(),dateRange:[],tradeDateOption:{disabledDate:t=&gt;t.getTime()&gt;Date.now()},pickerOptions:y["a"].getDatePickerShortcutsOption,holdingDetailsPeriodOptions:[],assetChangePeriodOptions:null,assetChangeAssetOptions:null,topHoldingOptions:null}},computed:{paramObj(){return{products:this.products}}},watch:{paramObj:{deep:!0,immediate:!0,handler(t){this.loadData()}}},methods:{assetChangePeriodChange(t){this.loadAssetChangePeriod()},assetChangeAssetChange(t){this.loadAssetChangeAsset()},industryConfigurationPeriodChange(t){this.loadIndustryConfiguration()},heavyHoldingPeriodChange(t){this.loadHeavyHolding()},formatNumber(t,e,a){return Y["a"].formatNumberDash(a)},visibilityChanged(t,e){this.isVisible=t,this.loadData()},async loadData(t=!1){t&amp;&amp;(this.lastParamObj=Math.random().toString()),this.isVisible&amp;&amp;JSON.stringify(this.lastParamObj)!=JSON.stringify(this.paramObj)&amp;&amp;(this.lastParamObj=f.a.cloneDeep(this.paramObj),await this.loadMutualFund())},async loadMutualFund(){this.products&amp;&amp;this.products.length&gt;0&amp;&amp;(this.loadHoldingDetailsPeriod(),this.loadAssetChangeAsset(),this.loadTopHoldingConcentration())},async loadHoldingDetailsPeriod(){const t=[];this.products.forEach(e=&gt;{const a=new x["b"].FundReportPeriod;a.setWindCode(e.windCode),t.push(this.$fundEvalService.getFundEvaluationData(a.toRequestBody()))});const e=await Promise.all(t);this.holdingDetailsPeriodOptions=[],e.forEach(t=&gt;{if(t&amp;&amp;0==t.errorNo){let e=t.result;this.holdingDetailsPeriodOptions=this.holdingDetailsPeriodOptions.concat(e.filter(t=&gt;!this.holdingDetailsPeriodOptions.includes(t)))}}),this.holdingDetailsPeriodOptions=this.holdingDetailsPeriodOptions.sort((t,e)=&gt;e.localeCompare(t)),this.holdingDetailsPeriodOptions&amp;&amp;this.holdingDetailsPeriodOptions.length&gt;0&amp;&amp;(this.assetChangePeriod=this.holdingDetailsPeriodOptions[0],this.industryConfigurationPeriod=this.holdingDetailsPeriodOptions[0],this.heavyHoldingPeriod=this.holdingDetailsPeriodOptions[0],this.loadAssetChangePeriod(),this.loadIndustryConfiguration(),this.loadHeavyHolding())},async loadAssetChangePeriod(){this.assetChangePeriodLoading=!0;const t=[];this.products.forEach(e=&gt;{const a=new x["b"].AssetChange;a.setWindCode(e.windCode),a.setStart(this.assetChangePeriod),a.setEnd(this.assetChangePeriod),t.push(this.$fundEvalService.getFundEvaluationData(a.toRequestBody()))});const e=await Promise.all(t);this.refreshAssetChangePeriodChart(e),this.assetChangePeriodLoading=!1},async loadAssetChangeAsset(){this.assetChangeAssetLoading=!0;const t=[];this.products.forEach(e=&gt;{const a=new x["b"].AssetChange;a.setWindCode(e.windCode),a.setStart(this.startDate),a.setEnd(this.endDate),t.push(this.$fundEvalService.getFundEvaluationData(a.toRequestBody()))});const e=await Promise.all(t);this.refreshAssetChangeAssetChart(e),this.assetChangeAssetLoading=!1},async loadTopHoldingConcentration(){this.topHoldingLoading=!0;const t=[];this.products.forEach(e=&gt;{const a=new x["b"].StockConcentration;a.setWindCode(e.windCode),a.setStart(this.startDate),a.setEnd(this.endDate),t.push(this.$fundEvalService.getFundEvaluationData(a.toRequestBody()))});const e=await Promise.all(t);this.refreshHoldingConcentrationChart(e),this.topHoldingLoading=!1},async loadIndustryConfiguration(){this.industryConfigurationsLoading=!0;const t=[];this.products.forEach(e=&gt;{const a=new x["b"].SectorConcentration;a.setWindCode(e.windCode),a.setStart(this.industryConfigurationPeriod),a.setEnd(this.industryConfigurationPeriod),a.setTopN(10),t.push(this.$fundEvalService.getFundEvaluationData(a.toRequestBody()))});const e=await Promise.all(t);this.refreshIndustryConfiguration(e),this.industryConfigurationsLoading=!1},async loadHeavyHolding(){this.heavyHoldingLoading=!0;const t=[];this.products.forEach(e=&gt;{const a=new x["b"].HoldingsDetail;a.setWindCode(e.windCode),a.setReportDate(this.heavyHoldingPeriod),t.push(this.$fundEvalService.getFundEvaluationData(a.toRequestBody()))});const e=await Promise.all(t);this.refreshHeavyHolding(e),this.heavyHoldingLoading=!1},onPeriodChange(t){let e=null;"è‡ªå®šä¹‰"!=t?(e="1Y"==t?y["a"].getYearsAgoString(1):"3Y"==t?y["a"].getYearsAgoString(3):"5Y"==t?y["a"].getYearsAgoString(5):null,this.startDate=e,this.endDate=y["a"].getNowDateString(),this.products&amp;&amp;this.products.length&gt;0&amp;&amp;(this.loadAssetChangeAsset(),this.loadTopHoldingConcentration())):this.startDate&amp;&amp;this.endDate?this.dateRange=[this.startDate,this.endDate]:this.dateRange=[]},onDateRangeChanged(){this.startDate=this.dateRange[0],this.endDate=this.dateRange[1],this.products&amp;&amp;this.products.length&gt;0&amp;&amp;(this.loadAssetChangeAsset(),this.loadTopHoldingConcentration())},refreshAssetChangePeriodChart(t){this.assetChangePeriodResponseMsg=null;let e=!1;if(t.forEach(t=&gt;{t&amp;&amp;(0==t.errorNo&amp;&amp;(e=!0),t.message&amp;&amp;(this.assetChangePeriodResponseMsg=t.message))}),e&amp;&amp;t&amp;&amp;t.length&gt;0){let e=new W["c"]("",ee);const a=this.products;t.forEach((t,i)=&gt;{if(t){const s=t.result;if(s){let t={};Object.keys(s).forEach((function(e){let a=s[e];Object.entries(a).map(([a,i])=&gt;{t[e]=i})})),e.appendData(a[i].productShortName,t)}}}),this.assetChangePeriodOptions=e.option}else this.assetChangePeriodOptions=null},refreshAssetChangeAssetChart(t){this.assetChangeAssetResponseMsg=null;let e=!1;if(t.forEach(t=&gt;{t&amp;&amp;(0==t.errorNo&amp;&amp;(e=!0),t.message&amp;&amp;(this.assetChangeAssetResponseMsg=t.message))}),e&amp;&amp;t&amp;&amp;t.length&gt;0){let e=new W["u"]("");const a=this.assetChangeAsset,i=this.products;t.forEach((t,s)=&gt;{if(t){const r=t.result;r&amp;&amp;Object.keys(r).forEach((function(t){if(t==a){let a=r[t];const o=Object.entries(a).map(([t,e])=&gt;({date:t,value:e}));e.appendSeries(i[s].productShortName,o)}}))}}),this.assetChangeAssetOptions=e.option}else this.assetChangeAssetOptions=null},refreshHoldingConcentrationChart(t){this.topHoldingResponseMsg=null;let e=!1;if(t.forEach(t=&gt;{t&amp;&amp;(0==t.errorNo&amp;&amp;(e=!0),t.message&amp;&amp;(this.topHoldingResponseMsg=t.message))}),e&amp;&amp;t&amp;&amp;t.length&gt;0){let e=new W["m"]("");t.forEach((t,a)=&gt;{if(t){const i=t.result;if(i){const t=Object.entries(i).map(([t,e])=&gt;({date:t,value:Y["a"].roundPercent(e,2)}));t.length&gt;1&amp;&amp;t.sort((t,e)=&gt;t.date.localeCompare(e.date)),e.appendSeries(this.products[a].productShortName,t)}}}),this.topHoldingOptions=e.option}else this.topHoldingOptions=null},refreshIndustryConfiguration(t){this.industryConfigurations=null,this.industryConfigurationCols=null,this.industryConfigurationResponseMsg=null;let e=!1;if(t.forEach(t=&gt;{t&amp;&amp;(0==t.errorNo&amp;&amp;(e=!0),t.message&amp;&amp;(this.industryConfigurationResponseMsg=t.message))}),e&amp;&amp;t&amp;&amp;t.length&gt;0){let e=[],a=[],i=[];if(t.forEach((t,e)=&gt;{if(t){const s=t.result;if(s){i.push({prop:"è¡Œä¸šåç§°_"+this.products[e].id,label:""}),i.push({prop:"å&nbsp;è‚¡ç¥¨å¸‚å€¼æ¯”_"+this.products[e].id,label:this.products[e].productShortName});let t=[];for(const a of Object.keys(s)){const i=s[a];for(const s of Object.keys(i)){const r=i[s];let o={sector:a,value:Y["a"].roundPercent(r,2),sectorProp:"è¡Œä¸šåç§°_"+this.products[e].id,valueProp:"å&nbsp;è‚¡ç¥¨å¸‚å€¼æ¯”_"+this.products[e].id};t.push(o)}}t.sort((t,e)=&gt;e.value-t.value),a.push(t)}}}),a&amp;&amp;a.length&gt;0){for(let t=0;t&lt;=a[0].length;t++){let i={};a.forEach(e=&gt;{e[t]&amp;&amp;(i[e[t].sectorProp]=e[t].sector,i[e[t].valueProp]=e[t].value)}),e.push(i)}this.industryConfigurations=e,this.industryConfigurationCols=i}}},refreshHeavyHolding(t){this.heavyHoldings=null,this.heavyHoldingCols=null,this.heavyHoldingBigCols=null,this.heavyHoldingResponseMsg=null;let e=!1;if(t.forEach(t=&gt;{t&amp;&amp;(0==t.errorNo&amp;&amp;(e=!0),t.message&amp;&amp;(this.heavyHoldingResponseMsg=t.message))}),e&amp;&amp;t&amp;&amp;t.length&gt;0){let e=[],a=[],i=[],s=[];if(t.forEach((t,e)=&gt;{if(t){const r=t.result;if(r&amp;&amp;r.length&gt;0){i.push({label:this.products[e].productShortName}),s.push({prop:"è‚¡ç¥¨åç§°_"+this.products[e].id,label:"è‚¡ç¥¨åç§°"}),s.push({prop:"å&nbsp;å‡€å€¼æ¯”_"+this.products[e].id,label:"å&nbsp;å‡€å€¼æ¯”(%)"}),s.push({prop:"ç›¸å¯¹ä¸ŠæœŸæ¶¨è·Œå¹…_"+this.products[e].id,label:"ç›¸å¯¹ä¸ŠæœŸæ¶¨è·Œå¹…(%)"});let t=[];r.forEach((a,i)=&gt;{let s={name:a["å“ç§åç§°"],nav:this.formatNumber(null,null,a["å&nbsp;åŸºé‡‘å‡€å€¼æ¯”ä¾‹(%)"]),upDown:this.formatNumber(null,null,a["åŒºé—´æ¶¨è·Œå¹…"]),nameProp:"è‚¡ç¥¨åç§°_"+this.products[e].id,navProp:"å&nbsp;å‡€å€¼æ¯”_"+this.products[e].id,upDownProp:"ç›¸å¯¹ä¸ŠæœŸæ¶¨è·Œå¹…_"+this.products[e].id};t.push(s)}),t.sort((t,e)=&gt;e.nav-t.nav),a.push(t.slice(0,10))}}}),a&amp;&amp;a.length&gt;0){for(let t=0;t&lt;=a[0].length;t++){let i={};a.forEach(e=&gt;{e[t]&amp;&amp;(i[e[t].nameProp]=e[t].name,i[e[t].navProp]=e[t].nav,i[e[t].upDownProp]=e[t].upDown)}),e.push(i)}this.heavyHoldings=e,this.heavyHoldingCols=s,this.heavyHoldingBigCols=i}}}}},ie=ae,se=(a("9933"),Object(A["a"])(ie,Zt,te,!1,null,"4c484bd2",null)),re=se.exports,oe=a("c367"),ne=a("bdff"),le={name:"product-compare-detail",props:{},components:{portfolioCompare:re,tfPageHeader:r["a"],tfSkeleton:o["a"],chosenProducts:c["a"],productDetailNavi:l["a"],productKeywordSearch:n["a"],productComparePerformance:qt,analysis:Gt["a"],editProductBenchmark:ne["a"]},data(){return{tryFetchTimes:0,timeout:null,toc:[],breadcrumbs:[{to:"/productAnalysisNew",name:"åŸºé‡‘åˆ†æž"},{to:"",name:"åŸºé‡‘æ¯”è¾ƒ"}],keyword:null,compareIds:null,compareProducts:null,benchmarks:null,isLoading:!1,isReady:!1,showEditBenchmark:!1,product:null}},mounted(){let t=this.$route.params.compareIds||this.$route.query.compareIds;if(null!=t&amp;&amp;0!=t.length||(t=JSON.parse(localStorage.getItem("compareIds")||"[]")),null==t||t.length&lt;=0)return this.$message.warning("åŸºé‡‘æ¯”è¾ƒæœªé€‰æ‹©äº§å“"),void this.$router.push("/productAnalysisNew");this.compareIds=t,this.$nextTick(()=&gt;{this.loadCompareProducts()})},computed:{productTypes(){return oe["a"].getProductTypes(this.compareProducts)},pureMutualFunds(){return this.productTypes&amp;&amp;"PURE_MUTUAL_FUND"==this.productTypes}},watch:{compareProducts(t){}},methods:{editBenchmark(t){this.compareProducts.forEach(e=&gt;{e.id==t&amp;&amp;(this.product=e)}),this.$nextTick(()=&gt;{this.showEditBenchmark=!0})},onUpdateBenchmarkSuccess(){this.showEditBenchmark=!1,this.loadCompareProducts()},reloadCompare(t){this.compareIds=t.map(t=&gt;t.id),this.$nextTick(()=&gt;{this.loadCompareProducts()})},getIconCls(t){let e="";switch(t){case"åŸºé‡‘æ¦‚è§ˆ":e="el-icon-pie-chart";break;case"ä¸šç»©è¡¨çŽ°":e="el-icon-s-data";break;case"ä¸šç»©å½’å›&nbsp;":e="el-icon-search";break;case"æŒä»“åˆ†æž":e="el-icon-data-analysis";break;default:e="el-icon-pie-chart"}return e},normalizeItemName(t){return"ä¸šç»©æŒç»­èƒ½åŠ›-æ¨ªæˆªé¢åˆ†æžæ³•"==t?t="ä¸šç»©æŒç»­èƒ½åŠ›":"å‡€å€¼èµ°åŠ¿ &amp; æ”¶ç›Šåˆ†å¸ƒ"==t&amp;&amp;(t="å‡€å€¼èµ°åŠ¿"),t},getToc(){if(!document||!document.getElementById("contentDiv"))return;let t,e=document.getElementById("contentDiv").getElementsByTagName("*"),a=[];for(let i=0,s=e.length;i&lt;s;i++){let s=e[i];if("H1"==s.tagName||"H2"==s.tagName)if(s.id||(s.id="manualDomId_"+Math.random().toString().substr(2)),"H1"==s.tagName){let e=s.innerText;e=this.normalizeItemName(e),t={name:e,anchor:s.id,iconCls:this.getIconCls(e),items:[]},a.push(t)}else"H2"==s.tagName&amp;&amp;t.items.push({name:this.normalizeItemName(s.innerText),anchor:s.id})}return a},refreshToc(){this.timeout=setInterval(()=&gt;{let t=this.getToc();!t||t.length==this.toc.length&amp;&amp;JSON.stringify(t)==JSON.stringify(this.toc)||(this.toc=t),this.tryFetchTimes++&gt;5&amp;&amp;clearInterval(this.timeout)},1e3)},async loadCompareProducts(){this.compareProducts=[];let t=this.compareIds||[];this.isLoading=!0,this.isReady=!1;let e=[];t&amp;&amp;t.length&gt;0&amp;&amp;(e=await this.$productService.getProductList(t));let a={};e&amp;&amp;e.forEach(t=&gt;{a[t.id]=t});let i=t.map(t=&gt;a[t]).filter(t=&gt;t);this.$nextTick(()=&gt;{this.compareProducts=i}),this.isLoading=!1,this.isReady=!0,this.$nextTick(()=&gt;{let t=this.getToc();this.toc=t,this.refreshToc()})},onSelectItem(t){this.$router.push({path:"/productAnalysisNew/"+t.id})}}},ce=le,he=Object(A["a"])(ce,i,s,!1,null,"dc318fa0",null);e["default"]=he.exports},ff5d:function(t,e,a){"use strict";a("4f6c8")}}]);</pre></body></html>