Commit 8be47f0d authored by 赵茹林's avatar 赵茹林

回访信息 新增 意向度、下次回访回显功能

parent 83b530ea
...@@ -172,6 +172,7 @@ ...@@ -172,6 +172,7 @@
getUserTagApi, getUserTagApi,
getTagApi, getTagApi,
getCallBackApi, getCallBackApi,
getCallBackPrevApi,
postCallBackApi, postCallBackApi,
postUserTagApi, postUserTagApi,
delUserTagApi, delUserTagApi,
...@@ -385,6 +386,17 @@ ...@@ -385,6 +386,17 @@
// console.log(res, 999) // console.log(res, 999)
this.user = res; this.user = res;
this.getData(); this.getData();
if (this.callbackObj.teacher_id) {
let json = {
user_id: this.user.user_id
}
getCallBackPrevApi(json).then(res => {
if (res && res[0] && res[0].next_visit_at && res[0].intention) {
this.add.intention = res[0].intention;
this.add.next_visit_at = res[0].next_visit_at;
}
})
}
this.loading = false; this.loading = false;
}) })
}, },
...@@ -398,9 +410,8 @@ ...@@ -398,9 +410,8 @@
limit: this.limit, limit: this.limit,
page: this.nowPage page: this.nowPage
}; };
this.teacher_num ? json.teacher_num = this.teacher_num : ''; // this.teacher_num ? json.teacher_num = this.teacher_num : ''; 老师微信号
this.user.user_id ? json.user_id = this.user.user_id : ''; this.callbackObj.user_id ? json.user_id = this.callbackObj.user_id : '';
// console.log(json, 9000)
getCallBackApi(json).then(res => { getCallBackApi(json).then(res => {
this.list = res.page_data; this.list = res.page_data;
this.total = res.total this.total = res.total
......
...@@ -73,7 +73,7 @@ export const getCallBackApi = function (json) { ...@@ -73,7 +73,7 @@ export const getCallBackApi = function (json) {
}; };
// 获取上次回访信息 // 获取上次回访信息
export const getCallBackPrevApi = function (json) { export const getCallBackPrevApi = function (json) {
return Vue.prototype.$fetch(`${_baseUrl}user/last/visit/${json.user_id}`, json) return Vue.prototype.$fetch(`${_baseUrl}api/admin/user/last/visit/${json.user_id}`, json)
}; };
// 添加回访信息 // 添加回访信息
export const postCallBackApi = function (json) { export const postCallBackApi = function (json) {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment