| | |
| | | const opacity = isDragging ? 0 : 1 |
| | | |
| | | let hasProfile = false |
| | | let forbidSql = false |
| | | if (['pop', 'prompt', 'exec'].includes(card.OpenType)) { |
| | | hasProfile = true |
| | | if (card.verify && card.verify.default === 'false') { |
| | | forbidSql = true |
| | | } |
| | | } else if (card.OpenType === 'excelIn' || card.OpenType === 'excelOut') { |
| | | hasProfile = true |
| | | if (card.verify && card.verify.default === 'false') { |
| | | forbidSql = true |
| | | } |
| | | } else if (card.funcType === 'print') { |
| | | hasProfile = true |
| | | } |
| | |
| | | key={card.uuid} |
| | | onDoubleClick={() => doubleClickCard(id)} |
| | | > |
| | | {card.label}{card.position === 'grid' && <Icon type="table" />} |
| | | {card.label}{card.position === 'grid' && <Icon type="table" />}{forbidSql && <Icon type="disconnect" />} |
| | | </Button> |
| | | </div> |
| | | </div> |