Commit 4a998eeb authored by 赵茹林's avatar 赵茹林

Merge branch 'dev' into pre

parents cca2d31e f309e1ab
...@@ -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
......
...@@ -326,6 +326,7 @@ ...@@ -326,6 +326,7 @@
onSearch(){ onSearch(){
this.getData(); this.getData();
this.$route.params.model = ''
}, },
onPageChange(val) { onPageChange(val) {
......
...@@ -113,7 +113,7 @@ ...@@ -113,7 +113,7 @@
<td>{{ item.friend_nickname }}</td> <td>{{ item.friend_nickname }}</td>
<td>{{ item.mobile }}</td> <td>{{ item.mobile }}</td>
<td>{{ item.allow_time }}</td> <td>{{ item.allow_time }}</td>
<td>{{ item.add_time_long }}</td> <td>{{ item.add_time_long }}min</td>
</template> </template>
</tr> </tr>
</tbody> </tbody>
......
...@@ -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