This commit is contained in:
‘937886381’
2026-01-06 17:09:52 +08:00
parent 5605eeab06
commit 51e66cf6e1
145 changed files with 265 additions and 226 deletions

View File

@@ -77,7 +77,7 @@ export default {
months: [], // 月份数组x轴标签
rates: [], // 完成率completeRate
reals: [], // 实际值real
targets: [], // 目标target
targets: [], // 预算target
flags: [], // 达标状态
diffs: [],
};
@@ -155,7 +155,7 @@ export default {
},
// 2. 目标(柱状图)
{
name: '目标',
name: '预算',
type: 'bar',
yAxisIndex: 0,
barWidth: 14,
@@ -171,7 +171,7 @@ export default {
borderRadius: [4, 4, 0, 0],
borderWidth: 0
},
data: targets, // 动态目标
data: targets, // 动态预算
},
// 3. 实际(柱状图,含达标状态)
{

View File

@@ -95,10 +95,10 @@ export default {
case 2: // 实际值:低~高
dataWithIndex.sort((a, b) => a.real - b.real);
break;
case 3: // 目标值:高~低
case 3: // 预算值:高~低
dataWithIndex.sort((a, b) => b.rate - a.rate);
break;
case 4: // 目标值:低~高
case 4: // 预算值:低~高
dataWithIndex.sort((a, b) => a.rate - b.rate);
break;
default:

View File

@@ -116,7 +116,7 @@ export default {
// 3. 组装工厂chartData格式与集团一致适配子组件
this.chartData = {
locations: factoryKeys, // 工厂名称数组
targets: factoryDataList.map(item => item.target || 0), // 目标
targets: factoryDataList.map(item => item.target || 0), // 预算
diff: factoryDataList.map(item => item.diff || 0), // 差值
reals: factoryDataList.map(item => item.real || 0), // 实际值
rates: factoryDataList.map(item => item.completeRate || 0), // 完成率

View File

@@ -116,7 +116,7 @@ export default {
// 3. 组装工厂chartData格式与集团一致适配子组件
this.chartData = {
locations: factoryKeys, // 工厂名称数组
targets: factoryDataList.map(item => item.target || 0), // 目标
targets: factoryDataList.map(item => item.target || 0), // 预算
diff: factoryDataList.map(item => item.diff || 0), // 差值
reals: factoryDataList.map(item => item.real || 0), // 实际值
rates: factoryDataList.map(item => item.completeRate || 0), // 完成率

View File

@@ -107,7 +107,7 @@ export default {
label: {
show: true,
position: 'right',
offset: [-60, 25],
offset: [0, 25],
width: 68,
height: 20,
formatter: `{rate|${diffValue}}{text|差值}`,