hailu
2023-11-23 204cae9df06661ef0013cb64510777ed997cd8d3
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d2138e7"],{acd3:function(t,e,n){"use strict";n.r(e);var i=function(){var t=this,e=t._self._c;return e("div",[t.tableList.length>0?e("Card",{staticStyle:{"margin-top":"3px"}},[e("div",{ref:"conversion",style:{width:"100%",height:"500px"}})]):t._e(),e("Card",{staticStyle:{"margin-top":"3px"}},[e("div",{staticClass:"rentScrollOut",staticStyle:{"margin-top":"12px"}},[e("Table",{attrs:{border:"",columns:t.tableListColumns,data:t.tableList,loading:t.loading,"max-height":"600"}}),e("div",{staticStyle:{"margin-top":"12px"}},[e("Page",{staticStyle:{"text-align":"right"},attrs:{current:t.pageIndex,total:t.TotalItems,"page-size":t.pageSize,"show-elevator":""},on:{"on-change":t.changePageIndex}})],1)],1)])],1)},a=[],o=(n("313e"),n("66df")),s={data:function(){return{pageIndex:1,TotalItems:0,pageSize:10,tableList:[],orderByFieldName:"",loading:!1}},mounted:function(){this.GetJqjzList()},methods:{GetJqjzList:function(){var t=this;this.loading=!0;var e={pageIndex:this.pageIndex,pageSize:this.pageSize,orderByFieldName:this.orderByFieldName,orderByType:"desc"};o["a"].request({url:"Rcy/GetJqjzPage",method:"POST",data:e}).then((function(e){e.data.Check?(console.log(e.data),t.tableList=e.data.Data.Items,t.TotalItems=e.data.Data.TotalItems,t.loading=!1,setTimeout((function(){t.getCharts()}),100)):(t.tableList=[],t.TotalItems=0,t.loading=!1)})).catch((function(e){t.tableList=[],t.TotalItems=0,t.loading=!1,console.log(e)}))},getCharts:function(){for(var t=[],e=["#1f77b4","#aec7e8","#ff7f0e","#ffbb78","#2ca02c","#98df8a","#d62728","#ff9896","#9467bd","#c5b0d5","#8c564b","#c49c94","#e377c2","#f7b6d2","#7f7f7f","#c7c7c7","#bcbd22","#dbdb8d","#17becf","#9edae5"],n=0;n<this.tableList.length;n++){var i=[];i.push(this.tableList[n].Zml),i.push(this.tableList[n].Zmlzs),i.push(this.tableList[n].Zsr),i.push(e[n]),i.push(this.tableList[n].Cymc),t.push(i)}var a=[{name:"date",index:0,text:"农业产品"},{name:"Zml",index:1,text:"产品总毛利(亿元)"},{name:"Zmlzs",index:2,text:"总毛利增速(%)"},{name:"Zsr",index:3,text:"产品总收入(亿元)"}],o=this.$echarts.init(this.$refs.conversion);o.setOption({legend:{itemHeight:9,bottom:0,data:["产业链-景气矩阵"],textStyle:{color:"black",fontSize:16}},grid:{left:"10%",right:150,top:"18%",bottom:"13%"},tooltip:{axisPointer:{type:"cross"},padding:10,backgroundColor:"#222",borderColor:"#777",borderWidth:1,formatter:function(t){var e=t.value;return'<div style="border-bottom: 1px solid rgba(255,255,255,.3); font-size: 18px;padding-bottom: 7px;margin-bottom: 7px">'+e[4]+"<br></div>"+a[1].text+":"+e[0]+"<br>"+a[2].text+":"+e[1]+"<br>"+a[3].text+":"+e[2]+"<br>"}},xAxis:{type:"value",name:"产品总毛利(亿元)",show:!0,nameLocation:"end",nameGap:16,nameTextStyle:{fontSize:14},splitLine:{show:!1}},yAxis:{type:"value",name:"总毛利增速(%)",nameLocation:"end",nameGap:20,nameTextStyle:{fontSize:16},splitLine:{show:!1}},series:[{name:"产业链-景气矩阵",data:t,type:"scatter",itemStyle:{color:function(t){return t.data[3]}},symbolSize:function(t,e){return t.symbolSize=t[1]>100?100:50,t.symbolSize}}]})},changePageIndex:function(t){this.pageIndex=t,this.GetJqjzList()}},watch:{conversionOption:{handler:function(t,e){this.conversionChart?this.conversionChart.setOption(t):this.conversionChart.setOption(e)},deep:!0}},computed:{tableListColumns:function(){var t=this,e=[];return e.push({title:"序号",key:"Id",render:function(e,n){return e("span",n.index+10*t.pageIndex-9)},width:80,align:"center",fixed:"left"}),e.push({title:"产业名称",key:"Cymc",align:"center",minWidth:150,render:function(t,e){return t("span",e.row.Cymc?e.row.Cymc:"--")}}),e.push({title:"上下游",key:"Sxy",align:"center",minWidth:150,render:function(t,e){return t("span",e.row.Sxy?e.row.Sxy:"--")}}),e.push({title:"产品总毛利(亿元)",key:"Zml",align:"center",minWidth:150,render:function(e,n){return e("span",n.row.Zml?t.CustomMethods.numTo$(n.row.Zml):"--")}}),e.push({title:"总毛利增速(%)",key:"Zmlzs",align:"center",minWidth:150,render:function(e,n){return e("span",n.row.Zmlzs?t.CustomMethods.numTo$(n.row.Zmlzs):"--")}}),e.push({title:"产品总收入(亿元)",key:"Zsr",align:"center",minWidth:150,render:function(e,n){return e("span",n.row.Zsr?t.CustomMethods.numTo$(n.row.Zsr):"--")}}),e.push({title:"上市公司家数",key:"Ssgssl",align:"center",minWidth:150,render:function(e,n){return e("span",n.row.Ssgssl?t.CustomMethods.numTo$(n.row.Ssgssl,0):"--")}}),e}}},r=s,l=n("2877"),d=Object(l["a"])(r,i,a,!1,null,"359fba07",null);e["default"]=d.exports}}]);