Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
glsx-web
/
sso-equity
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 1e36c3c5
authored
Dec 01, 2021
by
zhouzy
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
table高度
1 parent
b15dbcb4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
10 deletions
src/views/list/index.vue
src/views/list/index.vue
View file @
1e36c3c
...
@@ -2,10 +2,13 @@
...
@@ -2,10 +2,13 @@
<div
class=
"container"
>
<div
class=
"container"
>
<div
class=
"layout"
>
<div
class=
"layout"
>
<div
class=
"equity-title"
>
商品权益
</div>
<div
class=
"equity-title"
>
商品权益
</div>
<div
class=
"tableBox"
style=
"margin-top:16px"
>
<div
class=
"tableBox"
style=
"margin-top: 16px"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"addEquity(1)"
><i
class=
"el-icon-plus"
></i><span
style=
"margin-left: 8px"
>
添加汽车权益
</span></el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"addEquity(1)"
>
<i
class=
"el-icon-plus"
></i>
<span
style=
"margin-left: 8px"
>
添加汽车权益
</span>
</el-button>
<div
class=
"tableCtn noneOperation"
>
<div
class=
"tableCtn noneOperation"
>
<GLTable
ref=
"carTable"
:tableParams=
"carTableParams"
:pageConf=
"cardsDatail"
tableHeightValues=
"320"
:getListApi=
"getCardListApi"
>
<GLTable
ref=
"carTable"
:tableParams=
"carTableParams"
:pageConf=
"cardsDatail"
:getListApi=
"getCardListApi"
>
<div
slot=
"mainPageFlag"
slot-scope=
"scope"
>
<div
slot=
"mainPageFlag"
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"carsDisplay(scope.scope)"
>
{{
scope
.
scope
.
mainPageFlag
==
1
?
'取消首页展示'
:
'首页展示'
}}
</el-button>
<el-button
type=
"text"
@
click=
"carsDisplay(scope.scope)"
>
{{
scope
.
scope
.
mainPageFlag
==
1
?
'取消首页展示'
:
'首页展示'
}}
</el-button>
</div>
</div>
...
@@ -21,7 +24,10 @@
...
@@ -21,7 +24,10 @@
</div>
</div>
</div>
</div>
<div
class=
"tableBox secondBox"
>
<div
class=
"tableBox secondBox"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"addEquity(2)"
><i
class=
"el-icon-plus"
></i><span
style=
"margin-left: 8px"
>
添加门店权益
</span></el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"addEquity(2)"
>
<i
class=
"el-icon-plus"
></i>
<span
style=
"margin-left: 8px"
>
添加门店权益
</span>
</el-button>
<div
class=
"tags-box"
>
<div
class=
"tags-box"
>
<template
v-for=
"(item, index) in tags"
>
<template
v-for=
"(item, index) in tags"
>
<el-tag
:key=
"index"
effect=
"dark"
:type=
"item.active ? '' : 'info'"
@
click
.
native=
"changeGoodsCategory(
{ id: item.id, index })" :ref="`tag-${index}`" @dblclick.native="showInput(index, item.goodsCategory)">
<el-tag
:key=
"index"
effect=
"dark"
:type=
"item.active ? '' : 'info'"
@
click
.
native=
"changeGoodsCategory(
{ id: item.id, index })" :ref="`tag-${index}`" @dblclick.native="showInput(index, item.goodsCategory)">
...
@@ -31,11 +37,14 @@
...
@@ -31,11 +37,14 @@
</el-tag>
</el-tag>
</
template
>
</
template
>
<el-input
class=
"input-new-tag"
v-if=
"inputVisible"
v-model=
"tagInputValue"
ref=
"saveTagInput"
size=
"small"
@
keyup
.
enter
.
native=
"handleInputConfirm"
@
blur=
"handleInputConfirm"
maxlength=
"8"
></el-input>
<el-input
class=
"input-new-tag"
v-if=
"inputVisible"
v-model=
"tagInputValue"
ref=
"saveTagInput"
size=
"small"
@
keyup
.
enter
.
native=
"handleInputConfirm"
@
blur=
"handleInputConfirm"
maxlength=
"8"
></el-input>
<el-button
class=
"addTag"
size=
"small"
@
click=
"showAddInput"
v-else
><i
class=
"el-icon-plus"
></i><span
style=
"margin-left: 8px"
>
添加分类
</span></el-button>
<el-button
class=
"addTag"
size=
"small"
@
click=
"showAddInput"
v-else
>
<i
class=
"el-icon-plus"
></i>
<span
style=
"margin-left: 8px"
>
添加分类
</span>
</el-button>
</div>
</div>
<div
class=
"tableCtn"
>
<div
class=
"tableCtn"
>
<GLTable
ref=
"
car
Table"
:tableParams=
"goodsTableParams"
:tableData=
"goodsTableData"
:pageConf=
"goodsDatail"
>
<GLTable
ref=
"
goods
Table"
:tableParams=
"goodsTableParams"
:tableData=
"goodsTableData"
:pageConf=
"goodsDatail"
>
<div
slot=
"mainPageFlag"
slot-scope=
"scope"
>
<div
slot=
"mainPageFlag"
slot-scope=
"scope"
>
<el-button
type=
"text"
@
click=
"goodsDisplay(scope.scope)"
>
{{ scope.scope.mainPageFlag == 1 ? '取消首页展示' : '首页展示' }}
</el-button>
<el-button
type=
"text"
@
click=
"goodsDisplay(scope.scope)"
>
{{ scope.scope.mainPageFlag == 1 ? '取消首页展示' : '首页展示' }}
</el-button>
</div>
</div>
...
@@ -63,7 +72,7 @@ export default {
...
@@ -63,7 +72,7 @@ export default {
mixins
:
[
carMixin
,
goodsMixin
],
mixins
:
[
carMixin
,
goodsMixin
],
data
()
{
data
()
{
return
{
return
{
getCardListApi
:
this
.
$apis
.
carEquityManageApi
.
getCarList
,
getCardListApi
:
this
.
$apis
.
carEquityManageApi
.
getCarList
,
goodsDatail
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
goodsDatail
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'total'
},
cardsDatail
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'data.total'
},
cardsDatail
:
{
pageSize
:
'pageSize'
,
pageNum
:
'pageNum'
,
totalCount
:
'data.total'
},
showDialog
:
false
,
showDialog
:
false
,
...
@@ -73,6 +82,8 @@ export default {
...
@@ -73,6 +82,8 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
this
.
$refs
.
goodsTable
.
tableHeightValues
=
'320'
this
.
$refs
.
carTable
.
tableHeightValues
=
'320'
this
.
init
()
this
.
init
()
},
},
methods
:
{
methods
:
{
...
@@ -177,8 +188,8 @@ export default {
...
@@ -177,8 +188,8 @@ export default {
}
}
.tags-box
{
.tags-box
{
padding
:
20px
0
10px
;
padding
:
20px
0
10px
;
background
:
#F4F6FC
;
background
:
#f4f6fc
;
border-radius
:
4px
;
border-radius
:
4px
;
}
}
.el-tag
+
.el-tag
{
.el-tag
+
.el-tag
{
margin-left
:
10px
;
margin-left
:
10px
;
...
@@ -244,7 +255,7 @@ export default {
...
@@ -244,7 +255,7 @@ export default {
.fixedHeight
{
.fixedHeight
{
height
:
45px
;
height
:
45px
;
}
}
.secondBox
{
.secondBox
{
margin-top
:
50px
;
margin-top
:
50px
;
}
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
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