1
0
forked from dyf/dyf-vue-ui

控制中心加入670的操作。

This commit is contained in:
liub
2025-09-18 11:22:11 +08:00
parent a407fb7f7a
commit 34c828bef3
4 changed files with 1108 additions and 4 deletions

View File

@ -37,7 +37,7 @@
<el-collapse-item name="1">
<el-form ref="queryFormRef" :model="queryParams" :inline="true" class="queryFormRef">
<el-form-item label="设备类型" prop="deviceType">
<el-select v-model="queryParams.deviceType" placeholder="设备类型">
<el-select v-model="queryParams.deviceType" placeholder="设备类型" clearable>
<el-option v-for="item in deviceTypeOptions" :key="item.value" :label="item.typeName"
:value="item.deviceTypeId" />
</el-select>
@ -306,6 +306,7 @@ const handleControl = (row: any) => {
const detailPageUrl = row.detailPageUrl;
const basePath = detailPageUrl.replace(/\/index$/, '');
const dynamicPath = `/${basePath}/${deviceId}`;
debugger;
router.push(dynamicPath); // 跳转路由
};
@ -336,6 +337,7 @@ onMounted(() => {
const getList = async () => {
loading.value = false;
const res = await api.deviceControlCenterList(queryParams.value);
loading.value = false;
deviceList.value = res.rows;
total.value = res.total;