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