Skip to content

Commit

Permalink
feat: 允许现有表格调整列宽,不允许现有新增/修改类表单对话框按 Esc 关闭
Browse files Browse the repository at this point in the history
  • Loading branch information
Charles7c committed Aug 6, 2023
1 parent bb6f47c commit 1b06a96
Show file tree
Hide file tree
Showing 11 changed files with 40 additions and 25 deletions.
5 changes: 3 additions & 2 deletions continew-admin-ui/src/views/monitor/log/login/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,17 @@
<a-table
ref="tableRef"
row-key="id"
:data="loginLogList"
:loading="loading"
:pagination="{
showTotal: true,
showPageSize: true,
total: total,
current: queryParams.page,
}"
:data="loginLogList"
:bordered="false"
:stripe="true"
column-resizable
stripe
size="large"
@page-change="handlePageChange"
@page-size-change="handlePageSizeChange"
Expand Down
5 changes: 3 additions & 2 deletions continew-admin-ui/src/views/monitor/log/operation/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,17 @@
<a-table
ref="tableRef"
row-key="id"
:data="operationLogList"
:loading="loading"
:pagination="{
showTotal: true,
showPageSize: true,
total: total,
current: queryParams.page,
}"
:data="operationLogList"
:bordered="false"
:stripe="true"
column-resizable
stripe
size="large"
@page-change="handlePageChange"
@page-size-change="handlePageSizeChange"
Expand Down
6 changes: 3 additions & 3 deletions continew-admin-ui/src/views/monitor/log/system/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,17 @@
<a-table
ref="tableRef"
row-key="id"
:data="systemLogList"
:loading="loading"
:pagination="{
showTotal: true,
showPageSize: true,
total: total,
current: queryParams.page,
}"
:data="systemLogList"
:bordered="false"
:stripe="true"
column-resizable
stripe
size="large"
@page-change="handlePageChange"
@page-size-change="handlePageSizeChange"
Expand Down Expand Up @@ -262,7 +263,6 @@
:visible="exceptionDetailVisible"
width="83%"
:footer="false"
:mask-closable="false"
top="30px"
unmount-on-close
render-to-body
Expand Down
5 changes: 3 additions & 2 deletions continew-admin-ui/src/views/monitor/online/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,16 +37,17 @@
<a-table
ref="tableRef"
row-key="token"
:data="onlineUserList"
:loading="loading"
:pagination="{
showTotal: true,
showPageSize: true,
total: total,
current: queryParams.page,
}"
:data="onlineUserList"
:bordered="false"
:stripe="true"
column-resizable
stripe
size="large"
@page-change="handlePageChange"
@page-size-change="handlePageSizeChange"
Expand Down
10 changes: 6 additions & 4 deletions continew-admin-ui/src/views/system/dept/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,19 +93,20 @@
<!-- 列表区域 -->
<a-table
ref="tableRef"
row-key="id"
:data="deptList"
:loading="loading"
:row-selection="{
type: 'checkbox',
showCheckedAll: true,
onlyCurrent: false,
}"
:pagination="false"
:bordered="false"
:default-expand-all-rows="true"
:hide-expand-button-on-empty="true"
row-key="id"
:bordered="false"
:stripe="true"
:loading="loading"
column-resizable
stripe
size="large"
@select="handleSelect"
@selection-change="handleSelectionChange"
Expand Down Expand Up @@ -178,6 +179,7 @@
:title="title"
:visible="visible"
:mask-closable="false"
:esc-to-close="false"
unmount-on-close
render-to-body
@ok="handleOk"
Expand Down
10 changes: 6 additions & 4 deletions continew-admin-ui/src/views/system/menu/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -96,19 +96,20 @@
<!-- 列表区域 -->
<a-table
ref="tableRef"
row-key="id"
:data="menuList"
:loading="loading"
:row-selection="{
type: 'checkbox',
showCheckedAll: true,
onlyCurrent: false,
}"
:pagination="false"
:bordered="false"
:default-expand-all-rows="true"
:hide-expand-button-on-empty="true"
row-key="id"
:bordered="false"
:stripe="true"
:loading="loading"
column-resizable
stripe
size="large"
@select="handleSelect"
@selection-change="handleSelectionChange"
Expand Down Expand Up @@ -193,6 +194,7 @@
:visible="visible"
:width="625"
:mask-closable="false"
:esc-to-close="false"
unmount-on-close
render-to-body
@ok="handleOk"
Expand Down
8 changes: 5 additions & 3 deletions continew-admin-ui/src/views/system/role/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,9 @@
<!-- 列表区域 -->
<a-table
ref="tableRef"
row-key="id"
:data="roleList"
:loading="loading"
:row-selection="{
type: 'checkbox',
showCheckedAll: true,
Expand All @@ -105,10 +107,9 @@
total: total,
current: queryParams.page,
}"
row-key="id"
:bordered="false"
:stripe="true"
:loading="loading"
column-resizable
stripe
size="large"
@page-change="handlePageChange"
@page-size-change="handlePageSizeChange"
Expand Down Expand Up @@ -196,6 +197,7 @@
:visible="visible"
:width="580"
:mask-closable="false"
:esc-to-close="false"
unmount-on-close
render-to-body
@ok="handleOk"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,17 @@
<a-table
ref="tableRef"
row-key="id"
:data="operationLogList"
:loading="loading"
:pagination="{
showTotal: true,
showPageSize: true,
total: total,
current: queryParams.page,
}"
:data="operationLogList"
:bordered="false"
:stripe="true"
column-resizable
stripe
size="large"
@page-change="handlePageChange"
@page-size-change="handlePageSizeChange"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
:title="$t('userCenter.securitySettings.updateEmail.modal.title')"
:visible="visible"
:mask-closable="false"
:esc-to-close="false"
@ok="handleUpdate"
@cancel="handleCancel"
>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@
:title="$t('userCenter.securitySettings.updatePwd.modal.title')"
:visible="visible"
:mask-closable="false"
:esc-to-close="false"
@ok="handleUpdate"
@cancel="handleCancel"
>
Expand Down
9 changes: 6 additions & 3 deletions continew-admin-ui/src/views/system/user/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -120,7 +120,9 @@
<!-- 列表区域 -->
<a-table
ref="tableRef"
row-key="id"
:data="userList"
:loading="loading"
:row-selection="{
type: 'checkbox',
showCheckedAll: true,
Expand All @@ -132,10 +134,9 @@
total: total,
current: queryParams.page,
}"
row-key="id"
:bordered="false"
:stripe="true"
:loading="loading"
column-resizable
stripe
size="large"
:scroll="{
x: '120%',
Expand Down Expand Up @@ -283,6 +284,7 @@
:visible="visible"
:width="580"
:mask-closable="false"
:esc-to-close="false"
unmount-on-close
render-to-body
@ok="handleOk"
Expand Down Expand Up @@ -378,6 +380,7 @@
title="分配角色"
:visible="userRoleVisible"
:mask-closable="false"
:esc-to-close="false"
unmount-on-close
render-to-body
@ok="handleUpdateRole"
Expand Down

0 comments on commit 1b06a96

Please sign in to comment.