fix:增加面授课签到和课程二维码

This commit is contained in:
lixg
2022-12-08 16:56:36 +08:00
parent 53feaf313c
commit eec179f6b5
3 changed files with 52 additions and 16 deletions

View File

@@ -7,7 +7,7 @@
:closable="closableQR" :closable="closableQR"
wrapClassName="codeModal" wrapClassName="codeModal"
style="margin-top: 400px" style="margin-top: 400px"
:zIndex="999" :zIndex="9999"
@cancel="qr_exit" @cancel="qr_exit"
> >
<div id="qrcode" class="QR"> <div id="qrcode" class="QR">

View File

@@ -191,7 +191,7 @@
alt="" alt=""
/> />
</div> </div>
<span>授课形式</span> <span>授课形式</span>
</div> </div>
<a-radio-group v-model:value="valueE1"> <a-radio-group v-model:value="valueE1">
@@ -221,7 +221,7 @@
</div> </div>
</a-radio-group> </a-radio-group>
</div> </div>
<!-- <!--
<div class="b_sup" :style="{ display: bs_hs ? 'block' : 'none' }"> <div class="b_sup" :style="{ display: bs_hs ? 'block' : 'none' }">
<div class="ofmb_items"> <div class="ofmb_items">
<div class="signbox"> <div class="signbox">
@@ -1626,8 +1626,16 @@
<a <a
@click=" @click="
() => { () => {
QR_hs = true; //QR_hs = true;
ftsQR_hs = true; //ftsQR_hs = true;
codevisible = true;
codeIndex = 0;
codeType = 0;
codeInfo = {
title: '面授课签到',
name: record.name,
url: codeUrl,
};
} }
" "
> >
@@ -1675,8 +1683,16 @@
<a-menu-item <a-menu-item
@click=" @click="
() => { () => {
QR_hs = true; //QR_hs = true;
vipftQR_hs = true; //vipftQR_hs = true;
codevisible = true;
codeIndex = 1;
codeType = 1;
codeInfo = {
title: '面授课二维码',
name: record.name,
url: codeUrl,
};
} }
" "
> >
@@ -2626,6 +2642,15 @@
<div class="aeLoading" :style="{ display: addLoading ? 'flex' : 'none' }"> <div class="aeLoading" :style="{ display: addLoading ? 'flex' : 'none' }">
<a-spin :spinning="addLoading" tip="" /> <a-spin :spinning="addLoading" tip="" />
</div> </div>
<!-- 二维码弹窗 -->
<two-dimensional-code
v-model:codevisible="codevisible"
:codeInfo="codeInfo"
:index="codeIndex"
:type="codeType === 1 ? '课程二维码' : '签到二维码'"
/>
<!-- 二维码弹窗 -->
</template> </template>
<script> <script>
import { import {
@@ -2687,7 +2712,8 @@ import ProjectManager from "@/components/project/ProjectManagerNew";
import SeeModal from "./components/seeModal.vue"; import SeeModal from "./components/seeModal.vue";
import CourseModal from "./courseModal.vue"; import CourseModal from "./courseModal.vue";
import * as moment from "moment"; import * as moment from "moment";
import TwoDimensionalCode from "../../components/TwoDimensionalCode.vue";
import { codeUrl } from "../../api/method";
//列表表格 //列表表格
const columns1 = [ const columns1 = [
{ {
@@ -3203,6 +3229,7 @@ export default defineComponent({
// return attrs.vnodes; // return attrs.vnodes;
// }, // },
addOnlineCourse, addOnlineCourse,
TwoDimensionalCode,
}, },
setup() { setup() {
const CourseModalRef = ref(null); const CourseModalRef = ref(null);
@@ -3471,6 +3498,9 @@ export default defineComponent({
assessmentId: null, assessmentId: null,
assessmentName: "", assessmentName: "",
assessmentVisible: false, assessmentVisible: false,
codevisible: false, //二维码弹窗
codeInfo: null, //二维码内容
codeUrl: codeUrl,
}); });
const showStuAdd = (record) => { const showStuAdd = (record) => {
@@ -3977,7 +4007,7 @@ export default defineComponent({
}; };
// console.log("获取学员信息", obj); // console.log("获取学员信息", obj);
let res = await studentList(obj); let res = await studentList(obj);
// console.log("获取学员列表", res); console.log("获取学员列表", res);
const { rows, total, pageNo } = res.data.data; const { rows, total, pageNo } = res.data.data;
state.tableDataTotal3 = total; state.tableDataTotal3 = total;
@@ -4102,6 +4132,7 @@ export default defineComponent({
address: "address", address: "address",
starttime: "beginTime", starttime: "beginTime",
createtime: "createTime", createtime: "createTime",
createName: "createName",
}, },
true true
); );
@@ -4109,6 +4140,7 @@ export default defineComponent({
itm.pageNo = pageNo; itm.pageNo = pageNo;
}); });
state.tableData6 = datas; state.tableData6 = datas;
console.log("state.tableData6", state.tableData6);
}; };
const options1 = ref([ const options1 = ref([
@@ -4190,11 +4222,17 @@ export default defineComponent({
} }
}; };
const createft = () => { const createft = () => {
if(!state.valueE1 || !state.xzinputV1){ if (!state.valueE1 || !state.xzinputV1) {
message.destroy(); message.destroy();
return message.warning("请输入必填项"); return message.warning("请输入必填项");
} }
console.log(" state.valueE1", state.valueE1,!state.bs_hs && state.valueE1 == 2,state.bs_hs,state.valueE1 == 2); console.log(
" state.valueE1",
state.valueE1,
!state.bs_hs && state.valueE1 == 2,
state.bs_hs,
state.valueE1 == 2
);
if (state.bs_hs && state.valueE1 == 2) { if (state.bs_hs && state.valueE1 == 2) {
state.of_hs = false; state.of_hs = false;
// state.ft_hs = true; // state.ft_hs = true;
@@ -4203,10 +4241,10 @@ export default defineComponent({
state.valueE1 = ""; state.valueE1 = "";
state.teacher = ""; state.teacher = "";
state.teacherName = ""; state.teacherName = "";
state.qdms_inputV1 = state.xzinputV1; state.qdms_inputV1 = state.xzinputV1;
state.xzinputV1 = ""; state.xzinputV1 = "";
console.log("qdms_inputV1", state.qdms_inputV1 ); console.log("qdms_inputV1", state.qdms_inputV1);
getDictList("faceclassPic"); getDictList("faceclassPic");
getTea(); getTea();
} }
@@ -4841,8 +4879,6 @@ export default defineComponent({
}; };
//编辑面授课 //编辑面授课
const handleEdit = async (itm, type) => { const handleEdit = async (itm, type) => {
console.log(45555); console.log(45555);
console.log(itm); console.log(itm);
if (type === "1") { if (type === "1") {

View File

@@ -1448,7 +1448,7 @@ export default {
addAuthList: [], addAuthList: [],
codevisible: false, //二维码是否显示 codevisible: false, //二维码是否显示
codeInfo: null, //二维码标题 codeInfo: null, //二维码内容
}); });
const levelList = reactive({ const levelList = reactive({