mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-11 11:56:46 +08:00
教师
This commit is contained in:
@@ -302,13 +302,15 @@
|
|||||||
<div class="b_input" style="width: 88%;display: flex;flex-direction: column;">
|
<div class="b_input" style="width: 88%;display: flex;flex-direction: column;">
|
||||||
<CheckBox v-model="formData.projectSignFlag"
|
<CheckBox v-model="formData.projectSignFlag"
|
||||||
:check-value="1"
|
:check-value="1"
|
||||||
:un-check-value="0">
|
:un-check-value="0"
|
||||||
|
@change="toggleCheckboxes('projectSignFlag')">
|
||||||
<span style="color: #6d7584">允许项目内人员临时到场参加(不在本场次培训的人员可以临时签到参加)</span>
|
<span style="color: #6d7584">允许项目内人员临时到场参加(不在本场次培训的人员可以临时签到参加)</span>
|
||||||
</CheckBox>
|
</CheckBox>
|
||||||
<CheckBox v-model="formData.outSignFlag"
|
<CheckBox v-model="formData.outSignFlag"
|
||||||
:check-value="1"
|
:check-value="1"
|
||||||
style="margin-left: 0px;"
|
style="margin-left: 0px;"
|
||||||
:un-check-value="0">
|
:un-check-value="0"
|
||||||
|
@change="toggleCheckboxes('outSignFlag')">
|
||||||
<span style="color: #6d7584">允许项目外人员临时到场参加</span>
|
<span style="color: #6d7584">允许项目外人员临时到场参加</span>
|
||||||
</CheckBox>
|
</CheckBox>
|
||||||
</div>
|
</div>
|
||||||
@@ -434,7 +436,17 @@ const props = defineProps({
|
|||||||
const openCourseVisible = ref(false);
|
const openCourseVisible = ref(false);
|
||||||
const offCourseNewVisiable = ref(false);
|
const offCourseNewVisiable = ref(false);
|
||||||
const tableRef = ref();
|
const tableRef = ref();
|
||||||
|
const toggleCheckboxes = (checkedName)=>{
|
||||||
|
if (checkedName === 'projectSignFlag') {
|
||||||
|
if(formData.value.projectSignFlag){
|
||||||
|
formData.value.outSignFlag = !formData.value.projectSignFlag;
|
||||||
|
}
|
||||||
|
} else if (checkedName === 'outSignFlag') {
|
||||||
|
if(formData.value.outSignFlag){
|
||||||
|
formData.value.projectSignFlag = !formData.value.outSignFlag;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
const columns = ref([
|
const columns = ref([
|
||||||
{
|
{
|
||||||
title: "名称",
|
title: "名称",
|
||||||
|
|||||||
@@ -904,9 +904,9 @@
|
|||||||
<span v-else>新建开课</span>
|
<span v-else>新建开课</span>
|
||||||
<div class="close_exit" @click="handleCancelStu"></div>
|
<div class="close_exit" @click="handleCancelStu"></div>
|
||||||
</div>
|
</div>
|
||||||
<!-- <div class="cstm_title">
|
<div class="cstm_title">
|
||||||
<span>面授名称:{{ newCourseName }}</span>
|
<span>面授名称:{{ newCourseName }}</span>
|
||||||
</div> -->
|
</div>
|
||||||
<div class="cstm_items">
|
<div class="cstm_items">
|
||||||
<div class="signbox">
|
<div class="signbox">
|
||||||
<div class="sign">
|
<div class="sign">
|
||||||
@@ -3707,7 +3707,7 @@ function onFocusEnd(){
|
|||||||
CourseModalRef.value.visibleOpen(null, state.xzinputV1);
|
CourseModalRef.value.visibleOpen(null, state.xzinputV1);
|
||||||
|
|
||||||
state.valueE1 = "";
|
state.valueE1 = "";
|
||||||
// state.teacher = "";
|
state.teacher = "";
|
||||||
state.teacherName = "";
|
state.teacherName = "";
|
||||||
|
|
||||||
state.qdms_inputV1 = state.xzinputV1;
|
state.qdms_inputV1 = state.xzinputV1;
|
||||||
@@ -5051,7 +5051,7 @@ function onFocusEnd(){
|
|||||||
let teacherNames = record.offteachers?.filter(teacher => teacher.teacherName !== null).map(teacher => teacher.teacherName);
|
let teacherNames = record.offteachers?.filter(teacher => teacher.teacherName !== null).map(teacher => teacher.teacherName);
|
||||||
state.codeInfo = {
|
state.codeInfo = {
|
||||||
title: type == 1 ? "【课程】二维码" : "【签到】二维码",
|
title: type == 1 ? "【课程】二维码" : "【签到】二维码",
|
||||||
name: record.name ? record.name : "",
|
name: record.name ? record.name+'签到' : "",
|
||||||
teacherName: teacherNames.length > 0 ? teacherNames.join(' ') : "",
|
teacherName: teacherNames.length > 0 ? teacherNames.join(' ') : "",
|
||||||
url:
|
url:
|
||||||
type == 1
|
type == 1
|
||||||
|
|||||||
@@ -588,13 +588,13 @@
|
|||||||
{{ item.type==2 ? item.createTime !== null ? item.createTime : "-" : item.startTime !== null ? item.startTime : "-" }}
|
{{ item.type==2 ? item.createTime !== null ? item.createTime : "-" : item.startTime !== null ? item.startTime : "-" }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="progress">
|
<div class="progress" v-if="item.averageScore" style="display: flex;flex-grow: 0;margin: 0;">
|
||||||
<div class="progresstext">
|
<!-- <div class="progresstext">
|
||||||
{{ item.finishStuCnt || 0 }}/{{
|
{{ item.finishStuCnt || 0 }}/{{
|
||||||
item.totalStuCnt || 0
|
item.totalStuCnt || 0
|
||||||
}}人
|
}}人
|
||||||
</div>
|
</div> -->
|
||||||
<div style="display: flex">
|
<!-- <div style="display: flex">
|
||||||
<a-progress
|
<a-progress
|
||||||
:showInfo="false"
|
:showInfo="false"
|
||||||
:percent="
|
:percent="
|
||||||
@@ -612,7 +612,11 @@
|
|||||||
) || 0
|
) || 0
|
||||||
}}%</span
|
}}%</span
|
||||||
>
|
>
|
||||||
|
</div> -->
|
||||||
|
<div>
|
||||||
|
{{ item.averageScore}}分
|
||||||
</div>
|
</div>
|
||||||
|
<div class="img_daoc" @click="exportScore(item)"></div>
|
||||||
</div>
|
</div>
|
||||||
<div class="operations">
|
<div class="operations">
|
||||||
<div class="operations_dropdown">
|
<div class="operations_dropdown">
|
||||||
@@ -2435,6 +2439,9 @@ export default {
|
|||||||
AddOpenCourse
|
AddOpenCourse
|
||||||
},
|
},
|
||||||
setup() {
|
setup() {
|
||||||
|
const exportScore = (item) => {
|
||||||
|
window.open(`${process.env.VUE_APP_BASE_API}/admin/assessment/manage/export?assessmentIds=${item.assessmentIds}&pid=${item.id}`)
|
||||||
|
};
|
||||||
const coursePlanRef = ref();
|
const coursePlanRef = ref();
|
||||||
const openCourse = async (item) => {
|
const openCourse = async (item) => {
|
||||||
await apitl.getDraftTask({projectId: item.projectId}).then((item)=>{
|
await apitl.getDraftTask({projectId: item.projectId}).then((item)=>{
|
||||||
@@ -2461,7 +2468,7 @@ export default {
|
|||||||
if(qrCodeItems.value.length==1){
|
if(qrCodeItems.value.length==1){
|
||||||
qrCode({
|
qrCode({
|
||||||
title: "【签到】二维码",
|
title: "【签到】二维码",
|
||||||
courseName: qrCodeItems.value[0].courseName,
|
courseName: state.name+'项目',
|
||||||
name: qrCodeItems.value[0].name+'课程签到',
|
name: qrCodeItems.value[0].name+'课程签到',
|
||||||
createName:qrCodeItems.value[0].offteachers.map(teacher => teacher.teacherName).join(', ')||qrCodeItems.value[0].teacher,
|
createName:qrCodeItems.value[0].offteachers.map(teacher => teacher.teacherName).join(', ')||qrCodeItems.value[0].teacher,
|
||||||
url: `${location.protocol}//${location.host}${process.env.VUE_APP_BASE_API}/admin/student/studentSign?taskId=${qrCodeItems.value[0].id}&taskType=${2}&type=${3}`,
|
url: `${location.protocol}//${location.host}${process.env.VUE_APP_BASE_API}/admin/student/studentSign?taskId=${qrCodeItems.value[0].id}&taskType=${2}&type=${3}`,
|
||||||
@@ -2473,14 +2480,13 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
function handleMenuClick({key}) {
|
function handleMenuClick({key}) {
|
||||||
const courseName = qrCodeItems.value[key].courseName;
|
|
||||||
const name = qrCodeItems.value[key].name;
|
const name = qrCodeItems.value[key].name;
|
||||||
const teacher = qrCodeItems.value[key].teacher;
|
const teacher = qrCodeItems.value[key].teacher;
|
||||||
const id = qrCodeItems.value[key].id;
|
const id = qrCodeItems.value[key].id;
|
||||||
const offteachers = qrCodeItems.value[key].offteachers.map(teacher => teacher.teacherName).join(', ');
|
const offteachers = qrCodeItems.value[key].offteachers.map(teacher => teacher.teacherName).join(', ');
|
||||||
qrCode({
|
qrCode({
|
||||||
title: "【签到】二维码",
|
title: "【签到】二维码",
|
||||||
courseName: courseName,
|
courseName: state.name+'项目',
|
||||||
name: name+'课程签到',
|
name: name+'课程签到',
|
||||||
createName:offteachers||teacher,
|
createName:offteachers||teacher,
|
||||||
url: `${location.protocol}//${location.host}${process.env.VUE_APP_BASE_API}/admin/student/studentSign?taskId=${id}&taskType=${2}&type=${3}`,
|
url: `${location.protocol}//${location.host}${process.env.VUE_APP_BASE_API}/admin/student/studentSign?taskId=${id}&taskType=${2}&type=${3}`,
|
||||||
@@ -2489,7 +2495,6 @@ export default {
|
|||||||
const qrCodeItemspg = ref([]);
|
const qrCodeItemspg = ref([]);
|
||||||
const visibleEwmpg = ref({});
|
const visibleEwmpg = ref({});
|
||||||
const qrcodeAssement = async (item)=>{
|
const qrcodeAssement = async (item)=>{
|
||||||
console.log(item,'item')
|
|
||||||
if(qrCodeItemspg.value.length!=0){
|
if(qrCodeItemspg.value.length!=0){
|
||||||
qrCodeItemspg.value = []
|
qrCodeItemspg.value = []
|
||||||
}
|
}
|
||||||
@@ -2505,11 +2510,10 @@ export default {
|
|||||||
courseName: item.name,
|
courseName: item.name,
|
||||||
}));
|
}));
|
||||||
qrCodeItemspg.value = qrCodeItemspgItem.filter(item => item.assessmentId !== null);
|
qrCodeItemspg.value = qrCodeItemspgItem.filter(item => item.assessmentId !== null);
|
||||||
console.log(qrCodeItemspg.value,'长度')
|
|
||||||
if(qrCodeItemspg.value.length==1){
|
if(qrCodeItemspg.value.length==1){
|
||||||
qrCode({
|
qrCode({
|
||||||
title: "【评估】二维码",
|
title: "【评估】二维码",
|
||||||
courseName: qrCodeItemspg.value[0].courseName,
|
courseName: state.name+'项目',
|
||||||
name: qrCodeItemspg.value[0].name+'课程评估',
|
name: qrCodeItemspg.value[0].name+'课程评估',
|
||||||
createName:qrCodeItemspg.value[0].offteachers.map(teacher => teacher.teacherName).join(', ')||qrCodeItemspg.value[0].teacher,
|
createName:qrCodeItemspg.value[0].offteachers.map(teacher => teacher.teacherName).join(', ')||qrCodeItemspg.value[0].teacher,
|
||||||
url: `${location.protocol}//${location.host}/student-h5/investigatpage?id=${qrCodeItemspg.value[0].id}&type=3&infoId=${qrCodeItemspg.value[0].id}&courseId=${qrCodeItemspg.value[0].assessmentId}&chapterOrStageId=0`,
|
url: `${location.protocol}//${location.host}/student-h5/investigatpage?id=${qrCodeItemspg.value[0].id}&type=3&infoId=${qrCodeItemspg.value[0].id}&courseId=${qrCodeItemspg.value[0].assessmentId}&chapterOrStageId=0`,
|
||||||
@@ -2518,7 +2522,6 @@ export default {
|
|||||||
})
|
})
|
||||||
}
|
}
|
||||||
function handleMenuClickpg({key}) {
|
function handleMenuClickpg({key}) {
|
||||||
const courseName = qrCodeItemspg.value[key].courseName;
|
|
||||||
const name = qrCodeItemspg.value[key].name;
|
const name = qrCodeItemspg.value[key].name;
|
||||||
const offteachers = qrCodeItemspg.value[key].offteachers.map(teacher => teacher.teacherName).join(', ');
|
const offteachers = qrCodeItemspg.value[key].offteachers.map(teacher => teacher.teacherName).join(', ');
|
||||||
const teacher = qrCodeItemspg.value[key].teacher;
|
const teacher = qrCodeItemspg.value[key].teacher;
|
||||||
@@ -2526,7 +2529,7 @@ export default {
|
|||||||
const assessmentId = qrCodeItemspg.value[key].assessmentId;
|
const assessmentId = qrCodeItemspg.value[key].assessmentId;
|
||||||
qrCode({
|
qrCode({
|
||||||
title: "【评估】二维码",
|
title: "【评估】二维码",
|
||||||
courseName: courseName,
|
courseName: state.name+'项目',
|
||||||
name: name+'课程评估',
|
name: name+'课程评估',
|
||||||
createName:offteachers||teacher,
|
createName:offteachers||teacher,
|
||||||
url: `${location.protocol}//${location.host}/student-h5/investigatpage?id=${id}&type=3&infoId=${id}&courseId=${assessmentId}&chapterOrStageId=0`,
|
url: `${location.protocol}//${location.host}/student-h5/investigatpage?id=${id}&type=3&infoId=${id}&courseId=${assessmentId}&chapterOrStageId=0`,
|
||||||
@@ -5222,7 +5225,8 @@ export default {
|
|||||||
visibleEwmpg,
|
visibleEwmpg,
|
||||||
handleMenuClickpg,
|
handleMenuClickpg,
|
||||||
coursePlanRef,
|
coursePlanRef,
|
||||||
openCourse
|
openCourse,
|
||||||
|
exportScore
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@@ -6734,7 +6738,15 @@ export default {
|
|||||||
margin-left: 10px;
|
margin-left: 10px;
|
||||||
margin-right: 50px;
|
margin-right: 50px;
|
||||||
flex-grow: 1;
|
flex-grow: 1;
|
||||||
|
.img_daoc {
|
||||||
|
cursor: pointer;
|
||||||
|
width: 16px;
|
||||||
|
height: 18px;
|
||||||
|
background-image: url(@/assets/images/coursewareManage/export1.png);
|
||||||
|
background-size: 100% 100%;
|
||||||
|
background-color: #4ea6ff;
|
||||||
|
margin-left: 7px;
|
||||||
|
}
|
||||||
.progresstext {
|
.progresstext {
|
||||||
color: #ffc067;
|
color: #ffc067;
|
||||||
font-size: 14px;
|
font-size: 14px;
|
||||||
@@ -6744,9 +6756,14 @@ export default {
|
|||||||
.operations {
|
.operations {
|
||||||
display: flex;
|
display: flex;
|
||||||
width: 340px;
|
width: 340px;
|
||||||
//flex-grow: 1;
|
flex-grow: 1;
|
||||||
.operations_dropdown{
|
.operations_dropdown{
|
||||||
padding: 10px;text-align: center;position: relative;margin-left: auto;margin-right: 10px;
|
padding: 10px;
|
||||||
|
text-align: center;
|
||||||
|
position: relative;
|
||||||
|
margin-left: auto;
|
||||||
|
margin-right: 10px;
|
||||||
|
min-width: 90px;
|
||||||
}
|
}
|
||||||
.operation {
|
.operation {
|
||||||
color: #4ea6ff;
|
color: #4ea6ff;
|
||||||
|
|||||||
Reference in New Issue
Block a user