Commit 35f7d5da authored by 罗超's avatar 罗超

Merge branch 'master' of http://gitlab.oytour.com/luochao/confucius into master

parents 53ff514a 03c4b3c7
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
<template> <template>
<div> <div>
<!--课程顾问 或有教师权限--> <!--课程顾问 或有教师权限-->
<template v-if="userInfo.IsCourseConsultant == 1||isHaveTeacherEdit"> <template v-if="userInfo.IsCourseConsultant == 1||isHaveTeacherEdit||isHaveXueManager">
<q-btn label="新增" color="accent q-mb-lg" size="sm" @click="isShowAdd = true" /> <q-btn label="新增" color="accent q-mb-lg" size="sm" @click="isShowAdd = true" />
</template> </template>
<template v-else> <template v-else>
...@@ -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 == 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 />
...@@ -70,8 +73,8 @@ ...@@ -70,8 +73,8 @@
<td>{{ item.AssistTypeName }}</td> <td>{{ item.AssistTypeName }}</td>
<td>{{ item.AssistName }}</td> <td>{{ item.AssistName }}</td>
<td> <td>
<template v-if="userInfo.IsCourseConsultant == 1||isHaveTeacherEdit"> <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="删除"
...@@ -83,12 +86,7 @@ ...@@ -83,12 +86,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>
...@@ -141,6 +139,7 @@ ...@@ -141,6 +139,7 @@
page_Count: 0, page_Count: 0,
AssistDropList: [], //下拉数据 AssistDropList: [], //下拉数据
RoleListData: [], //课程顾问下拉数据 RoleListData: [], //课程顾问下拉数据
TeacherList: [], //教师列表
employeeList: [], employeeList: [],
myEmployeeList: [], myEmployeeList: [],
userInfo: {} userInfo: {}
...@@ -170,12 +169,12 @@ ...@@ -170,12 +169,12 @@
} }
} }
return false; return false;
} },
}), }),
mounted() { mounted() {
this.getList(); this.getList();
this.GetAssistTypeList(); this.GetAssistTypeList();
this.getEmployeeList();
}, },
methods: { methods: {
//获取协助人员 //获取协助人员
...@@ -185,41 +184,48 @@ ...@@ -185,41 +184,48 @@
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 && this.isHaveTeacherEdit) { } else if (this.userInfo.IsCourseConsultant == 0) {
if (x.Id == 4) { if (this.isHaveTeacherEdit) {
this.AssistDropList.push(x); if (x.Id == 4) {
this.AssistDropList.push(x);
}
} }
} }
}); });
} }
}); });
}, },
//获取员工列表 changeData() {
getEmployeeList() { var queryObj = {
queryEmployee({
IsLeave: 1,
UserRole: 0
}).then(res => {
this.employeeList = res.Data;
this.myEmployeeList = res.Data;
});
},
//切换课程顾问
getRole() {
queryEmployee({
IsLeave: 1, IsLeave: 1,
UserRole: 2 UserRole: 0,
}).then(res => { AccountTypeStr: "",
this.RoleListData = res.Data; };
}); if (this.AssitMsg.AssistType == 2) {
queryObj.UserRole = 2;
queryEmployee(queryObj).then(res => {
this.RoleListData = res.Data;
});
}
if (this.AssitMsg.AssistType == 4) {
queryObj.AccountTypeStr = "2"
queryEmployee(queryObj).then(res => {
this.TeacherList = res.Data;
});
} else {
queryObj.UserRole = 0;
queryEmployee(queryObj).then(res => {
this.employeeList = res.Data;
this.myEmployeeList = res.Data;
});
}
}, },
//筛选员工 //筛选员工
filterEmployee(val, update, abort) { filterEmployee(val, update, abort) {
...@@ -241,6 +247,7 @@ ...@@ -241,6 +247,7 @@
message: "数据保存成功!", message: "数据保存成功!",
position: "top" position: "top"
}); });
this.$emit("success");
this.getList(); this.getList();
this.isShowAdd = false; this.isShowAdd = false;
this.clearMsg(); this.clearMsg();
...@@ -263,16 +270,6 @@ ...@@ -263,16 +270,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) {
......
...@@ -436,7 +436,6 @@ ...@@ -436,7 +436,6 @@
WeChatNo: '', WeChatNo: '',
StuType: '', //学生类型 StuType: '', //学生类型
StuGuestState: '', //合同状态 StuGuestState: '', //合同状态
IsQueryMyStu: '1', //是否查询我的学员 1是 0否
SFTime: '', SFTime: '',
EFTime: '', EFTime: '',
StuStage: '', //客户状态 StuStage: '', //客户状态
......
...@@ -147,7 +147,6 @@ ...@@ -147,7 +147,6 @@
分数差距 分数差距
</q-th> </q-th>
</template> </template>
<template v-else> <template v-else>
<q-th :key="col.name" :props="props" style="max-width:70px"> <q-th :key="col.name" :props="props" style="max-width:70px">
{{ col.label }} {{ col.label }}
...@@ -155,6 +154,7 @@ ...@@ -155,6 +154,7 @@
</template> </template>
</template> </template>
</q-tr> </q-tr>
<template v-slot:bottom> <template v-slot:bottom>
</template> </template>
</q-table> </q-table>
...@@ -191,6 +191,7 @@ ...@@ -191,6 +191,7 @@
field: 'StudentCount', field: 'StudentCount',
align: 'left' align: 'left'
}, },
{ {
name: 'AttendClassHourScore', name: 'AttendClassHourScore',
label: '上课时数', label: '上课时数',
......
...@@ -42,7 +42,12 @@ ...@@ -42,7 +42,12 @@
separator="none" :data="dataList" :columns="columns" row-key=""> separator="none" :data="dataList" :columns="columns" row-key="">
<q-tr slot="header" slot-scope="props" :props="props"> <q-tr slot="header" slot-scope="props" :props="props">
<template v-for="col in props.cols" :props="props"> <template v-for="col in props.cols" :props="props">
<template v-if="col.label=='线上与学生互动数'"> <template v-if="col.label=='班主任学生互动'">
<q-th :key="col.name" :props="props" style="max-width:75px;text-align:center;">
班主任<br />学生互动
</q-th>
</template>
<template v-else-if="col.label=='线上与学生互动数'">
<q-th :key="col.name" :props="props" style="max-width:90px;text-align:center;"> <q-th :key="col.name" :props="props" style="max-width:90px;text-align:center;">
线上与学生<br />互动数 线上与学生<br />互动数
</q-th> </q-th>
...@@ -168,14 +173,22 @@ ...@@ -168,14 +173,22 @@
<span v-else>{{props.row.DateStr}}</span> <span v-else>{{props.row.DateStr}}</span>
</q-td> </q-td>
</template> </template>
<template v-slot:body-cell-FinishTimesPlanCount="props">
<q-td :props="props">
{{props.row.FinishTimes}} / {{props.row.FollowCount}}
</q-td>
</template>
<template v-slot:bottom-row> <template v-slot:bottom-row>
<q-tr> <q-tr v-if="lastRow">
<q-td> <q-td>
{{lastRow.DateStr}} {{lastRow.DateStr}}
</q-td> </q-td>
<q-td> <q-td>
{{lastRow.StudentCount}} {{lastRow.StudentCount}}
</q-td> </q-td>
<q-td>
{{lastRow.FinishTimes}} / {{lastRow.FollowCount}}
</q-td>
<q-td> <q-td>
{{lastRow.AttendClassHourScore}} {{lastRow.AttendClassHourScore}}
</q-td> </q-td>
...@@ -241,7 +254,6 @@ ...@@ -241,7 +254,6 @@
</q-td> </q-td>
</q-tr> </q-tr>
</template> </template>
<template v-slot:bottom> <template v-slot:bottom>
</template> </template>
</q-table> </q-table>
...@@ -277,6 +289,11 @@ ...@@ -277,6 +289,11 @@
align: 'left', align: 'left',
sortable: true sortable: true
}, },
{
name: 'FinishTimesPlanCount',
label: '班主任学生互动',
align: 'left'
},
{ {
name: 'AttendClassHourScore', name: 'AttendClassHourScore',
label: '上课时数', label: '上课时数',
......
This diff is collapsed.
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