| | |
| | | <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 |
| | | }) |
| | | } |
| | | |