web
4 天以前 8e38cc8536cfda9b6bda8548d63778cbf5f4d634
src/views/screen/temperature/shebei/index.vue
@@ -1,9 +1,8 @@
<script setup>
import {ref, onMounted} from "vue";
import facilityApi from "@/api/facility/index";
import { getTemperatureMenu } from '@/api/screen/shebei/index.js'
import { getTemperatureMenu, getTempShebeiList } from '@/api/screen/shebei/index.js'
import {getUserType} from '@/utils/auth.js'
import setPostParams from "@/utils/searchParams.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
    getTempShebeiList({ facilityName: searchVal.value }).then(res => {
        deviceList.value = res.data
    })
}
@@ -196,7 +194,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;
@@ -223,6 +220,7 @@
            }
        }
        .monitor-box{
            background: linear-gradient( 180deg, #91BDDB 0%, rgba(102, 102, 102, 0.5) 100%);
            height: calc(100% - 60px);
            padding-top: 10px;
            .list{