Commit f14b70f1 authored by 黄奎's avatar 黄奎

页面修改

parent 241b960f
This diff is collapsed.
......@@ -3,18 +3,14 @@
<div class="page-search row items-center">
<div class="col row wrap q-mr-lg q-col-gutter-md">
<div class="col-3">
<q-input @input="resetSearch" clearable filled v-model="msg.StuName" label="学员名称" maxlength="20" />
<q-input @input="resetSearch" clearable filled v-model="msg.StuName" label="名称" maxlength="20" />
</div>
<div class="col-3">
<q-input @input="resetSearch" clearable filled v-model="msg.StuTel" label="学员电话" maxlength="20" />
<q-input @input="resetSearch" clearable filled v-model="msg.StuTel" label="电话" maxlength="20" />
</div>
<div class="col-3">
<q-select @input="resetSearch" clearable filled stack-label option-value="SId" option-label="SName"
v-model="schoolTemp" ref="School_Id" :options="schoolList" label="所属校区" :dense="false" />
</div>
<div class="col-3">
<q-select @input="resetSearch" filled v-model="msg.Status" :options="AuditOpts" emit-value map-options
label="状态" />
<q-select filled v-model="msg.CreateBy" @filter="filterEmployee" use-input :options="myEmployeeList"
option-label="EmployeeName" option-value="Id" emit-value map-options label="负责人" />
</div>
</div>
<div class="page-option">
......@@ -23,7 +19,7 @@
</div>
<div class="page-content">
<q-table :pagination="msg" :loading="loading" no-data-label="暂无相关数据" flat
class="sticky-right-column-table sticky-tow-column-table" separator="none" title="客户管理(学员)" :data="data"
class="sticky-right-column-table sticky-tow-column-table" separator="none" title="客户管理" :data="data"
:columns="columns" row-key="name">
<template v-slot:body-cell-StuIcon="props">
<q-td auto-width :props="props">
......@@ -69,6 +65,9 @@
deleteStudent,
createStudentAccount
} from '../../api/school/index'
import {
queryEmployee
} from '../../api/users/user'
import {
resetPassword
} from '../../api/users/user.js'
......@@ -77,7 +76,7 @@
export default {
meta: {
title: "客户管理(学员)"
title: "客户管理"
},
components: {
studentForm,
......@@ -164,7 +163,7 @@
StuName: "",
StuTel: "",
Status: "-1",
School_Id: 0
CreateBy: ""
},
schoolTemp: "",
pageCount: 0,
......@@ -172,15 +171,37 @@
schoolList: [],
isShowStuForm: false,
resetLoading: false,
isShowStuRight: false
isShowStuRight: false,
employeeList: [],
myEmployeeList: [],
}
},
created() {
this.getEmployeeList();
this.getSchool()
},
mounted() {
this.currentUrl = this.$route.path
this.getSchool()
this.getStudent()
},
methods: {
//获取员工列表
getEmployeeList() {
queryEmployee({
IsLeave: 1
}).then(res => {
this.employeeList = res.Data;
this.myEmployeeList = res.Data;
})
},
//筛选员工
filterEmployee(val, update, abort) {
update(() => {
this.myEmployeeList = this.employeeList.filter(
v => v.EmployeeName.indexOf(val) > -1
);
});
},
resetSearch() {
this.msg.pageIndex = 1;
if (this.schoolTemp) {
......
......@@ -930,6 +930,11 @@ const routes = [{
component: () =>
import("pages/sale/activeOrderStatistics.vue")
},
{
path: "/sale/mystu", //我的客户
component: () =>
import("pages/sale/mystu.vue")
},
{
path: "/activity/activeType", //活动 活动类型
component: () =>
......
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