Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
saas
/
scrm-micro-home
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 ef1cfdf2
authored
May 18, 2023
by
王志慧
Browse Files
Options
Browse Files
Tag
Download
Email Patches
Plain Diff
commit
1 parent
688b29ab
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
35 additions
and
3 deletions
src/api/modules/calendar.js
src/store/modules/marketing.js
src/views/home/marketing.vue
src/api/modules/calendar.js
0 → 100644
View file @
ef1cfdf
import
{
http
}
from
'@/main'
// 营销日历列表
const
getCalendarListData
=
params
=>
{
params
.
method
=
'marketing.api.calendar.list'
return
http
({
url
:
'/rop-scrm-marketing/router'
,
method
:
'POST'
,
data
:
params
,
sign
:
true
,
returnAll
:
true
})
}
export
default
{
getCalendarListData
}
\ No newline at end of file
\ No newline at end of file
src/store/modules/marketing.js
View file @
ef1cfdf
import
apis
from
'@/api'
export
default
{
export
default
{
namespaced
:
true
,
namespaced
:
true
,
state
:
{
state
:
{
activityInfo
:
{},
activityInfo
:
{},
activityId
:
''
,
activityId
:
''
,
activityDate
:
''
,
activityDate
:
''
,
activityProject
:
{}
activityProject
:
{},
calendarData
:[]
},
},
mutations
:
{
mutations
:
{
// 设置活动信息
// 设置活动信息
...
@@ -22,6 +25,9 @@ export default {
...
@@ -22,6 +25,9 @@ export default {
// 设置活动项
// 设置活动项
SET_ACTIVITY_PEOJECT
(
state
,
data
)
{
SET_ACTIVITY_PEOJECT
(
state
,
data
)
{
state
.
activityProject
=
data
state
.
activityProject
=
data
},
[
'SET_CALENDAR_DATA'
](
state
,
payload
){
state
.
calendarData
=
payload
.
calendarData
}
}
},
},
actions
:
{
actions
:
{
...
@@ -36,6 +42,14 @@ export default {
...
@@ -36,6 +42,14 @@ export default {
},
},
setActivityProject
({
commit
},
data
)
{
setActivityProject
({
commit
},
data
)
{
commit
(
'SET_ACTIVITY_PEOJECT'
,
data
)
commit
(
'SET_ACTIVITY_PEOJECT'
,
data
)
},
//营销日历列表
getCalendarList
(
conText
,
payload
){
apis
.
calendar
.
getCalendarListData
(
payload
).
then
(
res
=>
{
if
(
res
.
code
==
0
){
conText
.
commit
(
'SET_CALENDAR_DATA'
,
{
calendarData
:
res
.
data
})
}
})
}
}
}
}
}
}
src/views/home/marketing.vue
View file @
ef1cfdf
...
@@ -37,6 +37,7 @@
...
@@ -37,6 +37,7 @@
<
script
>
<
script
>
import
ScheduleCalendar
from
'./components/Marketing/components/ScheduleCalendar'
import
ScheduleCalendar
from
'./components/Marketing/components/ScheduleCalendar'
import
MarketingLeft
from
'./components/Marketing/MarketingLeft'
import
MarketingLeft
from
'./components/Marketing/MarketingLeft'
import
{
mapActions
}
from
'vuex'
// import MarketingMiddle from './components/Marketing/MarketingMiddle'
// import MarketingMiddle from './components/Marketing/MarketingMiddle'
// import MarketingRight from './components/Marketing/MarketingRight'
// import MarketingRight from './components/Marketing/MarketingRight'
export
default
{
export
default
{
...
@@ -52,10 +53,12 @@ export default {
...
@@ -52,10 +53,12 @@ export default {
}
}
},
},
mounted
()
{
mounted
()
{
let
dom
=
this
.
$refs
.
calendar
.
$refs
.
full
this
.
getCalendarList
()
console
.
log
(
dom
)
},
},
methods
:
{
methods
:
{
...
mapActions
({
getCalendarList
:
'marketing/getCalendarList'
}),
handleShowCalendar
()
{
handleShowCalendar
()
{
this
.
isFull
=
!
this
.
isFull
this
.
isFull
=
!
this
.
isFull
console
.
log
(
this
.
$refs
.
calendar
.
$refs
.
full
.
calendar
)
console
.
log
(
this
.
$refs
.
calendar
.
$refs
.
full
.
calendar
)
...
...
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