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
91bec0ed
Commit
91bec0ed
authored
Oct 07, 2022
by
wanglianghe
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
显示未设置价格状态(TODO 后端返回)
parent
8d6242c4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
15 additions
and
3 deletions
+15
-3
index.vue
src/views/ecw/productPrice/index.vue
+15
-3
No files found.
src/views/ecw/productPrice/index.vue
View file @
91bec0ed
...
@@ -336,9 +336,21 @@ export default {
...
@@ -336,9 +336,21 @@ export default {
// 根据状态获取状态名称 ,这个应该可以改成字典,目前接口缺少相关数据,待定
// 根据状态获取状态名称 ,这个应该可以改成字典,目前接口缺少相关数据,待定
statusName
()
{
statusName
()
{
return
row
=>
{
return
row
=>
{
if
(
row
.
blacklist
)
return
'
黑名单
'
;
//判断价格是否过期
if
(
row
.
auditStatus
===
AuditStatusEnum
.
PASS
)
return
'
已审核
'
;
let
validateStartDate
=
row
.
validateStartDate
;
return
'
已下架
'
;
let
validateEndDate
=
row
.
validateEndDate
;
let
notSetPrice
=
false
;
let
nowDate
=
new
Date
().
getTime
();
if
(
validateStartDate
&&
validateStartDate
>
nowDate
)
{
notSetPrice
=
true
;
}
if
(
validateEndDate
&&
validateEndDate
<
nowDate
)
{
notSetPrice
=
true
;
}
let
setPriceText
=
notSetPrice
?
'
(未设置价格)
'
:
''
;
if
(
row
.
blacklist
)
return
'
黑名单
'
+
setPriceText
;
if
(
row
.
auditStatus
===
AuditStatusEnum
.
PASS
)
return
'
已审核
'
+
setPriceText
;
return
'
已下架
'
+
setPriceText
;
}
}
},
},
...
...
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