Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
micro-customization-system
/
micro-trialrun
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 52502543
authored
Jun 24, 2022
by
zhangxw
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
列表长度超出 显示省略号
1 parent
dd6975e4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
src/views/alarmCenter/alarmLog.vue
src/views/alarmCenter/alarmLog.vue
View file @
5250254
...
@@ -130,7 +130,7 @@ export default {
...
@@ -130,7 +130,7 @@ export default {
let
textResult
=
[]
let
textResult
=
[]
let
label
=
[
'措施'
,
'备注'
]
let
label
=
[
'措施'
,
'备注'
]
filedList
.
map
((
val
,
index
)
=>
{
filedList
.
map
((
val
,
index
)
=>
{
textResult
.
push
(
hasLabel
?
label
[
index
]
+
':'
+
(
row
[
val
]
||
'--'
)
:
(
row
[
val
]
||
'--'
)
)
textResult
.
push
(
hasLabel
?
`<span style="overflow: hidden;text-overflow: ellipsis; white-space: nowrap;margin: 5px 0;">
${
label
[
index
]
+
':'
+
(
row
[
val
]
||
'--'
)}
</span>`
:
`
${(
row
[
val
]
||
'--'
)}
`
)
})
})
return
textResult
.
join
(
`
${
type
}
`
)
return
textResult
.
join
(
`
${
type
}
`
)
},
},
...
@@ -206,4 +206,7 @@ export default {
...
@@ -206,4 +206,7 @@ export default {
}
}
}
}
}
}
.el-tooltip__popper
{
width
:
30%
;
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
Write
Preview
Markdown
is supported
Attach a file
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 post a comment