Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Sign in
Toggle navigation
A
admin-base
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
new-sing
admin-base
Commits
8be47f0d
Commit
8be47f0d
authored
Aug 28, 2019
by
赵茹林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
回访信息 新增 意向度、下次回访回显功能
parent
83b530ea
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
15 additions
and
4 deletions
+15
-4
index.vue
src/components/callBack/index.vue
+14
-3
api.js
src/service/api.js
+1
-1
No files found.
src/components/callBack/index.vue
View file @
8be47f0d
...
@@ -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
...
...
src/service/api.js
View file @
8be47f0d
...
@@ -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
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment