|
|
@ -18,6 +18,7 @@ import Action from '../Action.vue'
|
|
|
|
import { deleteCondition, getConditionList, sort } from '@/api/home/filter'
|
|
|
|
import { deleteCondition, getConditionList, sort } from '@/api/home/filter'
|
|
|
|
import type { FilterSearchParam } from '/#/api'
|
|
|
|
import type { FilterSearchParam } from '/#/api'
|
|
|
|
import SvgIcon from '@/components/Icon/SvgIcon.vue'
|
|
|
|
import SvgIcon from '@/components/Icon/SvgIcon.vue'
|
|
|
|
|
|
|
|
import { useKeydown } from '@/hooks/event/useKeydown'
|
|
|
|
|
|
|
|
|
|
|
|
defineOptions({ name: 'FilterModal' })
|
|
|
|
defineOptions({ name: 'FilterModal' })
|
|
|
|
const props = defineProps({
|
|
|
|
const props = defineProps({
|
|
|
@ -26,6 +27,7 @@ const props = defineProps({
|
|
|
|
default: () => 0,
|
|
|
|
default: () => 0,
|
|
|
|
},
|
|
|
|
},
|
|
|
|
})
|
|
|
|
})
|
|
|
|
|
|
|
|
|
|
|
|
const emit = defineEmits<{
|
|
|
|
const emit = defineEmits<{
|
|
|
|
(e: 'showNewFilter'): void
|
|
|
|
(e: 'showNewFilter'): void
|
|
|
|
(e: 'editFilter', filter: any): void
|
|
|
|
(e: 'editFilter', filter: any): void
|
|
|
@ -54,7 +56,7 @@ interface RowData {
|
|
|
|
updateby: string
|
|
|
|
updateby: string
|
|
|
|
updatetime: string
|
|
|
|
updatetime: string
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
useKeydown('n t', handleClick)
|
|
|
|
function sortData(row) {
|
|
|
|
function sortData(row) {
|
|
|
|
console.log('sortData', row)
|
|
|
|
console.log('sortData', row)
|
|
|
|
if (row.order == 'descend') {
|
|
|
|
if (row.order == 'descend') {
|
|
|
@ -438,7 +440,7 @@ function handleOk() {
|
|
|
|
|
|
|
|
|
|
|
|
<div v-else class="wrapper-form">
|
|
|
|
<div v-else class="wrapper-form">
|
|
|
|
<div class="del_btn">
|
|
|
|
<div class="del_btn">
|
|
|
|
<n-button icon-placement="left" size="medium" @click="deleteSelection">
|
|
|
|
<n-button icon-placement="left" size="medium" @click="deleteSelection()">
|
|
|
|
<template #icon>
|
|
|
|
<template #icon>
|
|
|
|
<SvgIcon name="delete-history" size="16" />
|
|
|
|
<SvgIcon name="delete-history" size="16" />
|
|
|
|
</template>
|
|
|
|
</template>
|
|
|
|