+
+
+
+
{
+ window.open(`${process.env.VUE_APP_BASE_API}/admin/assessment/manage/export?assessmentIds=${item.assessmentIds}&pid=${item.id}`)
+ };
+ const coursePlanRef = ref();
+ const openCourse = async (item,index) => {
+ await apitl.getDraftTask({projectId: item.projectId}).then((item)=>{
+ coursePlanRef.value.openDrawer(item.data.data.stageList[0].taskDraftDtoList[index]);
+ })
+ }
+ const qrCodeItems = ref([]);
+ const visibleEwm = ref({});
+ const qrcodeVisible = async (item)=>{
+ if(qrCodeItems.value.length!=0){
+ qrCodeItems.value = []
+ }
+ visibleEwm.value[item.id] = !visibleEwm.value[item.id];
+ const planParams = {
+ type: 2,
+ offcourseId: item.courseId,
+ taskId: item.id,
+ };
+ await courseData(planParams).then((res)=>{
+ qrCodeItems.value = res.data.data.map((dataItem) => ({
+ ...dataItem,
+ courseName: item.name,
+ }));
+ if(qrCodeItems.value.length==1){
+ qrCode({
+ title: "【签到】二维码",
+ // courseName: state.name+'项目',
+ name: qrCodeItems.value[0].name+'课程签到',
+ 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}`,
+ });
+ }
+ if(qrCodeItems.value.length==0){
+ message.info("暂无签到二维码")
+ }
+ })
+ }
+ function handleMenuClick({key}) {
+ const name = qrCodeItems.value[key].name;
+ const teacher = qrCodeItems.value[key].teacher;
+ const id = qrCodeItems.value[key].id;
+ const offteachers = qrCodeItems.value[key].offteachers.map(teacher => teacher.teacherName).join(', ');
+ qrCode({
+ title: "【签到】二维码",
+ // courseName: state.name+'项目',
+ name: name+'课程签到',
+ createName:offteachers||teacher,
+ url: `${location.protocol}//${location.host}${process.env.VUE_APP_BASE_API}/admin/student/studentSign?taskId=${id}&taskType=${2}&type=${3}`,
+ });
+ }
+ const qrCodeItemspg = ref([]);
+ const visibleEwmpg = ref({});
+ const qrcodeAssement = async (item)=>{
+ if(qrCodeItemspg.value.length!=0){
+ qrCodeItemspg.value = []
+ }
+ visibleEwmpg.value[item.id] = !visibleEwmpg.value[item.id];
+ const planParams = {
+ type: 2,
+ offcourseId: item.courseId,
+ taskId: item.id,
+ };
+ await courseData(planParams).then((res)=>{
+ const qrCodeItemspgItem = res.data.data.map((dataItem) => ({
+ ...dataItem,
+ courseName: item.name,
+ }));
+ qrCodeItemspg.value = qrCodeItemspgItem.filter(item => item.assessmentId !== null);
+ if(qrCodeItemspg.value.length==1){
+ qrCode({
+ title: "【评估】二维码",
+ // courseName: state.name+'项目',
+ name: qrCodeItemspg.value[0].name+'课程评估',
+ 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`,
+ });
+ }
+ })
+ }
+ function handleMenuClickpg({key}) {
+ const name = qrCodeItemspg.value[key].name;
+ const offteachers = qrCodeItemspg.value[key].offteachers.map(teacher => teacher.teacherName).join(', ');
+ const teacher = qrCodeItemspg.value[key].teacher;
+ const id = qrCodeItemspg.value[key].id;
+ const assessmentId = qrCodeItemspg.value[key].assessmentId;
+ qrCode({
+ title: "【评估】二维码",
+ // courseName: state.name+'项目',
+ name: name+'课程评估',
+ createName:offteachers||teacher,
+ url: `${location.protocol}//${location.host}/student-h5/investigatpage?id=${id}&type=3&infoId=${id}&courseId=${assessmentId}&chapterOrStageId=0`,
+ });
+ }
+
const router = useRouter();
const route = useRoute();
const stuRef = ref();
@@ -2986,6 +3140,17 @@ export default {
changeLevel,
checkPer,
showFaceStuSignUp,
+ qrcodeVisible,
+ qrcodeAssement,
+ handleMenuClick,
+ qrCodeItems,
+ visibleEwm,
+ qrCodeItemspg,
+ visibleEwmpg,
+ handleMenuClickpg,
+ coursePlanRef,
+ openCourse,
+ exportScore,
};
},
};
@@ -4469,7 +4634,7 @@ export default {
margin-right: 24px;
display: flex;
- flex-wrap: wrap;
+ flex-wrap: nowrap;
align-items: center;
padding: 25px 0px;
margin-left: 22px;
@@ -4538,7 +4703,7 @@ export default {
//height: 71px;
flex-grow: 1;
margin-right: 50px;
- width: 100px;
+ width: 134px;
.timetext {
font-size: 14px;
color: #999ba3;
@@ -4546,11 +4711,19 @@ export default {
}
.progress {
- width: 168px;
+ width: 70px;
margin-left: 10px;
margin-right: 50px;
flex-grow: 1;
-
+ .img_daoc {
+ cursor: pointer;
+ width: 16px;
+ height: 18px;
+ background-image: url(@/assets/images/coursewareManage/export.png);
+ background-size: 100% 100%;
+ // background-color: #4ea6ff;
+ margin-left: 7px;
+ }
.progresstext {
color: #ffc067;
font-size: 14px;
@@ -4559,8 +4732,16 @@ export default {
.operations {
display: flex;
- width: 240px;
-
+ width: 420px;
+ flex-grow: 1;
+ .operations_dropdown{
+ padding: 10px;
+ text-align: center;
+ position: relative;
+ margin-left: auto;
+ margin-right: 10px;
+ // min-width: 90px;
+ }
//flex-grow: 1;
.operation {
color: #4ea6ff;