Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
marketing
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
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
marketing-web
marketing
Commits
407efc0b
Commit
407efc0b
authored
May 07, 2021
by
caoyanzhi
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: 修复编辑时将开始时间改成当前日期导致页面无法编辑的bug
parent
1fe04045
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
1 deletions
+3
-1
scan-form.js
src/views/ecm/scan-form.js
+3
-1
No files found.
src/views/ecm/scan-form.js
View file @
407efc0b
...
...
@@ -111,6 +111,7 @@ export default {
isEdit
:
this
.
$route
.
meta
.
type
===
'edit'
,
isAdd
:
this
.
$route
.
meta
.
type
===
'add'
,
isInfo
:
this
.
$route
.
meta
.
type
===
'info'
,
beginDate
:
''
,
// 人群筛选器可传参数
sceneValue
:
'member'
,
// 场景值
useId
:
''
,
// 模板id
...
...
@@ -159,7 +160,7 @@ export default {
computed
:
{
disabled
()
{
// 若开始时间已过则不可修改,若未过则可修改
return
(
this
.
isEdit
&&
new
Date
()
>
new
Date
(
this
.
form
.
beginDate
))
||
this
.
isInfo
;
return
(
this
.
isEdit
&&
new
Date
()
>
new
Date
(
this
.
beginDate
))
||
this
.
isInfo
;
},
asideShow
()
{
return
this
.
$store
.
state
.
marketing
.
asideShow
;
...
...
@@ -258,6 +259,7 @@ export default {
if
(
this
.
form
.
expireType
)
{
this
.
form
.
beginDate
=
result
.
beginDate
||
''
;
this
.
form
.
endDate
=
result
.
endDate
||
''
;
this
.
beginDate
=
result
.
beginDate
||
''
;
}
if
(
res
.
result
.
searchId
)
{
this
.
useId
=
res
.
result
.
searchId
||
''
;
...
...
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