Commit f16869982125100a07be19a69ac29c6b78ee3154
1 parent
ae8795df
vue3:review 部门管理、岗位管理、字典管理
Showing
6 changed files
with
20 additions
and
2 deletions
yudao-ui-admin-vue3/src/views/system/dict/dict.data.ts
yudao-ui-admin-vue3/src/views/system/dict/dict.type.ts
yudao-ui-admin-vue3/src/views/system/dict/index.vue
| 1 | 1 | <template> |
| 2 | 2 | <div class="flex"> |
| 3 | + <!-- ====== 字典分类 ====== --> | |
| 4 | + <!-- TODO 星语:筛选框很小 --> | |
| 3 | 5 | <el-card class="w-1/2 dict" :gutter="12" shadow="always"> |
| 4 | 6 | <template #header> |
| 5 | 7 | <div class="card-header"> |
| ... | ... | @@ -12,6 +14,7 @@ |
| 12 | 14 | @cell-click="cellClickEvent" |
| 13 | 15 | class="xtable-scrollbar" |
| 14 | 16 | > |
| 17 | + <!-- 操作:新增类型 --> | |
| 15 | 18 | <template #toolbar_buttons> |
| 16 | 19 | <XButton |
| 17 | 20 | type="primary" |
| ... | ... | @@ -22,12 +25,14 @@ |
| 22 | 25 | /> |
| 23 | 26 | </template> |
| 24 | 27 | <template #actionbtns_default="{ row }"> |
| 28 | + <!-- 操作:编辑类型 --> | |
| 25 | 29 | <XTextButton |
| 26 | 30 | preIcon="ep:edit" |
| 27 | 31 | :title="t('action.edit')" |
| 28 | 32 | v-hasPermi="['system:dict:update']" |
| 29 | 33 | @click="handleTypeUpdate(row.id)" |
| 30 | 34 | /> |
| 35 | + <!-- 操作:删除类型 --> | |
| 31 | 36 | <XTextButton |
| 32 | 37 | preIcon="ep:delete" |
| 33 | 38 | :title="t('action.del')" |
| ... | ... | @@ -36,7 +41,9 @@ |
| 36 | 41 | /> |
| 37 | 42 | </template> |
| 38 | 43 | </vxe-grid> |
| 44 | + <!-- @星语:分页和列表重叠在一起了 --> | |
| 39 | 45 | </el-card> |
| 46 | + <!-- ====== 字典数据 ====== --> | |
| 40 | 47 | <el-card class="w-1/2 dict" style="margin-left: 10px" :gutter="12" shadow="hover"> |
| 41 | 48 | <template #header> |
| 42 | 49 | <div class="card-header"> |
| ... | ... | @@ -50,6 +57,7 @@ |
| 50 | 57 | <div v-if="tableTypeSelect"> |
| 51 | 58 | <!-- 列表 --> |
| 52 | 59 | <vxe-grid ref="xDataGrid" v-bind="dataGridOptions" class="xtable-scrollbar"> |
| 60 | + <!-- 操作:新增数据 --> | |
| 53 | 61 | <template #toolbar_buttons> |
| 54 | 62 | <XButton |
| 55 | 63 | type="primary" |
| ... | ... | @@ -60,12 +68,14 @@ |
| 60 | 68 | /> |
| 61 | 69 | </template> |
| 62 | 70 | <template #actionbtns_default="{ row }"> |
| 71 | + <!-- 操作:修改数据 --> | |
| 63 | 72 | <XTextButton |
| 64 | 73 | v-hasPermi="['system:dict:update']" |
| 65 | 74 | preIcon="ep:edit" |
| 66 | 75 | :title="t('action.edit')" |
| 67 | 76 | @click="handleDataUpdate(row.id)" |
| 68 | 77 | /> |
| 78 | + <!-- 操作:删除数据 --> | |
| 69 | 79 | <XTextButton |
| 70 | 80 | v-hasPermi="['system:dict:delete']" |
| 71 | 81 | preIcon="ep:delete" | ... | ... |
yudao-ui-admin-vue3/src/views/system/post/post.data.ts
yudao-ui-admin-vue3/src/views/system/role/index.vue
| ... | ... | @@ -13,30 +13,35 @@ |
| 13 | 13 | /> |
| 14 | 14 | </template> |
| 15 | 15 | <template #actionbtns_default="{ row }"> |
| 16 | + <!-- 操作:编辑 --> | |
| 16 | 17 | <XTextButton |
| 17 | 18 | preIcon="ep:edit" |
| 18 | 19 | :title="t('action.edit')" |
| 19 | 20 | v-hasPermi="['system:role:update']" |
| 20 | 21 | @click="handleUpdate(row.id)" |
| 21 | 22 | /> |
| 23 | + <!-- 操作:详情 --> | |
| 22 | 24 | <XTextButton |
| 23 | 25 | preIcon="ep:view" |
| 24 | 26 | :title="t('action.detail')" |
| 25 | 27 | v-hasPermi="['system:role:query']" |
| 26 | 28 | @click="handleDetail(row.id)" |
| 27 | 29 | /> |
| 30 | + <!-- 操作:菜单权限 --> | |
| 28 | 31 | <XTextButton |
| 29 | 32 | preIcon="ep:basketball" |
| 30 | 33 | title="菜单权限" |
| 31 | 34 | v-hasPermi="['system:permission:assign-role-menu']" |
| 32 | 35 | @click="handleScope('menu', row)" |
| 33 | 36 | /> |
| 37 | + <!-- 操作:数据权限 --> | |
| 34 | 38 | <XTextButton |
| 35 | 39 | preIcon="ep:coin" |
| 36 | 40 | title="数据权限" |
| 37 | 41 | v-hasPermi="['system:permission:assign-role-data-scope']" |
| 38 | 42 | @click="handleScope('data', row)" |
| 39 | 43 | /> |
| 44 | + <!-- 操作:删除 --> | |
| 40 | 45 | <XTextButton |
| 41 | 46 | preIcon="ep:delete" |
| 42 | 47 | :title="t('action.del')" |
| ... | ... | @@ -73,6 +78,7 @@ |
| 73 | 78 | <XButton :loading="actionLoading" :title="t('dialog.close')" @click="dialogVisible = false" /> |
| 74 | 79 | </template> |
| 75 | 80 | </XModal> |
| 81 | + | |
| 76 | 82 | <XModal v-model="dialogScopeVisible" :title="dialogScopeTitle"> |
| 77 | 83 | <el-form :model="dataScopeForm" label-width="140px" :inline="true"> |
| 78 | 84 | <el-form-item label="角色名称"> | ... | ... |
yudao-ui-admin-vue3/src/views/system/role/role.data.ts