mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-23 09:46:45 +08:00
修改522
This commit is contained in:
@@ -641,9 +641,26 @@
|
||||
class="operation"
|
||||
style="cursor: pointer"
|
||||
@click="showCodeModel(item)"
|
||||
v-if="item.type !== 2"
|
||||
>
|
||||
二维码
|
||||
</div>
|
||||
<div
|
||||
class="operation"
|
||||
style="cursor: pointer"
|
||||
@click="qrcodeVisible(item)"
|
||||
v-if="item.type == 2"
|
||||
>
|
||||
签到二维码
|
||||
</div>
|
||||
<div
|
||||
class="operation"
|
||||
style="cursor: pointer"
|
||||
@click="qrcodeAssement(item)"
|
||||
v-if="item.type == 2"
|
||||
>
|
||||
评估二维码
|
||||
</div>
|
||||
<div
|
||||
class="operation"
|
||||
style="cursor: pointer; margin-right: 10px"
|
||||
@@ -1653,13 +1670,13 @@
|
||||
:createId="createId"
|
||||
/>
|
||||
<!-- 面授学员抽屉 -->
|
||||
<RouterFaceStu
|
||||
:permissions="permissions"
|
||||
:createId="createId"
|
||||
v-model:FSvisible="FSvisible"
|
||||
:datasource="facestudent"
|
||||
:type="1"
|
||||
/>
|
||||
<RouterFaceStu
|
||||
:permissions="permissions"
|
||||
:createId="createId"
|
||||
v-model:FSvisible="FSvisible"
|
||||
:datasource="facestudent"
|
||||
:type="1"
|
||||
/>
|
||||
<!-- 活动直播考勤抽屉 -->
|
||||
<active-attendance
|
||||
:permissions="permissions"
|
||||
@@ -2321,10 +2338,13 @@ import TrainClass from "@/components/project/TrainClass";
|
||||
import ProjectManager from "@/components/project/ProjectManagerNew";
|
||||
import TableStudent from "@/components/student/TableStudent";
|
||||
import TableCertificateStudent from "@/components/student/TableCertificateStudent";
|
||||
import { getStuPage } from "@/api/index1";
|
||||
import { getStuPage,courseData } from "@/api/index1";
|
||||
import ChangeGroupModal from "@/components/student/ChangeGroupModal.vue";
|
||||
import { checkPer,fixDoublePer } from "@/utils/utils";
|
||||
import ImpoterGroupLeader from "@/components/drawers/project/ImpoterGroupLeader.vue";
|
||||
import qrCode from "@/utils/qrCode";
|
||||
import {COURSE_PLAN_LIST} from "@/api/apis";
|
||||
import {useRequest} from "@/api/request";
|
||||
export default {
|
||||
name: "taskPage",
|
||||
components: {
|
||||
@@ -2361,6 +2381,38 @@ export default {
|
||||
ImpoterGroupLeader,
|
||||
},
|
||||
setup() {
|
||||
const qrcodeVisible = async (item)=>{
|
||||
console.log(item,'item')
|
||||
const planParams = {
|
||||
type: 1,
|
||||
offcourseId: item.courseId,
|
||||
taskId: item.id
|
||||
};
|
||||
courseData(planParams).then((res)=>{
|
||||
qrCode({
|
||||
title: "【签到】二维码",
|
||||
name: res.data.data[0].name + '课程签到',
|
||||
url: `${location.protocol}//${location.host}${process.env.VUE_APP_BASE_API}/admin/student/studentSign?taskId=${res.data.data[0].id}&taskType=${2}&type=${3}`,
|
||||
});
|
||||
})
|
||||
}
|
||||
const qrcodeAssement = async (item)=>{
|
||||
const planParams = {
|
||||
type: 1,
|
||||
offcourseId: item.courseId,
|
||||
taskId: item.id
|
||||
};
|
||||
courseData(planParams).then((res)=>{
|
||||
const assessment = res.data.data[0];
|
||||
console.log(assessment,'assessment')
|
||||
qrCode({
|
||||
title: "【评估】二维码",
|
||||
name: res.data.data[0].name + '课程评估',
|
||||
url: `${location.protocol}//${location.host}/student-h5/investigatpage?id=${res.data.data[0].id}&type=3&infoId=${res.data.data[0].id}&courseId=${res.data.data[0].assessmentId}&chapterOrStageId=0`,
|
||||
});
|
||||
})
|
||||
}
|
||||
|
||||
const store = useStore();
|
||||
const route = useRoute();
|
||||
const headers = { token: getCookieForName("token") };
|
||||
@@ -5037,7 +5089,11 @@ export default {
|
||||
studytimeRank,
|
||||
xsSelectChange,
|
||||
changePagination,
|
||||
handleChangeGroupLeader
|
||||
handleChangeGroupLeader,
|
||||
qrcodeVisible,
|
||||
qrcodeAssement,
|
||||
|
||||
|
||||
};
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user