Commit db7f0602 authored by zhengke's avatar zhengke

修改

parent 2b12e79f
......@@ -677,3 +677,14 @@ export function GetNeedsList(data) {
data
});
}
/**
* 获取我的下属下拉
*/
export function GetPersonalDimension(data) {
return request({
url: '/OKRPeriod/GetPersonalDimension',
method: 'post',
data
});
}
\ No newline at end of file
......@@ -30,7 +30,7 @@
</div>
<div class="custom_Bottom">
<div class="detail-info">
<student-left :stuData="stuData" :save-obj="saveObj" @success="refreshStudentPage" @getrecord="getrecord" @update="queryStuInfo"></student-left>
<student-left :stuData="stuData" :save-obj="saveObj" :BelongType="BelongType" @success="refreshStudentPage" @getrecord="getrecord" @update="queryStuInfo"></student-left>
</div>
<div class="detail-travel">
<div class="detail_first">
......@@ -131,6 +131,10 @@
isJudgeTrans: {
type: Number,
default: null
},
BelongType: {
type: Number,
default: null
}
},
data() {
......
......@@ -100,7 +100,7 @@
</q-table>
<student-form v-if="isShowStuForm" :save-obj="stuOption" @close="closeStuForm" @success="refreshStuList">
</student-form>
<studentRight-form v-if="isShowStuRight" :isJudgeTrans="isJudgeTrans" :save-obj="stuOption" @close="closeStuForm" @success="refreshStuList">
<studentRight-form v-if="isShowStuRight" :isJudgeTrans="isJudgeTrans" :BelongType="BelongType" :save-obj="stuOption" @close="closeStuForm" @success="refreshStuList">
</studentRight-form>
<studentAdd-form v-if="isShowAdd" :save-obj="stuOption" @close="closeStuForm" @success="refreshStuList">
</studentAdd-form>
......@@ -122,6 +122,10 @@
isJudgeTrans:{
type: Number,
default: null
},
BelongType:{
type: Number,
default: null
}
},
components: {
......
......@@ -15,7 +15,7 @@
<q-input @input="resetSearch" dense clearable filled v-model="msg.WechatNo" label="微信号" maxlength="20" />
</div>
<div class="col-3">
<q-select @input="resetSearch" filled v-model="msg.StuType" dense :options="customTypeList" option-label="Name"
<q-select @input="resetSearch" filled v-model="msg.StuType" dense clearable :options="customTypeList" option-label="Name"
option-value="Id" emit-value map-options label="客户类型" />
</div>
<div class="col-3">
......@@ -47,10 +47,14 @@
</template>
</q-field>
</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" :options="SubordList" emit-value map-options label="我下属的" />
</div>
</div>
</div>
<div class="page-content">
<stulist :dataList="data" @success="refreshPage" ref="stuList" :isJudgeTrans="isJudgeTrans"> </stulist>
<stulist :dataList="data" @success="refreshPage" ref="stuList" :BelongType="msg.BelongType" :isJudgeTrans="isJudgeTrans"> </stulist>
<div class="row" style="justify-content: flex-end;padding: 5px 20px">
<q-pagination v-model="msg.pageIndex" :max="pageCount" @input="changePage" class="full-width justify-end"
color="primary" :input="true">
......@@ -66,7 +70,8 @@
deleteStudent,
createStudentAccount,
queryStuStageList,
GetStudentTypeList
GetStudentTypeList,
GetPersonalDimension
} from "../../api/school/index";
import {
queryEmployee
......@@ -107,7 +112,8 @@
BelongType: 1, //归属类型
QQ:'',
WechatNo:'',
StuType:''
StuType:'',
CreateIds:''
},
dateArray: [], //日期数组
pageCount: 0,
......@@ -129,14 +135,21 @@
Id: 3,
Name: "我协同的"
},
{
Id: 4,
Name: "我下属的"
}
],
isJudgeTrans:1 //用于判断转交是否有条件
isJudgeTrans:1, //用于判断转交是否有条件
SubordList:[], //我的下属数据
AllSubordList:[]
};
},
created() {
this.getSchool();
this.getStuStageList();
this.getCustomTypeList();
this.GetSubordList();
},
mounted() {
this.currentUrl = this.$route.path;
......@@ -144,6 +157,24 @@
this.getCustomerList();
},
methods: {
//获取我下属的下拉数据
GetSubordList(){
GetPersonalDimension().then(res => {
console.log(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
);
});
},
//获取客户阶段列表
getStuStageList() {
queryStuStageList().then(res => {
......
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