feat:智能柜配置详情

This commit is contained in:
dzc committed 2025-04-09 12:40:38 +08:00
1 parent a7ffb58e75
commit fbea57b81f
7 files changed
+419 -40

No files matched your search

+12 -4
View File
@@ -61,7 +61,7 @@
</template>
</el-table-column>
<el-table-column prop="hardGroupName" width="200" label="分类" />
<el-table-column prop="merchantName" width="100" label="商户" />
<el-table-column prop="merchantName" width="150" label="商户" />
<el-table-column prop="deptName" width="200" label="部门" />
<el-table-column prop="uniqueCode" width="200" label="设备唯一编号" />
<el-table-column prop="mainTopic" width="350" label="topic" />
@@ -84,9 +84,10 @@
<el-table-column prop="createTime" width="200" label="创建时间" />
<el-table-column v-auths="['hard_hardManager_edit', 'hard_hardManager_del']" label="操作" fixed="right" width="400">
<template #default="{ row }">
<el-button icon="edit-pen" text type="primary" v-auth="'hard_hardManager_edit'" @click="formDialogRef.openDialog(row.id)"
>编辑</el-button
>
<el-button icon="InfoFilled" text type="primary" v-auth="'hard_hardManager_edit'" @click="doInfo(row)"> 详情 </el-button>
<el-button icon="edit-pen" text type="primary" v-auth="'hard_hardManager_edit'" @click="formDialogRef.openDialog(row.id)">
编辑
</el-button>
<el-button icon="TrendCharts" link type="primary" v-auth="'hard_hardManager_edit'" @click="mqformDialogRef.openDialog(row.id)">
mq设置
</el-button>
@@ -113,6 +114,8 @@ import { useMessage, useMessageBox } from "/@/hooks/message"
import { useDict } from "/@/hooks/dict"
import { useUserInfo } from "/@/stores/userInfo"
const { push } = useRouter()
// 引入组件
const FormDialog = defineAsyncComponent(() => import("./form.vue"))
const FaceFormDialog = defineAsyncComponent(() => import("./face-form.vue"))
@@ -169,6 +172,11 @@ const selectionChangHandle = (objs: { id: string }[]) => {
multiple.value = !objs.length
}
// 硬件详情
const doInfo = (row: any) => {
push({ path: "/hard/hard-door-manager/index", query: { id: row.id } })
}
// 删除操作
const handleDelete = async (ids: string[]) => {
try {