|
@@ -3,18 +3,19 @@
|
|
|
<div style="overflow: auto">
|
|
|
<div class="g_d_btnBox">
|
|
|
<!-- <div class="btn_left" v-if="type == 1 || type == 4">
|
|
|
- <div @click="setClassid('1')" :class="{ active: classid == '1' }" v-if="!classList.length">全部</div>
|
|
|
+ <div @click="setClassid('1')" :class="{ active: classid == '1' }" v-if="!classList.length">All</div>
|
|
|
<div @click="setClassid(item.id)" :class="{ active: classid == item.id }"
|
|
|
v-for="(item, index) in classList" :key="index">{{ item.name }}</div>
|
|
|
</div>
|
|
|
<div class="btn_left" v-if="type == 2">
|
|
|
- <div @click="setClassid('1')" :class="{ active: classid == '1' }" v-if="!classList.length">全部</div>
|
|
|
+ <div @click="setClassid('1')" :class="{ active: classid == '1' }" v-if="!classList.length">All</div>
|
|
|
<div @click="setClassid(item.id)" :class="{ active: classid == item.id }"
|
|
|
v-for="(item, index) in classList" :key="index">{{ item.name }}</div>
|
|
|
</div> -->
|
|
|
<div></div>
|
|
|
<!-- || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1) -->
|
|
|
- <div class="btn_right" v-if="courseDetail.userid == userid">
|
|
|
+ <div class="btn_right"
|
|
|
+ v-if="courseDetail.userid == userid">
|
|
|
<div style="color: rgb(171 171 171); margin: 0 10px 0 0" v-show="false">
|
|
|
提示:开启【开放选座】,能够自由加入和退出小组。
|
|
|
</div>
|
|
@@ -36,20 +37,20 @@
|
|
|
<el-switch v-model="isopen" class="switchCss" @change="openChair"></el-switch>
|
|
|
</div>
|
|
|
<div type="primary" @click="updateGroup" class="returnBtn" style="background-color: #225bc7">
|
|
|
- 添加分组
|
|
|
+ Create Group
|
|
|
</div>
|
|
|
- <div type="primary" @click="deleteCourseGroup" class="returnBtn" style="background-color: #225bc7">
|
|
|
- 删除分组
|
|
|
+ <div type="primary" @click="deleteCourseGroup" class="returnBtn" style="background-color: #225bc7" >
|
|
|
+ Delete Group
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="btn_right" v-else>
|
|
|
+ <div class="btn_right"
|
|
|
+ v-else>
|
|
|
<div style="color: rgb(171 171 171); margin: 0 10px 0 0">
|
|
|
提示:开启【开放选座】,能够自由加入和退出小组。
|
|
|
</div>
|
|
|
<div class="group_switch">
|
|
|
<span>开放选座</span>
|
|
|
- <el-switch v-model="islock" active-text="" class="switchCss" @change="lockChair"
|
|
|
- disabled></el-switch>
|
|
|
+ <el-switch v-model="islock" active-text="" class="switchCss" @change="lockChair" disabled></el-switch>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -73,7 +74,7 @@
|
|
|
groupStudent[g.id][0]
|
|
|
? groupStudent[g.id] &&
|
|
|
groupStudent[g.id][0].name
|
|
|
- : "空位置" }}</span>
|
|
|
+ : "Empty" }}</span>
|
|
|
</div>
|
|
|
<div v-if="groupJson.number > 4">
|
|
|
<span :class="{
|
|
@@ -91,7 +92,7 @@
|
|
|
groupStudent[g.id][4]
|
|
|
? groupStudent[g.id] &&
|
|
|
groupStudent[g.id][4].name
|
|
|
- : "空位置" }}</span>
|
|
|
+ : "Empty" }}</span>
|
|
|
</div>
|
|
|
<div v-if="groupJson.number > 8">
|
|
|
<span :class="{
|
|
@@ -109,7 +110,7 @@
|
|
|
groupStudent[g.id][8]
|
|
|
? groupStudent[g.id] &&
|
|
|
groupStudent[g.id][8].name
|
|
|
- : "空位置" }}</span>
|
|
|
+ : "Empty" }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="g_d_group_tableBox">
|
|
@@ -130,7 +131,7 @@
|
|
|
groupStudent[g.id][2]
|
|
|
? groupStudent[g.id] &&
|
|
|
groupStudent[g.id][2].name
|
|
|
- : "空位置" }}</span>
|
|
|
+ : "Empty" }}</span>
|
|
|
</div>
|
|
|
<div v-if="groupJson.number > 6">
|
|
|
<span :class="{
|
|
@@ -148,7 +149,7 @@
|
|
|
groupStudent[g.id][6]
|
|
|
? groupStudent[g.id] &&
|
|
|
groupStudent[g.id][6].name
|
|
|
- : "空位置" }}</span>
|
|
|
+ : "Empty" }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div class="g_d_group_table">
|
|
@@ -157,25 +158,27 @@
|
|
|
</div>
|
|
|
<div>
|
|
|
<!-- && groupJson.islock == 2 -->
|
|
|
- <div v-if="courseDetail.userid == userid" @click="deleteGroupChair(g.id, gindex)">
|
|
|
- 移除组员
|
|
|
+ <div v-if="courseDetail.userid == userid"
|
|
|
+ @click="deleteGroupChair(g.id, gindex)">
|
|
|
+ Remove Group Member
|
|
|
</div>
|
|
|
<div @click="selectGroup(g.id)"
|
|
|
v-if="groupStudentUid && groupStudentUid[g.id].indexOf(userid) == -1 && courseDetail.userid !== userid">
|
|
|
- 加入分组
|
|
|
+ Join group
|
|
|
</div>
|
|
|
<div @click="
|
|
|
exitGroup(groupStudent[g.id] &&
|
|
|
groupStudent[g.id][
|
|
|
groupStudentUid[g.id].indexOf(userid)
|
|
|
].id)
|
|
|
- " v-else-if="groupStudentUid && groupStudentUid[g.id].indexOf(userid) != -1">
|
|
|
+ "
|
|
|
+ v-else-if="groupStudentUid && groupStudentUid[g.id].indexOf(userid) != -1">
|
|
|
退出分组
|
|
|
</div>
|
|
|
<div style="margin-top:10px"
|
|
|
- v-if="(courseDetail.userid == userid) && groupStudent[g.id].length < groupJson.number"
|
|
|
+ v-if="(courseDetail.userid == userid ) && groupStudent[g.id].length < groupJson.number"
|
|
|
@click="addGroupStudent(g.id)">
|
|
|
- 添加组员
|
|
|
+ Add Group Member
|
|
|
<!-- || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1) -->
|
|
|
</div>
|
|
|
</div>
|
|
@@ -197,7 +200,7 @@
|
|
|
groupStudent[g.id][3]
|
|
|
? groupStudent[g.id] &&
|
|
|
groupStudent[g.id][3].name
|
|
|
- : "空位置" }}</span>
|
|
|
+ : "Empty" }}</span>
|
|
|
</div>
|
|
|
<div v-if="groupJson.number > 7">
|
|
|
<span :class="{
|
|
@@ -215,7 +218,7 @@
|
|
|
groupStudent[g.id][7]
|
|
|
? groupStudent[g.id] &&
|
|
|
groupStudent[g.id][7].name
|
|
|
- : "空位置" }}</span>
|
|
|
+ : "Empty" }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -236,7 +239,7 @@
|
|
|
groupStudent[g.id][1]
|
|
|
? groupStudent[g.id] &&
|
|
|
groupStudent[g.id][1].name
|
|
|
- : "空位置" }}</span>
|
|
|
+ : "Empty" }}</span>
|
|
|
</div>
|
|
|
<div v-if="groupJson.number > 5">
|
|
|
<span :class="{
|
|
@@ -254,7 +257,7 @@
|
|
|
groupStudent[g.id][5]
|
|
|
? groupStudent[g.id] &&
|
|
|
groupStudent[g.id][5].name
|
|
|
- : "空位置" }}</span>
|
|
|
+ : "Empty" }}</span>
|
|
|
</div>
|
|
|
<div v-if="groupJson.number > 9">
|
|
|
<span :class="{
|
|
@@ -272,59 +275,53 @@
|
|
|
groupStudent[g.id][9]
|
|
|
? groupStudent[g.id] &&
|
|
|
groupStudent[g.id][9].name
|
|
|
- : "空位置" }}</span>
|
|
|
+ : "Empty" }}</span>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div v-else-if="!groupJson.group.length" style="text-align: center;">{{ courseDetail.userid == userid ?
|
|
|
- "暂无分组,请点击右上角设置分组" :
|
|
|
+ "No groups available at the moment. Click the 'Create Group' button to set up groups" :
|
|
|
"老师暂未添加分组" }}</div>
|
|
|
<div v-else-if="!isopen" style="text-align: center;">{{ "已关闭分组" }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup2" :append-to-body="true" width="650px"
|
|
|
+ <el-dialog title="Group Settings" :visible.sync="dialogVisibleGroup2" :append-to-body="true" width="650px"
|
|
|
:before-close="handleClose" class="dialog_diy">
|
|
|
<div class="groupBox">
|
|
|
<div v-if="groupJson2.group" class="groupContent">
|
|
|
- <div class="groupTitle">请设置小组数量及名称</div>
|
|
|
+ <div class="groupTitle">Group Names</div>
|
|
|
<div v-for="(item, index) in groupJson2.group" :key="index" class="groupName">
|
|
|
- <span class="groupn">第{{ index + 1 }}组名称:</span>
|
|
|
+ <span class="groupn">{{ index + 1 }}st Group Name:</span>
|
|
|
<el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
|
|
|
<div class="groupBtn">
|
|
|
<el-button type="primary" size="small" @click="addGroup(index)"
|
|
|
v-if="(groupJson2.group.length - 1) == index">
|
|
|
- 添加</el-button>
|
|
|
+ Add</el-button>
|
|
|
<el-button type="primary" size="small" @click="deleteGroup(index)"
|
|
|
v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="batch_add_group">
|
|
|
- <span>批量添加小组:</span>
|
|
|
- <el-input-number v-model="addGroupNum" :min="0" label="批量添加小组"></el-input-number>
|
|
|
- <el-button style="margin-left:5px" type="primary" size="small" @click="handleAddGroupNumChange()">
|
|
|
- 批量添加</el-button>
|
|
|
- </div>
|
|
|
</div>
|
|
|
<div class="groupContent">
|
|
|
- <div class="groupTitle">请设置每组人数</div>
|
|
|
- <el-input v-model="groupJson2.number" style="width:150px" placeholder="请输入2-10的数字"
|
|
|
+ <div class="groupTitle">Group size</div>
|
|
|
+ <el-input v-model="groupJson2.number" style="width:150px" placeholder="Enter an integer between 2 to 10"
|
|
|
@change="numberPan"></el-input>
|
|
|
</div>
|
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="dialogVisibleGroup2 = false; addGroupNum = 0;">取 消</el-button>
|
|
|
- <el-button type="primary" @click="updateGroupJson(2)">确定</el-button>
|
|
|
+ <el-button @click="dialogVisibleGroup2 = false">Cancel</el-button>
|
|
|
+ <el-button type="primary" @click="updateGroupJson(2)">Save</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
- <el-dialog title="移除组员" :visible.sync="dialogVisibleDeleteGroup" :append-to-body="true" width="350px"
|
|
|
+ <el-dialog title="Remove Group Member" :visible.sync="dialogVisibleDeleteGroup" :append-to-body="true" width="350px"
|
|
|
:before-close="handleClose" class="dialog_diy">
|
|
|
<div>
|
|
|
<h2>
|
|
|
{{ this.deleteGroupArray.name }}
|
|
|
</h2>
|
|
|
<div style="color: rgb(171 171 171); margin-top: 10px">
|
|
|
- 请选择要删除的组员
|
|
|
+ Select member
|
|
|
</div>
|
|
|
<el-checkbox-group v-model="checkDeleteGroup">
|
|
|
<el-checkbox style="display: flex; margin-top: 20px" v-for="(item, index) in deleteGroupUser"
|
|
@@ -332,8 +329,8 @@
|
|
|
</el-checkbox-group>
|
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="dialogVisibleDeleteGroup = false">取 消</el-button>
|
|
|
- <el-button type="primary" @click="deleteChair">确定</el-button>
|
|
|
+ <el-button @click="dialogVisibleDeleteGroup = false">Cancel</el-button>
|
|
|
+ <el-button type="primary" @click="deleteChair">Save</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
<el-dialog title="修改分组" :visible.sync="dialogVisibleUpdateGroup" :append-to-body="true" width="350px"
|
|
@@ -351,23 +348,23 @@
|
|
|
</el-radio-group>
|
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="dialogVisibleUpdateGroup = false">取 消</el-button>
|
|
|
- <el-button type="primary" @click="updateChair">确定</el-button>
|
|
|
+ <el-button @click="dialogVisibleUpdateGroup = false">Cancel</el-button>
|
|
|
+ <el-button type="primary" @click="updateChair">Save</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
- <el-dialog title="添加组员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="540px" height="80%"
|
|
|
+ <el-dialog title="Add Group Member" :visible.sync="dialogVisibleMember" :append-to-body="true" width="540px" height="80%"
|
|
|
:before-close="handleClose" class="addNewPP" v-loading="loading">
|
|
|
<div class="people">
|
|
|
<div class="people_top">
|
|
|
<div class="people_top_right">
|
|
|
<div class="people_search">
|
|
|
- <el-input placeholder="搜索学生的姓名" v-model="searchTN" @keyup.enter.native="getStudent"></el-input>
|
|
|
+ <el-input placeholder="Search for name" v-model="searchTN" @keyup.enter.native="getStudent"></el-input>
|
|
|
<div class="search_img" @click="getStudent">
|
|
|
<img src="../../../../assets/icon/search.png" alt />
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div class="people_nav">选择成员</div>
|
|
|
+ <div class="people_nav">Select member</div>
|
|
|
</div>
|
|
|
<!-- <div class="t_j_box" style="
|
|
|
padding: 20px 0 0 25px;
|
|
@@ -392,10 +389,9 @@
|
|
|
<div class="i_box_login2" v-if="classJuri.length">
|
|
|
<div :class="{ active: checkboxList3.indexOf(item.userid) != -1 }" v-for="item in classJuri"
|
|
|
:key="item.userid" :label="item.userid" @click="addGroupUser(item.userid)">
|
|
|
- <el-tooltip placement="top" :content="`${item.name ? item.name : '暂无姓名'}${item.group.length > 0 ? '在'+item.group.join('、') : ''}`">
|
|
|
+ <el-tooltip placement="top" :content="item.name ? item.name : '暂无姓名'">
|
|
|
<span>{{ item.name ? item.name : "暂无姓名" }}</span>
|
|
|
</el-tooltip>
|
|
|
- <div class="grouplBox" v-if="item.group.length">{{ item.group.length }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
|
|
@@ -406,8 +402,8 @@
|
|
|
@current-change="handleCurrentChange"></el-pagination>
|
|
|
</div> -->
|
|
|
<span slot="footer" class="dialog-footer">
|
|
|
- <el-button @click="dialogVisibleMember = false">取 消</el-button>
|
|
|
- <el-button type="primary" @click="joinGroup2">确定</el-button>
|
|
|
+ <el-button @click="dialogVisibleMember = false">Cancel</el-button>
|
|
|
+ <el-button type="primary" @click="joinGroup2">Save</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
</div>
|
|
@@ -418,7 +414,6 @@ export default {
|
|
|
props: ['cid', 'classList', 'courseDetail', 'userid', "type", "classId", "oid", "people"],
|
|
|
data() {
|
|
|
return {
|
|
|
- addGroupNum: 0,
|
|
|
groupJson2: {},
|
|
|
classid: "1",
|
|
|
groupid: "",
|
|
@@ -454,20 +449,11 @@ export default {
|
|
|
}
|
|
|
},
|
|
|
methods: {
|
|
|
- handleAddGroupNumChange() {
|
|
|
- for (let i = 0; i < this.addGroupNum; i++) {
|
|
|
- this.groupJson2.group.push({
|
|
|
- name: "第" + (this.groupJson2.group.length + 1) + "组",
|
|
|
- id: this.guid()
|
|
|
- });
|
|
|
- }
|
|
|
- },
|
|
|
handleClose2(done) {
|
|
|
this.$emit('update:dialogVisibleGroup', false)
|
|
|
done();
|
|
|
},
|
|
|
handleClose(done) {
|
|
|
- this.addGroupNum = 0;
|
|
|
done();
|
|
|
},
|
|
|
getStudent() {
|
|
@@ -504,45 +490,26 @@ export default {
|
|
|
// if(_user.indexOf(this.courseDetail.userid) == -1){
|
|
|
// _user.push(this.courseDetail.userid);
|
|
|
// }
|
|
|
- if (_user.indexOf(this.courseDetail.userid) !== -1) {
|
|
|
+ if(_user.indexOf(this.courseDetail.userid) !== -1){
|
|
|
_user.splice(_user.indexOf(this.courseDetail.userid), 1);
|
|
|
}
|
|
|
- let params = [{
|
|
|
+ let params = {
|
|
|
uid: _user.join(","),
|
|
|
- }];
|
|
|
+ };
|
|
|
this.ajax
|
|
|
- .post(this.$store.state.api + "getAllUserByIdP", params)
|
|
|
- .then((res) => {
|
|
|
- this.loading = false
|
|
|
+ .get(this.$store.state.api + "getAllUserById", params)
|
|
|
+ .then((res) => {
|
|
|
+ this.loading = false
|
|
|
if (res.data && res.data[0].length) {
|
|
|
- let students = res.data[0].filter((el) => {
|
|
|
- return this.groupStudentUid[this.gid].indexOf(el.userid) == -1
|
|
|
- // return el
|
|
|
+ this.classJuri = res.data[0].filter((el) => {
|
|
|
+ return this.allGroupStudentUid.indexOf(el.userid) == -1
|
|
|
});
|
|
|
- let studentsJson = {}
|
|
|
- for(var i = 0; i < students.length; i++){
|
|
|
- studentsJson[students[i].userid] = students[i]
|
|
|
- students[i].group = []
|
|
|
- let groupk = Object.keys(this.groupStudentUid)
|
|
|
- for(var j = 0; j < groupk.length; j++){
|
|
|
- let uid = this.groupStudentUid[groupk[j]]
|
|
|
- if(uid.indexOf(students[i].userid) !== -1){
|
|
|
- for(var k = 0; k < this.groupJson.group.length; k++){
|
|
|
- if(this.groupJson.group[k].id == groupk[j]){
|
|
|
- students[i].group.push(this.groupJson.group[k].name)
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
-
|
|
|
- }
|
|
|
- }
|
|
|
- this.classJuri = Object.values(studentsJson)
|
|
|
}
|
|
|
- })
|
|
|
+ })
|
|
|
.catch((err) => {
|
|
|
- this.loading = false
|
|
|
- console.error(err);
|
|
|
- });
|
|
|
+ this.loading = false
|
|
|
+ console.error(err);
|
|
|
+ });
|
|
|
},
|
|
|
setClassid(cid) {
|
|
|
this.classid = cid
|
|
@@ -574,7 +541,7 @@ export default {
|
|
|
this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
|
|
|
if (!this.groupJson2.group.length) {
|
|
|
this.groupJson2.group.push({
|
|
|
- name: "第" + (this.groupJson2.group.length + 1) + "组",
|
|
|
+ name: "Group" + (this.groupJson2.group.length + 1),
|
|
|
id: this.guid()
|
|
|
});
|
|
|
}
|
|
@@ -584,10 +551,10 @@ export default {
|
|
|
this.$confirm(
|
|
|
// "您确定要删除该分组吗? 分组删除后将被清空并且无法恢复。",
|
|
|
"是否确定删除已有分组?删除后分组数据将被清空!",
|
|
|
- "提示",
|
|
|
+ "Notification",
|
|
|
{
|
|
|
- confirmButtonText: "确定",
|
|
|
- cancelButtonText: "取消",
|
|
|
+ confirmButtonText: "Save",
|
|
|
+ cancelButtonText: "Cancel",
|
|
|
type: "warning",
|
|
|
}
|
|
|
)
|
|
@@ -617,7 +584,7 @@ export default {
|
|
|
},
|
|
|
addGroup() {
|
|
|
this.groupJson2.group.push({
|
|
|
- name: "第" + (this.groupJson2.group.length + 1) + "组",
|
|
|
+ name: "Group" + (this.groupJson2.group.length + 1),
|
|
|
id: this.guid()
|
|
|
});
|
|
|
},
|
|
@@ -658,12 +625,12 @@ export default {
|
|
|
updateGroupJson(type) {
|
|
|
for (var i = 0; i < this.groupJson2.group.length; i++) {
|
|
|
if (!this.groupJson2.group[i].name) {
|
|
|
- this.$message.error("请将信息填写完整!");
|
|
|
+ this.$message.error("Please fill in all the blanks.");
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
|
if (!this.groupJson2.number) {
|
|
|
- this.$message.error("请将信息填写完整!");
|
|
|
+ this.$message.error("Please fill in all the blanks.");
|
|
|
return;
|
|
|
}
|
|
|
for (var i = 0; i < this.groupJson2.group.length; i++) {
|
|
@@ -678,7 +645,7 @@ export default {
|
|
|
let params = [
|
|
|
{
|
|
|
cid: this.cid,
|
|
|
- group: JSON.stringify(this.groupJson2),
|
|
|
+ group: JSON.stringify(this.groupJson2).replaceAll(/%/g, "%25"),
|
|
|
classid: this.classid,
|
|
|
},
|
|
|
];
|
|
@@ -946,37 +913,33 @@ export default {
|
|
|
},
|
|
|
mounted() {
|
|
|
if (this.classList.length) {
|
|
|
- if (this.type == 2) {
|
|
|
- this.classList = this.classList.filter(el => {
|
|
|
- return this.classId.indexOf(el.id) != -1
|
|
|
- })
|
|
|
- this.classid = this.classList[0].id
|
|
|
+ if (this.type == 2) {
|
|
|
+ this.classList = this.classList.filter(el => {
|
|
|
+ return this.classId.indexOf(el.id) != -1
|
|
|
+ })
|
|
|
+ this.classid = this.classList[0].id
|
|
|
+ } else {
|
|
|
+ this.classid = this.classList[0].id
|
|
|
+ }
|
|
|
} else {
|
|
|
- this.classid = this.classList[0].id
|
|
|
+ this.classid = '1'
|
|
|
}
|
|
|
- } else {
|
|
|
- this.classid = '1'
|
|
|
- }
|
|
|
- this.setClassid(this.classid)
|
|
|
- this.getCourseGroup();
|
|
|
- // if (this.dialogVisibleGroup) {
|
|
|
- // this.getCourseGroup();
|
|
|
- this.timer = setInterval(() => {
|
|
|
+ this.setClassid(this.classid)
|
|
|
this.getCourseGroup();
|
|
|
- }, 5000)
|
|
|
- // } else {
|
|
|
- // clearInterval(this.timer)
|
|
|
- // this.timer = null
|
|
|
- // }
|
|
|
+ // if (this.dialogVisibleGroup) {
|
|
|
+ // this.getCourseGroup();
|
|
|
+ this.timer = setInterval(() => {
|
|
|
+ this.getCourseGroup();
|
|
|
+ }, 5000)
|
|
|
+ // } else {
|
|
|
+ // clearInterval(this.timer)
|
|
|
+ // this.timer = null
|
|
|
+ // }
|
|
|
}
|
|
|
}
|
|
|
</script>
|
|
|
|
|
|
<style scoped>
|
|
|
-.batch_add_group {
|
|
|
- margin-top: 15px;
|
|
|
-}
|
|
|
-
|
|
|
.dialog_diy>>>.el-dialog {
|
|
|
margin-top: 10vh !important;
|
|
|
}
|
|
@@ -1352,13 +1315,12 @@ export default {
|
|
|
height: 30px;
|
|
|
line-height: 30px;
|
|
|
padding: 0 5px;
|
|
|
- /* overflow: hidden; */
|
|
|
+ overflow: hidden;
|
|
|
background: rgb(225, 237, 255);
|
|
|
margin: 10px calc((100% - (80px*5)) / 4) 0 0;
|
|
|
color: rgb(37 124 255);
|
|
|
border-radius: 5px;
|
|
|
box-sizing: border-box;
|
|
|
- position: relative;
|
|
|
}
|
|
|
|
|
|
.i_box_login2>div:nth-child(5n) {
|
|
@@ -1388,19 +1350,4 @@ export default {
|
|
|
.group_switch>span {
|
|
|
margin-right: 5px;
|
|
|
}
|
|
|
-
|
|
|
-.grouplBox{
|
|
|
- position: absolute;
|
|
|
- top: -5px;
|
|
|
- right: -5px;
|
|
|
- background: rgb(225, 237, 255);
|
|
|
- border: 1px solid #3281f7;
|
|
|
- border-radius: 50%;
|
|
|
- height: 15px;
|
|
|
- width: 15px;
|
|
|
- text-align: center;
|
|
|
- line-height: 15px;
|
|
|
- font-size: 12px;
|
|
|
- color: rgb(37 124 255);
|
|
|
-}
|
|
|
</style>
|