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
ecf8b4cd
Commit
ecf8b4cd
authored
Dec 29, 2018
by
chenfenglei
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
老师列表加手机号搜索
parent
a8e0f7e6
Changes
6
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
25 additions
and
23 deletions
+25
-23
userList.vue
src/components/class/userList.vue
+5
-5
newDialog.vue
src/components/monthOrder/newDialog.vue
+1
-1
refundDialog.vue
src/components/monthOrder/refundDialog.vue
+1
-0
admin.vue
src/components/system/admin.vue
+0
-14
index.vue
src/components/teacher/index.vue
+8
-0
index.vue
src/components/teacherDetail/index.vue
+10
-3
No files found.
src/components/class/userList.vue
View file @
ecf8b4cd
...
...
@@ -178,31 +178,31 @@
</
template
>
</el-table-column>
<el-table-column
label=
"作业率"
sortable
prop=
"work_rate"
>
label=
"作业率"
sortable
prop=
"work_rate"
width=
"120"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
work_rate
|
percent
}}
</
template
>
</el-table-column>
<el-table-column
label=
"打卡率"
sortable
prop=
"clock_rate"
>
label=
"打卡率"
sortable
prop=
"clock_rate"
width=
"120"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
clock_rate
|
percent
}}
</
template
>
</el-table-column>
<el-table-column
label=
"续费情况"
>
label=
"续费情况"
width=
"120"
sortable
prop=
"is_continue_buy"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
is_continue_buy
|
isOrNot
}}
</
template
>
</el-table-column>
<el-table-column
label=
"是否添加老师"
width=
"1
20
"
>
label=
"是否添加老师"
width=
"1
40"
sortable
prop=
"is_add_teacher
"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
is_add_teacher
===
0
?
'否'
:
'是'
}}
</
template
>
</el-table-column>
<el-table-column
label=
"意向等级"
>
label=
"意向等级"
width=
"120"
sortable
prop=
"weight"
>
<
template
slot-scope=
"scope"
>
{{
scope
.
row
.
weight
}}
</
template
>
...
...
src/components/monthOrder/newDialog.vue
View file @
ecf8b4cd
...
...
@@ -54,7 +54,7 @@
v-for=
"item in teacherList"
:key=
"item.id"
:label=
"item.name"
:value=
"item.id"
>
:value=
"item.
user_
id"
>
</el-option>
</el-select>
</el-form-item>
...
...
src/components/monthOrder/refundDialog.vue
View file @
ecf8b4cd
...
...
@@ -91,6 +91,7 @@
desc
:
this
.
form
.
desc
,
refund_type
:
this
.
form
.
refund_type
};
console
.
log
(
json
)
refundApi
(
this
.
dialogObj
.
id
,
json
).
then
(
res
=>
{
this
.
$message
({
type
:
'success'
,
...
...
src/components/system/admin.vue
View file @
ecf8b4cd
...
...
@@ -275,20 +275,6 @@
json
.
role_id
=
this
.
searchFrom
.
role_id
}
getAdminListApi
(
json
).
then
(
res
=>
{
if
(
this
.
searchFrom
.
role_name
!==
''
){
switch
(
this
.
searchFrom
.
role_name
){
case
'超级管理员'
:
res
.
list
=
res
.
list
.
filter
(
function
(
item
,
i
){
return
item
.
role_name
==
"超级管理员"
});
break
;
case
'管理员'
:
res
.
list
=
res
.
list
.
filter
(
function
(
item
,
i
){
return
item
.
role_name
==
"管理员"
});
break
;
}
}
this
.
adminList
=
res
.
list
;
this
.
total
=
Number
(
res
.
total
)
this
.
$store
.
commit
(
'mainCanShow'
)
...
...
src/components/teacher/index.vue
View file @
ecf8b4cd
...
...
@@ -3,6 +3,9 @@
<el-form
ref=
"searchFrom"
:model=
"searchFrom"
label-width=
"80px"
inline
>
<el-form-item
label=
"昵称"
>
<el-input
v-model=
"searchFrom.name"
></el-input>
</el-form-item>
<el-form-item
label=
"手机号"
>
<el-input
v-model=
"searchFrom.alias"
></el-input>
</el-form-item>
<el-form-item
label=
"教师类型"
>
<el-select
v-model=
"searchFrom.type"
placeholder=
"请选择"
@
change=
"getUser"
clearable
>
...
...
@@ -84,6 +87,8 @@
return
{
searchFrom
:{
name
:
''
,
alias
:
""
,
type
:
""
,
},
userList
:[],
total
:
0
,
...
...
@@ -157,6 +162,9 @@
}
if
(
this
.
searchFrom
.
name
)
{
json
.
name
=
this
.
searchFrom
.
name
}
if
(
this
.
searchFrom
.
alias
)
{
json
.
alias
=
this
.
searchFrom
.
alias
}
getTeacherListApi
(
json
).
then
(
res
=>
{
this
.
userList
=
res
.
list
;
...
...
src/components/teacherDetail/index.vue
View file @
ecf8b4cd
...
...
@@ -31,7 +31,7 @@
</el-col>
<el-col
v-if=
"detail.user_info"
:span=
"6"
>
<el-button
@
click=
"createInviteLink(detail.user_info
.user_id
)"
size=
"mini"
plain
type=
"primary"
>
<el-button
@
click=
"createInviteLink(detail.user_info)"
size=
"mini"
plain
type=
"primary"
>
复制专属链接
</el-button>
</el-col>
...
...
@@ -606,9 +606,16 @@ import chooseGoodDialog from './chooseGoodDialog'
})
},
createInviteLink
(
id
){
createInviteLink
(
val
){
this
.
chooseGoodDialogObj
.
show
=
true
;
this
.
chooseGoodDialogObj
.
code
=
`CC-TEACHER-
${
id
}
`
;
//类型选择项
if
(
this
.
detail
.
type
==
0
){
this
.
chooseGoodDialogObj
.
code
=
`CC-TEACHER-
${
val
.
user_id
}
`
;
}
else
if
(
this
.
detail
.
type
==
1
){
this
.
chooseGoodDialogObj
.
code
=
`CC-XXMM-
${
val
.
user_id
}
`
;
}
},
changeShow
(){
this
.
chooseGoodDialogObj
.
show
=
false
;
...
...
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