修复一些体验性问题。

This commit is contained in:
liub
2025-09-22 17:34:06 +08:00
parent 2d005a5456
commit c7cfa4c1de
6 changed files with 834 additions and 778 deletions

View File

@ -3,8 +3,8 @@
<div class="percent100">
<div class="topTool">
<div class="button-row">
<el-button type="primary" @click.stop="ShowEdit(null)"
><el-icon><Plus /></el-icon>新增</el-button
<!-- <el-button type="primary" @click.stop="ShowEdit(null)"
><el-icon><Plus /></el-icon>新增</el-button -->
>
<el-button type="primary" @click.stop="Export()" plain
><el-icon><Download /></el-icon>导出</el-button
@ -16,7 +16,7 @@
<div>
<el-form :inline="true" :model="queryParams" class="demo-form-inline" @submit.native.prevent>
<el-form-item label="" style="margin-right: 15px">
<el-input :suffix-icon="'Search'" v-model="queryParams.fenceName" placeholder="名称" clearable @keyup.enter.stop="handleQuery" />
<el-input :suffix-icon="'Search'" v-model="queryParams.fenceName" placeholder="名称" clearable @input="handleQuery" />
</el-form-item>
<el-form-item style="margin-right: 0px">
@ -76,7 +76,7 @@
<el-table-column label="围栏名称" align="center" prop="fenceName"> </el-table-column>
<el-table-column label="设备名称" align="center" prop="deviceName"> </el-table-column>
<!-- <el-table-column label="人员名称" align="center" prop="userName"> </el-table-column> -->
<el-table-column label="事件时间" align="center" prop="eventTime"> </el-table-column>
<el-table-column label="事件类型" align="center" prop="eventType">
<template #default="scope">
<div>{{ scope.row.eventType == '1' ? '闯入' : '离开' }}</div>
@ -93,7 +93,7 @@
<el-table-column label="操作" fixed="right" width="180" class-name="small-padding fixed-width">
<template #default="scope">
<el-button link type="primary" @click="ShowEdit(scope.row)">编辑</el-button>
<!-- <el-button link type="primary" @click="ShowEdit(scope.row)">编辑</el-button> -->
<el-button link type="danger" @click="DropFence(scope.row)">删除</el-button>
</template>
</el-table-column>
@ -280,8 +280,9 @@ function CloseEdit() {
//响应查询
var queryTime = null;
function handleQuery() {
debugger;
clearTimeout(queryTime);
queryTime = setTimeout(getList, 500);
queryTime = setTimeout(getList, 200);
}
//重置查询条件
@ -302,6 +303,7 @@ function resetQuery() {
keys.forEach((k) => {
queryParams[k] = cfg[k];
});
handleQuery();
}
//--------------------------------------