Commit f1d6fff5 authored by 黄奎's avatar 黄奎

学员跟进调整

parent f97781df
......@@ -78,6 +78,7 @@
<th width="200">续费课程</th>
<th width="80">续费级别</th>
<th width="80">续费金额</th>
<th width="80">最新进度</th>
<th width="90">负责人</th>
</tr>
<template v-if='dataObj&&dataObj.RList && dataObj.RList.length>0'>
......@@ -163,6 +164,9 @@
<span>{{sItem.PreferPrice}}</span>
</div>
</td>
<td>
{{item.NewLesson}}
</td>
<td>
{{ item.CreateByName?item.CreateByName:'-' }}
</td>
......
......@@ -170,6 +170,7 @@
font-weight: 600;
margin-right: 10px;
}
</style>
<template>
<div :class="[
......@@ -290,6 +291,19 @@
:options="MyTransListData" option-label="StuName" @input="resetSearch" clearable option-value="StuId"
emit-value map-options />
</div>
<div class="col-3">
<q-select filled v-model="msg.Teacher_Id" dense use-input label="班主任" :options="MyTeacherListData"
option-label="EmployeeName" @input="resetSearch" @filter="filterTeacher" clearable option-value="Id"
emit-value map-options>
<template v-slot:no-option>
<q-item>
<q-item-section class="text-grey">
未找到相关数据
</q-item-section>
</q-item>
</template>
</q-select>
</div>
</div>
</div>
<div class="col row wrap q-gutter-x-md" v-if="staticObj && !isComponent">
......@@ -426,11 +440,7 @@
<q-item-label overline>添加事件</q-item-label>
</q-item-section>
</q-item>
<!-- <q-item dense clickable v-close-popup @click="showChangeCourse(props.row)">
<q-item-section>
<q-item-label overline >跳课</q-item-label>
</q-item-section>
</q-item> -->
</q-list>
</q-btn-dropdown>
</div>
......@@ -559,7 +569,8 @@
GuestState: "", //学员状态
CreateType: "", //客户来源
StuChannelId: "", //收客渠道
StuSourceId: ""
StuSourceId: "",
Teacher_Id: "", //班主任
},
pageCount: 0,
columns: [{
......@@ -569,7 +580,6 @@
align: "left",
required: true
},
{
name: "GuestName",
label: "姓名",
......@@ -812,7 +822,9 @@
courseName: "",
isShowChangeCourse: false,
ChangeCourseObj: {},
staticObj: {} //学生统计信息
staticObj: {}, //学生统计信息
MyTeacherListData: [], //查询老师列表
AllTeacherList: [], //所有教师列表
};
},
created() {
......@@ -864,6 +876,7 @@
this.GetStuChannelList();
this.GetCustomerList();
this.getEmployeeList();
this.findData();
} else {
this.msg.rowsPerPage = this.pageSize;
this.loading = this.outLoading;
......@@ -871,6 +884,18 @@
}
},
methods: {
//获取班主任
findData() {
queryEmployee({
AccountTypeStr: "2",
IsLeave: 1
}).then(res => {
if (res.Code == 1) {
this.MyTeacherListData = res.Data;
this.AllTeacherList = res.Data;
}
})
},
//获取收客渠道
GetStuChannelList() {
GetStuChannelList({}).then(res => {
......@@ -1010,6 +1035,18 @@
}
});
},
filterTeacher(val, update) {
update(() => {
if (val === "") {
this.MyTeacherListData = JSON.parse(JSON.stringify(this.AllTeacherList));
} else {
const needle = val.toLowerCase();
this.MyTeacherListData = this.AllTeacherList.filter(
v => v.EmployeeName.toLowerCase().indexOf(needle) > -1
);
}
});
},
//筛选课程
filterCourse(val, update) {
update(() => {
......@@ -1268,7 +1305,9 @@
}
}
};
</script>
<style lang="sass">
@import url('~assets/css/table.sass')
</style>
\ No newline at end of file
</style>
This diff is collapsed.
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