fix: wifi 自动填充
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m58s

This commit is contained in:
sexygoat
2026-04-20 16:28:09 +08:00
parent 9b66b78110
commit 11bfcadf65
5 changed files with 20 additions and 56 deletions

View File

@@ -1168,32 +1168,6 @@
const getActions = (row: StandaloneIotCard) => {
const actions: any[] = []
// 查询流量按钮
if (hasAuth('iot_card:query_flow')) {
actions.push({
label: '查询流量',
handler: () => showFlowUsageDialog(row.iccid),
type: 'primary'
})
}
// 其他操作放到更多中
if (hasAuth('iot_card:query_realname_status')) {
actions.push({
label: '查询实名状态',
handler: () => handleCardOperation('realname-status', row.iccid),
type: 'primary'
})
}
if (hasAuth('iot_card:query_card_status')) {
actions.push({
label: '查询卡状态',
handler: () => handleCardOperation('card-status', row.iccid),
type: 'primary'
})
}
if (hasAuth('iot_card:start_card')) {
actions.push({
label: '启用此卡',
@@ -1210,7 +1184,7 @@
})
}
if (hasAuth('asset:realname_policy')) {
if (hasAuth('iot_card:realname_policy')) {
actions.push({
label: '实名认证策略',
handler: () => handleCardOperation('realname-policy', row.iccid, row),
@@ -1218,29 +1192,14 @@
})
}
// 更多操作放到"更多"下拉菜单中
const moreActions: any[] = []
if (hasAuth('iot_card:clear_series')) {
moreActions.push({
actions.push({
label: '清除关联',
handler: () => handleCardOperation('clear-series', row.iccid),
type: 'primary'
})
}
if (moreActions.length > 0) {
actions.push(...moreActions)
}
// if (hasAuth('iot_card:manual_deactivate')) {
// actions.push({
// label: '手动停用',
// handler: () => handleCardOperation('manual-deactivate', row.iccid),
// type: 'primary'
// })
// }
return actions
}
@@ -1707,12 +1666,6 @@
// IoT卡操作处理函数
const handleCardOperation = (command: string, iccid: string, row?: any) => {
switch (command) {
case 'realname-status':
showRealnameStatusDialog(iccid)
break
case 'card-status':
showCardStatusDialog(iccid)
break
case 'start-card':
handleStartCard(iccid)
break
@@ -1722,9 +1675,6 @@
case 'realname-policy':
handleShowRealnamePolicy(iccid, row?.realname_policy)
break
case 'manual-deactivate':
handleManualDeactivate(iccid)
break
case 'clear-series':
handleClearSingleCardSeries(iccid)
break