import fetch from '@/common/fetchs.js'; import useNetWork from '@/common/useNetWork.js'; const visitReason = 'http://111.198.10.15:11406/device/list-page' const baseConfig = 'http://111.198.10.15:11406/sys/config/baseConfig' const Login = 'http://111.198.10.15:11406/sys/user/login' const Alarm = 'http://111.198.10.15:11406/alarm/list' /** * 获取到报警列表 * @param {*} */ export function getAlarm(params) { useNetWork(); return fetch.get(Alarm,params).then(res => res); } /** * 登录 * @param {*} */ export function getLogin(data) { useNetWork(); return fetch.post(Login,data).then(res => res); } /** * 获取baseConfig * @param {*} */ export function getbaseConfig() { return fetch.get(baseConfig).then(res => res); } /** * 获取设备数据 * @param {*} */ export function getPageList(params) { useNetWork(); return fetch.get(visitReason, params).then(res => res); }