Commit 4fcf5a71 authored by Mac's avatar Mac

修改

parent d43d0c75
...@@ -37,6 +37,20 @@ th:first-child{position: sticky;left:0px;} ...@@ -37,6 +37,20 @@ th:first-child{position: sticky;left:0px;}
option-value="Id" emit-value map-options label="客户状态" clearable /> option-value="Id" emit-value map-options label="客户状态" clearable />
</div> </div>
<div class="col-3"> <div class="col-3">
<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 <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 label="是否查询我的学员" option-label="Name" option-value="Id" ref="CustomerName" class="col-6" emit-value
map-options > map-options >
...@@ -46,6 +60,25 @@ th:first-child{position: sticky;left:0px;} ...@@ -46,6 +60,25 @@ th:first-child{position: sticky;left:0px;}
<div class="col-3"> <div class="col-3">
<q-select @input="resetSearch" dense filled option-value="Id" option-label="Name" v-model="msg.Q_FType" <q-select @input="resetSearch" dense filled option-value="Id" option-label="Name" v-model="msg.Q_FType"
:options="FTypeList" emit-value map-options label="跟进类型" /> :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>
<div class="col-3"> <div class="col-3">
<q-field filled dense> <q-field filled dense>
...@@ -206,7 +239,7 @@ import { ...@@ -206,7 +239,7 @@ import {
import { import {
queryStuStageList, queryStuStageList,
GetStudentTypeList, GetStudentTypeList,
GetPersonalDimension
} from "../../api/school/index"; } from "../../api/school/index";
import studentRightForm from "../../components/school/student/studentRight-form"; import studentRightForm from "../../components/school/student/studentRight-form";
...@@ -230,11 +263,33 @@ export default { ...@@ -230,11 +263,33 @@ export default {
WeChatNo:'', WeChatNo:'',
StuType:'',//学生类型 StuType:'',//学生类型
StuGuestState:'',//状态 StuGuestState:'',//状态
IsQueryMyStu:'-1',//是否查询我的学员 1是 0否 IsQueryMyStu:'1',//是否查询我的学员 1是 0否
SFTime:'', SFTime:'',
EFTime:'', EFTime:'',
Q_FType:'-1',//跟进类型 1范围内有跟进记录 2范围内没有跟进记录 Q_FType:'-1',//跟进类型 1范围内有跟进记录 2范围内没有跟进记录
BelongType:1,
CreateIds: [],
},
//归属类型列表
BelongTypeList: [
{
Id: 1,
Name: "全部"
},
{
Id: 2,
Name: "我负责的"
}, },
{
Id: 3,
Name: "我协同的"
},
{
Id: 4,
Name: "我下属的"
}
],
loading: false, loading: false,
dataList: [], //列表数据 dataList: [], //列表数据
...@@ -250,16 +305,44 @@ export default { ...@@ -250,16 +305,44 @@ export default {
BelongType: 1, BelongType: 1,
isShowStuRight:false, isShowStuRight:false,
isJudgeTrans:1, 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() { mounted() {
this.getList(); //获取规则 this.getList(); //获取规则
this.getStuStageList() this.getStuStageList()
this.getCustomTypeList() this.getCustomTypeList()
this.GetSubordList()
}, },
methods: { 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() { resetSearch() {
this.msg.pageIndex = 1; this.msg.pageIndex = 1;
this.getList(); this.getList();
...@@ -345,6 +428,12 @@ export default { ...@@ -345,6 +428,12 @@ export default {
closeStuForm() { closeStuForm() {
this.isShowStuRight = false; 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