This commit is contained in:
parent
edb7662c55
commit
927a65be85
|
|
@ -224,19 +224,19 @@ function setCols(type) {
|
||||||
title: "实际成本",
|
title: "实际成本",
|
||||||
align: "center",
|
align: "center",
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
title: "风险等级",
|
// title: "风险等级",
|
||||||
align: "center",
|
// align: "center",
|
||||||
templet: (d) => {
|
// templet: (d) => {
|
||||||
let text = "";
|
// let text = "";
|
||||||
text +=
|
// text +=
|
||||||
'<a style="color:rgb(226, 154, 11);font-size: 16px">' +
|
// '<a style="color:rgb(226, 154, 11);font-size: 16px">' +
|
||||||
d.riskLevel +
|
// d.riskLevel +
|
||||||
"级" +
|
// "级" +
|
||||||
"</a>";
|
// "</a>";
|
||||||
return text;
|
// return text;
|
||||||
},
|
// },
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: "风险数量",
|
title: "风险数量",
|
||||||
align: "center",
|
align: "center",
|
||||||
|
|
@ -249,11 +249,11 @@ function setCols(type) {
|
||||||
return text;
|
return text;
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
// {
|
||||||
field: "suggestion",
|
// field: "suggestion",
|
||||||
title: "建议策略",
|
// title: "建议策略",
|
||||||
align: "center",
|
// align: "center",
|
||||||
},
|
// },
|
||||||
{
|
{
|
||||||
title: "操作",
|
title: "操作",
|
||||||
align: "center",
|
align: "center",
|
||||||
|
|
@ -276,7 +276,7 @@ function setCols2(type) {
|
||||||
{ type: "numbers", title: "序号", width: "10%" }, // 添加序号列
|
{ type: "numbers", title: "序号", width: "10%" }, // 添加序号列
|
||||||
{
|
{
|
||||||
field: "proPart",
|
field: "proPart",
|
||||||
title: "工程部位",
|
title: "工序名称",
|
||||||
align: "center",
|
align: "center",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
|
@ -375,7 +375,7 @@ function initTable(type, bidCode) {
|
||||||
tableData = res.rows;
|
tableData = res.rows;
|
||||||
|
|
||||||
barData = tableData.map((item) => {
|
barData = tableData.map((item) => {
|
||||||
return item.taskName;
|
return item.proName;
|
||||||
});
|
});
|
||||||
barData_1 = tableData.map((item) => {
|
barData_1 = tableData.map((item) => {
|
||||||
return item.actualCost;
|
return item.actualCost;
|
||||||
|
|
@ -716,8 +716,10 @@ function initPieChart() {
|
||||||
type: "category",
|
type: "category",
|
||||||
data: barData,
|
data: barData,
|
||||||
axisLabel: {
|
axisLabel: {
|
||||||
color: "#fff", // x轴文字颜色设为白色
|
color: "#fff",
|
||||||
fontSize: 12,
|
fontSize: 12,
|
||||||
|
interval: 0, // 强制显示所有标签
|
||||||
|
rotate: barData.length > 5 ? 30 : 0, // 如果项目多就旋转标签
|
||||||
},
|
},
|
||||||
axisLine: {
|
axisLine: {
|
||||||
lineStyle: {
|
lineStyle: {
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue