Commit 0cfbeeef authored by 黄奎's avatar 黄奎

页面修改

parent f720e9ca
...@@ -14,8 +14,8 @@ ...@@ -14,8 +14,8 @@
</div> </div>
<div class="col-3"> <div class="col-3">
<q-select @input="resetSearch" standout="bg-primary text-white" v-model="msg.CourseSubject" <q-select @input="resetSearch" standout="bg-primary text-white" v-model="msg.CourseSubject"
:options="CourseSubjectList" option-label="SubjectName" option-value="Id" emit-value map-options label="所属科目" :options="CourseSubjectList" option-label="SubjectName" option-value="Id" emit-value map-options
clearable /> label="所属科目" clearable />
</div> </div>
<div class="col-3"> <div class="col-3">
<q-input @change="resetSearch" clearable standout="bg-primary text-white" v-model="msg.GuestName" label="客户名称" <q-input @change="resetSearch" clearable standout="bg-primary text-white" v-model="msg.GuestName" label="客户名称"
...@@ -35,20 +35,18 @@ ...@@ -35,20 +35,18 @@
:options="OrderStateList" emit-value map-options label="订单状态" /> :options="OrderStateList" emit-value map-options label="订单状态" />
</div> </div>
<div class="col-3"> <div class="col-3">
<q-field filled> <q-field filled>
 <template v-slot:control>  <template v-slot:control>
<el-date-picker v-model="dateList" @change="resetSearch()" value-format="yyyy-MM-dd" type="daterange" style="border:none;" <el-date-picker v-model="dateList" @change="resetSearch()" value-format="yyyy-MM-dd" type="daterange" style="border:none;"
 range-separator="至"  start-placeholder="报名开始时间"  end-placeholder="报名结束时间">  range-separator="至"  start-placeholder="报名开始时间"  end-placeholder="报名结束时间" />   
 </el-date-picker>       
</template> </template>
</q-field> </q-field>
</div> </div>
<div class="col-3"> <div class="col-3">
<q-field filled> <q-field filled>
 <template v-slot:control>  <template v-slot:control>
<el-date-picker v-model="dateList2" @change="resetSearch()" value-format="yyyy-MM-dd" type="daterange" style="border:none;" <el-date-picker v-model="dateList2" @change="resetSearch()" value-format="yyyy-MM-dd" type="daterange" style="border:none;"
 range-separator="至"  start-placeholder="开班开始时间"  end-placeholder="开班结束时间">  range-separator="至"  start-placeholder="开班开始时间"  end-placeholder="开班结束时间" />  
 </el-date-picker>       
</template> </template>
</q-field> </q-field>
</div> </div>
...@@ -299,7 +297,6 @@ ...@@ -299,7 +297,6 @@
}, },
} }
} }
</script> </script>
<style> <style>
li { li {
...@@ -358,5 +355,4 @@ ...@@ -358,5 +355,4 @@
font-weight: 600; font-weight: 600;
margin-right: 20px margin-right: 20px
} }
</style>
</style> \ No newline at end of file
...@@ -8,6 +8,18 @@ ...@@ -8,6 +8,18 @@
<div class="col-3"> <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>
<div class="col-3">
<q-select @input="resetSearch" filled v-model="msg.StuStage" :options="customState" option-label="Name"
option-value="Id" emit-value map-options label="客户状态" clearable />
</div>
<div class="col-3">
<q-field filled>
 <template v-slot:control>
<el-date-picker v-model="dateArray" @change="resetSearch" value-format="yyyy-MM-dd" type="daterange" style="border:none;"
 range-separator="至"  start-placeholder="开始时间"  end-placeholder="结束时间" />    
</template>
</q-field>
</div>
</div> </div>
<div class="page-option"> <div class="page-option">
<q-btn color="accent" class="q-mr-md" icon="add" label="新增客户" @click="EditStudent(null)" /> <q-btn color="accent" class="q-mr-md" icon="add" label="新增客户" @click="EditStudent(null)" />
...@@ -29,7 +41,8 @@ ...@@ -29,7 +41,8 @@
getStudentPage, getStudentPage,
getSchoolDropdown, getSchoolDropdown,
deleteStudent, deleteStudent,
createStudentAccount createStudentAccount,
queryStuStageList
} from '../../api/school/index' } from '../../api/school/index'
import { import {
queryEmployee queryEmployee
...@@ -60,38 +73,31 @@ ...@@ -60,38 +73,31 @@
Status: "-1", Status: "-1",
CreateBy: "", CreateBy: "",
IsQueryMyStu: 1, IsQueryMyStu: 1,
StuStage: "", //客户阶段
StartTime: "", //开始时间
EndTime: "", //结束时间
}, },
dateArray: [], //日期数组
pageCount: 0, pageCount: 0,
employeeList: [], //客户阶段状态列表
myEmployeeList: [], customState: [],
} }
}, },
created() { created() {
this.getEmployeeList(); this.getSchool();
this.getSchool() this.getStuStageList();
}, },
mounted() { mounted() {
this.currentUrl = this.$route.path this.currentUrl = this.$route.path
this.getStudent() this.getStudent()
}, },
methods: { methods: {
//获取员工列表 //获取客户阶段列表
getEmployeeList() { getStuStageList() {
queryEmployee({ queryStuStageList().then(res => {
IsLeave: 1 this.customState = res.Data;
}).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() { resetSearch() {
this.msg.pageIndex = 1; this.msg.pageIndex = 1;
this.getStudent() this.getStudent()
......
...@@ -9,8 +9,21 @@ ...@@ -9,8 +9,21 @@
<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>
<div class="col-3"> <div class="col-3">
<q-select filled v-model="msg.CreateBy" @filter="filterEmployee" use-input :options="myEmployeeList" <q-select @input="resetSearch" filled v-model="msg.CreateBy" @filter="filterEmployee" use-input
option-label="EmployeeName" option-value="Id" emit-value map-options label="负责人" /> :options="myEmployeeList" option-label="EmployeeName" option-value="Id" emit-value map-options label="负责人"
clearable />
</div>
<div class="col-3">
<q-select @input="resetSearch" filled v-model="msg.StuStage" :options="customState" option-label="Name"
option-value="Id" emit-value map-options label="客户状态" clearable />
</div>
<div class="col-3">
<q-field filled>
 <template v-slot:control>
<el-date-picker v-model="dateArray" @change="resetSearch" value-format="yyyy-MM-dd" type="daterange" style="border:none;"
 range-separator="至"  start-placeholder="开始时间"  end-placeholder="结束时间" />    
</template>
</q-field>
</div> </div>
</div> </div>
<div class="page-option"> <div class="page-option">
...@@ -33,8 +46,10 @@ ...@@ -33,8 +46,10 @@
getStudentPage, getStudentPage,
getSchoolDropdown, getSchoolDropdown,
deleteStudent, deleteStudent,
createStudentAccount createStudentAccount,
queryStuStageList
} from '../../api/school/index' } from '../../api/school/index'
import { import {
queryEmployee queryEmployee
} from '../../api/users/user' } from '../../api/users/user'
...@@ -42,7 +57,6 @@ ...@@ -42,7 +57,6 @@
resetPassword resetPassword
} from '../../api/users/user.js' } from '../../api/users/user.js'
import stulist from '../../components/school/student/stulist' import stulist from '../../components/school/student/stulist'
export default { export default {
meta: { meta: {
title: "客户管理" title: "客户管理"
...@@ -59,24 +73,36 @@ ...@@ -59,24 +73,36 @@
pageIndex: 1, pageIndex: 1,
pageSize: 12, pageSize: 12,
rowsPerPage: 12, rowsPerPage: 12,
StuName: "", StuName: "", //昵称
StuTel: "", StuTel: "", //电话
Status: "-1", CreateBy: "", //负责人
CreateBy: "" StuStage: "", //客户阶段
StartTime: "", //开始时间
EndTime: "", //结束时间
}, },
dateArray: [], //日期数组
pageCount: 0, pageCount: 0,
employeeList: [], employeeList: [],
myEmployeeList: [], myEmployeeList: [],
//客户阶段状态列表
customState: [],
} }
}, },
created() { created() {
this.getEmployeeList(); this.getEmployeeList();
this.getStuStageList();
}, },
mounted() { mounted() {
this.currentUrl = this.$route.path this.currentUrl = this.$route.path
this.getStudent() this.getStudent()
}, },
methods: { methods: {
//获取客户阶段列表
getStuStageList() {
queryStuStageList().then(res => {
this.customState = res.Data;
})
},
//获取员工列表 //获取员工列表
getEmployeeList() { getEmployeeList() {
queryEmployee({ queryEmployee({
...@@ -108,6 +134,13 @@ ...@@ -108,6 +134,13 @@
this.getStudent(); this.getStudent();
}, },
getStudent() { getStudent() {
if (this.dateArray && this.dateArray.length > 0) {
this.msg.StartTime = this.dateArray[0];
this.msg.EndTime = this.dateArray[1];
} else {
this.msg.StartTime = '';
this.msg.EndTime = '';
}
this.loading = true; this.loading = true;
getStudentPage(this.msg).then(res => { getStudentPage(this.msg).then(res => {
this.loading = false; this.loading = 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