Commit db7f0602 authored by zhengke's avatar zhengke

修改

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