|
|
|
@ -69,14 +69,14 @@
@@ -69,14 +69,14 @@
|
|
|
|
|
:disabled="state.multiple" |
|
|
|
|
@click="handleDel()" |
|
|
|
|
>删除参数</a-button> |
|
|
|
|
<ADivider type="vertical"/> |
|
|
|
|
<ADivider type="vertical" /> |
|
|
|
|
<div class="table-settings"> |
|
|
|
|
<!--重做--> |
|
|
|
|
<ATooltip placement="top"> |
|
|
|
|
<template #title> |
|
|
|
|
<span>{{ t('common.redo') }}</span> |
|
|
|
|
</template> |
|
|
|
|
<RedoOutlined @click="handleQuery"/> |
|
|
|
|
<RedoOutlined @click="handleQuery" /> |
|
|
|
|
</ATooltip> |
|
|
|
|
<!--尺寸--> |
|
|
|
|
<ATooltip placement="top"> |
|
|
|
@ -87,7 +87,7 @@
@@ -87,7 +87,7 @@
|
|
|
|
|
:getPopupContainer="getPopupContainer" |
|
|
|
|
placement="bottomCenter" |
|
|
|
|
> |
|
|
|
|
<ColumnHeightOutlined/> |
|
|
|
|
<ColumnHeightOutlined /> |
|
|
|
|
<template #overlay> |
|
|
|
|
<AMenu v-model:selectedKeys="state.selectedKeys" selectable> |
|
|
|
|
<AMenuItem key="default"> |
|
|
|
@ -108,8 +108,8 @@
@@ -108,8 +108,8 @@
|
|
|
|
|
<template #title> |
|
|
|
|
<span>{{ t('component.table.settingFullScreen') }}</span> |
|
|
|
|
</template> |
|
|
|
|
<FullscreenOutlined v-if="!isFullscreen" @click="toggle"/> |
|
|
|
|
<FullscreenExitOutlined v-else @click="toggle"/> |
|
|
|
|
<FullscreenOutlined v-if="!isFullscreen" @click="toggle" /> |
|
|
|
|
<FullscreenExitOutlined v-else @click="toggle" /> |
|
|
|
|
</ATooltip> |
|
|
|
|
</div> |
|
|
|
|
</div> |
|
|
|
@ -120,7 +120,7 @@
@@ -120,7 +120,7 @@
|
|
|
|
|
<template #message> |
|
|
|
|
<template v-if="getSelectRowKeys().length > 0"> |
|
|
|
|
<span>已选中 {{ getSelectRowKeys().length }} 条记录(可跨页)</span> |
|
|
|
|
<ADivider type="vertical"/> |
|
|
|
|
<ADivider type="vertical" /> |
|
|
|
|
<a @click="setSelectedRowKeys([])">清空</a> |
|
|
|
|
</template> |
|
|
|
|
<template v-else> |
|
|
|
@ -138,21 +138,21 @@
@@ -138,21 +138,21 @@
|
|
|
|
|
type="link" |
|
|
|
|
size="small" |
|
|
|
|
@click="handleEdit(record)" |
|
|
|
|
><Icon icon="fa6-regular:pen-to-square" :size="14"/>修改 |
|
|
|
|
><Icon icon="fa6-regular:pen-to-square" :size="14" />修改 |
|
|
|
|
</a-button> |
|
|
|
|
<ADivider type="vertical" class="action-divider"/> |
|
|
|
|
<ADivider type="vertical" class="action-divider" /> |
|
|
|
|
<a-button v-auth="['config_del']" |
|
|
|
|
type="link" |
|
|
|
|
size="small" |
|
|
|
|
color="error" |
|
|
|
|
@click="handleDel(record)" |
|
|
|
|
><Icon icon="ant-design:delete-outlined" :size="15"/>删除 |
|
|
|
|
><Icon icon="ant-design:delete-outlined" :size="15" />删除 |
|
|
|
|
</a-button> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
</ATable> |
|
|
|
|
<!--弹出窗体区域--> |
|
|
|
|
<ConfigModal @register="registerModal" @success="handleRefreshTable"/> |
|
|
|
|
<ConfigModal @register="registerModal" @success="handleRefreshTable" /> |
|
|
|
|
</div> |
|
|
|
|
</template> |
|
|
|
|
<script lang="ts" setup> |
|
|
|
@ -175,19 +175,19 @@
@@ -175,19 +175,19 @@
|
|
|
|
|
import Icon from '/@/components/Icon/src/Icon.vue'; |
|
|
|
|
import ConfigModal from './ConfigModal.vue'; |
|
|
|
|
import { columns } from './config.data'; |
|
|
|
|
import { basicProps } from "/@/components/Table/src/props"; |
|
|
|
|
import { basicProps } from '/@/components/Table/src/props'; |
|
|
|
|
import { useMessage } from '/@/hooks/web/useMessage'; |
|
|
|
|
import { useModal } from "/@/components/Modal"; |
|
|
|
|
import { useDesign } from "/@/hooks/web/useDesign"; |
|
|
|
|
import { useModal } from '/@/components/Modal'; |
|
|
|
|
import { useDesign } from '/@/hooks/web/useDesign'; |
|
|
|
|
import { useI18n } from '/@/hooks/web/useI18n'; |
|
|
|
|
import { convertDateRange } from "/@/utils/dateUtil"; |
|
|
|
|
import { useFullscreen } from "@vueuse/core"; |
|
|
|
|
import { convertDateRange } from '/@/utils/dateUtil'; |
|
|
|
|
import { useFullscreen } from '@vueuse/core'; |
|
|
|
|
import { getPopupContainer, noop } from '/@/utils'; |
|
|
|
|
import { useTimeoutFn } from "/@/hooks/core/useTimeout"; |
|
|
|
|
import { useRowSelection } from "/@/components/Table/src/hooks/useRowSelection"; |
|
|
|
|
import { usePagination } from "/@/components/Table/src/hooks/usePagination"; |
|
|
|
|
import { useTableStyle } from "/@/components/Table/src/hooks/useTableStyle"; |
|
|
|
|
import { useTableScroll } from "/@/components/Table/src/hooks/useTableScroll"; |
|
|
|
|
import { useTimeoutFn } from '/@/hooks/core/useTimeout'; |
|
|
|
|
import { useRowSelection } from '/@/components/Table/src/hooks/useRowSelection'; |
|
|
|
|
import { usePagination } from '/@/components/Table/src/hooks/usePagination'; |
|
|
|
|
import { useTableStyle } from '/@/components/Table/src/hooks/useTableStyle'; |
|
|
|
|
import { useTableScroll } from '/@/components/Table/src/hooks/useTableScroll'; |
|
|
|
|
|
|
|
|
|
/** 类型规范统一声明定义区域 */ |
|
|
|
|
interface TableState { |
|
|
|
|