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
b57a6120
Commit
b57a6120
authored
Aug 28, 2019
by
赵茹林
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'dev' into pre
parents
b26b321a
7a059540
Changes
7
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
41 additions
and
1176 deletions
+41
-1176
index.vue
src/components/brokerage/index.vue
+12
-2
index.vue
src/components/callBack/index.vue
+7
-3
teacherDesc.vue
src/components/framework/teacherDesc.vue
+4
-7
customer.vue
src/components/teacherDetail/customer.vue
+2
-2
index.vue
src/components/user/index.vue
+11
-0
detail.vue
src/components/userDetail/detail.vue
+0
-1159
index.vue
src/components/userDetail/index.vue
+5
-3
No files found.
src/components/brokerage/index.vue
View file @
b57a6120
...
@@ -23,12 +23,16 @@
...
@@ -23,12 +23,16 @@
<el-input
<el-input
style=
"width: 46%;"
style=
"width: 46%;"
type=
"number"
type=
"number"
v-model
.
number=
"scope.row.min_money"
></el-input>
v-model
.
number=
"scope.row.min_money"
>
<template
v-if=
"item2.isMoneyPercent"
slot=
"append"
>
%
</
template
>
</el-input>
<div
style=
"display: flex; align-items: center; justify-content: center; width: 8%;"
>
~
</div>
<div
style=
"display: flex; align-items: center; justify-content: center; width: 8%;"
>
~
</div>
<el-input
<el-input
style=
"width: 46%;"
style=
"width: 46%;"
type=
"number"
type=
"number"
v-model
.
number=
"scope.row.max_money"
></el-input>
v-model
.
number=
"scope.row.max_money"
>
<
template
v-if=
"item2.isMoneyPercent"
slot=
"append"
>
%
</
template
>
</el-input>
</div>
</div>
</template>
</template>
</el-table-column>
</el-table-column>
...
@@ -86,18 +90,21 @@
...
@@ -86,18 +90,21 @@
value
:
'1'
,
value
:
'1'
,
children
:
[{
children
:
[{
label
:
'试听课来源-转年课业绩提点配置'
,
label
:
'试听课来源-转年课业绩提点配置'
,
isMoneyPercent
:
false
,
money
:
'业绩区间'
,
money
:
'业绩区间'
,
scale
:
'提点比例'
,
scale
:
'提点比例'
,
value
:
'1'
,
value
:
'1'
,
data
:
[]
data
:
[]
},
{
},
{
label
:
'月课、季课来源-转年课业绩提点配置'
,
label
:
'月课、季课来源-转年课业绩提点配置'
,
isMoneyPercent
:
false
,
money
:
'业绩区间'
,
money
:
'业绩区间'
,
scale
:
'提点比例'
,
scale
:
'提点比例'
,
value
:
'2'
,
value
:
'2'
,
data
:
[]
data
:
[]
},
{
},
{
label
:
'年课来源 - 转两年课业绩提点配置'
,
label
:
'年课来源 - 转两年课业绩提点配置'
,
isMoneyPercent
:
false
,
money
:
'业绩区间'
,
money
:
'业绩区间'
,
scale
:
'提点比例'
,
scale
:
'提点比例'
,
value
:
'3'
,
value
:
'3'
,
...
@@ -108,18 +115,21 @@
...
@@ -108,18 +115,21 @@
value
:
'2'
,
value
:
'2'
,
children
:
[{
children
:
[{
label
:
'主管业绩提点'
,
label
:
'主管业绩提点'
,
isMoneyPercent
:
true
,
// 是否显示%
money
:
'业绩完成率'
,
money
:
'业绩完成率'
,
scale
:
'提点比例'
,
scale
:
'提点比例'
,
value
:
'4'
,
value
:
'4'
,
data
:
[]
data
:
[]
},
{
},
{
label
:
'主管转化率系数(试听课)'
,
label
:
'主管转化率系数(试听课)'
,
isMoneyPercent
:
true
,
money
:
'团队转化率'
,
money
:
'团队转化率'
,
scale
:
'转化系数'
,
scale
:
'转化系数'
,
value
:
'5'
,
value
:
'5'
,
data
:
[]
data
:
[]
},
{
},
{
label
:
'主管转化率系数(月课、季课)'
,
label
:
'主管转化率系数(月课、季课)'
,
isMoneyPercent
:
true
,
money
:
'团队转化率'
,
money
:
'团队转化率'
,
scale
:
'转化系数'
,
scale
:
'转化系数'
,
value
:
'6'
,
value
:
'6'
,
...
...
src/components/callBack/index.vue
View file @
b57a6120
...
@@ -186,8 +186,7 @@
...
@@ -186,8 +186,7 @@
props
:
{
props
:
{
callbackObj
:
{
callbackObj
:
{
type
:
Object
,
type
:
Object
,
default
:
()
=>
{
default
:
()
=>
{}
}
},
},
callbackAdd
:
{
callbackAdd
:
{
type
:
Boolean
,
type
:
Boolean
,
...
@@ -268,6 +267,11 @@
...
@@ -268,6 +267,11 @@
this
.
callbackEdit
.
mobile
.
origin
=
this
.
user
.
relation_mobile
;
this
.
callbackEdit
.
mobile
.
origin
=
this
.
user
.
relation_mobile
;
this
.
callbackEdit
.
wechat
.
value
=
this
.
user
.
wx_number
;
this
.
callbackEdit
.
wechat
.
value
=
this
.
user
.
wx_number
;
this
.
callbackEdit
.
wechat
.
origin
=
this
.
user
.
wx_number
;
this
.
callbackEdit
.
wechat
.
origin
=
this
.
user
.
wx_number
;
},
'callbackObj.timestamp'
()
{
this
.
user
.
user_id
=
this
.
callbackObj
.
user_id
;
this
.
getUser
();
this
.
getTag
();
}
}
},
},
mounted
()
{
mounted
()
{
...
@@ -388,7 +392,7 @@
...
@@ -388,7 +392,7 @@
this
.
getData
();
this
.
getData
();
if
(
this
.
callbackObj
.
teacher_id
)
{
if
(
this
.
callbackObj
.
teacher_id
)
{
let
json
=
{
let
json
=
{
user_id
:
this
.
user
.
user_id
user_id
:
this
.
callbackObj
.
user_id
}
}
getCallBackPrevApi
(
json
).
then
(
res
=>
{
getCallBackPrevApi
(
json
).
then
(
res
=>
{
if
(
res
&&
res
[
0
]
&&
res
[
0
].
next_visit_at
&&
res
[
0
].
intention
)
{
if
(
res
&&
res
[
0
]
&&
res
[
0
].
next_visit_at
&&
res
[
0
].
intention
)
{
...
...
src/components/framework/teacherDesc.vue
View file @
b57a6120
...
@@ -98,8 +98,9 @@
...
@@ -98,8 +98,9 @@
data
(){
data
(){
return
{
return
{
callbackObj
:
{
callbackObj
:
{
id
:
''
,
user_id
:
''
,
detail
:
{}
teacher_id
:
''
,
timestamp
:
''
},
},
descDialog
:{
descDialog
:{
show
:
false
,
show
:
false
,
...
@@ -144,11 +145,7 @@
...
@@ -144,11 +145,7 @@
// this.getUserDescList();
// this.getUserDescList();
this
.
callbackObj
.
user_id
=
data
.
user_id
;
this
.
callbackObj
.
user_id
=
data
.
user_id
;
this
.
callbackObj
.
teacher_id
=
this
.
teacherId
;
this
.
callbackObj
.
teacher_id
=
this
.
teacherId
;
this
.
callbackObj
.
detail
.
birthday
=
data
.
birthday
;
this
.
callbackObj
.
timestamp
=
(
new
Date
()).
getTime
();
this
.
callbackObj
.
detail
.
user_id
=
data
.
user_id
;
this
.
callbackObj
.
detail
.
nickname
=
data
.
nickname
;
this
.
callbackObj
.
detail
.
mobile
=
data
.
mobile
;
this
.
callbackObj
.
detail
.
baby_name
=
data
.
baby_name
;
},
},
getUserDescList
(){
getUserDescList
(){
getUserDescListApi
(
this
.
row
.
id
,{
limit
:
1000
}).
then
(
res
=>
{
getUserDescListApi
(
this
.
row
.
id
,{
limit
:
1000
}).
then
(
res
=>
{
...
...
src/components/teacherDetail/customer.vue
View file @
b57a6120
...
@@ -66,7 +66,7 @@
...
@@ -66,7 +66,7 @@
<template
v-if=
"infoShow == 2"
>
<template
v-if=
"infoShow == 2"
>
<td>
{{
index
+
1
}}
</td>
<td>
{{
index
+
1
}}
</td>
<td>
{{
customerObj
.
name
}}
</td>
<td>
{{
customerObj
.
name
}}
</td>
<td>
{{
item
.
contact_name
}}
</td>
<td
style=
"text-decoration: underline;"
>
{{
item
.
contact_name
}}
</td>
<td>
{{
item
.
contact_phone
}}
</td>
<td>
{{
item
.
contact_phone
}}
</td>
<td>
{{
item
.
start_time
}}
</td>
<td>
{{
item
.
start_time
}}
</td>
<td>
{{
(
item
.
duration
/
60
)
%
1
===
0
?
item
.
duration
/
60
:
(
item
.
duration
/
60
).
toFixed
(
2
)
}}
min
</td>
<td>
{{
(
item
.
duration
/
60
)
%
1
===
0
?
item
.
duration
/
60
:
(
item
.
duration
/
60
).
toFixed
(
2
)
}}
min
</td>
...
@@ -110,7 +110,7 @@
...
@@ -110,7 +110,7 @@
<
template
v-if=
"infoShow == 4"
>
<
template
v-if=
"infoShow == 4"
>
<td
>
{{
customerObj
.
name
}}
</td>
<td
>
{{
customerObj
.
name
}}
</td>
<td>
{{
item
.
friend_uid
}}
</td>
<td>
{{
item
.
friend_uid
}}
</td>
<td
>
{{
item
.
friend_nickname
}}
</td>
<td
style=
"text-decoration: underline;"
><router-link
:to=
"
{path:'/userDetail', query:{userid: item.user_id, teacherid: customerO.id}}" target="_blank">
{{
item
.
friend_nickname
}}
</router-link>
</td>
<td>
{{
item
.
mobile
}}
</td>
<td>
{{
item
.
mobile
}}
</td>
<td>
{{
item
.
allow_time
}}
</td>
<td>
{{
item
.
allow_time
}}
</td>
<td>
{{
item
.
add_time_long
}}
min
</td>
<td>
{{
item
.
add_time_long
}}
min
</td>
...
...
src/components/user/index.vue
View file @
b57a6120
...
@@ -167,6 +167,17 @@
...
@@ -167,6 +167,17 @@
userDetail
,
userDetail
,
teacherDialog
teacherDialog
},
},
watch
:
{
$route
(){
if
(
this
.
$route
.
query
.
type
&&
this
.
$route
.
query
.
type
==
'detail'
)
{
// 详情页
this
.
inDetail
=
true
}
else
{
// 列表页
this
.
inDetail
=
false
;
this
.
getUser
();
}
this
.
$route
.
query
.
id
?
this
.
searchFrom
.
userId
=
this
.
$route
.
query
.
id
:
''
;
},
},
mounted
()
{
mounted
()
{
if
(
this
.
$route
.
query
.
type
&&
this
.
$route
.
query
.
type
==
'detail'
)
{
// 详情页
if
(
this
.
$route
.
query
.
type
&&
this
.
$route
.
query
.
type
==
'detail'
)
{
// 详情页
this
.
inDetail
=
true
this
.
inDetail
=
true
...
...
src/components/userDetail/detail.vue
deleted
100644 → 0
View file @
b26b321a
This diff is collapsed.
Click to expand it.
src/components/userDetail/index.vue
View file @
b57a6120
...
@@ -548,8 +548,9 @@
...
@@ -548,8 +548,9 @@
data
()
{
data
()
{
return
{
return
{
callbackObj
:
{
callbackObj
:
{
id
:
''
,
user_id
:
''
,
detail
:
{
}
teacher_id
:
''
,
timestamp
:
''
}
,
}
,
userList
:
[],
userList
:
[],
yunjiList
:
[],
yunjiList
:
[],
...
@@ -651,6 +652,7 @@
...
@@ -651,6 +652,7 @@
this
.
callbackObj
.
user_id
=
this
.
id
;
this
.
callbackObj
.
user_id
=
this
.
id
;
// this.callbackObj.teacher_id = this.parentDetail.teacher_id ? this.parentDetail.teacher_id : '';
// this.callbackObj.teacher_id = this.parentDetail.teacher_id ? this.parentDetail.teacher_id : '';
this
.
callbackObj
.
teacher_id
=
this
.
parentDetail
&&
this
.
parentDetail
.
teacher_id
?
this
.
parentDetail
.
teacher_id
:
(
this
.
$route
.
query
.
teacherid
?
this
.
$route
.
query
.
teacherid
:
''
);
this
.
callbackObj
.
teacher_id
=
this
.
parentDetail
&&
this
.
parentDetail
.
teacher_id
?
this
.
parentDetail
.
teacher_id
:
(
this
.
$route
.
query
.
teacherid
?
this
.
$route
.
query
.
teacherid
:
''
);
this
.
callbackObj
.
timestamp
=
(
new
Date
()).
getTime
();
}
,
}
,
mounted
()
{
mounted
()
{
this
.
getDetail
();
this
.
getDetail
();
...
@@ -873,7 +875,7 @@
...
@@ -873,7 +875,7 @@
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
;
// 用户的所有数据
//
this.callbackObj.detail = res; // 用户的所有数据
if
(
res
.
periods_list
)
{
if
(
res
.
periods_list
)
{
this
.
periodList
=
res
.
periods_list
this
.
periodList
=
res
.
periods_list
}
}
...
...
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