Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
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
marketing-web
marketing
Commits
0ee11de8
Commit
0ee11de8
authored
Sep 14, 2022
by
huaying
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: dd
parent
e8902c19
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
2 deletions
+15
-2
writeOffStore.vue
src/views/card/writeOffStore.vue
+15
-2
No files found.
src/views/card/writeOffStore.vue
View file @
0ee11de8
...
...
@@ -11,7 +11,18 @@
</div>
</div>
<div
class=
"content"
style=
"height:100%"
>
<el-table
:data=
"tableData"
@
sort-change=
"sortChange"
ref=
"tableRef"
:height=
"`calc(100% - 130px)`"
:max-height=
"`$
{tableData.length * 48 + 59}px`">
<el-table
v-if=
"tableData.length > 13"
:data=
"tableData"
@
sort-change=
"sortChange"
ref=
"tableRef"
:height=
"`calc(100% - 130px)`"
:max-height=
"`$
{tableData.length * 48 + 59}px`">
<el-table-column
label=
"核销门店"
prop=
"storeName"
min-width=
"100px"
></el-table-column>
<el-table-column
label=
"券核销数量"
prop=
"writeOffCount"
min-width=
"100px"
sortable=
"custom"
></el-table-column>
<el-table-column
label=
"核销金额"
prop=
"writeOffPrice"
min-width=
"100px"
sortable=
"custom"
></el-table-column>
<el-table-column
label=
"成本金额"
prop=
"costValue"
min-width=
"100px"
sortable=
"custom"
></el-table-column>
<el-table-column
label=
"操作"
prop=
""
min-width=
"100px"
>
<template
slot-scope=
"
{ row }">
<el-button
type=
"text"
@
click=
"details(row)"
>
明细
</el-button>
</
template
>
</el-table-column>
</el-table>
<el-table
v-else
:data=
"tableData"
@
sort-change=
"sortChange"
ref=
"tableRef"
>
<el-table-column
label=
"核销门店"
prop=
"storeName"
min-width=
"100px"
></el-table-column>
<el-table-column
label=
"券核销数量"
prop=
"writeOffCount"
min-width=
"100px"
sortable=
"custom"
></el-table-column>
<el-table-column
label=
"核销金额"
prop=
"writeOffPrice"
min-width=
"100px"
sortable=
"custom"
></el-table-column>
...
...
@@ -54,7 +65,9 @@ export default {
this
.
getList
();
},
beforeUpdate
()
{
this
.
$refs
.
storePage
.
style
.
height
=
`calc(100vh -
${
this
.
getOffsetTop
(
this
.
$refs
.
storePage
)}
px)`
;
if
(
this
.
tableData
.
length
>
10
)
{
this
.
$refs
.
storePage
.
style
.
height
=
`calc(100vh -
${
this
.
getOffsetTop
(
this
.
$refs
.
storePage
)}
px)`
;
}
},
methods
:
{
getOffsetTop
(
el
)
{
...
...
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