Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
H
haoban-3
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
office
haoban-3
Commits
1703f8f2
Commit
1703f8f2
authored
Jul 08, 2022
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 客户展示设置
parent
8836d725
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
22 additions
and
2 deletions
+22
-2
memberShowSet.vue
src/views/apps/customerApp/memberShowSet.vue
+22
-2
No files found.
src/views/apps/customerApp/memberShowSet.vue
View file @
1703f8f2
...
@@ -18,8 +18,14 @@
...
@@ -18,8 +18,14 @@
</el-table-column>
</el-table-column>
<el-table-column
label=
"策略类型"
prop=
"storeType"
:formatter=
"(row, col, val) => (val == '-999' ? '通用策略' : '特殊策略')"
min-width=
"110px"
></el-table-column>
<el-table-column
label=
"策略类型"
prop=
"storeType"
:formatter=
"(row, col, val) => (val == '-999' ? '通用策略' : '特殊策略')"
min-width=
"110px"
></el-table-column>
<el-table-column
label=
"门店类型"
prop=
"storeType"
:formatter=
"formatStoreType"
min-width=
"110px"
></el-table-column>
<el-table-column
label=
"门店类型"
prop=
"storeType"
:formatter=
"formatStoreType"
min-width=
"110px"
></el-table-column>
<el-table-column
label=
"设置内容"
min-width=
"310px"
show-overflow-tooltip
>
<el-table-column
label=
"设置内容"
min-width=
"310px"
>
<
template
slot-scope=
"{ row }"
>
{{
formatSetting
(
row
)
}}
</
template
>
<
template
slot-scope=
"{ row, $index }"
>
<div
class=
"text-overflow"
:ref=
"'setContent' + $index"
v-if=
"!row.isOverflow"
>
{{
formatSetting
(
row
)
}}
</div>
<el-tooltip
placement=
"top"
v-else
>
<div
slot=
"content"
>
{{
formatSetting
(
row
)
}}
</div>
<div
class=
"text-overflow"
>
{{
formatSetting
(
row
)
}}
</div>
</el-tooltip>
</
template
>
</el-table-column>
</el-table-column>
<el-table-column
label=
"创建人"
prop=
"creatorName"
min-width=
"120px"
show-overflow-tooltip
></el-table-column>
<el-table-column
label=
"创建人"
prop=
"creatorName"
min-width=
"120px"
show-overflow-tooltip
></el-table-column>
<el-table-column
label=
"编辑人"
prop=
"modifierName"
min-width=
"120px"
show-overflow-tooltip
></el-table-column>
<el-table-column
label=
"编辑人"
prop=
"modifierName"
min-width=
"120px"
show-overflow-tooltip
></el-table-column>
...
@@ -101,6 +107,12 @@ export default {
...
@@ -101,6 +107,12 @@ export default {
return
;
return
;
}
}
this
.
tableData
=
Array
.
isArray
(
result
)
?
result
:
[];
this
.
tableData
=
Array
.
isArray
(
result
)
?
result
:
[];
this
.
$nextTick
(()
=>
{
this
.
tableData
.
map
((
el
,
index
)
=>
{
const
target
=
this
.
$refs
[
'setContent'
+
index
];
this
.
$set
(
el
,
'isOverflow'
,
target
.
scrollHeight
>
target
.
clientHeight
);
});
});
});
});
},
},
onDel
(
row
)
{
onDel
(
row
)
{
...
@@ -123,6 +135,14 @@ export default {
...
@@ -123,6 +135,14 @@ export default {
</
script
>
</
script
>
<
style
lang=
"scss"
scoped
>
<
style
lang=
"scss"
scoped
>
.text-overflow
{
width
:
100%
;
overflow
:
hidden
;
text-overflow
:
ellipsis
;
display
:
-webkit-box
;
-webkit-box-orient
:
vertical
;
-webkit-line-clamp
:
2
;
}
.show-set
{
.show-set
{
padding
:
20px
;
padding
:
20px
;
.show-set-header
{
.show-set-header
{
...
...
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