去除质量分析字段
This commit is contained in:
		
							parent
							
								
									20840bcaaf
								
							
						
					
					
						commit
						1c9b88aa83
					
				@ -84,12 +84,6 @@ class BI030FormRunAnalysis extends React.Component {
 | 
				
			|||||||
            dataIndex: 'NORMAL_FINISH_RATE',
 | 
					            dataIndex: 'NORMAL_FINISH_RATE',
 | 
				
			||||||
            key: 'NORMAL_FINISH_RATE',
 | 
					            key: 'NORMAL_FINISH_RATE',
 | 
				
			||||||
          },
 | 
					          },
 | 
				
			||||||
            {
 | 
					 | 
				
			||||||
                width: "100px",
 | 
					 | 
				
			||||||
              title: '质量分析(班前会)',
 | 
					 | 
				
			||||||
              dataIndex: 'REMARK',
 | 
					 | 
				
			||||||
              key: 'REMARK',
 | 
					 | 
				
			||||||
            }
 | 
					 | 
				
			||||||
    ]
 | 
					    ]
 | 
				
			||||||
    };
 | 
					    };
 | 
				
			||||||
  };
 | 
					  };
 | 
				
			||||||
@ -227,9 +221,9 @@ onTableBtnExport() {
 | 
				
			|||||||
    return;
 | 
					    return;
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
      //excel的表头
 | 
					      //excel的表头
 | 
				
			||||||
      const tHeader = ["模块","总任务数","正常已办","超时已办","未完成","完成率","及时完成率","质量分析(班前会)"];
 | 
					      const tHeader = ["模块","总任务数","正常已办","超时已办","未完成","完成率","及时完成率"];
 | 
				
			||||||
      // 字段和table表格中对应
 | 
					      // 字段和table表格中对应
 | 
				
			||||||
      const fitlerVal = ["MOUDLE_NAME","TOTAL_QTY","FINISH_QTY","OVER_FINISH_QTY","UNFINISH_QTY","FINISH_RATE","NORMAL_FINISH_RATE","REMARK"];
 | 
					      const fitlerVal = ["MOUDLE_NAME","TOTAL_QTY","FINISH_QTY","OVER_FINISH_QTY","UNFINISH_QTY","FINISH_RATE","NORMAL_FINISH_RATE"];
 | 
				
			||||||
      const res = this.state.retData.map((v) => fitlerVal.map((j) => v[j]));
 | 
					      const res = this.state.retData.map((v) => fitlerVal.map((j) => v[j]));
 | 
				
			||||||
      // const jsonWorkSheet = XLSX.utils.json_to_sheet(tHeader,res,"矿山安全生产标准化系统运行情况报表.xlsx");
 | 
					      // const jsonWorkSheet = XLSX.utils.json_to_sheet(tHeader,res,"矿山安全生产标准化系统运行情况报表.xlsx");
 | 
				
			||||||
      const jsonWorkSheet = XLSX.utils.json_to_sheet(res,tHeader);
 | 
					      const jsonWorkSheet = XLSX.utils.json_to_sheet(res,tHeader);
 | 
				
			||||||
@ -240,7 +234,6 @@ onTableBtnExport() {
 | 
				
			|||||||
      jsonWorkSheet.E1.v='未完成';
 | 
					      jsonWorkSheet.E1.v='未完成';
 | 
				
			||||||
      jsonWorkSheet.F1.v='完成率';
 | 
					      jsonWorkSheet.F1.v='完成率';
 | 
				
			||||||
      jsonWorkSheet.G1.v='及时完成率';
 | 
					      jsonWorkSheet.G1.v='及时完成率';
 | 
				
			||||||
      jsonWorkSheet.H1.v='质量分析(班前会)';
 | 
					 | 
				
			||||||
      const sheetName = "矿山安全生产标准化系统运行情况报表";
 | 
					      const sheetName = "矿山安全生产标准化系统运行情况报表";
 | 
				
			||||||
      const workBook = {
 | 
					      const workBook = {
 | 
				
			||||||
        SheetNames: [sheetName],
 | 
					        SheetNames: [sheetName],
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user