|
@@ -306,7 +306,7 @@ export default {
|
|
if (query !== "") {
|
|
if (query !== "") {
|
|
this.remoteLoading = true;
|
|
this.remoteLoading = true;
|
|
// 发请求搜索
|
|
// 发请求搜索
|
|
- const url = "/api-auth/user/queryLike";
|
|
|
|
|
|
+ const url = "/api-web/teacher/queryPage";
|
|
const options = {
|
|
const options = {
|
|
method: "get",
|
|
method: "get",
|
|
headers: {
|
|
headers: {
|
|
@@ -326,8 +326,8 @@ export default {
|
|
let result = res.data;
|
|
let result = res.data;
|
|
if (result.code == 200) {
|
|
if (result.code == 200) {
|
|
// Array.prototype.splice.apply(this.studentList, result.data.rows);
|
|
// Array.prototype.splice.apply(this.studentList, result.data.rows);
|
|
- if (result.data && result.data.length > 0) {
|
|
|
|
- result.data.forEach((item) => {
|
|
|
|
|
|
+ if (result.data && result.data.rows.length > 0) {
|
|
|
|
+ result.data.rows.forEach((item) => {
|
|
this.teacherList.unshift(item);
|
|
this.teacherList.unshift(item);
|
|
});
|
|
});
|
|
this.teacherList = this.deweight(this.teacherList, "phone");
|
|
this.teacherList = this.deweight(this.teacherList, "phone");
|