feat:云音箱

This commit is contained in:
dzc committed 2026-05-28 12:29:06 +08:00
1 parent 3182c7701e
commit 4a28667163
3 files changed
+6 -8

No files matched your search

+3 -2
View File
@@ -1,6 +1,7 @@
<template>
<el-dialog title="人脸sdk设置" width="40%" v-model="visible" :close-on-click-modal="false" draggable>
<el-form ref="dataFormRef" :model="form" :rules="dataRules" formDialogRef label-width="120px" v-loading="loading">
<el-form ref="dataFormRef" :model="form" :rules="dataRules" formDialogRef label-width="120px"
v-loading="loading">
<el-row :gutter="24">
<el-col :span="24" class="mb20">
<el-form-item label="人脸appId" prop="faceAppId">
@@ -75,7 +76,7 @@ const openDialog = (id: string) => {
// 提交
const onSubmit = async () => {
const valid = await dataFormRef.value.validate().catch(() => {})
const valid = await dataFormRef.value.validate().catch(() => { })
if (!valid) return false
try {
+1 -4
View File
@@ -8,25 +8,22 @@
<el-input v-model="form.name" placeholder="请输入设备名" />
</el-form-item>
</el-col>
<el-col :span="24" class="mb20">
<el-form-item label="商户" prop="merchantId">
<select-mch v-model="form.merchantId" placeholder="请选择商户" />
</el-form-item>
</el-col>
<el-col v-if="false" :span="24" class="mb20">
<el-form-item label="分组" prop="hardGroupId">
<select-hard-group v-model="form.hardGroupId" placeholder="分组" />
</el-form-item>
</el-col>
<el-col :span="24" class="mb20">
<el-form-item label="设备类型" prop="type">
<dict-select v-model="form.type" dict-code="hard_type" clearable />
</el-form-item>
</el-col>
<el-col v-if="['10'].includes(form.type)" :span="24" class="mb20">
<el-col v-if="['10', '11'].includes(form.type)" :span="24" class="mb20">
<el-form-item label="唯一编号" prop="uniqueCode">
<el-input v-model="form.uniqueCode" placeholder="设备唯一编号" />
</el-form-item>
+2 -2
View File
@@ -69,11 +69,11 @@
@click="formDialogRef.openDialog(row.id)">
编辑
</el-button>
<el-button v-if="!['10'].includes(row.type)" icon="TrendCharts" link type="primary"
<el-button v-if="!['10', '11'].includes(row.type)" icon="TrendCharts" link type="primary"
v-auth="'hard_hardManager_edit'" @click="mqformDialogRef.openDialog(row.id)">
mq设置
</el-button>
<el-button v-if="!['10'].includes(row.type)" icon="SetUp" link type="primary"
<el-button v-if="!['10', '11'].includes(row.type)" icon="SetUp" link type="primary"
v-auth="'hard_hardManager_edit'" @click="faceFormDialogRef.openDialog(row.id)">
人脸sdk设置
</el-button>