Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
F
founder_vue
Overview
Overview
Details
Activity
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
常超
founder_vue
Commits
c78f7aed
Commit
c78f7aed
authored
Nov 22, 2021
by
liyuhang19990520
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
宽度适配
parent
40b56958
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
src/views/SystemManage/GroupManage.vue
+15
-3
No files found.
src/views/SystemManage/GroupManage.vue
View file @
c78f7aed
...
...
@@ -109,7 +109,7 @@
<el-table-column
prop=
"roleNames"
label=
"组角色"
:width=
"newWidth
== 3 ? 175 * newWidth : 155 * newWidth
"
:width=
"newWidth"
show-overflow-tooltip
>
<template
slot-scope=
"scope"
>
...
...
@@ -165,7 +165,7 @@
<Confirmation
content=
"编辑用户"
>
<img
style=
"
width: 1.125rem;
width: 1.125rem
!important
;
height: 1.125rem;
margin-right: 1.125rem;
cursor: pointer;
...
...
@@ -520,6 +520,7 @@ export default {
this
.
width1
=
(
this
.
width1
*
w2
)
/
w1
;
this
.
width2
=
(
this
.
width2
*
w2
)
/
w1
;
this
.
width3
=
(
this
.
width3
*
w2
)
/
w1
;
this
.
width5
=
(
this
.
width5
*
w2
)
/
w1
;
this
.
btnwidth
=
(
this
.
btnwidth
*
w2
)
/
w1
;
},
data
()
{
...
...
@@ -556,6 +557,7 @@ export default {
}
};
return
{
width5
:
""
,
width3
:
90
,
width2
:
400
,
width1
:
200
,
...
...
@@ -666,13 +668,23 @@ export default {
return
str
==
""
?
false
:
true
;
},
newWidth
()
{
let
w1
=
1920
;
let
w2
=
window
.
innerWidth
;
let
map
=
this
.
tableData
.
map
((
i
)
=>
i
.
roleNames
.
split
(
","
));
let
num
=
0
;
let
width
;
map
.
forEach
((
i
)
=>
{
if
(
i
.
length
>
num
)
num
=
i
.
length
;
});
if
(
num
>
3
)
num
=
3
;
return
num
;
console
.
log
(
num
,
22222222222
);
if
(
num
==
3
)
{
width
=
3
*
175
;
}
else
{
width
=
155
*
num
;
}
width
=
(
width
*
w2
)
/
w1
;
return
width
;
},
},
methods
:
{
...
...
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