Commit 4fcf5a71 authored by Mac's avatar Mac

修改

parent d43d0c75
......@@ -35,19 +35,52 @@ th:first-child{position: sticky;left:0px;}
<div class="col-3">
<q-select @input="resetSearch" dense filled v-model="msg.StuGuestState" :options="customState" option-label="Name"
option-value="Id" emit-value map-options label="客户状态" clearable />
</div>
<div class="col-3">
<q-select @input="resetSearch" dense v-model="msg.IsQueryMyStu" :options="isMyStuList" filled use-input
label="是否查询我的学员" option-label="Name" option-value="Id" ref="CustomerName" class="col-6" emit-value
map-options >
</q-select>
</div>
<div class="col-3">
<q-select @input="resetSearch" dense filled option-value="Id" option-label="Name" v-model="msg.Q_FType"
:options="FTypeList" emit-value map-options label="跟进类型" />
<q-select
@input="resetBelong"
dense
filled
option-value="Id"
option-label="Name"
v-model="msg.BelongType"
:options="BelongTypeList"
emit-value
map-options
label="归属类型"
/>
</div>
<!-- <div class="col-3">
<q-select @input="resetSearch" dense v-model="msg.IsQueryMyStu" :options="isMyStuList" filled use-input
label="是否查询我的学员" option-label="Name" option-value="Id" ref="CustomerName" class="col-6" emit-value
map-options >
</q-select>
</div>
<div class="col-3">
<q-select @input="resetSearch" dense filled option-value="Id" option-label="Name" v-model="msg.Q_FType"
:options="FTypeList" emit-value map-options label="跟进类型" />
</div> -->
<div class="col-3" v-if="msg.BelongType == 4">
<q-select
@input="resetSearch"
dense
clearable
@filter="filterSubord"
use-input
filled
option-value="Id"
option-label="EmployeeName"
v-model="msg.CreateIds"
multiple
:options="SubordList"
emit-value
map-options
label="我下属的"
/>
</div>
<div class="col-3">
<q-field filled dense>
<template v-slot:control>
<el-date-picker v-model="dateArray" size="mini" @change="resetSearch" value-format="yyyy-MM-dd"
......@@ -206,7 +239,7 @@ import {
import {
queryStuStageList,
GetStudentTypeList,
GetPersonalDimension
} from "../../api/school/index";
import studentRightForm from "../../components/school/student/studentRight-form";
......@@ -230,11 +263,33 @@ export default {
WeChatNo:'',
StuType:'',//学生类型
StuGuestState:'',//状态
IsQueryMyStu:'-1',//是否查询我的学员 1是 0否
IsQueryMyStu:'1',//是否查询我的学员 1是 0否
SFTime:'',
EFTime:'',
Q_FType:'-1',//跟进类型 1范围内有跟进记录 2范围内没有跟进记录
BelongType:1,
CreateIds: [],
},
//归属类型列表
BelongTypeList: [
{
Id: 1,
Name: "全部"
},
{
Id: 2,
Name: "我负责的"
},
{
Id: 3,
Name: "我协同的"
},
{
Id: 4,
Name: "我下属的"
}
],
loading: false,
dataList: [], //列表数据
......@@ -250,16 +305,44 @@ export default {
BelongType: 1,
isShowStuRight:false,
isJudgeTrans:1,
SubordList: [], //我的下属数据
AllSubordList: []
}
},
created() { },
created() {
let userinfo = this.getLocalStorage();
userinfo.ActionMenuList.map(x=>{//判断权限
if(x.FunctionCode == "studentTracking_look"){//判断是否有保存的权限
this.msg.IsQueryMyStu = 0
return
}
})
},
mounted() {
this.getList(); //获取规则
this.getStuStageList()
this.getCustomTypeList()
this.GetSubordList()
},
methods: {
//获取我下属的下拉数据
GetSubordList() {
GetPersonalDimension().then(res => {
if (res.Code == 1) {
this.SubordList = res.Data;
this.AllSubordList = res.Data;
}
});
},
//筛选转介人
filterSubord(val, update, abort) {
update(() => {
this.SubordList = this.AllSubordList.filter(
v => v.EmployeeName.indexOf(val) > -1
);
});
},
resetSearch() {
this.msg.pageIndex = 1;
this.getList();
......@@ -345,6 +428,12 @@ export default {
closeStuForm() {
this.isShowStuRight = false;
},
resetBelong() {
if (this.msg.BelongType != 4) {
this.msg.pageIndex = 1;
this.getList();
}
},
},
}
......
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