diff --git a/src/api/equipment/list.js b/src/api/equipment/list.js index ccebb42..a5f6d48 100644 --- a/src/api/equipment/list.js +++ b/src/api/equipment/list.js @@ -48,3 +48,11 @@ export const getCircuitBreakerDetail = (data) => { data: data }) } +// 设备配置 +export const getDeviceConfigListByPage = (data) => { + return service({ + url: '/device/getDeviceConfigListByPage', + method: 'post', + data: data + }) +} diff --git a/src/api/masterStation/equipment.js b/src/api/masterStation/equipment.js new file mode 100644 index 0000000..a5f6d48 --- /dev/null +++ b/src/api/masterStation/equipment.js @@ -0,0 +1,58 @@ +import service from '@/utils/request' +// 网关 +export const getDeviceGatewayListByPage = (data) => { + return service({ + url: '/device/getDeviceGatewayListByPage', + method: 'post', + data: data + }) +} +// 设备 +export const getDeviceListByPage = (data) => { + return service({ + url: '/device/getDeviceListByPage', + method: 'post', + data: data + }) +} + +export const deviceOperation = (data) => { + return service({ + url: '/device/deviceOperation', + method: 'post', + data: data + }) +} +// 曲线 +export const getDeviceDetailsListByPage = (data) => { + return service({ + url: '/device/getDeviceDetailsListByPage', + method: 'post', + data: data + }) +} +// 报警 +export const getAlarmRecordListByPage = (data) => { + return service({ + url: '/device/getAlarmRecordListByPage', + method: 'post', + data: data + }) +} + +// 报警 +export const getCircuitBreakerDetail = (data) => { + return service({ + url: '/device/getCircuitBreakerDetail', + method: 'post', + data: data + }) +} +// 设备配置 +export const getDeviceConfigListByPage = (data) => { + return service({ + url: '/device/getDeviceConfigListByPage', + method: 'post', + data: data + }) +} diff --git a/src/api/securityControl/alarmList.js b/src/api/securityControl/alarmList.js new file mode 100644 index 0000000..7f51927 --- /dev/null +++ b/src/api/securityControl/alarmList.js @@ -0,0 +1,16 @@ +import service from '@/utils/request' +// echarts图 +export const getAlarmCategorySummary = (data) => { + return service({ + url: '/device/getAlarmCategorySummary', + method: 'post', + data: data + }) +} +export const getAlarmTrend = (data) => { + return service({ + url: '/device/getAlarmTrend', + method: 'post', + data: data + }) +} diff --git a/src/pathInfo.json b/src/pathInfo.json index 53accfa..80cd0f1 100644 --- a/src/pathInfo.json +++ b/src/pathInfo.json @@ -14,6 +14,7 @@ "/src/view/equipment/gateway/index.vue": "Index", "/src/view/equipment/index.vue": "Equipment", "/src/view/equipment/list/components/detail/components/alarm/index.vue": "Index", + "/src/view/equipment/list/components/detail/components/config/index.vue": "Index", "/src/view/equipment/list/components/detail/components/info/index.vue": "Index", "/src/view/equipment/list/components/detail/components/line/index.vue": "Index", "/src/view/equipment/list/components/detail/components/trend/index.vue": "Index", @@ -54,10 +55,22 @@ "/src/view/layout/setting/modules/layout/index.vue": "LayoutSettings", "/src/view/layout/tabs/index.vue": "HistoryComponent", "/src/view/login/index.vue": "Login", + "/src/view/masterStation/equipment/components/detail/components/alarm/index.vue": "Index", + "/src/view/masterStation/equipment/components/detail/components/config/index.vue": "Index", + "/src/view/masterStation/equipment/components/detail/components/info/index.vue": "Index", + "/src/view/masterStation/equipment/components/detail/components/line/index.vue": "Index", + "/src/view/masterStation/equipment/components/detail/components/trend/index.vue": "Index", + "/src/view/masterStation/equipment/components/detail/index.vue": "Index", + "/src/view/masterStation/equipment/components/list/index.vue": "Index", + "/src/view/masterStation/equipment/index.vue": "Index", + "/src/view/masterStation/index.vue": "MasterStation", + "/src/view/masterStation/project/index.vue": "Index", "/src/view/person/person.vue": "Person", "/src/view/routerHolder.vue": "RouterHolder", "/src/view/securityControl/alarmList/index.vue": "Index", + "/src/view/securityControl/currentAlarm/index.vue": "Index", "/src/view/securityControl/index.vue": "SecurityControl", + "/src/view/securityControl/temperatureAlarm/index.vue": "Index", "/src/view/superAdmin/api/api.vue": "Api", "/src/view/superAdmin/authority/authority.vue": "Authority", "/src/view/superAdmin/authority/components/apis.vue": "Apis", diff --git a/src/view/equipment/list/components/detail/components/config/index.vue b/src/view/equipment/list/components/detail/components/config/index.vue new file mode 100644 index 0000000..cc38385 --- /dev/null +++ b/src/view/equipment/list/components/detail/components/config/index.vue @@ -0,0 +1,169 @@ + + + + + diff --git a/src/view/equipment/list/components/detail/components/trend/index.vue b/src/view/equipment/list/components/detail/components/trend/index.vue index ae095c1..f8dde60 100644 --- a/src/view/equipment/list/components/detail/components/trend/index.vue +++ b/src/view/equipment/list/components/detail/components/trend/index.vue @@ -489,7 +489,8 @@ }) if (res.code === 0) { ElMessage.success('操作成功') - getDeviceGatewayListByPage() + // getDeviceGatewayListByPage() + getCircuitBreakerDetail() } }) } diff --git a/src/view/equipment/list/components/detail/index.vue b/src/view/equipment/list/components/detail/index.vue index 19c1a1b..c025fbb 100644 --- a/src/view/equipment/list/components/detail/index.vue +++ b/src/view/equipment/list/components/detail/index.vue @@ -11,18 +11,14 @@ + - - + @@ -32,6 +28,7 @@ import DeviceInfo from './components/info/index.vue' import DeviceLine from './components/line/index.vue' import DeviceTrend from './components/trend/index.vue' + import DeviceConfig from './components/config/index.vue' import DeviceAlarm from './components/alarm/index.vue' defineProps({ @@ -42,15 +39,8 @@ }) const activeMenu = ref('info') - const emit = defineEmits(['back']) - // const activeMenu = ref('info') - - // const handleMenuSelect = (index) => { - // activeMenu.value = index - // } - const handleBack = () => { activeMenu.value = '' emit('back') diff --git a/src/view/masterStation/equipment/components/detail/components/alarm/index.vue b/src/view/masterStation/equipment/components/detail/components/alarm/index.vue new file mode 100644 index 0000000..ef08708 --- /dev/null +++ b/src/view/masterStation/equipment/components/detail/components/alarm/index.vue @@ -0,0 +1,173 @@ + + + + + diff --git a/src/view/masterStation/equipment/components/detail/components/config/index.vue b/src/view/masterStation/equipment/components/detail/components/config/index.vue new file mode 100644 index 0000000..e1ccfc4 --- /dev/null +++ b/src/view/masterStation/equipment/components/detail/components/config/index.vue @@ -0,0 +1,169 @@ + + + + + diff --git a/src/view/masterStation/equipment/components/detail/components/info/index.vue b/src/view/masterStation/equipment/components/detail/components/info/index.vue new file mode 100644 index 0000000..9a4fcb0 --- /dev/null +++ b/src/view/masterStation/equipment/components/detail/components/info/index.vue @@ -0,0 +1,282 @@ + + + + + diff --git a/src/view/masterStation/equipment/components/detail/components/line/index.vue b/src/view/masterStation/equipment/components/detail/components/line/index.vue new file mode 100644 index 0000000..5a44fcb --- /dev/null +++ b/src/view/masterStation/equipment/components/detail/components/line/index.vue @@ -0,0 +1,142 @@ + + + + + diff --git a/src/view/masterStation/equipment/components/detail/components/trend/index.vue b/src/view/masterStation/equipment/components/detail/components/trend/index.vue new file mode 100644 index 0000000..211b8c1 --- /dev/null +++ b/src/view/masterStation/equipment/components/detail/components/trend/index.vue @@ -0,0 +1,678 @@ + + + + + diff --git a/src/view/masterStation/equipment/components/detail/index.vue b/src/view/masterStation/equipment/components/detail/index.vue new file mode 100644 index 0000000..c025fbb --- /dev/null +++ b/src/view/masterStation/equipment/components/detail/index.vue @@ -0,0 +1,79 @@ + + + + + diff --git a/src/view/masterStation/equipment/components/list/index.vue b/src/view/masterStation/equipment/components/list/index.vue new file mode 100644 index 0000000..25c0d1a --- /dev/null +++ b/src/view/masterStation/equipment/components/list/index.vue @@ -0,0 +1,377 @@ + + + + + diff --git a/src/view/masterStation/equipment/index.vue b/src/view/masterStation/equipment/index.vue new file mode 100644 index 0000000..37536dc --- /dev/null +++ b/src/view/masterStation/equipment/index.vue @@ -0,0 +1,25 @@ + + + diff --git a/src/view/masterStation/index.vue b/src/view/masterStation/index.vue new file mode 100644 index 0000000..00ee663 --- /dev/null +++ b/src/view/masterStation/index.vue @@ -0,0 +1,20 @@ + + + diff --git a/src/view/masterStation/project/index.vue b/src/view/masterStation/project/index.vue new file mode 100644 index 0000000..b23dd19 --- /dev/null +++ b/src/view/masterStation/project/index.vue @@ -0,0 +1,754 @@ + + + + + + + diff --git a/src/view/securityControl/alarmList/index.vue b/src/view/securityControl/alarmList/index.vue index c28b954..ab4bd37 100644 --- a/src/view/securityControl/alarmList/index.vue +++ b/src/view/securityControl/alarmList/index.vue @@ -1,22 +1,16 @@ + + diff --git a/src/view/securityControl/temperatureAlarm/index.vue b/src/view/securityControl/temperatureAlarm/index.vue new file mode 100644 index 0000000..d2c8ffd --- /dev/null +++ b/src/view/securityControl/temperatureAlarm/index.vue @@ -0,0 +1,328 @@ + + + + +