fix: bug#10741

This commit is contained in:
xieyonghong 2023-03-28 14:14:24 +08:00
parent f11f5e1729
commit 80a362e815
1 changed files with 14 additions and 1 deletions

View File

@ -166,6 +166,7 @@ const columns = [
dataIndex: 'registerTime', dataIndex: 'registerTime',
search: { search: {
type: 'date', type: 'date',
rename: 'registryTime'
}, },
width: 200, width: 200,
scopedSlots: true, scopedSlots: true,
@ -290,7 +291,19 @@ watch(
* @param params * @param params
*/ */
const handleSearch = (e: any) => { const handleSearch = (e: any) => {
params.value = e; const newParams = (e?.terms as any[])?.map(item1 => {
item1.terms = item1.terms.map((item2: any) => {
if (item2.column === 'version') {
return {
column: 'id$dev-firmware',
value: [item2]
}
}
return item2
})
return item1
})
params.value = { terms: newParams || []}
}; };
</script> </script>