Skip to content

Commit

Permalink
feat: 调整表格列宽
Browse files Browse the repository at this point in the history
  • Loading branch information
cadecode committed May 12, 2023
1 parent 7dda697 commit 532c660
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
7 changes: 4 additions & 3 deletions src/view/System/Menu/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,18 @@
highlight-current-row
@current-change="menuListTableClick"
>
<el-table-column property="id" label="ID" width="180px" />
<el-table-column property="orderNum" label="NO." width="70px" />
<el-table-column property="id" label="ID" width="170px" />
<el-table-column property="routeName" label="路由名" />
<el-table-column property="menuName" label="菜单名" />
<el-table-column property="enableFlag" label="启用状态" width="100px">
<template slot-scope="scope">
<el-switch v-model="scope.row.enableFlag" @change="flag => updateEnable(flag, scope.$index, scope.row)" />
</template>
</el-table-column>
<el-table-column property="updateTime" label="更新时间" width="180px" />
<el-table-column property="updateTime" label="更新时间" width="150px" />
<el-table-column property="updateUser" label="更新人" />
<el-table-column property="createTime" label="创建时间" width="180px" />
<el-table-column property="createTime" label="创建时间" width="150px" />
<el-table-column label="操作">
<template slot-scope="scope">
<el-button size="mini" @click="updateMenu(scope.$index, scope.row)"><el-icon class="el-icon-edit" /></el-button>
Expand Down
6 changes: 3 additions & 3 deletions src/view/System/User/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,17 +40,17 @@
highlight-current-row
@current-change="userListTableClick"
>
<el-table-column property="id" label="ID" width="180px" />
<el-table-column property="id" label="ID" width="170px" />
<el-table-column property="username" label="用户名" />
<el-table-column property="nickName" label="昵称" />
<el-table-column property="enableFlag" label="启用状态" width="100px">
<template slot-scope="scope">
<el-switch v-model="scope.row.enableFlag" @change="flag => updateEnable(flag, scope.$index, scope.row)" />
</template>
</el-table-column>
<el-table-column property="updateTime" label="更新时间" width="180px" />
<el-table-column property="updateTime" label="更新时间" width="150px" />
<el-table-column property="updateUser" label="更新人" />
<el-table-column property="createTime" label="创建时间" width="180px" />
<el-table-column property="createTime" label="创建时间" width="150px" />
<el-table-column label="操作">
<template slot-scope="scope">
<el-button size="mini" @click="updateUser(scope.$index, scope.row)"><el-icon class="el-icon-edit" /></el-button>
Expand Down

0 comments on commit 532c660

Please sign in to comment.