代码初始化
19
src/App.vue
Normal file
@@ -0,0 +1,19 @@
|
||||
<template>
|
||||
<router-view />
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import useScreenStore from "@/store/modules/screen";
|
||||
|
||||
const screenStore = useScreenStore();
|
||||
|
||||
import { onMounted } from "vue";
|
||||
|
||||
onMounted(() => {
|
||||
const theme = screenStore.theme;
|
||||
screenStore.toggleTheme(theme);
|
||||
window.document.documentElement.setAttribute("data-theme", theme);
|
||||
});
|
||||
</script>
|
||||
|
||||
<style scoped></style>
|
||||
49
src/api/index.js
Normal file
@@ -0,0 +1,49 @@
|
||||
import request from "@/request/request.js";
|
||||
|
||||
export function login(data) {
|
||||
return request({
|
||||
url: "/auth/login",
|
||||
headers: { isToken: false },
|
||||
method: "post",
|
||||
data: data,
|
||||
});
|
||||
}
|
||||
|
||||
export function getInfo() {
|
||||
return request({
|
||||
url: '/iotsystem/user/getInfo',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 根据字典类型查询字典数据信息
|
||||
export function getDicts(dictType) {
|
||||
return request({
|
||||
url: '/iotsystem/dict/data/type/' + dictType,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 修改大屏模块位置
|
||||
export function screenLocation(query) {
|
||||
return request({
|
||||
url: '/iotsystem/screenLocation/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
|
||||
export function getAllModuleList(query) {
|
||||
return request({
|
||||
url: '/iotsystem/screenLocation/moduleList',
|
||||
method: 'get',
|
||||
})
|
||||
}
|
||||
|
||||
export function updateScreenLocation(data) {
|
||||
return request({
|
||||
url: '/iotsystem/screenLocation',
|
||||
method: 'put',
|
||||
data
|
||||
})
|
||||
}
|
||||
225
src/api/largeScreen.js
Normal file
@@ -0,0 +1,225 @@
|
||||
import request from "@/request/request.js";
|
||||
|
||||
// 地图整体概况
|
||||
export function getLightViewList(query) {
|
||||
return request({
|
||||
url: "/smartlight/screen/getLightViewList",
|
||||
method: "get",
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
|
||||
// 亮灯率
|
||||
export function lightRateInfo(query) {
|
||||
return request({
|
||||
url: "/smartlight/screen/lightRateInfo",
|
||||
method: "get",
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
|
||||
// 月度能耗
|
||||
export function energyByMonth(query) {
|
||||
return request({
|
||||
url: "/smartlight/screen/energyByMonth",
|
||||
method: "get",
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
|
||||
// 月度能耗
|
||||
export function energyConsumptionByMonth(query) {
|
||||
return request({
|
||||
url: "/smartlight/screen/energyConsumptionByMonth",
|
||||
method: "get",
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
|
||||
// 能耗对比
|
||||
export function energyComparison(query) {
|
||||
return request({
|
||||
url: "/smartlight/screen/energyComparison",
|
||||
method: "get",
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
|
||||
// 灯控总览
|
||||
export function lightControlInfo(query) {
|
||||
return request({
|
||||
url: "/smartlight/screen/lightControlInfo",
|
||||
method: "get",
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
|
||||
// 屏幕总览
|
||||
export function infoScreen(query) {
|
||||
return request({
|
||||
url: "/smartlight/screen/infoScreen",
|
||||
method: "get",
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
|
||||
// 信息发布
|
||||
export function information(query) {
|
||||
return request({
|
||||
url: "/smartlight/screen/information",
|
||||
method: "get",
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
|
||||
// 今日计划
|
||||
export function todayPlan(query) {
|
||||
return request({
|
||||
url: "/smartlight/screen/todayPlan",
|
||||
method: "get",
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
|
||||
// 日出日落
|
||||
export function sunRiseSet(query) {
|
||||
return request({
|
||||
url: "/smartlight/screen/sunRiseSet",
|
||||
method: "get",
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
|
||||
// 灯杆统计
|
||||
export function lightPoleCount(query) {
|
||||
return request({
|
||||
url: "/smartlight/screen/lightPoleCount",
|
||||
method: "get",
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
|
||||
// 当前执行策略
|
||||
export function lightStrategy(query) {
|
||||
return request({
|
||||
url: "/smartlight/screen/strategy",
|
||||
method: "get",
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
|
||||
// 告警信息
|
||||
export function alarmManage(query) {
|
||||
return request({
|
||||
url: "/basics/alarm/alarmManage/list",
|
||||
method: "get",
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
|
||||
// 工单概览
|
||||
export function lightRepairCount(query) {
|
||||
return request({
|
||||
url: "/repair/view/repair/lightRepairCount",
|
||||
method: "get",
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
|
||||
export function lightRepairStatus(query) {
|
||||
return request({
|
||||
url: "/repair/view/repair/lightRepairStatus",
|
||||
method: "get",
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
|
||||
// 获取层级树
|
||||
export function getBuildingTree() {
|
||||
return request({
|
||||
url: "/basics/building/buildingInfo/buildingTree",
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
|
||||
// 获取配电柜详情
|
||||
export function getSwitchBox(id) {
|
||||
return request({
|
||||
url: `/smartlight/screen/getSwitchBox/${id}`,
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
|
||||
// 获取灯杆详情
|
||||
export function getPoleDevice(id) {
|
||||
return request({
|
||||
url: `/smartlight/light/lightPole/getLightDeviceList/${id}`,
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
|
||||
// 获取灯控详情
|
||||
export function getLampControl(id) {
|
||||
return request({
|
||||
url: `/smartlight/light/lampControl/${id}`,
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
|
||||
// 获取灯具详情
|
||||
export function getLightLamp(id) {
|
||||
return request({
|
||||
url: `/smartlight/light/lamp/${id}`,
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
|
||||
// 获取字典数据
|
||||
export function getDict(dictType) {
|
||||
return request({
|
||||
url: `/system/dict/data/list`,
|
||||
method: "get",
|
||||
params: { pageNum: 1, pageSize: 10, dictType },
|
||||
});
|
||||
}
|
||||
|
||||
// 灯具控制
|
||||
export function deviceControl(id, controlType, controlValue = 0) {
|
||||
return request({
|
||||
url: `/smartlight/light/deviceControl/lamp/${id}/${controlType}/${controlValue}`,
|
||||
method: "put",
|
||||
});
|
||||
}
|
||||
|
||||
// 回路控制
|
||||
export function loopControl(id, controlType, controlValue = 0) {
|
||||
return request({
|
||||
url: `/smartlight/light/deviceControl/loop/${id}/${controlType}/${controlValue}`,
|
||||
method: "put",
|
||||
});
|
||||
}
|
||||
|
||||
// 获取区域下的环境监测数据
|
||||
export function sensorDataByPole(query) {
|
||||
return request({
|
||||
url: "/smartlight/screen/sensorDataByPole",
|
||||
method: "get",
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
// 环境监测--传感器
|
||||
export function environmentData(query) {
|
||||
return request({
|
||||
url: '/smartlight/light/sensor/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
// 环境监测--监测项
|
||||
export function environmentItem(query) {
|
||||
return request({
|
||||
url: '/smartlight/screen/sensorData',
|
||||
method: 'get',
|
||||
params: query
|
||||
})
|
||||
}
|
||||
50
src/api/login.js
Normal file
@@ -0,0 +1,50 @@
|
||||
import request from "@/request/request.js";
|
||||
|
||||
// 获取验证码
|
||||
export function getCodeImg() {
|
||||
return request({
|
||||
url: '/code',
|
||||
headers: {
|
||||
isToken: false
|
||||
},
|
||||
method: 'get',
|
||||
timeout: 20000
|
||||
})
|
||||
}
|
||||
|
||||
// 根据参数键名查询参数值
|
||||
export function getConfigKey(configKey) {
|
||||
return request({
|
||||
url: '/iotsystem/config/configKey/' + configKey,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 登录方法
|
||||
export function login(username, password, code, uuid) {
|
||||
return request({
|
||||
url: '/auth/login',
|
||||
headers: {
|
||||
isToken: false
|
||||
},
|
||||
method: 'post',
|
||||
data: { username, password, code, uuid }
|
||||
})
|
||||
}
|
||||
|
||||
// 获取用户详细信息
|
||||
export function getInfo() {
|
||||
return request({
|
||||
url: '/iotsystem/user/getInfo',
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
// 退出方法
|
||||
export function logout() {
|
||||
return request({
|
||||
url: '/auth/logout',
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
36
src/api/video.js
Normal file
@@ -0,0 +1,36 @@
|
||||
import request from "@/request/request.js";
|
||||
|
||||
// iot视频保活
|
||||
export function videoKeepLive(query) {
|
||||
return request({
|
||||
url: "/video/camera/videoKeepLive",
|
||||
method: "get",
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
|
||||
// 视频实时预览
|
||||
export function getRealPlayUrl(query) {
|
||||
return request({
|
||||
url: "/video/camera/realMonitor",
|
||||
method: "get",
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
|
||||
// 视频回放
|
||||
export function getPlayBackUrl(query) {
|
||||
return request({
|
||||
url: "/video/camera/playback",
|
||||
method: "get",
|
||||
params: query,
|
||||
});
|
||||
}
|
||||
|
||||
// 查询摄像头信息详细
|
||||
export function getCamera(id) {
|
||||
return request({
|
||||
url: "/smartlight/camera/" + id,
|
||||
method: "get",
|
||||
});
|
||||
}
|
||||
BIN
src/assets/font/AlibabaPuHuiTi-2-55-Regular.ttf
Normal file
BIN
src/assets/font/AlibabaPuHuiTi-2-65-Medium.ttf
Normal file
BIN
src/assets/font/AlibabaPuHuiTi-2-75-SemiBold.ttf
Normal file
BIN
src/assets/font/AlibabaPuHuiTi-2-85-Bold.ttf
Normal file
BIN
src/assets/font/FZZYJW.TTF
Normal file
BIN
src/assets/font/UTM.ttf
Normal file
BIN
src/assets/img/background.png
Normal file
|
After Width: | Height: | Size: 643 KiB |
BIN
src/assets/img/blue.jpg
Normal file
|
After Width: | Height: | Size: 1.2 MiB |
BIN
src/assets/img/blue/avatar.png
Normal file
|
After Width: | Height: | Size: 1.8 KiB |
BIN
src/assets/img/blue/backstage.png
Normal file
|
After Width: | Height: | Size: 799 B |
BIN
src/assets/img/blue/cabinet_bg.png
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
src/assets/img/blue/close-square.png
Normal file
|
After Width: | Height: | Size: 467 B |
BIN
src/assets/img/blue/configuration/Alarm-active.png
Normal file
|
After Width: | Height: | Size: 9.4 KiB |
BIN
src/assets/img/blue/configuration/Alarm.png
Normal file
|
After Width: | Height: | Size: 8.7 KiB |
BIN
src/assets/img/blue/configuration/EnergyByMonth-active.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
src/assets/img/blue/configuration/EnergyByMonth.png
Normal file
|
After Width: | Height: | Size: 9.6 KiB |
BIN
src/assets/img/blue/configuration/EnergyComparison-active.png
Normal file
|
After Width: | Height: | Size: 8.6 KiB |
BIN
src/assets/img/blue/configuration/EnergyComparison.png
Normal file
|
After Width: | Height: | Size: 8.1 KiB |
BIN
src/assets/img/blue/configuration/Environment-active.png
Normal file
|
After Width: | Height: | Size: 4.2 KiB |
BIN
src/assets/img/blue/configuration/Environment.png
Normal file
|
After Width: | Height: | Size: 4.2 KiB |
BIN
src/assets/img/blue/configuration/InfoScreen-active.png
Normal file
|
After Width: | Height: | Size: 8.8 KiB |
BIN
src/assets/img/blue/configuration/InfoScreen.png
Normal file
|
After Width: | Height: | Size: 8.4 KiB |
BIN
src/assets/img/blue/configuration/Information-active.png
Normal file
|
After Width: | Height: | Size: 8.9 KiB |
BIN
src/assets/img/blue/configuration/Information.png
Normal file
|
After Width: | Height: | Size: 8.5 KiB |
BIN
src/assets/img/blue/configuration/LightControl-active.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
src/assets/img/blue/configuration/LightControl.png
Normal file
|
After Width: | Height: | Size: 9.9 KiB |
BIN
src/assets/img/blue/configuration/LightPole-active.png
Normal file
|
After Width: | Height: | Size: 8.3 KiB |
BIN
src/assets/img/blue/configuration/LightPole.png
Normal file
|
After Width: | Height: | Size: 7.7 KiB |
BIN
src/assets/img/blue/configuration/LightRate-active.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
src/assets/img/blue/configuration/LightRate.png
Normal file
|
After Width: | Height: | Size: 9.6 KiB |
BIN
src/assets/img/blue/configuration/Overview-active.png
Normal file
|
After Width: | Height: | Size: 8.3 KiB |
BIN
src/assets/img/blue/configuration/Overview.png
Normal file
|
After Width: | Height: | Size: 7.8 KiB |
BIN
src/assets/img/blue/configuration/Strategy-active.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
src/assets/img/blue/configuration/Strategy.png
Normal file
|
After Width: | Height: | Size: 9.7 KiB |
BIN
src/assets/img/blue/configuration/TodayPlan-active.png
Normal file
|
After Width: | Height: | Size: 8.6 KiB |
BIN
src/assets/img/blue/configuration/TodayPlan.png
Normal file
|
After Width: | Height: | Size: 8.0 KiB |
BIN
src/assets/img/blue/device/Camera-active.png
Normal file
|
After Width: | Height: | Size: 6.5 KiB |
BIN
src/assets/img/blue/device/Camera.png
Normal file
|
After Width: | Height: | Size: 6.6 KiB |
BIN
src/assets/img/blue/device/DistributionCabinet-active.png
Normal file
|
After Width: | Height: | Size: 6.3 KiB |
BIN
src/assets/img/blue/device/DistributionCabinet.png
Normal file
|
After Width: | Height: | Size: 6.5 KiB |
BIN
src/assets/img/blue/device/LightControl-active.png
Normal file
|
After Width: | Height: | Size: 7.3 KiB |
BIN
src/assets/img/blue/device/LightControl.png
Normal file
|
After Width: | Height: | Size: 7.3 KiB |
BIN
src/assets/img/blue/device/Pole-active.png
Normal file
|
After Width: | Height: | Size: 6.1 KiB |
BIN
src/assets/img/blue/device/Pole.png
Normal file
|
After Width: | Height: | Size: 6.3 KiB |
BIN
src/assets/img/blue/devices_bg.png
Normal file
|
After Width: | Height: | Size: 16 KiB |
BIN
src/assets/img/blue/dialog_middle_bg.png
Normal file
|
After Width: | Height: | Size: 56 KiB |
BIN
src/assets/img/blue/down(1).png
Normal file
|
After Width: | Height: | Size: 349 B |
BIN
src/assets/img/blue/down.png
Normal file
|
After Width: | Height: | Size: 441 B |
BIN
src/assets/img/blue/environment/humidity.png
Normal file
|
After Width: | Height: | Size: 7.4 KiB |
BIN
src/assets/img/blue/environment/noise.png
Normal file
|
After Width: | Height: | Size: 7.9 KiB |
BIN
src/assets/img/blue/environment/pm25.png
Normal file
|
After Width: | Height: | Size: 8.0 KiB |
BIN
src/assets/img/blue/environment/pressure.png
Normal file
|
After Width: | Height: | Size: 8.4 KiB |
BIN
src/assets/img/blue/environment/temperature.png
Normal file
|
After Width: | Height: | Size: 7.7 KiB |
BIN
src/assets/img/blue/environment/windSpeed.png
Normal file
|
After Width: | Height: | Size: 7.5 KiB |
BIN
src/assets/img/blue/environment_bg.png
Normal file
|
After Width: | Height: | Size: 7.4 KiB |
BIN
src/assets/img/blue/header-bg.png
Normal file
|
After Width: | Height: | Size: 47 KiB |
BIN
src/assets/img/blue/left_bg.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
src/assets/img/blue/mapDevice/camera_error.png
Normal file
|
After Width: | Height: | Size: 7.0 KiB |
BIN
src/assets/img/blue/mapDevice/camera_offline.png
Normal file
|
After Width: | Height: | Size: 7.0 KiB |
BIN
src/assets/img/blue/mapDevice/camera_online.png
Normal file
|
After Width: | Height: | Size: 6.9 KiB |
BIN
src/assets/img/blue/mapDevice/distributionCabinet_error.png
Normal file
|
After Width: | Height: | Size: 6.8 KiB |
BIN
src/assets/img/blue/mapDevice/distributionCabinet_offline.png
Normal file
|
After Width: | Height: | Size: 6.8 KiB |
BIN
src/assets/img/blue/mapDevice/distributionCabinet_online.png
Normal file
|
After Width: | Height: | Size: 6.8 KiB |
BIN
src/assets/img/blue/mapDevice/lightControl_error.png
Normal file
|
After Width: | Height: | Size: 7.3 KiB |
BIN
src/assets/img/blue/mapDevice/lightControl_offline.png
Normal file
|
After Width: | Height: | Size: 7.4 KiB |
BIN
src/assets/img/blue/mapDevice/lightControl_online.png
Normal file
|
After Width: | Height: | Size: 7.3 KiB |
BIN
src/assets/img/blue/mapDevice/pole_left.png
Normal file
|
After Width: | Height: | Size: 3.9 KiB |
BIN
src/assets/img/blue/mapDevice/pole_right_error.png
Normal file
|
After Width: | Height: | Size: 3.6 KiB |
BIN
src/assets/img/blue/mapDevice/pole_right_online.png
Normal file
|
After Width: | Height: | Size: 3.8 KiB |
BIN
src/assets/img/blue/module/alarm_arrow.png
Normal file
|
After Width: | Height: | Size: 256 B |
BIN
src/assets/img/blue/module/alarm_header_bg.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
src/assets/img/blue/module/alarm_row_bg.png
Normal file
|
After Width: | Height: | Size: 3.4 KiB |
BIN
src/assets/img/blue/module/control_chart_bg.png
Normal file
|
After Width: | Height: | Size: 25 KiB |
BIN
src/assets/img/blue/module/environment_ap_bg.png
Normal file
|
After Width: | Height: | Size: 7.7 KiB |
BIN
src/assets/img/blue/module/environment_humidity_bg.png
Normal file
|
After Width: | Height: | Size: 7.0 KiB |
BIN
src/assets/img/blue/module/environment_noise_bg.png
Normal file
|
After Width: | Height: | Size: 7.6 KiB |
BIN
src/assets/img/blue/module/environment_pm_bg.png
Normal file
|
After Width: | Height: | Size: 7.2 KiB |
BIN
src/assets/img/blue/module/environment_temprature_bg.png
Normal file
|
After Width: | Height: | Size: 7.2 KiB |
BIN
src/assets/img/blue/module/environment_wind_bg.png
Normal file
|
After Width: | Height: | Size: 7.1 KiB |
BIN
src/assets/img/blue/module/information_bg.png
Normal file
|
After Width: | Height: | Size: 12 KiB |
BIN
src/assets/img/blue/module/information_chart_bg.png
Normal file
|
After Width: | Height: | Size: 13 KiB |
BIN
src/assets/img/blue/module/information_gongyi.png
Normal file
|
After Width: | Height: | Size: 97 B |
BIN
src/assets/img/blue/module/information_guanggao.png
Normal file
|
After Width: | Height: | Size: 101 B |
BIN
src/assets/img/blue/module/information_jiaotong.png
Normal file
|
After Width: | Height: | Size: 100 B |
BIN
src/assets/img/blue/module/information_jinji.png
Normal file
|
After Width: | Height: | Size: 98 B |
BIN
src/assets/img/blue/module/information_tingche.png
Normal file
|
After Width: | Height: | Size: 98 B |
BIN
src/assets/img/blue/module/information_top_line.png
Normal file
|
After Width: | Height: | Size: 100 B |
BIN
src/assets/img/blue/module/month_bg.png
Normal file
|
After Width: | Height: | Size: 25 KiB |
BIN
src/assets/img/blue/module/overview_date_active_bgi.png
Normal file
|
After Width: | Height: | Size: 755 B |
BIN
src/assets/img/blue/module/overview_date_bgi.png
Normal file
|
After Width: | Height: | Size: 785 B |
BIN
src/assets/img/blue/module/overview_num_bg.png
Normal file
|
After Width: | Height: | Size: 669 B |
BIN
src/assets/img/blue/module/overview_percent.png
Normal file
|
After Width: | Height: | Size: 409 B |
BIN
src/assets/img/blue/module/overview_summary_bg.png
Normal file
|
After Width: | Height: | Size: 25 KiB |
BIN
src/assets/img/blue/module/overview_title_bgi.png
Normal file
|
After Width: | Height: | Size: 283 B |
BIN
src/assets/img/blue/module/plan_chart_bg.png
Normal file
|
After Width: | Height: | Size: 54 KiB |