mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/fe-manage.git
synced 2025-12-20 00:06:47 +08:00
修改522
This commit is contained in:
@@ -86,6 +86,7 @@
|
||||
class="btn btn1"
|
||||
style="margin-right: 20px"
|
||||
@click="qrcodeVisibleSign()"
|
||||
:class="{ 'notClick': courseSelectRows.length > 0 }"
|
||||
>
|
||||
<div class="wz">签到二维码</div>
|
||||
</div>
|
||||
@@ -94,6 +95,7 @@
|
||||
style="margin-right: 20px"
|
||||
v-if="data[coursePlanIndex]?.assessmentId"
|
||||
@click="qrcodeAssement()"
|
||||
:class="{ 'notClick': courseSelectRows.length > 0 }"
|
||||
>
|
||||
<div class="wz">评估二维码</div>
|
||||
</div>
|
||||
@@ -101,6 +103,7 @@
|
||||
class="btn btn1"
|
||||
style="margin-right: 20px"
|
||||
@click="qrcodeVisible()"
|
||||
:class="{ 'notClick': courseSelectRows.length > 0 }"
|
||||
>
|
||||
<div class="wz">开课二维码</div>
|
||||
</div>
|
||||
@@ -112,14 +115,14 @@
|
||||
:infoType="type"
|
||||
@finash="submitCall"
|
||||
>
|
||||
<a-button class="cus-btn" style="background: #4ea6ff; color: #fff">
|
||||
<a-button :class="{ 'notClick': courseSelectRows.length > 0 }" :disabled="courseSelectRows.length>0" class="cus-btn" style="background: #4ea6ff; color: #fff">
|
||||
<template #icon><img style="margin-right: 10px" src="../../../assets/images/courseManage/add0.png"/>
|
||||
</template>
|
||||
添加学员
|
||||
</a-button>
|
||||
</CommonStudent>
|
||||
<CommonImport @change="change" title="导入学员" :template-url="stuTemplateUrl" :data="{ targetId: offcoursePlanId, type:3 }" :url="`/admin/student/importStudent`" name="uploadFile">
|
||||
<div class="btn btn1" style="margin-right: 20px;margin-left: 20px">
|
||||
<div class="btn btn1" style="margin-right: 20px;margin-left: 20px" :class="{ 'notClick': courseSelectRows.length > 0 }">
|
||||
<div class="img1"></div>
|
||||
<div class="wz">导入学员</div>
|
||||
</div>
|
||||
@@ -127,18 +130,18 @@
|
||||
<div class="btn btn1" @click="batchSign" style="margin-right: 20px">
|
||||
<div class="wz">批量签到</div>
|
||||
</div>
|
||||
<div class="btn btn1" @click="exportTaskStu" style="margin-right: 20px">
|
||||
<div class="btn btn1" @click="exportTaskStu" style="margin-right: 20px" :class="{ 'notClick': courseSelectRows.length > 0 }">
|
||||
<div class="img2"></div>
|
||||
<div class="wz">导出签到数据</div>
|
||||
</div>
|
||||
<div class="btn btn1" @click="exportAssessment" v-if="data[coursePlanIndex]?.assessmentId">
|
||||
<div class="btn btn1" @click="exportAssessment" v-if="data[coursePlanIndex]?.assessmentId" :class="{ 'notClick': courseSelectRows.length > 0 }">
|
||||
<div class="img2"></div>
|
||||
<div class="wz">导出评估数据</div>
|
||||
</div>
|
||||
</div>
|
||||
<div class="tableBox" style="margin-top: 30px">
|
||||
<BaseTable ref="tableRef" :url="STUDENT_LIST" v-model:params="params" :columns="columns" :init="false"
|
||||
v-model:selectedRows="courseSelectRows"
|
||||
v-model:selectedRows="courseSelectRows" :showSizeChanger="true"
|
||||
type="checkbox"/>
|
||||
</div>
|
||||
</div>
|
||||
@@ -424,18 +427,21 @@ const qrcodeVisible = () => {
|
||||
const qrcodeVisibleSign = () => {
|
||||
qrCode({
|
||||
title: "【签到】二维码",
|
||||
name: openCourseName.value?openCourseName.value:data.value[0]?.name,
|
||||
name: openCourseName.value?openCourseName.value:data.value[0]?.name + '课程签到',
|
||||
// url: `${location.protocol}//${location.host}${process.env.VUE_APP_BASE_API}/admin/student/studentSign?taskId=${props.datasource.id}&taskType=${props.datasource.type}&type=${props.type}`,
|
||||
url: `${location.protocol}//${location.host}${process.env.VUE_APP_BASE_API}/admin/student/studentSign?taskId=${data.value[coursePlanIndex.value]?.id}&taskType=${2}&type=${3}`,
|
||||
});
|
||||
};
|
||||
|
||||
const qrcodeAssement = () =>{
|
||||
console.log(data,'data')
|
||||
qrCode({
|
||||
title: "【评估】二维码",
|
||||
name: data.value[coursePlanIndex.value]?.assessmentName,
|
||||
// name: data.value[coursePlanIndex.value]?.assessmentName + '课程评估',
|
||||
name: openCourseName.value?openCourseName.value:data.value[0]?.name + '课程评估',
|
||||
url: `${location.protocol}//${location.host}/student-h5/investigatpage?id=${data.value[coursePlanIndex.value]?.id}&type=3&infoId=${data.value[coursePlanIndex.value]?.id}&courseId=${data.value[coursePlanIndex.value].assessmentId}&chapterOrStageId=0`,
|
||||
});
|
||||
const a = {url: `${location.protocol}//${location.host}/student-h5/investigatpage?id=${data.value[coursePlanIndex.value]?.id}&type=3&infoId=${data.value[coursePlanIndex.value]?.id}&courseId=${data.value[coursePlanIndex.value].assessmentId}&chapterOrStageId=0`}
|
||||
console.log(a,'aaaa')
|
||||
}
|
||||
|
||||
const change = (e) => {
|
||||
@@ -449,6 +455,17 @@ const change = (e) => {
|
||||
</script>
|
||||
|
||||
<style lang="scss">
|
||||
.notClick{
|
||||
cursor: pointer;
|
||||
pointer-events: none;
|
||||
width: 100px;
|
||||
height: 40px;
|
||||
border: 1px solid #3b3c3c !important;
|
||||
border-radius: 8px;
|
||||
color: #fff !important;
|
||||
background-color: #3b3c3c !important;
|
||||
}
|
||||
|
||||
.me {
|
||||
.ant-modal-body {
|
||||
padding: 0px;
|
||||
|
||||
Reference in New Issue
Block a user