mirror of
https://gitee.com/log4j/pig-ui.git
synced 2024-12-23 05:40:20 +08:00
refec: 修改菜单管理国际化
This commit is contained in:
parent
9fa984e9fa
commit
827867309d
@ -4,23 +4,23 @@
|
||||
<el-form ref="dataFormRef" :model="form" :rules="dataRules" label-width="90px">
|
||||
<el-row :gutter="35">
|
||||
<el-col :span="12" class="mb20">
|
||||
<el-form-item label="角色名称" prop="roleName">
|
||||
<el-input v-model="form.roleName" placeholder="请输入角色名称" clearable></el-input>
|
||||
<el-form-item :label="$t('sysrole.roleName')" prop="roleName">
|
||||
<el-input v-model="form.roleName" :placeholder="$t('sysrole.please_enter_a_role_name')" clearable></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :span="12" class="mb20">
|
||||
<el-form-item label="角色标识" prop="roleCode">
|
||||
<el-input v-model="form.roleCode" placeholder="请输入角色标识" clearable></el-input>
|
||||
<el-form-item :label="$t('sysrole.roleCode')" prop="roleCode">
|
||||
<el-input v-model="form.roleCode" :placeholder="$t('sysrole.please_enter_the_role_Code')" clearable></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20">
|
||||
<el-form-item label="角色描述" prop="roleDesc">
|
||||
<el-input v-model="form.roleDesc" type="textarea" placeholder="请输入角色描述" maxlength="150"></el-input>
|
||||
<el-form-item :label="$t('sysrole.roleDesc')" prop="roleDesc">
|
||||
<el-input v-model="form.roleDesc" type="textarea" :placeholder="$t('sysrole.please_enter_the_role_description')" maxlength="150"></el-input>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
<el-col :xs="24" :sm="24" :md="24" :lg="24" :xl="24" class="mb20">
|
||||
<el-form-item label="菜单权限" prop="dsType">
|
||||
<el-select v-model="form.dsType" placeholder="请选择" clearable class="w100">
|
||||
<el-form-item :label="$t('sysrole.menu_authority')" prop="dsType">
|
||||
<el-select v-model="form.dsType" :placeholder="$t('sysrole.please_select')" clearable class="w100">
|
||||
<el-option v-for="item in dictType" :key="item.value" :label="item.label" :value="item.value" />
|
||||
</el-select>
|
||||
</el-form-item>
|
||||
|
@ -5,5 +5,15 @@ export default {
|
||||
inputRoleNameTip: 'input roleName',
|
||||
permissionTip: 'grant',
|
||||
deleteDisabledTip: 'not allowed to delete',
|
||||
|
||||
roleCode:'roleCode',
|
||||
roleDesc:'role description',
|
||||
data_authority:'data authority',
|
||||
createTime:'createTime',
|
||||
please_enter_a_role_name:'please enter a role name',
|
||||
please_enter_the_role_Code:'please enter the role Code',
|
||||
please_enter_the_role_description:'please enter the role description',
|
||||
menu_authority:'menu authority',
|
||||
please_select:'please select',
|
||||
}
|
||||
}
|
||||
|
@ -5,5 +5,16 @@ export default {
|
||||
inputRoleNameTip: '请输入角色名称',
|
||||
permissionTip: '授权',
|
||||
deleteDisabledTip: '角色不允许删除',
|
||||
|
||||
roleCode:'角色标识',
|
||||
roleDesc:'角色描述',
|
||||
data_authority:'数据权限',
|
||||
createTime:'创建时间',
|
||||
please_enter_a_role_name:'请输入角色名称',
|
||||
please_enter_the_role_Code:'请输入角色标识',
|
||||
please_enter_the_role_description:'请输入角色描述',
|
||||
menu_authority:'菜单权限',
|
||||
please_select:'please select',
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -39,16 +39,16 @@
|
||||
<el-table :data="state.dataList" v-loading="state.loading" style="width: 100%"
|
||||
@selection-change="handleSelectionChange">
|
||||
<el-table-column type="selection" :selectable='handleSelectable' width="50" align="center" />
|
||||
<el-table-column type="index" label="序号" width="80" />
|
||||
<el-table-column prop="roleName" label="角色名称" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column prop="roleCode" label="角色标识" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column prop="roleDesc" label="角色描述" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column label="数据权限" show-overflow-tooltip>
|
||||
<el-table-column type="index" :label="$t('sysrole.index')" width="80" />
|
||||
<el-table-column prop="roleName" :label="$t('sysrole.roleName')" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column prop="roleCode" :label="$t('sysrole.roleCode')" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column prop="roleDesc" :label="$t('sysrole.roleDesc')" show-overflow-tooltip></el-table-column>
|
||||
<el-table-column prop="data_authority" :label="$t('sysrole.data_authority')" show-overflow-tooltip>
|
||||
<template #default="scope">
|
||||
<dict-tag :options="dictType" :value="scope.row.dsType"></dict-tag>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="createTime" label="创建时间" show-overflow-tooltip></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="150">
|
||||
<template #default="scope">
|
||||
<el-button text type="primary" v-auth="'sys_role_edit'"
|
||||
|
Loading…
Reference in New Issue
Block a user