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
f34c5511
Commit
f34c5511
authored
Aug 29, 2019
by
IvyXia123
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' of
http://git.singsingenglish.com/new-sing/admin
into dev
parents
abf93254
5d117cda
Changes
7
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
733 additions
and
772 deletions
+733
-772
index.vue
src/components/callBack/index.vue
+42
-35
marketEnrollmentConversionList.vue
...ponents/conversionList/marketEnrollmentConversionList.vue
+0
-10
index.vue
src/components/framework/index.vue
+1
-1
teacherDesc.vue
src/components/framework/teacherDesc.vue
+1
-1
index.vue
src/components/teacherDetail/index.vue
+5
-5
index.vue
src/components/userDetail/index.vue
+4
-4
menuList.js
src/util/menuList.js
+680
-716
No files found.
src/components/callBack/index.vue
View file @
f34c5511
...
@@ -5,10 +5,10 @@
...
@@ -5,10 +5,10 @@
<el-card
shadow=
"never"
class=
"callback-info callback-item"
style=
"margin-bottom: 15px;"
>
<el-card
shadow=
"never"
class=
"callback-info callback-item"
style=
"margin-bottom: 15px;"
>
ID:
{{
user
.
user_id
}}
 
ID:
{{
user
.
user_id
}}
 
用户昵称:
{{
user
.
nickname
}}
 
用户昵称:
{{
user
.
info
.
nickname
||
'-'
}}
 
宝宝名称:
{{
user
.
baby_name
||
'-'
}}
 
宝宝名称:
{{
user
.
info
.
baby_name
||
'-'
}}
 
宝宝生日:
{{
(
user
.
birthday
==
'0000-00-00'
)
?
'-'
:
user
.
birthday
}}
 
宝宝生日:
{{
(
user
.
info
.
birthday
==
'0000-00-00'
)
?
'-'
:
user
.
info
.
birthday
}}
 
手机号:
{{
user
.
mobile
||
'-'
}}
 
手机号:
{{
user
.
info
.
mobile
||
'-'
}}
 
<div
style=
"display: inline-block; white-space: nowrap"
>
<div
style=
"display: inline-block; white-space: nowrap"
>
关联手机号:
关联手机号:
<span
class=
"callback-edit"
>
<span
class=
"callback-edit"
>
...
@@ -47,7 +47,7 @@
...
@@ -47,7 +47,7 @@
: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"
>
更新用户信息
type=
"primary"
plain
size=
"small"
>
更新用户信息
</el-button>
 
</el-button>
 
<span
style=
"font-size: 12px; color: #999999; white-space: nowrap"
>
最后更新:{{user.updated_at || '-'}}
</span>
<span
style=
"font-size: 12px; color: #999999; white-space: nowrap"
>
最后更新:{{user.
info.
updated_at || '-'}}
</span>
</el-card>
</el-card>
<el-card
shadow=
"never"
class=
"callback-item"
style=
"display: flex; align-items: flex-start; margin-bottom: 15px; line-height: 32px;"
>
<el-card
shadow=
"never"
class=
"callback-item"
style=
"display: flex; align-items: flex-start; margin-bottom: 15px; line-height: 32px;"
>
...
@@ -59,7 +59,7 @@
...
@@ -59,7 +59,7 @@
</el-card>
</el-card>
<!--添加回访信息-->
<!--添加回访信息-->
<el-card
shadow=
"never"
v-if=
"callbackObj.teacher_id &&
callbackAdd &&
!$store.state.readonly"
class=
"callback-item callback-input"
>
<el-card
shadow=
"never"
v-if=
"callbackObj.teacher_id && !$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;"
>
...
@@ -184,25 +184,21 @@
...
@@ -184,25 +184,21 @@
name
:
"CallBack"
,
name
:
"CallBack"
,
components
:
{
page
},
components
:
{
page
},
props
:
{
props
:
{
callbackObj
:
{
callbackObj
:
{
// user_id、teacher_id、timestamp
type
:
Object
,
type
:
Object
,
default
:
()
=>
{}
default
:
()
=>
{}
},
},
callbackAdd
:
{
hasUserInfo
:
{
// 是否传过来用户信息,传来用户信息就不调接口请求用户新,否则请求(防止同时请求用户信息接口报错)
type
:
Boolean
,
type
:
Boolean
,
default
:
false
default
:
false
}
}
,
},
},
data
()
{
data
()
{
return
{
return
{
loading
:
true
,
loading
:
true
,
user
:
{
user
:
{
user_id
:
''
,
user_id
:
''
,
nickname
:
''
,
info
:
{}
baby_name
:
''
,
birthday
:
''
,
mobile
:
''
,
updated_at
:
''
},
},
CALLBACK_METHOD
:
CALLBACK_METHOD
,
CALLBACK_METHOD
:
CALLBACK_METHOD
,
CALLBACK_TYPE
:
CALLBACK_TYPE
,
CALLBACK_TYPE
:
CALLBACK_TYPE
,
...
@@ -262,11 +258,14 @@
...
@@ -262,11 +258,14 @@
created
()
{
created
()
{
},
},
watch
:
{
watch
:
{
'user'
()
{
'callbackObj.info'
()
{
this
.
callbackEdit
.
mobile
.
value
=
this
.
user
.
relation_mobile
;
this
.
user
.
info
=
this
.
callbackObj
.
info
||
{};
this
.
callbackEdit
.
mobile
.
origin
=
this
.
user
.
relation_mobile
;
},
this
.
callbackEdit
.
wechat
.
value
=
this
.
user
.
wx_number
;
'user.info'
()
{
this
.
callbackEdit
.
wechat
.
origin
=
this
.
user
.
wx_number
;
this
.
callbackEdit
.
mobile
.
value
=
this
.
user
.
info
.
relation_mobile
;
this
.
callbackEdit
.
mobile
.
origin
=
this
.
user
.
info
.
relation_mobile
;
this
.
callbackEdit
.
wechat
.
value
=
this
.
user
.
info
.
wx_number
;
this
.
callbackEdit
.
wechat
.
origin
=
this
.
user
.
info
.
wx_number
;
},
},
'callbackObj.timestamp'
()
{
'callbackObj.timestamp'
()
{
this
.
user
.
user_id
=
this
.
callbackObj
.
user_id
;
this
.
user
.
user_id
=
this
.
callbackObj
.
user_id
;
...
@@ -276,8 +275,26 @@
...
@@ -276,8 +275,26 @@
},
},
mounted
()
{
mounted
()
{
this
.
user
.
user_id
=
this
.
callbackObj
.
user_id
;
this
.
user
.
user_id
=
this
.
callbackObj
.
user_id
;
this
.
getUser
();
if
(
!
this
.
hasUserInfo
)
{
this
.
getUser
();
}
else
{
this
.
user
.
info
=
this
.
callbackObj
.
info
;
}
this
.
getTag
();
this
.
getTag
();
this
.
getData
();
if
(
this
.
callbackObj
.
teacher_id
)
{
let
json
=
{
user_id
:
this
.
callbackObj
.
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
;
}
})
}
},
},
methods
:
{
methods
:
{
filterName
(
string
,
type
)
{
filterName
(
string
,
type
)
{
...
@@ -300,7 +317,9 @@
...
@@ -300,7 +317,9 @@
putUserInfoApi
(
this
.
user
.
user_id
,
json
).
then
(
res
=>
{
putUserInfoApi
(
this
.
user
.
user_id
,
json
).
then
(
res
=>
{
this
.
$message
({
type
:
'success'
,
message
:
'用户信息更新成功'
});
this
.
$message
({
type
:
'success'
,
message
:
'用户信息更新成功'
});
this
.
getUser
();
this
.
getUser
();
// this.$emit('updateUser');
if
(
this
.
hasUserInfo
)
{
this
.
$emit
(
'updateUser'
);
}
})
})
},
},
...
@@ -388,20 +407,7 @@
...
@@ -388,20 +407,7 @@
getUser
()
{
getUser
()
{
getUserDetailApi
(
this
.
user
.
user_id
).
then
(
res
=>
{
getUserDetailApi
(
this
.
user
.
user_id
).
then
(
res
=>
{
// console.log(res, 999)
// console.log(res, 999)
this
.
user
=
res
;
this
.
user
.
info
=
res
;
this
.
getData
();
if
(
this
.
callbackObj
.
teacher_id
)
{
let
json
=
{
user_id
:
this
.
callbackObj
.
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
;
})
})
},
},
getTag
()
{
getTag
()
{
...
@@ -420,6 +426,7 @@
...
@@ -420,6 +426,7 @@
this
.
list
=
res
.
page_data
;
this
.
list
=
res
.
page_data
;
this
.
total
=
res
.
total
this
.
total
=
res
.
total
// this.total = res.total_page
// this.total = res.total_page
this
.
loading
=
false
;
})
})
},
},
callbackReset
()
{
callbackReset
()
{
...
...
src/components/conversionList/marketEnrollmentConversionList.vue
View file @
f34c5511
...
@@ -331,13 +331,6 @@ export default {
...
@@ -331,13 +331,6 @@ export default {
</
script
>
</
script
>
<
style
scoped
lang=
"less"
>
<
style
scoped
lang=
"less"
>
.searchFrom{
/*position: absolute;
top: 20px;*/
}
.el-table{
/*margin-top: 130px;*/
}
/deep/.el-table--enable-row-hover .el-table__body tr:hover > td {
/deep/.el-table--enable-row-hover .el-table__body tr:hover > td {
background-color: #fff;
background-color: #fff;
}
}
...
@@ -347,7 +340,4 @@ export default {
...
@@ -347,7 +340,4 @@ export default {
/deep/.el-progress-bar__inner {
/deep/.el-progress-bar__inner {
max-width: 100% !important;
max-width: 100% !important;
}
}
.el-main .content .router-block .child-view {
/*height: 100vh;*/
}
</
style
>
</
style
>
src/components/framework/index.vue
View file @
f34c5511
...
@@ -40,7 +40,7 @@
...
@@ -40,7 +40,7 @@
}
}
</
script
>
</
script
>
<
style
scoped
lang=
"less"
>
<
style
lang=
"less"
>
@import "../../util/public";
@import "../../util/public";
.el-header{
.el-header{
background: #333333;
background: #333333;
...
...
src/components/framework/teacherDesc.vue
View file @
f34c5511
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
<el-dialog
append-to-body
:visible
.
sync=
"descDialog.show"
title=
"沟通情况列表"
width=
"75%"
>
<el-dialog
append-to-body
:visible
.
sync=
"descDialog.show"
title=
"沟通情况列表"
width=
"75%"
>
<!--TODO @updateUser-->
<!--TODO @updateUser-->
<call-back
:callback
Add=
"true"
:callback
Obj=
"callbackObj"
></call-back>
<call-back
:callbackObj=
"callbackObj"
></call-back>
<!--
<el-form
label-width=
"90px"
>
<!--
<el-form
label-width=
"90px"
>
<el-form-item>
<el-form-item>
...
...
src/components/teacherDetail/index.vue
View file @
f34c5511
...
@@ -471,7 +471,7 @@
...
@@ -471,7 +471,7 @@
</el-table-column>
</el-table-column>
<el-table-column
prop=
"mobile"
label=
"手机号"
></el-table-column>
<el-table-column
prop=
"mobile"
label=
"手机号"
></el-table-column>
</el-table>
</el-table>
<page
:total=
"userObj.total"
:limit=
"userObj.limit"
:small=
"true"
@
pageChange=
"onPageChange
3"
@
sizeChange=
"onSizeChange3
"
/>
<page
:total=
"userObj.total"
:limit=
"userObj.limit"
:small=
"true"
@
pageChange=
"onPageChange
4"
@
sizeChange=
"onSizeChange4
"
/>
<span
slot=
"footer"
class=
"dialog-footer"
>
<span
slot=
"footer"
class=
"dialog-footer"
>
<el-button
@
click=
"addShow = false"
>
取 消
</el-button>
<el-button
@
click=
"addShow = false"
>
取 消
</el-button>
<el-button
type=
"primary"
@
click=
"onAdd"
>
确 定
</el-button>
<el-button
type=
"primary"
@
click=
"onAdd"
>
确 定
</el-button>
...
@@ -821,15 +821,15 @@
...
@@ -821,15 +821,15 @@
type
:
data
.
type
type
:
data
.
type
}
}
},
},
/*onPageChange3
(val) {
onPageChange4
(
val
)
{
this
.
userObj
.
nowPage
=
val
;
this
.
userObj
.
nowPage
=
val
;
this
.
getUser
()
this
.
getUser
()
},
*/
},
/*onSizeChange3
(val) {
onSizeChange4
(
val
)
{
this
.
userObj
.
limit
=
val
;
this
.
userObj
.
limit
=
val
;
this
.
userObj
.
nowPage
=
1
;
this
.
userObj
.
nowPage
=
1
;
this
.
getUser
();
this
.
getUser
();
},
*/
},
onPageChange
(
val
)
{
onPageChange
(
val
)
{
this
.
nowPage
=
val
;
this
.
nowPage
=
val
;
this
.
getTeacherDetail
();
this
.
getTeacherDetail
();
...
...
src/components/userDetail/index.vue
View file @
f34c5511
...
@@ -58,7 +58,7 @@
...
@@ -58,7 +58,7 @@
<!--
<el-tabs
type=
"border-card"
v-model=
"tabs"
>
-->
<!--
<el-tabs
type=
"border-card"
v-model=
"tabs"
>
-->
<el-tabs
type=
"border-card"
v-model=
"tabs"
>
<el-tabs
type=
"border-card"
v-model=
"tabs"
>
<el-tab-pane
label=
"回访信息"
name=
"callback"
>
<el-tab-pane
label=
"回访信息"
name=
"callback"
>
<call-back
:
callbackObj=
"callbackObj"
:callbackAdd=
"true
"
@
updateUser=
"getDetail"
></call-back>
<call-back
:
hasUserInfo=
"true"
:callbackObj=
"callbackObj
"
@
updateUser=
"getDetail"
></call-back>
</el-tab-pane>
</el-tab-pane>
<el-tab-pane
label=
"期数列表"
name=
"periods"
>
<el-tab-pane
label=
"期数列表"
name=
"periods"
>
<el-table
@
expand-change=
"changeRow"
:data=
"periodList"
>
<el-table
@
expand-change=
"changeRow"
:data=
"periodList"
>
...
@@ -550,7 +550,8 @@
...
@@ -550,7 +550,8 @@
callbackObj
:
{
callbackObj
:
{
user_id
:
''
,
user_id
:
''
,
teacher_id
:
''
,
teacher_id
:
''
,
timestamp
:
''
timestamp
:
''
,
info
:
{
}
}
,
}
,
userList
:
[],
userList
:
[],
yunjiList
:
[],
yunjiList
:
[],
...
@@ -875,11 +876,10 @@
...
@@ -875,11 +876,10 @@
if
(
!
this
.
id
)
return
;
if
(
!
this
.
id
)
return
;
getUserDetailApi
(
this
.
id
).
then
(
res
=>
{
getUserDetailApi
(
this
.
id
).
then
(
res
=>
{
this
.
detail
=
res
;
this
.
detail
=
res
;
// this.callbackObj.detail = res; // 用户的所有数据
if
(
res
.
periods_list
)
{
if
(
res
.
periods_list
)
{
this
.
periodList
=
res
.
periods_list
this
.
periodList
=
res
.
periods_list
}
}
// console.log(res)
this
.
callbackObj
.
info
=
res
;
// 用户的所有数据
}
)
}
)
getSubAccountInfoApi
(
this
.
id
).
then
(
res
=>
{
getSubAccountInfoApi
(
this
.
id
).
then
(
res
=>
{
if
(
res
.
family_user
==
1
)
{
if
(
res
.
family_user
==
1
)
{
...
...
src/util/menuList.js
View file @
f34c5511
This diff is collapsed.
Click to expand it.
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