代码初始化
24
.gitignore
vendored
Normal 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
@@ -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
@@ -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
38
package.json
Normal 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
BIN
public/libDecoder.wasm
Normal file
BIN
public/model/LuDeng_DuoGongNeng.FBX
Normal file
88
public/model/LuDeng_DuoGongNeng.mtl
Normal 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
|
||||||
15785
public/model/LuDeng_DuoGongNeng.obj
Normal file
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 |