fix: bug#16325

This commit is contained in:
haodd 2023-07-13 18:43:23 +08:00
parent d9c6dc02a9
commit bf94914248
1 changed files with 16 additions and 5 deletions

View File

@ -153,7 +153,7 @@
/>
</page-container>
</template>
<script lang="ts" setup>
import { queryNoPagingPost } from '@/api/device/instance';
import { ActionsType } from '@/views/device/Instance/typings';
@ -210,7 +210,20 @@ const columns = [
key: 'category',
search: {
type: 'select',
options: options,
options: () =>
new Promise((resolve) => {
query({
paging: false,
sotrs: [{ name: 'createTime', order: 'desc' }],
}).then((resp: any) => {
resolve(
resp.result.data.map((item: any) => ({
label: item.category,
value: item.category
}))
)
});
}),
},
},
{
@ -396,6 +409,4 @@ const onRefresh = () => {
};
</script>
<style lang="less" scoped>
</style>
<style lang="less" scoped></style>