Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
D
dcxy-manage-shell
Project
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
姜雷
dcxy-manage-shell
Commits
bb7aff70
Commit
bb7aff70
authored
Apr 19, 2019
by
姜雷
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
反馈名字过长时省略
parent
0e6ff6fd
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
25 additions
and
2 deletions
+25
-2
CustomerFeedback.vue
...ontainers/Dashboard/CustomerFeedback/CustomerFeedback.vue
+25
-2
No files found.
src/containers/Dashboard/CustomerFeedback/CustomerFeedback.vue
View file @
bb7aff70
...
...
@@ -10,14 +10,21 @@
<span
class=
"red"
>
{{
count
}}
条
</span>
</div>
</div>
<div
class=
"CustomerFeedback-List"
>
<div
class=
"CustomerFeedback-List"
v-if=
"show"
:style=
"`width:$
{width}px`"
>
<div
class=
"CustomerFeedback-Item"
v-for=
"(item, index) in feedbackList"
:key=
"index"
>
<span
class=
"CustomerFeedback-ItemNum"
>
{{
item
.
count
}}
条
</span>
<span
class=
"CustomerFeedback-ItemName"
>
{{
item
.
areaName
}}
</span>
<span
class=
"CustomerFeedback-ItemName"
:title=
"item.areaName"
>
{{
item
.
areaName
}}
</span>
</div>
</div>
</div>
...
...
@@ -31,9 +38,21 @@ export default {
computed
:
{
...
mapGetters
(
'Dashboard/customerFeedback'
,
[
'feedbackList'
,
'count'
]),
},
data
()
{
return
{
show
:
false
,
};
},
created
()
{
this
.
initData
();
},
mounted
()
{
let
boxDom
=
document
.
querySelector
(
'.CustomerFeedback'
);
let
listDom
=
document
.
querySelector
(
'.CustomerFeedback-List'
);
this
.
width
=
boxDom
.
clientWidth
;
this
.
show
=
true
;
},
methods
:
{
...
mapActions
(
'Dashboard/customerFeedback'
,
[
'getFeedbackList'
]),
initData
()
{
...
...
@@ -87,7 +106,11 @@ export default {
flex
:
1
;
padding-right
:
20px
;
line-height
:
28px
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
white-space
:
nowrap
;
}
}
}
@media
screen
and
(
max-width
:
$bigScreenWidth
)
{
...
...
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