1.31 财务分析,财务数据模块完善,产业链桑基图展示
This commit is contained in:
1
unpackage/dist/build/mp-weixin/components/cyl-view/cyl-view.js
vendored
Normal file
1
unpackage/dist/build/mp-weixin/components/cyl-view/cyl-view.js
vendored
Normal file
@@ -0,0 +1 @@
|
||||
"use strict";const e=require("../../common/vendor.js"),t=require("../../common/assets.js"),n=require("../../uni_modules/lime-echart/static/echarts.min.js"),o={name:"cyl-view",data:()=>({isShow:!1,center_index:0,types:[{title:"上游供应链",count:0,desc:"原材料与供应商",type:"upstream"},{title:"核心企业",count:0,desc:"公司主体与产品",type:"core"},{title:"下游客户",count:0,desc:"客户与终端市场",type:"downstream"}],typeIndex:0,option:{legend:{show:!1},grid:{left:"2%",right:"2%",top:"5%",bottom:"30%"},series:[{type:"sankey",name:"经营现金流",data:[],links:[]}]}}),props:{valueChainAnalysisInfo:Object,upstreamList:Array,coreEnterpriseList:Array,downstreamList:Array,totalNodes:Number,valueChainFlowsList:Array},watch:{valueChainAnalysisInfo(e){this.types[0].count=e.upstream_nodes,this.types[1].count=e.company_nodes,this.types[2].count=e.downstream_nodes},valueChainFlowsList(e){let t=[],n=[],o=[];for(let s of e)-1==o.indexOf(s.source.node_name)&&(o.push(s.source.node_name),t.push({name:s.source.node_name})),n.push({source:s.source.node_name,target:s.target.node_name,value:s.flow_metrics.flow_ratio});this.option.series[0].data=t,this.option.series[0].links=n}},methods:{async init(){const e=await this.$refs.chartRef.init(n);console.log(e),console.log(this.option),e.setOption(this.option)},changeCenterIndex(e){if(this.center_index!=e&&(this.center_index=e,1==e)){let e=this;setTimeout((function(){e.init()}),500)}},clickAction(e){this.$emit("detail",e)}}};if(!Array){e.resolveComponent("l-echart")()}Math;const s=e._export_sfc(o,[["render",function(n,o,s,i,r,c){return e.e({a:e.t(s.totalNodes),b:0==r.center_index?1:"",c:e.o((e=>c.changeCenterIndex(0))),d:1==r.center_index?1:"",e:e.o((e=>c.changeCenterIndex(1))),f:0==r.center_index},0==r.center_index?e.e({g:e.f(r.types,((n,o,s)=>e.e({a:e.t(n.title),b:e.t(n.count),c:e.n("num "+(r.typeIndex==o?n.type:"")),d:e.t(n.desc),e:e.n("contentC flexColumnCenter flex1 "+(r.typeIndex==o?n.type:"")),f:e.o((e=>r.typeIndex=o),o),g:o!=r.types.length-1},o!=r.types.length-1?{h:t._imports_0$6}:{},{i:o}))),h:0==r.typeIndex},0==r.typeIndex?{i:e.f(s.upstreamList,((t,n,o)=>({a:e.t(t.node_name),b:e.t(t.node_description),c:e.t(t.node_type),d:e.t(t.market_share),e:`${t.importance_score}%`,f:e.t(t.importance_score),g:n,h:e.o((e=>c.clickAction(t)),n)})))}:{},{j:1==r.typeIndex},1==r.typeIndex?{k:e.f(s.coreEnterpriseList,((t,n,o)=>({a:e.t(t.node_name),b:e.t(t.node_description),c:e.t(t.node_type),d:e.t(t.market_share),e:`${t.importance_score}%`,f:e.t(t.importance_score),g:n,h:e.o((e=>c.clickAction(t)),n)})))}:{},{l:2==r.typeIndex},2==r.typeIndex?{m:e.f(s.downstreamList,((t,n,o)=>({a:e.t(t.node_name),b:e.t(t.node_description),c:e.t(t.node_type),d:e.t(t.market_share),e:`${t.importance_score}%`,f:e.t(t.importance_score),g:n,h:e.o((e=>c.clickAction(t)),n)})))}:{}):{},{n:1==r.center_index},1==r.center_index?{o:e.sr("chartRef","2cc4c3dc-0")}:{})}]]);wx.createComponent(s);
|
||||
Reference in New Issue
Block a user