From 2f0fa3545b539e8b6f952ea82a1ca2350c64a0e8 Mon Sep 17 00:00:00 2001 From: web <candymxq888@outlook.com> Date: 星期二, 22 四月 2025 17:28:48 +0800 Subject: [PATCH] fix:修改报警,添加参数 --- src/views/screen/flow/shebei/index.vue | 14 ++++++-------- 1 files changed, 6 insertions(+), 8 deletions(-) diff --git a/src/views/screen/flow/shebei/index.vue b/src/views/screen/flow/shebei/index.vue index 5b383c1..3bd1f87 100644 --- a/src/views/screen/flow/shebei/index.vue +++ b/src/views/screen/flow/shebei/index.vue @@ -2,8 +2,7 @@ import {ref, onMounted} from "vue"; import {getUserType} from '@/utils/auth.js' import facilityApi from "@/api/facility/index"; -import { getFlowMenu } from '@/api/screen/shebei/index.js' -import setPostParams from "@/utils/searchParams.js"; +import { getFlowMenu, getFlowShebeiList } from '@/api/screen/shebei/index.js' import { useRouter } from "vue-router"; const router = useRouter(); const imgBaseUrl = import.meta.env.VITE_APP_IMG_BASEURL; //图片前缀 @@ -29,9 +28,8 @@ // 获取设备 const getDataList = () => { - let postParam = setPostParams() - facilityApi().search({ ...postParam, keywords: searchVal.value }).then(res => { - deviceList.value = res.data.list + getFlowShebeiList({ facilityName: searchVal.value }).then(res => { + deviceList.value = res.data }) } @@ -90,9 +88,9 @@ :value="item.value" /> </el-select> - <el-input v-model="searchVal" style="width: 20rem" placeholder="请输入设备名称" /> + <el-input v-model="searchVal" style="width: 20rem" placeholder="请输入设备名称" clearable /> <el-button @click="getDataList"><el-icon><Search /></el-icon>搜索</el-button> - <el-button style="margin-left: 0" v-if="userType === '1'" @click="router.push('/facilityList')"><el-icon><Plus /></el-icon>新增</el-button> + <el-button style="margin-left: 0" v-if="userType === '1'" @click="router.push('/monitorList')"><el-icon><Plus /></el-icon>新增</el-button> </div> <div class="tool-r" @click="handleFullScreen"> <img src="@/assets/images/flow/fullscreen.png" /> @@ -195,7 +193,6 @@ flex-shrink: 0; width: 80%; height: 100%; - background: linear-gradient( 180deg, #91BDDB 0%, rgba(102, 102, 102, 0.5) 100%); .monitor-tool{ width: 100%; height: 60px; @@ -224,6 +221,7 @@ .monitor-box{ height: calc(100% - 60px); padding-top: 10px; + background: linear-gradient(180deg, #91BDDB 0%, rgba(102, 102, 102, 0.5) 100%); .list{ height: 100%; padding: 0 30px; -- Gitblit v1.9.3