Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
9
91isoft_sys_web
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
张伯涛
91isoft_sys_web
Commits
50ec55d8
Commit
50ec55d8
authored
Jul 11, 2022
by
zhangyichen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改bug 56485 角色管理-数据权限-超长菜单名称显示不完整
parent
4a4eca3d
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
5 deletions
+18
-5
index.vue
src/views/system/role/index.vue
+17
-4
index.vue
src/views/system/user/index.vue
+1
-1
No files found.
src/views/system/role/index.vue
View file @
50ec55d8
<
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
>
src/views/system/user/index.vue
View file @
50ec55d8
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment