From 74a3e8cd2e6a88ada60742aa14177c1b676b47f5 Mon Sep 17 00:00:00 2001 From: pengm <674192343@qq.com> Date: Mon, 1 Jun 2026 17:05:15 +0800 Subject: [PATCH] 1.表格支持虚拟滚动 --- src/components/Common/CommonTable/index.js | 8 ++++---- src/mes/productionExec/productionExecMain/index.js | 2 +- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/Common/CommonTable/index.js b/src/components/Common/CommonTable/index.js index cf9544a..a5fbc82 100644 --- a/src/components/Common/CommonTable/index.js +++ b/src/components/Common/CommonTable/index.js @@ -3374,7 +3374,7 @@ class CommonTableRc extends React.Component { // } // } - // if (!this.props.noVlist && !noVlistController) { + if (!this.props.noVlist && !noVlistController) { if (this.props.slaveInfo || this.useVListNew) { if (!this.uniqueId) { this.uniqueId = this.props.formId @@ -3443,7 +3443,7 @@ class CommonTableRc extends React.Component { } components = { ...this.Vcomponents1, ...components }; } - // } + } if (this.props.config && this.props.config.iFreezeColumn) { tableColumn.forEach((val, index) => { if (tableColumn[index].fixedHelp) { @@ -7722,6 +7722,7 @@ class CommonTableRc extends React.Component { genFooter = () => { const { tableColumn, totalData, totalData1 } = this.state; const { dNetMoney, dNetPrice } = this.props.app.decimals; + console.log('totalData', totalData); const sModelsType = commonUtils.isNotEmptyObject(this.props) && commonUtils.isNotEmptyObject(this.props.app) @@ -7748,6 +7749,7 @@ class CommonTableRc extends React.Component { } const cells = []; const cells1 = []; + if (totalData.length) { let summaryCellTotal = ""; summaryCellTotal = ( @@ -8160,7 +8162,6 @@ class CommonTableRc extends React.Component { commonUtils.isNotEmptyObject(this.props.tableProps.chooseProcessConfigRow) ) { const iIndex = this.props.tableProps.chooseProcessConfigRow; - console.log("🚀 ~ CommonTableRc ~ this.props.tableProps:", this.props) this.props.onBtnChoose("process", "BtnChooseProcess", iIndex); } }; @@ -11158,7 +11159,6 @@ class CommonTableRc extends React.Component { mesPageChange: true }); } - console.log(tableProps, 'tablePropstableProps'); return ( {
- +
-- libgit2 0.22.2