diff --git a/hx-ai-intelligent/src/api/waterSystem.ts b/hx-ai-intelligent/src/api/waterSystem.ts index e8c282c..fb56ab3 100644 --- a/hx-ai-intelligent/src/api/waterSystem.ts +++ b/hx-ai-intelligent/src/api/waterSystem.ts @@ -2,6 +2,8 @@ const prefix = '/carbon-smart/api'; // 通风系统相关接口 export enum waterSys { + // 首页 ==================================================== + // 获得污水池状态 getPool1 = prefix + '/waterSysCtrl/getSewagePoolState', // 获得阀门状态 @@ -10,4 +12,15 @@ export enum waterSys { getPool2 = prefix + '/waterSysCtrl/getCollectPoolState', // 获得水泵状态 getPump = prefix + '/waterSysCtrl/getPumpState', + // 提交场景模式修改 + submitList = prefix + '/waterSysCtrl/changeToSceneMode', + + // 计划 tab1 =============================================== + submitTableData = prefix + '/waterSysCtrl/refreshPlanStatus', + + // 日志 tab2 =============================================== + // 获得设备日志 + getLog = prefix + '/waterSysInfo/pageAbleLog', + // 获得日志详情 + getLogDetail = prefix + '/waterSysInfo/fullLog', } diff --git a/hx-ai-intelligent/src/router/equipmentControl.ts b/hx-ai-intelligent/src/router/equipmentControl.ts index 9d4dd25..52703dd 100644 --- a/hx-ai-intelligent/src/router/equipmentControl.ts +++ b/hx-ai-intelligent/src/router/equipmentControl.ts @@ -119,25 +119,25 @@ const equipmentControl = { }, ], }, - // { - // path: 'waterSystem', - // name: 'waterSystem', - // meta: { title: '给排水系统', hideChildren: true, icon: 'shebeiqunkong' }, - // component: Base, - // redirect: { name: 'waternControlSystemIndex' }, - // children: [ - // { - // path: 'index', - // name: 'waternControlSystemIndex', - // component: () => import('/@/view/equipmentControl/waterSystem/index.vue'), - // meta: { - // title: '给排水系统', - // keepAlive: false, - // // backApi: [], - // }, - // }, - // ], - // }, + { + path: 'waterSystem', + name: 'waterSystem', + meta: { title: '给排水系统', hideChildren: true, icon: 'shebeiqunkong' }, + component: Base, + redirect: { name: 'waternControlSystemIndex' }, + children: [ + { + path: 'index', + name: 'waternControlSystemIndex', + component: () => import('/@/view/equipmentControl/waterSystem/index.vue'), + meta: { + title: '给排水系统', + keepAlive: false, + // backApi: [], + }, + }, + ], + }, { path: 'planToAdd', name: 'planToAdd', diff --git a/hx-ai-intelligent/src/view/equipmentControl/airConditionControlSystem/tabs3.vue b/hx-ai-intelligent/src/view/equipmentControl/airConditionControlSystem/tabs3.vue index fec786d..1707a4d 100644 --- a/hx-ai-intelligent/src/view/equipmentControl/airConditionControlSystem/tabs3.vue +++ b/hx-ai-intelligent/src/view/equipmentControl/airConditionControlSystem/tabs3.vue @@ -30,6 +30,7 @@ v-model:pageSize="pagination.pageSize" show-size-changer :total="pagination.total" + show-less-items @change="getTable(true)" />
diff --git a/hx-ai-intelligent/src/view/equipmentControl/lightingManage/tabs3.vue b/hx-ai-intelligent/src/view/equipmentControl/lightingManage/tabs3.vue index 1f6b3ff..dbdc785 100644 --- a/hx-ai-intelligent/src/view/equipmentControl/lightingManage/tabs3.vue +++ b/hx-ai-intelligent/src/view/equipmentControl/lightingManage/tabs3.vue @@ -30,6 +30,7 @@ v-model:pageSize="pagination.pageSize" show-size-changer :total="pagination.total" + show-less-items @change="getTable(true)" />
diff --git a/hx-ai-intelligent/src/view/equipmentControl/ventilationSystem/components/fanControl.vue b/hx-ai-intelligent/src/view/equipmentControl/ventilationSystem/components/fanControl.vue index de58199..9e46ab8 100644 --- a/hx-ai-intelligent/src/view/equipmentControl/ventilationSystem/components/fanControl.vue +++ b/hx-ai-intelligent/src/view/equipmentControl/ventilationSystem/components/fanControl.vue @@ -85,9 +85,9 @@ :class="{ btn: true, selected: button.selected }" class="zmhlbtn" @click="changeLine(button)"> -
+ {{ button.name }}
diff --git a/hx-ai-intelligent/src/view/equipmentControl/ventilationSystem/components/fanLog.vue b/hx-ai-intelligent/src/view/equipmentControl/ventilationSystem/components/fanLog.vue index 302a44f..b2c56e9 100644 --- a/hx-ai-intelligent/src/view/equipmentControl/ventilationSystem/components/fanLog.vue +++ b/hx-ai-intelligent/src/view/equipmentControl/ventilationSystem/components/fanLog.vue @@ -30,6 +30,7 @@ v-model:pageSize="pagination.pageSize" show-size-changer :total="pagination.total" + show-less-items @change="getTable(true)" />
diff --git a/hx-ai-intelligent/src/view/equipmentControl/waterSystem/component/logTab.vue b/hx-ai-intelligent/src/view/equipmentControl/waterSystem/component/logTab.vue new file mode 100644 index 0000000..8da6cd0 --- /dev/null +++ b/hx-ai-intelligent/src/view/equipmentControl/waterSystem/component/logTab.vue @@ -0,0 +1,429 @@ + + + + diff --git a/hx-ai-intelligent/src/view/equipmentControl/waterSystem/component/planTab.vue b/hx-ai-intelligent/src/view/equipmentControl/waterSystem/component/planTab.vue new file mode 100644 index 0000000..51643b2 --- /dev/null +++ b/hx-ai-intelligent/src/view/equipmentControl/waterSystem/component/planTab.vue @@ -0,0 +1,381 @@ + + + + diff --git a/hx-ai-intelligent/src/view/equipmentControl/waterSystem/device.ts b/hx-ai-intelligent/src/view/equipmentControl/waterSystem/device.ts new file mode 100644 index 0000000..4278f5e --- /dev/null +++ b/hx-ai-intelligent/src/view/equipmentControl/waterSystem/device.ts @@ -0,0 +1,282 @@ +import { ref } from 'vue'; +// 流动线条样式与定位 +export const linePosition = [ + // 雨水池 - 控制阀 + { + left: '4%', + top: '44%', + transform: 'rotateZ(-30deg)', + transformOrigin: 'left', + zIndex: '6', + width: '6%', + }, + { + left: '4%', + top: '84%', + transform: 'rotateZ(-30deg)', + transformOrigin: 'left', + zIndex: '6', + width: '6%', + }, + // 控制阀 - 进水阀 + { left: '12%', top: '34%', width: '10%' }, + { left: '12%', top: '74%', width: '10%' }, + // 进水阀 - 集水池 + { left: '23%', top: '34%', width: '8%' }, + { left: '23%', top: '74%', width: '8%' }, + // 集水池 - 排水泵 - 横线 + { left: '35%', top: '34%', width: '4%' }, + { left: '35%', top: '74%', width: '4%' }, + // 上半集水池右侧分线 + { left: '39%', top: '34%', transform: 'rotateZ(90deg)', transformOrigin: 'left', width: '4%' }, + { left: '39%', top: '34%', transform: 'rotateZ(-90deg)', transformOrigin: 'left', width: '4%' }, + // 下半集水池右侧分线 + { left: '39%', top: '74%', transform: 'rotateZ(90deg)', transformOrigin: 'left', width: '4%' }, + { left: '39%', top: '74%', transform: 'rotateZ(-90deg)', transformOrigin: 'left', width: '4%' }, + // 上半-左侧水泵分线 + { left: '39%', top: '25%', width: '8%' }, + { left: '39%', top: '43%', width: '8%' }, + // 下半-左侧水泵分线 + { left: '39%', top: '65%', width: '8%' }, + { left: '39%', top: '83%', width: '8%' }, + // 水泵右侧合线 下半 + { left: '47%', top: '83%', transform: 'rotateZ(-90deg)', transformOrigin: 'left', width: '14%' }, + // 水泵右侧合线 上半 + { left: '47%', top: '25%', transform: 'rotateZ(90deg)', transformOrigin: 'left', width: '12%' }, + // 汇入总闸连线 + { left: '47%', top: '52%', width: '4%' }, + // 汇入总集水池 + { left: '51%', top: '52%', transform: 'rotateZ(-25deg)', transformOrigin: 'left', width: '7%' }, + // 汇入总排水闸 + { left: '58%', top: '45%', width: '9%' }, + // 汇入市政管道 - 途径水泵2 + { left: '68%', top: '45%', width: '28%' }, + // 总排水闸 - 总排水泵1 上半 + { left: '75%', top: '45%', transform: 'rotateZ(-90deg)', transformOrigin: 'left', width: '10%' }, + { left: '75%', top: '23%', width: '11%' }, + { left: '86%', top: '22.5%', transform: 'rotateZ(90deg)', transformOrigin: 'left', width: '10%' }, + // 总排水闸 - 总排水泵3 下半 + { left: '75%', top: '45%', transform: 'rotateZ(90deg)', transformOrigin: 'left', width: '9%' }, + { left: '75%', top: '65%', width: '11%' }, + { + left: '86%', + top: '65%', + transform: 'rotateZ(-90deg)', + transformOrigin: 'left', + width: '9%', + }, +]; + +/** + * 1. 设备数量是固定的 + * 2. 设备顺序是固定的 + * 3. 此处数据用于渲染设备图标,后端返回数据后,将依次插入 + * @param icon 决定调用的设备图标:污水池=1/集水池=2/控制阀=3//进水阀=4//排水泵=5 + * @param type 设备类型:污水池=1/阀门=2/集水池=3/水泵=4 + * @param open 水泵的开关状态 开=true/关=false + * @param control 是否可以被操作(是否显示顶部按钮,水池为false) + * @param edited 是否已经被编辑(决定显示编辑 或 撤销) + */ +// 污水池 +export const device1 = ref([ + { + control: false, + type: 1, + icon: 1, + styleObject: { + left: '1%', + top: '40%', + zIndex: '9', + }, + }, + { + control: false, + type: 1, + icon: 1, + styleObject: { + left: '1%', + top: '80%', + zIndex: '9', + }, + }, +]); +// 阀门 +export const device2 = ref([ + { + control: true, + open: true, + type: 2, + icon: 3, + edited: false, + styleObject: { + left: '8%', + top: '28%', + }, + }, + { + control: true, + open: false, + type: 2, + icon: 3, + edited: false, + styleObject: { + left: '8%', + top: '68%', + }, + }, + { + control: true, + open: true, + type: 2, + icon: 4, + edited: false, + styleObject: { + left: '20%', + top: '28%', + }, + }, + { + control: true, + open: true, + type: 2, + icon: 4, + edited: false, + styleObject: { + left: '20%', + top: '68%', + }, + }, + { + control: true, + open: true, + type: 2, + icon: 3, + edited: false, + styleObject: { + left: '48%', + top: '46%', + }, + }, + { + control: true, + open: true, + type: 2, + icon: 3, + edited: false, + styleObject: { + left: '65%', + top: '38%', + }, + }, +]); +// 集水池 +export const device3 = ref([ + { + control: false, + type: 3, + icon: 2, + styleObject: { + left: '30%', + top: '68%', + }, + }, + { + control: false, + type: 3, + icon: 2, + styleObject: { + left: '30%', + top: '28%', + }, + }, + { + control: false, + type: 3, + icon: 2, + styleObject: { + left: '56%', + top: '40%', + }, + }, +]); +// 水泵 +export const device4 = ref([ + { + control: true, + open: false, + type: 4, + icon: 5, + edited: false, + styleObject: { + left: '40%', + top: '20%', + }, + }, + { + control: true, + open: true, + type: 4, + icon: 5, + edited: false, + styleObject: { + left: '40%', + top: '40%', + }, + }, + { + control: true, + open: true, + type: 4, + icon: 5, + edited: false, + styleObject: { + left: '40%', + top: '60%', + }, + }, + { + control: true, + open: true, + type: 4, + icon: 5, + edited: false, + styleObject: { + left: '40%', + top: '80%', + }, + }, + // 右上3水泵 + { + control: true, + open: true, + type: 4, + icon: 5, + edited: false, + styleObject: { + left: '78%', + top: '20%', + }, + }, + { + control: true, + open: true, + type: 4, + icon: 5, + edited: false, + styleObject: { + left: '78%', + top: '40%', + }, + }, + { + control: true, + open: true, + type: 4, + icon: 5, + edited: false, + styleObject: { + left: '78%', + top: '60%', + }, + }, +]); diff --git a/hx-ai-intelligent/src/view/equipmentControl/waterSystem/deviceInfo.vue b/hx-ai-intelligent/src/view/equipmentControl/waterSystem/deviceInfo.vue new file mode 100644 index 0000000..8f7232c --- /dev/null +++ b/hx-ai-intelligent/src/view/equipmentControl/waterSystem/deviceInfo.vue @@ -0,0 +1,150 @@ + + + diff --git a/hx-ai-intelligent/src/view/equipmentControl/waterSystem/deviceItem.vue b/hx-ai-intelligent/src/view/equipmentControl/waterSystem/deviceItem.vue new file mode 100644 index 0000000..e8b0b3a --- /dev/null +++ b/hx-ai-intelligent/src/view/equipmentControl/waterSystem/deviceItem.vue @@ -0,0 +1,291 @@ + + + diff --git a/hx-ai-intelligent/src/view/equipmentControl/waterSystem/deviceLine.vue b/hx-ai-intelligent/src/view/equipmentControl/waterSystem/deviceLine.vue new file mode 100644 index 0000000..245957c --- /dev/null +++ b/hx-ai-intelligent/src/view/equipmentControl/waterSystem/deviceLine.vue @@ -0,0 +1,30 @@ + + + diff --git a/hx-ai-intelligent/src/view/equipmentControl/waterSystem/images/open.png b/hx-ai-intelligent/src/view/equipmentControl/waterSystem/images/open.png new file mode 100644 index 0000000..99fb1d0 Binary files /dev/null and b/hx-ai-intelligent/src/view/equipmentControl/waterSystem/images/open.png differ diff --git a/hx-ai-intelligent/src/view/equipmentControl/waterSystem/index.vue b/hx-ai-intelligent/src/view/equipmentControl/waterSystem/index.vue new file mode 100644 index 0000000..df8efa1 --- /dev/null +++ b/hx-ai-intelligent/src/view/equipmentControl/waterSystem/index.vue @@ -0,0 +1,663 @@ + + +