Commit 50ec55d8 authored by zhangyichen's avatar zhangyichen

修改bug 56485 角色管理-数据权限-超长菜单名称显示不完整

parent 4a4eca3d
<template> <template>
<div class="app-container"> <div class="app-container-role">
<el-form ref="queryForm" style="padding: 0 0 0 10px" :model="queryParams" :inline="true"> <el-form ref="queryForm" style="padding: 0 0 0 10px" :model="queryParams" :inline="true">
<el-form-item label="角色名称" prop="roleName"> <el-form-item label="角色名称" prop="roleName">
<el-input <el-input
...@@ -134,7 +134,7 @@ ...@@ -134,7 +134,7 @@
@pagination="getList" @pagination="getList"
/> />
<!-- 添加或修改角色配置对话框 --> <!-- 添加或修改角色配置对话框 -->
<el-dialog :close-on-click-modal="false" title="角色信息" :visible.sync="open" width="550px" append-to-body destroy-on-close> <el-dialog :close-on-click-modal="false" title="角色信息" :visible.sync="open" width="550px" :append-to-body="false" destroy-on-close>
<el-form ref="form" :model="form" :rules="rules" size="small" label-width="80px"> <el-form ref="form" :model="form" :rules="rules" size="small" label-width="80px">
<el-form-item label="角色名称" prop="roleName"> <el-form-item label="角色名称" prop="roleName">
<el-input v-model.trim="form.roleName" show-word-limit :maxlength="30" placeholder="请输入角色名称" /> <el-input v-model.trim="form.roleName" show-word-limit :maxlength="30" placeholder="请输入角色名称" />
...@@ -180,7 +180,7 @@ ...@@ -180,7 +180,7 @@
</el-dialog> </el-dialog>
<!-- 分配角色数据权限对话框 --> <!-- 分配角色数据权限对话框 -->
<el-dialog :close-on-click-modal="false" class="roleDialog" title="数据权限信息" :visible.sync="openDataScope" width="900px" append-to-body> <el-dialog :close-on-click-modal="false" class="roleDialog" title="数据权限信息" :visible.sync="openDataScope" width="900px" :append-to-body="false">
<el-row> <el-row>
<el-col style="width: 49%"> <el-col style="width: 49%">
<el-form ref="form" :model="form" :rules="rules" label-width="70px"> <el-form ref="form" :model="form" :rules="rules" label-width="70px">
...@@ -529,6 +529,10 @@ export default { ...@@ -529,6 +529,10 @@ export default {
this.menuOptionDataIdList.push(item.id) this.menuOptionDataIdList.push(item.id)
}) })
} }
const list = document.querySelectorAll('.el-tree-node__label')
list.forEach(item => {
item.title = item.innerText
})
}) })
} }
}, },
...@@ -794,7 +798,7 @@ export default { ...@@ -794,7 +798,7 @@ export default {
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
.app-container { .app-container-role {
font-size: 18px; font-size: 18px;
padding: 0; padding: 0;
...@@ -819,3 +823,12 @@ export default { ...@@ -819,3 +823,12 @@ export default {
width: 4px; width: 4px;
} }
</style> </style>
<style lang="scss">
.app-container-role {
.el-tree-node__label {
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
}
}
</style>
...@@ -1011,7 +1011,7 @@ export default { ...@@ -1011,7 +1011,7 @@ export default {
this.upload.open = true this.upload.open = true
} else { // 根据后台需求数据格式 } else { // 根据后台需求数据格式
var formData = new FormData() // 当前为空 var formData = new FormData() // 当前为空
formData.append('file', this.fileList) formData.append('file', this.fileList[0])
importExcel(formData).then(res => { importExcel(formData).then(res => {
if (res.code === 200) { if (res.code === 200) {
if (res.data.filename === null) { if (res.data.filename === null) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment