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
0f2b4e7d
Commit
0f2b4e7d
authored
Mar 21, 2022
by
crushh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update: 生日场景
parent
ce98716a
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
birthSense.vue
src/views/ai/birthSense.vue
+6
-3
form.vue
src/views/ai/form.vue
+2
-1
No files found.
src/views/ai/birthSense.vue
View file @
0f2b4e7d
...
...
@@ -114,16 +114,19 @@ export default {
let
arr
=
[];
if
(
!
res
)
return
;
res
.
timeRangeList
.
forEach
(
item
=>
{
arr
.
push
(
`
${
item
.
startTime
}
-
${
item
.
endTime
}
`
);
if
(
Object
.
keys
(
item
).
length
)
{
arr
.
push
(
`
${
item
.
startTime
}
-
${
item
.
endTime
}
`
);
}
});
this
.
$refs
.
form
.
validate
(
val
=>
{
if
(
val
)
{
const
{
birth_type
,
call_flag
,
birthDate1
,
birthDate2
}
=
this
.
form
;
const
{
birth_type
,
call_flag
,
birthDate1
,
birthDate2
,
callTime
}
=
this
.
form
;
const
obj
=
{
startDate
:
birth_type
==
2
?
birthDate2
[
0
]
:
birthDate1
[
0
],
endDate
:
birth_type
==
2
?
birthDate2
[
1
]
:
birthDate1
[
1
],
call_flag
,
birth_type
birth_type
,
callTime
};
if
(
arr
.
length
)
{
obj
.
callTime
=
arr
;
...
...
src/views/ai/form.vue
View file @
0f2b4e7d
...
...
@@ -298,7 +298,7 @@ export default {
async
submit
()
{
const
activeTimeData
=
await
this
.
$refs
.
birthSense
.
submit
();
if
(
!
activeTimeData
)
return
;
const
{
startDate
,
endDate
,
call_flag
,
birth_type
}
=
activeTimeData
;
const
{
startDate
,
endDate
,
call_flag
,
birth_type
,
callTime
}
=
activeTimeData
;
this
.
$refs
.
form
.
validate
(
async
(
val
,
obj
)
=>
{
console
.
log
(
val
);
console
.
log
(
obj
);
...
...
@@ -331,6 +331,7 @@ export default {
call_flag
,
labelFlag
,
smsFlag
,
callTime
,
recallFlag
}
]
...
...
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