diff --git a/js/pages/newDataAnalysis/projectManagement.js b/js/pages/newDataAnalysis/projectManagement.js index 2ebe70f..8d900ca 100644 --- a/js/pages/newDataAnalysis/projectManagement.js +++ b/js/pages/newDataAnalysis/projectManagement.js @@ -224,19 +224,19 @@ function setCols(type) { title: "实际成本", align: "center", }, - { - title: "风险等级", - align: "center", - templet: (d) => { - let text = ""; - text += - '' + - d.riskLevel + - "级" + - ""; - return text; - }, - }, + // { + // title: "风险等级", + // align: "center", + // templet: (d) => { + // let text = ""; + // text += + // '' + + // d.riskLevel + + // "级" + + // ""; + // return text; + // }, + // }, { title: "风险数量", align: "center", @@ -249,11 +249,11 @@ function setCols(type) { return text; }, }, - { - field: "suggestion", - title: "建议策略", - align: "center", - }, + // { + // field: "suggestion", + // title: "建议策略", + // align: "center", + // }, { title: "操作", align: "center", @@ -276,7 +276,7 @@ function setCols2(type) { { type: "numbers", title: "序号", width: "10%" }, // 添加序号列 { field: "proPart", - title: "工程部位", + title: "工序名称", align: "center", }, { @@ -375,7 +375,7 @@ function initTable(type, bidCode) { tableData = res.rows; barData = tableData.map((item) => { - return item.taskName; + return item.proName; }); barData_1 = tableData.map((item) => { return item.actualCost; @@ -716,8 +716,10 @@ function initPieChart() { type: "category", data: barData, axisLabel: { - color: "#fff", // x轴文字颜色设为白色 + color: "#fff", fontSize: 12, + interval: 0, // 强制显示所有标签 + rotate: barData.length > 5 ? 30 : 0, // 如果项目多就旋转标签 }, axisLine: { lineStyle: {