代码初始化

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

24
.gitignore vendored Normal file
View File

@@ -0,0 +1,24 @@
# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*
node_modules
dist
dist-ssr
*.local
# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?

70
auto-imports.d.ts vendored Normal file
View File

@@ -0,0 +1,70 @@
/* eslint-disable */
/* prettier-ignore */
// @ts-nocheck
// noinspection JSUnusedGlobalSymbols
// Generated by unplugin-auto-import
export {}
declare global {
const EffectScope: typeof import('vue')['EffectScope']
const computed: typeof import('vue')['computed']
const createApp: typeof import('vue')['createApp']
const customRef: typeof import('vue')['customRef']
const defineAsyncComponent: typeof import('vue')['defineAsyncComponent']
const defineComponent: typeof import('vue')['defineComponent']
const effectScope: typeof import('vue')['effectScope']
const getCurrentInstance: typeof import('vue')['getCurrentInstance']
const getCurrentScope: typeof import('vue')['getCurrentScope']
const h: typeof import('vue')['h']
const inject: typeof import('vue')['inject']
const isProxy: typeof import('vue')['isProxy']
const isReactive: typeof import('vue')['isReactive']
const isReadonly: typeof import('vue')['isReadonly']
const isRef: typeof import('vue')['isRef']
const markRaw: typeof import('vue')['markRaw']
const nextTick: typeof import('vue')['nextTick']
const onActivated: typeof import('vue')['onActivated']
const onBeforeMount: typeof import('vue')['onBeforeMount']
const onBeforeRouteLeave: typeof import('vue-router')['onBeforeRouteLeave']
const onBeforeRouteUpdate: typeof import('vue-router')['onBeforeRouteUpdate']
const onBeforeUnmount: typeof import('vue')['onBeforeUnmount']
const onBeforeUpdate: typeof import('vue')['onBeforeUpdate']
const onDeactivated: typeof import('vue')['onDeactivated']
const onErrorCaptured: typeof import('vue')['onErrorCaptured']
const onMounted: typeof import('vue')['onMounted']
const onRenderTracked: typeof import('vue')['onRenderTracked']
const onRenderTriggered: typeof import('vue')['onRenderTriggered']
const onScopeDispose: typeof import('vue')['onScopeDispose']
const onServerPrefetch: typeof import('vue')['onServerPrefetch']
const onUnmounted: typeof import('vue')['onUnmounted']
const onUpdated: typeof import('vue')['onUpdated']
const provide: typeof import('vue')['provide']
const reactive: typeof import('vue')['reactive']
const readonly: typeof import('vue')['readonly']
const ref: typeof import('vue')['ref']
const resolveComponent: typeof import('vue')['resolveComponent']
const shallowReactive: typeof import('vue')['shallowReactive']
const shallowReadonly: typeof import('vue')['shallowReadonly']
const shallowRef: typeof import('vue')['shallowRef']
const toRaw: typeof import('vue')['toRaw']
const toRef: typeof import('vue')['toRef']
const toRefs: typeof import('vue')['toRefs']
const toValue: typeof import('vue')['toValue']
const triggerRef: typeof import('vue')['triggerRef']
const unref: typeof import('vue')['unref']
const useAttrs: typeof import('vue')['useAttrs']
const useCssModule: typeof import('vue')['useCssModule']
const useCssVars: typeof import('vue')['useCssVars']
const useLink: typeof import('vue-router')['useLink']
const useRoute: typeof import('vue-router')['useRoute']
const useRouter: typeof import('vue-router')['useRouter']
const useSlots: typeof import('vue')['useSlots']
const watch: typeof import('vue')['watch']
const watchEffect: typeof import('vue')['watchEffect']
const watchPostEffect: typeof import('vue')['watchPostEffect']
const watchSyncEffect: typeof import('vue')['watchSyncEffect']
}
// for type re-export
declare global {
// @ts-ignore
export type { Component, ComponentPublicInstance, ComputedRef, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, VNode, WritableComputedRef } from 'vue'
}

14
index.html Normal file
View File

@@ -0,0 +1,14 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/vite.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title></title>
<script type="text/javascript" src="/EasyWasmPlayer.js"></script>
</head>
<body>
<div id="app"></div>
<script type="module" src="/src/main.js"></script>
</body>
</html>

5493
package-lock.json generated Normal file

File diff suppressed because it is too large Load Diff

38
package.json Normal file
View File

@@ -0,0 +1,38 @@
{
"name": "vite-project",
"private": true,
"version": "0.0.0",
"type": "module",
"scripts": {
"dev": "vite",
"build": "vite build",
"preview": "vite preview"
},
"dependencies": {
"@amap/amap-jsapi-loader": "^1.0.1",
"@antv/l7": "^2.20.5",
"@antv/l7-maps": "^2.20.5",
"axios": "^1.5.0",
"dayjs": "^1.11.7",
"echarts": "^5.4.3",
"element-plus": "^2.4.3",
"js-cookie": "^3.0.5",
"jsencrypt": "^3.3.2",
"lodash": "^4.17.21",
"moment": "^2.29.4",
"nprogress": "^0.2.0",
"pinia": "^2.1.6",
"postcss-px2rem": "^0.3.0",
"px2rem-loader": "^0.1.9",
"three": "^0.159.0",
"vue": "^3.2.47",
"vue-router": "^4.2.4"
},
"devDependencies": {
"@vitejs/plugin-vue": "^4.1.0",
"sass": "^1.66.1",
"unplugin-auto-import": "^0.16.7",
"unplugin-vue-components": "^0.25.2",
"vite": "^4.2.0"
}
}

21
public/EasyWasmPlayer.js Normal file

File diff suppressed because one or more lines are too long

BIN
public/libDecoder.wasm Normal file

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,88 @@
# 3ds Max Wavefront OBJ Exporter v0.97b - (c)2007 guruware
# <20><><EFBFBD><EFBFBD><EFBFBD><EFBFBD><EFBFBD>ļ<EFBFBD>:27.11.2023 17:10:20
newmtl LuDeng_ZhuTi
Ns 10.0000
Ni 1.5000
d 1.0000
Tr 0.0000
Tf 1.0000 1.0000 1.0000
illum 2
Ka 0.2235 0.2431 0.2784
Kd 0.2235 0.2431 0.2784
Ks 0.0000 0.0000 0.0000
Ke 0.0000 0.0000 0.0000
newmtl LuDeng_Deng
Ns 10.0000
Ni 1.5000
d 1.0000
Tr 0.0000
Tf 1.0000 1.0000 1.0000
illum 2
Ka 1.0000 0.5843 0.1373
Kd 1.0000 0.5843 0.1373
Ks 0.0000 0.0000 0.0000
Ke 0.0000 0.0000 0.0000
newmtl LuDeng_SheXiangTou_Bai
Ns 10.0000
Ni 1.5000
d 1.0000
Tr 0.0000
Tf 1.0000 1.0000 1.0000
illum 2
Ka 0.7961 0.7961 0.7961
Kd 0.7961 0.7961 0.7961
Ks 0.0000 0.0000 0.0000
Ke 0.0000 0.0000 0.0000
newmtl LuDeng_SheXiangTou_Hei
Ns 10.0000
Ni 1.5000
d 1.0000
Tr 0.0000
Tf 1.0000 1.0000 1.0000
illum 2
Ka 0.0471 0.0471 0.0471
Kd 0.0471 0.0471 0.0471
Ks 0.0000 0.0000 0.0000
Ke 0.0000 0.0000 0.0000
#newmtl LuDeng_GuangGao
# Ns 10.0000
# Ni 1.5000
# d 1.0000
# Tr 0.0000
### Tf 1.0000 1.0000 1.0000
# illum 2
# Ka 0.5882 0.5882 0.5882
# Kd 0.5882 0.5882 0.5882
# Ks 0.0000 0.0000 0.0000
# Ke 0.0000 0.0000 0.0000
# map_Ka G:\000AAA\<5C><>ɽ<EFBFBD>Ƹ<EFBFBD>\FangHuo.png
# map_Kd G:\000AAA\<5C><>ɽ<EFBFBD>Ƹ<EFBFBD>\FangHuo.png
newmtl LuDeng_YinXiang_Hei
Ns 10.0000
Ni 1.5000
d 1.0000
Tr 0.0000
Tf 1.0000 1.0000 1.0000
illum 2
Ka 0.1216 0.1216 0.1216
Kd 0.1216 0.1216 0.1216
Ks 0.0000 0.0000 0.0000
Ke 0.0000 0.0000 0.0000
newmtl LuDeng_YinXiang_Ke
Ns 10.0000
Ni 1.5000
d 1.0000
Tr 0.0000
Tf 1.0000 1.0000 1.0000
illum 2
Ka 0.6745 0.6314 0.5843
Kd 0.6745 0.6314 0.5843
Ks 0.0000 0.0000 0.0000
Ke 0.0000 0.0000 0.0000

File diff suppressed because it is too large Load Diff

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

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