diff --git a/src/views/constructionScheduling/progress-monitoring/echartsOptions.js b/src/views/constructionScheduling/progress-monitoring/echartsOptions.js index 0681b5e3..37886a77 100644 --- a/src/views/constructionScheduling/progress-monitoring/echartsOptions.js +++ b/src/views/constructionScheduling/progress-monitoring/echartsOptions.js @@ -13,7 +13,7 @@ export function echartsZhe({ ydata2, ydata1, xdata }) { itemStyle: { normal: { label: { - show: true, + show: false, textStyle: { color: "#8a989f", fontSize: 10, @@ -40,7 +40,7 @@ export function echartsZhe({ ydata2, ydata1, xdata }) { itemStyle: { normal: { label: { - show: true, + show: false, textStyle: { color: "#8a989f", fontSize: 10, @@ -60,9 +60,9 @@ export function echartsZhe({ ydata2, ydata1, xdata }) { }] return { grid: { - left: "5%", + left: "10%", right: "12%", - top: "15%", + top: "25%", bottom: "10%", }, legend: { @@ -71,7 +71,7 @@ export function echartsZhe({ ydata2, ydata1, xdata }) { textStyle: { fontSize: 14, }, - data: xdata ? xdata : [], + data: ['计划进度','实际进度'], }, tooltip: { trigger: "axis", diff --git a/src/views/constructionScheduling/progress-monitoring/index.vue b/src/views/constructionScheduling/progress-monitoring/index.vue index 2cc29cfe..417e8ab6 100644 --- a/src/views/constructionScheduling/progress-monitoring/index.vue +++ b/src/views/constructionScheduling/progress-monitoring/index.vue @@ -60,9 +60,9 @@ function getList(params) { state.echart({ id: 'staff' + key, grid: state.echartsZhe({ - ydata1: groupedData[key].map(item => item.plan), - ydata2: groupedData[key].map(item => item.sj), - xdata: groupedData[key].map(item => item.date) + ydata1: groupedData[key].map(item => item.plan).reverse(), + ydata2: groupedData[key].map(item => item.sj).reverse(), + xdata: groupedData[key].map(item => item.date.slice(-5)).reverse() }), }); })