|
@@ -1952,8 +1952,8 @@
|
|
<el-checkbox :label="item.id">
|
|
<el-checkbox :label="item.id">
|
|
{{ item.name }}
|
|
{{ item.name }}
|
|
</el-checkbox>
|
|
</el-checkbox>
|
|
- <div class="inviteCode" :class="{ noneInvite: !isInvite(item.id) }" v-if="isInvite(item.id)">
|
|
|
|
- {{ getInviteCodeC(item.id) }}</div>
|
|
|
|
|
|
+ <!-- <div class="inviteCode" :class="{ noneInvite: !isInvite(item.id) }" v-if="isInvite(item.id)">
|
|
|
|
+ 邀请码:{{ getInviteCodeC(item.id) }}</div> -->
|
|
<!-- <div class="inviteCode" :class="{ noneInvite: !isInvite(item.id) }" v-if="checkboxList2.indexOf(item.id) != -1"
|
|
<!-- <div class="inviteCode" :class="{ noneInvite: !isInvite(item.id) }" v-if="checkboxList2.indexOf(item.id) != -1"
|
|
@click="OpenInviteD(item.id)">随机码设置</div>
|
|
@click="OpenInviteD(item.id)">随机码设置</div>
|
|
<img src="../../assets/icon/rightInvite.png" class="inviteImg" v-if="isInvite(item.id)" /> -->
|
|
<img src="../../assets/icon/rightInvite.png" class="inviteImg" v-if="isInvite(item.id)" /> -->
|
|
@@ -5881,7 +5881,7 @@ export default {
|
|
for (var i = 0; i < res.data[2].length; i++) {
|
|
for (var i = 0; i < res.data[2].length; i++) {
|
|
this.inviteCode.push({cid:res.data[2][i].classid,ic:res.data[2][i].code});
|
|
this.inviteCode.push({cid:res.data[2][i].classid,ic:res.data[2][i].code});
|
|
}
|
|
}
|
|
- this.InviteChange(this.checkboxList2)
|
|
|
|
|
|
+
|
|
this.checkboxList3 = res.data[0][0].course_teacher
|
|
this.checkboxList3 = res.data[0][0].course_teacher
|
|
? res.data[0][0].course_teacher.split(",")
|
|
? res.data[0][0].course_teacher.split(",")
|
|
: [];
|
|
: [];
|
|
@@ -5891,6 +5891,9 @@ export default {
|
|
this.myWord = res.data[0][0].template;
|
|
this.myWord = res.data[0][0].template;
|
|
this.templateC.id = "123";
|
|
this.templateC.id = "123";
|
|
this.courseUserid = res.data[0][0].userid;
|
|
this.courseUserid = res.data[0][0].userid;
|
|
|
|
+ // if(this.courseUserid == this.userid){
|
|
|
|
+ // this.InviteChange(this.checkboxList2)
|
|
|
|
+ // }
|
|
this.nbOrder = res.data[0][0].ordernumber;
|
|
this.nbOrder = res.data[0][0].ordernumber;
|
|
this.courseTypeId = [];
|
|
this.courseTypeId = [];
|
|
for (var i = 0; i < res.data[1].length; i++) {
|
|
for (var i = 0; i < res.data[1].length; i++) {
|
|
@@ -6732,6 +6735,7 @@ export default {
|
|
},
|
|
},
|
|
InviteChange(val) {
|
|
InviteChange(val) {
|
|
console.log(val);
|
|
console.log(val);
|
|
|
|
+ return
|
|
let array = JSON.parse(JSON.stringify(val))
|
|
let array = JSON.parse(JSON.stringify(val))
|
|
this.inviteCode = this.inviteCode.filter((el) => {
|
|
this.inviteCode = this.inviteCode.filter((el) => {
|
|
if (val.indexOf(el.cid) != -1) {
|
|
if (val.indexOf(el.cid) != -1) {
|
|
@@ -6835,7 +6839,12 @@ export default {
|
|
},
|
|
},
|
|
randomNumber() {
|
|
randomNumber() {
|
|
// 随机生成两位数
|
|
// 随机生成两位数
|
|
- let num = Math.floor(Math.random() * 900) + 100;
|
|
|
|
|
|
+ // let num = Math.floor(Math.random() * 900) + 100;
|
|
|
|
+ // 生成 0 到 99 之间的随机整数
|
|
|
|
+ const randomNumber = Math.floor(Math.random() * 100);
|
|
|
|
+
|
|
|
|
+ // 如果随机数小于 10,补上前导零
|
|
|
|
+ const num = randomNumber < 10 ? "0" + randomNumber : randomNumber.toString();
|
|
|
|
|
|
// 随机生成两个大写字母
|
|
// 随机生成两个大写字母
|
|
let letters = '';
|
|
let letters = '';
|
|
@@ -6854,6 +6863,8 @@ export default {
|
|
|
|
|
|
// 随机选择一种类型
|
|
// 随机选择一种类型
|
|
let type = Math.floor(Math.random() * 3);
|
|
let type = Math.floor(Math.random() * 3);
|
|
|
|
+
|
|
|
|
+ return num;
|
|
|
|
|
|
// 根据类型输出结果
|
|
// 根据类型输出结果
|
|
switch (type) {
|
|
switch (type) {
|