Commit ecf8b4cd authored by chenfenglei's avatar chenfenglei

老师列表加手机号搜索

parent a8e0f7e6
......@@ -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="120">
label="是否添加老师" width="140" 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>
......
......@@ -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>
......
......@@ -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',
......
......@@ -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')
......
......@@ -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;
......
......@@ -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;
......
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