Skip to content
项目
群组
代码片段
帮助
当前项目
正在载入...
登录 / 注册
切换导航面板
E
EMS
项目
项目
详情
活动
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
图表
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
日程
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
折叠边栏
关闭边栏
活动
图像
聊天
创建新问题
作业
提交
问题看板
Open sidebar
hejie
EMS
Commits
71febbec
提交
71febbec
authored
6月 03, 2025
作者:
hejie
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:
🚀
设备查询参数优化
上级
0ac15260
隐藏空白字符变更
内嵌
并排
正在显示
2 个修改的文件
包含
9 行增加
和
4 行删除
+9
-4
search.vue
src/views/device/search.vue
+1
-4
searchHook.tsx
src/views/device/utils/searchHook.tsx
+8
-0
没有找到文件。
src/views/device/search.vue
浏览文件 @
71febbec
...
...
@@ -221,10 +221,7 @@ const {
>
查询
</el-button>
<el-button
:icon=
"useRenderIcon(Refresh)"
@
click=
"resetForm(formRef)"
>
<el-button
:icon=
"useRenderIcon(Refresh)"
@
click=
"resetForm()"
>
重置
</el-button>
</el-form-item>
...
...
src/views/device/utils/searchHook.tsx
浏览文件 @
71febbec
...
...
@@ -17,6 +17,7 @@ export function useRole(tableRef: Ref) {
deviceCode
:
""
,
//设备编码
deviceModel
:
""
,
//设备型号
manufacturerId
:
[],
//设备厂商
manufacturerIds
:
[],
//设备厂商
deviceStatus
:
""
,
//设备状态
deviceAddress
:
""
,
//设备位置
deviceSide
:
""
,
//所属站点
...
...
@@ -226,10 +227,16 @@ export function useRole(tableRef: Ref) {
if
(
params
.
factoryTime
)
{
params
.
factoryStartTime
=
params
.
factoryTime
[
0
];
params
.
factoryEndTime
=
params
.
factoryTime
[
1
];
delete
params
[
"factoryTime"
];
}
if
(
params
.
inspectTime
)
{
params
.
inspectStartTime
=
params
.
inspectTime
[
0
];
params
.
inspectEndTime
=
params
.
inspectTime
[
1
];
delete
params
[
"inspectTime"
];
}
if
(
params
.
manufacturerId
)
{
params
.
manufacturerIds
=
params
.
manufacturerId
;
delete
params
[
"manufacturerId"
];
}
const
res
=
await
getDeviceList
({
...
params
,
...
...
@@ -278,6 +285,7 @@ export function useRole(tableRef: Ref) {
Object
.
keys
(
formObj
.
value
).
forEach
(
key
=>
{
formObj
.
value
[
key
]
=
""
;
// 清空所有搜索条件
});
formObj
.
value
.
manufacturerIds
=
[];
// 重新获取列表数据
pagination
.
currentPage
=
1
;
// 重置当前页为1
pagination
.
pageSize
=
10
;
// 重置每页条数为10
...
...
编写
预览
Markdown
格式
0%
重试
或
添加新文件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
请先完成此评论的编辑!
取消
请
注册
或者
登录
后发表评论