Commit aa13c26a1fcf1b23c3f59c1f193e00e255f8f02c
1 parent
c2839ca2
处理按钮没有sControlName报错的问题
Showing
1 changed file
with
2 additions
and
2 deletions
src/components/Common/CommonTable/index.js
| @@ -4877,8 +4877,8 @@ class CommonTableRc extends React.Component { | @@ -4877,8 +4877,8 @@ class CommonTableRc extends React.Component { | ||
| 4877 | props.onCopyTo(props.name, config.sActiveId, config, copyToConfig, record) | 4877 | props.onCopyTo(props.name, config.sActiveId, config, copyToConfig, record) |
| 4878 | return | 4878 | return |
| 4879 | } | 4879 | } |
| 4880 | - if (selectedRowKeys.includes(rowKeyId)) { | ||
| 4881 | - if (sControlName.includes('_qlyqualityinspec')) { | 4880 | + if (selectedRowKeys?.includes(rowKeyId)) { |
| 4881 | + if (sControlName?.includes('_qlyqualityinspec')) { | ||
| 4882 | const { app } = props; | 4882 | const { app } = props; |
| 4883 | const { token, currentMesPane } = app; | 4883 | const { token, currentMesPane } = app; |
| 4884 | const { sModelsId } = currentMesPane || {}; | 4884 | const { sModelsId } = currentMesPane || {}; |