Compare commits
166 Commits
a121e75966
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 15719b4a27 | |||
| a1b3d03a0c | |||
| 33d2123778 | |||
| 5139a112c5 | |||
| e7d2cc94f8 | |||
| eb8e4e1c69 | |||
| ead17e67bb | |||
| 7eb35c9a4e | |||
| 5597a4c2ca | |||
| 010028da0d | |||
| 30079ec854 | |||
| 3c504cb65c | |||
| aa7229e21b | |||
| 84af6f5cfe | |||
| c7a05f2118 | |||
| 7445e789a4 | |||
| fabab0a577 | |||
| 8b53fbe0ca | |||
| 65af3b6956 | |||
| 47d8f14ad4 | |||
| 1c664cc2f6 | |||
| b89bc455f6 | |||
| ee4eec1e2e | |||
| b6c64df004 | |||
| 93166e0f71 | |||
| dc28fb65ba | |||
| 03df0388b4 | |||
| 6d6d395bff | |||
| 75a7da4a19 | |||
| 8e552df724 | |||
| 72699abdec | |||
| 2dca6e3ff8 | |||
| 63804635de | |||
| eb598255f3 | |||
| 492d43c709 | |||
| 8f28eb920f | |||
| 4a4902ab72 | |||
| 462656880c | |||
| 80d1570e68 | |||
| fc3a8e58d9 | |||
| 9906c2653b | |||
| 52d18cf408 | |||
| 7081f28ee0 | |||
| cb9ea99008 | |||
| 4aac36cd4c | |||
| e7e58d28cc | |||
| af45e3fda3 | |||
| e0b9daa40e | |||
| 08c0d8ebd3 | |||
| 7eb64f2d70 | |||
| 13f72a49ae | |||
| 28aa794e3f | |||
| 6454933d59 | |||
| 848f471ef1 | |||
| a3be91c6ac | |||
| 25aa857758 | |||
| 52d90d490b | |||
| 428d5c90c8 | |||
| 4288867acf | |||
| 070a398f7e | |||
| 277bf123ea | |||
| dd01ed36bd | |||
| 47f5b7a0a6 | |||
| e8b19513b4 | |||
| b202de76ec | |||
| c4d00bfdc3 | |||
| e865ea34b9 | |||
| 997c88ae57 | |||
| 81df83be26 | |||
| 76c3a7c8bf | |||
| cc53ee4d29 | |||
| 066e6da017 | |||
| fb13f40ac1 | |||
| cf05f857bd | |||
| dda3b11326 | |||
| f811445451 | |||
| d5f7c218bd | |||
| ee795f3676 | |||
| 4527780cf8 | |||
| 5d1e2d0b1c | |||
| 5d073b47fb | |||
| 7b0460c4e0 | |||
| ae84b7cde4 | |||
| 2fc3d4ae67 | |||
| 872d7d1c14 | |||
| 1701b6e4d3 | |||
| c7cfa4c1de | |||
| d632ba514c | |||
| ed9b519b77 | |||
| 2d005a5456 | |||
| dbf39c5538 | |||
| b1f5cfdd7a | |||
| eb4bb8c208 | |||
| 517998a0db | |||
| e8ece06a44 | |||
| bf1eb3ecbb | |||
| f853349d1e | |||
| 1ee6efa80f | |||
| 2bee644444 | |||
| f249ff496f | |||
| 34c828bef3 | |||
| 2c6bf02773 | |||
| 5fa21849a4 | |||
| a407fb7f7a | |||
| 1c61f32cc8 | |||
| a14409cd7c | |||
| 2e11de3293 | |||
| df244a687a | |||
| fe01f1f0b0 | |||
| b7192b761e | |||
| 128e4f4074 | |||
| d78b7fd15e | |||
| d8665eda33 | |||
| 30f3167573 | |||
| 0653974969 | |||
| 8ba3128cb9 | |||
| cea834508e | |||
| a2ee519a22 | |||
| 030d305702 | |||
| d976443fb9 | |||
| 24cb308980 | |||
| 39dfdeacf3 | |||
| 8cc266d9b0 | |||
| e5d62c84a5 | |||
| 72d7e76bf9 | |||
| 2e54b6e85b | |||
| 589a1eafed | |||
| 8a65f4690c | |||
| 496c40f415 | |||
| 6a85ea01da | |||
| 84335de7c4 | |||
| a6cd6a5b3c | |||
| c818e7607a | |||
| 95b020d389 | |||
| b03d287dac | |||
| 92e22812d7 | |||
| c95c0e65d2 | |||
| a31318aa1a | |||
| 520d6b2b1a | |||
| 4749cdce3c | |||
| df3da71c59 | |||
| 2da26d5f47 | |||
| d80aa54c8e | |||
| 3463bc7993 | |||
| f3c5e1924b | |||
| aed63a26ac | |||
| 6557b79f0c | |||
| 78771e9551 | |||
| f17e878e0c | |||
| 1eeb8e7f7c | |||
| dd5596fe1c | |||
| 7f85623cb2 | |||
| 3782f73215 | |||
| 031f6135c1 | |||
| e07a4fea01 | |||
| 00eea217a0 | |||
| af736485e4 | |||
| 8d92482de3 | |||
| 1cfb5581c8 | |||
| d96b28a0b9 | |||
| 0d8f101582 | |||
| e4eace467f | |||
| 8753b8c251 | |||
| 950337db72 | |||
| acc8ce1ebb | |||
| 15b90e2362 |
@ -1,11 +1,17 @@
|
||||
# 页面标题
|
||||
VITE_APP_TITLE = 物联网管理系统
|
||||
VITE_APP_TITLE = 云平台管理系统
|
||||
|
||||
# 开发环境配置
|
||||
VITE_APP_ENV = 'development'
|
||||
|
||||
# 开发环境
|
||||
VITE_APP_BASE_API = 'http://192.168.2.23:8000'
|
||||
# VITE_APP_BASE_API = 'http://139.224.253.23:8000'
|
||||
# VITE_APP_BASE_API = 'https://www.cnxhyc.com/jq'
|
||||
VITE_APP_BASE_API = 'http://192.168.110.57:8000'
|
||||
#代永飞接口
|
||||
# VITE_APP_BASE_API = 'http://457102h2d6.qicp.vip:24689'
|
||||
|
||||
VITE_AMAP_KEY='84a12a692ae378effdf741e16d584cd3'
|
||||
|
||||
# 应用访问路径 例如使用前缀 /admin/
|
||||
VITE_APP_CONTEXT_PATH = '/'
|
||||
@ -16,7 +22,7 @@ VITE_APP_MONITOR_ADMIN = 'http://localhost:9090/admin/applications'
|
||||
# SnailJob 控制台地址
|
||||
VITE_APP_SNAILJOB_ADMIN = 'http://localhost:8800/snail-job'
|
||||
|
||||
VITE_APP_PORT = 80
|
||||
VITE_APP_PORT = 9000
|
||||
|
||||
# 接口加密功能开关(如需关闭 后端也必须对应关闭)
|
||||
VITE_APP_ENCRYPT = true
|
||||
|
||||
@ -1,17 +1,20 @@
|
||||
# 页面标题
|
||||
VITE_APP_TITLE = 物联网管理系统
|
||||
VITE_APP_TITLE = 云平台管理系统
|
||||
|
||||
# 生产环境配置 晶全1
|
||||
VITE_APP_ENV = 'https://fuyuanshen.com/backend'
|
||||
VITE_APP_ENV = 'https://www.cnxhyc.com'
|
||||
|
||||
# 生产环境配置 富源晟2
|
||||
# VITE_APP_ENV = 'https://fuyuanshen.com/backend-fys'
|
||||
|
||||
# 应用访问路径 晶全1
|
||||
VITE_APP_CONTEXT_PATH = '/jingquan/'
|
||||
VITE_APP_CONTEXT_PATH = '/'
|
||||
|
||||
# 高德地图Key
|
||||
VITE_AMAP_KEY='84a12a692ae378effdf741e16d584cd3'
|
||||
|
||||
# 应用访问路径 富源晟2
|
||||
#VITE_APP_CONTEXT_PATH = '/sys/'
|
||||
#VITE_APP_CONTEXT_PATH = '/sys/'
|
||||
|
||||
# 监控地址
|
||||
VITE_APP_MONITOR_ADMIN = '/admin/applications'
|
||||
@ -19,8 +22,8 @@ VITE_APP_MONITOR_ADMIN = '/admin/applications'
|
||||
# SnailJob 控制台地址
|
||||
VITE_APP_SNAILJOB_ADMIN = '/snail-job'
|
||||
|
||||
# 生产环境 晶全3
|
||||
VITE_APP_BASE_API = '/backend'
|
||||
# 生产环境 晶全3 代理访问
|
||||
VITE_APP_BASE_API = 'https://www.cnxhyc.com/jq'
|
||||
|
||||
# 生产环境 富源晟3
|
||||
#VITE_APP_BASE_API = '/backend-fys'
|
||||
|
||||
@ -6,7 +6,13 @@
|
||||
<meta name="renderer" content="webkit" />
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
|
||||
<link rel="icon" href="/favicon.ico" />
|
||||
<title>物联网管理系统</title>
|
||||
<script type="text/javascript">
|
||||
window._AMapSecurityConfig = {
|
||||
securityJsCode: "4239900f4fb7b2569df651ac814a28de",
|
||||
};
|
||||
</script>
|
||||
<script src="https://webapi.amap.com/maps?v=2.0&key=78c36a1e251a95f1a21a9e5ea7a1331c&plugin=AMap.CircleEditor"></script>
|
||||
<title>物联网管理平台</title>
|
||||
<!--[if lt IE 11
|
||||
]><script>
|
||||
window.location.href = '/html/ie.html';
|
||||
|
||||
13
package.json
@ -2,7 +2,7 @@
|
||||
"$schema": "https://json.schemastore.org/package",
|
||||
"name": "fys",
|
||||
"version": "5.4.0-2.4.0",
|
||||
"description": "物联网管理系统",
|
||||
"description": "星汉研创科技",
|
||||
"author": "LionLi",
|
||||
"license": "MIT",
|
||||
"type": "module",
|
||||
@ -37,6 +37,7 @@
|
||||
"jsencrypt": "3.3.2",
|
||||
"mitt": "^3.0.1",
|
||||
"nprogress": "0.2.0",
|
||||
"paho-mqtt": "^1.1.0",
|
||||
"pinia": "3.0.2",
|
||||
"qrcode-vue3": "^1.7.1",
|
||||
"screenfull": "6.0.2",
|
||||
@ -55,9 +56,9 @@
|
||||
"@types/js-cookie": "3.0.6",
|
||||
"@types/node": "^22.13.4",
|
||||
"@types/nprogress": "0.2.3",
|
||||
"@unocss/preset-attributify": "66.0.0",
|
||||
"@unocss/preset-icons": "66.0.0",
|
||||
"@unocss/preset-uno": "66.0.0",
|
||||
"@unocss/preset-attributify": "^66.0.0",
|
||||
"@unocss/preset-icons": "^66.0.0",
|
||||
"@unocss/preset-uno": "^66.0.0",
|
||||
"@vitejs/plugin-vue": "5.2.3",
|
||||
"@vue/compiler-sfc": "3.5.13",
|
||||
"@vue/eslint-config-prettier": "10.2.0",
|
||||
@ -71,12 +72,12 @@
|
||||
"sass": "1.87.0",
|
||||
"terser": "^5.43.1",
|
||||
"typescript": "~5.8.3",
|
||||
"unocss": "66.0.0",
|
||||
"unocss": "^66.0.0",
|
||||
"unplugin-auto-import": "19.1.2",
|
||||
"unplugin-icons": "22.1.0",
|
||||
"unplugin-vue-components": "28.5.0",
|
||||
"unplugin-vue-setup-extend-plus": "1.0.1",
|
||||
"vite": "6.3.2",
|
||||
"vite": "^6.3.6",
|
||||
"vite-plugin-compression": "0.5.1",
|
||||
"vite-plugin-svg-icons-ng": "^1.4.0",
|
||||
"vite-plugin-vue-devtools": "7.7.5",
|
||||
|
||||
17
src/App.vue
@ -8,8 +8,10 @@
|
||||
import { useSettingsStore } from '@/store/modules/settings';
|
||||
import { handleThemeStyle } from '@/utils/theme';
|
||||
import { useAppStore } from '@/store/modules/app';
|
||||
import { useUserStore } from '@/store/modules/user';
|
||||
|
||||
const appStore = useAppStore();
|
||||
const userStore = useUserStore();
|
||||
|
||||
onMounted(() => {
|
||||
nextTick(() => {
|
||||
@ -17,4 +19,19 @@ onMounted(() => {
|
||||
handleThemeStyle(useSettingsStore().theme);
|
||||
});
|
||||
});
|
||||
|
||||
// 监听租户名称变化,动态更新页面标题
|
||||
watch(
|
||||
() => userStore.tenantName,
|
||||
(value) => {
|
||||
if (value) {
|
||||
document.title = userStore.tenantName;
|
||||
} else {
|
||||
document.title = import.meta.env.VITE_APP_TITLE;
|
||||
}
|
||||
},
|
||||
{
|
||||
immediate: true,
|
||||
}
|
||||
);
|
||||
</script>
|
||||
|
||||
108
src/api/FenceManager/fence.ts
Normal file
@ -0,0 +1,108 @@
|
||||
import request from '@/utils/request';
|
||||
|
||||
//修改电子围栏
|
||||
function updateFence(data) {
|
||||
return request({
|
||||
url: '/api/equipment/geoFence',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
//新增电子围栏
|
||||
function AddFence(data) {
|
||||
return request({
|
||||
url: '/api/equipment/geoFence',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
//导出电子围栏列表
|
||||
function exportFence (data){
|
||||
return request({
|
||||
url: '/api/equipment/geoFence/export',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
//位置检查
|
||||
function check(data) {
|
||||
return request({
|
||||
url: '/api/equipment/geoFence/check',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
//获取电子围栏详细信息
|
||||
function geoFenceById(id) {
|
||||
return request({
|
||||
url: '/api/equipment/geoFence/'+id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
//查询电子围栏列表
|
||||
function getList(data) {
|
||||
if(!data){
|
||||
data={pageNum:1,pageSize:9999};
|
||||
}
|
||||
return request({
|
||||
url: '/api/equipment/geoFence/list',
|
||||
method: 'get',
|
||||
params: data
|
||||
})
|
||||
}
|
||||
|
||||
//删除电子围栏
|
||||
function DelFence(ids) {
|
||||
return request({
|
||||
url: '/api/equipment/geoFence/' + ids,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
//添加终端
|
||||
function addTerminal(data){
|
||||
return request({
|
||||
url: '/api/equipment/geoFence/addTerminal',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
//删除终端
|
||||
function delTerminal(data){
|
||||
return request({
|
||||
url: '/api/equipment/geoFence/delTerminal',
|
||||
method: 'post',
|
||||
data:data
|
||||
})
|
||||
}
|
||||
|
||||
//查询终端
|
||||
function pageTerminal(data){
|
||||
return request({
|
||||
url:'api/device/pageTerminal',
|
||||
method:'get',
|
||||
params:data
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
export default{
|
||||
updateFence:updateFence,
|
||||
AddFence:AddFence,
|
||||
exportFence:exportFence,
|
||||
check:check,
|
||||
geoFenceById:geoFenceById,
|
||||
getList:getList,
|
||||
DelFence:DelFence,
|
||||
addTerminal:addTerminal,
|
||||
delTerminal:delTerminal,
|
||||
pageTerminal:pageTerminal
|
||||
}
|
||||
|
||||
|
||||
245
src/api/FenceManager/mapOpt.ts
Normal file
@ -0,0 +1,245 @@
|
||||
var map = null;
|
||||
var circle = null;
|
||||
var polygon = null;
|
||||
import mapLocation from '@/assets/images/mapLocation.png';
|
||||
|
||||
function initMap() {
|
||||
// let key = '90bc158992feb8ccd0145e168cab1307';
|
||||
let init = function () {
|
||||
map = new AMap.Map("map", {
|
||||
viewMode: '2D', //默认使用 2D 模式
|
||||
zoom: 11, //地图级别
|
||||
dragEnable: true, // 强制开启拖拽
|
||||
zoomEnable: true, // 开启滚轮缩放(辅助验证)
|
||||
center: [114.420739, 30.487514], //地图中心点
|
||||
});
|
||||
|
||||
|
||||
setTimeout(() => {
|
||||
map.resize();
|
||||
}, 1000);
|
||||
// map.on('click',function(evt){
|
||||
// alert('您点击的位置:'+evt.lnglat.lng+' , '+ evt.lnglat.lat);
|
||||
// });
|
||||
}
|
||||
return new Promise((resolve, reject) => {
|
||||
if(map){
|
||||
resolve(200);
|
||||
return;
|
||||
}
|
||||
if (window.AMap) {
|
||||
init();
|
||||
resolve(200);
|
||||
return;
|
||||
}
|
||||
reject({code:500,msg:'高德地图未能初始化成功'});
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
//添加一个点
|
||||
function AddPoint(point, index, dragEnd, click) {
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
try {
|
||||
let center = point ? new AMap.LngLat(point.lng, point.lat) : map.getCenter();
|
||||
|
||||
let marker = new AMap.Text({
|
||||
icon: mapLocation,
|
||||
position: center,
|
||||
offset: new AMap.Pixel(-15, -24),
|
||||
draggable: true,
|
||||
cursor: 'point',
|
||||
title: '点击删除',
|
||||
text: index,
|
||||
class: 'point',
|
||||
extData: { type: 'point', txt: index }
|
||||
});
|
||||
marker.setMap(map);
|
||||
|
||||
let lays = map.getAllOverlays('text');
|
||||
for (let i = 0; i < lays.length; i++) {
|
||||
const element = lays[i];
|
||||
let cls = element.getOptions();
|
||||
if (cls.class) {
|
||||
element.dom.classList.add(cls.class);
|
||||
}
|
||||
}
|
||||
|
||||
marker.on('dragend', dragEnd);
|
||||
marker.on('mouseover', function (evt) {
|
||||
marker.setText('X');
|
||||
|
||||
});
|
||||
marker.on('mouseout', function (evt) {
|
||||
marker.setText(marker.getExtData().txt);
|
||||
|
||||
});
|
||||
marker.on('click', function (evt) {
|
||||
|
||||
click(evt, marker);
|
||||
});
|
||||
resolve(center);
|
||||
} catch (ex) {
|
||||
reject(ex)
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
function getCenter() {
|
||||
var center = map.getCenter().toJSON();
|
||||
return center;
|
||||
}
|
||||
|
||||
function setCenter(lon, lat) {
|
||||
var position = new AMap.LngLat(lon, lat); //传入经纬度
|
||||
map.setCenter(position); //简写 设置地图中心点
|
||||
|
||||
}
|
||||
//画多边形
|
||||
function DrawPoy(points) {
|
||||
if(!map){
|
||||
return;
|
||||
}
|
||||
if (!points) {
|
||||
return;
|
||||
}
|
||||
let path = [];
|
||||
if (polygon) {
|
||||
map.remove(polygon);
|
||||
polygon = null;
|
||||
|
||||
}
|
||||
|
||||
setTimeout(() => {
|
||||
points.filter(v => {
|
||||
path.push(new AMap.LngLat(v.lng, v.lat));
|
||||
return true;
|
||||
});
|
||||
|
||||
polygon = new AMap.Polygon({
|
||||
path: path,
|
||||
fillColor: '#ccebc5',
|
||||
strokeOpacity: 1,
|
||||
fillOpacity: 0.5,
|
||||
strokeColor: '#FF0000',
|
||||
strokeWeight: 5,
|
||||
strokeStyle: 'solid',
|
||||
strokeDasharray: [5, 5],
|
||||
});
|
||||
|
||||
map.add(polygon);
|
||||
|
||||
// map.setFitView();
|
||||
}, 0);
|
||||
|
||||
}
|
||||
//画圆形
|
||||
function DrawCicle(points, raduis, dragEnd) {
|
||||
if(!map){
|
||||
return;
|
||||
}
|
||||
if (circle) {
|
||||
map.remove(circle);
|
||||
}
|
||||
|
||||
circle = new AMap.Circle({
|
||||
center: [points[0].lng, points[0].lat],
|
||||
radius: raduis ? raduis : 1000, //半径
|
||||
borderWeight: 3,
|
||||
strokeColor: "#FF33FF",
|
||||
strokeWeight: 6,
|
||||
strokeOpacity: 0.2,
|
||||
fillOpacity: 0.4,
|
||||
strokeStyle: 'solid',
|
||||
strokeDasharray: [10, 10],
|
||||
// 线样式还支持 'dashed'
|
||||
fillColor: '#1791fc',
|
||||
zIndex: 50,
|
||||
})
|
||||
|
||||
// var circleEditor = new AMap.CircleEditor(map, circle,{
|
||||
// editOptions: {
|
||||
// moveable: false, // 禁止拖拽圆心
|
||||
// // 可以同时配置其他编辑选项
|
||||
// // scalable: true // 允许缩放(默认开启)
|
||||
// }
|
||||
// });
|
||||
|
||||
// circleEditor.open();
|
||||
|
||||
// circleEditor.on('move', function (event) {
|
||||
|
||||
// console.log('触发事件:move')
|
||||
// })
|
||||
|
||||
// circleEditor.on('adjust', function (event) {
|
||||
// console.log('触发事件:adjust');
|
||||
|
||||
// dragEnd(event.radius);
|
||||
// })
|
||||
|
||||
// circleEditor.on('end', function (event) {
|
||||
|
||||
// console.log('触发事件: end')
|
||||
// // event.target 即为编辑后的圆形对象
|
||||
// })
|
||||
|
||||
map.add(circle);
|
||||
// 缩放地图到合适的视野级别
|
||||
map.setFitView([circle])
|
||||
}
|
||||
|
||||
//清除所有
|
||||
function clearOverLays() {
|
||||
map && map.clearMap();
|
||||
}
|
||||
|
||||
|
||||
|
||||
function removeOverLay(lay) {
|
||||
map && map.remove(lay);
|
||||
}
|
||||
|
||||
function removePoy() {
|
||||
if(!map){
|
||||
return;
|
||||
}
|
||||
if (polygon) {
|
||||
map.remove(polygon);
|
||||
polygon = null;
|
||||
}
|
||||
|
||||
}
|
||||
function removeCircle() {
|
||||
if(!map){
|
||||
return;
|
||||
}
|
||||
if (circle) {
|
||||
map.remove(circle);
|
||||
circle = null;
|
||||
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
function setFitView() {
|
||||
if(map){map.setFitView();}
|
||||
}
|
||||
export default {
|
||||
gdMap: map,
|
||||
initMap: initMap,
|
||||
AddPoint: AddPoint,
|
||||
getCenter: getCenter,
|
||||
DrawPoy: DrawPoy,
|
||||
DrawCicle: DrawCicle,
|
||||
clearOverLays: clearOverLays,
|
||||
removeOverLay: removeOverLay,
|
||||
removePoy: removePoy,
|
||||
removeCircle: removeCircle,
|
||||
setFitView: setFitView
|
||||
}
|
||||
62
src/api/FenceManager/record.ts
Normal file
@ -0,0 +1,62 @@
|
||||
import request from '@/utils/request';
|
||||
import common from '@/utils/common';
|
||||
|
||||
//修改围栏进出记录
|
||||
function updateRecord(data) {
|
||||
return request({
|
||||
url: '/api/equipment/fenceAccessRecord',
|
||||
method: 'put',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
//新增围栏进出记录
|
||||
function addRecord(data) {
|
||||
return request({
|
||||
url: '/api/equipment/fenceAccessRecord',
|
||||
method: 'post',
|
||||
data: data
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
//获取围栏进出记录详细信息
|
||||
function getRecordById(id) {
|
||||
return request({
|
||||
url: '/api/equipment/fenceAccessRecord/' + id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
//查询围栏进出记录列表
|
||||
function RecordList(data) {
|
||||
let queryParams = Object.assign({}, data);
|
||||
if (queryParams.Date && queryParams.Date.length) {
|
||||
queryParams.beginTime = common.DateFormat(queryParams.Date[0], 'yyyy-MM-dd');
|
||||
queryParams.endTime = common.DateFormat(queryParams.Date.length > 1 ? queryParams.Date[1] : '', 'yyyy-MM-dd');
|
||||
}
|
||||
delete queryParams['Date'];
|
||||
return request({
|
||||
url: '/api/equipment/fenceAccessRecord/list',
|
||||
method: 'get',
|
||||
params: queryParams
|
||||
})
|
||||
}
|
||||
|
||||
//删除围栏进出记录
|
||||
function DropRecord(ids) {
|
||||
return request({
|
||||
url: '/api/equipment/fenceAccessRecord/' + ids,
|
||||
method: 'delete'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
export default {
|
||||
updateRecord: updateRecord,
|
||||
addRecord: addRecord,
|
||||
getRecordById: getRecordById,
|
||||
RecordList: RecordList,
|
||||
DropRecord: DropRecord
|
||||
}
|
||||
75
src/api/controlCenter/controlPanel/670.ts
Normal file
@ -0,0 +1,75 @@
|
||||
import request from '@/utils/request';
|
||||
|
||||
// 人员信息发送
|
||||
function SendUser (data: any) {
|
||||
return request({
|
||||
url: `/api/xinghan/device/registerPersonInfo`,
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
// 灯光模式
|
||||
function lightModeSettings (data: any) {
|
||||
return request({
|
||||
url: `/api/xinghan/device/LightGradeSettings`,
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
// 强制报警
|
||||
function SosSetting (data: any) {
|
||||
return request({
|
||||
url: `/api/xinghan/device/SOSGradeSettings`,
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
//批量强制报警
|
||||
function SosSettingBatch(data:any){
|
||||
return request({
|
||||
url: `/api/xinghan/device/SOSGradeSettingsBatch`,
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
//静电探测档位控制
|
||||
function staticPowerSetting (data: any) {
|
||||
return request({
|
||||
url: `/api/xinghan/device/DetectGradeSettings`,
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
// 获取设备实时状态
|
||||
function deviceRealTimeStatus (id: any) {
|
||||
return request({
|
||||
url: `/api/xinghan/device/`+id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
// 发送信息
|
||||
function SendMessage (data: any) {
|
||||
return request({
|
||||
url: `/api/xinghan/device/sendAlarmMessage`,
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
|
||||
|
||||
export default {
|
||||
SendUser:SendUser,
|
||||
lightModeSettings:lightModeSettings,
|
||||
SosSetting:SosSetting,
|
||||
staticPowerSetting:staticPowerSetting,
|
||||
deviceRealTimeStatus:deviceRealTimeStatus,
|
||||
SendMessage:SendMessage,
|
||||
SosSettingBatch:SosSettingBatch
|
||||
};
|
||||
114
src/api/controlCenter/controlPanel/eqControl.ts
Normal file
@ -0,0 +1,114 @@
|
||||
import xhyc from '@/api/controlCenter/controlPanel/670'
|
||||
import fys from '@/api/controlCenter/controlPanel/index'
|
||||
|
||||
|
||||
var dic = [{
|
||||
typeNames: ['670'],//星汉的配置
|
||||
sendMsg: {
|
||||
cfg: ['sendMsg', 'deviceIds', 'deviceImeiList', 'instructValue', 'batchId'],
|
||||
method: xhyc.SendMessage
|
||||
},
|
||||
SOS: {
|
||||
|
||||
cfg: ["deviceIds", "typeName", "batchId", "deviceImeiList", "instructValue"],
|
||||
method: xhyc.SosSettingBatch
|
||||
},
|
||||
sendImg: {
|
||||
cfg: [],
|
||||
method: null
|
||||
}
|
||||
},
|
||||
{
|
||||
typeNames: ['6170', '210'],//富源晟的配置
|
||||
sendMsg: {
|
||||
cfg: ["deviceIds", "typeName", "batchId", "deviceImeiList", "sendMsg"],
|
||||
method: fys.deviceSendMessage
|
||||
},
|
||||
SOS: {
|
||||
cfg: ["deviceIds", "typeName", "batchId", "deviceImeiList", "instructValue"],
|
||||
method: fys.sendAlarmMessage
|
||||
},
|
||||
sendImg: {
|
||||
cfg: [],
|
||||
method: null
|
||||
}
|
||||
},
|
||||
{
|
||||
typeNames: null,//如果找不到,以富源晟的配置为准
|
||||
sendMsg: {
|
||||
cfg: ["deviceIds", "typeName", "batchId", "deviceImeiList", "sendMsg"],
|
||||
method: fys.deviceSendMessage
|
||||
},
|
||||
SOS: {
|
||||
cfg: ["deviceIds", "typeName", "batchId", "deviceImeiList", "instructValue"],
|
||||
method: fys.sendAlarmMessage
|
||||
},
|
||||
sendImg: {
|
||||
cfg: [],
|
||||
method: null
|
||||
}
|
||||
|
||||
}
|
||||
];
|
||||
|
||||
function getCfg(json, type) {
|
||||
let f = dic.find(v => {
|
||||
|
||||
let flag = false;
|
||||
for (let index = 0; index < v.typeNames.length; index++) {
|
||||
let i = v.typeNames[index];
|
||||
if (i.toLowerCase().indexOf(json.typeName.toLowerCase()) > -1 || json.typeName.toLowerCase().indexOf(i.toLowerCase()) > -1) {
|
||||
flag = true;
|
||||
break;
|
||||
}
|
||||
}
|
||||
return flag;
|
||||
});
|
||||
|
||||
if (!f) {
|
||||
f = dic.find(v => {
|
||||
return !v.typeNames;
|
||||
});
|
||||
}
|
||||
if (f) {
|
||||
let keys = f[type].cfg;
|
||||
let method = f[type].method;
|
||||
|
||||
let formData = {};
|
||||
keys.forEach(key => {
|
||||
formData[key] = json[key];
|
||||
});
|
||||
|
||||
return {
|
||||
formData: formData,
|
||||
method: method
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
//发送信息
|
||||
function deviceSendMessage(json) {
|
||||
let cfg = getCfg(json, 'sendMsg');
|
||||
if (cfg.method) {
|
||||
return cfg.method(cfg.formData);
|
||||
}
|
||||
return Promise.reject({ code: 500, msg: '配置中找不到该类型的设备' });
|
||||
|
||||
}
|
||||
|
||||
//强制报警
|
||||
function sendAlarmMessage(json) {
|
||||
|
||||
let cfg = getCfg(json, 'SOS');
|
||||
if (cfg.method) {
|
||||
return cfg.method(cfg.formData);
|
||||
}
|
||||
return Promise.reject({ code: 500, msg: '配置中找不到该类型的设备' });
|
||||
}
|
||||
export default {
|
||||
deviceSendMessage: deviceSendMessage,
|
||||
sendAlarmMessage: sendAlarmMessage
|
||||
}
|
||||
97
src/api/controlCenter/controlPanel/index.ts
Normal file
@ -0,0 +1,97 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { deviceQuery, deviceVO } from './types';
|
||||
// 设备分组
|
||||
export const devicegroupList = (params) => {
|
||||
return request({
|
||||
url: '/api/device/group/list',
|
||||
method: 'get',
|
||||
params: params
|
||||
});
|
||||
};
|
||||
// 设备列表
|
||||
export const deviceControlCenterList = (params) => {
|
||||
return request({
|
||||
url: '/api/device/list',
|
||||
method: 'get',
|
||||
params: params
|
||||
});
|
||||
};
|
||||
|
||||
// 设备详情
|
||||
export const deviceDeatil = (id) => {
|
||||
return request({
|
||||
url: `/api/bjq/device/${id}`,
|
||||
method: 'get',
|
||||
});
|
||||
};
|
||||
// 人员信息发送
|
||||
export const registerPersonInfo = (data: any) => {
|
||||
return request({
|
||||
url: `/api/bjq/device/registerPersonInfo`,
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
// 灯光亮度
|
||||
export const lightBrightnessSettings = (data: any) => {
|
||||
return request({
|
||||
url: `/api/bjq/device/lightBrightnessSettings`,
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
// 灯光模式
|
||||
export const lightModeSettings = (data: any) => {
|
||||
return request({
|
||||
url: `/api/bjq/device/lightModeSettings`,
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
// 激光模式
|
||||
export const laserModeSettings = (data: any) => {
|
||||
return request({
|
||||
url: `/api/bjq/device/laserModeSettings`,
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
// 强制报警
|
||||
export const sendAlarmMessage = (data: any) => {
|
||||
return request({
|
||||
url: `/api/bjq/device/sendAlarmMessage`,
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
// 获取设备实时状态
|
||||
export const deviceRealTimeStatus = (params: any) => {
|
||||
return request({
|
||||
url: `/api/device/realTimeStatus`,
|
||||
method: 'get',
|
||||
params: params
|
||||
});
|
||||
};
|
||||
// 发送信息
|
||||
export const deviceSendMessage = (data: any) => {
|
||||
return request({
|
||||
url: `/api/bjq/device/sendMessage`,
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
export default {
|
||||
devicegroupList,
|
||||
deviceControlCenterList,
|
||||
deviceDeatil,
|
||||
registerPersonInfo,
|
||||
lightBrightnessSettings,
|
||||
lightModeSettings,
|
||||
laserModeSettings,
|
||||
sendAlarmMessage,
|
||||
deviceRealTimeStatus,
|
||||
deviceSendMessage
|
||||
};
|
||||
57
src/api/controlCenter/controlPanel/types.ts
Normal file
@ -0,0 +1,57 @@
|
||||
export interface deviceQuery {
|
||||
groupId: string;
|
||||
pageNum: number;
|
||||
deviceId: string;
|
||||
deviceName: string;
|
||||
onlineStatus: string;
|
||||
deviceMac: string;
|
||||
deviceImei: string;
|
||||
personnelBy: string;
|
||||
communicationMode: string;
|
||||
pageSize: Number;
|
||||
deviceType: string;
|
||||
content: string
|
||||
|
||||
}
|
||||
export interface deviceVO {
|
||||
id: string; // 设备ID
|
||||
deviceName?: string | Number; // 设备名称(对应子组件的device.name)
|
||||
typeName: string; // 设备类型/型号(对应子组件的device.model)
|
||||
onlineStatus: 0 | 1; // 设备状态(0=失效/离线,1=正常/在线,对应子组件的device.status)
|
||||
lng?: number; // 经度(地图打点用)
|
||||
lat?: number; // 纬度(地图打点用
|
||||
|
||||
// 其他字段...
|
||||
}
|
||||
// 1. 定义设备详情的类型(根据接口返回字段调整!关键:和后端返回的字段名一致)
|
||||
export interface DeviceDetail {
|
||||
deviceName: string; // 设备名称
|
||||
deviceImei: string; // 设备型号
|
||||
onlineStatus: 0 | 1; // 设备状态(0=离线,1=在线)
|
||||
batteryPercentage: number; // 电量(如80,对应80%)
|
||||
batteryRemainingTime: string; // 续航(如"115"表示115分钟,或直接返回"1小时55分钟")
|
||||
longitude: string; // 经度
|
||||
latitude: string; // 纬度
|
||||
address: string; // 地址
|
||||
currentLightMode?: string;// 当前选中的灯光模式(如"strong",对应强光)
|
||||
sendMsg: string;
|
||||
lightBrightness: string;
|
||||
personnelInfo: { // 人员信息(嵌套对象,根据接口调整)
|
||||
unitName: string; // 单位
|
||||
position: string; // 职位
|
||||
name: string; // 姓名
|
||||
code: string; // ID(身份证/工号)
|
||||
};
|
||||
chargeState: string;
|
||||
alarmStatus:number
|
||||
}
|
||||
// 定义灯光模式的类型接口
|
||||
export interface LightMode {
|
||||
id: string;
|
||||
name: string;
|
||||
icon: string;
|
||||
activeIcon: string;
|
||||
active: boolean;
|
||||
switchStatus: boolean;
|
||||
instructValue: string
|
||||
}
|
||||
22
src/api/controlCenter/delivey/index.ts
Normal file
@ -0,0 +1,22 @@
|
||||
import request from '@/utils/request';
|
||||
// 设备分组
|
||||
export const devicegroupList = (params) => {
|
||||
return request({
|
||||
url: '/api/device/group/list',
|
||||
method: 'get',
|
||||
params: params
|
||||
});
|
||||
};
|
||||
// 指令下发记录
|
||||
export const deviceInstructionRecord = (params) => {
|
||||
return request({
|
||||
url: '/api/device/instructionRecord',
|
||||
method: 'get',
|
||||
params: params
|
||||
});
|
||||
};
|
||||
// 导出
|
||||
export default {
|
||||
devicegroupList,
|
||||
deviceInstructionRecord
|
||||
};
|
||||
22
src/api/controlCenter/delivey/types.ts
Normal file
@ -0,0 +1,22 @@
|
||||
export interface deviceQuery {
|
||||
groupId: string;
|
||||
pageNum: number;
|
||||
deviceName: string;
|
||||
deviceMac: string;
|
||||
deviceImei: string;
|
||||
pageSize: Number;
|
||||
deviceType: string;
|
||||
startTime: string; // 接口要求的开始时间字段
|
||||
endTime: string // 接口要求的结束时间字段
|
||||
content:string
|
||||
}
|
||||
export interface deviceVO {
|
||||
id: number; // 设备ID
|
||||
deviceName: string; // 设备名称(对应子组件的device.name)
|
||||
typeName: string; // 设备类型/型号(对应子组件的device.model)
|
||||
onlineStatus: 0 | 1; // 设备状态(0=失效/离线,1=正常/在线,对应子组件的device.status)
|
||||
lng?: number; // 经度(地图打点用)
|
||||
lat?: number; // 纬度(地图打点用)
|
||||
// 其他字段...
|
||||
}
|
||||
|
||||
23
src/api/controlCenter/historyjectory/index.ts
Normal file
@ -0,0 +1,23 @@
|
||||
import request from '@/utils/request';
|
||||
// 轨迹记录
|
||||
export const devicelocationHistory = (params) => {
|
||||
return request({
|
||||
url: '/api/device/locationHistory',
|
||||
method: 'get',
|
||||
params: params
|
||||
});
|
||||
};
|
||||
// 轨迹播放
|
||||
export const getLocationHistoryDetail = (params) => {
|
||||
return request({
|
||||
url: '/api/device/getLocationHistoryDetail',
|
||||
method: 'get',
|
||||
params: params
|
||||
});
|
||||
};
|
||||
|
||||
// 导出
|
||||
export default {
|
||||
devicelocationHistory,
|
||||
getLocationHistoryDetail
|
||||
};
|
||||
22
src/api/controlCenter/historyjectory/types.ts
Normal file
@ -0,0 +1,22 @@
|
||||
export interface deviceQuery {
|
||||
groupId: string;
|
||||
pageNum: number;
|
||||
deviceName: string;
|
||||
deviceMac: string;
|
||||
deviceImei: string;
|
||||
pageSize: Number;
|
||||
deviceType: string;
|
||||
startTime: string; // 接口要求的开始时间字段
|
||||
endTime: string // 接口要求的结束时间字段
|
||||
content: string
|
||||
}
|
||||
export interface deviceVO {
|
||||
id: number; // 设备ID
|
||||
deviceName: string; // 设备名称(对应子组件的device.name)
|
||||
typeName: string; // 设备类型/型号(对应子组件的device.model)
|
||||
onlineStatus: 0 | 1; // 设备状态(0=失效/离线,1=正常/在线,对应子组件的device.status)
|
||||
lng?: number; // 经度(地图打点用)
|
||||
lat?: number; // 纬度(地图打点用)
|
||||
// 其他字段...
|
||||
}
|
||||
|
||||
89
src/api/debugCenter/debugCenter.ts
Normal file
@ -0,0 +1,89 @@
|
||||
import request from '@/utils/request';
|
||||
|
||||
//获取列表数据
|
||||
function getDevice(queryParams){
|
||||
return request({
|
||||
url: '/api/device/debug/list',
|
||||
method: 'get',
|
||||
params: queryParams
|
||||
})
|
||||
}
|
||||
|
||||
//上传文件
|
||||
function uploadFile(formData){
|
||||
return request({
|
||||
url: '/api/device/debug/addFile',
|
||||
method: 'post',
|
||||
data: formData
|
||||
})
|
||||
}
|
||||
|
||||
//修改操作视频
|
||||
function addVideo(formData){
|
||||
return request({
|
||||
url: '/api/device/debug/addVideo',
|
||||
method: 'post',
|
||||
data: formData
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
//修改单个数据的多个文件
|
||||
function updateItem(formData){
|
||||
|
||||
return request({
|
||||
url: '/api/device/debug/editDebug',
|
||||
method: 'post',
|
||||
data: formData
|
||||
})
|
||||
//开发时假装成功
|
||||
// return new Promise((resolve,reject)=>{
|
||||
// resolve({
|
||||
// code:200,
|
||||
// msg:"操作成功"
|
||||
// });
|
||||
// });
|
||||
}
|
||||
//批量上传开机画面
|
||||
function uploadBoot(formData){
|
||||
return request({
|
||||
url: '/api/device/debug/addLogo',
|
||||
method: 'post',
|
||||
data: formData
|
||||
})
|
||||
//开发时假装成功
|
||||
// return new Promise((resolve, reject) => {
|
||||
// //开机画面
|
||||
// resolve({ code: 200, msg: '操作成功' });
|
||||
// });
|
||||
}
|
||||
|
||||
// 6170上传logo开机画面
|
||||
function deviceUploadLogo(formData){
|
||||
return request({
|
||||
url: '/api/bjq/device/batchUploadLogo',
|
||||
method: 'post',
|
||||
data: formData
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
function getDeviceInfoById(id){
|
||||
return request({
|
||||
url: '/api/device/debug/detail/'+id,
|
||||
method: 'get'
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
export default{
|
||||
getDevice:getDevice,
|
||||
uploadFile:uploadFile,
|
||||
addVideo:addVideo,
|
||||
updateItem:updateItem,
|
||||
uploadBoot:uploadBoot,
|
||||
getDeviceInfoById:getDeviceInfoById,
|
||||
deviceUploadLogo:deviceUploadLogo
|
||||
}
|
||||
29
src/api/debugCenter/deviceApi.ts
Normal file
@ -0,0 +1,29 @@
|
||||
|
||||
import debugCenter from '@/api/debugCenter/debugCenter';
|
||||
const uploadConfig = {
|
||||
670: {
|
||||
api: debugCenter.uploadBoot, // 670对应接口
|
||||
requiredParams: ['deviceIds', 'file']
|
||||
},
|
||||
6170: {
|
||||
api: debugCenter.deviceUploadLogo,
|
||||
requiredParams: ['deviceIds', 'file',]
|
||||
},
|
||||
default: {
|
||||
api: debugCenter.uploadBoot,
|
||||
requiredParams: ['deviceIds', 'file']
|
||||
}
|
||||
};
|
||||
function handleParams(deviceType, deviceIds, file) {
|
||||
const formattedIds = Array.isArray(deviceIds) ? deviceIds : [deviceIds];
|
||||
const formData = new FormData();
|
||||
formattedIds.forEach(id => formData.append('deviceIds', id));
|
||||
formData.append('file', file);
|
||||
return formData;
|
||||
}
|
||||
export function uploadLogo(deviceType, deviceIds, file) {
|
||||
const currentConfig = uploadConfig[deviceType] || uploadConfig.default;
|
||||
const formData = handleParams(deviceType, deviceIds, file);
|
||||
return currentConfig.api(formData);
|
||||
}
|
||||
export default { uploadLogo };
|
||||
@ -1,63 +1,63 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { EquipmentAlarmRecordVO, EquipmentAlarmRecordForm, EquipmentAlarmRecordQuery } from '@/api/equipmentAlarmRecord/types';
|
||||
import { AlarmVO, AlarmForm, AlarmQuery } from '@/api/equipment/alarm/types';
|
||||
|
||||
/**
|
||||
* 查询设备报警记录列表
|
||||
* 查询设备告警列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listEquipmentAlarmRecord = (query?: EquipmentAlarmRecordQuery): AxiosPromise<EquipmentAlarmRecordVO[]> => {
|
||||
export const listAlarm = (query?: AlarmQuery): AxiosPromise<AlarmVO[]> => {
|
||||
return request({
|
||||
url: '/equipment/equipmentAlarmRecord/list',
|
||||
url: 'api/equipment/alarm/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询设备报警记录详细
|
||||
* 查询设备告警详细
|
||||
* @param id
|
||||
*/
|
||||
export const getEquipmentAlarmRecord = (id: string | number): AxiosPromise<EquipmentAlarmRecordVO> => {
|
||||
export const getAlarm = (id: string | number): AxiosPromise<AlarmVO> => {
|
||||
return request({
|
||||
url: '/equipment/equipmentAlarmRecord/' + id,
|
||||
url: '/equipment/alarm/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增设备报警记录
|
||||
* 新增设备告警
|
||||
* @param data
|
||||
*/
|
||||
export const addEquipmentAlarmRecord = (data: EquipmentAlarmRecordForm) => {
|
||||
export const addAlarm = (data: AlarmForm) => {
|
||||
return request({
|
||||
url: '/equipment/equipmentAlarmRecord',
|
||||
url: '/equipment/alarm',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改设备报警记录
|
||||
* 修改设备告警
|
||||
* @param data
|
||||
*/
|
||||
export const updateEquipmentAlarmRecord = (data: EquipmentAlarmRecordForm) => {
|
||||
export const updateAlarm = (data: AlarmForm) => {
|
||||
return request({
|
||||
url: '/equipment/equipmentAlarmRecord',
|
||||
url: '/equipment/alarm',
|
||||
method: 'put',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除设备报警记录
|
||||
* 删除设备告警
|
||||
* @param id
|
||||
*/
|
||||
export const delEquipmentAlarmRecord = (id: string | number | Array<string | number>) => {
|
||||
export const delAlarm = (id: string | number | Array<string | number>) => {
|
||||
return request({
|
||||
url: '/equipment/equipmentAlarmRecord/' + id,
|
||||
url: '/equipment/alarm/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
};
|
||||
|
||||
@ -1,82 +1,40 @@
|
||||
export interface EquipmentAlarmRecordVO {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 报警设备id
|
||||
*/
|
||||
deviceId: string | number;
|
||||
|
||||
/**
|
||||
* 设备IMEI
|
||||
*/
|
||||
deviceImei: string;
|
||||
|
||||
/**
|
||||
* 设备MAC
|
||||
*/
|
||||
deviceMac: string;
|
||||
|
||||
/**
|
||||
* 设备名称
|
||||
*/
|
||||
export interface AlarmVO {
|
||||
startTime: string;
|
||||
treatmentState?: string | number
|
||||
deviceAction?: string | number;
|
||||
deviceName: string;
|
||||
|
||||
/**
|
||||
* 所属代理(客户)
|
||||
*/
|
||||
agent: number;
|
||||
|
||||
/**
|
||||
* 绑定app用户
|
||||
*/
|
||||
bindApp: number;
|
||||
|
||||
/**
|
||||
* 报警类型
|
||||
*/
|
||||
alarmType: number;
|
||||
|
||||
/**
|
||||
* 报警编码
|
||||
|
||||
*/
|
||||
alarmCode: string;
|
||||
|
||||
/**
|
||||
* 报警描述
|
||||
*/
|
||||
alarmDescription: string;
|
||||
|
||||
/**
|
||||
* 报警时间
|
||||
*/
|
||||
alarmTime: string;
|
||||
|
||||
dataSource: string;
|
||||
content: string;
|
||||
longitude: number;
|
||||
latitude: number;
|
||||
location: string;
|
||||
queryTime1?: string | number;
|
||||
queryTime2?: string | number;
|
||||
durationTime: string;
|
||||
deviceTypeName: string;
|
||||
deviceImei: string;
|
||||
deviceMac: string;
|
||||
devicePic:string;
|
||||
finishTime: string;
|
||||
timeDiff:string
|
||||
|
||||
}
|
||||
|
||||
export interface EquipmentAlarmRecordForm extends BaseEntity {
|
||||
export interface AlarmForm extends BaseEntity {
|
||||
/**
|
||||
*
|
||||
* ID
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 报警设备id
|
||||
* 设备ID
|
||||
*/
|
||||
deviceId?: string | number;
|
||||
|
||||
/**
|
||||
* 设备IMEI
|
||||
* 报警事项
|
||||
*/
|
||||
deviceImei?: string;
|
||||
|
||||
/**
|
||||
* 设备MAC
|
||||
*/
|
||||
deviceMac?: string;
|
||||
deviceAction?: string;
|
||||
|
||||
/**
|
||||
* 设备名称
|
||||
@ -84,54 +42,69 @@ export interface EquipmentAlarmRecordForm extends BaseEntity {
|
||||
deviceName?: string;
|
||||
|
||||
/**
|
||||
* 所属代理(客户)
|
||||
* 数据来源
|
||||
*/
|
||||
agent?: number;
|
||||
dataSource?: string;
|
||||
|
||||
/**
|
||||
* 绑定app用户
|
||||
* 内容
|
||||
*/
|
||||
bindApp?: number;
|
||||
content?: string;
|
||||
|
||||
/**
|
||||
* 报警类型
|
||||
* 设备类型
|
||||
*/
|
||||
alarmType?: number;
|
||||
deviceType?: number;
|
||||
|
||||
/**
|
||||
* 报警编码
|
||||
* 经度
|
||||
|
||||
*/
|
||||
alarmCode?: string;
|
||||
longitude?: number;
|
||||
|
||||
/**
|
||||
* 报警描述
|
||||
* 纬度
|
||||
*/
|
||||
alarmDescription?: string;
|
||||
latitude?: number;
|
||||
|
||||
/**
|
||||
* 报警时间
|
||||
* 报警位置
|
||||
*/
|
||||
alarmTime?: string;
|
||||
location?: string;
|
||||
|
||||
/**
|
||||
* 报警开始时间
|
||||
*/
|
||||
startTime?: string;
|
||||
|
||||
/**
|
||||
* 报警结束时间
|
||||
*/
|
||||
finishTime?: string;
|
||||
|
||||
/**
|
||||
* 报警持续时间
|
||||
*/
|
||||
durationTime?: string;
|
||||
|
||||
/**
|
||||
* 0已处理,1未处理
|
||||
*/
|
||||
treatmentState?: number;
|
||||
|
||||
}
|
||||
|
||||
export interface EquipmentAlarmRecordQuery extends PageQuery {
|
||||
export interface AlarmQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 报警设备id
|
||||
* 设备ID
|
||||
*/
|
||||
deviceId?: string | number;
|
||||
|
||||
/**
|
||||
* 设备IMEI
|
||||
* 报警事项
|
||||
*/
|
||||
deviceImei?: string;
|
||||
|
||||
/**
|
||||
* 设备MAC
|
||||
*/
|
||||
deviceMac?: string;
|
||||
deviceAction?: string;
|
||||
|
||||
/**
|
||||
* 设备名称
|
||||
@ -139,40 +112,60 @@ export interface EquipmentAlarmRecordQuery extends PageQuery {
|
||||
deviceName?: string;
|
||||
|
||||
/**
|
||||
* 所属代理(客户)
|
||||
* 数据来源
|
||||
*/
|
||||
agent?: number;
|
||||
dataSource?: string;
|
||||
|
||||
/**
|
||||
* 绑定app用户
|
||||
* 内容
|
||||
*/
|
||||
bindApp?: number;
|
||||
content?: string;
|
||||
|
||||
/**
|
||||
* 报警类型
|
||||
* 设备类型
|
||||
*/
|
||||
alarmType?: number;
|
||||
deviceType?: number;
|
||||
|
||||
/**
|
||||
* 报警编码
|
||||
* 经度
|
||||
|
||||
*/
|
||||
alarmCode?: string;
|
||||
longitude?: number;
|
||||
|
||||
/**
|
||||
* 报警描述
|
||||
* 纬度
|
||||
*/
|
||||
alarmDescription?: string;
|
||||
latitude?: number;
|
||||
|
||||
/**
|
||||
* 报警时间
|
||||
* 报警位置
|
||||
*/
|
||||
alarmTime?: string;
|
||||
location?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
/**
|
||||
* 报警开始时间
|
||||
*/
|
||||
startTime?: string;
|
||||
|
||||
/**
|
||||
* 报警结束时间
|
||||
*/
|
||||
finishTime?: string;
|
||||
|
||||
/**
|
||||
* 报警持续时间
|
||||
*/
|
||||
durationTime?: string;
|
||||
|
||||
/**
|
||||
* 0已处理,1未处理
|
||||
*/
|
||||
treatmentState?: number;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -72,15 +72,15 @@ export const userAllCustomerAll = () => {
|
||||
}
|
||||
|
||||
// 解绑
|
||||
export const deviceUnbind = (params:any) => {
|
||||
export const deviceUnbind = (params: any) => {
|
||||
return request({
|
||||
url: '/api/device/unbind',
|
||||
method: 'GET',
|
||||
method: 'delete',
|
||||
params
|
||||
})
|
||||
}
|
||||
// 撤回
|
||||
export const withdrawDevice = (data:any) => {
|
||||
export const withdrawDevice = (data: any) => {
|
||||
return request({
|
||||
url: '/api/device/withdraw',
|
||||
method: 'post',
|
||||
@ -88,7 +88,7 @@ export const withdrawDevice = (data:any) => {
|
||||
})
|
||||
}
|
||||
// 下载模板
|
||||
export const deviceTemplate=()=> {
|
||||
export const deviceTemplate = () => {
|
||||
return request({
|
||||
url: '/api/device/template',
|
||||
method: ' GET',
|
||||
@ -98,5 +98,5 @@ export const deviceTemplate=()=> {
|
||||
export const devicDeimport = () => {
|
||||
return `${import.meta.env.VITE_APP_BASE_API}/api/device/import`
|
||||
}
|
||||
export default { deviceList, addDevice, updateDevice, deleteDevice, deviceTypeAll, getCommunicationMode, userAllCustomerAll, deviceAssignCustomer, deviceUnbind,withdrawDevice,deviceTemplate,devicDeimport }
|
||||
export default { deviceList, addDevice, updateDevice, deleteDevice, deviceTypeAll, getCommunicationMode, userAllCustomerAll, deviceAssignCustomer, deviceUnbind, withdrawDevice, deviceTemplate, devicDeimport }
|
||||
|
||||
|
||||
86
src/api/equipmentManagement/device/shareManage.ts
Normal file
@ -0,0 +1,86 @@
|
||||
import request from '@/utils/request';
|
||||
import { resolve } from 'path';
|
||||
|
||||
|
||||
|
||||
function DelShare(ids) {
|
||||
return request({
|
||||
url: '/api/equipment/share/' + ids,
|
||||
method: 'delete'
|
||||
});
|
||||
}
|
||||
//添加分享数据
|
||||
function SaveShare(data,type){
|
||||
|
||||
let promise=null;
|
||||
if(type=='add'){
|
||||
promise=addShare(data);
|
||||
}else{
|
||||
promise=powerSet(data);
|
||||
}
|
||||
return promise;
|
||||
}
|
||||
//添加
|
||||
function addShare(data) {
|
||||
return request({
|
||||
url: '/api/equipment/share/deviceShare',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
}
|
||||
|
||||
//修改
|
||||
function powerSet(data) {
|
||||
return request({
|
||||
url: '/api/equipment/share/permission',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
|
||||
}
|
||||
//查询
|
||||
function searchShare(params) {
|
||||
return request({
|
||||
url: '/api/equipment/share/deviceShareList',
|
||||
method: 'get',
|
||||
params: params
|
||||
})
|
||||
}
|
||||
|
||||
//发送验证码
|
||||
function sendSms(phoneNumber) {
|
||||
return request({
|
||||
url: '/api/equipment/share/sms/code',
|
||||
method: 'get',
|
||||
params: {
|
||||
phonenumber: phoneNumber
|
||||
}
|
||||
});
|
||||
|
||||
// return new Promise((resolve,reject)=>{
|
||||
// resolve({
|
||||
// code:200
|
||||
// });
|
||||
// });
|
||||
}
|
||||
|
||||
function getUsrs(){
|
||||
return request({
|
||||
url: '/WebApp/user/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
pageNum:1,
|
||||
pageSize:9999
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
export default {
|
||||
powerSet: powerSet,
|
||||
DelShare: DelShare,
|
||||
SaveShare: SaveShare,
|
||||
searchShare: searchShare,
|
||||
sendSms:sendSms,
|
||||
getUsrs:getUsrs
|
||||
}
|
||||
@ -5,6 +5,8 @@ export interface deviceQuery extends PageQuery {
|
||||
deviceType: string;
|
||||
deviceStatus: string;
|
||||
bluetoothName?: string; // 蓝牙名称查询字段
|
||||
onlineStatus?: string;
|
||||
bindingStatus?:string
|
||||
}
|
||||
|
||||
export interface deviceForm {
|
||||
@ -37,6 +39,7 @@ export interface deviceVO {
|
||||
customerId?: string | number;
|
||||
typeName?: string;
|
||||
bluetoothName?: string; // 蓝牙名称字段
|
||||
|
||||
}
|
||||
|
||||
export interface deviceTypeOption {
|
||||
|
||||
@ -17,7 +17,10 @@ export const addDeviceType = (data: any): AxiosPromise<deviceTypeVO[]> => {
|
||||
return request({
|
||||
url: '/api/deviceType/add',
|
||||
method: 'post',
|
||||
data: data
|
||||
data: data,
|
||||
headers:{
|
||||
'Content-Type':'application/x-www-form-urlencoded;charset=UTF-8'
|
||||
}
|
||||
});
|
||||
};
|
||||
|
||||
@ -26,6 +29,9 @@ export const updateDeviceType = (data: any): AxiosPromise<deviceTypeVO[]> => {
|
||||
return request({
|
||||
url: '/api/deviceType/update',
|
||||
method: 'put',
|
||||
headers:{
|
||||
'Content-Type':'application/x-www-form-urlencoded;charset=UTF-8'
|
||||
},
|
||||
data
|
||||
})
|
||||
}
|
||||
@ -34,6 +40,7 @@ export const deleteDeviceType = (ids: any): AxiosPromise<deviceTypeVO[]> => {
|
||||
return request({
|
||||
url: '/api/deviceType/delete',
|
||||
method: 'delete',
|
||||
|
||||
data: ids
|
||||
})
|
||||
}
|
||||
|
||||
445
src/api/equipmentManagement/devicegroup/index.ts
Normal file
@ -0,0 +1,445 @@
|
||||
import request from '@/utils/request';
|
||||
|
||||
//左侧节点的数据源
|
||||
function getTreeData(para: any) {
|
||||
|
||||
|
||||
|
||||
let promise2 = new Promise((resolve, reject) => {
|
||||
request({
|
||||
url: '/api/device/group/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
"createDept": null,
|
||||
"createBy": null,
|
||||
"createTime": "",
|
||||
"updateBy": null,
|
||||
"updateTime": "",
|
||||
"params": {
|
||||
"additionalProp1": "",
|
||||
"additionalProp2": "",
|
||||
"additionalProp3": ""
|
||||
},
|
||||
"id": null,
|
||||
"groupName": para,
|
||||
"status": 1,
|
||||
"parentId": null,
|
||||
"fullPath": "",
|
||||
"isDeleted": 0,
|
||||
"pageNum": 1,
|
||||
"pageSize": 99999
|
||||
}
|
||||
}).then((res) => {
|
||||
resolve(res);
|
||||
}).catch((ex) => {
|
||||
reject(ex);
|
||||
});
|
||||
});
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
Promise.allSettled([promise2]).then(res => {
|
||||
|
||||
if (res[0].status == 'fulfilled') {
|
||||
let json = res[0].value;
|
||||
|
||||
|
||||
resolve(json.data);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
}
|
||||
//节点搜索
|
||||
function treeNodeSearch(treeData, search = '', filed = 'groupName', childField = 'children') {
|
||||
|
||||
|
||||
/**
|
||||
* 对文本进行标准化处理(去除空格和转换为小写)
|
||||
* @param {string} text - 需要处理的文本
|
||||
* @returns {string} 标准化后的文本
|
||||
*/
|
||||
function normalizeText(text) {
|
||||
return text.replace(/\s+/g, '').toLowerCase();
|
||||
}
|
||||
|
||||
/**
|
||||
* 收集所有末级元素的完整路径
|
||||
* @param {Array} nodes - 节点数组
|
||||
* @param {Array} currentPath - 当前路径
|
||||
* @param {Array} leafPaths - 存储末级元素路径的数组
|
||||
*/
|
||||
function collectLeafPaths(nodes, currentPath, leafPaths, childField) {
|
||||
if (!nodes || !nodes.length) return;
|
||||
|
||||
for (let node of nodes) {
|
||||
// 创建包含当前节点的新路径
|
||||
let newPath = [...currentPath, node];
|
||||
|
||||
// 检查是否为末级元素(没有children或children为空)
|
||||
if (!node[childField] || !node[childField].length) {
|
||||
leafPaths.push(newPath);
|
||||
} else {
|
||||
// 递归处理子节点
|
||||
collectLeafPaths(node[childField], newPath, leafPaths, childField);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* 检查路径上是否有任何节点匹配搜索条件
|
||||
* @param {Array} path - 节点路径数组
|
||||
* @param {string} searchTerm - 标准化后的搜索词
|
||||
* @returns {boolean} 是否匹配
|
||||
*/
|
||||
function checkPathMatches(path, searchTerm, field) {
|
||||
return path.some(node =>
|
||||
normalizeText(node[field]).includes(searchTerm)
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* 将路径数组转换为嵌套的层级结构
|
||||
* @param {Array} path - 节点路径数组
|
||||
* @returns {Object} 嵌套结构的节点
|
||||
*/
|
||||
function buildHierarchy(path, childField) {
|
||||
// 从最后一个节点开始向前构建
|
||||
let currentNode = { ...path[path.length - 1] };
|
||||
// 移除children属性(末级节点不应有children)
|
||||
if (currentNode[childField]) delete currentNode[childField];
|
||||
|
||||
// 从倒数第二个节点开始向前遍历
|
||||
for (let i = path.length - 2; i >= 0; i--) {
|
||||
let node = { ...path[i] };
|
||||
// 将当前节点作为子节点
|
||||
node[childField] = [currentNode];
|
||||
currentNode = node;
|
||||
}
|
||||
|
||||
return currentNode;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
function mergeHierarchies(hierarchies) {
|
||||
if (!hierarchies || hierarchies.length === 0) return [];
|
||||
|
||||
// 使用Map存储相同txt的节点,key为txt
|
||||
let nodeMap = new Map();
|
||||
|
||||
for (let node of hierarchies) {
|
||||
let key = node.txt;
|
||||
|
||||
if (nodeMap.has(key)) {
|
||||
// 如果已存在相同txt的节点,合并它们的子节点
|
||||
let existingNode = nodeMap.get(key);
|
||||
existingNode.child = mergeHierarchies([
|
||||
...(existingNode.child || []),
|
||||
...(node.child || [])
|
||||
]);
|
||||
} else {
|
||||
// 如果不存在,直接添加到Map
|
||||
nodeMap.set(key, { ...node });
|
||||
}
|
||||
}
|
||||
|
||||
// 将Map的值转换为数组并返回
|
||||
return Array.from(nodeMap.values());
|
||||
}
|
||||
|
||||
/**
|
||||
* 生成路径的唯一标识
|
||||
* @param {Object} node - 节点对象
|
||||
* @param {string} prefix - 前缀
|
||||
* @returns {string} 路径标识
|
||||
*/
|
||||
function getPathKey(node, prefix = '', field, childField) {
|
||||
let currentKey = prefix ? `${prefix}->${node[field]}` : node[field];
|
||||
if (node[childField] && node[childField].length) {
|
||||
return getPathKey(node[childField][0], currentKey, field, childField);
|
||||
}
|
||||
return currentKey;
|
||||
}
|
||||
|
||||
/**
|
||||
* 从末级元素开始向上搜索匹配的路径
|
||||
* @param {Array} data - 数据源数组
|
||||
* @param {string} keyword - 搜索关键词
|
||||
* @returns {Array} 匹配的层级结构数组,与原数据结构一致
|
||||
*/
|
||||
function searchLabels(data, keyword, field, childField) {
|
||||
if (!data || !Array.isArray(data)) {
|
||||
return [];
|
||||
|
||||
}
|
||||
|
||||
if (!keyword) {
|
||||
return data;
|
||||
}
|
||||
|
||||
// 标准化搜索关键词
|
||||
let searchTerm = normalizeText(keyword);
|
||||
|
||||
// 收集所有末级元素的完整路径
|
||||
let leafPaths = [];
|
||||
collectLeafPaths(data, [], leafPaths, childField);
|
||||
|
||||
// 筛选出符合条件的路径
|
||||
let matchedPaths = leafPaths.filter(path =>
|
||||
checkPathMatches(path, searchTerm, field, childField)
|
||||
);
|
||||
|
||||
// 将路径转换为嵌套结构
|
||||
let results = matchedPaths.map(path => buildHierarchy(path, childField));
|
||||
// 去重并返回结果
|
||||
return mergeHierarchies(results);
|
||||
}
|
||||
|
||||
let searchList = searchLabels(treeData, search, filed, childField);
|
||||
|
||||
return searchList;
|
||||
}
|
||||
|
||||
//更新节点名称
|
||||
function updateTreeName(nodes, targetValue, newTxt, filed = 'groupName', childField = "children", valueFiled = "id") {
|
||||
let updateTree = function () {
|
||||
for (let node of nodes) {
|
||||
// 检查当前节点是否匹配value
|
||||
if (node[valueFiled] === targetValue) {
|
||||
node[filed] = newTxt;
|
||||
return true; // 找到并更新,返回true
|
||||
}
|
||||
|
||||
// 如果有子节点,递归查找
|
||||
if (node[childField] && node[childField].length > 0) {
|
||||
let found = updateTreeName(node[childField], targetValue, newTxt);
|
||||
if (found) {
|
||||
return true; // 在子节点中找到,返回true
|
||||
}
|
||||
}
|
||||
}
|
||||
return false; // 未找到匹配的节点
|
||||
}
|
||||
|
||||
let requestUpdate = function () {
|
||||
let promise2 = new Promise((resolve, reject) => {
|
||||
request({
|
||||
url: '/api/device/group',
|
||||
method: 'put',
|
||||
data: targetValue
|
||||
}).then((res) => {
|
||||
resolve(res);
|
||||
}).catch((ex) => {
|
||||
reject(ex);
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
return promise2;
|
||||
}
|
||||
|
||||
return requestUpdate();
|
||||
}
|
||||
|
||||
//添加新节点
|
||||
function addTreeNode(nodes, newNode, targetValue, childField = "children", valueFiled = "id") {
|
||||
|
||||
let updateTree = function () {
|
||||
if (!targetValue) {
|
||||
nodes.push(newNode);
|
||||
return true;
|
||||
}
|
||||
for (let node of nodes) {
|
||||
// 检查当前节点是否匹配value
|
||||
if (node.value === targetValue) {
|
||||
if (!node[childField]) {
|
||||
node[childField] = [];
|
||||
}
|
||||
node[childField].push(newNode);
|
||||
return true; // 找到并更新,返回true
|
||||
}
|
||||
|
||||
// 如果有子节点,递归查找
|
||||
if (node[childField] && node[childField].length > 0) {
|
||||
let found = addTreeNode(node[childField], newNode, targetValue);
|
||||
if (found) {
|
||||
return true; // 在子节点中找到,返回true
|
||||
}
|
||||
}
|
||||
}
|
||||
return false; // 未找到匹配的节点
|
||||
}
|
||||
|
||||
|
||||
let requestAddnode = function () {
|
||||
let promise2 = new Promise((resolve, reject) => {
|
||||
request({
|
||||
url: '/api/device/group',
|
||||
method: 'post',
|
||||
data: newNode
|
||||
}).then((res) => {
|
||||
resolve(res);
|
||||
}).catch((ex) => {
|
||||
reject(ex);
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
return promise2;
|
||||
}
|
||||
return requestAddnode();
|
||||
|
||||
|
||||
}
|
||||
|
||||
//删除某个节点
|
||||
function delTreeNode(nodes, targetValue, childField = "children", valueFiled = "id") {
|
||||
let updateTree = function () {
|
||||
if (!targetValue) {
|
||||
|
||||
return false;
|
||||
}
|
||||
for (let node of nodes) {
|
||||
// 检查当前节点是否匹配value
|
||||
if (node[valueFiled] === targetValue) {
|
||||
let index = nodes.indexOf(node);
|
||||
if (index > -1) {
|
||||
nodes.splice(index, 1);
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
// 如果有子节点,递归查找
|
||||
if (node[childField] && node[childField].length > 0) {
|
||||
let found = delTreeNode(node[childField], targetValue);
|
||||
if (found) {
|
||||
return true; // 在子节点中找到,返回true
|
||||
}
|
||||
}
|
||||
}
|
||||
return false; // 未找到匹配的节点
|
||||
}
|
||||
|
||||
let requestDel = function () {
|
||||
let promise2 = new Promise((resolve, reject) => {
|
||||
request({
|
||||
url: '/api/device/group/' + targetValue,
|
||||
method: 'delete',
|
||||
|
||||
}).then((res) => {
|
||||
resolve(res);
|
||||
}).catch((ex) => {
|
||||
reject(ex);
|
||||
});
|
||||
|
||||
|
||||
});
|
||||
return promise2;
|
||||
}
|
||||
|
||||
return requestDel();
|
||||
}
|
||||
|
||||
//获取某个节点的设备数据
|
||||
function getNodeDevice(para) {
|
||||
let promise2 = new Promise((resolve, reject) => {
|
||||
request({
|
||||
url: '/api/device',
|
||||
method: 'get',
|
||||
params: {
|
||||
"deviceStatus": 1,
|
||||
"pageNum": para.pageIndex,
|
||||
"pageSize": para.pageSize,
|
||||
"groupId": para.nodeCode,
|
||||
"communicationMode": para.communicationMode,//通讯方式 0:4G;1:蓝牙
|
||||
"deviceType": para.deviceType,//设备类型
|
||||
"deviceName": para.deviceName
|
||||
|
||||
}
|
||||
}).then((res) => {
|
||||
resolve(res);
|
||||
}).catch((ex) => {
|
||||
reject(ex);
|
||||
});
|
||||
});
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
Promise.allSettled([promise2]).then(res => {
|
||||
|
||||
if (res[0].status == 'fulfilled') {
|
||||
|
||||
resolve(res[0].value);
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
//从分组中删除设备
|
||||
function groupDelDevice(groupid, deviceIds) {
|
||||
return new Promise((resolve, reject) => {
|
||||
request({
|
||||
url: '/api/device/group/groupUnbind/' + deviceIds,
|
||||
method: 'get',
|
||||
|
||||
}).then((res) => {
|
||||
resolve(res);
|
||||
}).catch((ex) => {
|
||||
reject(ex);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
//将设备移动至分组
|
||||
function deviceMoveGroup(groupid, deviceIds) {
|
||||
return new Promise((resolve, reject) => {
|
||||
request({
|
||||
url: '/api/device/group/groupId/' + groupid + '/' + deviceIds,
|
||||
method: 'get',
|
||||
|
||||
}).then((res) => {
|
||||
resolve(res);
|
||||
}).catch((ex) => {
|
||||
reject(ex);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
//获取设备类型
|
||||
function getDeviceTypeAll(){
|
||||
return new Promise((resolve, reject) => {
|
||||
request({
|
||||
url: '/api/deviceType/all' ,
|
||||
method: 'get',
|
||||
|
||||
}).then((res) => {
|
||||
resolve(res);
|
||||
}).catch((ex) => {
|
||||
reject(ex);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
//获取通讯方式
|
||||
function getNetMode () {
|
||||
return request({
|
||||
url: '/api/deviceType/communicationMode',
|
||||
method: 'get'
|
||||
});
|
||||
}
|
||||
|
||||
export default {
|
||||
getTreeData: getTreeData,
|
||||
treeNodeSearch: treeNodeSearch,
|
||||
updateTreeName: updateTreeName,
|
||||
addTreeNode: addTreeNode,
|
||||
delTreeNode: delTreeNode,
|
||||
getNodeDevice: getNodeDevice,
|
||||
groupDelDevice: groupDelDevice,
|
||||
deviceMoveGroup: deviceMoveGroup,
|
||||
getDeviceTypeAll:getDeviceTypeAll,
|
||||
getNetMode:getNetMode
|
||||
|
||||
}
|
||||
146
src/api/equipmentManagement/repairRecords/index.ts
Normal file
@ -0,0 +1,146 @@
|
||||
import request from '@/utils/request';
|
||||
|
||||
//修改设备维修记录
|
||||
function updateRepair(data) {
|
||||
return request({
|
||||
url: '/equipment/repairRecords',
|
||||
method: 'put',
|
||||
data:data
|
||||
// data: {
|
||||
// "recordId": data.recordId,
|
||||
// "deviceId": data.deviceId,
|
||||
// "createTime": data.createTime,
|
||||
// "updateTime": data.updateTime,
|
||||
// "repairTime": data.repairTime,
|
||||
// "repairPart": data.repairPart,
|
||||
// "repairReason": data.repairReason,
|
||||
// "repairPerson": data.repairPerson,
|
||||
// // "beforeFile": data.beforeFile,
|
||||
// // "afterFile": data.afterFile
|
||||
// }
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
//新增设备维修记录
|
||||
function addRepir(data) {
|
||||
return request({
|
||||
url: '/equipment/repairRecords',
|
||||
method: 'post',
|
||||
data:data
|
||||
// data: {
|
||||
// "recordId": data.recordId,
|
||||
// "deviceId": data.deviceId,
|
||||
// "createTime": data.createTime,
|
||||
// "updateTime": data.updateTime,
|
||||
// "repairTime": data.repairTime,
|
||||
// "repairPart": data.repairPart,
|
||||
// "repairReason": data.repairReason,
|
||||
// "repairPerson": data.repairPerson,
|
||||
// // "beforeFile": data.beforeFile,
|
||||
// // "afterFile": data.afterFile
|
||||
// }
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
//导出设备维修记录
|
||||
function exportRepir(data) {
|
||||
return request({
|
||||
url: '/equipment/repairRecords/export',
|
||||
method: 'post',
|
||||
data: {
|
||||
"recordId": data.recordId,
|
||||
"deviceId": data.deviceId,
|
||||
"createTime": data.createTime,
|
||||
"updateTime": data.updateTime,
|
||||
"repairTime": data.repairTime,
|
||||
"repairPart": data.repairPart,
|
||||
"repairReason": data.repairReason,
|
||||
"repairPerson": data.repairPerson
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
//获取明细设备维修记录
|
||||
function getRepirDetail(id) {
|
||||
return request({
|
||||
url: '/equipment/repairRecords/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
|
||||
//获取列表
|
||||
function getRepairList(data) {
|
||||
return request({
|
||||
url: '/equipment/repairRecords/list',
|
||||
method: 'get',
|
||||
params: {
|
||||
"recordId": data.recordId,
|
||||
"deviceId": data.deviceId,
|
||||
"repairPart": data.repairPart,
|
||||
"repairReason": data.repairReason,
|
||||
"repairPerson": data.repairPerson,
|
||||
"repairBeginTime":data.Date?data.Date[0]:'',
|
||||
"repairEndTime": data.Date?data.Date[1]:'',
|
||||
"searchValue":data.searchValue,
|
||||
"pageNum": data.pageNum,
|
||||
"pageSize": data.pageSize
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
//删除记录
|
||||
function dropRepir(id) {
|
||||
if (Array.isArray(id)) {
|
||||
id = id.join(",");
|
||||
}
|
||||
return request({
|
||||
url: '/equipment/repairRecords/' + id,
|
||||
method: 'delete'
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
|
||||
//获取设备类型
|
||||
function getDeviceTypeAll() {
|
||||
return new Promise((resolve, reject) => {
|
||||
request({
|
||||
url: '/api/deviceType/all',
|
||||
method: 'get',
|
||||
|
||||
}).then((res) => {
|
||||
resolve(res);
|
||||
}).catch((ex) => {
|
||||
reject(ex);
|
||||
});
|
||||
});
|
||||
}
|
||||
|
||||
function getDeviceAll(){
|
||||
return request({
|
||||
url:'api/device?pageNum=1&pageSize=99999',
|
||||
method:'get'}
|
||||
);
|
||||
}
|
||||
|
||||
export default {
|
||||
updateRepair: updateRepair,
|
||||
addRepir: addRepir,
|
||||
exportRepir: exportRepir,
|
||||
getRepirDetail: getRepirDetail,
|
||||
getRepairList: getRepairList,
|
||||
dropRepir: dropRepir,
|
||||
getDeviceTypeAll: getDeviceTypeAll,
|
||||
getDeviceAll:getDeviceAll
|
||||
}
|
||||
43
src/api/home/index.ts
Normal file
@ -0,0 +1,43 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
// 获取 数据总览 DataOverview
|
||||
export const getDataOverview = (params) => {
|
||||
return request({
|
||||
url: '/api/device/homepage/getDataOverview',
|
||||
method: 'get',
|
||||
params: params
|
||||
});
|
||||
};
|
||||
// 设备分类
|
||||
export const getEquipmentClassification = (params) => {
|
||||
return request({
|
||||
url: '/api/device/homepage/getEquipmentClassification',
|
||||
method: 'get',
|
||||
params: params
|
||||
});
|
||||
};
|
||||
// 获取设备使用情况
|
||||
export const getEquipmentUsageData = (range, params = {}) => {
|
||||
return request({
|
||||
url: `/api/device/homepage/getEquipmentUsageData/${range}`,
|
||||
method: 'get',
|
||||
params: params
|
||||
});
|
||||
};
|
||||
|
||||
// 获取报警信息
|
||||
export const getAlarmInformation = (params) => {
|
||||
return request({
|
||||
url: `/api/device/homepage/getAlarmInformation`,
|
||||
method: 'get',
|
||||
params: params
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
export default {
|
||||
getDataOverview,
|
||||
getEquipmentClassification,
|
||||
getEquipmentUsageData,
|
||||
getAlarmInformation
|
||||
}
|
||||
6
src/api/home/types.ts
Normal file
@ -0,0 +1,6 @@
|
||||
export interface DataOverviewType {
|
||||
devicesNumber: number | string;
|
||||
equipmentOnline: number | string;
|
||||
binding: number | string;
|
||||
equipmentAbnormal: number | string;
|
||||
}
|
||||
59
src/api/homeIndex/index.ts
Normal file
@ -0,0 +1,59 @@
|
||||
import request from '@/utils/request';
|
||||
// 获取设备总览 DataOverview
|
||||
export const getDeviceOverview = (params) => {
|
||||
return request({
|
||||
url: '/api/largeScreen/getDeviceOverview',
|
||||
method: 'get',
|
||||
params: params
|
||||
});
|
||||
};
|
||||
|
||||
|
||||
// 报警事件,报警总数统计
|
||||
export const getAlarmStatistics = (params) => {
|
||||
return request({
|
||||
url: '/api/largeScreen/getAlarmStatistics',
|
||||
method: 'get',
|
||||
params: params
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
// 报警次数
|
||||
export const getMonthlyAlarmStatistics = (params) => {
|
||||
return request({
|
||||
url: '/api/largeScreen/getMonthlyAlarmStatistics',
|
||||
method: 'get',
|
||||
params: params
|
||||
});
|
||||
}
|
||||
|
||||
// 设备类别
|
||||
export const getDeviceCommunicationModeStatistics = (params = {}) => {
|
||||
return request({
|
||||
url: '/api/largeScreen/getDeviceCommunicationModeStatistics',
|
||||
method: 'get',
|
||||
params: params
|
||||
});
|
||||
}
|
||||
|
||||
// 设备使用频次
|
||||
export const getDeviceUsageFrequency = (params = {}) => {
|
||||
return request({
|
||||
url: '/api/largeScreen/getDeviceUsageFrequency',
|
||||
method: 'get',
|
||||
params: params
|
||||
});
|
||||
}
|
||||
|
||||
// 实时报警
|
||||
export const getRealtimeAlarm = (params = {}) => {
|
||||
return request({
|
||||
url: '/api/largeScreen/getRealtimeAlarm',
|
||||
method: 'get',
|
||||
params: params
|
||||
});
|
||||
}
|
||||
|
||||
|
||||
|
||||
0
src/api/homeIndex/types.ts
Normal file
241
src/api/largeScreen/mapOpt.ts
Normal file
@ -0,0 +1,241 @@
|
||||
var map = null;
|
||||
var layPoints = [];
|
||||
|
||||
function initMap(click) {
|
||||
// let key = '90bc158992feb8ccd0145e168cab1307';
|
||||
let init = function () {
|
||||
map = new AMap.Map("map", {
|
||||
viewMode: '2D', //默认使用 2D 模式
|
||||
zoom: 11, //地图级别
|
||||
center: [116.396477, 39.909278], //地图中心点
|
||||
mapStyle: "amap://styles/darkblue"
|
||||
});
|
||||
|
||||
map.on('click', function (evt) {
|
||||
// alert('您点击的位置:'+evt.lnglat.lng+' , '+ evt.lnglat.lat);
|
||||
if (click) {
|
||||
click(evt.lnglat);
|
||||
}
|
||||
});
|
||||
}
|
||||
return new Promise((resolve, reject) => {
|
||||
if (map) {
|
||||
resolve(200);
|
||||
return;
|
||||
}
|
||||
if (window.AMap) {
|
||||
init();
|
||||
resolve(200);
|
||||
return;
|
||||
}
|
||||
reject({ code: 500, msg: '高德地图未能初始化成功' });
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
//添加一个点
|
||||
function AddPoint(point, index, dragEnd, click, iconImg) {
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
try {
|
||||
if (!point) {
|
||||
reject("point不可用")
|
||||
return;
|
||||
}
|
||||
if (!point.longitude || !point.latitude) {
|
||||
reject("point的经纬度不可用")
|
||||
return;
|
||||
}
|
||||
layPoints.push({ lng: point.longitude, lat: point.latitude });
|
||||
|
||||
let center = new AMap.LngLat(point.longitude, point.latitude);
|
||||
|
||||
let icon = new AMap.Icon({
|
||||
size: new AMap.Size(45, 45), //图标尺寸
|
||||
image: iconImg, //Icon 的图像
|
||||
|
||||
imageSize: new AMap.Size(45, 45), //根据所设置的大小拉伸或压缩图片
|
||||
});
|
||||
let marker = new AMap.Marker({
|
||||
icon: icon,
|
||||
position: center,
|
||||
offset: new AMap.Pixel(-15, -24),
|
||||
draggable: dragEnd ? true : false,
|
||||
cursor: 'point',
|
||||
title: point.isAlarming ? '正在报警:' + point.deviceName : point.deviceName,
|
||||
text: index,
|
||||
class: 'point',
|
||||
extData: point,
|
||||
anchor:'bottom-center'
|
||||
});
|
||||
marker.setMap(map);
|
||||
|
||||
let lays = map.getAllOverlays('text');
|
||||
for (let i = 0; i < lays.length; i++) {
|
||||
const element = lays[i];
|
||||
let cls = element.getOptions();
|
||||
if (cls.class) {
|
||||
element.dom.classList.add(cls.class);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
resolve(center);
|
||||
} catch (ex) {
|
||||
reject(ex)
|
||||
}
|
||||
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
|
||||
function getCenter() {
|
||||
var center = map.getCenter().toJSON();
|
||||
return center;
|
||||
}
|
||||
|
||||
function setCenter(lon, latitude) {
|
||||
var position = new AMap.LngLat(lon, latitude); //传入经纬度
|
||||
map.setCenter(position); //简写 设置地图中心点
|
||||
|
||||
}
|
||||
|
||||
function calcCenter() {
|
||||
|
||||
|
||||
}
|
||||
//画多边形
|
||||
function DrawPoy(points) {
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
if (!map) {
|
||||
reject("map未初始化");
|
||||
return;
|
||||
}
|
||||
if (!points) {
|
||||
reject("points未初始化");
|
||||
return;
|
||||
}
|
||||
if (!points.coordinates) {
|
||||
reject("coordinates未初始化");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!Array.isArray(points.coordinates)) {
|
||||
points.coordinates = JSON.parse(points.coordinates);
|
||||
}
|
||||
|
||||
let path = [];
|
||||
|
||||
|
||||
setTimeout(() => {
|
||||
points.coordinates.filter(v => {
|
||||
if (v.lng && v.lat) {
|
||||
path.push(new AMap.LngLat(v.lng, v.lat));
|
||||
layPoints.push({ lng: v.lng, lat: v.lat });
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
});
|
||||
if (!path.length) {
|
||||
reject("path为空");
|
||||
}
|
||||
let polygon = new AMap.Polygon({
|
||||
path: path,
|
||||
fillColor: '#F00C0C',
|
||||
fillOpacity: 0.03,
|
||||
strokeOpacity: 0.1,
|
||||
strokeColor: '#F00C0C',
|
||||
|
||||
strokeWeight: 3,
|
||||
strokeStyle: 'dashed',
|
||||
// strokeDasharray: [50,50,50],
|
||||
extData: points
|
||||
});
|
||||
map.add(polygon);
|
||||
resolve("添加多边形成功");
|
||||
}, 0);
|
||||
});
|
||||
|
||||
|
||||
}
|
||||
//画圆形
|
||||
function DrawCicle(points, raduis, dragEnd) {
|
||||
|
||||
return new Promise((resolve, reject) => {
|
||||
if (!map) {
|
||||
reject("map未初始化");
|
||||
return;
|
||||
}
|
||||
if (!points) {
|
||||
reject("points未初始化");
|
||||
return;
|
||||
}
|
||||
if (!points.coordinates) {
|
||||
reject("coordinates未初始化");
|
||||
return;
|
||||
}
|
||||
|
||||
if (!Array.isArray(points.coordinates)) {
|
||||
points.coordinates = JSON.parse(points.coordinates);
|
||||
}
|
||||
|
||||
if (!(points.coordinates[0].lng && points.coordinates[0].lat)) {
|
||||
reject("圆的中心点不正确")
|
||||
return;
|
||||
}
|
||||
|
||||
let circle = new AMap.Circle({
|
||||
center: [points.coordinates[0].lng, points.coordinates[0].lat],
|
||||
radius: raduis ? raduis : 1000, //半径
|
||||
borderWeight: 3,
|
||||
strokeColor: "#F00C0C",
|
||||
strokeWeight: 1,
|
||||
strokeOpacity: 0.2,
|
||||
fillOpacity: 0.4,
|
||||
strokeStyle: 'dashed',
|
||||
strokeDasharray: [10, 10],
|
||||
// 线样式还支持 'dashed'
|
||||
fillColor: '#1791fc',
|
||||
zIndex: 50,
|
||||
})
|
||||
map.add(circle);
|
||||
layPoints.push({ lng: points.coordinates[0].lng, lat: points.coordinates[0].lat });
|
||||
resolve("添加圆成功");
|
||||
});
|
||||
|
||||
|
||||
|
||||
}
|
||||
|
||||
//清除所有
|
||||
function clearOverLays() {
|
||||
map && map.clearMap();
|
||||
layPoints = [];
|
||||
}
|
||||
|
||||
|
||||
|
||||
function removeOverLay(lay) {
|
||||
map && map.remove(lay);
|
||||
}
|
||||
|
||||
|
||||
|
||||
function setFitView() {
|
||||
if (map) { map.setFitView(); }
|
||||
}
|
||||
export default {
|
||||
gdMap: map,
|
||||
initMap: initMap,
|
||||
AddPoint: AddPoint,
|
||||
getCenter: getCenter,
|
||||
DrawPoy: DrawPoy,
|
||||
DrawCicle: DrawCicle,
|
||||
clearOverLays: clearOverLays,
|
||||
removeOverLay: removeOverLay,
|
||||
setCenter: setCenter,
|
||||
calcCenter: calcCenter,
|
||||
setFitView: setFitView
|
||||
}
|
||||
118
src/api/system/service/api.ts
Normal file
@ -0,0 +1,118 @@
|
||||
import request from '@/utils/request';
|
||||
import { AxiosPromise } from 'axios';
|
||||
import { ServiceVO, ServiceForm, ServiceQuery } from '@/api/system/service/types';
|
||||
|
||||
/**
|
||||
* 查询轨迹服务列表
|
||||
* @param query
|
||||
* @returns {*}
|
||||
*/
|
||||
|
||||
export const listService = (query?: ServiceQuery): AxiosPromise<ServiceVO[]> => {
|
||||
return request({
|
||||
url: '/api/trackService/list',
|
||||
method: 'get',
|
||||
params: query
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 查询轨迹服务详细
|
||||
* @param id
|
||||
*/
|
||||
export const getService = (id: string | number): AxiosPromise<ServiceVO> => {
|
||||
return request({
|
||||
url: '/api/trackService/' + id,
|
||||
method: 'get'
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 新增轨迹服务
|
||||
* @param data
|
||||
*/
|
||||
export const addService = (data: ServiceForm) => {
|
||||
return request({
|
||||
url: '/api/trackService/add',
|
||||
method: 'post',
|
||||
data: data
|
||||
});
|
||||
};
|
||||
|
||||
/**
|
||||
* 修改轨迹服务
|
||||
* @param data
|
||||
*/
|
||||
export const updateService = (data: ServiceForm) => {
|
||||
return Promise.reject({code:500,msg:'不允许此操作'});
|
||||
// return request({
|
||||
// url: '/api/trackService/update',
|
||||
// method: 'put',
|
||||
// data: data
|
||||
// });
|
||||
};
|
||||
|
||||
/**
|
||||
* 删除轨迹服务
|
||||
* @param id
|
||||
*/
|
||||
export const delService = (id: string | number | Array<string | number>) => {
|
||||
// return request({
|
||||
// url: '/api/trackService/' + id,
|
||||
// method: 'delete'
|
||||
// });
|
||||
|
||||
return Promise.reject({code:500,msg:'不允许此操作'});
|
||||
};
|
||||
|
||||
|
||||
//获取设备
|
||||
export const getDevice = (data) => {
|
||||
return request({
|
||||
url: '/api/device',
|
||||
method: 'get',
|
||||
params:data
|
||||
});
|
||||
};
|
||||
|
||||
//获取设备
|
||||
export const getDeviceList = (data) => {
|
||||
return request({
|
||||
url: '/api/device/list',
|
||||
method: 'get',
|
||||
params:data
|
||||
});
|
||||
};
|
||||
//保存
|
||||
export const terminalDevice=(data)=>{
|
||||
return request({
|
||||
url: '/api/trackService/terminal',
|
||||
method: 'post',
|
||||
data:data
|
||||
});
|
||||
}
|
||||
//删除
|
||||
export const delTerminalDevice=(id)=>{
|
||||
return request({
|
||||
url: '/api/trackService/delTerminal/'+id,
|
||||
method: 'delete'
|
||||
});
|
||||
}
|
||||
|
||||
//获取地图的终端,列表查询
|
||||
export const getMapDevice = (data) => {
|
||||
return request({
|
||||
url: '/api/trackService/listTerminal',
|
||||
method: 'get',
|
||||
params:data
|
||||
});
|
||||
};
|
||||
|
||||
//获取地图的终端,模糊查询
|
||||
export const getMapDeviceByFilter = (data) => {
|
||||
return request({
|
||||
url: '/api/trackService/searchTerminal',
|
||||
method: 'get',
|
||||
params:data
|
||||
});
|
||||
};
|
||||
56
src/api/system/service/types.ts
Normal file
@ -0,0 +1,56 @@
|
||||
export interface ServiceVO {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
id: string | number;
|
||||
|
||||
/**
|
||||
* 猎鹰服务ID
|
||||
*/
|
||||
sid: string | number;
|
||||
|
||||
/**
|
||||
* 服务名称
|
||||
*/
|
||||
sname: string;
|
||||
|
||||
}
|
||||
|
||||
export interface ServiceForm extends BaseEntity {
|
||||
/**
|
||||
*
|
||||
*/
|
||||
id?: string | number;
|
||||
|
||||
/**
|
||||
* 猎鹰服务ID
|
||||
*/
|
||||
sid?: string | number;
|
||||
|
||||
/**
|
||||
* 服务名称
|
||||
*/
|
||||
sname?: string;
|
||||
|
||||
}
|
||||
|
||||
export interface ServiceQuery extends PageQuery {
|
||||
|
||||
/**
|
||||
* 猎鹰服务ID
|
||||
*/
|
||||
sid?: string | number;
|
||||
|
||||
/**
|
||||
* 服务名称
|
||||
*/
|
||||
sname?: string;
|
||||
|
||||
/**
|
||||
* 日期范围参数
|
||||
*/
|
||||
params?: any;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@ -16,6 +16,7 @@ export type RegisterForm = {
|
||||
*/
|
||||
export interface LoginData {
|
||||
tenantId?: string;
|
||||
tenantName?: string;
|
||||
username?: string;
|
||||
password?: string;
|
||||
rememberMe?: boolean;
|
||||
|
||||
@ -6,7 +6,7 @@ import { AxiosPromise } from 'axios';
|
||||
*/
|
||||
export const userList = (params: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/app/user/list',
|
||||
url: '/WebApp/user/list',
|
||||
method: 'get',
|
||||
params
|
||||
});
|
||||
@ -30,7 +30,7 @@ export const userStatus = (data: any): AxiosPromise => {
|
||||
// 解绑设备
|
||||
export const deviceUnBind = (data: any): AxiosPromise => {
|
||||
return request({
|
||||
url: '/api/app/device/unBind',
|
||||
url: '/api/device/unbind',
|
||||
method: 'delete',
|
||||
data,
|
||||
headers: {
|
||||
|
||||
BIN
src/assets/homeIndex/alarmIMG.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
src/assets/homeIndex/bottom.png
Normal file
|
After Width: | Height: | Size: 384 KiB |
BIN
src/assets/homeIndex/btn.png
Normal file
|
After Width: | Height: | Size: 5.1 KiB |
BIN
src/assets/homeIndex/btn_cur.png
Normal file
|
After Width: | Height: | Size: 6.7 KiB |
BIN
src/assets/homeIndex/card.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
src/assets/homeIndex/card1.png
Normal file
|
After Width: | Height: | Size: 29 KiB |
BIN
src/assets/homeIndex/card2.png
Normal file
|
After Width: | Height: | Size: 29 KiB |
BIN
src/assets/homeIndex/card3.png
Normal file
|
After Width: | Height: | Size: 33 KiB |
BIN
src/assets/homeIndex/card4.png
Normal file
|
After Width: | Height: | Size: 30 KiB |
BIN
src/assets/homeIndex/card5.png
Normal file
|
After Width: | Height: | Size: 30 KiB |
BIN
src/assets/homeIndex/card6.png
Normal file
|
After Width: | Height: | Size: 30 KiB |
BIN
src/assets/homeIndex/card7.png
Normal file
|
After Width: | Height: | Size: 36 KiB |
BIN
src/assets/homeIndex/deviceIMG.png
Normal file
|
After Width: | Height: | Size: 23 KiB |
BIN
src/assets/homeIndex/left.png
Normal file
|
After Width: | Height: | Size: 332 KiB |
BIN
src/assets/homeIndex/nav.png
Normal file
|
After Width: | Height: | Size: 129 KiB |
BIN
src/assets/homeIndex/right.png
Normal file
|
After Width: | Height: | Size: 333 KiB |
BIN
src/assets/homeIndex/select.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
src/assets/homeIndex/top.png
Normal file
|
After Width: | Height: | Size: 189 KiB |
4
src/assets/icons/svg/home.svg
Normal file
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg id="_图层_1" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 17.99 18">
|
||||
<path id="_矢量_42" d="M17.82,5.81L9.5.08c-.16-.11-.38-.11-.54,0L.2,5.81c-.13.08-.2.21-.2.35v11.41c0,.24.21.43.46.43h5.54c.25,0,.46-.19.46-.43v-2.48c0-1.42,1.17-2.65,2.68-2.69,1.57-.04,2.85,1.13,2.85,2.58v2.59c0,.24.21.43.46.43h5.08c.25,0,.46-.19.46-.43V6.15c0-.14-.06-.26-.18-.35h.01Z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 417 B |
6
src/assets/icons/svg/报警信息1.1.svg
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 16 18">
|
||||
|
||||
<path d="M8.1,3.9c.6,0,1-.5,1-1v-1.9C9.1.5,8.6,0,8.1,0s-1,.4-1,1v1.9c0,.6.4,1,1,1h0ZM3.3,5.7c-.4.4-1,.4-1.4,0l-1.6-1.5c-.4-.4-.4-.9,0-1.3.4-.4,1-.4,1.4,0l1.6,1.5c.4.4.4.9,0,1.3ZM12.6,5.7c.4.4,1,.4,1.4,0l1.6-1.5c.4-.4.4-.9,0-1.3-.4-.4-1-.4-1.4,0l-1.6,1.5c-.4.4-.4.9,0,1.3ZM3,15.4v-5.4c0-2.8,2.3-5.1,5-5.1s5.1,2.3,5.1,5.1v5.4h1.6c.7,0,1.3.6,1.3,1.3s-.6,1.3-1.3,1.3H1.5c-.7,0-1.3-.6-1.3-1.3s.6-1.3,1.3-1.3c0,0,1.6,0,1.6,0ZM10.1,11.3h-1.1c-.1,0-.2,0-.2-.2l.4-2.1c0-.1-.2-.2-.3-.1l-2.9,2.6c0,0,0,.2.1.2h1.2c0,0,.2,0,.2.2l-.4,2.1c0,.1.2.2.3.1l2.9-2.6c.1,0,0-.2-.1-.2Z"/>
|
||||
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 699 B |
4
src/assets/icons/svg/控制中心1.1.svg
Normal file
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 18 16">
|
||||
<path id="_矢量_54" class="cls-1" d="M13.5,12.6v-1.1h2.2v1.1h2.2v2.3h-2.2v1.1h-2.2v-1.1H0v-2.3h13.5ZM7.9,6.9v-1.1h2.2v1.1h7.9v2.3h-7.9v1.1h-2.2v-1.1H0v-2.3s7.9,0,7.9,0ZM2.2,1.1V0h2.2v1.1h13.5v2.3H4.5v1.1h-2.2v-1.1H0V1.1h2.2Z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 356 B |
6
src/assets/icons/svg/数据可视化1.1.svg
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 18 15">
|
||||
|
||||
<path d="M.8,0h16.4s.1,0,.2,0c0,0,.1,0,.1,0,0,0,.1,0,.1,0,0,0,0,0,.1,0,0,0,0,0,.1.1s0,0,0,.1c0,0,0,.1,0,.2,0,0,0,.1,0,.2v10.8c0,0,0,.1,0,.2,0,0,0,.1,0,.2,0,0,0,.1,0,.1,0,0,0,0-.1.1s0,0-.1.1c0,0,0,0-.1,0,0,0-.1,0-.1,0s-.1,0-.2,0H.8c0,0-.1,0-.2,0,0,0-.1,0-.1,0,0,0,0,0-.1,0s0,0-.1-.1c0,0,0,0,0-.1s0,0,0-.1c0,0,0-.1,0-.2C0,11.8,0,11.7,0,11.7V.8S0,.7,0,.7c0,0,0-.1,0-.2s0,0,0-.1c0,0,0,0,0-.1s0,0,.1,0c0,0,0,0,.1,0,0,0,.1,0,.1,0C.7,0,.8,0,.8,0h0ZM2.5,6.7h0s0,0,0,0c0,0,0,0,0,0s0,0,0,0,0,0,0,0,0,0,0,0c0,0,0,0,0,0v2.7s0,0,0,0,0,0,0,0c0,0,0,0,0,0s0,0,0,0c0,0,0,0,0,0s0,0,0,0h1s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0s0,0,0,0,0,0,0,0c0,0,0,0,0,0v-2.7s0,0,0,0,0,0,0,0c0,0,0,0,0,0s0,0,0,0c0,0,0,0,0,0s0,0,0,0h-.9ZM6.5,5h0s0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0c0,0,0,0,0,0v4.3s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0s0,0,0,0c0,0,0,0,0,0s0,0,0,0h1s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0s0,0,0,0,0,0,0,0c0,0,0,0,0,0v-4.3s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0s0,0,0,0c0,0,0,0,0,0s0,0,0,0c0,0-.9,0-.9,0ZM10.6,2.5h0s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0s0,0,0,0,0,0,0,0c0,0,0,0,0,0v6.8s0,0,0,0,0,0,0,0c0,0,0,0,0,0s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0h1s0,0,0,0c0,0,0,0,0,0s0,0,0,0,0,0,0,0,0,0,0,0c0,0,0,0,0,0V2.8s0,0,0,0,0,0,0,0c0,0,0,0,0,0s0,0,0,0c0,0,0,0,0,0s0,0,0,0h0s-.8,0-.8,0ZM14.7,5.8h0s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0v3.5s0,0,0,0,0,0,0,0c0,0,0,0,0,0s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0h1s0,0,0,0c0,0,0,0,0,0s0,0,0,0,0,0,0,0,0,0,0,0c0,0,0,0,0,0v-3.5s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0s0,0,0,0c0,0,0,0,0,0s0,0,0,0h0s-.8,0-.8,0ZM6.6,14.2v-.5s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0s0,0,0,0c0,0,0,0,0,0s0,0,0,0h4.3s0,0,0,0c0,0,0,0,0,0s0,0,0,0,0,0,0,0,0,0,0,0c0,0,0,0,0,0v.5h3.8s0,0,0,0c0,0,0,0,0,0s0,0,0,0,0,0,0,0,0,0,0,0c0,0,0,0,0,0v.2s0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0H2.8s0,0,0,0c0,0,0,0,0,0s0,0,0,0,0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0v-.2s0,0,0,0,0,0,0,0c0,0,0,0,0,0s0,0,0,0c0,0,0,0,0,0s0,0,0,0h3.8Z"/>
|
||||
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 2.0 KiB |
7
src/assets/icons/svg/日志报表1.1.svg
Normal file
@ -0,0 +1,7 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 16 18">
|
||||
|
||||
<path d="M5.8,2.4h4.4c.4,0,.7-.3.7-.7V.7c0-.4-.3-.7-.7-.7h-4.4c-.4,0-.7.3-.7.7v1.1c0,.4.3.7.7.7Z"/>
|
||||
<path d="M13.8,1.3h-2.3v.7c0,.5-.4.8-.9.8h-5.2c-.5,0-.9-.4-.9-.8v-.7h-2.3C1,1.3,0,2.2,0,3.4v12.5c0,1.1,1,2.1,2.2,2.1h11.5c1.2,0,2.2-.9,2.2-2.1V3.4c0-1.2-1-2.1-2.2-2.1ZM13.2,13.4H3.3c-.3,0-.6-.2-.6-.5s.2-.5.6-.5h9.9c.3,0,.6.2.6.5s-.3.5-.6.5h0ZM13.2,10H3.3c-.3,0-.6-.2-.6-.5s.2-.5.6-.5h9.9c.3,0,.6.2.6.5s-.3.5-.6.5h0ZM13.2,6.5H3.3c-.3,0-.6-.2-.6-.5s.2-.5.6-.5h9.9c.3,0,.6.2.6.5s-.3.5-.6.5h0Z"/>
|
||||
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 633 B |
6
src/assets/icons/svg/用户管理1.1.svg
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 18 18">
|
||||
|
||||
<path d="M16.9,12.8c-.1-.4-.3-.8-.5-1.2l.6-1-.5-.6-1,.6c-.3-.2-.7-.4-1.1-.4l-.3-1.2h-.8l-.3,1.2c-.4,0-.7.2-1.1.4l-1-.6-.5.6.6,1c-.2.4-.4.8-.5,1.2l-1.1.3v.8l1,.3c0,.5.2,1,.5,1.4l-.5.9.5.5.8-.5c.4.3.9.6,1.4.7l.2.9h.8l.2-.9c.3,0,.5-.1.8-.2s.5-.2.7-.4l.8.5.5-.5-.5-.9c.3-.4.4-.9.5-1.4l1-.3v-.8l-1.1-.3s0,0,0,0ZM13.7,15.6h-.2c0,0-.1,0-.2,0,0,0-.1,0-.2,0s-.1,0-.2,0c0,0-.1,0-.2,0,0,0-.1,0-.2-.1s-.1,0-.1-.1c0,0,0,0-.1-.1,0,0,0,0-.1-.1s0-.1-.1-.1c0,0,0-.1,0-.2,0,0,0-.1,0-.2s0-.1,0-.2,0-.1,0-.2c0,0,0-.1,0-.2v-.4c0,0,0-.1,0-.2,0,0,0-.1,0-.2,0,0,0-.1,0-.2s0-.1,0-.2c0,0,0-.1,0-.2s0-.1.1-.1c0,0,0-.1.1-.1,0,0,0,0,.1-.1s.1,0,.1-.1c0,0,.1,0,.2-.1s.1,0,.2,0c0,0,.1,0,.2,0,0,0,.1,0,.2,0,0,0,.1,0,.2,0h.4c0,0,.1,0,.2,0,0,0,.1,0,.2,0s.1,0,.2,0c0,0,.1,0,.2,0,0,0,.1,0,.2.1s.1,0,.1.1c0,0,0,0,.1.1,0,0,0,0,.1.1s0,.1.1.1c0,0,0,.1,0,.2,0,0,0,.1,0,.2s0,.1,0,.2,0,.1,0,.2c0,0,0,.1,0,.2v.4c0,0,0,.1,0,.2,0,0,0,.1,0,.2,0,0,0,.1,0,.2s0,.1,0,.2c0,0,0,.1,0,.2s0,.1-.1.1c0,0,0,.1-.1.1,0,0,0,0-.1.1s-.1,0-.1.1c0,0-.1,0-.2.1,0,0-.1,0-.2,0,0,0-.1,0-.2,0,0,0-.1,0-.2,0,0,0-.1,0-.2,0,0,0-.2,0-.2,0ZM10.4,9.6c-.6-.5-1.3-.8-2-1,1.4-.7,2.5-2.3,2.5-4S8.9,0,6.5,0,2.2,2,2.2,4.5s1,3.3,2.4,4C1.9,9.4,0,11.9,0,14.8,0,14.8,3.3,15.8,6.6,15.8s1.7,0,2.5-.2c-.1-.3-.2-.7-.3-1,0-.4-.1-.7-.1-1.1,0-1.6.7-3,1.7-3.9h0Z"/>
|
||||
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.4 KiB |
8
src/assets/icons/svg/租户管理1.1.svg
Normal file
@ -0,0 +1,8 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 18 18">
|
||||
|
||||
<path d="M7.4,12.7c.3-2,1.8-3.2,2.4-3.7h0c0,0,.2,0,.3-.2,1.9-.7,3.2-2.3,3.2-4.3,0-2.5-2.3-4.6-5.1-4.6S3.1,2.1,3.1,4.6s1.4,3.6,3.3,4.3c-.9.2-1.8.6-2.5,1C.6,11.7,0,14.2,0,17.7s.3.3.6.3h9.9l-.9-.4c-.9-.4-2.7-2.3-2.3-4.9h0Z"/>
|
||||
<path d="M13.2,11.6l-1.7,1.4v2.4h.7v-1.2h2v1.2h.7v-2.4l-1.7-1.4h0ZM14.9,11.9h-.3l.3.3v-.3Z"/>
|
||||
<path d="M13.2,9.1c-2.7,0-4.8,2-4.8,4.4s2.2,4.4,4.8,4.4,4.8-2,4.8-4.4-2.1-4.4-4.8-4.4ZM15.9,13.6c0,0-.1,0-.3,0s-.1,0-.2,0v2c0,.2-.2.4-.5.4h-1.6v-1.2h-.6v1.2h-1.6c-.3,0-.5-.2-.5-.4v-2s0,0-.2,0-.2,0-.3,0,0-.2,0-.2,0-.2,0-.2l2.4-2c.3-.2.6-.2.9,0l.4.4c0,0,.2-.2.3-.2h.9c.2,0,.3.2.3.3v.8c0,.1,0,.2-.1.2l.5.5c0,0,0,.1,0,.2,0,0,0,.1,0,.2h0Z"/>
|
||||
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 804 B |
6
src/assets/icons/svg/维修记录1.1.svg
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 18 18">
|
||||
|
||||
<path d="M17.2,2.8s0,0,0,0c-.1-.1-.3-.1-.4,0l-3.2,3.2c-.4.4-1,.4-1.4,0h-.1c-.4-.5-.4-1.1,0-1.5l3.2-3.2s0,0,0,0c0-.1,0-.3-.1-.4-2.2-1.3-5.1-1-7,.9-1.4,1.4-1.9,3.2-1.6,5,0,.3,0,.7-.3,1L0,13.9c0,0,0,.2,0,.2l3.8,3.8c0,0,.2,0,.2,0l6.2-6.2c.2-.2.6-.3,1-.3,1.8.3,3.7-.2,5-1.6,1.9-1.9,2.2-4.8.9-7h0Z"/>
|
||||
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 428 B |
4
src/assets/icons/svg/联调中心1.1.svg
Normal file
@ -0,0 +1,4 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 18 18">
|
||||
<path id="_联调中心图标" class="cls-1" d="M9.8,12.3c-1.1,0-2.1-.4-2.9-1.2-.2-.2-.3-.5-.3-.8s.1-.6.3-.8c.4-.4,1.2-.4,1.6,0,.8.8,2.1.7,3-.2l3.5-3.5c.5-.5.7-1.1.7-1.7s0-.9-.6-1.3c-.5-.5-1-.6-1.4-.5-.6,0-1.1.3-1.6.7l-2,2c-.5-.5-2.4-.8-2.9-.3l3.3-3.3c.9-.9,2-1.4,3.1-1.4,1.2,0,2.3.4,3.1,1.2.8.8,1.2,1.8,1.2,2.9s-.5,2.4-1.4,3.3l-3.5,3.5c-.9.9-2.1,1.4-3.3,1.4M4.9,7.1l-3.5,3.5C.5,11.5,0,12.7,0,13.9s.4,2.1,1.2,2.9c.8.8,1.9,1.3,3.1,1.2,1.1,0,2.2-.5,3.1-1.4l3.3-3.3c-.5.5-2.5.2-2.9-.3l-2,2c-.4.4-1,.7-1.6.7-.4,0-.9,0-1.4-.6-.5-.4-.5-1-.5-1.3,0-.6.3-1.2.7-1.7l3.5-3.5c.9-.9,2.2-1,3-.2s.5.3.8.3.6-.1.8-.3.3-.5.3-.8-.1-.6-.3-.8c-.8-.8-1.9-1.2-2.9-1.2s-2.4.5-3.3,1.4h0Z"/>
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 793 B |
6
src/assets/icons/svg/设备管理1.1.svg
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 18 18">
|
||||
|
||||
<path d="M17.6,14.4l-6.4,3.5s-.1,0-.1,0c0,0-.1,0-.2,0h-.2c0,0-.1,0-.2,0,0,0-.1,0-.2,0,0,0-.1,0-.1,0s0,0-.1-.1,0,0-.1-.1c0-.1-.1-.3-.1-.4v-5.9c0,0,0-.1,0-.2,0,0,0-.1,0-.2,0,0,0-.1.1-.2,0,0,.1,0,.2-.1l6.4-3.5s.1,0,.1,0,.1,0,.2,0h.2c0,0,.1,0,.2,0,0,0,.1,0,.2,0,0,0,.1,0,.1,0,0,0,0,0,.1.1s0,0,.1.1c0,.1.1.3.1.4v5.9c0,0,0,.1,0,.2,0,0,0,.1,0,.2,0,0,0,.1-.1.2,0,0-.1,0-.2.1h0ZM.4,14.4c0,0-.1,0-.2-.1,0,0,0-.1-.1-.2,0,0,0-.1,0-.2C0,13.8,0,13.7,0,13.6v-5.9C0,7.3.4,7,.9,7s.3,0,.4.1l6.4,3.5c0,0,.1,0,.2.1,0,0,0,.1.1.2s0,.1,0,.2,0,.1,0,.2v5.9c0,.5-.4.8-.9.8s-.3,0-.4-.1L.4,14.4H.4ZM8.6.1c.3-.1.6-.1.9,0l7.3,3.9s0,0,0,0,0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0v.2s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0l-7.3,3.9c0,0-.1,0-.2,0,0,0-.1,0-.2,0s-.1,0-.2,0-.1,0-.2,0L1.3,5.5s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0v-.2s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0s0,0,0,0c0,0,0,0,0,0,0,0,0,0,0,0L8.6.1h0Z"/>
|
||||
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 1.1 KiB |
6
src/assets/icons/svg/首页1.1.svg
Normal file
@ -0,0 +1,6 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 18 18">
|
||||
|
||||
<path d="M17.8,5.8L9.5,0c-.2-.1-.4-.1-.5,0L.2,5.8c-.1,0-.2.2-.2.3v11.4c0,.2.2.4.5.4h5.5c.2,0,.5-.2.5-.4v-2.5c0-1.4,1.2-2.6,2.7-2.7,1.6,0,2.8,1.1,2.8,2.6v2.6c0,.2.2.4.5.4h5.1c.2,0,.5-.2.5-.4V6.2c0-.1,0-.3-.2-.3h0Z"/>
|
||||
|
||||
</svg>
|
||||
|
After Width: | Height: | Size: 345 B |
BIN
src/assets/images/close.png
Normal file
|
After Width: | Height: | Size: 261 B |
BIN
src/assets/images/close_HL.png
Normal file
|
After Width: | Height: | Size: 261 B |
BIN
src/assets/images/di.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
src/assets/images/diAc.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
src/assets/images/flood-light.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
src/assets/images/flood-light_HL.png
Normal file
|
After Width: | Height: | Size: 304 B |
BIN
src/assets/images/high.png
Normal file
|
After Width: | Height: | Size: 2.4 KiB |
BIN
src/assets/images/highAc.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
src/assets/images/laser-light.png
Normal file
|
After Width: | Height: | Size: 1.6 KiB |
BIN
src/assets/images/laser-light_HL.png
Normal file
|
After Width: | Height: | Size: 289 B |
BIN
src/assets/images/mapLocation.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
src/assets/images/mapPoint.png
Normal file
|
After Width: | Height: | Size: 5.5 KiB |
BIN
src/assets/images/mapWarn.png
Normal file
|
After Width: | Height: | Size: 7.6 KiB |
BIN
src/assets/images/nodata.png
Normal file
|
After Width: | Height: | Size: 11 KiB |
BIN
src/assets/images/path.png
Normal file
|
After Width: | Height: | Size: 408 B |
BIN
src/assets/images/position_ico.png
Normal file
|
After Width: | Height: | Size: 2.7 KiB |
BIN
src/assets/images/rb.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
src/assets/images/rbAc.png
Normal file
|
After Width: | Height: | Size: 3.0 KiB |
BIN
src/assets/images/searchIcon.png
Normal file
|
After Width: | Height: | Size: 1.3 KiB |
BIN
src/assets/images/sg.png
Normal file
|
After Width: | Height: | Size: 3.2 KiB |
BIN
src/assets/images/sgAc.png
Normal file
|
After Width: | Height: | Size: 3.1 KiB |
BIN
src/assets/images/strobe-light.png
Normal file
|
After Width: | Height: | Size: 1.1 KiB |
BIN
src/assets/images/strobe-light_HL.png
Normal file
|
After Width: | Height: | Size: 239 B |
BIN
src/assets/images/strong-light.png
Normal file
|
After Width: | Height: | Size: 294 B |
BIN
src/assets/images/strong-light_HL.png
Normal file
|
After Width: | Height: | Size: 1.5 KiB |
BIN
src/assets/images/weak-light.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
src/assets/images/weak-light_HL.png
Normal file
|
After Width: | Height: | Size: 235 B |
BIN
src/assets/images/zhong.png
Normal file
|
After Width: | Height: | Size: 2.5 KiB |
BIN
src/assets/images/zhongAc.png
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
BIN
src/assets/index/IMG.png
Normal file
|
After Width: | Height: | Size: 1.2 KiB |
BIN
src/assets/index/add.png
Normal file
|
After Width: | Height: | Size: 35 KiB |
BIN
src/assets/index/conton.png
Normal file
|
After Width: | Height: | Size: 7.5 KiB |
BIN
src/assets/index/device_add.png
Normal file
|
After Width: | Height: | Size: 6.1 KiB |
BIN
src/assets/index/device_group.png
Normal file
|
After Width: | Height: | Size: 7.1 KiB |
BIN
src/assets/index/device_type.png
Normal file
|
After Width: | Height: | Size: 6.6 KiB |
BIN
src/assets/index/device_yc.png
Normal file
|
After Width: | Height: | Size: 36 KiB |