diff --git a/ruoyi-ui/src/api/MonthlyEquipment/index.js b/ruoyi-ui/src/api/MonthlyEquipment/index.js index bb6cc820..9921dfbb 100644 --- a/ruoyi-ui/src/api/MonthlyEquipment/index.js +++ b/ruoyi-ui/src/api/MonthlyEquipment/index.js @@ -1,49 +1,55 @@ -import request from '@/utils/request' -import { download } from '../../utils/request' +import request from "@/utils/request"; +import { download } from "../../utils/request"; // 全景数据 - 运行环境接口 - // 设备状态柱状图按时间和类型 export function getSystemStatusList(query) { - return request({ - url: '/system/status/list', - method: 'get', - params: { - ...query, - } - }) - } - - //设备状态列表按时间和类型 - export function getSystemStatusTabList(query) { - //system/status/tablist - return request({ - url: '/system/status/tablist', - method: 'get', - params: { - ...query, - } - }) - } + return request({ + url: "/system/status/list", + method: "get", + params: { + ...query, + }, + }); +} +//设备状态列表按时间和类型 +export function getSystemStatusTabList(query) { + //system/status/tablist + return request({ + url: "/system/status/tablist", + method: "get", + params: { + ...query, + }, + }); +} - //设备状态列表按类型 - export function getSystemStatusType() { - //system/status/tablist - return request({ - url: '/system/status/type', - method: 'get', - params: { - // ...query, - } - }) - } - //system/status/type +//设备状态列表按类型 +export function getSystemStatusType() { + //system/status/tablist + return request({ + url: "/system/status/type", + method: "get", + }); +} +//system/status/type - //设备状态列表按类型 - export function getSystemStatusExport(query) { - //system/status/export - //return download('/system/status/export',query,"file.xlsx"); - return request.post('/system/status/export?startTime='+query.startTime+"&time="+ query.time +"&type="+query.type,{},{ headers: { 'Content-Type': 'application/x-www-form-urlencoded' }, - responseType: 'blob'}) - } \ No newline at end of file +//设备状态列表按类型 +export function getSystemStatusExport(query) { + //system/status/export + //return download('/system/status/export',query,"file.xlsx"); + return request.post( + "/system/status/export?startTime=" + + query.startTime + + "&time=" + + query.time + + "&type=" + + query.type, + {}, + { + headers: { "Content-Type": "application/x-www-form-urlencoded" }, + responseType: "blob", + } + ); +} diff --git a/ruoyi-ui/src/views/JiHeExpressway/components/InputSearch/index.vue b/ruoyi-ui/src/views/JiHeExpressway/components/InputSearch/index.vue index 36f75163..a0cb7305 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/components/InputSearch/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/components/InputSearch/index.vue @@ -118,7 +118,7 @@ export default { }, }; }, - emit: ["handleSearch"], + emit: ["handleSearch", "handleResetForm"], computed: { getFormConfigOptions() { return { diff --git a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/dutyOfficer/index.vue b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/dutyOfficer/index.vue index 5c0b1e6a..87874eb6 100644 --- a/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/dutyOfficer/index.vue +++ b/ruoyi-ui/src/views/JiHeExpressway/pages/control/event/businessDataManagement/views/dutyOfficer/index.vue @@ -1,5 +1,5 @@ -