fix: 修改tree

This commit is contained in:
100011797 2023-01-13 14:24:52 +08:00
parent 6d18f10d2a
commit a44b57232f
2 changed files with 8 additions and 2 deletions

View File

@ -297,7 +297,7 @@ const JTable = defineComponent<JTableProps>({
</div>
{/* 分页 */}
{
(!!_dataSource.value.length) && !props.noPagination &&
(!!_dataSource.value.length) && !props.noPagination && props.type === 'PAGE' &&
<div class={styles['jtable-pagination']}>
<Pagination
size="small"

View File

@ -10,7 +10,7 @@
@cancelSelect="cancelSelect"
>
<template #headerTitle>
<a-button type="primary">新增</a-button>
<a-button type="primary" @click="add">新增</a-button>
</template>
<template #card="slotProps">
<CardBox
@ -83,8 +83,10 @@ import server from "@/utils/request";
import type { ActionsType } from '@/components/Table/index.vue'
import { getImage } from '@/utils/comm';
import { DeleteOutlined } from '@ant-design/icons-vue'
import { message } from "ant-design-vue";
const request = (data: any) => server.post(`/device-product/_query`, data)
// const request = (data: any) => server.post(`/device/category/_tree`, {paging: false})
const columns = [
{
@ -169,6 +171,10 @@ const getActions = (data: Partial<Record<string, any>>): ActionsType[] => {
]
}
const add = () => {
message.warn('123')
}
</script>