import axios from "@/assets/js/axios";
|
|
/**
|
* 获取页面的导航信息
|
* @returns {AxiosPromise}
|
*/
|
export const APIGetPageMenu = () => {
|
return axios({
|
method: 'GET',
|
url: '/menu/list',
|
});
|
};
|
/**
|
* 检测当前用户是否在其他未知登录
|
* 无参
|
* @return 查询结果
|
*/
|
export const checkUserLogin = () => {
|
return axios({
|
method: "POST",
|
url: "/login/check",
|
data: null
|
});
|
};
|
|
/**
|
* 查询所有告警信息
|
* 参数
|
*/
|
export const getAllRealAlarm = () => {
|
return axios({
|
method: "GET",
|
url: "/Battalarm_dataAction/getRealAlarm",
|
});
|
};
|
|
/**
|
* 查询头部信息
|
* 无参
|
*/
|
export const searchHomePage = () => {
|
return axios({
|
method: 'GET',
|
url: '/HomePage/getDataMap',
|
data: null
|
});
|
};
|
|
|
/**
|
* 获取省
|
* 无参
|
*/
|
export const province = () => {
|
return axios({
|
method: "post",
|
url: 'PowerInfAction_power_getProvincesContainBatt',
|
data: null
|
});
|
};
|
|
/**
|
* 获取市
|
*/
|
export const city = (data) => {
|
return axios({
|
method: "post",
|
url: 'PowerInfAction_power_getCitiesContainBatt',
|
data: 'json=' + JSON.stringify(data)
|
});
|
};
|
|
/**
|
* 获取区县
|
*/
|
export const county = (data) => {
|
return axios({
|
method: "post",
|
url: 'PowerInfAction_power_getDistrictsContainBatt',
|
data: 'json=' + JSON.stringify(data)
|
});
|
};
|
|
/**
|
* 获取天气
|
*/
|
export const getWeather = (data) => {
|
return axios({
|
method: "post",
|
url: '/weather/get',
|
data: data
|
});
|
};
|
|
|
// 初始化实时生效页面页签
|
export const getRealTabsConfig = (type) => {
|
type = type ? type : 1;
|
return axios({
|
method: 'GET',
|
url: '/pageParamUser/list',
|
params: { type: type }
|
})
|
}
|
|
// 初始化实时所有页面页签
|
export const getAllRealTabsConfig = (type) => {
|
type = type ? type : 1;
|
return axios({
|
method: 'GET',
|
url: '/pageParamUser/allList',
|
params: { type: type }
|
})
|
}
|
|
// 初始化实时所有页面页签
|
export const updateAllParamList = (data) => {
|
return axios({
|
method: 'POST',
|
url: '/pageParamUser/allParamList',
|
data: data
|
})
|
}
|
|
/**
|
* 获取为读的wav语音文件列表
|
* @returns {AxiosPromise}
|
*/
|
export const getVoiceList = () => {
|
return axios({
|
method: 'GET',
|
url: 'voice/wavRead',
|
})
|
}
|
|
export const delVoice = (fileFullName) => {
|
return axios({
|
method: 'POST',
|
url: 'voice/deleteWavRead',
|
params: {
|
fileFullName
|
},
|
})
|
}
|
|
export const getAlarmVoiceSetting = ()=> {
|
return axios({
|
method:"GET",
|
url:"powerAlarmConfig/getInfo",
|
})
|
}
|
|
export const timeoutVoice = (data)=> {
|
return axios({
|
method:"post",
|
url:"alarmVoiceSet/nextTimeInterval",
|
data
|
})
|
}
|