| | |
| | | <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; //图片前缀 |
| | |
| | | |
| | | // 获取设备 |
| | | 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 |
| | | }) |
| | | } |
| | | |
| | |
| | | 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; |
| | |
| | | } |
| | | } |
| | | .monitor-box{ |
| | | background: linear-gradient( 180deg, #91BDDB 0%, rgba(102, 102, 102, 0.5) 100%); |
| | | height: calc(100% - 60px); |
| | | padding-top: 10px; |
| | | .list{ |