Commit dd082416 authored by zhengke's avatar zhengke

1

parent 756938ec
...@@ -621,6 +621,7 @@ export function SetImportCourse(data) { ...@@ -621,6 +621,7 @@ export function SetImportCourse(data) {
data data
}) })
} }
/** /**
* 保存选择 以导入 * 保存选择 以导入
* @param {JSON对象} data * @param {JSON对象} data
...@@ -631,4 +632,16 @@ export function SetImportCourse(data) { ...@@ -631,4 +632,16 @@ export function SetImportCourse(data) {
method: 'post', method: 'post',
data data
}) })
}
/**
* 获取返佣设置下拉
* @param {JSON对象} data
*/
export function GetCourseRebateSetList(data) {
return request({
url: '/Course/GetCourseRebateSetList',
method: 'post',
data
})
} }
\ No newline at end of file
...@@ -38,10 +38,13 @@ ...@@ -38,10 +38,13 @@
@click="isShowAdd=false" /> @click="isShowAdd=false" />
<template v-if="isShowAdd"> <template v-if="isShowAdd">
<div class="row wrap"> <div class="row wrap">
<q-select filled stack-label option-label="Name" v-model="AssitMsg.AssistType" option-value="Id" <q-select filled stack-label option-label="Name" @input="getRole" v-model="AssitMsg.AssistType" option-value="Id"
:options="AssistDropList" label="角色" dense class="col-6 q-pb-lg q-pr-lg" emit-value map-options /> :options="AssistDropList" label="角色" dense class="col-6 q-pb-lg q-pr-lg" emit-value map-options />
<q-select filled dense v-model="AssitMsg.AssistId" @filter="filterEmployee" use-input :options="myEmployeeList" <q-select filled dense v-if="AssitMsg.AssistType==2" v-model="AssitMsg.AssistId" :options="RoleListData"
option-label="EmployeeName" class="col-6 q-pb-lg" option-value="Id" emit-value map-options /> option-label="EmployeeName" class="col-6 q-pb-lg" option-value="Id" emit-value map-options />
<q-select filled dense v-else v-model="AssitMsg.AssistId" @filter="filterEmployee" use-input :options="myEmployeeList"
option-label="EmployeeName" class="col-6 q-pb-lg" option-value="Id" emit-value map-options />
<i class="iconfont icon-close delAssist"></i> <i class="iconfont icon-close delAssist"></i>
</div> </div>
<div class="row wrap" style="margin-bottom:10px;float:right;"> <div class="row wrap" style="margin-bottom:10px;float:right;">
...@@ -100,8 +103,8 @@ ...@@ -100,8 +103,8 @@
AssitMsg: { AssitMsg: {
StuId: 1, //学员编号 StuId: 1, //学员编号
Id: 0, //编号 Id: 0, //编号
AssistId: 1, //员工编号 AssistId: '', //员工编号
AssistType: 1 //类型 AssistType: '' //类型
}, },
msg: { msg: {
StuId: 1 StuId: 1
...@@ -110,6 +113,7 @@ ...@@ -110,6 +113,7 @@
dataList: [], dataList: [],
page_Count: 0, page_Count: 0,
AssistDropList: [], //下拉数据 AssistDropList: [], //下拉数据
RoleListData:[], //课程顾问下拉数据
employeeList: [], employeeList: [],
myEmployeeList: [], myEmployeeList: [],
} }
...@@ -128,21 +132,38 @@ ...@@ -128,21 +132,38 @@
methods: { methods: {
//获取协助人员 //获取协助人员
GetAssistTypeList() { GetAssistTypeList() {
this.AssistDropList = [];
GetAssistTypeList({}).then(res => { GetAssistTypeList({}).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
this.AssistDropList = res.Data; let template = res.Data;
template.forEach(x=>{
if(x.Id!=1){
this.AssistDropList.push(x);
}
})
} }
}) })
}, },
//获取员工列表 //获取员工列表
getEmployeeList() { getEmployeeList() {
queryEmployee({ queryEmployee({
IsLeave: 1 IsLeave: 1,
UserRole: 0
}).then(res => { }).then(res => {
this.employeeList = res.Data; this.employeeList = res.Data;
this.myEmployeeList = res.Data; this.myEmployeeList = res.Data;
}) })
}, },
//切换课程顾问
getRole() {
queryEmployee({
IsLeave: 1,
UserRole: 2
}).then(res => {
this.RoleListData = res.Data;
})
},
//筛选员工 //筛选员工
filterEmployee(val, update, abort) { filterEmployee(val, update, abort) {
update(() => { update(() => {
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
<!-- <div class="wechat_Name">张飞微信</div> --> <!-- <div class="wechat_Name">张飞微信</div> -->
</div> </div>
</div> </div>
<div class="custom_HRight"> <div class="custom_HRight" v-if="getJudgeTrans()">
<q-btn color="primary" size="sm" label="转交" @click="isShowTrans=true"> <q-btn color="primary" size="sm" label="转交" @click="isShowTrans=true">
<q-popup-proxy :offset="[10, 10]"> <q-popup-proxy :offset="[10, 10]">
<q-banner v-if="isShowTrans"> <q-banner v-if="isShowTrans">
...@@ -120,6 +120,10 @@ ...@@ -120,6 +120,10 @@
saveObj: { saveObj: {
type: Object, type: Object,
default: null default: null
},
isJudgeTrans:{
type: Number,
default: null
} }
}, },
data() { data() {
...@@ -158,8 +162,23 @@ ...@@ -158,8 +162,23 @@
mounted() { mounted() {
this.baseObj = this.saveObj; this.baseObj = this.saveObj;
this.getEmployeeList(); this.getEmployeeList();
console.log(this.baseObj,'baseObj');
}, },
methods: { methods: {
//判断是否显示转交
getJudgeTrans(){
let userInfo = this.getLocalStorage();
let Id = userInfo.Id;
if(this.isJudgeTrans==1){
if(this.baseObj.CreateBy==Id){
return true
}else{
return false
}
}else{
return true
}
},
closeCutomer() { closeCutomer() {
this.$emit('close') this.$emit('close')
}, },
......
...@@ -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" :save-obj="stuOption" @close="closeStuForm" @success="refreshStuList"> <studentRight-form v-if="isShowStuRight" :isJudgeTrans="isJudgeTrans" :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>
...@@ -118,6 +118,10 @@ ...@@ -118,6 +118,10 @@
dataList: { dataList: {
type: Array, type: Array,
default: null default: null
},
isJudgeTrans:{
type: Number,
default: null
} }
}, },
components: { components: {
...@@ -260,8 +264,7 @@ ...@@ -260,8 +264,7 @@
stuOption: null, stuOption: null,
isShowAdd: false, isShowAdd: false,
selection: [], selection: [],
isShowTransfer: false, isShowTransfer: false
}; };
}, },
watch:{ watch:{
......
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
</div> </div>
</div> </div>
<div class="page-content"> <div class="page-content">
<stulist :dataList="data" @success="refreshPage" ref="stuList"> </stulist> <stulist :dataList="data" @success="refreshPage" ref="stuList" :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">
...@@ -130,6 +130,7 @@ ...@@ -130,6 +130,7 @@
Name: "我协同的" Name: "我协同的"
}, },
], ],
isJudgeTrans:1 //用于判断转交是否有条件
}; };
}, },
created() { created() {
......
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