Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-activity-center
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 7a7a19b0
authored
Dec 19, 2022
by
李伟康
Browse Files
Options
Browse Files
Tag
Download
Plain Diff
提交
2 parents
b06191a1
bd71fd4c
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
154 additions
and
45 deletions
src/views/seckillActivity/components/selectStore.vue
src/views/seckillActivity/components/table/index.vue
src/views/seckillActivity/components/table/sub-el-table-column.vue
src/views/seckillActivity/crowdFundList.vue
src/views/seckillActivity/dataBoard.vue
src/views/seckillActivity/components/selectStore.vue
View file @
7a7a19b
...
@@ -15,7 +15,9 @@
...
@@ -15,7 +15,9 @@
<span
slot=
"footer"
>
<span
slot=
"footer"
>
<el-button
:size=
"size"
<el-button
:size=
"size"
type=
"primary"
type=
"primary"
@
click=
"resetTable"
>
查询
</el-button>
@
click=
"getTable"
>
查询
</el-button>
<el-button
:size=
"size"
@
click=
"resetTable"
>
重置
</el-button>
</span>
</span>
</glsx-combi-form>
</glsx-combi-form>
<!-- : :hasPage="false"
<!-- : :hasPage="false"
...
@@ -192,7 +194,7 @@ export default {
...
@@ -192,7 +194,7 @@ export default {
// })
// })
})
})
},
},
res
etTable
()
{
g
etTable
()
{
this
.
$refs
.
storeRef
.
page
.
currentPage
=
1
this
.
$refs
.
storeRef
.
page
.
currentPage
=
1
this
.
getList
()
this
.
getList
()
},
},
...
@@ -214,7 +216,10 @@ export default {
...
@@ -214,7 +216,10 @@ export default {
// this.staffUuid = val.uuid
// this.staffUuid = val.uuid
// this.store = val
// this.store = val
},
},
resetTable
()
{
this
.
searchForm
=
{}
// this.$refs.showSearch.refreshTable()
},
handleClose
()
{
handleClose
()
{
this
.
$emit
(
'handleRelateStoreClose'
)
this
.
$emit
(
'handleRelateStoreClose'
)
},
},
...
...
src/views/seckillActivity/components/table/index.vue
0 → 100644
View file @
7a7a19b
This diff is collapsed.
Click to expand it.
src/views/seckillActivity/components/table/sub-el-table-column.vue
0 → 100644
View file @
7a7a19b
<
template
>
<div
class=
"sub-el-table-column"
>
<el-table-column
v-for=
"(item, index) in reverseData"
:key=
"index + 'child'"
:label=
"item.label"
:prop=
"item.prop"
:width=
"item.width"
:min-width=
"item.minWidth"
:fixed=
"item.fixed"
:align=
"item.align || 'left'"
:sortable=
"item.sortable"
:render-header=
"item.renderHeader"
v-bind=
"item.columnattrs ? item.columnattrs :
{}" v-on="item.columnlisteners ? item.columnlisteners : {}">
<template
slot-scope=
"scope"
>
<slot
v-if=
"item.addHtml"
:name=
"item.addHtml"
:scope=
"scope.row"
:prop=
"item.prop"
:width=
"item.width"
></slot>
<template
v-else-if=
"item.formatter"
>
<el-popover
v-if=
"scope.row[item.prop] && scope.row[item.prop].length >= Math.ceil((item.width - 36) / 14) * item.line"
placement=
"top"
popper-class=
"base-popper"
trigger=
"hover"
:content=
"item.formatter(scope.row)"
>
<span
slot=
"reference"
class=
"line-ellipsis"
:style=
"
{ '-webkit-line-clamp': item.line ? item.line : '' }">
{{
item
.
formatter
(
scope
.
row
)
|
lineEllipsis
(
item
.
width
,
item
.
line
)
}}
</span>
</el-popover>
<span
v-else
class=
"line-ellipsis"
:style=
"
{ '-webkit-line-clamp': item.line ? item.line : '' }">
<!--
{{
item
.
formatter
(
scope
.
row
)
||
'--'
}}
-->
{{
item
.
formatter
(
scope
.
row
)
|
tableCellFormat
}}
</span>
</
template
>
<
template
v-else-if=
"getListApi"
>
<el-popover
v-if=
"scope.row[item.prop] && scope.row[item.prop].length >= Math.ceil((item.width - 36) / 14) * item.line"
placement=
"top"
popper-class=
"base-popper"
trigger=
"hover"
:content=
"scope.row[item.prop]"
>
<span
slot=
"reference"
class=
"line-ellipsis"
:style=
"
{ '-webkit-line-clamp': item.line ? item.line : '' }">
{{
scope
.
row
[
item
.
prop
]
|
lineEllipsis
(
item
.
width
,
item
.
line
)
}}
</span>
</el-popover>
<span
v-else
class=
"line-ellipsis"
:style=
"
{ '-webkit-line-clamp': item.line ? item.line : '' }">
<!--
{{
scope
.
row
[
item
.
prop
]
||
'--'
}}
-->
{{
scope
.
row
[
item
.
prop
]
|
tableCellFormat
}}
</span>
</
template
>
<
template
v-else
>
<!-- 大于10或 20个字节长度 -->
<el-popover
v-if=
"tableData[scope.$index][item.prop] && tableData[scope.$index][item.prop].length >= Math.ceil((item.width - 36) / 14) * item.line"
placement=
"top"
width=
"200"
trigger=
"hover"
:content=
"tableData[scope.$index][item.prop]"
>
<span
slot=
"reference"
class=
"line-ellipsis"
:style=
"
{ '-webkit-line-clamp': item.line ? item.line : '' }">
{{
tableData
[
scope
.
$index
][
item
.
prop
]
|
lineEllipsis
(
item
.
width
,
item
.
line
)
}}
</span>
</el-popover>
<!--
<span
v-else
class=
"line-ellipsis"
:style=
"
{ '-webkit-line-clamp': item.line ? item.line : '' }" v-text="tableData[scope.$index][item.prop]">
</span>
-->
<span
v-else
class=
"line-ellipsis"
:style=
"
{ '-webkit-line-clamp': item.line ? item.line : '' }">
<!--
{{
tableData
[
scope
.
$index
][
item
.
prop
]
||
'--'
}}
-->
{{
tableData
[
scope
.
$index
][
item
.
prop
]
|
tableCellFormat
}}
</span>
</
template
>
<
template
v-if=
"item.addSymbol"
>
<span
v-text=
"item.addSymbol"
></span>
</
template
>
</template>
<!-- 递归 -->
<sub-el-table-column
v-if=
"item.children"
:data=
"item.children"
:tableData=
"tableData"
:getListApi=
"getListApi"
></sub-el-table-column>
</el-table-column>
</div>
</template>
<
script
>
// import GlSubTableColumn from '../../GlSubTableColumn'
export
default
{
name
:
'sub-el-table-column'
,
props
:
{
data
:
{
type
:
Array
,
default
:
()
=>
[]
},
// 表格数据-外部传入
tableData
:
{
type
:
Array
,
default
:
()
=>
[]
},
// 获取列表接口
getListApi
:
{
type
:
Function
,
default
:
null
}
},
computed
:
{
reverseData
()
{
let
arr
=
[...
this
.
data
]
let
temp
=
arr
.
pop
()
arr
.
unshift
(
temp
)
return
arr
}
},
// components: {
// GlSubTableColumn
// }
// created(){
// // console.log('data',this.data)
// }
}
</
script
>
<
style
lang=
"scss"
>
//
.sub-el-table-column
{
//
}
</
style
>
src/views/seckillActivity/crowdFundList.vue
View file @
7a7a19b
...
@@ -38,36 +38,26 @@
...
@@ -38,36 +38,26 @@
</div>
</div>
<!-- 表格区域 开始 -->
<!-- 表格区域 开始 -->
<GLTable
<single-gltable
ref=
"activity"
ref=
"activity"
:getListApi=
"getListApi"
:getListApi=
"getListApi"
:noDataImg=
"url"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
@
setTableFinishFun=
"setTableFinishFun"
<div
slot=
"activityImg"
>
class=
"table-image"
<div
slot-scope=
"scope"
>
slot=
"activityImg"
<el-popover
placement=
"top"
class=
"table-image"
width=
"160"
slot-scope=
"scope"
trigger=
"hover"
>
popper-class=
"table-popover-block"
>
<el-popover
<img
class=
"table-popover-img"
placement=
"top"
:src=
"scope.scope.activityImg"
/>
width=
"160"
<img
class=
"img-60 pointer"
trigger=
"hover"
slot=
"reference"
popper-class=
"table-popover-block"
:src=
"scope.scope.activityImg"
/>
>
<img
class=
"table-popover-img"
:src=
"scope.scope.activityImg"
/>
<img
class=
"img-60 pointer"
slot=
"reference"
:src=
"scope.scope.activityImg"
/>
</el-popover>
</el-popover>
</div>
</div>
<div
<div
...
@@ -90,7 +80,7 @@
...
@@ -90,7 +80,7 @@
:buttonNum=
"3"
:buttonNum=
"3"
></GLTableButton>
></GLTableButton>
</div>
</div>
</
GLT
able>
</
single-glt
able>
<!-- 表格区域 end -->
<!-- 表格区域 end -->
</div>
</div>
<!-- 众筹分享 -->
<!-- 众筹分享 -->
...
@@ -104,6 +94,7 @@
...
@@ -104,6 +94,7 @@
<
script
>
<
script
>
import
crowdFundingShare
from
'../productGroup/components/crowdFundingShareDialog.vue'
import
crowdFundingShare
from
'../productGroup/components/crowdFundingShareDialog.vue'
import
GLTable
from
'./components/table/index'
import
*
as
dayjs
from
'dayjs'
import
*
as
dayjs
from
'dayjs'
import
url
from
'@/assets/empty.png'
import
url
from
'@/assets/empty.png'
import
{
exportFn
}
from
'@/common/constant'
import
{
exportFn
}
from
'@/common/constant'
...
@@ -286,21 +277,31 @@ export default {
...
@@ -286,21 +277,31 @@ export default {
listName
:
'list'
,
listName
:
'list'
,
tableOption
:
true
,
tableOption
:
true
,
tableColumns
:
[
tableColumns
:
[
// {
// label: '序号',
// // prop: 'activityImg',
// addHtml: 'tableNum',
// fixed: 'left',
// width: 70
// },
{
{
label
:
'活动名称'
,
label
:
'活动名称'
,
prop
:
'activityName'
,
prop
:
'activityName'
,
width
:
220
width
:
220
,
fixed
:
'left'
},
{
label
:
'门店'
,
prop
:
'merchantName'
,
width
:
220
,
fixed
:
'left'
},
},
{
{
label
:
'缩略图'
,
label
:
'缩略图'
,
prop
:
'activityImg'
,
prop
:
'activityImg'
,
addHtml
:
'activityImg'
addHtml
:
'activityImg'
},
},
{
label
:
'门店'
,
prop
:
'merchantName'
,
width
:
220
},
{
{
label
:
'收款模式'
,
label
:
'收款模式'
,
prop
:
'payMentModel'
,
prop
:
'payMentModel'
,
...
@@ -424,7 +425,8 @@ export default {
...
@@ -424,7 +425,8 @@ export default {
},
},
components
:
{
components
:
{
crowdFundingShare
crowdFundingShare
,
singleGltable
:
GLTable
},
},
mounted
()
{
mounted
()
{
...
...
src/views/seckillActivity/dataBoard.vue
View file @
7a7a19b
...
@@ -46,7 +46,8 @@
...
@@ -46,7 +46,8 @@
:rowNumber=
"1"
:rowNumber=
"1"
:formObj=
"searchRankForm"
:formObj=
"searchRankForm"
:formData=
"searchFormRankData"
:formData=
"searchFormRankData"
@
handleOk=
"handleSearchRank"
></GLCombiForm>
@
handleOk=
"handleSearchRank"
@
handleRest=
"handleReset"
></GLCombiForm>
<div
class=
"flex m-b-10 w-100-percent"
>
<div
class=
"flex m-b-10 w-100-percent"
>
<span
class=
"table-title"
></span>
<span
class=
"table-title"
></span>
<el-button
:size=
"size"
<el-button
:size=
"size"
...
@@ -358,10 +359,10 @@ export default {
...
@@ -358,10 +359,10 @@ export default {
this
.
getLiveData
()
this
.
getLiveData
()
},
},
mounted
()
{
mounted
()
{
let
[
dataResetBtn
]
=
this
.
$refs
.
dataRef
.
$el
.
getElementsByClassName
(
'el-button--default'
)
,
let
[
dataResetBtn
]
=
this
.
$refs
.
dataRef
.
$el
.
getElementsByClassName
(
'el-button--default'
)
[
rankResetBtn
]
=
this
.
$refs
.
rankRef
.
$el
.
getElementsByClassName
(
'el-button--default'
)
//
[rankResetBtn] = this.$refs.rankRef.$el.getElementsByClassName('el-button--default')
if
(
dataResetBtn
)
dataResetBtn
.
style
.
display
=
'none'
if
(
dataResetBtn
)
dataResetBtn
.
style
.
display
=
'none'
if
(
rankResetBtn
)
rankResetBtn
.
style
.
display
=
'none'
//
if (rankResetBtn) rankResetBtn.style.display = 'none'
},
},
methods
:
{
methods
:
{
...
@@ -376,6 +377,11 @@ export default {
...
@@ -376,6 +377,11 @@ export default {
})
})
.
catch
(
err
=>
{
})
.
catch
(
err
=>
{
})
},
},
handleReset
()
{
this
.
searchRankForm
=
this
.
$options
.
data
.
call
(
this
).
searchRankForm
// this.$refs.rankRef.refreshTable()
// this.handleSearch()
},
getDataBoardApi
()
{
getDataBoardApi
()
{
// { activityId } = this.$route.query,
// { activityId } = this.$route.query,
let
{
statDate
}
=
this
.
searchForm
let
{
statDate
}
=
this
.
searchForm
...
...
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