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 969ce4bc
authored
Mar 22, 2023
by
zhangquan
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
添加状态
1 parent
1509fda3
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
29 additions
and
8 deletions
src/views/templateConfig/components/selectCouponDialog.vue
src/views/templateConfig/index.vue
src/views/templateConfig/components/selectCouponDialog.vue
View file @
969ce4b
...
@@ -61,8 +61,7 @@ export default {
...
@@ -61,8 +61,7 @@ export default {
pageSizes
:
[
10
,
20
,
30
,
40
,
50
],
pageSizes
:
[
10
,
20
,
30
,
40
,
50
],
dialogSearchForm
:
{
dialogSearchForm
:
{
brandName
:
''
,
brandName
:
''
,
goodsName
:
''
,
goodsName
:
''
status
:
2
},
},
dialogFormData
:
[
dialogFormData
:
[
{
{
...
@@ -138,8 +137,7 @@ export default {
...
@@ -138,8 +137,7 @@ export default {
handleRest
()
{
handleRest
()
{
this
.
dialogSearchForm
=
{
this
.
dialogSearchForm
=
{
brandName
:
''
,
brandName
:
''
,
goodsName
:
''
,
goodsName
:
''
status
:
2
}
}
this
.
handleOk
()
this
.
handleOk
()
},
},
...
...
src/views/templateConfig/index.vue
View file @
969ce4b
...
@@ -25,6 +25,12 @@
...
@@ -25,6 +25,12 @@
<!-- {{ scope.scope.appearance == 2 ? scope.scope.productName + (scope.scope.denomination || '') : scope.scope.productName }} -->
<!-- {{ scope.scope.appearance == 2 ? scope.scope.productName + (scope.scope.denomination || '') : scope.scope.productName }} -->
{{ scope.scope.goodsName }}
{{ scope.scope.goodsName }}
</div>
</div>
<div
class=
"good_status"
slot=
"goodStatus"
slot-scope=
"scope"
>
<span
class=
"circle"
:style=
"{ 'background-color': scope.scope.status == 2 ? '#5850FF' : '#999999' }"
></span>
<span>
{{ scope.scope.status == 2 ? '生效中' : '已失效' }}
</span>
</div>
<div
slot=
"auth-button"
slot-scope=
"scope"
>
<div
slot=
"auth-button"
slot-scope=
"scope"
>
<GLTableButton
:buttonList=
"buttonList"
:buttonItem=
"scope"
:buttonNum=
"3"
></GLTableButton>
<GLTableButton
:buttonList=
"buttonList"
:buttonItem=
"scope"
:buttonNum=
"3"
></GLTableButton>
</div>
</div>
...
@@ -79,7 +85,8 @@ import selectCouponDialog from './components/selectCouponDialog.vue'
...
@@ -79,7 +85,8 @@ import selectCouponDialog from './components/selectCouponDialog.vue'
tableColumns
:
[
tableColumns
:
[
{
{
label
:
'品牌'
,
label
:
'品牌'
,
prop
:
'brandName'
prop
:
'brandName'
,
width
:
150
,
},
},
{
{
label
:
'商品名称'
,
label
:
'商品名称'
,
...
@@ -88,18 +95,24 @@ import selectCouponDialog from './components/selectCouponDialog.vue'
...
@@ -88,18 +95,24 @@ import selectCouponDialog from './components/selectCouponDialog.vue'
},
},
{
{
label
:
'数量'
,
label
:
'数量'
,
prop
:
'couponAmount'
prop
:
'couponAmount'
,
width
:
150
},
{
label
:
'状态'
,
width
:
150
,
addHtml
:
'goodStatus'
},
},
{
{
label
:
'券面额/元'
,
label
:
'券面额/元'
,
width
:
1
1
0
,
width
:
1
5
0
,
formatter
:
cell
=>
{
formatter
:
cell
=>
{
return
cell
.
denomination
?
Number
((
Number
(
cell
.
denomination
)
/
100
).
toFixed
(
2
))
:
0
return
cell
.
denomination
?
Number
((
Number
(
cell
.
denomination
)
/
100
).
toFixed
(
2
))
:
0
}
}
},
},
{
{
label
:
'有效期/天'
,
label
:
'有效期/天'
,
width
:
1
1
0
,
width
:
1
5
0
,
prop
:
'effectiveDays'
prop
:
'effectiveDays'
}
}
]
]
...
@@ -321,6 +334,16 @@ import selectCouponDialog from './components/selectCouponDialog.vue'
...
@@ -321,6 +334,16 @@ import selectCouponDialog from './components/selectCouponDialog.vue'
vertical-align
:
text-bottom
;
vertical-align
:
text-bottom
;
}
}
}
}
.good_status
{
.circle
{
display
:
inline-block
;
width
:
6px
;
height
:
6px
;
border-radius
:
50%
;
vertical-align
:
middle
;
margin-right
:
4px
;
}
}
}
}
}
}
</
style
>
</
style
>
...
...
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