Commit 3b760988 authored by 黄奎's avatar 黄奎

页面修改

parent 03d80291
...@@ -43,11 +43,14 @@ ...@@ -43,11 +43,14 @@
@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" @input="getRole" v-model="AssitMsg.AssistType" <q-select filled stack-label option-label="Name" @input="changeData" v-model="AssitMsg.AssistType"
option-value="Id" :options="AssistDropList" label="角色" dense class="col-6 q-pb-lg q-pr-lg" emit-value option-value="Id" :options="AssistDropList" label="角色" dense class="col-6 q-pb-lg q-pr-lg" emit-value
map-options /> map-options />
<q-select filled dense v-if="AssitMsg.AssistType == 2" v-model="AssitMsg.AssistId" :options="RoleListData" <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-if="AssitMsg.AssistType == 6||AssitMsg.AssistType == 4" v-model="AssitMsg.AssistId"
:options="TeacherList" 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 <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 :options="myEmployeeList" option-label="EmployeeName" class="col-6 q-pb-lg" option-value="Id" emit-value
map-options /> map-options />
...@@ -71,7 +74,7 @@ ...@@ -71,7 +74,7 @@
<td>{{ item.AssistName }}</td> <td>{{ item.AssistName }}</td>
<td> <td>
<template v-if="userInfo.IsCourseConsultant == 1||isHaveTeacherEdit||isHaveXueManager"> <template v-if="userInfo.IsCourseConsultant == 1||isHaveTeacherEdit||isHaveXueManager">
<div v-if="userInfo.IsCourseConsultant == 1&&item.AssistType != 2 && item.AssistType != 4"> <div v-if="userInfo.IsCourseConsultant == 1&&(item.AssistType == 2 ||item.AssistType == 3)">
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="修改" <q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="修改"
@click="getEditInfo(item)"></q-btn> @click="getEditInfo(item)"></q-btn>
<q-btn flat size="xs" icon="delete" color="negative" style="font-weight:400" label="删除" <q-btn flat size="xs" icon="delete" color="negative" style="font-weight:400" label="删除"
...@@ -89,12 +92,7 @@ ...@@ -89,12 +92,7 @@
<q-btn flat size="xs" icon="delete" color="negative" style="font-weight:400" label="删除" <q-btn flat size="xs" icon="delete" color="negative" style="font-weight:400" label="删除"
@click="deleteAssits(item.Id)" /> @click="deleteAssits(item.Id)" />
</div> </div>
<div v-if="isShowBian(item)">
<q-btn flat size="xs" icon="edit" color="accent" style="font-weight:400" label="修改"
@click="getGuwenEditInfo(item)"></q-btn>
</div>
</template> </template>
</td> </td>
</tr> </tr>
</table> </table>
...@@ -147,6 +145,7 @@ ...@@ -147,6 +145,7 @@
page_Count: 0, page_Count: 0,
AssistDropList: [], //下拉数据 AssistDropList: [], //下拉数据
RoleListData: [], //课程顾问下拉数据 RoleListData: [], //课程顾问下拉数据
TeacherList: [], //教师列表
employeeList: [], employeeList: [],
myEmployeeList: [], myEmployeeList: [],
userInfo: {} userInfo: {}
...@@ -199,7 +198,6 @@ ...@@ -199,7 +198,6 @@
mounted() { mounted() {
this.getList(); this.getList();
this.GetAssistTypeList(); this.GetAssistTypeList();
this.getEmployeeList();
}, },
methods: { methods: {
//获取协助人员 //获取协助人员
...@@ -209,12 +207,11 @@ ...@@ -209,12 +207,11 @@
if (res.Code == 1) { if (res.Code == 1) {
let template = res.Data; let template = res.Data;
template.forEach(x => { template.forEach(x => {
if (this.userInfo.IsCourseConsultant == 1 && this.isHaveTeacherEdit) { if (this.userInfo.IsCourseConsultant == 1) {
if (x.Id != 1) { if (x.Id != 1) {
this.AssistDropList.push(x); this.AssistDropList.push(x);
} }
} else if (this.userInfo.IsCourseConsultant == 1 && !this.isHaveTeacherEdit) { if (x.Id == 4 && this.isHaveTeacherEdit) {
if (x.Id != 1 && x.Id != 4) {
this.AssistDropList.push(x); this.AssistDropList.push(x);
} }
} else if (this.userInfo.IsCourseConsultant == 0) { } else if (this.userInfo.IsCourseConsultant == 0) {
...@@ -229,28 +226,35 @@ ...@@ -229,28 +226,35 @@
} }
} }
} }
1
}); });
} }
}); });
}, },
//获取员工列表 changeData() {
getEmployeeList() { var queryObj = {
queryEmployee({
IsLeave: 1, IsLeave: 1,
UserRole: 0 UserRole: 0,
}).then(res => { AccountTypeStr: "",
};
if (this.AssitMsg.AssistType == 2) {
queryObj.UserRole = 2;
queryEmployee(queryObj).then(res => {
this.RoleListData = res.Data;
});
}
if (this.AssitMsg.AssistType == 6) {
queryObj.AccountTypeStr = "2"
queryEmployee(queryObj).then(res => {
this.TeacherList = res.Data;
});
} else {
queryObj.UserRole = 0;
queryEmployee(queryObj).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) {
...@@ -272,6 +276,7 @@ ...@@ -272,6 +276,7 @@
message: "数据保存成功!", message: "数据保存成功!",
position: "top" position: "top"
}); });
this.$emit("success");
this.getList(); this.getList();
this.isShowAdd = false; this.isShowAdd = false;
this.clearMsg(); this.clearMsg();
...@@ -294,16 +299,6 @@ ...@@ -294,16 +299,6 @@
}) })
.catch(() => {}); .catch(() => {});
}, },
//课程顾问是本人 显示编辑按钮
isShowBian(item) {
let isShow = false;
if (item.AssistTypeName == '课程顾问') {
// if (this.userInfo.AccountName == item.AssistName) {
isShow = true
// }
}
return isShow;
},
//删除协同 //删除协同
deleteAssits(Id) { deleteAssits(Id) {
let that = this; let that = this;
......
...@@ -214,7 +214,7 @@ ...@@ -214,7 +214,7 @@
stuData: {}, stuData: {},
userInfo: {}, userInfo: {},
isconsult: false, //学生咨询弹窗 isconsult: false, //学生咨询弹窗
IsHaveCurseManager:false,//是否存在课程顾问 IsHaveCurseManager: false, //是否存在课程顾问
}; };
}, },
created() { created() {
...@@ -264,7 +264,9 @@ ...@@ -264,7 +264,9 @@
}, },
//刷新列表 //刷新列表
refreshStudentPage() { refreshStudentPage() {
console.log("2222");
this.$emit("success"); this.$emit("success");
}, },
//客户情况信息的修改 //客户情况信息的修改
consultsuccess(data) { consultsuccess(data) {
......
...@@ -540,13 +540,12 @@ ...@@ -540,13 +540,12 @@
this.getEmployeeList(); this.getEmployeeList();
this.getStudentDorpDown(); this.getStudentDorpDown();
this.queryGoalsList(); this.queryGoalsList();
// this.downloadStudentFollow();
this.findData(); this.findData();
}, },
methods: { methods: {
findData() { findData() {
queryEmployee({ queryEmployee({
AccountType: 2, AccountTypeStr: "2",
IsLeave: 1 IsLeave: 1
}).then(res => { }).then(res => {
if (res.Code == 1) { if (res.Code == 1) {
...@@ -569,7 +568,6 @@ ...@@ -569,7 +568,6 @@
queryGoalsList() { queryGoalsList() {
getGuestLearningGoalsEnumList({}).then(res => { getGuestLearningGoalsEnumList({}).then(res => {
this.goalsList = res.Data; this.goalsList = res.Data;
// console.log(res.data)
}); });
}, },
//获取收客渠道 //获取收客渠道
......
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