From 11bfcadf6585b0180ffb636a5a9a2182c3c48f48 Mon Sep 17 00:00:00 2001
From: sexygoat <1538832180@qq.com>
Date: Mon, 20 Apr 2026 16:28:09 +0800
Subject: [PATCH] =?UTF-8?q?fix:=20wifi=20=E8=87=AA=E5=8A=A8=E5=A1=AB?=
=?UTF-8?q?=E5=85=85?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
src/components/device/SetWiFiDialog.vue | 3 +-
.../components/BasicInfoCard.vue | 13 ++++-
.../components/dialogs/WiFiConfigDialog.vue | 2 +
.../asset-management/device-list/index.vue | 4 +-
.../iot-card-management/index.vue | 54 +------------------
5 files changed, 20 insertions(+), 56 deletions(-)
diff --git a/src/components/device/SetWiFiDialog.vue b/src/components/device/SetWiFiDialog.vue
index 1de2ee4..302a750 100644
--- a/src/components/device/SetWiFiDialog.vue
+++ b/src/components/device/SetWiFiDialog.vue
@@ -17,6 +17,7 @@
maxlength="32"
show-word-limit
clearable
+ autocomplete="off"
/>
@@ -28,6 +29,7 @@
show-word-limit
show-password
clearable
+ autocomplete="off"
/>
@@ -96,7 +98,6 @@
(val) => {
visible.value = val
if (val) {
- // 重置表单
formData.enabled = 1
formData.ssid = ''
formData.password = ''
diff --git a/src/views/asset-management/asset-information/components/BasicInfoCard.vue b/src/views/asset-management/asset-information/components/BasicInfoCard.vue
index d92a854..929a872 100644
--- a/src/views/asset-management/asset-information/components/BasicInfoCard.vue
+++ b/src/views/asset-management/asset-information/components/BasicInfoCard.vue
@@ -370,7 +370,7 @@
启用此卡
停用此卡
- 实名认证策略
+ 实名认证策略
@@ -380,7 +380,7 @@
恢复出厂
切换SIM卡
设置WiFi
- 实名认证策略
+ 实名认证策略
@@ -404,6 +404,7 @@
} from 'element-plus'
import { CopyDocument } from '@element-plus/icons-vue'
import { useAssetFormatters } from '../composables/useAssetFormatters'
+ import { useAuth } from '@/composables/useAuth'
import { formatDateTime } from '@/utils/business/format'
// Props
@@ -495,6 +496,14 @@
const props = defineProps()
+ const { hasAuth } = useAuth()
+
+ const realnamePolicyPermission = computed(() => {
+ return props.cardInfo?.asset_type === 'card' ? 'asset:card_realname_policy' : 'asset:device_realname_policy'
+ })
+
+ const canShowRealnamePolicy = computed(() => hasAuth(realnamePolicyPermission.value))
+
// Emits
interface Emits {
(e: 'update:pollingEnabled', value: boolean): void
diff --git a/src/views/asset-management/asset-information/components/dialogs/WiFiConfigDialog.vue b/src/views/asset-management/asset-information/components/dialogs/WiFiConfigDialog.vue
index 79ef539..aec4291 100644
--- a/src/views/asset-management/asset-information/components/dialogs/WiFiConfigDialog.vue
+++ b/src/views/asset-management/asset-information/components/dialogs/WiFiConfigDialog.vue
@@ -14,6 +14,7 @@
maxlength="32"
show-word-limit
clearable
+ autocomplete="off"
/>
@@ -25,6 +26,7 @@
show-word-limit
show-password
clearable
+ autocomplete="off"
/>
diff --git a/src/views/asset-management/device-list/index.vue b/src/views/asset-management/device-list/index.vue
index 40b908f..3360abc 100644
--- a/src/views/asset-management/device-list/index.vue
+++ b/src/views/asset-management/device-list/index.vue
@@ -533,6 +533,7 @@
maxlength="32"
show-word-limit
clearable
+ autocomplete="off"
/>
@@ -544,6 +545,7 @@
show-word-limit
show-password
clearable
+ autocomplete="off"
/>
@@ -1956,7 +1958,7 @@
})
}
- if (hasAuth('asset:realname_policy')) {
+ if (hasAuth('device:realname_policy')) {
moreActions.push({
label: '实名认证策略',
handler: () => handleDeviceOperation('realname-policy', row.virtual_no, row),
diff --git a/src/views/asset-management/iot-card-management/index.vue b/src/views/asset-management/iot-card-management/index.vue
index 683e296..d43990b 100644
--- a/src/views/asset-management/iot-card-management/index.vue
+++ b/src/views/asset-management/iot-card-management/index.vue
@@ -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