|
@@ -226,6 +226,7 @@ const tableConfig = reactive({});
|
|
|
const rawData = ref([]);
|
|
|
const init = (item, deptNames, names) => {
|
|
|
rawData.value = item;
|
|
|
+ console.log("item", item);
|
|
|
deptName.value = deptNames;
|
|
|
name.value = names;
|
|
|
if ($route.name != "workerDrak") {
|
|
@@ -278,6 +279,7 @@ const createColumns = () => {
|
|
|
item.dimensionList.forEach(dim => {
|
|
|
if (!headerMap.has(dim.dimName)) {
|
|
|
// 存储维度相关信息,包括 totalSore
|
|
|
+ console.log("dim", dim);
|
|
|
headerMap.set(dim.dimName, {
|
|
|
totalSore: dim.totalSore,
|
|
|
quotas: [] // 用于存储 quota 列表
|
|
@@ -286,6 +288,7 @@ const createColumns = () => {
|
|
|
dim.quotaList.forEach(quota => {
|
|
|
const dimData = headerMap.get(dim.dimName);
|
|
|
if (!dimData.quotas.some(q => q.quotaName === quota.quotaName)) {
|
|
|
+ console.log("你是那个", quota);
|
|
|
dimData.quotas.push({ quotaName: quota.quotaName });
|
|
|
}
|
|
|
});
|
|
@@ -331,7 +334,6 @@ const loadData = () => {
|
|
|
|
|
|
item.dimensionList.forEach(dim => {
|
|
|
let totalScore = 0;
|
|
|
-
|
|
|
// 填充指标得分
|
|
|
dim.quotaList.forEach(quota => {
|
|
|
const fieldName = `${dim.dimName}_${quota.quotaName}`;
|