|
@@ -1947,12 +1947,13 @@
|
|
|
</div>
|
|
|
<div class="people_nav">选择班级</div>
|
|
|
</div>
|
|
|
- <el-checkbox-group v-model="checkboxList2" class="people_name" @change="InviteChange">
|
|
|
+ <el-checkbox-group v-model="checkboxList2" class="people_name people_name2" @change="InviteChange">
|
|
|
<div v-for="(item) in grade2" :key="item.id" class="p_box">
|
|
|
<el-checkbox :label="item.id">
|
|
|
{{ item.name }}
|
|
|
</el-checkbox>
|
|
|
- <div class="inviteCode" v-if="checkboxList2.indexOf(item.id) != -1" @click="OpenInviteD(item.id)">随机码设置</div>
|
|
|
+ <div class="inviteCode" :class="{noneInvite:!isInvite(item.id)}" v-if="checkboxList2.indexOf(item.id) != -1" @click="OpenInviteD(item.id)">随机码设置</div>
|
|
|
+ <img src="../../assets/icon/rightInvite.png" class="inviteImg" v-if="isInvite(item.id)"/>
|
|
|
</div>
|
|
|
</el-checkbox-group>
|
|
|
</div>
|
|
@@ -3003,6 +3004,15 @@ export default {
|
|
|
return this.ManAarray.length ? _people2 : "";
|
|
|
};
|
|
|
},
|
|
|
+ isInvite(){
|
|
|
+ return function (cid) {
|
|
|
+ let array = []
|
|
|
+ for (var i = 0; i < this.inviteCode.length; i++) {
|
|
|
+ array.push(this.inviteCode[i].cid);
|
|
|
+ }
|
|
|
+ return array.indexOf(cid) != -1;
|
|
|
+ };
|
|
|
+ },
|
|
|
getClassC() {
|
|
|
return function (c) {
|
|
|
let _c2 = "";
|
|
@@ -7452,18 +7462,32 @@ export default {
|
|
|
.people_name>>>.el-checkbox__label {
|
|
|
text-overflow: ellipsis;
|
|
|
overflow: hidden;
|
|
|
- width: 100%;
|
|
|
+ width: calc(100%);
|
|
|
+}
|
|
|
+.people_name2>>>.el-checkbox__label {
|
|
|
+ width: calc(100% - 130px);
|
|
|
}
|
|
|
|
|
|
+
|
|
|
.inviteCode {
|
|
|
position: absolute;
|
|
|
- right: 10px;
|
|
|
+ right: 30px;
|
|
|
color: #237ade;
|
|
|
top: 0;
|
|
|
cursor: pointer;
|
|
|
font-size: 13px;
|
|
|
}
|
|
|
|
|
|
+.noneInvite{
|
|
|
+ color: #a8a8a8;
|
|
|
+}
|
|
|
+
|
|
|
+.inviteImg{
|
|
|
+ position: absolute;
|
|
|
+ right: 5px;
|
|
|
+ top: 0;
|
|
|
+ width: 20px;
|
|
|
+}
|
|
|
.right_img {
|
|
|
width: 150px;
|
|
|
height: 150px;
|