diff --git a/hx-ai-intelligent/public/asset/image/bulbLogo/alarm.png b/hx-ai-intelligent/public/asset/image/bulbLogo/alarm.png new file mode 100644 index 0000000..b794ca9 Binary files /dev/null and b/hx-ai-intelligent/public/asset/image/bulbLogo/alarm.png differ diff --git a/hx-ai-intelligent/public/asset/image/bulbLogo/off.png b/hx-ai-intelligent/public/asset/image/bulbLogo/off.png new file mode 100644 index 0000000..2653beb Binary files /dev/null and b/hx-ai-intelligent/public/asset/image/bulbLogo/off.png differ diff --git a/hx-ai-intelligent/public/asset/image/bulbLogo/22394@2x.png b/hx-ai-intelligent/public/asset/image/bulbLogo/on.png similarity index 100% rename from hx-ai-intelligent/public/asset/image/bulbLogo/22394@2x.png rename to hx-ai-intelligent/public/asset/image/bulbLogo/on.png diff --git a/hx-ai-intelligent/public/asset/image/bulbLogo/repair.png b/hx-ai-intelligent/public/asset/image/bulbLogo/repair.png new file mode 100644 index 0000000..a30b50d Binary files /dev/null and b/hx-ai-intelligent/public/asset/image/bulbLogo/repair.png differ diff --git a/hx-ai-intelligent/src/api/airConditionControlSystem.ts b/hx-ai-intelligent/src/api/airConditionControlSystem.ts index f5b8f1d..b175523 100644 --- a/hx-ai-intelligent/src/api/airConditionControlSystem.ts +++ b/hx-ai-intelligent/src/api/airConditionControlSystem.ts @@ -19,4 +19,11 @@ export enum airConditionControl { // 右侧表格修改数据提交 submitTableData = prefix + '/airConditioningCtrl/refreshPlanStatus', + + // 主页 > 抽屉 > 日志 =========================================== + + // 获取日志 + getLog = prefix + '/airConditioningInfo/pageAbleLog', + // 获取日志详情 + getLogDetail = prefix + '/airConditioningInfo/fullLog', } diff --git a/hx-ai-intelligent/src/api/ventilatingSystem.ts b/hx-ai-intelligent/src/api/ventilatingSystem.ts index 3e9e8ee..a72a291 100644 --- a/hx-ai-intelligent/src/api/ventilatingSystem.ts +++ b/hx-ai-intelligent/src/api/ventilatingSystem.ts @@ -13,6 +13,10 @@ export enum ventilating { getDevice1 = prefix + '/ventilatingFanCtrl/getDeviceState', // 提交排风扇的修改内容 submitTableData1 = prefix + '/ventilatingFanCtrl/refreshPlanStatus', + // 排风扇日志 + getLog1 = prefix + '/ventilatingFanInfo/pageAbleLog', + // 排风扇日志详情 + getLogDetail1 = prefix + '/ventilatingFanInfo/fullLog', // 风幕机相关 ============================================= // 获得风幕机的树形结构 @@ -25,6 +29,10 @@ export enum ventilating { getDevice2 = prefix + '/airCurtainMachineCtrl/getDeviceState', // 提交风幕机的修改内容 submitTableData2 = prefix + '/airCurtainMachineCtrl/refreshPlanStatus', + // 风幕机日志 + getLog2 = prefix + '/airCurtainMachineInfo/pageAbleLog', + // 风幕机日志详情 + getLogDetail2 = prefix + '/airCurtainMachineInfo/fullLog', // 电动窗相关 ============================================= // 获得电动窗的树形结构 @@ -37,4 +45,8 @@ export enum ventilating { getDevice3 = prefix + '/eleOperatedWindowCtrl/getDeviceState', // 提交电动窗的修改内容 submitTableData3 = prefix + '/eleOperatedWindowCtrl/refreshPlanStatus', + // 电动窗日志 + getLog3 = prefix + '/eleOperatedWindowInfo/pageAbleLog', + // 电动窗日志详情 + getLogDetail3 = prefix + '/eleOperatedWindowInfo/fullLog', } diff --git a/hx-ai-intelligent/src/view/equipmentControl/airConditionControlSystem/tabs1.vue b/hx-ai-intelligent/src/view/equipmentControl/airConditionControlSystem/tabs1.vue index 477c65c..d340627 100644 --- a/hx-ai-intelligent/src/view/equipmentControl/airConditionControlSystem/tabs1.vue +++ b/hx-ai-intelligent/src/view/equipmentControl/airConditionControlSystem/tabs1.vue @@ -817,6 +817,6 @@ }); diff --git a/hx-ai-intelligent/src/view/equipmentControl/airConditionControlSystem/tabs2.vue b/hx-ai-intelligent/src/view/equipmentControl/airConditionControlSystem/tabs2.vue index d766a90..cc0b7c5 100644 --- a/hx-ai-intelligent/src/view/equipmentControl/airConditionControlSystem/tabs2.vue +++ b/hx-ai-intelligent/src/view/equipmentControl/airConditionControlSystem/tabs2.vue @@ -231,7 +231,7 @@ }; diff --git a/hx-ai-intelligent/src/view/equipmentControl/lightingManage/tabs2.vue b/hx-ai-intelligent/src/view/equipmentControl/lightingManage/tabs2.vue index 6bff15e..2426acb 100644 --- a/hx-ai-intelligent/src/view/equipmentControl/lightingManage/tabs2.vue +++ b/hx-ai-intelligent/src/view/equipmentControl/lightingManage/tabs2.vue @@ -164,11 +164,21 @@ }; // 将对表格的修改统一发送 const sendTable = () => { - http.post(lightingManage.submitTableData, dataSource.value).then((res) => { - message.success('操作成功'); - getTable(); - getLeftPlan(); - }); + http + .post( + lightingManage.submitTableData + + `?projectId=${state.projectId}${state.siteId ? `&siteId=${state.siteId}` : ''}`, + dataSource.value, + ) + .then((res) => { + if (res.retcode == 0) { + message.success('操作成功'); + getTable(); + getLeftPlan(); + } else { + message.info(res.msg); + } + }); }; // tab页弹窗部分 ==================================================== @@ -231,7 +241,7 @@ }; diff --git a/hx-ai-intelligent/src/view/equipmentControl/ventilationSystem/components/fanLog.vue b/hx-ai-intelligent/src/view/equipmentControl/ventilationSystem/components/fanLog.vue new file mode 100644 index 0000000..fbc714b --- /dev/null +++ b/hx-ai-intelligent/src/view/equipmentControl/ventilationSystem/components/fanLog.vue @@ -0,0 +1,312 @@ + + + + diff --git a/hx-ai-intelligent/src/view/equipmentControl/ventilationSystem/components/fanPlant.vue b/hx-ai-intelligent/src/view/equipmentControl/ventilationSystem/components/fanPlant.vue index 8673a50..2dcccec 100644 --- a/hx-ai-intelligent/src/view/equipmentControl/ventilationSystem/components/fanPlant.vue +++ b/hx-ai-intelligent/src/view/equipmentControl/ventilationSystem/components/fanPlant.vue @@ -108,7 +108,9 @@ type: Number, }, }); - + let url = ''; + // 全局变量 + const state = items(); onMounted(() => { // 计划表格 getTable(); @@ -123,9 +125,6 @@ url = ventilating.submitTableData3; } }); - // 全局变量 - const state = items(); - let url = ''; // tab页部分 ======================================================== @@ -183,11 +182,16 @@ }; // 将对表格的修改统一发送 const sendTable = () => { - http.post(url, dataSource.value).then(() => { - message.success('操作成功'); - getTable(); - getLeftPlan(); - }); + http + .post( + url + `?projectId=${state.projectId}${state.siteId ? `&siteId=${state.siteId}` : ''}`, + dataSource.value, + ) + .then(() => { + message.success('操作成功'); + getTable(); + getLeftPlan(); + }); }; // tab页弹窗部分 ==================================================== @@ -250,7 +254,7 @@ };