Commit ecf8b4cd authored by chenfenglei's avatar chenfenglei

老师列表加手机号搜索

parent a8e0f7e6
...@@ -178,31 +178,31 @@ ...@@ -178,31 +178,31 @@
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="作业率" sortable prop="work_rate"> label="作业率" sortable prop="work_rate" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.work_rate | percent}} {{ scope.row.work_rate | percent}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="打卡率" sortable prop="clock_rate"> label="打卡率" sortable prop="clock_rate" width="120">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.clock_rate | percent}} {{ scope.row.clock_rate | percent}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="续费情况"> label="续费情况" width="120" sortable prop="is_continue_buy">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.is_continue_buy | isOrNot}} {{ scope.row.is_continue_buy | isOrNot}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="是否添加老师" width="120"> label="是否添加老师" width="140" sortable prop="is_add_teacher">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.is_add_teacher === 0 ? '否' : '是'}} {{ scope.row.is_add_teacher === 0 ? '否' : '是'}}
</template> </template>
</el-table-column> </el-table-column>
<el-table-column <el-table-column
label="意向等级"> label="意向等级" width="120" sortable prop="weight">
<template slot-scope="scope"> <template slot-scope="scope">
{{ scope.row.weight}} {{ scope.row.weight}}
</template> </template>
......
...@@ -54,7 +54,7 @@ ...@@ -54,7 +54,7 @@
v-for="item in teacherList" v-for="item in teacherList"
:key="item.id" :key="item.id"
:label="item.name" :label="item.name"
:value="item.id"> :value="item.user_id">
</el-option> </el-option>
</el-select> </el-select>
</el-form-item> </el-form-item>
......
...@@ -91,6 +91,7 @@ ...@@ -91,6 +91,7 @@
desc: this.form.desc, desc: this.form.desc,
refund_type:this.form.refund_type refund_type:this.form.refund_type
}; };
console.log(json)
refundApi(this.dialogObj.id,json).then(res=>{ refundApi(this.dialogObj.id,json).then(res=>{
this.$message({ this.$message({
type: 'success', type: 'success',
......
...@@ -275,20 +275,6 @@ ...@@ -275,20 +275,6 @@
json.role_id = this.searchFrom.role_id json.role_id = this.searchFrom.role_id
} }
getAdminListApi(json).then(res=>{ 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.adminList = res.list;
this.total=Number(res.total) this.total=Number(res.total)
this.$store.commit('mainCanShow') this.$store.commit('mainCanShow')
......
...@@ -3,6 +3,9 @@ ...@@ -3,6 +3,9 @@
<el-form ref="searchFrom" :model="searchFrom" label-width="80px" inline> <el-form ref="searchFrom" :model="searchFrom" label-width="80px" inline>
<el-form-item label="昵称"> <el-form-item label="昵称">
<el-input v-model="searchFrom.name"></el-input> <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>
<el-form-item label="教师类型"> <el-form-item label="教师类型">
<el-select v-model="searchFrom.type" placeholder="请选择" @change="getUser" clearable> <el-select v-model="searchFrom.type" placeholder="请选择" @change="getUser" clearable>
...@@ -84,6 +87,8 @@ ...@@ -84,6 +87,8 @@
return { return {
searchFrom:{ searchFrom:{
name:'', name:'',
alias:"",
type:"",
}, },
userList:[], userList:[],
total:0, total:0,
...@@ -157,6 +162,9 @@ ...@@ -157,6 +162,9 @@
} }
if (this.searchFrom.name) { if (this.searchFrom.name) {
json.name = this.searchFrom.name json.name = this.searchFrom.name
}
if (this.searchFrom.alias) {
json.alias = this.searchFrom.alias
} }
getTeacherListApi(json).then(res=>{ getTeacherListApi(json).then(res=>{
this.userList = res.list; this.userList = res.list;
......
...@@ -31,7 +31,7 @@ ...@@ -31,7 +31,7 @@
</el-col> </el-col>
<el-col v-if="detail.user_info" :span="6"> <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-button>
</el-col> </el-col>
...@@ -606,9 +606,16 @@ import chooseGoodDialog from './chooseGoodDialog' ...@@ -606,9 +606,16 @@ import chooseGoodDialog from './chooseGoodDialog'
}) })
}, },
createInviteLink(id){ createInviteLink(val){
this.chooseGoodDialogObj.show = true; 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(){ changeShow(){
this.chooseGoodDialogObj.show = false; this.chooseGoodDialogObj.show = false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment