feat: 允许现有表格调整列宽,不允许现有新增/修改类表单对话框按 Esc 关闭
This commit is contained in:
parent
bb6f47cfd2
commit
1b06a96cfb
@ -37,6 +37,7 @@
|
||||
<a-table
|
||||
ref="tableRef"
|
||||
row-key="id"
|
||||
:data="loginLogList"
|
||||
:loading="loading"
|
||||
:pagination="{
|
||||
showTotal: true,
|
||||
@ -44,9 +45,9 @@
|
||||
total: total,
|
||||
current: queryParams.page,
|
||||
}"
|
||||
:data="loginLogList"
|
||||
:bordered="false"
|
||||
:stripe="true"
|
||||
column-resizable
|
||||
stripe
|
||||
size="large"
|
||||
@page-change="handlePageChange"
|
||||
@page-size-change="handlePageSizeChange"
|
||||
|
@ -46,6 +46,7 @@
|
||||
<a-table
|
||||
ref="tableRef"
|
||||
row-key="id"
|
||||
:data="operationLogList"
|
||||
:loading="loading"
|
||||
:pagination="{
|
||||
showTotal: true,
|
||||
@ -53,9 +54,9 @@
|
||||
total: total,
|
||||
current: queryParams.page,
|
||||
}"
|
||||
:data="operationLogList"
|
||||
:bordered="false"
|
||||
:stripe="true"
|
||||
column-resizable
|
||||
stripe
|
||||
size="large"
|
||||
@page-change="handlePageChange"
|
||||
@page-size-change="handlePageSizeChange"
|
||||
|
@ -28,6 +28,7 @@
|
||||
<a-table
|
||||
ref="tableRef"
|
||||
row-key="id"
|
||||
:data="systemLogList"
|
||||
:loading="loading"
|
||||
:pagination="{
|
||||
showTotal: true,
|
||||
@ -35,9 +36,9 @@
|
||||
total: total,
|
||||
current: queryParams.page,
|
||||
}"
|
||||
:data="systemLogList"
|
||||
:bordered="false"
|
||||
:stripe="true"
|
||||
column-resizable
|
||||
stripe
|
||||
size="large"
|
||||
@page-change="handlePageChange"
|
||||
@page-size-change="handlePageSizeChange"
|
||||
@ -262,7 +263,6 @@
|
||||
:visible="exceptionDetailVisible"
|
||||
width="83%"
|
||||
:footer="false"
|
||||
:mask-closable="false"
|
||||
top="30px"
|
||||
unmount-on-close
|
||||
render-to-body
|
||||
|
@ -37,6 +37,7 @@
|
||||
<a-table
|
||||
ref="tableRef"
|
||||
row-key="token"
|
||||
:data="onlineUserList"
|
||||
:loading="loading"
|
||||
:pagination="{
|
||||
showTotal: true,
|
||||
@ -44,9 +45,9 @@
|
||||
total: total,
|
||||
current: queryParams.page,
|
||||
}"
|
||||
:data="onlineUserList"
|
||||
:bordered="false"
|
||||
:stripe="true"
|
||||
column-resizable
|
||||
stripe
|
||||
size="large"
|
||||
@page-change="handlePageChange"
|
||||
@page-size-change="handlePageSizeChange"
|
||||
|
@ -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"
|
||||
@ -178,6 +179,7 @@
|
||||
:title="title"
|
||||
:visible="visible"
|
||||
:mask-closable="false"
|
||||
:esc-to-close="false"
|
||||
unmount-on-close
|
||||
render-to-body
|
||||
@ok="handleOk"
|
||||
|
@ -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"
|
||||
@ -193,6 +194,7 @@
|
||||
:visible="visible"
|
||||
:width="625"
|
||||
:mask-closable="false"
|
||||
:esc-to-close="false"
|
||||
unmount-on-close
|
||||
render-to-body
|
||||
@ok="handleOk"
|
||||
|
@ -93,7 +93,9 @@
|
||||
<!-- 列表区域 -->
|
||||
<a-table
|
||||
ref="tableRef"
|
||||
row-key="id"
|
||||
:data="roleList"
|
||||
:loading="loading"
|
||||
:row-selection="{
|
||||
type: 'checkbox',
|
||||
showCheckedAll: true,
|
||||
@ -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"
|
||||
@ -196,6 +197,7 @@
|
||||
:visible="visible"
|
||||
:width="580"
|
||||
:mask-closable="false"
|
||||
:esc-to-close="false"
|
||||
unmount-on-close
|
||||
render-to-body
|
||||
@ok="handleOk"
|
||||
|
@ -4,6 +4,7 @@
|
||||
<a-table
|
||||
ref="tableRef"
|
||||
row-key="id"
|
||||
:data="operationLogList"
|
||||
:loading="loading"
|
||||
:pagination="{
|
||||
showTotal: true,
|
||||
@ -11,9 +12,9 @@
|
||||
total: total,
|
||||
current: queryParams.page,
|
||||
}"
|
||||
:data="operationLogList"
|
||||
:bordered="false"
|
||||
:stripe="true"
|
||||
column-resizable
|
||||
stripe
|
||||
size="large"
|
||||
@page-change="handlePageChange"
|
||||
@page-size-change="handlePageSizeChange"
|
||||
|
@ -37,6 +37,7 @@
|
||||
:title="$t('userCenter.securitySettings.updateEmail.modal.title')"
|
||||
:visible="visible"
|
||||
:mask-closable="false"
|
||||
:esc-to-close="false"
|
||||
@ok="handleUpdate"
|
||||
@cancel="handleCancel"
|
||||
>
|
||||
|
@ -37,6 +37,7 @@
|
||||
:title="$t('userCenter.securitySettings.updatePwd.modal.title')"
|
||||
:visible="visible"
|
||||
:mask-closable="false"
|
||||
:esc-to-close="false"
|
||||
@ok="handleUpdate"
|
||||
@cancel="handleCancel"
|
||||
>
|
||||
|
@ -120,7 +120,9 @@
|
||||
<!-- 列表区域 -->
|
||||
<a-table
|
||||
ref="tableRef"
|
||||
row-key="id"
|
||||
:data="userList"
|
||||
:loading="loading"
|
||||
:row-selection="{
|
||||
type: 'checkbox',
|
||||
showCheckedAll: true,
|
||||
@ -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%',
|
||||
@ -283,6 +284,7 @@
|
||||
:visible="visible"
|
||||
:width="580"
|
||||
:mask-closable="false"
|
||||
:esc-to-close="false"
|
||||
unmount-on-close
|
||||
render-to-body
|
||||
@ok="handleOk"
|
||||
@ -378,6 +380,7 @@
|
||||
title="分配角色"
|
||||
:visible="userRoleVisible"
|
||||
:mask-closable="false"
|
||||
:esc-to-close="false"
|
||||
unmount-on-close
|
||||
render-to-body
|
||||
@ok="handleUpdateRole"
|
||||
|
Loading…
Reference in New Issue
Block a user