Commit ba5298e44fe4b35607e6bc3259076dc0ec166171

Authored by Min
1 parent 3233d9c3

更新以下内容: 去掉无用console

src/components/Common/CommonTable/index.js
@@ -1068,7 +1068,6 @@ class CommonTableRc extends React.Component { @@ -1068,7 +1068,6 @@ class CommonTableRc extends React.Component {
1068 this.setState({ 1068 this.setState({
1069 currentHoverSid: record.sId 1069 currentHoverSid: record.sId
1070 }); 1070 });
1071 - // console.log('=====record', record);  
1072 // this.handleSelectRowChange(this.props.name, [record[this.rowKey]]); 1071 // this.handleSelectRowChange(this.props.name, [record[this.rowKey]]);
1073 }, 150); 1072 }, 150);
1074 } 1073 }
@@ -1562,7 +1561,6 @@ class CommonTableRc extends React.Component { @@ -1562,7 +1561,6 @@ class CommonTableRc extends React.Component {
1562 getTableProps = () => { 1561 getTableProps = () => {
1563 /* 给数据都添加上key */ 1562 /* 给数据都添加上key */
1564 const { tableColumn, dataSource } = this.state; 1563 const { tableColumn, dataSource } = this.state;
1565 - console.log("🚀 ~ CommonTableRc ~ dataSource:", dataSource)  
1566 // 二级表头 1564 // 二级表头
1567 const subTableColumn = tableColumn.reduce((result, item) => { 1565 const subTableColumn = tableColumn.reduce((result, item) => {
1568 if (commonUtils.isNotEmptyArr(item.children)) { 1566 if (commonUtils.isNotEmptyArr(item.children)) {
@@ -3366,7 +3364,6 @@ class CommonTableRc extends React.Component { @@ -3366,7 +3364,6 @@ class CommonTableRc extends React.Component {
3366 } 3364 }
3367 let bPagination = true; /* 默认表格分页s */ 3365 let bPagination = true; /* 默认表格分页s */
3368 let { mesTotalCount, mesPageSize, mesPageNum, isPagination } = this.props.tableProps || {}; 3366 let { mesTotalCount, mesPageSize, mesPageNum, isPagination } = this.props.tableProps || {};
3369 - console.log(this.props.tableProps, 'this.props.tableProps');  
3370 3367
3371 if (commonUtils.isNotEmptyObject(this.props)) { 3368 if (commonUtils.isNotEmptyObject(this.props)) {
3372 bPagination = 3369 bPagination =
@@ -7516,7 +7513,6 @@ class CommonTableRc extends React.Component { @@ -7516,7 +7513,6 @@ class CommonTableRc extends React.Component {
7516 ) 7513 )
7517 ? showConfig.sControlName 7514 ? showConfig.sControlName
7518 : ""; 7515 : "";
7519 - console.log("sFormId:", sFormId);  
7520 if (commonUtils.isNotEmptyObject(sBtnContent)) { 7516 if (commonUtils.isNotEmptyObject(sBtnContent)) {
7521 const urlPrint = `${commonConfig.server_host 7517 const urlPrint = `${commonConfig.server_host
7522 }template/getSql/${sBtnName}/?sBtnContent=${sBtnContent}&sBtnControlName=${sBtnControlName}&sFormId=${sFormId}`; 7518 }template/getSql/${sBtnName}/?sBtnContent=${sBtnContent}&sBtnControlName=${sBtnControlName}&sFormId=${sFormId}`;
@@ -7739,7 +7735,7 @@ class CommonTableRc extends React.Component { @@ -7739,7 +7735,7 @@ class CommonTableRc extends React.Component {
7739 genFooter = () => { 7735 genFooter = () => {
7740 const { tableColumn, totalData, totalData1 } = this.state; 7736 const { tableColumn, totalData, totalData1 } = this.state;
7741 const { dNetMoney, dNetPrice } = this.props.app.decimals; 7737 const { dNetMoney, dNetPrice } = this.props.app.decimals;
7742 - console.log('totalData', totalData); 7738 +
7743 const sModelsType = 7739 const sModelsType =
7744 commonUtils.isNotEmptyObject(this.props) && 7740 commonUtils.isNotEmptyObject(this.props) &&
7745 commonUtils.isNotEmptyObject(this.props.app) 7741 commonUtils.isNotEmptyObject(this.props.app)
@@ -8379,8 +8375,7 @@ class CommonTableRc extends React.Component { @@ -8379,8 +8375,7 @@ class CommonTableRc extends React.Component {
8379 : { 8375 : {
8380 [this.props.config.sId]: handleData 8376 [this.props.config.sId]: handleData
8381 }; 8377 };
8382 - // console.log(postData, 'postData');  
8383 - // console.log(sortItems, 'sortItems'); 8378 +
8384 8379
8385 const value = { 8380 const value = {
8386 handleType: "group", 8381 handleType: "group",
@@ -10842,7 +10837,7 @@ class CommonTableRc extends React.Component { @@ -10842,7 +10837,7 @@ class CommonTableRc extends React.Component {
10842 10837
10843 /* 获取table中的props */ 10838 /* 获取table中的props */
10844 const tableProps = this.getTableProps(); 10839 const tableProps = this.getTableProps();
10845 - console.log("🚀 ~ CommonTableRc ~ render ~ tableProps:", tableProps) 10840 +
10846 let autoHeight = this.props.tableProps.AutoTableHeight; 10841 let autoHeight = this.props.tableProps.AutoTableHeight;
10847 10842
10848 const realizeHeight = 10843 const realizeHeight =
@@ -12375,7 +12370,7 @@ const useGetTableBtnOprSetting = props => { @@ -12375,7 +12370,7 @@ const useGetTableBtnOprSetting = props => {
12375 list.forEach(btnType => { 12370 list.forEach(btnType => {
12376 if (btnType.includes("add")) { 12371 if (btnType.includes("add")) {
12377 resultTemp.mesAdd = params => { 12372 resultTemp.mesAdd = params => {
12378 - console.log("🚀 ~ useGetTableBtnOprSetting ~ params:", params, props) 12373 +
12379 const { sDefault: str } = btnTableAddConfig; 12374 const { sDefault: str } = btnTableAddConfig;
12380 let disabled = props.getBtnDisabled({ 12375 let disabled = props.getBtnDisabled({
12381 str, 12376 str,