|
@@ -536,15 +536,9 @@
|
|
|
>
|
|
|
</div>
|
|
|
</el-dialog>
|
|
|
+ <!-- 学员激活列表 -->
|
|
|
+ <qr-code v-model="qrcodeStatus" title="学员激活列表" :codeUrl="qrcodeUrl" />
|
|
|
|
|
|
- <el-dialog title="学员激活列表" :visible.sync="qrcodeStatus" width="300px">
|
|
|
- <div class="right-code">
|
|
|
- <!-- <h2 class="title">学员激活列表</h2> -->
|
|
|
- <div id="qrcode" class="qrcode code" ref="qrCodeUrl" style="display: flex;justify-content: center;"></div>
|
|
|
- <!-- <p class="code-url"
|
|
|
- v-if="codeUrl2">{{ codeUrl2 }}</p>-->
|
|
|
- </div>
|
|
|
- </el-dialog>
|
|
|
<el-dialog
|
|
|
title="修改密码"
|
|
|
:visible.sync="passwrodVisiable"
|
|
@@ -615,12 +609,11 @@ import {
|
|
|
studentHasCourse,
|
|
|
getLatest,
|
|
|
} from "@/api/studentManager";
|
|
|
+import qrCode from '@/components/QrCode/index';
|
|
|
import cleanDeep from "clean-deep";
|
|
|
import { vaildStudentUrl } from "@/utils/validate";
|
|
|
import { getEmployeeOrgan, resetPassword2, getTeacher } from "@/api/buildTeam";
|
|
|
import { subjectListTree } from "@/api/specialSetting";
|
|
|
-import QRCode from "qrcodejs2";
|
|
|
-import store from "@/store";
|
|
|
import axios from "axios";
|
|
|
import qs from "qs";
|
|
|
import { packageStatus } from '@/constant/index'
|
|
@@ -629,7 +622,7 @@ import load from "@/utils/loading";
|
|
|
import { permission } from "@/utils/directivePage";
|
|
|
export default {
|
|
|
name: "studentList",
|
|
|
- components: { pagination },
|
|
|
+ components: { pagination, qrCode },
|
|
|
data() {
|
|
|
return {
|
|
|
studentVisible: false,
|
|
@@ -694,7 +687,7 @@ export default {
|
|
|
active: null,
|
|
|
maskName: "新增学员",
|
|
|
qrcodeStatus: false,
|
|
|
- qrcodes: true,
|
|
|
+ qrcodeUrl: null,
|
|
|
activeRow: null,
|
|
|
passwrodVisiable: false,
|
|
|
passwrodForm: {
|
|
@@ -718,25 +711,7 @@ export default {
|
|
|
onCreateQRCode() {
|
|
|
// 生成报名二维码
|
|
|
this.qrcodeStatus = true;
|
|
|
- // let id = this.$route.query.id
|
|
|
- // let teamName = this.$route.query.name
|
|
|
-
|
|
|
- setTimeout(() => {
|
|
|
- if (this.qrcodes) {
|
|
|
- this.qrcodes = false;
|
|
|
- this.qrcode = new QRCode("qrcode", {
|
|
|
- width: 250,
|
|
|
- height: 250,
|
|
|
- colorDark: "#000000",
|
|
|
- colorLight: "#ffffff",
|
|
|
- correctLevel: QRCode.CorrectLevel.H,
|
|
|
- });
|
|
|
- }
|
|
|
- // vaildStudentUrl() + `/#/sporadicLogin?id=${刷刷刷}`
|
|
|
- this.qrcode.clear();
|
|
|
- this.qrcode.makeCode(vaildStudentUrl() + `/#/queryStudentPer`);
|
|
|
- // this.codeUrl = vaildStudentUrl() + '/#/login?musicGroupId=' + id
|
|
|
- }, 500);
|
|
|
+ this.qrcodeUrl = vaildStudentUrl() + `/#/queryStudentPer`
|
|
|
},
|
|
|
getList() {
|
|
|
let params = this.searchForm;
|
|
@@ -1055,10 +1030,6 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
/deep/.studentInfo {
|
|
|
- .el-dialog__body {
|
|
|
- padding-top: 0;
|
|
|
- padding-bottom: 0;
|
|
|
- }
|
|
|
.multiple.el-select {
|
|
|
width: 185px !important;
|
|
|
}
|