代码初始化

This commit is contained in:
tianyongbao
2025-04-24 17:33:56 +08:00
commit 5e0d04bfd3
362 changed files with 30414 additions and 0 deletions

19
src/App.vue Normal file
View 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
View 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
View 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
View 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
View 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",
});
}

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

BIN
src/assets/font/FZZYJW.TTF Normal file

Binary file not shown.

BIN
src/assets/font/UTM.ttf Normal file

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 643 KiB

BIN
src/assets/img/blue.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.2 MiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 799 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 27 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 467 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 16 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 56 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 349 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 441 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 47 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 21 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 256 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 14 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 12 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 13 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 97 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 101 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 98 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 100 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 755 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 785 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 669 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 409 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 283 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 54 KiB

Some files were not shown because too many files have changed in this diff Show More