hailu
2023-11-23 204cae9df06661ef0013cb64510777ed997cd8d3
1
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-2d0e93a3"],{"8d45":function(t,e,a){"use strict";a.r(e);var n=function(){var t=this,e=t._self._c;return e("div",[e("Card",{staticStyle:{"margin-top":"3px"}},[e("div",{staticClass:"map"},[e("div",{style:{width:"100%",height:"500px"},attrs:{id:"regionCharts"}}),e("div",{staticClass:"rentScrollOut table",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)},i=[],r=(a("7f7f"),a("313e"),a("66df")),o={data:function(){return{pageIndex:1,TotalItems:0,pageSize:10,tableList:[],orderByFieldName:"",loading:!1,mapList:[]}},mounted:function(){this.GetJqjzList(),this.getGsxqMapData()},methods:{GetJqjzList:function(){var t=this;this.loading=!0;var e={pageIndex:this.pageIndex,pageSize:this.pageSize,orderByFieldName:this.orderByFieldName,orderByType:"desc"};r["a"].request({url:"Rcy/GetGsxqPage",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):(t.tableList=[],t.TotalItems=0,t.loading=!1)})).catch((function(e){t.tableList=[],t.TotalItems=0,t.loading=!1,console.log(e)}))},changePageIndex:function(t){this.pageIndex=t,this.GetJqjzList()},drawregionCharts:function(){for(var t=[],e=0;e<this.mapList.length;e++){var a=this.mapList[e];t.push({name:a.Name,value:a.Value,label:{normal:{show:!0,formatter:function(t){return t.name+"\n"+t.value}}}})}var n={tooltip:{trigger:"item",formatter:function(t){return"名称:".concat(t.name," <br/>").concat(t.value?t.value:0)}},visualMap:{left:"left",top:"bottom",text:["高","低"],inRange:{color:["#e0ffff","#006edd"]},show:!0},series:[{name:"信息量",type:"map",mapType:"china",roam:!0,zoom:1.25,itemStyle:{normal:{label:{show:!0}},emphasis:{label:{show:!0}}},geoIndex:0,data:t}]},i=this.$echarts.init(document.getElementById("regionCharts"));console.log(i),i.setOption(n),this.$nextTick((function(){i.resize()}))},getGsxqMapData:function(){var t=this;r["a"].request({url:"rcy/GetGsxqMapData",method:"POST"}).then((function(e){e.data.Check?(console.log(e.data),t.mapList=e.data.Data,t.drawregionCharts()):t.mapList=[]})).catch((function(e){t.mapList=[]}))}},watch:{},computed:{tableListColumns:function(){var t=this,e=[];return e.push({title:"序号",key:"Id",render:function(e,a){return e("span",a.index+10*t.pageIndex-9)},width:80,align:"center",fixed:"left"}),e.push({title:"企业名称",key:"Qymc",align:"center",minWidth:120,render:function(t,e){return t("span",e.row.Qymc?e.row.Qymc:"--")}}),e.push({title:"员工人数",key:"Ygs",align:"center",width:120,render:function(e,a){return e("span",a.row.Ygs?t.CustomMethods.numTo$(a.row.Ygs,0):"--")}}),e.push({title:"注册资本(万元)",key:"Zczb",align:"center",width:130,render:function(e,a){return e("span",a.row.Zczb?t.CustomMethods.numTo$(a.row.Zczb):"--")}}),e.push({title:"所属行业",key:"Sshy",align:"center",width:150,render:function(t,e){return t("span",e.row.Sshy?e.row.Sshy:"--")}}),e.push({title:"省份",key:"Sf",align:"center",width:150,render:function(t,e){return t("span",e.row.Sf?e.row.Sf:"--")}}),e.push({title:"办公地址",key:"Bgdz",align:"center",minWidth:150,render:function(t,e){return t("span",e.row.Bgdz?e.row.Bgdz:"--")}}),e.push({title:"注册地址",key:"Zcdz",align:"center",minWidth:150,render:function(t,e){return t("span",e.row.Zcdz?e.row.Zcdz:"--")}}),e}}},s=o,l=a("2877"),d=Object(l["a"])(s,n,i,!1,null,"9dce78ca",null);e["default"]=d.exports}}]);