|
|
@@ -8,10 +8,10 @@ let app = new Vue({
|
|
|
mapShow: false, // false为中国地图 true为山西地图
|
|
|
titleUrl: '',// 标题弹窗显示的内容
|
|
|
titleName: '', // 弹窗的名字显示
|
|
|
- leftEcharts1: "",
|
|
|
- leftEcharts2: "",
|
|
|
- leftEcharts3: "",
|
|
|
- leftEcharts4: "",
|
|
|
+ leftEcharts1: "", // 投资计划分析上边的饼图
|
|
|
+ leftEcharts2: "", // 投资计划分析上边的柱状图
|
|
|
+ leftEcharts3: "", // 投资计划分析下边的饼图
|
|
|
+ leftEcharts4: "", // 投资计划分析下边的柱状图
|
|
|
leftEcharts5: "",
|
|
|
leftEcharts6: "",
|
|
|
leftEcharts7: "",
|
|
|
@@ -27,7 +27,7 @@ let app = new Vue({
|
|
|
leftEcharts18: '', //弹窗单个柱状图
|
|
|
tipShow1: false, // 标题弹窗显示
|
|
|
tipShow2: false, // 单柱状图弹窗显示
|
|
|
- tipShow3:false, // 项目列表弹窗显示
|
|
|
+ projectListTipShow: false,// 项目列表弹窗显示
|
|
|
stageTitle: '', // 投资阶段分析圆环图内容
|
|
|
stageTitle2: '', // 投资阶段分析圆环图内容
|
|
|
echartR2Fd: true, // 投后进度成本偏差防抖
|
|
|
@@ -48,6 +48,7 @@ let app = new Vue({
|
|
|
year: '', // 选择的年份
|
|
|
pollList: [], // 选择年分列表
|
|
|
boardType: '', // 哪边的项目看板
|
|
|
+ config6: listPop,
|
|
|
projecList: [ //项目阶段分析内容距离
|
|
|
[
|
|
|
{ name: '特别监管', value: '14', value2: '12.05' },
|
|
|
@@ -561,10 +562,10 @@ let app = new Vue({
|
|
|
that.chinaEchartsFun()
|
|
|
that.leftEcharts16Fun() // 中国地图背景地球
|
|
|
}
|
|
|
- this.leftEcharts1Fun();
|
|
|
- this.leftEcharts2Fun();
|
|
|
- this.leftEcharts3Fun();
|
|
|
- this.leftEcharts4Fun();
|
|
|
+ // this.leftEcharts1Fun();
|
|
|
+ // this.leftEcharts2Fun();
|
|
|
+ // this.leftEcharts3Fun();
|
|
|
+ // this.leftEcharts4Fun();
|
|
|
this.leftEcharts5Fun();
|
|
|
this.leftEcharts6Fun();
|
|
|
this.leftEcharts7Fun();
|
|
|
@@ -751,8 +752,12 @@ let app = new Vue({
|
|
|
left6[0].num = dataList.mdnb_integerfield16
|
|
|
left6[1].y = that.yuanChange(dataList.mdnb_amountfield16)
|
|
|
left6[1].num = dataList.mdnb_integerfield17
|
|
|
- // that.initChartL2()
|
|
|
- // that.initChartL3()
|
|
|
+ console.log(left5, '??????????????zhufuye')
|
|
|
+ console.log(left6, '??????????????zhufuye')
|
|
|
+ that.leftEcharts1Fun()
|
|
|
+ that.leftEcharts2Fun()
|
|
|
+ that.leftEcharts3Fun()
|
|
|
+ that.leftEcharts4Fun()
|
|
|
}
|
|
|
resolve(1);
|
|
|
})
|
|
|
@@ -1197,6 +1202,189 @@ let app = new Vue({
|
|
|
})
|
|
|
});
|
|
|
},
|
|
|
+ // 左边穿透二级
|
|
|
+ leftPenetrateTwo (mdnb_textfield12, mdnb_textfield19, mdnb_textfield15, mdnb_textfield17, mdnb_textfield20, num) {
|
|
|
+ num && (this.projectNum = num)
|
|
|
+ this.boardType = 'left'
|
|
|
+ let that = this
|
|
|
+ return new Promise((resolve, err) => {
|
|
|
+ let value = {
|
|
|
+ access_token: this.access_token,
|
|
|
+ "data": {
|
|
|
+ mdnb_combofield: this.mockData ? 'B' : 'A',
|
|
|
+ mdnb_datefield: this.year + '-01-01',
|
|
|
+ mdnb_textfield12,
|
|
|
+ mdnb_textfield19,
|
|
|
+ mdnb_textfield15,
|
|
|
+ mdnb_textfield17,
|
|
|
+ mdnb_textfield20
|
|
|
+ },
|
|
|
+ pageSize: 1000
|
|
|
+ }
|
|
|
+ if (mdnb_textfield20) {
|
|
|
+ post('/ierp/kapi/v2/mdnb/mdnb_xmkb/mdnb_manager_preinvest/ejct', value).then(res => {
|
|
|
+ that.config6.data = []
|
|
|
+ if (res.data.rows.length > 0) {
|
|
|
+ that.originalConfig6 = res.data.rows[0].mdnb_entryentity11
|
|
|
+ that.config6.data = []
|
|
|
+ if (this.projectNum == 211 || this.projectNum == 212) {
|
|
|
+ that.config6.header = ["所属集团", "项目名称", '投资主体', '项目类型', '项目性质', '已占用额度(万元)']
|
|
|
+ res.data.rows[0].mdnb_entryentity11.forEach((item, index) => {
|
|
|
+ that.config6.data[index] = []
|
|
|
+ that.config6.data[index][0] = item.mdnb_textfield7
|
|
|
+ that.config6.data[index][1] = item.mdnb_textfield6
|
|
|
+ that.config6.data[index][2] = item.mdnb_textfield8
|
|
|
+ that.config6.data[index][3] = item.mdnb_textfield25
|
|
|
+ that.config6.data[index][4] = item.mdnb_textfield26
|
|
|
+ that.config6.data[index][5] = that.numFormat(item.mdnb_amountfield22 / 10000)
|
|
|
+ })
|
|
|
+ } else if (this.projectNum == 2141) {
|
|
|
+ that.config6.header = ["所属集团", "项目名称", '投资主体', '项目类型', '项目性质', '本年度计划投资额(万元)']
|
|
|
+ res.data.rows[0].mdnb_entryentity11.forEach((item, index) => {
|
|
|
+ that.config6.data[index] = []
|
|
|
+ that.config6.data[index][0] = item.mdnb_textfield7
|
|
|
+ that.config6.data[index][1] = item.mdnb_textfield6
|
|
|
+ that.config6.data[index][2] = item.mdnb_textfield8
|
|
|
+ that.config6.data[index][3] = item.mdnb_textfield25
|
|
|
+ that.config6.data[index][4] = item.mdnb_textfield26
|
|
|
+ that.config6.data[index][5] = that.numFormat(item.mdnb_amountfield22 / 10000)
|
|
|
+ })
|
|
|
+ } else if (this.projectNum == 2142) {
|
|
|
+ that.config6.header = ["所属集团", "项目名称", '投资主体', '项目类型', '项目性质', '是否主业', '本年度计划投资额(万元)']
|
|
|
+ res.data.rows[0].mdnb_entryentity11.forEach((item, index) => {
|
|
|
+ that.config6.data[index] = []
|
|
|
+ that.config6.data[index][0] = item.mdnb_textfield7
|
|
|
+ that.config6.data[index][1] = item.mdnb_textfield6
|
|
|
+ that.config6.data[index][2] = item.mdnb_textfield8
|
|
|
+ that.config6.data[index][3] = item.mdnb_textfield25
|
|
|
+ that.config6.data[index][4] = item.mdnb_textfield26
|
|
|
+ that.config6.data[index][5] = item.mdnb_textfield21
|
|
|
+ that.config6.data[index][6] = that.numFormat(item.mdnb_amountfield22 / 10000)
|
|
|
+ })
|
|
|
+ } else if (this.projectNum == 2143) {
|
|
|
+ that.config6.header = ["所属集团", "项目名称", '投资主体', '项目类型', '项目性质', '项目管理类型', '本年度计划投资额(万元)']
|
|
|
+ res.data.rows[0].mdnb_entryentity11.forEach((item, index) => {
|
|
|
+ that.config6.data[index] = []
|
|
|
+ that.config6.data[index][0] = item.mdnb_textfield7
|
|
|
+ that.config6.data[index][1] = item.mdnb_textfield6
|
|
|
+ that.config6.data[index][2] = item.mdnb_textfield8
|
|
|
+ that.config6.data[index][3] = item.mdnb_textfield25
|
|
|
+ that.config6.data[index][4] = item.mdnb_textfield26
|
|
|
+ that.config6.data[index][5] = item.mdnb_textfield22
|
|
|
+ that.config6.data[index][6] = that.numFormat(item.mdnb_amountfield22 / 10000)
|
|
|
+ })
|
|
|
+ } else if (this.projectNum == 215) {
|
|
|
+ that.config6.header = ["所属集团", "项目名称", '投资主体', '产业类别I级', '产业类别II级', '本年度计划投资额(万元)']
|
|
|
+ res.data.rows[0].mdnb_entryentity11.forEach((item, index) => {
|
|
|
+ that.config6.data[index] = []
|
|
|
+ that.config6.data[index][0] = item.mdnb_textfield7
|
|
|
+ that.config6.data[index][1] = item.mdnb_textfield6
|
|
|
+ that.config6.data[index][2] = item.mdnb_textfield8
|
|
|
+ that.config6.data[index][3] = item.mdnb_textfield9
|
|
|
+ that.config6.data[index][4] = item.mdnb_textfield10
|
|
|
+ that.config6.data[index][5] = that.numFormat(item.mdnb_amountfield22 / 10000)
|
|
|
+ })
|
|
|
+ } else if (this.projectNum == 216) {
|
|
|
+ that.config6.header = ["所属集团", "项目名称", '投资主体', '项目类型', '项目性质', '项目阶段', '投资总额(万元)']
|
|
|
+ res.data.rows[0].mdnb_entryentity11.forEach((item, index) => {
|
|
|
+ that.config6.data[index] = []
|
|
|
+ that.config6.data[index][0] = item.mdnb_textfield7
|
|
|
+ that.config6.data[index][1] = item.mdnb_textfield6
|
|
|
+ that.config6.data[index][2] = item.mdnb_textfield8
|
|
|
+ that.config6.data[index][3] = item.mdnb_textfield25
|
|
|
+ that.config6.data[index][4] = item.mdnb_textfield26
|
|
|
+ that.config6.data[index][5] = item.mdnb_textfield24
|
|
|
+ that.config6.data[index][6] = that.numFormat(item.mdnb_amountfield22 / 10000)
|
|
|
+ })
|
|
|
+ }
|
|
|
+ }
|
|
|
+ that.config6 = { ...that.config6 }
|
|
|
+ that.projectListTipShow = true
|
|
|
+ resolve(1);
|
|
|
+ })
|
|
|
+ } else {
|
|
|
+ post('/ierp/kapi/v2/mdnb/mdnb_xmkb/mdnb_manager_preinvest/tzedfxzed', value).then(res => {
|
|
|
+ if (res.data.rows.length > 0) {
|
|
|
+ that.originalConfig6 = res.data.rows[0].mdnb_entryentity11
|
|
|
+ that.config6.data = []
|
|
|
+ if (this.projectNum == 211 || this.projectNum == 212) {
|
|
|
+ that.config6.header = ["所属集团", "项目名称", '投资主体', '项目类型', '项目性质', '已占用额度(万元)']
|
|
|
+ res.data.rows[0].mdnb_entryentity11.forEach((item, index) => {
|
|
|
+ that.config6.data[index] = []
|
|
|
+ that.config6.data[index][0] = item.mdnb_textfield7
|
|
|
+ that.config6.data[index][1] = item.mdnb_textfield6
|
|
|
+ that.config6.data[index][2] = item.mdnb_textfield8
|
|
|
+ that.config6.data[index][3] = item.mdnb_textfield25
|
|
|
+ that.config6.data[index][4] = item.mdnb_textfield26
|
|
|
+ that.config6.data[index][5] = that.numFormat(item.mdnb_amountfield22 / 10000)
|
|
|
+ })
|
|
|
+ } else if (this.projectNum == 2141) {
|
|
|
+ that.config6.header = ["所属集团", "项目名称", '投资主体', '项目类型', '项目性质', '本年度计划投资额(万元)']
|
|
|
+ res.data.rows[0].mdnb_entryentity11.forEach((item, index) => {
|
|
|
+ that.config6.data[index] = []
|
|
|
+ that.config6.data[index][0] = item.mdnb_textfield7
|
|
|
+ that.config6.data[index][1] = item.mdnb_textfield6
|
|
|
+ that.config6.data[index][2] = item.mdnb_textfield8
|
|
|
+ that.config6.data[index][3] = item.mdnb_textfield25
|
|
|
+ that.config6.data[index][4] = item.mdnb_textfield26
|
|
|
+ that.config6.data[index][5] = that.numFormat(item.mdnb_amountfield22 / 10000)
|
|
|
+ })
|
|
|
+ } else if (this.projectNum == 2142) {
|
|
|
+ that.config6.header = ["所属集团", "项目名称", '投资主体', '项目类型', '项目性质', '是否主业', '本年度计划投资额(万元)']
|
|
|
+ res.data.rows[0].mdnb_entryentity11.forEach((item, index) => {
|
|
|
+ that.config6.data[index] = []
|
|
|
+ that.config6.data[index][0] = item.mdnb_textfield7
|
|
|
+ that.config6.data[index][1] = item.mdnb_textfield6
|
|
|
+ that.config6.data[index][2] = item.mdnb_textfield8
|
|
|
+ that.config6.data[index][3] = item.mdnb_textfield25
|
|
|
+ that.config6.data[index][4] = item.mdnb_textfield26
|
|
|
+ that.config6.data[index][5] = item.mdnb_textfield21
|
|
|
+ that.config6.data[index][6] = that.numFormat(item.mdnb_amountfield22 / 10000)
|
|
|
+ })
|
|
|
+ } else if (this.projectNum == 2143) {
|
|
|
+ that.config6.header = ["所属集团", "项目名称", '投资主体', '项目类型', '项目性质', '项目管理类型', '本年度计划投资额(万元)']
|
|
|
+ res.data.rows[0].mdnb_entryentity11.forEach((item, index) => {
|
|
|
+ that.config6.data[index] = []
|
|
|
+ that.config6.data[index][0] = item.mdnb_textfield7
|
|
|
+ that.config6.data[index][1] = item.mdnb_textfield6
|
|
|
+ that.config6.data[index][2] = item.mdnb_textfield8
|
|
|
+ that.config6.data[index][3] = item.mdnb_textfield25
|
|
|
+ that.config6.data[index][4] = item.mdnb_textfield26
|
|
|
+ that.config6.data[index][5] = item.mdnb_textfield22
|
|
|
+ that.config6.data[index][6] = that.numFormat(item.mdnb_amountfield22 / 10000)
|
|
|
+ })
|
|
|
+ } else if (this.projectNum == 215) {
|
|
|
+ that.config6.header = ["所属集团", "项目名称", '投资主体', '产业类别I级', '产业类别II级', '本年度计划投资额(万元)']
|
|
|
+ res.data.rows[0].mdnb_entryentity11.forEach((item, index) => {
|
|
|
+ that.config6.data[index] = []
|
|
|
+ that.config6.data[index][0] = item.mdnb_textfield7
|
|
|
+ that.config6.data[index][1] = item.mdnb_textfield6
|
|
|
+ that.config6.data[index][2] = item.mdnb_textfield8
|
|
|
+ that.config6.data[index][3] = item.mdnb_textfield9
|
|
|
+ that.config6.data[index][4] = item.mdnb_textfield10
|
|
|
+ that.config6.data[index][5] = that.numFormat(item.mdnb_amountfield22 / 10000)
|
|
|
+ })
|
|
|
+ } else if (this.projectNum == 216) {
|
|
|
+ that.config6.header = ["所属集团", "项目名称", '投资主体', '项目类型', '项目性质', '项目阶段', '本年度计划投资额(万元)']
|
|
|
+ res.data.rows[0].mdnb_entryentity11.forEach((item, index) => {
|
|
|
+ that.config6.data[index] = []
|
|
|
+ that.config6.data[index][0] = item.mdnb_textfield7
|
|
|
+ that.config6.data[index][1] = item.mdnb_textfield6
|
|
|
+ that.config6.data[index][2] = item.mdnb_textfield8
|
|
|
+ that.config6.data[index][3] = item.mdnb_textfield25
|
|
|
+ that.config6.data[index][4] = item.mdnb_textfield26
|
|
|
+ that.config6.data[index][5] = item.mdnb_textfield24
|
|
|
+ that.config6.data[index][6] = that.numFormat(item.mdnb_amountfield22 / 10000)
|
|
|
+ })
|
|
|
+ }
|
|
|
+ that.config6 = { ...that.config6 }
|
|
|
+ that.projectListTipShow = true
|
|
|
+ }
|
|
|
+ resolve(1);
|
|
|
+ })
|
|
|
+ }
|
|
|
+ });
|
|
|
+ },
|
|
|
// 解决除法是去精度
|
|
|
numDiv (num1, num2) {
|
|
|
var baseNum1 = 0, baseNum2 = 0;
|
|
|
@@ -2401,12 +2589,16 @@ let app = new Vue({
|
|
|
return intPartFormat;
|
|
|
}
|
|
|
},
|
|
|
+ // 计算百分比
|
|
|
+ sumPercent (a, b) {
|
|
|
+ return (a / (a + b) * 100).toFixed(2) + '%'
|
|
|
+ },
|
|
|
leftEcharts1Fun () {
|
|
|
let that = this;
|
|
|
this.leftEcharts1 = echarts.init(this.$refs["leftEcharts1"]);
|
|
|
option = {
|
|
|
title: {
|
|
|
- text: that.industryProportion == 1 ? "94.4%" : "46.62%",
|
|
|
+ text: that.industryProportion == 1 ? that.sumPercent(left5[1].y, left5[0].y) : that.sumPercent(left6[0].y, left6[1].y),
|
|
|
x: "center",
|
|
|
y: "center",
|
|
|
textStyle: {
|
|
|
@@ -2435,7 +2627,7 @@ let app = new Vue({
|
|
|
hoverAnimation: false,
|
|
|
data: [
|
|
|
{
|
|
|
- value: 80,
|
|
|
+ value: that.industryProportion == 1 ? left5[1].y : left6[0].y,
|
|
|
name: "01",
|
|
|
itemStyle: {
|
|
|
normal: {
|
|
|
@@ -2450,7 +2642,7 @@ let app = new Vue({
|
|
|
},
|
|
|
{
|
|
|
name: "02",
|
|
|
- value: 20,
|
|
|
+ value: that.industryProportion == 1 ? left5[0].y : left6[1].y,
|
|
|
},
|
|
|
],
|
|
|
},
|
|
|
@@ -2468,8 +2660,8 @@ let app = new Vue({
|
|
|
let that = this;
|
|
|
this.leftEcharts2 = echarts.init(this.$refs["leftEcharts2"]);
|
|
|
let nameList = ["a"];
|
|
|
- let valueList = that.industryProportion == 1 ? [1287.5] : [635.84];
|
|
|
- let total = 1363.88; // 数据总数
|
|
|
+ let valueList = that.industryProportion == 1 ? [left5[1].y] : [left6[0].y];
|
|
|
+ let total = that.industryProportion == 1 ? left5[1].y + left5[0].y : left6[0].y + left6[1].y
|
|
|
var category = nameList.map((item, index) => {
|
|
|
return {
|
|
|
value: valueList[index],
|
|
|
@@ -2535,7 +2727,7 @@ let app = new Vue({
|
|
|
grid: {
|
|
|
left: "0%",
|
|
|
top: "15%", // 设置条形图的边距
|
|
|
- right: "15%",
|
|
|
+ right: "19%",
|
|
|
bottom: "5%",
|
|
|
},
|
|
|
yAxis: [
|
|
|
@@ -2561,19 +2753,6 @@ let app = new Vue({
|
|
|
barWidth: 16,
|
|
|
barGap: "20%",
|
|
|
silent: true,
|
|
|
- // label: {
|
|
|
- // normal: {
|
|
|
- // formatter: (item) => {
|
|
|
- // return `${item['name']}:${item['value']} `;
|
|
|
- // },
|
|
|
- // textStyle: {
|
|
|
- // color: 'rgba(105, 120, 136, 1)',
|
|
|
- // fontSize: 14,
|
|
|
- // },
|
|
|
- // position: [0, '-25px'],
|
|
|
- // show: true,
|
|
|
- // },
|
|
|
- // },
|
|
|
data: category,
|
|
|
z: 1,
|
|
|
itemStyle: {
|
|
|
@@ -2633,7 +2812,7 @@ let app = new Vue({
|
|
|
normal: {
|
|
|
formatter: (params) => {
|
|
|
var text;
|
|
|
- text = `${((params["data"] * 100) / total).toFixed(2)}亿`;
|
|
|
+ text = `${params.value}亿`;
|
|
|
return text;
|
|
|
},
|
|
|
textStyle: {
|
|
|
@@ -2683,7 +2862,7 @@ let app = new Vue({
|
|
|
this.leftEcharts3 = echarts.init(this.$refs["leftEcharts3"]);
|
|
|
option = {
|
|
|
title: {
|
|
|
- text: that.industryProportion == 1 ? "5.6%" : "53.38%",
|
|
|
+ text: that.industryProportion == 1 ? that.sumPercent(left5[0].y, left5[1].y) : that.sumPercent(left6[1].y, left6[0].y),
|
|
|
x: "center",
|
|
|
y: "center",
|
|
|
textStyle: {
|
|
|
@@ -2712,7 +2891,7 @@ let app = new Vue({
|
|
|
hoverAnimation: false,
|
|
|
data: [
|
|
|
{
|
|
|
- value: 80,
|
|
|
+ value: that.industryProportion == 1 ? left5[0].y : left6[1].y,
|
|
|
name: "01",
|
|
|
itemStyle: {
|
|
|
normal: {
|
|
|
@@ -2727,7 +2906,7 @@ let app = new Vue({
|
|
|
},
|
|
|
{
|
|
|
name: "02",
|
|
|
- value: 20,
|
|
|
+ value: that.industryProportion == 1 ? left5[1].y : left6[0].y,
|
|
|
},
|
|
|
],
|
|
|
},
|
|
|
@@ -2745,8 +2924,8 @@ let app = new Vue({
|
|
|
let that = this;
|
|
|
this.leftEcharts4 = echarts.init(this.$refs["leftEcharts4"]);
|
|
|
let nameList = ["a"];
|
|
|
- let valueList = that.industryProportion == 1 ? [76.38] : [728.04];
|
|
|
- let total = 1363.88; // 数据总数
|
|
|
+ let valueList = that.industryProportion == 1 ? [left5[0].y] : [left6[1].y];
|
|
|
+ let total = that.industryProportion == 1 ? (left5[1].y + left5[0].y) : (left6[0].y + left6[1].y)
|
|
|
var category = nameList.map((item, index) => {
|
|
|
return {
|
|
|
value: valueList[index],
|
|
|
@@ -2812,7 +2991,7 @@ let app = new Vue({
|
|
|
grid: {
|
|
|
left: "0%",
|
|
|
top: "15%", // 设置条形图的边距
|
|
|
- right: "15%",
|
|
|
+ right: "19%",
|
|
|
bottom: "5%",
|
|
|
},
|
|
|
yAxis: [
|
|
|
@@ -2910,7 +3089,7 @@ let app = new Vue({
|
|
|
normal: {
|
|
|
formatter: (params) => {
|
|
|
var text;
|
|
|
- text = `${((params["data"] * 100) / total).toFixed(2)}亿`;
|
|
|
+ text = `${params.value}亿`;
|
|
|
return text;
|
|
|
},
|
|
|
textStyle: {
|
|
|
@@ -4522,6 +4701,7 @@ let app = new Vue({
|
|
|
leftEcharts9Fun () {
|
|
|
let that = this;
|
|
|
this.leftEcharts9 = echarts.init(this.$refs["leftEcharts9"]);
|
|
|
+ return
|
|
|
// var ROOT_PATH = 'https://echarts.apache.org/examples';
|
|
|
let option = {
|
|
|
backgroundColor: "#00000000",
|
|
|
@@ -5737,6 +5917,7 @@ let app = new Vue({
|
|
|
leftEcharts16Fun () {
|
|
|
let that = this;
|
|
|
this.leftEcharts16 = echarts.init(this.$refs["leftEcharts16"]);
|
|
|
+ return
|
|
|
// var ROOT_PATH = 'https://echarts.apache.org/examples';
|
|
|
let option = {
|
|
|
backgroundColor: "#00000000",
|
|
|
@@ -5793,6 +5974,7 @@ let app = new Vue({
|
|
|
closeTap () {
|
|
|
this.tipShow1 = false
|
|
|
this.tipShow2 = false
|
|
|
+ this.projectListTipShow = false
|
|
|
},
|
|
|
//点击弹窗左半部分
|
|
|
popLeftClick () {
|
|
|
@@ -5863,7 +6045,8 @@ let app = new Vue({
|
|
|
},
|
|
|
// 单个柱状图的弹窗
|
|
|
leftEcharts18Fun (location, mdnb_textfield11, mdnb_textfield13, mdnb_textfield16, mdnb_textfield23, typeCTwo, paramCTwo, portType) {
|
|
|
- this.myChartTip1 = echarts.init(document.getElementById("leftEcharts18"));
|
|
|
+ let that = this
|
|
|
+ this.leftEcharts18 = echarts.init(document.getElementById("leftEcharts18"));
|
|
|
if (!(this.titleName == '项目数量' || this.titleName == '项目总数')) {
|
|
|
common3 = common3.map((item) => Number(item) + 1)
|
|
|
}
|
|
|
@@ -6010,21 +6193,25 @@ let app = new Vue({
|
|
|
interval: 2000,
|
|
|
loopSeries: true,
|
|
|
})
|
|
|
- let that = this
|
|
|
that.leftEcharts18.on('click', function (param) {
|
|
|
- if (that.versions) {
|
|
|
- if (location == 'right') {
|
|
|
- that.rightPenetrateTwo(that.rightPenetrateTwo.modelName, '', that.findCode(param.name))
|
|
|
- } else if (location == 'left') {
|
|
|
- that.leftPenetrateTwo(mdnb_textfield11, mdnb_textfield13, mdnb_textfield16, mdnb_textfield23, param.name, that.projectNum)
|
|
|
- } else if (location == 'center') {
|
|
|
- that.centerPenetrateTwo(typeCTwo, paramCTwo, that.findCode(param.name), portType)
|
|
|
- }
|
|
|
- } else {
|
|
|
- that.projectListTipShow = true
|
|
|
+ if (location == 'right') {
|
|
|
+ that.rightPenetrateTwo(that.rightPenetrateTwo.modelName, '', that.findCode(param.name))
|
|
|
+ } else if (location == 'left') {
|
|
|
+ that.leftPenetrateTwo(mdnb_textfield11, mdnb_textfield13, mdnb_textfield16, mdnb_textfield23, param.name, that.projectNum)
|
|
|
+ } else if (location == 'center') {
|
|
|
+ that.centerPenetrateTwo(typeCTwo, paramCTwo, that.findCode(param.name), portType)
|
|
|
}
|
|
|
})
|
|
|
that.leftEcharts18.setOption(option);
|
|
|
},
|
|
|
+ // 去项目看板
|
|
|
+ goLookBoard (e, f) {
|
|
|
+ if (f) {
|
|
|
+ this.boardType = f
|
|
|
+ }
|
|
|
+ this.boardUrl = `http://${this.goUrl}/ierp/accessTokenLogin.do?access_token=${this.access_token}&redirect=http://${this.goUrl}/ierp/index.html?formId=mdnb_threetoproject&prj=${this.findProjectCode(e.row[0], e.row[1], this.boardType, e)}`
|
|
|
+ this.boardTipShow = true
|
|
|
+ console.log(this.boardUrl, '跳转去的项目看板地址')
|
|
|
+ },
|
|
|
},
|
|
|
});
|