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
a6b45465
Commit
a6b45465
authored
Aug 28, 2019
by
赵茹林
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
回访信息 修复 权限问题
parent
369f6a74
Changes
3
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
112 additions
and
86 deletions
+112
-86
index.vue
src/components/callBack/index.vue
+15
-5
index.vue
src/components/user/index.vue
+93
-81
api.js
src/service/api.js
+4
-0
No files found.
src/components/callBack/index.vue
View file @
a6b45465
...
@@ -5,13 +5,17 @@
...
@@ -5,13 +5,17 @@
<div
class=
"callback-info callback-item"
style=
"margin-bottom: 15px;"
>
<div
class=
"callback-info callback-item"
style=
"margin-bottom: 15px;"
>
ID:
{{
callbackObj
.
user_id
}}
 
ID:
{{
callbackObj
.
user_id
}}
 
用户昵称:
{{
callbackObj
.
detail
.
nickname
}}
 
用户昵称:
{{
callbackObj
.
detail
.
nickname
}}
 
宝宝名称:
{{
callbackObj
.
detail
.
baby_name
?
callbackObj
.
detail
.
baby_name
:
'-'
}}
 
宝宝名称:
{{
callbackObj
.
detail
.
baby_name
||
'-'
}}
 
宝宝生日:
{{
(
callbackObj
.
detail
.
birthday
==
'0000-00-00'
)
?
'-'
:
callbackObj
.
detail
.
birthday
}}
 
宝宝生日:
{{
(
callbackObj
.
detail
.
birthday
==
'0000-00-00'
)
?
'-'
:
callbackObj
.
detail
.
birthday
}}
 
手机号:
{{
callbackObj
.
detail
.
mobile
?
callbackObj
.
detail
.
mobile
:
'-
-'
}}
 
手机号:
{{
callbackObj
.
detail
.
mobile
||
'
-'
}}
 
关联手机号:
关联手机号:
<span
class=
"callback-edit"
>
<span
class=
"callback-edit"
>
<!--
<i
v-if=
"!callbackEdit.mobile.show"
@
click=
"editCallback('mobile')"
>
{{
callbackObj
.
detail
.
relation_mobile
?
callbackObj
.
detail
.
relation_mobile
:
'--'
}}
</i>
-->
<!--
<i
v-if=
"!callbackEdit.mobile.show"
@
click=
"editCallback('mobile')"
>
{{
callbackObj
.
detail
.
relation_mobile
?
callbackObj
.
detail
.
relation_mobile
:
'--'
}}
</i>
-->
<template
v-if=
"$store.state.readonly"
>
{{
callbackEdit
.
mobile
.
value
||
'-'
}}
</
template
>
<el-input
<el-input
v-else
ref=
"mobileEdit"
ref=
"mobileEdit"
v-model=
"callbackEdit.mobile.value"
v-model=
"callbackEdit.mobile.value"
style=
"width: 130px;"
size=
"small"
></el-input>
style=
"width: 130px;"
size=
"small"
></el-input>
...
@@ -20,17 +24,22 @@
...
@@ -20,17 +24,22 @@
微信号:
微信号:
<span
class=
"callback-edit"
>
<span
class=
"callback-edit"
>
<!--<i v-if="!callbackEdit.wechat.show" @click="editCallback('wechat')">{{callbackObj.detail.wx_number ? callbackObj.detail.wx_number : '--'}}</i>-->
<!--<i v-if="!callbackEdit.wechat.show" @click="editCallback('wechat')">{{callbackObj.detail.wx_number ? callbackObj.detail.wx_number : '--'}}</i>-->
<
template
v-if=
"$store.state.readonly"
>
{{
callbackEdit
.
wechat
.
value
||
'-'
}}
</
template
>
<el-input
<el-input
v-else
ref=
"wechatEdit"
ref=
"wechatEdit"
v-model=
"callbackEdit.wechat.value"
v-model=
"callbackEdit.wechat.value"
style=
"width: 100px;"
size=
"small"
></el-input>
style=
"width: 100px;"
size=
"small"
></el-input>
<!--v-else @blur="callbackEdit.wechat.show = !callbackEdit.wechat.show"-->
<!--v-else @blur="callbackEdit.wechat.show = !callbackEdit.wechat.show"-->
</span>
 
</span>
 
<el-button
<el-button
v-if=
"!$store.state.readonly"
@
click=
"editCallbackSave"
@
click=
"editCallbackSave"
:disabled=
"(callbackEdit.wechat.value == callbackEdit.wechat.origin) && (callbackEdit.mobile.value == callbackEdit.mobile.origin)"
:disabled=
"(callbackEdit.wechat.value == callbackEdit.wechat.origin) && (callbackEdit.mobile.value == callbackEdit.mobile.origin)"
type=
"primary"
plain
size=
"small"
>
更新用户信息
</el-button>
 
type=
"primary"
plain
size=
"small"
>
更新用户信息
</el-button>
 
<span
style=
"font-size: 12px; color: #999999; white-space: nowrap"
>
最后更新:
{{
callbackObj
.
detail
.
updated_at
}}
</span>
<span
style=
"font-size: 12px; color: #999999; white-space: nowrap"
>
最后更新:{{callbackObj.detail.updated_at
|| '-'
}}
</span>
</div>
</div>
<div
class=
"callback-item"
style=
"display: flex; align-items: flex-start; margin-bottom: 15px; line-height: 32px;"
>
<div
class=
"callback-item"
style=
"display: flex; align-items: flex-start; margin-bottom: 15px; line-height: 32px;"
>
...
@@ -38,10 +47,11 @@
...
@@ -38,10 +47,11 @@
<span
class=
"callback-tag-wrapper"
v-if=
"tag.length"
>
<span
class=
"callback-tag-wrapper"
v-if=
"tag.length"
>
<el-tag
:key=
"item.id"
:type=
"item.type==1 ? 'info' : ''"
v-for=
"item in tag"
>
{{item.label_name}}
</el-tag>
<el-tag
:key=
"item.id"
:type=
"item.type==1 ? 'info' : ''"
v-for=
"item in tag"
>
{{item.label_name}}
</el-tag>
</span>
</span>
<el-button
type=
"warning"
size=
"small"
plain
@
click=
"dialogToggle"
>
编辑标签
</el-button>
<el-button
v-if=
"!$store.state.readonly"
type=
"warning"
size=
"small"
plain
@
click=
"dialogToggle"
>
编辑标签
</el-button>
</div>
</div>
<div
class=
"callback-item callback-input"
v-if=
"callbackObj.teacher_id && callbackAdd"
>
<!--添加回访信息-->
<div
v-if=
"callbackObj.teacher_id && callbackAdd && !$store.state.readonly"
class=
"callback-item callback-input"
>
<el-form
size=
"small"
inline
>
<el-form
size=
"small"
inline
>
<el-form-item
required
>
<el-form-item
required
>
<el-select
v-model=
"add.method"
placeholder=
"回访方式"
style=
"width: 140px;"
>
<el-select
v-model=
"add.method"
placeholder=
"回访方式"
style=
"width: 140px;"
>
...
...
src/components/user/index.vue
View file @
a6b45465
This diff is collapsed.
Click to expand it.
src/service/api.js
View file @
a6b45465
...
@@ -71,6 +71,10 @@ export const getCallBackApi = function (json) {
...
@@ -71,6 +71,10 @@ export const getCallBackApi = function (json) {
// console.log(json, 9001)
// console.log(json, 9001)
return
Vue
.
prototype
.
$fetch
(
`
${
_baseUrl
}
api/admin/user/visit/
${
json
.
user_id
}
`
,
json
)
return
Vue
.
prototype
.
$fetch
(
`
${
_baseUrl
}
api/admin/user/visit/
${
json
.
user_id
}
`
,
json
)
};
};
// 获取上次回访信息
export
const
getCallBackPrevApi
=
function
(
json
)
{
return
Vue
.
prototype
.
$fetch
(
`
${
_baseUrl
}
user/last/visit/
${
json
.
user_id
}
`
,
json
)
};
// 添加回访信息
// 添加回访信息
export
const
postCallBackApi
=
function
(
json
)
{
export
const
postCallBackApi
=
function
(
json
)
{
return
Vue
.
prototype
.
$post
(
`
${
_baseUrl
}
api/admin/user/visit/
${
json
.
user_id
}
/
${
json
.
teacher_id
}
`
,
json
)
return
Vue
.
prototype
.
$post
(
`
${
_baseUrl
}
api/admin/user/visit/
${
json
.
user_id
}
/
${
json
.
teacher_id
}
`
,
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