| | |
| | | if (row.status === 2) { // 测试中 |
| | | actions.push(<NButton text type="primary" onClick={() => handleCopy(row)}>复制</NButton>) |
| | | actions.push(<NButton text type="primary" onClick={() => handleDetail(row)} v-permission="2026061523">详情</NButton>) |
| | | actions.push(<NButton text type="primary" onClick={() => handleCopy(row)}>复制</NButton>) |
| | | actions.push(<NButton text type="primary" onClick={() => handleInterrupt(row)} v-permission="2026061525">中断测试</NButton>) |
| | | actions.push(<NButton text type="primary" onClick={() => handleCruise(row)} v-permission="2026061525">{row.cruiseStatus === 1 ? '停止巡游' : '巡游策略'}</NButton>) |
| | | } |
| | | if (row.status === 3) { // 已暂停 |
| | | actions.push(<NButton text type="primary" onClick={() => handleCopy(row)}>复制</NButton>) |
| | | actions.push(<NButton text type="primary" onClick={() => handleDetail(row)} v-permission="2026061523">详情</NButton>) |
| | | actions.push(<NButton text type="primary" onClick={() => handleCopy(row)}>复制</NButton>) |
| | | actions.push(<NButton text type="primary" onClick={() => handleClose(row)} v-permission="2026061526">关闭测试</NButton>) |
| | | actions.push(<NButton text type="primary" onClick={() => handleContinue(row)} v-permission="2026061527">继续测试</NButton>) |
| | | } |