소스 검색

颜色修改 企业额度分析修改

zhbyyy 2 년 전
부모
커밋
6321c79e92
2개의 변경된 파일102개의 추가작업 그리고 94개의 파일을 삭제
  1. 33 29
      investmentPort/js/groupData.js
  2. 69 65
      investmentPort/js/investHomeGroup.js

+ 33 - 29
investmentPort/js/groupData.js

@@ -4,7 +4,11 @@ let commonCompany = ["山西焦煤", "晋能控股", "华阳新材", "潞安化
 let left1 = [522.84, 179.39, 621.62]
 let left2 = [0.30, 1323.85]
 // 左中
-let left3 = [[359.91, 400.49, 117.65, 148.96, 34.84, 17.79, 26.15, 26.18, 16.83, 0.00, 43.49, 0.00, 43.39, 76.53, 5.05, 8.59, 0.00, 0.28]]
+let left3 = [
+  [359.91, 400.49, 117.65, 148.96, 34.84, 17.79, 26.15, 26.18, 16.83, 0.00, 43.49, 0.00, 43.39, 76.53, 5.05, 8.59, 0.00, 0.28],
+  [359.91, 400.49, 117.65, 148.96, 34.84, 17.79, 26.15, 26.18, 16.83, 0.00, 43.49, 0.00, 43.39, 76.53, 5.05, 8.59, 0.00, 0.28],
+  [359.91, 400.49, 117.65, 148.96, 34.84, 17.79, 26.15, 26.18, 16.83, 0.00, 43.49, 0.00, 43.39, 76.53, 5.05, 8.59, 0.00, 0.28]
+]
 // 右上
 let left4 = [1363.88, 1198.19, 372, 165.69, 261]
 let left5 = [{
@@ -46,34 +50,34 @@ let left7 = [
     sliced: false,
     selected: false,
   },
-  // {
-  //   name: '火电',
-  //   y: 39.24,
-  //   num: 1,
-  //   sliced: false,
-  //   selected: false,
-  // },
-  // {
-  //   name: '冶金',
-  //   y: 38.85,
-  //   num: 6,
-  //   sliced: false,
-  //   selected: false,
-  // },
-  // {
-  //   name: '焦化',
-  //   y: 16.49,
-  //   num: 4,
-  //   sliced: false,
-  //   selected: false,
-  // },
-  // {
-  //   name: '其他',
-  //   y: 14.19,
-  //   num: 5,
-  //   sliced: false,
-  //   selected: false,
-  // }
+  {
+    name: '火电',
+    y: 39.24,
+    num: 1,
+    sliced: false,
+    selected: false,
+  },
+  {
+    name: '冶金',
+    y: 38.85,
+    num: 6,
+    sliced: false,
+    selected: false,
+  },
+  {
+    name: '焦化',
+    y: 16.49,
+    num: 4,
+    sliced: false,
+    selected: false,
+  },
+  {
+    name: '其他',
+    y: 14.19,
+    num: 5,
+    sliced: false,
+    selected: false,
+  }
 ]
 let left8 = [
   {

+ 69 - 65
investmentPort/js/investHomeGroup.js

@@ -12,7 +12,7 @@ let app = new Vue({
       lineCommonCompany: [], //双柱状图弹窗上面的折线图x轴
       commonCompanyAll: [], // 公司包括编码
       changeLine: true,
-      versions: true,
+      versions: false, // 是否使用接口数据数据
       app_token: '',
       centerShow: false, // 中间内容显示
       echartR4Chart: '',// 倒数第二个专用
@@ -222,12 +222,12 @@ let app = new Vue({
           this.getDate6()
 
           // 右边
-          // this.getDate7()
-          // this.getDate8()
-          // this.getDate9()
-          // this.getDate10()
-          // // this.getDate11() // 右下A
-          // this.getDate12()  // 右下B
+          this.getDate7()
+          this.getDate8()
+          this.getDate9()
+          this.getDate10()
+          // this.getDate11() // 右下A
+          this.getDate12()  // 右下B
 
           // 中间
           this.getDate14()
@@ -237,20 +237,26 @@ let app = new Vue({
     },
     // 获取左边企业额度分析
     getDate1 () {
+      let that = this
       return new Promise((resolve, err) => {
         let value = {
           access_token: this.access_token,
           "data": {
             "mdnb_combofield": this.mockData ? 'B' : 'A',
-            "mdnb_datefield": "2023-01-01",
+            "mdnb_datefield": this.year + '-01-01',
           },
           pageSize: 1000
         }
         post('/ierp/kapi/v2/mdnb/mdnb_xmkb/mdnb_manager_preinvest/tqqyedfx', value).then(res => {
           let dataList = res.data.rows[0].entryentity
-          left3[0] = []
+          left3 = [[],[],[]]
           dataList.forEach(item => {
-            left3[0].push(item.mdnb_amountfield25)
+            // 已用额度
+            left3[0].push(that.yuanChange(item.mdnb_amountfield26))
+            // 剩余额度
+            left3[1].push(that.yuanChange(item.mdnb_amountfield27))
+            // 总额度
+            left3[2].push(that.yuanChange(item.mdnb_amountfield25))
           })
           this.initChartL4(dataList)
           resolve(1);
@@ -265,7 +271,7 @@ let app = new Vue({
           access_token: this.access_token,
           "data": {
             "mdnb_combofield": this.mockData ? 'B' : 'A',
-            "mdnb_datefield": "2023-01-01",
+            "mdnb_datefield": this.year + '-01-01',
           },
           pageSize: 1000
         }
@@ -299,7 +305,7 @@ let app = new Vue({
           access_token: this.access_token,
           "data": {
             "mdnb_combofield": this.mockData ? 'B' : 'A',
-            "mdnb_datefield": "2023-01-01",
+            "mdnb_datefield": this.year + '-01-01',
           },
           pageSize: 1000
         }
@@ -312,17 +318,17 @@ let app = new Vue({
           }
           this.initChartL5()
           // 战略性新兴产业
-          // for(let i = 0;i<left8.length;i++){
-          //   left8[i].num = dataList[1].data[i].mdnb_integerfield13
-          //   left8[i].y = dataList[1].data[i].mdnb_amountfield8
-          // }
-          // this.initChartL6()
-          // 特色优势产业
-          // for(let i = 0;i<left9.length;i++){
-          //   left9[i].num = dataList[2].data[i].mdnb_integerfield13
-          //   left9[i].y = dataList[2].data[i].mdnb_amountfield8
-          // }
-          // this.initChartL7()
+          for (let i = 0; i < left8.length; i++) {
+            left8[i].num = dataList[1].data[i].mdnb_integerfield13
+            left8[i].y = dataList[1].data[i].mdnb_amountfield8
+          }
+          this.initChartL6()
+          特色优势产业
+          for (let i = 0; i < left9.length; i++) {
+            left9[i].num = dataList[2].data[i].mdnb_integerfield13
+            left9[i].y = dataList[2].data[i].mdnb_amountfield8
+          }
+          this.initChartL7()
           // 公共基础等产业
           for (let i = 0; i < left10.length; i++) {
             left10[i].num = dataList[3].data[i].mdnb_integerfield13
@@ -341,7 +347,7 @@ let app = new Vue({
           access_token: this.access_token,
           "data": {
             "mdnb_combofield": this.mockData ? 'B' : 'A',
-            "mdnb_datefield": "2023-01-01",
+            "mdnb_datefield": this.year + '-01-01',
           },
           pageSize: 1000
         }
@@ -350,41 +356,41 @@ let app = new Vue({
           // 固定资产进度分布
           // 特别监管
           left13[0][0][2] = dataList.mdnb_integerfield1
-          left13[0][0][3] = dataList.mdnb_amountfield241
+          left13[0][0][3] = this.yuanChange(dataList.mdnb_amountfield241)
           left13[0][1][2] = dataList.mdnb_integerfield3
-          left13[0][1][3] = dataList.mdnb_amountfield5
+          left13[0][1][3] = this.yuanChange(dataList.mdnb_amountfield5)
           left13[0][2][2] = dataList.mdnb_integerfield5
-          left13[0][2][3] = dataList.mdnb_amountfield21
+          left13[0][2][3] = this.yuanChange(dataList.mdnb_amountfield21)
           left13[0][3][2] = dataList.mdnb_integerfield7
-          left13[0][3][3] = dataList.mdnb_amountfield29
+          left13[0][3][3] = this.yuanChange(dataList.mdnb_amountfield29)
           // 备案
           left13[1][0][2] = dataList.mdnb_integerfield2
-          left13[1][0][3] = dataList.mdnb_amountfield341
+          left13[1][0][3] = this.yuanChange(dataList.mdnb_amountfield341)
           left13[1][1][2] = dataList.mdnb_integerfield4
-          left13[1][1][3] = dataList.mdnb_amountfield11
+          left13[1][1][3] = this.yuanChange(dataList.mdnb_amountfield11)
           left13[1][2][2] = dataList.mdnb_integerfield6
-          left13[1][2][3] = dataList.mdnb_amountfield28
+          left13[1][2][3] = this.yuanChange(dataList.mdnb_amountfield28)
           left13[1][3][2] = dataList.mdnb_integerfield8
-          left13[1][3][3] = dataList.mdnb_amountfield30
+          left13[1][3][3] = this.yuanChange(dataList.mdnb_amountfield30)
           // 股权类进度分布
           // 特别监管
           left14[0][0][2] = dataList.mdnb_integerfield11
-          left14[0][0][3] = dataList.mdnb_amountfield2411
+          left14[0][0][3] = this.yuanChange(dataList.mdnb_amountfield2411)
           left14[0][1][2] = dataList.mdnb_integerfield31
-          left14[0][1][3] = dataList.mdnb_amountfield51
+          left14[0][1][3] = this.yuanChange(dataList.mdnb_amountfield51)
           left14[0][2][2] = dataList.mdnb_integerfield51
-          left14[0][2][3] = dataList.mdnb_amountfield211
+          left14[0][2][3] = this.yuanChange(dataList.mdnb_amountfield211)
           left14[0][3][2] = dataList.mdnb_integerfield71
-          left14[0][3][3] = dataList.mdnb_amountfield291
+          left14[0][3][3] = this.yuanChange(dataList.mdnb_amountfield291)
           // 备案
           left14[1][0][2] = dataList.mdnb_integerfield21
-          left14[1][0][3] = dataList.mdnb_amountfield3411
+          left14[1][0][3] = this.yuanChange(dataList.mdnb_amountfield3411)
           left14[1][1][2] = dataList.mdnb_integerfield41
-          left14[1][1][3] = dataList.mdnb_amountfield111
+          left14[1][1][3] = this.yuanChange(dataList.mdnb_amountfield111)
           left14[1][2][2] = dataList.mdnb_integerfield61
-          left14[1][2][3] = dataList.mdnb_amountfield281
+          left14[1][2][3] = this.yuanChange(dataList.mdnb_amountfield281)
           left14[1][3][2] = dataList.mdnb_integerfield81
-          left14[1][3][3] = dataList.mdnb_amountfield301
+          left14[1][3][3] = this.yuanChange(dataList.mdnb_amountfield301)
           this.initChartL10()
           this.initChartL11()
           resolve(1);
@@ -399,7 +405,7 @@ let app = new Vue({
           access_token: this.access_token,
           "data": {
             "mdnb_combofield": this.mockData ? 'B' : 'A',
-            "mdnb_datefield": "2023-01-01",
+            "mdnb_datefield": this.year + '-01-01',
           },
           pageSize: 1000
         }
@@ -423,22 +429,24 @@ let app = new Vue({
           access_token: this.access_token,
           "data": {
             "mdnb_combofield": this.mockData ? 'B' : 'A',
-            "mdnb_datefield": "2023-01-01",
+            "mdnb_datefield": this.year + '-01-01',
           },
           pageSize: 1000
         }
         post('/ierp/kapi/v2/mdnb/mdnb_xmkb/mdnb_manager_preinvest/tqzdlxzb', value).then(res => {
           let dataList2 = this.classify(res.data.rows[0].mdnb_entryentity1, 'mdnb_textfield3')
-          console.log(dataList2,'??????????')
+          // 右边的柱状图
           left12 = []
           dataList2.forEach((item, index) => {
             left12[index] = [[], [], []]
             for (let i = 0; i < 5; i++) {
-              left12[index][0] = item.data[i].mdnb_integerfield10
-              left12[index][1] = item.data[i].mdnb_integerfield12
-              left12[index][2] = item.data[i].mdnb_integerfield9
+              left12[index][0].push(item.data[i].mdnb_integerfield10)
+              left12[index][1].push(item.data[i].mdnb_integerfield12)
+              left12[index][2].push(item.data[i].mdnb_integerfield9)
             }
           })
+          that.initChartL9()
+          // 左边的轮播
           let dataList = []
           dataList2.forEach((item, index) => {
             dataList[index] = []
@@ -448,7 +456,6 @@ let app = new Vue({
           })
           this.storageRecordConfig.data = dataList
           this.storageRecordConfig = { ...this.storageRecordConfig }
-          // center8 = dataList
           resolve(1);
         })
       });
@@ -746,7 +753,6 @@ let app = new Vue({
     leftPenetrateTwo (mdnb_textfield12, mdnb_textfield19, mdnb_textfield15, mdnb_textfield17, mdnb_textfield20) {
       this.boardType = 'left'
       let that = this
-      console.log(mdnb_textfield12, mdnb_textfield19, mdnb_textfield15, mdnb_textfield17, mdnb_textfield20)
       if (that.versions) {
         return new Promise((resolve, err) => {
           let value = {
@@ -907,7 +913,6 @@ let app = new Vue({
     },
     // 中间穿透二级
     centerPenetrateTwo (type, param, orgNum, portType) {
-      console.log(type, param, orgNum, portType, '?????????+++++')
       this.boardType = 'center'
       let that = this
       return new Promise((resolve, err) => {
@@ -997,7 +1002,6 @@ let app = new Vue({
     },
     // 找项目编码
     findProjectCode (a, b, type) {
-      console.log(a, b, type, '????????', this.originalConfig6)
       if (type == 'center') {
         let c = this.originalConfig6.find(item => {
           return item.name == b && item.group == a
@@ -1892,7 +1896,7 @@ let app = new Vue({
       var i = 0;
       let that = this
       var option = {
-        colors: ['#064F78', '#623726', '#955773', , '#B57C63', '#BDB35D', '#73A88E', '#09736D', '#13400B', '#0D3265'],
+        colors: ['#064F78', '#BDB35D', '#623726', '#955773', '#B57C63', '#73A88E', '#09736D', '#13400B', '#0D3265'],
         chart: {
           type: 'pie',
           backgroundColor: 'rgba(0,0,0,0)',
@@ -2133,7 +2137,7 @@ let app = new Vue({
 
       let that = this
       that.left2Chart = Highcharts.chart('echartL3', {
-        colors: ['#064F78', '#623726', '#955773', , '#B57C63', '#BDB35D', '#73A88E', '#09736D', '#13400B', '#0D3265'],
+        colors: ['#064F78', '#BDB35D', '#623726', '#955773', '#B57C63', '#73A88E', '#09736D', '#13400B', '#0D3265'],
         chart: {
           type: 'pie',
           backgroundColor: 'rgba(0,0,0,0)',
@@ -2381,7 +2385,7 @@ let app = new Vue({
           show: true,
           trigger: "axis",
           formatter: data => {
-            return `${data[0].name}<br /><span style="display:inline-block;border-radius:50%; width:7px;height:7px;background-color:${data[0].color.colorStops[0].color}"></span> ${data[0].seriesName}:${data[0].value}亿<br/><span style="display:inline-block;border-radius:50%; width:7px;height:7px;background-color:${data[1].color.colorStops[0].color}"></span> ${data[1].seriesName}:${data[1].value}亿`
+            return `${data[0].name}<br /><span style="display:inline-block;border-radius:50%; width:7px;height:7px;background-color:${data[0].color.colorStops[0].color}"></span> ${data[0].seriesName}:${data[0].value}亿<br/><span style="display:inline-block;border-radius:50%; width:7px;height:7px;background-color:${data[1].color.colorStops[0].color}"></span> ${data[1].seriesName}:${data[1].value+data[0].value}亿`
           },
           axisPointer: {
             // 坐标轴指示器,坐标轴触发有效
@@ -2457,7 +2461,7 @@ let app = new Vue({
         },
         series: [
           {
-            name: "2023年额度",
+            name: "已用额度",
             type: "bar",
             data: left3[0],
             stack: 'Ad',
@@ -2484,7 +2488,7 @@ let app = new Vue({
           {
             name: "总额度",
             type: "bar",
-            data: left3[0],
+            data: left3[1],
             stack: 'Ad',
             showBackground: false,
             backgroundStyle: {
@@ -2554,7 +2558,7 @@ let app = new Vue({
       var i = 0;
       let that = this
       var option = {
-        colors: ['#064F78', '#623726', '#955773', , '#B57C63', '#BDB35D', '#73A88E', '#09736D', '#13400B', '#0D3265'],
+        colors: ['#064F78', '#BDB35D', '#623726', '#955773', '#B57C63', '#73A88E', '#09736D', '#13400B', '#0D3265'],
         chart: {
           type: 'pie',
           backgroundColor: 'rgba(0,0,0,0)',
@@ -2768,7 +2772,7 @@ let app = new Vue({
       let that = this
 
       var option = {
-        colors: ['#064F78', '#623726', '#955773', , '#B57C63', '#BDB35D', '#73A88E', '#09736D', '#13400B', '#0D3265'],
+        colors: ['#064F78', '#BDB35D', '#623726', '#955773', '#B57C63', '#73A88E', '#09736D', '#13400B', '#0D3265'],
         chart: {
           type: 'pie',
           backgroundColor: 'rgba(0,0,0,0)',
@@ -2978,7 +2982,7 @@ let app = new Vue({
       let that = this
 
       var option = {
-        colors: ['#064F78', '#623726', '#955773', , '#B57C63', '#BDB35D', '#73A88E', '#09736D', '#13400B', '#0D3265'],
+        colors: ['#064F78', '#BDB35D', '#623726', '#955773', '#B57C63', '#73A88E', '#09736D', '#13400B', '#0D3265'],
         chart: {
           type: 'pie',
           backgroundColor: 'rgba(0,0,0,0)',
@@ -3189,7 +3193,7 @@ let app = new Vue({
       let that = this
 
       var option = {
-        colors: ['#064F78', '#623726', '#955773', , '#B57C63', '#BDB35D', '#73A88E', '#09736D', '#13400B', '#0D3265'],
+        colors: ['#064F78', '#BDB35D', '#623726', '#955773', '#B57C63', '#73A88E', '#09736D', '#13400B', '#0D3265'],
         chart: {
           type: 'pie',
           backgroundColor: 'rgba(0,0,0,0)',
@@ -3855,7 +3859,7 @@ let app = new Vue({
       var i = 0;
       let that = this
       var option = {
-        colors: ['#064F78', '#623726', '#955773', , '#B57C63', '#BDB35D', '#73A88E', '#09736D', '#13400B', '#0D3265'],
+        colors: ['#064F78', '#BDB35D', '#623726', '#955773', '#B57C63', '#73A88E', '#09736D', '#13400B', '#0D3265'],
         chart: {
           type: 'pie',
           backgroundColor: 'rgba(0,0,0,0)',
@@ -4758,7 +4762,7 @@ let app = new Vue({
           typeno: item.typeno,
           sliced: false,
           selected: false,
-          color: index == 0 ? '#064F78' : '#623726'
+          color: index == 0 ? '#064F78' : '#BDB35D'
         }
         chartData.push(obj)
       })
@@ -5180,7 +5184,7 @@ let app = new Vue({
                 color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
                   {
                     offset: 0,
-                    color: '#623726',
+                    color: '#BDB35D',
                   },
                   {
                     offset: 1,
@@ -5200,7 +5204,7 @@ let app = new Vue({
                 color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
                   {
                     offset: 0,
-                    color: '#955773',
+                    color: '#623726',
                   },
                   {
                     offset: 1,
@@ -5220,7 +5224,7 @@ let app = new Vue({
                 color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
                   {
                     offset: 0,
-                    color: '#B57C63',
+                    color: '#955773',
                   },
                   {
                     offset: 1,
@@ -5240,7 +5244,7 @@ let app = new Vue({
                 color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [
                   {
                     offset: 0,
-                    color: '#BDB35D',
+                    color: '#B57C63',
                   },
                   {
                     offset: 1,