|
|
@@ -6,6 +6,8 @@ let app = new Vue({
|
|
|
list: [], //重点项目两线指标数组
|
|
|
countType: 0, //重点项目两线指标数组
|
|
|
mapShow: true, // false为中国地图 true为山西地图
|
|
|
+ titleUrl: '',// 标题弹窗显示的内容
|
|
|
+ titleName: '', // 弹窗的名字显示
|
|
|
leftEcharts1: "",
|
|
|
leftEcharts2: "",
|
|
|
leftEcharts3: "",
|
|
|
@@ -22,8 +24,9 @@ let app = new Vue({
|
|
|
leftEcharts14: '',
|
|
|
leftEcharts15: '',
|
|
|
leftEcharts17: '', //投资产业分布中间的水球图
|
|
|
- stageTitle:'', // 投资阶段分析圆环图内容
|
|
|
- stageTitle2:'', // 投资阶段分析圆环图内容
|
|
|
+ tipShow1: false, // 标题弹窗显示
|
|
|
+ stageTitle: '', // 投资阶段分析圆环图内容
|
|
|
+ stageTitle2: '', // 投资阶段分析圆环图内容
|
|
|
echartR2Fd: true, // 投后进度成本偏差防抖
|
|
|
leftEcharts16: '', // 中国地图背景地球
|
|
|
rightEcharts1: '', // 投后进度成本偏差
|
|
|
@@ -520,7 +523,7 @@ let app = new Vue({
|
|
|
},
|
|
|
methods: {
|
|
|
// 解决除法是去精度
|
|
|
- numDiv(num1, num2) {
|
|
|
+ numDiv (num1, num2) {
|
|
|
var baseNum1 = 0, baseNum2 = 0;
|
|
|
var baseNum3, baseNum4;
|
|
|
try {
|
|
|
@@ -4285,7 +4288,7 @@ let app = new Vue({
|
|
|
show: true,
|
|
|
formatter: function (params) {
|
|
|
that.leftEcharts17.dispose()
|
|
|
- left2[0] = that.numDiv(params.percent+3.2,100)
|
|
|
+ left2[0] = that.numDiv(params.percent + 3.2, 100)
|
|
|
that.leftEcharts17Fun()
|
|
|
if (params.seriesIndex === 2) {
|
|
|
return null; // 隐藏部分2的tooltip
|
|
|
@@ -4618,7 +4621,7 @@ let app = new Vue({
|
|
|
fontSize: "28", // 文字字体大小
|
|
|
},
|
|
|
formatter: (params) => {
|
|
|
- that.stageTitle = params.name
|
|
|
+ that.stageTitle = params.name
|
|
|
that.stageTitle2 = params.percent + '%'
|
|
|
return `${params.name}:<br/>金额:<b>${totalData[params.seriesIndex].radio}</b>亿<br/>数量:<b>${params.value}</b>个`
|
|
|
}
|
|
|
@@ -5089,5 +5092,49 @@ let app = new Vue({
|
|
|
that.leftEcharts16Fun()
|
|
|
});
|
|
|
},
|
|
|
+ tipShow1Fun (e, name) {
|
|
|
+ this.closeTap()
|
|
|
+ this.titleUrl = e
|
|
|
+ this.titleName = name
|
|
|
+ this.$nextTick(() => {
|
|
|
+ this.tipShow1 = true
|
|
|
+ })
|
|
|
+ },
|
|
|
+ // 关闭所有弹窗的方法
|
|
|
+ closeTap () {
|
|
|
+ this.tipShow1 = false
|
|
|
+ },
|
|
|
+ //点击弹窗左半部分
|
|
|
+ popLeftClick () {
|
|
|
+ if (this.titleUrl == '2.png') {
|
|
|
+ this.titleUrl = '3.png'
|
|
|
+ } else if (this.titleUrl == '7.png') {
|
|
|
+ this.titleUrl = '8.png'
|
|
|
+ } else if (this.titleUrl == '3.png') {
|
|
|
+ this.titleUrl = '2.png'
|
|
|
+ } else if (this.titleUrl == '8.png') {
|
|
|
+ this.titleUrl = '7.png'
|
|
|
+ } else if (this.titleUrl == '5.png') {
|
|
|
+ this.titleUrl = '2.png'
|
|
|
+ } else if (this.titleUrl == '10.png') {
|
|
|
+ this.titleUrl = '7.png'
|
|
|
+ }
|
|
|
+ },
|
|
|
+ //点击弹窗右半部分
|
|
|
+ poprightClick () {
|
|
|
+ if (this.titleUrl == '2.png') {
|
|
|
+ this.titleUrl = '5.png'
|
|
|
+ } else if (this.titleUrl == '7.png') {
|
|
|
+ this.titleUrl = '10.png'
|
|
|
+ } else if (this.titleUrl == '5.png') {
|
|
|
+ this.titleUrl = '2.png'
|
|
|
+ } else if (this.titleUrl == '10.png') {
|
|
|
+ this.titleUrl = '7.png'
|
|
|
+ } else if (this.titleUrl == '3.png') {
|
|
|
+ this.titleUrl = '2.png'
|
|
|
+ } else if (this.titleUrl == '8.png') {
|
|
|
+ this.titleUrl = '7.png'
|
|
|
+ }
|
|
|
+ },
|
|
|
},
|
|
|
});
|