fix: Document name sorting (#2448)
This commit is contained in:
parent
ed8f8f8a3e
commit
aa4a834c85
@ -64,12 +64,7 @@
|
|||||||
:storeKey="storeKey"
|
:storeKey="storeKey"
|
||||||
>
|
>
|
||||||
<el-table-column type="selection" width="55" :reserve-selection="true" />
|
<el-table-column type="selection" width="55" :reserve-selection="true" />
|
||||||
<el-table-column
|
<el-table-column prop="name" :label="$t('views.document.table.name')" min-width="280">
|
||||||
prop="name"
|
|
||||||
:label="$t('views.document.table.name')"
|
|
||||||
min-width="280"
|
|
||||||
sortable
|
|
||||||
>
|
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
<ReadWrite
|
<ReadWrite
|
||||||
@change="editName($event, row.id)"
|
@change="editName($event, row.id)"
|
||||||
@ -250,12 +245,7 @@
|
|||||||
{{ $t(hitHandlingMethod[row.hit_handling_method as keyof typeof hitHandlingMethod]) }}
|
{{ $t(hitHandlingMethod[row.hit_handling_method as keyof typeof hitHandlingMethod]) }}
|
||||||
</template>
|
</template>
|
||||||
</el-table-column>
|
</el-table-column>
|
||||||
<el-table-column
|
<el-table-column prop="create_time" :label="$t('common.createTime')" width="175" sortable>
|
||||||
prop="create_time"
|
|
||||||
:label="$t('common.createTime')"
|
|
||||||
width="175"
|
|
||||||
sortable
|
|
||||||
>
|
|
||||||
<template #default="{ row }">
|
<template #default="{ row }">
|
||||||
{{ datetimeFormat(row.create_time) }}
|
{{ datetimeFormat(row.create_time) }}
|
||||||
</template>
|
</template>
|
||||||
@ -829,7 +819,7 @@ function getList(bool?: boolean) {
|
|||||||
const param = {
|
const param = {
|
||||||
...(filterText.value && { name: filterText.value }),
|
...(filterText.value && { name: filterText.value }),
|
||||||
...filterMethod.value,
|
...filterMethod.value,
|
||||||
order_by: orderBy.value,
|
order_by: orderBy.value
|
||||||
}
|
}
|
||||||
documentApi
|
documentApi
|
||||||
.getDocument(id as string, paginationConfig.value, param, bool ? undefined : loading)
|
.getDocument(id as string, paginationConfig.value, param, bool ? undefined : loading)
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user