fix: 下拉展开取消悬浮,支持点击

This commit is contained in:
TsMask
2024-04-10 19:52:12 +08:00
parent 070f77d3b8
commit 6ba695ceaf
9 changed files with 26 additions and 26 deletions

View File

@@ -228,7 +228,11 @@ function fnGetList(pageNum?: number) {
}
tablePagination.total = res.total;
tableState.data = res.rows;
if (tablePagination.total <=(queryParams.pageNum - 1) * tablePagination.pageSize &&queryParams.pageNum !== 1) {
if (
tablePagination.total <=
(queryParams.pageNum - 1) * tablePagination.pageSize &&
queryParams.pageNum !== 1
) {
tableState.loading = false;
fnGetList(queryParams.pageNum - 1);
}
@@ -490,8 +494,8 @@ function fnModalVisibleByEdit(id?: string) {
}
modalState.neType = [res.data.neType, JSON.parse(res.data.neIds)[0]];
fnSelectPerformanceInit(res.data.neType) //初始性能测量数据
modalState.from.neId=JSON.parse(res.data.neIds)[0];
fnSelectPerformanceInit(res.data.neType); //初始性能测量数据
modalState.from.neId = JSON.parse(res.data.neIds)[0];
modalState.timeRangePicker = [res.data.startTime, res.data.endTime];
modalState.from = Object.assign(modalState.from, res.data);
@@ -849,10 +853,7 @@ onMounted(() => {
</a-tooltip>
<a-tooltip>
<template #title>{{ t('common.moreText') }}</template>
<a-dropdown
placement="bottomRight"
:trigger="['hover', 'click']"
>
<a-dropdown placement="bottomRight" trigger="click">
<a-button type="link">
<template #icon><EllipsisOutlined /> </template>
</a-button>