|
|
@@ -260,25 +260,25 @@ let app = new Vue({
|
|
|
post('/ierp/kapi/v2/mdnb/mdnb_xmkb/mdnb_manager_preinvest/tqcebjfx', value).then(res => {
|
|
|
let dataList = this.classify(res.data.rows[0].mdnb_entryentity, 'mdnb_textfield1')
|
|
|
// 传统产业分析
|
|
|
- dataList[0].data.forEach((item,index)=>{
|
|
|
+ dataList[0].data.forEach((item, index) => {
|
|
|
left7[index].num = item.mdnb_integerfield13
|
|
|
left7[index].y = item.mdnb_amountfield8
|
|
|
})
|
|
|
this.initChartL5()
|
|
|
// 战略性新兴产业
|
|
|
- dataList[1].data.forEach((item,index)=>{
|
|
|
+ dataList[1].data.forEach((item, index) => {
|
|
|
left8[index].num = item.mdnb_integerfield13
|
|
|
left8[index].y = item.mdnb_amountfield8
|
|
|
})
|
|
|
this.initChartL6()
|
|
|
// 特色优势产业
|
|
|
- dataList[2].data.forEach((item,index)=>{
|
|
|
+ dataList[2].data.forEach((item, index) => {
|
|
|
left9[index].num = item.mdnb_integerfield13
|
|
|
left9[index].y = item.mdnb_amountfield8
|
|
|
})
|
|
|
this.initChartL7()
|
|
|
// 公共基础等产业
|
|
|
- dataList[3].data.forEach((item,index)=>{
|
|
|
+ dataList[3].data.forEach((item, index) => {
|
|
|
left10[index].num = item.mdnb_integerfield13
|
|
|
left10[index].y = item.mdnb_amountfield8
|
|
|
})
|
|
|
@@ -382,7 +382,7 @@ let app = new Vue({
|
|
|
pageSize: 1000
|
|
|
}
|
|
|
post('/ierp/kapi/v2/mdnb/mdnb_xmkb/mdnb_manager_preinvest/tqzdlxzb', value).then(res => {
|
|
|
- console.log(res,'??????????')
|
|
|
+ // console.log(res,'??????????')
|
|
|
// let dataList = res.data.rows[0]
|
|
|
// left1[0] = dataList.mdnb_amountfield
|
|
|
// left1[1] = dataList.mdnb_amountfield1
|
|
|
@@ -424,19 +424,19 @@ let app = new Vue({
|
|
|
})
|
|
|
},
|
|
|
// 根据key分组
|
|
|
- classify (arr) {
|
|
|
+ classify (arr, k) {
|
|
|
let map = {};
|
|
|
let myArr = [];
|
|
|
for (let i = 0; i < arr.length; i++) {
|
|
|
- if (!map[arr[i].mdnb_textfield1]) {
|
|
|
+ if (!map[arr[i][k]]) {
|
|
|
myArr.push({
|
|
|
- mdnb_textfield1: arr[i].mdnb_textfield1,
|
|
|
+ mdnb_textfield1: arr[i][k],
|
|
|
data: [arr[i]]
|
|
|
});
|
|
|
- map[arr[i].mdnb_textfield1] = arr[i]
|
|
|
+ map[arr[i][k]] = arr[i]
|
|
|
} else {
|
|
|
for (let j = 0; j < myArr.length; j++) {
|
|
|
- if (arr[i].mdnb_textfield1 === myArr[j].mdnb_textfield1) {
|
|
|
+ if (arr[i][k] === myArr[j][k]) {
|
|
|
myArr[j].data.push(arr[i]);
|
|
|
break
|
|
|
}
|
|
|
@@ -1043,15 +1043,13 @@ let app = new Vue({
|
|
|
},
|
|
|
initChartBall () {
|
|
|
let myChart = echarts.init(this.$refs['echartBall'])
|
|
|
- var value = common2[0];
|
|
|
- var data = [value];
|
|
|
option = {
|
|
|
backgroundColor: "#042148",
|
|
|
series: [
|
|
|
{
|
|
|
type: "liquidFill",
|
|
|
radius: "80%",
|
|
|
- data: [0.45, 0.5, 0.4],
|
|
|
+ data: [common2[0], common2[0] + 0.05, common2[0] - 0.05],
|
|
|
// data: [
|
|
|
// {}
|
|
|
// ],
|
|
|
@@ -1751,7 +1749,7 @@ let app = new Vue({
|
|
|
chart.tooltip.refresh(point);
|
|
|
}
|
|
|
},
|
|
|
- initChartL4 () {
|
|
|
+ initChartL4 (dataList) {
|
|
|
let myChart = echarts.init(document.getElementById("echartL4"));
|
|
|
let option = {
|
|
|
grid: {
|
|
|
@@ -1884,6 +1882,16 @@ let app = new Vue({
|
|
|
myChart.on('click', function (param) {
|
|
|
that.titleName = param.name
|
|
|
that.echartEnterpriseShow = true
|
|
|
+ let findData = dataList.find(item => {
|
|
|
+ return item.mdnb_textfield == param.name
|
|
|
+ })
|
|
|
+ common1[0] = findData.mdnb_amountfield18
|
|
|
+ common1[1] = findData.mdnb_amountfield20
|
|
|
+ common1[2] = findData.mdnb_amountfield19
|
|
|
+ common1[3] = findData.mdnb_amountfield26
|
|
|
+ common1[4] = findData.mdnb_amountfield27
|
|
|
+ common1[5] = findData.mdnb_amountfield25
|
|
|
+ common2[0] = findData.mdnb_decimalfield6
|
|
|
setTimeout(() => {
|
|
|
that.initChartBall()
|
|
|
});
|