提交 41b9df6d authored 作者: 王诒正's avatar 王诒正

添加触达,编辑触达,删除触达,触达列表

上级 8cd88b96
...@@ -4,7 +4,52 @@ import httpRequest from '@/utils/axios' ...@@ -4,7 +4,52 @@ import httpRequest from '@/utils/axios'
export function bindWechat(data) { export function bindWechat(data) {
return httpRequest.post('/api/passport/rest/wechat/bind-unionid', data) return httpRequest.post('/api/passport/rest/wechat/bind-unionid', data)
} }
// 获取用户信息 // 获取触达方式列表
export function getTriggerList() { export function getTriggerWayList() {
return httpRequest.get('/api/opera/v1/oprations/reach/ways') return httpRequest.get('/api/opera/v1/oprations/reach/ways')
} }
// 获取触达方式详情
export function triggerWay(id) {
return httpRequest.get(`/api/opera/v1/oprations/reach/${id}/way`)
}
// 编辑触达方式
export function triggerWayUpdate(id, data) {
return httpRequest.put(`/api/opera/v1/oprations/reach/${id}/way`, data)
}
// 创建触达方式
export function triggerWayCreate(data) {
return httpRequest.post('/api/opera/v1/oprations/reach/way', data)
}
// 删除触达方式
export function triggerWayDelete(id, params = {}) {
return httpRequest.delete(`/api/opera/v1/oprations/reach/${id}/way`, { params })
}
// 获取触达时间列表
export function getTriggerDateList() {
return httpRequest.get('/api/opera/v1/oprations/reach/dates')
}
// 获取触达时间详情
export function triggerDate(id) {
return httpRequest.get(`/api/opera/v1/oprations/reach/${id}/date`)
}
// 编辑触达时间
export function triggerDateUpdate(id, data) {
return httpRequest.put(`/api/opera/v1/oprations/reach/${id}/date`, data)
}
// 创建触达时间
export function triggerDateCreate(data) {
return httpRequest.post('/api/opera/v1/oprations/reach/date', data)
}
// 删除触达时间
export function triggerDateDelete(id, params = {}) {
return httpRequest.delete(`/api/opera/v1/oprations/reach/${id}/date`, { params })
}
...@@ -26,7 +26,7 @@ export default { ...@@ -26,7 +26,7 @@ export default {
return { return {
defaultMenus: [ defaultMenus: [
{ {
title: '案例背景', title: '案例背景编辑',
icon: '', icon: '',
path: '/yhfq/albj' path: '/yhfq/albj'
// children: [ // children: [
...@@ -35,9 +35,8 @@ export default { ...@@ -35,9 +35,8 @@ export default {
// // { title: '用户群分析', path: '/yhfq/yhqfx' } // // { title: '用户群分析', path: '/yhfq/yhqfx' }
// ] // ]
}, },
{ title: '用户触达编辑', icon: '', path: '/triggerEditor' }, { title: '用户群特征编辑', icon: '', path: '/characteristicsEditor' },
{ title: '用户群分析', icon: '', path: '/' }, { title: '用户触达编辑', icon: '', path: '/triggerEditor' }
{ title: '用户触达', icon: '', path: '/' }
] ]
} }
}, },
......
<template>
<div>
<div>
<el-card class="box-card">
<el-breadcrumb separator-class="el-icon-arrow-right">
<el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
<el-breadcrumb-item>用户群特征编辑</el-breadcrumb-item>
</el-breadcrumb>
</el-card>
</div>
</div>
</template>
<script>
</script>
...@@ -40,7 +40,7 @@ ...@@ -40,7 +40,7 @@
</el-row> </el-row>
<template #footer> <template #footer>
<div class="app-container-ft"> <div class="app-container-ft">
<el-button type="primary" size="mini">确定</el-button> <el-button type="primary" size="mini" @click="cli">确定</el-button>
</div> </div>
</template> </template>
</app-container> </app-container>
...@@ -91,9 +91,12 @@ export default { ...@@ -91,9 +91,12 @@ export default {
} }
return result return result
}, },
cli() {
console.log(this.triggerMode)
},
getList() { getList() {
api api
.getTriggerList() .getTriggerWayList()
.then(response => { .then(response => {
if (response.data.length !== 0) { if (response.data.length !== 0) {
this.triggerMode = response.data this.triggerMode = response.data
...@@ -102,6 +105,17 @@ export default { ...@@ -102,6 +105,17 @@ export default {
.finally(() => { .finally(() => {
this.submitLoading = false this.submitLoading = false
}) })
api
.getTriggerDateList()
.then(response => {
if (response.data.length !== 0) {
this.triggerTime = response.data
}
})
.finally(() => {
this.submitLoading = false
})
} }
} }
} }
......
差异被折叠。
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<el-card class="box-card"> <el-card class="box-card">
<el-breadcrumb separator-class="el-icon-arrow-right"> <el-breadcrumb separator-class="el-icon-arrow-right">
<el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item> <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
<el-breadcrumb-item :to="{ name: 'case-list', params: { level: this.level.toStirng() } }">案例背景</el-breadcrumb-item> <el-breadcrumb-item :to="{ name: 'case-list', params: { level: this.level } }">案例背景</el-breadcrumb-item>
<el-breadcrumb-item :to="{ path: '/yhfq/albj/detail' }">案例背景</el-breadcrumb-item> <el-breadcrumb-item :to="{ path: '/yhfq/albj/detail' }">案例背景</el-breadcrumb-item>
</el-breadcrumb> </el-breadcrumb>
</el-card> </el-card>
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
<el-card class="box-card"> <el-card class="box-card">
<el-breadcrumb separator-class="el-icon-arrow-right"> <el-breadcrumb separator-class="el-icon-arrow-right">
<el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item> <el-breadcrumb-item :to="{ path: '/' }">首页</el-breadcrumb-item>
<el-breadcrumb-item :to="{ name: 'case-list', query: { level: this.$route.query.level } }">案例背景</el-breadcrumb-item> <el-breadcrumb-item :to="{ name: 'case-list', query: { level: this.case.level.toString() } }">案例背景</el-breadcrumb-item>
<el-breadcrumb-item :to="{ name: 'group-list' }">用户群</el-breadcrumb-item> <el-breadcrumb-item :to="{ name: 'group-list' }">用户群</el-breadcrumb-item>
</el-breadcrumb> </el-breadcrumb>
</el-card> </el-card>
......
...@@ -31,7 +31,11 @@ export default [ ...@@ -31,7 +31,11 @@ export default [
}, },
{ {
path: '/triggerEditor', path: '/triggerEditor',
component: () => import(/* webpackChunkName: "triggerEditor" */ '@/pages/triggerEditor/index') component: () => import(/* webpackChunkName: "triggerEditor" */ '@/pages/triggerEditor/list')
},
{
path: '/characteristicsEditor',
component: () => import(/* webpackChunkName: "triggerEditor" */ '@/pages/characteristicsEditor/index')
}, },
...userGroup ...userGroup
] ]
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论