Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
J
jiedao-app-operator-master
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
lanbaoming
jiedao-app-operator-master
Commits
95c648e8
Commit
95c648e8
authored
Sep 30, 2023
by
dragondean@qq.com
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
优惠列表合并状态和投放状态列
parent
a79ac385
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
5 deletions
+11
-5
index.vue
src/views/ecw/coupon/index.vue
+11
-5
No files found.
src/views/ecw/coupon/index.vue
View file @
95c648e8
...
...
@@ -87,22 +87,28 @@
<
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('状态')
"
align
=
"
center
"
prop
=
"
createTime
"
width
=
"
180
"
>
<
template
slot
-
scope
=
"
{row
}
"
>
<
dict
-
tag
:
type
=
"
DICT_TYPE.ECW_IS_DRAFT
"
:
value
=
"
row.status
"
/>
<
template
v
-
if
=
"
row.status === 1
"
>
<
template
v
-
if
=
"
row.putonStatus === 1
"
>
{{
$t
(
'
已发布,投放中
'
)
}}
<
/template
>
<
template
v
-
else
-
if
=
"
row.putonStatus === -1
"
>
{{
$t
(
'
取消投放
'
)
}}
<
/template
>
<!--
投放状态暂时就只有上诉两种,如果出现了其他的应该视为异常状态,为了方便发现问题所以直接显示投放字典
-->
<
dict
-
tag
v
-
else
:
type
=
"
DICT_TYPE.ECW_COUPON_PUTON_STATUS
"
:
value
=
"
row.putonStatus
"
/>
<
/template
>
<
template
v
-
else
>
{{
$t
(
'
草稿
'
)
}}
<
/template
>
<
/template
>
<
/el-table-column
>
<
el
-
table
-
column
:
label
=
"
$t('投放状态')
"
align
=
"
center
"
prop
=
"
putonStatus
"
width
=
"
180
"
>
<
!--
<
el
-
table
-
column
:
label
=
"
$t('投放状态')
"
align
=
"
center
"
prop
=
"
putonStatus
"
width
=
"
180
"
>
<
template
slot
-
scope
=
"
{row
}
"
>
<
dict
-
tag
:
type
=
"
DICT_TYPE.ECW_COUPON_PUTON_STATUS
"
:
value
=
"
row.putonStatus
"
/>
<
/template
>
<
/el-table-column
>
<
/el-table-column>
--
>
<
el
-
table
-
column
:
label
=
"
$t('操作')
"
align
=
"
center
"
fixed
=
"
right
"
class
-
name
=
"
small-padding fixed-width
"
>
<
template
slot
-
scope
=
"
scope
"
>
<
el
-
button
size
=
"
mini
"
type
=
"
text
"
icon
=
"
el-icon-edit
"
@
click
=
"
handleDetail(scope.row, true)
"
v
-
hasPermi
=
"
['ecw:coupon:show']
"
>
{{
$t
(
'
查看
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.putonStatus == 1
"
size
=
"
mini
"
type
=
"
text
"
icon
=
"
el-icon-edit
"
@
click
=
"
setPutonStatus(scope.row, -1)
"
<
el
-
button
v
-
if
=
"
scope.row.
status === 1 && scope.row.
putonStatus == 1
"
size
=
"
mini
"
type
=
"
text
"
icon
=
"
el-icon-edit
"
@
click
=
"
setPutonStatus(scope.row, -1)
"
v
-
hasPermi
=
"
['ecw:coupon:show']
"
>
{{
$t
(
'
取消投放
'
)
}}
<
/el-button
>
<
el
-
button
v
-
else
size
=
"
mini
"
type
=
"
text
"
icon
=
"
el-icon-edit
"
@
click
=
"
setPutonStatus(scope.row, 1)
"
<
el
-
button
v
-
else
-
if
=
"
scope.row.status === 1
"
size
=
"
mini
"
type
=
"
text
"
icon
=
"
el-icon-edit
"
@
click
=
"
setPutonStatus(scope.row, 1)
"
v
-
hasPermi
=
"
['ecw:coupon:show']
"
>
{{
$t
(
'
投放
'
)
}}
<
/el-button
>
<
el
-
button
v
-
if
=
"
scope.row.status != 1
"
size
=
"
mini
"
type
=
"
text
"
icon
=
"
el-icon-edit
"
@
click
=
"
handleUpdate(scope.row)
"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment