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 bf0c863e
authored
Aug 17, 2022
by
杨北旺
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
style:修改样式
1 parent
3bab88b8
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
156 additions
and
51 deletions
src/assets/css/tao.css
src/components/table-tooltip/index.vue
src/mixins/carMixin.js
src/mixins/goodsMixin.js
src/views/collection/index.vue
src/views/goods/index.vue
src/views/list/index.vue
src/views/order/index.vue
src/views/rightsCard/index.vue
src/assets/css/tao.css
View file @
bf0c863
...
...
@@ -232,7 +232,7 @@ img {
box-shadow
:
0
10px
20px
0
rgba
(
88
,
80
,
255
,
0.1
);
}
.tableBox
{
padding
:
20px
2
0px
10px
20px
;
padding
:
20px
0px
10px
20px
;
border
:
0
;
outline
:
0
;
font-size
:
100%
;
...
...
@@ -267,9 +267,7 @@ img {
padding
:
3px
10px
;
width
:
215px
;
}
.el-button
+
.el-button
{
margin-left
:
20px
;
}
.el-dialog__body
{
padding
:
0px
20px
;
color
:
#606266
;
...
...
src/components/table-tooltip/index.vue
View file @
bf0c863
...
...
@@ -8,7 +8,7 @@
>
<el-button
slot=
"reference"
icon=
"el-icon-
warning
"
icon=
"el-icon-
question
"
circle
></el-button>
</el-popover>
...
...
src/mixins/carMixin.js
View file @
bf0c863
...
...
@@ -21,10 +21,18 @@ export default {
minWidth
:
'200'
,
},
{
label
:
'权益图标\n(80*80,支持JPG、PNG、GIF'
,
//
label: '权益图标\n(80*80,支持JPG、PNG、GIF',
prop
:
'carImage'
,
minWidth
:
'200'
,
addHtml
:
'carImage'
addHtml
:
'carImage'
,
renderHeader
:
h
=>
{
return
h
(
'div'
,
{
class
:
'table-header specHeader'
},
[
h
(
'span'
,
'权益图标'
),
h
(
'table-tooltip'
,
{
props
:
{
content
:
'80*80,支持JPG、PNG、GIF'
}
})
])
},
},
{
label
:
'服务提供方'
,
...
...
src/mixins/goodsMixin.js
View file @
bf0c863
...
...
@@ -24,10 +24,18 @@ export default {
minWidth
:
'200'
,
},
{
label
:
'权益图标\n(80*80,支持JPG、PNG、GIF)'
,
//
label: '权益图标\n(80*80,支持JPG、PNG、GIF)',
minWidth
:
'200'
,
prop
:
'goodsImage'
,
addHtml
:
'goodsImage'
,
renderHeader
:
h
=>
{
return
h
(
'div'
,
{
class
:
'table-header specHeader'
},
[
h
(
'span'
,
'权益图标'
),
h
(
'table-tooltip'
,
{
props
:
{
content
:
'80*80,支持JPG、PNG、GIF'
}
})
])
},
},
{
label
:
'品牌名称'
,
...
...
src/views/collection/index.vue
View file @
bf0c863
...
...
@@ -4,7 +4,7 @@
<el-tabs
v-model=
"activeName"
type=
"card"
@
tab-click=
"handleClick"
>
<el-tab-pane
label=
"批次管理"
name=
"first"
class=
"contain"
id=
"batch"
>
<GLButton
fn=
"批量生成权益卡"
type=
"primary"
size=
"small"
@
click=
"dialogVisible = true"
>
批量生成权益卡
</GLButton>
<div
style=
"height:16px"
></div>
<div
style=
"height:
16px"
></div>
<GLCombiForm
:rowNumber=
"1"
ref=
"managerRef"
:formObj=
"batchListSearch"
:formData=
"managerForm"
@
handleOk=
"selectCollectionTable('select')"
@
handleRest=
"selectCollectionTable('reset')"
>
<div
slot=
"merchant"
>
<el-select
v-model=
"batchListSearch.merchantName"
size=
"small"
clearable
filterable
remote
reserve-keyword
placeholder=
"请输入关联门店"
:remote-method=
"remoteMethod"
:loading=
"loading"
class=
"formItem"
>
...
...
@@ -19,7 +19,7 @@
</span>
</GLTable>
<!-- 批次界面弹窗 -->
<GLDialog
mode=
'big'
bigTitle=
"权益卡信息"
:visible
.
sync=
"batchdetailsVisible"
:before-close=
"detailClose"
>
<GLDialog
mode=
"big"
bigTitle=
"权益卡信息"
:visible
.
sync=
"batchdetailsVisible"
:before-close=
"detailClose"
>
<el-form
:inline=
"true"
:model=
"cardsInformationForm"
class=
"demo-form-inline detailFont"
label-width=
"90px"
>
<el-row>
<el-form-item
label=
"门店:"
class=
"detailItem"
>
...
...
@@ -69,7 +69,7 @@
</span>
</GLDialog>
<!-- 批量生成权益卡弹窗 -->
<GLDialog
mode=
'mid'
title=
"批量生成权益卡"
:visible
.
sync=
"dialogVisible"
:before-close=
"handleClose"
>
<GLDialog
mode=
"mid"
title=
"批量生成权益卡"
:visible
.
sync=
"dialogVisible"
:before-close=
"handleClose"
>
<el-form
:inline=
"true"
:model=
"generateRightCardsForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"90px"
class=
"addCardsForm"
>
<div
class=
"form"
>
<el-row>
...
...
@@ -204,7 +204,7 @@ export default {
batchTableParams
:
{
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
listName
:
'list'
,
tableOption
:
true
,
//
tableOption: true,
tableColumns
:
[
{
label
:
'批次'
,
...
...
@@ -219,13 +219,11 @@ export default {
label
:
'生成数量'
,
prop
:
'num'
,
width
:
'120'
// tagLabel: true
},
{
label
:
'激活数量'
,
prop
:
'recipientCount'
,
width
:
'150'
,
// minWidth: '200'
formatter
:
cellValue
=>
{
if
(
cellValue
.
recipientCount
)
{
return
cellValue
.
recipientCount
...
...
@@ -241,20 +239,16 @@ export default {
formatter
:
cellValue
=>
{
return
this
.
date_format
(
cellValue
.
createdDate
)
}
// formatter: (cellValue) => {
// return {
// 0: '进行中',
// 1: '未完成',
// 2: '已过期',
// 3: '线下关闭',
// 4: '线上关闭'
// }[cellValue.status]
// }
},
{
label
:
'备注'
,
prop
:
'remarks'
// minWidth: '200'
},
{
label
:
'操作'
,
width
:
70
,
fixed
:
'right'
,
addHtml
:
'auth-button'
}
]
},
...
...
@@ -316,7 +310,7 @@ export default {
name
:
'colletionDate'
,
type
:
'datePicker'
,
valueFormat
:
'yyyy-MM-dd'
,
isClear
:
true
isClear
:
true
},
{
label
:
'门店'
,
...
...
src/views/goods/index.vue
View file @
bf0c863
...
...
@@ -12,9 +12,10 @@
<div
class=
"table_wrap"
>
<GLTable
ref=
"table"
:pageConf=
"pageConf"
:noDataImg=
"url"
@
setTableFinishFun=
"setTableFinishFun"
:searchForm=
"searchForm"
:tableParams=
"tableParams"
:getListApi=
"getListApi"
>
<div
slot=
"table-btns"
slot-scope=
"scope"
>
<GLButton
fn=
"编辑商品"
type=
"text"
@
click=
"jump(scope.scope)"
>
编辑
</GLButton>
<GLTableButton
:buttonList=
"buttonList"
:buttonItem=
"scope"
:buttonNum=
"3"
></GLTableButton>
<!--
<GLButton
fn=
"编辑商品"
type=
"text"
@
click=
"jump(scope.scope)"
>
编辑
</GLButton>
<GLButton
fn=
"复制商品"
type=
"text"
@
click=
"copy(scope.scope)"
>
复制
</GLButton>
<el-button
type=
"text"
:disabled=
"!scope.scope.groupStatus || scope.scope.status != 1"
@
click=
"toCreateLine(scope.scope)"
>
生成商品短链
</el-button>
<el-button
type=
"text"
:disabled=
"!scope.scope.groupStatus || scope.scope.status != 1"
@
click=
"toCreateLine(scope.scope)"
>
生成商品短链
</el-button>
-->
</div>
</GLTable>
</div>
...
...
@@ -124,7 +125,49 @@ export default {
isClear
:
true
}
],
buttonList
:
[],
buttonList
:
[
{
type
:
'GLButton'
,
name
:
row
=>
{
return
'编辑'
},
attrs
:
{
type
:
'text'
,
fn
:
'编辑商品'
},
listeners
:
{
click
:
row
=>
this
.
jump
(
row
.
scope
)
}
},
{
type
:
'GLButton'
,
name
:
row
=>
{
return
'复制'
},
attrs
:
{
type
:
'text'
,
fn
:
'复制商品'
},
listeners
:
{
click
:
row
=>
this
.
copy
(
row
.
scope
)
}
},
{
type
:
'el-button'
,
name
:
row
=>
{
return
'生成商品短链'
},
attrs
:
{
type
:
'text'
,
disabled
:
row
=>
{
return
!
row
.
scope
.
groupStatus
||
row
.
scope
.
status
!=
1
}
},
listeners
:
{
click
:
row
=>
this
.
toCreateLine
(
row
.
scope
)
}
}
],
supplierList
:
[
{
label
:
'海威'
,
...
...
@@ -202,8 +245,7 @@ export default {
},
{
label
:
'操作'
,
prop
:
''
,
width
:
'200px'
,
width
:
170
,
fixed
:
'right'
,
addHtml
:
'table-btns'
}
...
...
src/views/list/index.vue
View file @
bf0c863
...
...
@@ -15,9 +15,10 @@
<img
class=
"equity-icon"
:src=
"scope.scope.equityIcon"
/>
</div>
<span
slot=
"auth-button"
slot-scope=
"scope"
:data=
"scope.scope"
>
<GLButton
fn=
"汽车权益编辑"
type=
"text"
class=
"tableBtn"
@
click=
"editEquity(scope.scope, 1)"
>
编辑
</GLButton>
<GLTableButton
:buttonList=
"buttonListcar"
:buttonItem=
"scope"
:buttonNum=
"3"
></GLTableButton>
<!--
<GLButton
fn=
"汽车权益编辑"
type=
"text"
class=
"tableBtn"
@
click=
"editEquity(scope.scope, 1)"
>
编辑
</GLButton>
<GLButton
fn=
"汽车权益上/下架"
type=
"text"
class=
"tableBtn"
@
click=
"updateShelves(scope.scope, 'car')"
>
{{
scope
.
scope
.
status
==
0
?
'上架'
:
'下架'
}}
</GLButton>
<el-button
type=
"text"
class=
"tableBtn"
@
click=
"setTop(scope.scope.id, 'car')"
>
置顶
</el-button>
<el-button
type=
"text"
class=
"tableBtn"
@
click=
"setTop(scope.scope.id, 'car')"
>
置顶
</el-button>
-->
</span>
</GLTable>
</div>
...
...
@@ -87,6 +88,46 @@ export default {
isEdit
:
false
,
dialogType
:
1
,
editData
:
{},
buttonListcar
:
[
{
type
:
'GLButton'
,
name
:
row
=>
{
return
'编辑'
},
attrs
:
{
type
:
'text'
,
fn
:
'汽车权益编辑'
},
listeners
:
{
click
:
row
=>
this
.
editEquity
(
row
.
scope
,
1
)
}
},
{
type
:
'GLButton'
,
name
:
row
=>
{
return
row
.
scope
.
status
==
0
?
'上架'
:
'下架'
},
attrs
:
{
type
:
'text'
,
fn
:
'汽车权益上/下架'
},
listeners
:
{
click
:
row
=>
this
.
updateShelves
(
row
.
scope
,
'car'
)
}
},
{
type
:
'el-button'
,
name
:
row
=>
{
return
'置顶'
},
attrs
:
{
type
:
'text'
},
listeners
:
{
click
:
row
=>
this
.
setTop
(
row
.
scope
.
id
,
'car'
)
}
}
],
buttonList
:
[
{
type
:
'GLButton'
,
...
...
@@ -133,9 +174,9 @@ export default {
},
attrs
:
{
type
:
'text'
,
disabled
:
row
=>
{
disabled
:
row
=>
{
return
row
.
scope
.
status
==
0
?
false
:
true
}
,
}
},
listeners
:
{
click
:
row
=>
this
.
deletEquity
(
row
.
scope
.
id
)
...
...
@@ -223,7 +264,7 @@ export default {
}
if
(
status
==
0
)
{
this
.
$confirm
(
'是否下架权益'
,
'提示'
,
{
type
:
'warning'
,
type
:
'warning'
}).
then
(()
=>
{
callBack
()
})
...
...
@@ -236,6 +277,15 @@ export default {
</
script
>
<
style
src=
"@a/css/tao.css"
></
style
>
<
style
lang=
"scss"
scoped
>
::v-deep
.table-header
{
display
:
inline-flex
!important
;
align-items
:
center
;
justify-content
:
center
;
padding
:
0
!important
;
.el-button
{
min-width
:
0
;
}
}
.equity-title
{
font-size
:
16px
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
...
...
@@ -334,10 +384,10 @@ export default {
display
:
flex
;
flex-direction
:
row
;
}
.tagsCtn
.wrap
{
.tagsCtn
.wrap
{
width
:
112px
;
height
:
100px
;
.addTag{
.addTag
{
width
:
112px
;
height
:
100px
;
}
...
...
src/views/order/index.vue
View file @
bf0c863
...
...
@@ -114,7 +114,6 @@ export default {
tableParams
:
{
listName
:
'list'
,
getListApi
:
this
.
$apis
.
orderApi
.
getOrderList
,
tableOption
:
true
,
tableColumns
:
[
{
label
:
'商品信息'
,
...
...
@@ -183,6 +182,12 @@ export default {
label
:
'海威订单号'
,
minWidth
:
'220'
,
prop
:
'thirdOrderCode'
},
{
label
:
'操作'
,
width
:
100
,
fixed
:
'right'
,
addHtml
:
'auth-button'
}
]
}
...
...
src/views/rightsCard/index.vue
View file @
bf0c863
...
...
@@ -262,28 +262,24 @@ export default {
tableParams
:
{
btnId
:
new
Date
().
getTime
()
+
parseInt
(
Math
.
random
()
*
1000
),
listName
:
'list'
,
tableOption
:
true
,
tableColumns
:
[
{
label
:
'权益卡名称'
,
prop
:
'cardClassName'
// minWidth: '200'
prop
:
'cardClassName'
,
width
:
200
,
line
:
1
},
{
label
:
'门店名称'
,
prop
:
'merchantName'
,
minWidth
:
'200'
// formatter: (cellValue) => {
// let arr = []
// cellValue.memberRights.map(e => {
// if (e) arr.push(e.name)
// })
// return arr.join('、')
// }
width
:
200
,
line
:
1
},
{
label
:
'有效期'
,
prop
:
'effectiveType'
,
width
:
200
,
line
:
1
,
formatter
:
cellValue
=>
{
if
(
cellValue
.
effectiveType
==
1
)
{
return
'长期有效'
...
...
@@ -307,8 +303,6 @@ export default {
{
label
:
'领卡用户'
,
prop
:
'recipientCount'
,
// width: 110,
// tagLabel: true
addHtml
:
'recipientCount'
},
{
...
...
@@ -325,6 +319,12 @@ export default {
formatter
:
cellValue
=>
{
return
this
.
date_format
(
cellValue
.
createDate
)
}
},
{
label
:
'操作'
,
width
:
150
,
fixed
:
'right'
,
addHtml
:
'auth-button'
}
]
}
...
...
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