fix: wifi 自动填充
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m58s
All checks were successful
构建并部署前端到测试环境 / build-and-deploy (push) Successful in 4m58s
This commit is contained in:
@@ -370,7 +370,7 @@
|
||||
<ElButton type="success" @click="handleEnableCard"> 启用此卡 </ElButton>
|
||||
<ElButton type="warning" @click="handleDisableCard"> 停用此卡 </ElButton>
|
||||
<!--<ElButton type="danger" @click="handleManualDeactivate"> 手动停用 </ElButton>-->
|
||||
<ElButton type="primary" @click="handleShowRealnamePolicy"> 实名认证策略 </ElButton>
|
||||
<ElButton v-if="canShowRealnamePolicy" type="primary" @click="handleShowRealnamePolicy"> 实名认证策略 </ElButton>
|
||||
</div>
|
||||
|
||||
<!-- 设备操作按钮 -->
|
||||
@@ -380,7 +380,7 @@
|
||||
<ElButton type="warning" @click="handleResetDevice"> 恢复出厂 </ElButton>
|
||||
<ElButton type="success" @click="handleShowSwitchCard"> 切换SIM卡 </ElButton>
|
||||
<ElButton type="primary" @click="handleShowSetWiFi"> 设置WiFi </ElButton>
|
||||
<ElButton type="primary" @click="handleShowRealnamePolicy"> 实名认证策略 </ElButton>
|
||||
<ElButton v-if="canShowRealnamePolicy" type="primary" @click="handleShowRealnamePolicy"> 实名认证策略 </ElButton>
|
||||
</div>
|
||||
</ElCard>
|
||||
</template>
|
||||
@@ -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<Props>()
|
||||
|
||||
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
|
||||
|
||||
@@ -14,6 +14,7 @@
|
||||
maxlength="32"
|
||||
show-word-limit
|
||||
clearable
|
||||
autocomplete="off"
|
||||
/>
|
||||
</ElFormItem>
|
||||
<ElFormItem label="WiFi密码" prop="password">
|
||||
@@ -25,6 +26,7 @@
|
||||
show-word-limit
|
||||
show-password
|
||||
clearable
|
||||
autocomplete="off"
|
||||
/>
|
||||
</ElFormItem>
|
||||
</ElForm>
|
||||
|
||||
Reference in New Issue
Block a user