♻️ Refactoring code. 微调表格样式

This commit is contained in:
lbw 2023-04-02 11:35:40 +08:00
parent b94acfbb30
commit f15a04ea63
12 changed files with 16 additions and 15 deletions

View File

@ -27,7 +27,7 @@
var _hmt = _hmt || [];
(function () {
var hm = document.createElement('script');
hm.src = 'https://hm.baidu.com/hm.js?0625618efb027ed02e88da84c121652e';
hm.src = 'https://hm.baidu.com/hm.js?3d7dff1ddac6099565107b6d9e2cf516';
var s = document.getElementsByTagName('script')[0];
s.parentNode.insertBefore(hm, s);
})();

Binary file not shown.

Before

Width:  |  Height:  |  Size: 5.4 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

BIN
src/assets/pigx-app.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 74 KiB

View File

@ -1,5 +1,5 @@
<template>
<div class="layout-footer pb15">
<div class="layout-footer pb5">
<div class="layout-footer-warp">
<div class="mt5">{{ footerAuthor }}</div>
</div>

View File

@ -47,7 +47,7 @@ body,
width: 100%;
height: 100%;
.layout-pd {
padding: 15px !important;
padding: 15px 15px 5px 15px !important;
}
.layout-flex {
display: flex;

View File

@ -45,7 +45,7 @@
<el-table-column :label="$t('sysdept.name')" prop="name" width="400" show-overflow-tooltip> </el-table-column>
<el-table-column :label="$t('sysdept.weight')" prop="weight" show-overflow-tooltip width="80"></el-table-column>
<el-table-column prop="createTime" :label="$t('sysdept.createTime')" show-overflow-tooltip></el-table-column>
<el-table-column :label="$t('common.action')" show-overflow-tooltip width="300">
<el-table-column :label="$t('common.action')" show-overflow-tooltip width="250">
<template #default="scope">
<el-button text type="primary" icon="folder-add" @click="deptDialogRef.openDialog('add', scope.row?.id)" v-auth="'sys_dept_add'">
{{ $t('common.addBtn') }}</el-button

View File

@ -10,7 +10,7 @@
<el-button @click="dicDialogRef.openDialog()" class="ml10" icon="folder-add" type="primary">
{{ $t('common.addBtn') }}
</el-button>
<el-button @click="handleRefreshCache()" class="ml10" icon="refresh-left" type="primary">
<el-button plain @click="handleRefreshCache()" class="ml10" icon="refresh-left" type="primary">
{{ $t('common.refreshCacheBtn') }}
</el-button>
</div>

View File

@ -47,8 +47,10 @@
<el-table-column prop="createTime" :label="t('file.createTime')" show-overflow-tooltip />
<el-table-column :label="$t('common.action')" width="200">
<template #default="scope">
<el-button text type="primary" v-auth="'sys_file_del'" @click="handleDelete([scope.row.id])">{{ $t('common.delBtn') }}</el-button>
<el-button type="primary" text @click="download(scope.row, scope.index)">{{ $t('common.download') }}</el-button>
<el-button icon="delete" text type="primary" v-auth="'sys_file_del'" @click="handleDelete([scope.row.id])">{{
$t('common.delBtn')
}}</el-button>
<el-button icon="download" type="primary" text @click="download(scope.row, scope.index)">{{ $t('common.download') }}</el-button>
</template>
</el-table-column>
</el-table>

View File

@ -58,7 +58,7 @@
</template>
</el-table-column>
<el-table-column :label="$t('sysmenu.permission')" :show-overflow-tooltip="true" prop="permission"></el-table-column>
<el-table-column :label="$t('common.action')" show-overflow-tooltip width="200">
<el-table-column :label="$t('common.action')" show-overflow-tooltip width="250">
<template #default="scope">
<el-button icon="folder-add" @click="onOpenAddMenu('add', scope.row)" text type="primary" v-auth="'sys_menu_add'">
{{ $t('common.addBtn') }}

View File

@ -55,7 +55,7 @@
</template>
</el-table-column>
<el-table-column prop="createTime" :label="$t('sysrole.createTime')" show-overflow-tooltip></el-table-column>
<el-table-column :label="$t('common.action')" width="300">
<el-table-column :label="$t('common.action')" width="250">
<template #default="scope">
<el-button text type="primary" icon="edit-pen" v-auth="'sys_role_edit'" @click="roleDialogRef.openDialog(scope.row.roleId)">{{
$t('common.editBtn')

View File

@ -34,7 +34,7 @@
</el-row>
<el-row>
<div class="mb8" style="width: 100%">
<el-button v-auth="'sys_user_add'" class="ml10" icon="folder-add" type="primary" @click="userDialogRef.openDialog()">
<el-button v-auth="'sys_user_add'" icon="folder-add" type="primary" @click="userDialogRef.openDialog()">
{{ $t('common.addBtn') }}
</el-button>
<el-button plain v-auth="'sys_user_add'" class="ml10" icon="upload-filled" type="primary" @click="excelUploadRef.show()">
@ -55,7 +55,7 @@
<right-toolbar
v-model:showSearch="showSearch"
:export="true"
:export="'sys_user_export'"
@exportExcel="exportExcel"
@queryTable="getDataList"
class="ml10 mr20"
@ -71,7 +71,7 @@
:cell-style="tableStyle.cellStyle"
:header-cell-style="tableStyle.headerCellStyle"
>
<el-table-column :selectable="handleSelectable" type="selection" width="50" />
<el-table-column :selectable="handleSelectable" type="selection" width="60" />
<el-table-column :label="$t('sysuser.index')" type="index" width="60" fixed="left" />
<el-table-column :label="$t('sysuser.username')" prop="username" fixed="left" show-overflow-tooltip></el-table-column>
<el-table-column :label="$t('sysuser.name')" prop="name" show-overflow-tooltip></el-table-column>

View File

@ -22,10 +22,9 @@
</el-row>
<el-row>
<div class="mb8" style="width: 100%">
<el-button @click="exportExcel" class="ml10" icon="Download" type="primary">
{{ $t('common.exportBtn') }}
</el-button>
<right-toolbar
:export="true"
@exportExcel="exportExcel"
@queryTable="getDataList"
class="ml10"
style="float: right; margin-right: 20px"