Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-marketing
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 321127c9
authored
Apr 24, 2022
by
chenwq
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
表格-图片-预览大图
1 parent
072310ca
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
50 additions
and
18 deletions
src/assets/css/public.scss
src/views/newCarManage/index.vue
src/views/productGroup/index.vue
src/views/productStore/index.vue
src/views/takeGood/index.vue
src/assets/css/public.scss
View file @
321127c
...
...
@@ -168,9 +168,30 @@ html {
border
:
0
;
}
.marketing
.table-show-img
{
width
:
160px
;
height
:
160px
;
.table-popover-block
{
position
:
relative
;
height
:
160px
!
important
;
overflow
:
hidden
;
border-width
:
0
!
important
;
padding
:
0
!
important
;
margin-bottom
:
10px
!
important
;
}
.table-popover-block.el-popper
.popper__arrow
{
display
:
none
!
important
;
}
.table-popover-img
{
width
:
100%
;
// height: 100%;
position
:
absolute
;
top
:
50%
;
left
:
50%
;
transform
:
translate
(
-50%
,
-50%
);
}
.marketing
.pointer
{
cursor
:
pointer
;
}
.marketing
.img-w-100
{
...
...
src/views/newCarManage/index.vue
View file @
321127c
...
...
@@ -17,10 +17,16 @@
<!-- 表格区域 开始 -->
<GLTable
ref=
"zoneRef"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<div
slot=
"logoUrl"
class=
"table-image"
slot-scope=
"scope"
>
<img
class=
"img-60"
:src=
"scope.scope.logoUrl"
/>
<el-popover
placement=
"top"
width=
"160"
trigger=
"hover"
popper-class=
"table-popover-block"
>
<img
class=
"table-popover-img"
:src=
"scope.scope.logoUrl"
/>
<img
class=
"img-60 pointer"
slot=
"reference"
:src=
"scope.scope.logoUrl"
/>
</el-popover>
</div>
<div
slot=
"showImageUrl"
class=
"table-image"
slot-scope=
"scope"
>
<img
class=
"img-60"
:src=
"scope.scope.showImageUrl"
/>
<el-popover
placement=
"top"
width=
"160"
trigger=
"hover"
popper-class=
"table-popover-block"
>
<img
class=
"table-popover-img"
:src=
"scope.scope.showImageUrl"
/>
<img
class=
"img-60 pointer"
slot=
"reference"
:src=
"scope.scope.showImageUrl"
/>
</el-popover>
</div>
<!--
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<GLButton
type=
"text"
fn=
"编辑"
@
click=
"handleEdit(2, scope.scope)"
>
编辑
</GLButton>
...
...
src/views/productGroup/index.vue
View file @
321127c
...
...
@@ -18,7 +18,10 @@
<!-- 表格区域 开始 -->
<GLTable
ref=
"proGroupRef"
class=
"table-img"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<div
slot=
"goodsImage"
class=
"table-image"
slot-scope=
"scope"
>
<img
class=
"img-60"
:src=
"scope.scope.goodsImage"
/>
<el-popover
placement=
"top"
width=
"160"
trigger=
"hover"
popper-class=
"table-popover-block"
>
<img
class=
"table-popover-img"
:src=
"scope.scope.goodsImage"
/>
<img
class=
"img-60 pointer"
slot=
"reference"
:src=
"scope.scope.goodsImage"
/>
</el-popover>
</div>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"handleUpOrDown(scope.scope)"
>
{{
scope
.
scope
.
goodsStatus
?
'下架'
:
'上架'
}}
</el-button>
...
...
@@ -333,10 +336,10 @@ export default {
this
.
$refs
.
proGroupRef
.
data
.
forEach
(
item
=>
{
item
.
saleAmount
=
item
.
goodsStatistics
.
saleAmount
if
(
item
.
specificationDetailList
.
length
>
1
)
{
let
retailPriceList
=
item
.
specificationDetailList
.
sort
(
function
(
a
,
b
)
{
let
retailPriceList
=
item
.
specificationDetailList
.
sort
(
function
(
a
,
b
)
{
return
a
.
retailPrice
-
b
.
retailPrice
})
let
stockeList
=
item
.
specificationDetailList
.
sort
(
function
(
a
,
b
)
{
let
stockeList
=
item
.
specificationDetailList
.
sort
(
function
(
a
,
b
)
{
return
a
.
stock
-
b
.
stock
})
let
minRatilPrice
=
retailPriceList
[
0
].
retailPrice
/
100
...
...
src/views/productStore/index.vue
View file @
321127c
...
...
@@ -18,7 +18,10 @@
<!-- 表格区域 开始 -->
<GLTable
ref=
"proGroupRef"
class=
"table-img"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<template
slot=
"goodsImage"
slot-scope=
"scope"
>
<img
class=
"img-60"
:src=
"scope.scope.goodsImage"
/>
<el-popover
placement=
"top"
width=
"160"
trigger=
"hover"
popper-class=
"table-popover-block"
>
<img
class=
"table-popover-img"
:src=
"scope.scope.goodsImage"
/>
<img
class=
"img-60 pointer"
slot=
"reference"
:src=
"scope.scope.goodsImage"
/>
</el-popover>
</
template
>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<!-- <el-button v-if="!scope.scope.goodsStatus" type="text" @click="handleEdit(2, scope.scope)">编辑</el-button> -->
...
...
@@ -293,7 +296,7 @@ export default {
handleDwonNotice
(
row
)
{
this
.
$alert
(
'你带货的'
+
row
.
goodsName
+
'商品现已下架,下架原因:'
+
row
.
offReason
,
'商品下架通知'
,
{
confirmButtonText
:
'确定'
,
callback
:
action
=>
{}
callback
:
action
=>
{
}
})
},
handleUpOrDown
(
row
)
{
...
...
@@ -383,10 +386,10 @@ export default {
this
.
$refs
.
proGroupRef
.
data
.
forEach
(
item
=>
{
item
.
saleAmount
=
item
.
goodsStatistics
.
saleAmount
if
(
item
.
specificationDetailList
.
length
>
1
)
{
let
retailPriceList
=
item
.
specificationDetailList
.
sort
(
function
(
a
,
b
)
{
let
retailPriceList
=
item
.
specificationDetailList
.
sort
(
function
(
a
,
b
)
{
return
a
.
retailPrice
-
b
.
retailPrice
})
let
stockeList
=
item
.
specificationDetailList
.
sort
(
function
(
a
,
b
)
{
let
stockeList
=
item
.
specificationDetailList
.
sort
(
function
(
a
,
b
)
{
return
a
.
stock
-
b
.
stock
})
let
minRatilPrice
=
retailPriceList
[
0
].
retailPrice
/
100
...
...
src/views/takeGood/index.vue
View file @
321127c
...
...
@@ -16,12 +16,10 @@
<!-- 表格区域 开始 -->
<GLTable
ref=
"takeGoodRef"
class=
"table-img"
:getListApi=
"getListApi"
:noDataImg=
"url"
:searchForm=
"tableSearchForm"
:tableParams=
"tableParams"
:pageConf=
"pageConf"
:beforeSearchFn=
"beforeSearchFn"
@
setTableFinishFun=
"setTableFinishFun"
>
<div
slot=
"goodsImage"
slot-scope=
"scope"
>
<!--
<el-tooltip
placement=
"top"
trigger=
"hover"
popper-class=
"table-show-img"
effect=
"light"
:visible-arrow=
"false"
>
<div
slot=
"content"
class=
"table-show-img"
>
<img
class=
"img-w-100"
:src=
"scope.scope.goods.goodsImage"
/>
</div>
-->
<img
class=
"img-60"
:src=
"scope.scope.goods.goodsImage"
/>
<!--
</el-tooltip>
-->
<el-popover
placement=
"top"
width=
"160"
trigger=
"hover"
popper-class=
"table-popover-block"
>
<img
class=
"table-popover-img"
:src=
"scope.scope.goods.goodsImage"
/>
<img
class=
"img-60 pointer"
slot=
"reference"
:src=
"scope.scope.goods.goodsImage"
/>
</el-popover>
</div>
<div
class=
"table-btns"
slot=
"auth-button"
slot-scope=
"scope"
>
<el-button
v-if=
"!scope.scope.taked"
type=
"text"
@
click=
"handleSingleTakeGood(scope.scope)"
>
带货
</el-button>
...
...
@@ -44,6 +42,7 @@ export default {
return
{
size
:
'small'
,
url
:
url
,
hideAfter
:
100000
,
searchForm
:
{
goodsName
:
''
,
createDate
:
[]
...
...
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