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 5aec3330
authored
Dec 06, 2021
by
zhouzy
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
1
1 parent
f6bc542f
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
209 additions
and
108 deletions
src/assets/css/tao.css
src/components/equity-dialog/index.vue
src/views/collection/index.vue
src/views/list/index.vue
src/views/rightsCard/index.vue
src/assets/css/tao.css
View file @
5aec333
...
@@ -273,4 +273,19 @@ img {
...
@@ -273,4 +273,19 @@ img {
.el-button
+
.el-button
{
.el-button
+
.el-button
{
margin-left
:
20px
;
margin-left
:
20px
;
}
}
.el-dialog__body
{
padding
:
0px
20px
;
color
:
#606266
;
font-size
:
14px
;
word-break
:
break-all
;
}
.baseinformation
{
width
:
100%
;
height
:
28px
;
border-bottom
:
1px
solid
#d8d8d8
;
}
.titleText
{
margin-left
:
20px
;
line-height
:
28px
;
}
/*# sourceMappingURL=tao.css.map */
/*# sourceMappingURL=tao.css.map */
\ No newline at end of file
\ No newline at end of file
src/components/equity-dialog/index.vue
View file @
5aec333
<
template
>
<
template
>
<div
class=
"equity-dialog"
>
<div
class=
"equity-dialog"
>
<el-dialog
:title=
"type == 1 ? '汽车权益' : '商品权益'"
:visible
.
sync=
"show"
:show-close=
"false"
:close-on-press-escape=
"false"
:close-on-click-modal=
"false"
>
<el-dialog
title=
""
:visible
.
sync=
"show"
:show-close=
"false"
:close-on-press-escape=
"false"
:close-on-click-modal=
"false"
width=
"712px"
class=
"equityDialog"
>
<el-form
:model=
"form"
:rules=
"rules"
ref=
"ruleForm"
label-position=
"left"
>
<div
class=
"baseinformation"
>
<el-form-item
v-if=
"type == 1"
label=
"服务提供方"
prop=
"supplier"
>
<span
class=
"titleDialogText"
>
{{
type
==
1
?
'添加汽车权益'
:
'添加商品权益'
}}
</span>
<el-select
v-model=
"form.supplier"
@
change=
"changeSupplier"
>
</div>
<el-option
v-for=
"item in supplierList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
<div
class=
"form"
>
</el-select>
<el-form
class=
"equityForm"
:model=
"form"
:rules=
"rules"
ref=
"ruleForm"
label-position=
"right"
label-width=
"auto"
>
</el-form-item>
<el-form-item
v-if=
"type == 1"
label=
"服务提供方"
prop=
"supplier"
>
<template
v-if=
"type == 2"
>
<el-select
v-model=
"form.supplier"
@
change=
"changeSupplier"
size=
"small"
>
<el-form-item
label=
"产品提供方"
prop=
"supplier"
>
<el-option
v-for=
"item in supplierList"
:key=
"item.value"
:label=
"item.label"
:value=
"item.value"
></el-option>
<el-select
v-model=
"form.supplier"
>
<el-option
label=
"海威"
value=
"HW"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"选择品牌"
prop=
"brandName"
>
<el-select
v-model=
"form.brandName"
@
change=
"changeBrandName"
filterable
>
<el-option
v-for=
"item in brandList"
:key=
"item.brandName"
:value=
"item.brandName"
:label=
"item.brandName"
></el-option>
</el-select>
</el-form-item>
<el-form-item
label=
"商品形态"
prop=
"appearance"
v-if=
"form.brandName"
>
<el-select
v-model=
"form.appearance"
>
<el-option
v-for=
"item in appearanceList"
:key=
"item.appearance"
:value=
"item.label"
:label=
"item.label"
></el-option>
</el-select>
</el-select>
</el-form-item>
</el-form-item>
</
template
>
<template
v-if=
"type == 2"
>
<div
class=
"flex"
>
<el-form-item
label=
"产品提供方"
prop=
"supplier"
>
<el-form-item
label=
"权益名称"
prop=
"equityName"
>
<el-select
v-model=
"form.supplier"
size=
"small"
>
<el-input
v-model=
"form.equityName"
:maxlength=
"type == 1 ? 8 : 6"
></el-input>
<el-option
label=
"海威"
value=
"HW"
></el-option>
</el-form-item>
</el-select>
</div>
</el-form-item>
<div
class=
"flex"
>
<el-form-item
label=
"选择品牌"
prop=
"brandName"
>
<el-form-item
label=
"描述"
prop=
"equityDesc"
>
<el-select
v-model=
"form.brandName"
@
change=
"changeBrandName"
filterable
size=
"small"
>
<el-input
v-model=
"form.equityDesc"
:maxlength=
"type == 1 ? 8 : 6"
></el-input>
<el-option
v-for=
"item in brandList"
:key=
"item.brandName"
:value=
"item.brandName"
:label=
"item.brandName"
></el-option>
</el-form-item>
</el-select>
</div>
</el-form-item>
<div>
<el-form-item
label=
"商品形态"
prop=
"appearance"
v-if=
"form.brandName"
>
<el-form-item
label=
"图标"
required
prop=
"equityIcon"
>
<el-select
v-model=
"form.appearance"
size=
"small"
>
<el-upload
action=
"#"
class=
"avatar-uploader"
:show-file-list=
"false"
:before-upload=
"upLoadImg"
>
<el-option
v-for=
"item in appearanceList"
:key=
"item.appearance"
:value=
"item.label"
:label=
"item.label"
></el-option>
<img
v-if=
"form.equityIcon"
:src=
"form.equityIcon"
class=
"avatar"
/>
</el-select>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
</el-form-item>
</el-upload>
</
template
>
</el-form-item>
<div
class=
"flex"
>
</div>
<el-form-item
label=
"权益名称"
prop=
"equityName"
>
</el-form>
<el-input
size=
"small"
v-model=
"form.equityName"
:maxlength=
"type == 1 ? 8 : 6"
placeholder=
"请输入权益名称"
></el-input>
</el-form-item>
</div>
<div
class=
"flex"
>
<el-form-item
label=
"描述"
prop=
"equityDesc"
>
<el-input
size=
"small"
v-model=
"form.equityDesc"
:maxlength=
"type == 1 ? 8 : 6"
placeholder=
"请输入"
></el-input>
</el-form-item>
</div>
<div>
<el-form-item
label=
"图标"
required
prop=
"equityIcon"
>
<el-upload
action=
"#"
class=
"avatar-uploader"
:show-file-list=
"false"
:before-upload=
"upLoadImg"
>
<img
v-if=
"form.equityIcon"
:src=
"form.equityIcon"
class=
"avatar"
/>
<i
v-else
class=
"el-icon-plus avatar-uploader-icon"
></i>
</el-upload>
<div
class=
"suggestion"
>
建议尺寸:80*80像素,支持jpg,png。
</div>
</el-form-item>
</div>
</el-form>
</div>
<div
slot=
"footer"
class=
"dialog-footer"
>
<div
slot=
"footer"
class=
"dialog-footer"
>
<el-button
size=
"small"
@
click=
"close"
>
取 消
</el-button>
<el-button
size=
"small"
@
click=
"close"
>
取 消
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"submit(type)"
>
确 定
</el-button>
<el-button
size=
"small"
type=
"primary"
@
click=
"submit(type)"
>
确 定
</el-button>
...
@@ -65,8 +71,8 @@ export default {
...
@@ -65,8 +71,8 @@ export default {
return
{
return
{
form
:
{
form
:
{
appearance
:
''
,
appearance
:
''
,
equityName
:
''
,
equityName
:
''
,
brandName
:
''
brandName
:
''
},
},
brandList
:
[],
brandList
:
[],
appearanceList
:
[],
appearanceList
:
[],
...
@@ -139,8 +145,7 @@ export default {
...
@@ -139,8 +145,7 @@ export default {
},
},
methods
:
{
methods
:
{
close
()
{
close
()
{
this
.
form
.
appearance
=
''
,
;(
this
.
form
.
appearance
=
''
),
(
this
.
form
.
equityName
=
''
)
this
.
form
.
equityName
=
''
this
.
$emit
(
'update:show'
,
false
)
this
.
$emit
(
'update:show'
,
false
)
this
.
$emit
(
'update:isEdit'
,
false
)
this
.
$emit
(
'update:isEdit'
,
false
)
this
.
$refs
.
ruleForm
.
resetFields
()
this
.
$refs
.
ruleForm
.
resetFields
()
...
@@ -229,8 +234,10 @@ export default {
...
@@ -229,8 +234,10 @@ export default {
}
}
}
}
</
script
>
</
script
>
<
style
scope
>
<
style
scope
>
.equity-dialog
{
padding
:
0
;
}
.flex
{
.flex
{
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
...
@@ -242,15 +249,14 @@ export default {
...
@@ -242,15 +249,14 @@ export default {
border-radius
:
6px
;
border-radius
:
6px
;
cursor
:
pointer
;
cursor
:
pointer
;
position
:
relative
;
position
:
relative
;
width
:
80px
;
width
:
100px
;
height
:
80px
;
height
:
100px
;
margin-left
:
80px
;
}
}
.avatar-uploader-icon
{
.avatar-uploader-icon
{
font-size
:
28px
;
font-size
:
28px
;
color
:
#8c939d
;
color
:
#8c939d
;
width
:
8
0px
;
width
:
10
0px
;
height
:
8
0px
;
height
:
10
0px
;
display
:
flex
;
display
:
flex
;
align-items
:
center
;
align-items
:
center
;
justify-content
:
center
;
justify-content
:
center
;
...
@@ -260,4 +266,48 @@ export default {
...
@@ -260,4 +266,48 @@ export default {
height
:
80px
;
height
:
80px
;
display
:
block
;
display
:
block
;
}
}
.baseinformation
{
width
:
100%
;
height
:
28px
;
border-bottom
:
1px
solid
#d8d8d8
;
padding-bottom
:
18px
;
}
.form
{
padding
:
32px
20px
32px
116px
;
}
.equity-dialog
.el-dialog__body
{
padding
:
0px
0px
;
color
:
#606266
;
font-size
:
14px
;
word-break
:
break-all
;
}
.equityForm
.el-input--small
.el-input__inner
{
height
:
32px
;
line-height
:
32px
;
width
:
320px
!important
;
}
.suggestion
{
font-size
:
14px
;
font-family
:
PingFangSC-Regular
,
PingFang
SC
;
font-weight
:
400
;
color
:
#999999
;
line-height
:
20px
;
margin-top
:
8px
;
}
.titleDialogText
{
margin-left
:
20px
;
font-size
:
20px
;
font-family
:
PingFangSC-Medium
,
PingFang
SC
;
font-weight
:
500
;
color
:
#333333
;
line-height
:
28px
;
}
.equityDialog
.el-dialog__footer
{
padding
:
10px
20px
20px
;
text-align
:
center
;
-webkit-box-sizing
:
border-box
;
box-sizing
:
border-box
;
border-top
:
1px
solid
#E6E6E6
;
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/collection/index.vue
View file @
5aec333
<!--批次管理-->
<!--批次管理-->
<
template
>
<
template
>
<div
class=
"equity-wrap tap"
>
<div
class=
"equity-wrap tap
tabCtn
"
>
<el-tabs
v-model=
"activeName"
type=
"card"
@
tab-click=
"handleClick"
>
<el-tabs
v-model=
"activeName"
type=
"card"
@
tab-click=
"handleClick"
>
<el-tab-pane
label=
"批次管理"
name=
"first"
>
<el-tab-pane
label=
"批次管理"
name=
"first"
id=
"batch"
>
<div
class=
"contain equity-wrap"
>
<div
class=
"contain equity-wrap"
>
<el-button
type=
"primary"
size=
"small"
@
click=
"dialogVisible = true"
>
批量生成权益卡
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"dialogVisible = true"
>
批量生成权益卡
</el-button>
<el-form
:inline=
"true"
label-width=
"90px"
label-position=
"right"
style=
"margin-top: 20px"
>
<el-form
:inline=
"true"
label-width=
"90px"
label-position=
"right"
style=
"margin-top: 20px"
>
...
@@ -35,7 +35,7 @@
...
@@ -35,7 +35,7 @@
<!-- 批次界面弹窗 -->
<!-- 批次界面弹窗 -->
<el-dialog
title=
""
:visible
.
sync=
"batchdetailsVisible"
width=
"1200px"
:before-close=
"detailClose"
>
<el-dialog
title=
""
:visible
.
sync=
"batchdetailsVisible"
width=
"1200px"
:before-close=
"detailClose"
>
<div
class=
"baseinformation"
><span
class=
"titleText"
>
权益卡信息
</span></div>
<div
class=
"baseinformation"
><span
class=
"titleText"
>
权益卡信息
</span></div>
<el-form
:inline=
"true"
:model=
"cardsInformationForm"
class=
"demo-form-inline detailFont"
label-width=
"90px"
style=
"
margin-left: 52px"
>
<el-form
:inline=
"true"
:model=
"cardsInformationForm"
class=
"demo-form-inline detailFont"
label-width=
"90px"
style=
"margin-left: 52px"
>
<el-row>
<el-row>
<el-form-item
label=
"门店:"
class=
"detailItem"
>
<el-form-item
label=
"门店:"
class=
"detailItem"
>
{{
cardsInformationForm
.
merchantName
}}
{{
cardsInformationForm
.
merchantName
}}
...
@@ -71,7 +71,7 @@
...
@@ -71,7 +71,7 @@
<el-input
v-model=
"batchPopupListSearch.mobile"
placeholder=
"请输入账号"
size=
"small"
class=
"formItem"
></el-input>
<el-input
v-model=
"batchPopupListSearch.mobile"
placeholder=
"请输入账号"
size=
"small"
class=
"formItem"
></el-input>
</el-form-item>
</el-form-item>
<el-form-item
size=
"small"
style=
"float: right"
>
<el-form-item
size=
"small"
style=
"float: right"
>
<el-button
size=
"small"
type=
"primary"
icon=
"el-icon-search"
@
click=
"batchdetailSelect"
>
搜索
</el-button>
<el-button
size=
"small"
type=
"primary"
icon=
"el-icon-search"
@
click=
"batchdetailSelect"
>
搜索
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"exportbatchdetail"
>
导出明细
</el-button>
<el-button
type=
"primary"
size=
"small"
@
click=
"exportbatchdetail"
>
导出明细
</el-button>
</el-form-item>
</el-form-item>
</el-row>
</el-row>
...
@@ -85,25 +85,30 @@
...
@@ -85,25 +85,30 @@
</span>
</span>
</el-dialog>
</el-dialog>
<!-- 批量生成权益卡弹窗 -->
<!-- 批量生成权益卡弹窗 -->
<el-dialog
title=
""
:visible
.
sync=
"dialogVisible"
width=
"712px"
:before-close=
"handleClose"
>
<el-dialog
title=
""
:visible
.
sync=
"dialogVisible"
width=
"712px"
:before-close=
"handleClose"
class=
"batchDialog"
>
<
el-form
:inline=
"true"
:model=
"generateRightCardsForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"90px"
class=
"demo-ruleForm"
>
<
div
class=
"baseinformation"
><span
class=
"titleText"
>
批量生成权益卡
</span></div
>
<div
class=
"baseinformation"
><span
class=
"titleText"
>
批量生成权益卡
</span></div
>
<el-form
:inline=
"true"
:model=
"generateRightCardsForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"90px"
class=
"addCardsForm"
>
<div
class=
"form"
>
<div
class=
"form"
>
<el-form-item
label=
"关联门店:"
prop=
"merchantName"
>
<el-row>
<el-select
v-model=
"generateRightCardsForm.merchantName"
clearable
filterable
remote
reserve-keyword
placeholder=
"请输入关联门店"
:remote-method=
"generateRemoteMethod"
:loading=
"loading"
size=
"small"
style=
"width:423px"
>
<el-form-item
label=
"关联门店:"
prop=
"merchantName"
>
<el-option
v-for=
"(item, index) in generateOptions"
:key=
"index"
:label=
"item.merchantName"
:value=
"item.merchantName"
></el-option>
<el-select
v-model=
"generateRightCardsForm.merchantName"
clearable
filterable
remote
reserve-keyword
placeholder=
"请输入关联门店"
:remote-method=
"generateRemoteMethod"
:loading=
"loading"
size=
"small"
>
</el-select>
<el-option
v-for=
"(item, index) in generateOptions"
:key=
"index"
:label=
"item.merchantName"
:value=
"item.merchantName"
></el-option>
</el-form-item>
</el-select>
<el-form-item
label=
"新建张数:"
prop=
"num"
style=
"width: 100%"
class=
"dialogItem"
>
</el-form-item>
<div
class=
"dialogLine"
>
</el-row>
<el-input-number
:min=
"1"
v-model=
"generateRightCardsForm.num"
size=
"mini"
></el-input-number>
<el-row>
<span
style=
"margin-left: 1px"
>
张
</span>
<el-form-item
label=
"新建张数:"
prop=
"num"
>
</div>
<div
class=
"dialogLine"
>
</el-form-item>
<el-input-number
:min=
"1"
v-model=
"generateRightCardsForm.num"
size=
"mini"
></el-input-number>
<span
style=
"margin-left: 1px"
>
张
</span>
<el-form-item
label=
"备注"
prop=
"remarks"
style=
"width: 80%"
class=
"dialogItem"
>
</div>
<el-input
type=
"textarea"
v-model=
"generateRightCardsForm.remarks"
maxlength=
"200"
></el-input>
</el-form-item>
</el-form-item>
</el-row>
<el-row>
<el-form-item
label=
"备注"
prop=
"remarks"
>
<el-input
type=
"textarea"
v-model=
"generateRightCardsForm.remarks"
maxlength=
"200"
style=
"width:320px"
></el-input>
</el-form-item>
</el-row>
</div>
</div>
</el-form>
</el-form>
<span
slot=
"footer"
class=
"dialog-footer"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
...
@@ -113,9 +118,9 @@
...
@@ -113,9 +118,9 @@
</el-dialog>
</el-dialog>
</el-tab-pane>
</el-tab-pane>
<!--领用记录 -->
<!--领用记录 -->
<el-tab-pane
label=
"领用记录"
name=
"second"
>
<el-tab-pane
label=
"领用记录"
name=
"second"
id=
"collection"
>
<div
class=
"contain equity-wrap"
>
<div
class=
"contain equity-wrap"
>
<el-form
:inline=
"true"
label-width=
"70px"
label-position=
"right"
>
<el-form
:inline=
"true"
label-width=
"70px"
label-position=
"right"
class=
"collectonForm"
>
<el-row
style=
"display: flex; align-items: center"
>
<el-row
style=
"display: flex; align-items: center"
>
<el-form-item
label=
"生成日期"
>
<el-form-item
label=
"生成日期"
>
<el-date-picker
v-model=
"colletionDate"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
size=
"small"
value-format=
"yyyy-MM-dd"
></el-date-picker>
<el-date-picker
v-model=
"colletionDate"
type=
"daterange"
range-separator=
"至"
start-placeholder=
"开始日期"
end-placeholder=
"结束日期"
size=
"small"
value-format=
"yyyy-MM-dd"
></el-date-picker>
...
@@ -129,7 +134,7 @@
...
@@ -129,7 +134,7 @@
<el-input
v-model=
"collectionListSearch.sn"
placeholder=
"请输入设备SN"
size=
"small"
class=
"formItem"
></el-input>
<el-input
v-model=
"collectionListSearch.sn"
placeholder=
"请输入设备SN"
size=
"small"
class=
"formItem"
></el-input>
</el-form-item>
</el-form-item>
</el-row>
</el-row>
<el-row
style=
"margin-top: 18px"
>
<el-row>
<el-form-item
size=
"small"
label=
"账号"
>
<el-form-item
size=
"small"
label=
"账号"
>
<el-input
v-model=
"collectionListSearch.mobile"
placeholder=
"请输入账号"
size=
"small"
class=
"formItem"
></el-input>
<el-input
v-model=
"collectionListSearch.mobile"
placeholder=
"请输入账号"
size=
"small"
class=
"formItem"
></el-input>
</el-form-item>
</el-form-item>
...
@@ -677,6 +682,14 @@ export default {
...
@@ -677,6 +682,14 @@ export default {
})
})
},
},
handleClick
(
tab
,
event
)
{
handleClick
(
tab
,
event
)
{
console
.
log
(
tab
.
name
)
if
(
tab
.
name
==
'first'
)
{
console
.
log
(
'first-----'
)
var
batchTab
=
document
.
getElementById
(
'batch'
)
batchTab
.
style
.
color
=
'#fff'
}
else
if
(
tab
.
name
==
'second'
)
{
console
.
log
(
'second====='
)
}
this
.
options
=
[]
this
.
options
=
[]
},
},
handleChange
(
value
)
{},
handleChange
(
value
)
{},
...
@@ -747,7 +760,7 @@ export default {
...
@@ -747,7 +760,7 @@ export default {
}
}
}
}
</
script
>
</
script
>
<
style
scoped
>
<
style
>
*
{
*
{
padding
:
0
;
padding
:
0
;
margin
:
0
;
margin
:
0
;
...
@@ -857,7 +870,7 @@ h2 {
...
@@ -857,7 +870,7 @@ h2 {
padding
:
10px
;
padding
:
10px
;
}
}
.el-form-item
{
.
collectonForm.
el-form-item
{
margin-bottom
:
0px
;
margin-bottom
:
0px
;
}
}
.el-tabs__header
{
.el-tabs__header
{
...
@@ -865,13 +878,10 @@ h2 {
...
@@ -865,13 +878,10 @@ h2 {
position
:
relative
;
position
:
relative
;
margin
:
0px
;
margin
:
0px
;
}
}
.dialogItem
{
margin-top
:
20px
;
}
.datapicker
{
.datapicker
{
width
:
220px
;
width
:
220px
;
}
}
.el-tabs__item
{
.
tabCtn
.
el-tabs__item
{
padding
:
0
20px
;
padding
:
0
20px
;
height
:
40px
;
height
:
40px
;
-webkit-box-sizing
:
border-box
;
-webkit-box-sizing
:
border-box
;
...
@@ -927,11 +937,28 @@ h2 {
...
@@ -927,11 +937,28 @@ h2 {
padding
:
32px
20px
32px
48px
;
padding
:
32px
20px
32px
48px
;
}
}
.el-tabs__nav-scroll
{
.el-tabs__nav-scroll
{
overflow
:
hidden
;
overflow
:
hidden
;
margin-left
:
40px
;
margin-left
:
40px
;
}
.el-tabs--card
>
.el-tabs__header
{
border-bottom
:
0px
;
}
.batchDialog
.el-dialog__body
{
padding
:
0px
0px
;
color
:
#606266
;
font-size
:
14px
;
word-break
:
break-all
;
}
.batchDialog
.el-dialog__footer
{
padding
:
10px
20px
20px
;
-webkit-box-sizing
:
border-box
;
box-sizing
:
border-box
;
border-top
:
1px
solid
#e6e6e6
;
}
}
.el-tabs--card
>
.el-tabs__header
{
.addCardsForm
.el-input--small
.el-input__inner
{
border-bottom
:
0px
;
height
:
32px
;
line-height
:
32px
;
width
:
320px
;
}
}
</
style
>
</
style
>
<
style
src=
"@a/css/tao.css"
></
style
>
<
style
src=
"@a/css/tao.css"
></
style
>
src/views/list/index.vue
View file @
5aec333
...
@@ -28,14 +28,16 @@
...
@@ -28,14 +28,16 @@
<i
class=
"el-icon-plus"
></i>
<i
class=
"el-icon-plus"
></i>
<span
style=
"margin-left: 8px"
>
添加门店权益
</span>
<span
style=
"margin-left: 8px"
>
添加门店权益
</span>
</el-button>
</el-button>
<div
class=
"tags-box"
>
<div
class=
"tagsCtn"
>
<template
v-for=
"(item, index) in tags"
>
<div
class=
"tags-box"
>
<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)">
<template
v-for=
"(item, index) in tags"
>
<i
class=
"del el-icon-error"
@
click
.
stop=
"categoryDelete(item.id)"
></i>
<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)" class="tags">
{{
item
.
goodsCategory
}}
<i
class=
"del el-icon-error"
@
click
.
stop=
"categoryDelete(item.id)"
></i>
<el-input
class=
"input-tag"
v-model=
"inputValue"
:ref=
"`tag-input-$
{index}`" size="small" @keyup.enter.native="changeTagName({ id: item.id, index })" @blur="changeTagName({ id: item.id, index })">
</el-input>
{{
item
.
goodsCategory
}}
</el-tag>
<el-input
class=
"input-tag"
v-model=
"inputValue"
:ref=
"`tag-input-$
{index}`" size="small" @keyup.enter.native="changeTagName({ id: item.id, index })" @blur="changeTagName({ id: item.id, index })">
</el-input>
</
template
>
</el-tag>
</
template
>
</div>
<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
>
<el-button
class=
"addTag"
size=
"small"
@
click=
"showAddInput"
v-else
>
<i
class=
"el-icon-plus"
></i>
<i
class=
"el-icon-plus"
></i>
...
@@ -186,15 +188,23 @@ export default {
...
@@ -186,15 +188,23 @@ export default {
color
:
#333333
;
color
:
#333333
;
line-height
:
28px
;
line-height
:
28px
;
}
}
.tags-box
{
.tags
{
padding
:
20px
0
10px
;
background
:
#f4f6fc
;
background
:
#f4f6fc
;
border-radius
:
4px
;
width
:
auto
;
}
}
.tags-box.el-tag
{
.tags-box
{
background
:
#fff
;
padding
:
2px
42px
2px
2px
;
border
:
1px
solid
#5850ff
;
background
:
#F4F6FC
;
border-radius
:
4px
;
}
.tags.el-tag
{
background
:
#ffffff
!important
;
border-radius
:
4px
!important
;
border
:
1px
solid
#eeedff
!important
;
}
.tags.el-tag--dark.el-tag--info
{
background-color
:
#909399
;
border-color
:
#909399
;
color
:
#5850ff
;
}
}
.el-tag
+
.el-tag
{
.el-tag
+
.el-tag
{
margin-left
:
10px
;
margin-left
:
10px
;
...
@@ -245,12 +255,6 @@ export default {
...
@@ -245,12 +255,6 @@ export default {
.opacity
{
.opacity
{
opacity
:
0.5
;
opacity
:
0.5
;
}
}
/* .el-button {
padding: 12px 0px;
font-size: 14px;
border-radius: 4px;
width: 40px;
} */
.tableBtn
{
.tableBtn
{
width
:
40px
;
width
:
40px
;
}
}
...
@@ -269,4 +273,9 @@ export default {
...
@@ -269,4 +273,9 @@ export default {
right
:
0
;
right
:
0
;
background-color
:
#fff
;
background-color
:
#fff
;
}
}
.tagsCtn
{
display
:
flex
;
flex-direction
:
row
;
margin-top
:
18px
;
}
</
style
>
</
style
>
\ No newline at end of file
\ No newline at end of file
src/views/rightsCard/index.vue
View file @
5aec333
...
@@ -52,9 +52,9 @@
...
@@ -52,9 +52,9 @@
</el-dialog>
</el-dialog>
<!-- 新建权益卡弹窗 -->
<!-- 新建权益卡弹窗 -->
<el-dialog
title=
""
:visible
.
sync=
"dialogVisible"
width=
"958px"
>
<el-dialog
title=
""
:visible
.
sync=
"dialogVisible"
width=
"958px"
>
<div
class=
"baseinformation"
><span
class=
"titleText"
>
基本信息
</span></div>
<el-form
class=
"dialogForm"
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"auto"
label-position=
"left"
>
<el-form
class=
"dialogForm"
:model=
"ruleForm"
:rules=
"rules"
ref=
"ruleForm"
label-width=
"auto"
label-position=
"left"
>
<!-- 基础表单 -->
<!-- 基础表单 -->
<div
class=
"baseinformation"
><span
class=
"titleText"
>
基本信息
</span></div>
<div
class=
"form "
>
<div
class=
"form "
>
<el-form-item
label=
"名称:"
prop=
"cardClassName"
id=
"name"
>
<el-form-item
label=
"名称:"
prop=
"cardClassName"
id=
"name"
>
<el-input
v-model=
"ruleForm.cardClassName"
maxlength=
"15"
type=
"text"
size=
"small"
placeholder=
"请输入"
></el-input>
<el-input
v-model=
"ruleForm.cardClassName"
maxlength=
"15"
type=
"text"
size=
"small"
placeholder=
"请输入"
></el-input>
...
...
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