Commit b431d7a5 by 杨明

Merge branch 'v3.11.0' of http://192.168.3.233:8090/saas/scrm-micro-home into v3.11.0

2 parents 2f3005aa ab6ed82c
......@@ -2,7 +2,7 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-05-17 10:56:24
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-05-18 15:36:52
* @LastEditTime: 2023-05-18 16:08:50
* @FilePath: \scrm-micro-home\src\api\modules\activity.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
......@@ -57,10 +57,24 @@ const exportCustomer = params => {
sign: true
})
}
// 营销日历列表
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 {
findActivityInfo,
createSuperMarketing,
exportCustomer,
listByPage,
getCalendarListData,
activityDetail
}
......@@ -2,10 +2,13 @@
* @Author: yangming yangming@didihu.com.cn
* @Date: 2023-05-16 17:13:33
* @LastEditors: yangming yangming@didihu.com.cn
* @LastEditTime: 2023-05-18 14:20:45
* @LastEditTime: 2023-05-18 16:09:16
* @FilePath: \scrm-micro-home\src\store\modules\marketing.js
* @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
*/
import apis from '@/api'
export default {
namespaced: true,
state: {
......@@ -13,7 +16,8 @@ export default {
activityId: '',
activityDate: '',
activityProject: {},
customDetail: {}
customDetail: {},
calendarData: []
},
mutations: {
// 设置客户信息
......@@ -35,6 +39,9 @@ export default {
// 设置活动项
SET_ACTIVITY_PEOJECT(state, data) {
state.activityProject = data
},
['SET_CALENDAR_DATA'](state, payload) {
state.calendarData = payload.calendarData
}
},
actions: {
......@@ -52,6 +59,14 @@ export default {
},
setActivityProject({ commit }, 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 })
}
})
}
}
}
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!