Compare commits

..

4 Commits

Author SHA1 Message Date
2c6bf02773 Merge remote-tracking branch 'origin/main' 2025-09-18 09:19:56 +08:00
a407fb7f7a bug修复和体验优化 2025-09-16 15:05:41 +08:00
1c61f32cc8 merge upstream 2025-09-16 08:21:54 +08:00
a14409cd7c 进出记录查询增加时间段查询 2025-09-15 16:50:59 +08:00
3 changed files with 45 additions and 20 deletions

View File

@ -1,4 +1,5 @@
import request from '@/utils/request';
import common from '@/utils/common';
//修改围栏进出记录
function updateRecord(data) {
@ -30,10 +31,16 @@ function getRecordById(id) {
//查询围栏进出记录列表
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: data
params: queryParams
})
}

View File

@ -108,6 +108,13 @@ function initData(item) {
return;
}
deviceid = item.data.deviceId;
detailData.value=[];
lastData.value.code="";
lastData.value.name="";
lastData.value.unitName="";
lastData.value.position="";
request({
url: '/api/device/getDeviceUser/' + item.data.deviceId,
method: 'get'
@ -163,12 +170,12 @@ watch(
color: rgba(56, 64, 79, 1);
font-family: Microsoft YaHei;
font-size: 14px;
font-weight: 400;
line-height: 18px;
letter-spacing: 0px;
text-align: left;
font-family: Microsoft YaHei;
font-size: 14px;
font-weight: 400;
line-height: 18px;
letter-spacing: 0px;
text-align: left;
}
.row .item .lable {
@ -211,19 +218,23 @@ text-align: left;
height: 21px;
letter-spacing: 0px;
text-align: left;
margin-left: -7px;
}
.list .itemRow{
.list .itemRow {
color: rgba(56, 64, 79, 1);
font-family: Microsoft YaHei;
font-size: 14px;
font-weight: 400;
line-height: 18px;
letter-spacing: 0px;
text-align: left;
margin-bottom: 13px;
font-family: Microsoft YaHei;
font-size: 14px;
font-weight: 400;
line-height: 18px;
letter-spacing: 0px;
text-align: left;
margin-bottom: 13px;
}
.list .itemRow:last-child {
margin-bottom: 0px;
}
.itemChild.marginBottom {
margin-bottom: 12px;
@ -231,7 +242,7 @@ margin-bottom: 13px;
.list .childContent {
width: 100%;
height: auto;
border-left: 1px solid rgba(0, 198, 250, 0.2);
border-left: 2px solid rgba(0, 198, 250, 0.2);
box-sizing: border-box;
padding: 6px 20px;
}
@ -241,6 +252,8 @@ margin-bottom: 13px;
background: rgba(247, 248, 252, 1);
width: 100%;
height: auto;
box-sizing: border-box;
padding: 10px;
}
.fleft {

View File

@ -11,10 +11,10 @@
</div>
<div class="treeContent">
<el-tree :data="treeData" :props="defaultProps" accordion @node-click="handleNodeClick">
<el-tree :data="treeData" :props="defaultProps" accordion @node-click="handleNodeClick" :highlight-current="true">
<template #default="{ node, data }">
<div class="custom-tree-node" :class="checkNode.val == data.id ? 'active' : ''">
<div class="custom-tree-node" >
<span :class="data.parentId != null ? '' : 'treeBold'">{{ node.label }}</span>
<div class="iconContent">
@ -613,6 +613,10 @@ var groupDelDevice = (row) => {
}
var showDevice = () => {
if(!checkNode.val){
alert("请先选择分组");
return;
}
Status.dialogDeviceVisible = true;
//获取所有
let promise1 = api.getNodeDevice({
@ -936,7 +940,8 @@ onMounted(() => {
}
.custom-tree-node.active {
background: rgba(228, 234, 240, 0.4) !important;
background: #80bcf966 !important;
color: #FFFFFF;
}