|
@@ -16,7 +16,7 @@
|
|
|
<!-- || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1) -->
|
|
<!-- || (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 style="color: rgb(171 171 171); margin: 0 10px 0 0" v-show="false">
|
|
|
- 提示:开启【开放选座】,能够自由加入和退出小组。
|
|
|
|
|
|
|
+ {{ lang.OpenSeatSelectionTip }}
|
|
|
</div>
|
|
</div>
|
|
|
<!-- 开放选座 -->
|
|
<!-- 开放选座 -->
|
|
|
<!-- <div type="primary" v-if="groupJson.islock == 1 && groupJson.group.length" class="returnBtn"
|
|
<!-- <div type="primary" v-if="groupJson.islock == 1 && groupJson.group.length" class="returnBtn"
|
|
@@ -28,26 +28,26 @@
|
|
|
解锁位置
|
|
解锁位置
|
|
|
</div> -->
|
|
</div> -->
|
|
|
<div class="group_switch" v-show="false">
|
|
<div class="group_switch" v-show="false">
|
|
|
- <span>开放选座</span>
|
|
|
|
|
|
|
+ <span>{{ lang.OpenSeatSelection }}</span>
|
|
|
<el-switch v-model="islock" active-text="" class="switchCss" @change="lockChair"></el-switch>
|
|
<el-switch v-model="islock" active-text="" class="switchCss" @change="lockChair"></el-switch>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="group_switch" v-show="false">
|
|
<div class="group_switch" v-show="false">
|
|
|
- <span>开启分组</span>
|
|
|
|
|
|
|
+ <span>{{ lang.Enablegrouping }}</span>
|
|
|
<el-switch v-model="isopen" class="switchCss" @change="openChair"></el-switch>
|
|
<el-switch v-model="isopen" class="switchCss" @change="openChair"></el-switch>
|
|
|
</div>
|
|
</div>
|
|
|
<div type="primary" @click="updateGroup" class="returnBtn" style="background-color: #225bc7">
|
|
<div type="primary" @click="updateGroup" class="returnBtn" style="background-color: #225bc7">
|
|
|
- 添加分组
|
|
|
|
|
|
|
+ {{ lang.Creategroups }}
|
|
|
</div>
|
|
</div>
|
|
|
<div type="primary" @click="deleteCourseGroup" class="returnBtn" style="background-color: #225bc7">
|
|
<div type="primary" @click="deleteCourseGroup" class="returnBtn" style="background-color: #225bc7">
|
|
|
- 删除分组
|
|
|
|
|
|
|
+ {{ lang.Deletegroups }}
|
|
|
</div>
|
|
</div>
|
|
|
</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 style="color: rgb(171 171 171); margin: 0 10px 0 0">
|
|
|
- 提示:开启【开放选座】,能够自由加入和退出小组。
|
|
|
|
|
|
|
+ {{ lang.OpenSeatSelectionTip }}
|
|
|
</div>
|
|
</div>
|
|
|
<div class="group_switch">
|
|
<div class="group_switch">
|
|
|
- <span>开放选座</span>
|
|
|
|
|
|
|
+ <span>{{ lang.OpenSeatSelection }}</span>
|
|
|
<el-switch v-model="islock" active-text="" class="switchCss" @change="lockChair"
|
|
<el-switch v-model="islock" active-text="" class="switchCss" @change="lockChair"
|
|
|
disabled></el-switch>
|
|
disabled></el-switch>
|
|
|
</div>
|
|
</div>
|
|
@@ -68,12 +68,12 @@
|
|
|
groupStudent[g.id][0] &&
|
|
groupStudent[g.id][0] &&
|
|
|
groupJson.islock == 2,
|
|
groupJson.islock == 2,
|
|
|
}"><span class="updateChairBtn"
|
|
}"><span class="updateChairBtn"
|
|
|
- @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][0])">修改</span></span><span>{{
|
|
|
|
|
|
|
+ @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][0])">{{ lang.Edit }}</span></span><span>{{
|
|
|
groupStudent[g.id] &&
|
|
groupStudent[g.id] &&
|
|
|
groupStudent[g.id][0]
|
|
groupStudent[g.id][0]
|
|
|
? groupStudent[g.id] &&
|
|
? groupStudent[g.id] &&
|
|
|
groupStudent[g.id][0].name
|
|
groupStudent[g.id][0].name
|
|
|
- : "空位置" }}</span>
|
|
|
|
|
|
|
+ : lang.emptyplaces }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div v-if="groupJson.number > 4">
|
|
<div v-if="groupJson.number > 4">
|
|
|
<span :class="{
|
|
<span :class="{
|
|
@@ -86,12 +86,12 @@
|
|
|
groupStudent[g.id][4] &&
|
|
groupStudent[g.id][4] &&
|
|
|
groupJson.islock == 2,
|
|
groupJson.islock == 2,
|
|
|
}"><span class="updateChairBtn"
|
|
}"><span class="updateChairBtn"
|
|
|
- @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][4])">修改</span></span><span>{{
|
|
|
|
|
|
|
+ @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][4])">{{ lang.Edit }}</span></span><span>{{
|
|
|
groupStudent[g.id] &&
|
|
groupStudent[g.id] &&
|
|
|
groupStudent[g.id][4]
|
|
groupStudent[g.id][4]
|
|
|
? groupStudent[g.id] &&
|
|
? groupStudent[g.id] &&
|
|
|
groupStudent[g.id][4].name
|
|
groupStudent[g.id][4].name
|
|
|
- : "空位置" }}</span>
|
|
|
|
|
|
|
+ : lang.emptyplaces }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div v-if="groupJson.number > 8">
|
|
<div v-if="groupJson.number > 8">
|
|
|
<span :class="{
|
|
<span :class="{
|
|
@@ -104,12 +104,12 @@
|
|
|
groupStudent[g.id][8] &&
|
|
groupStudent[g.id][8] &&
|
|
|
groupJson.islock == 2,
|
|
groupJson.islock == 2,
|
|
|
}"><span class="updateChairBtn"
|
|
}"><span class="updateChairBtn"
|
|
|
- @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][8])">修改</span></span><span>{{
|
|
|
|
|
|
|
+ @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][8])">{{ lang.Edit }}</span></span><span>{{
|
|
|
groupStudent[g.id] &&
|
|
groupStudent[g.id] &&
|
|
|
groupStudent[g.id][8]
|
|
groupStudent[g.id][8]
|
|
|
? groupStudent[g.id] &&
|
|
? groupStudent[g.id] &&
|
|
|
groupStudent[g.id][8].name
|
|
groupStudent[g.id][8].name
|
|
|
- : "空位置" }}</span>
|
|
|
|
|
|
|
+ : lang.emptyplaces }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="g_d_group_tableBox">
|
|
<div class="g_d_group_tableBox">
|
|
@@ -125,12 +125,12 @@
|
|
|
groupStudent[g.id][2] &&
|
|
groupStudent[g.id][2] &&
|
|
|
groupJson.islock == 2,
|
|
groupJson.islock == 2,
|
|
|
}"><span class="updateChairBtn"
|
|
}"><span class="updateChairBtn"
|
|
|
- @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][2])">修改</span></span><span>{{
|
|
|
|
|
|
|
+ @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][2])">{{ lang.Edit }}</span></span><span>{{
|
|
|
groupStudent[g.id] &&
|
|
groupStudent[g.id] &&
|
|
|
groupStudent[g.id][2]
|
|
groupStudent[g.id][2]
|
|
|
? groupStudent[g.id] &&
|
|
? groupStudent[g.id] &&
|
|
|
groupStudent[g.id][2].name
|
|
groupStudent[g.id][2].name
|
|
|
- : "空位置" }}</span>
|
|
|
|
|
|
|
+ : lang.emptyplaces }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div v-if="groupJson.number > 6">
|
|
<div v-if="groupJson.number > 6">
|
|
|
<span :class="{
|
|
<span :class="{
|
|
@@ -143,12 +143,12 @@
|
|
|
groupStudent[g.id][6] &&
|
|
groupStudent[g.id][6] &&
|
|
|
groupJson.islock == 2,
|
|
groupJson.islock == 2,
|
|
|
}"><span class="updateChairBtn"
|
|
}"><span class="updateChairBtn"
|
|
|
- @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][6])">修改</span></span><span>{{
|
|
|
|
|
|
|
+ @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][6])">{{ lang.Edit }}</span></span><span>{{
|
|
|
groupStudent[g.id] &&
|
|
groupStudent[g.id] &&
|
|
|
groupStudent[g.id][6]
|
|
groupStudent[g.id][6]
|
|
|
? groupStudent[g.id] &&
|
|
? groupStudent[g.id] &&
|
|
|
groupStudent[g.id][6].name
|
|
groupStudent[g.id][6].name
|
|
|
- : "空位置" }}</span>
|
|
|
|
|
|
|
+ : lang.emptyplaces }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="g_d_group_table">
|
|
<div class="g_d_group_table">
|
|
@@ -158,11 +158,11 @@
|
|
|
<div>
|
|
<div>
|
|
|
<!-- && groupJson.islock == 2 -->
|
|
<!-- && 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)">
|
|
|
- 移除组员
|
|
|
|
|
|
|
+ {{ lang.Removeteammembers }}
|
|
|
</div>
|
|
</div>
|
|
|
<div @click="selectGroup(g.id)"
|
|
<div @click="selectGroup(g.id)"
|
|
|
v-if="groupStudentUid && groupStudentUid[g.id].indexOf(userid) == -1 && courseDetail.userid !== userid">
|
|
v-if="groupStudentUid && groupStudentUid[g.id].indexOf(userid) == -1 && courseDetail.userid !== userid">
|
|
|
- 加入分组
|
|
|
|
|
|
|
+ {{ lang.JoinGroup }}
|
|
|
</div>
|
|
</div>
|
|
|
<div @click="
|
|
<div @click="
|
|
|
exitGroup(groupStudent[g.id] &&
|
|
exitGroup(groupStudent[g.id] &&
|
|
@@ -170,12 +170,12 @@
|
|
|
groupStudentUid[g.id].indexOf(userid)
|
|
groupStudentUid[g.id].indexOf(userid)
|
|
|
].id)
|
|
].id)
|
|
|
" v-else-if="groupStudentUid && groupStudentUid[g.id].indexOf(userid) != -1">
|
|
" v-else-if="groupStudentUid && groupStudentUid[g.id].indexOf(userid) != -1">
|
|
|
- 退出分组
|
|
|
|
|
|
|
+ {{ lang.Exitgroup }}
|
|
|
</div>
|
|
</div>
|
|
|
<div style="margin-top:10px"
|
|
<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)">
|
|
@click="addGroupStudent(g.id)">
|
|
|
- 添加组员
|
|
|
|
|
|
|
+ {{ lang.Addteammembers }}
|
|
|
<!-- || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1) -->
|
|
<!-- || (courseDetail.course_teacher && courseDetail.course_teacher.indexOf(userid) != -1) -->
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -192,12 +192,12 @@
|
|
|
groupStudent[g.id][3] &&
|
|
groupStudent[g.id][3] &&
|
|
|
groupJson.islock == 2,
|
|
groupJson.islock == 2,
|
|
|
}"><span class="updateChairBtn"
|
|
}"><span class="updateChairBtn"
|
|
|
- @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][3])">修改</span></span><span>{{
|
|
|
|
|
|
|
+ @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][3])">{{ lang.Edit }}</span></span><span>{{
|
|
|
groupStudent[g.id] &&
|
|
groupStudent[g.id] &&
|
|
|
groupStudent[g.id][3]
|
|
groupStudent[g.id][3]
|
|
|
? groupStudent[g.id] &&
|
|
? groupStudent[g.id] &&
|
|
|
groupStudent[g.id][3].name
|
|
groupStudent[g.id][3].name
|
|
|
- : "空位置" }}</span>
|
|
|
|
|
|
|
+ : lang.emptyplaces }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div v-if="groupJson.number > 7">
|
|
<div v-if="groupJson.number > 7">
|
|
|
<span :class="{
|
|
<span :class="{
|
|
@@ -210,12 +210,12 @@
|
|
|
groupStudent[g.id][7] &&
|
|
groupStudent[g.id][7] &&
|
|
|
groupJson.islock == 2,
|
|
groupJson.islock == 2,
|
|
|
}"><span class="updateChairBtn"
|
|
}"><span class="updateChairBtn"
|
|
|
- @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][7])">修改</span></span><span>{{
|
|
|
|
|
|
|
+ @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][7])">{{ lang.Edit }}</span></span><span>{{
|
|
|
groupStudent[g.id] &&
|
|
groupStudent[g.id] &&
|
|
|
groupStudent[g.id][7]
|
|
groupStudent[g.id][7]
|
|
|
? groupStudent[g.id] &&
|
|
? groupStudent[g.id] &&
|
|
|
groupStudent[g.id][7].name
|
|
groupStudent[g.id][7].name
|
|
|
- : "空位置" }}</span>
|
|
|
|
|
|
|
+ : lang.emptyplaces }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
@@ -231,12 +231,12 @@
|
|
|
groupStudent[g.id][1] &&
|
|
groupStudent[g.id][1] &&
|
|
|
groupJson.islock == 2,
|
|
groupJson.islock == 2,
|
|
|
}"><span class="updateChairBtn"
|
|
}"><span class="updateChairBtn"
|
|
|
- @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][1])">修改</span></span><span>{{
|
|
|
|
|
|
|
+ @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][1])">{{ lang.Edit }}</span></span><span>{{
|
|
|
groupStudent[g.id] &&
|
|
groupStudent[g.id] &&
|
|
|
groupStudent[g.id][1]
|
|
groupStudent[g.id][1]
|
|
|
? groupStudent[g.id] &&
|
|
? groupStudent[g.id] &&
|
|
|
groupStudent[g.id][1].name
|
|
groupStudent[g.id][1].name
|
|
|
- : "空位置" }}</span>
|
|
|
|
|
|
|
+ : lang.emptyplaces }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div v-if="groupJson.number > 5">
|
|
<div v-if="groupJson.number > 5">
|
|
|
<span :class="{
|
|
<span :class="{
|
|
@@ -249,12 +249,12 @@
|
|
|
groupStudent[g.id][5] &&
|
|
groupStudent[g.id][5] &&
|
|
|
groupJson.islock == 2,
|
|
groupJson.islock == 2,
|
|
|
}"><span class="updateChairBtn"
|
|
}"><span class="updateChairBtn"
|
|
|
- @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][5])">修改</span></span><span>{{
|
|
|
|
|
|
|
+ @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][5])">{{ lang.Edit }}</span></span><span>{{
|
|
|
groupStudent[g.id] &&
|
|
groupStudent[g.id] &&
|
|
|
groupStudent[g.id][5]
|
|
groupStudent[g.id][5]
|
|
|
? groupStudent[g.id] &&
|
|
? groupStudent[g.id] &&
|
|
|
groupStudent[g.id][5].name
|
|
groupStudent[g.id][5].name
|
|
|
- : "空位置" }}</span>
|
|
|
|
|
|
|
+ : lang.emptyplaces }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
<div v-if="groupJson.number > 9">
|
|
<div v-if="groupJson.number > 9">
|
|
|
<span :class="{
|
|
<span :class="{
|
|
@@ -267,64 +267,70 @@
|
|
|
groupStudent[g.id][9] &&
|
|
groupStudent[g.id][9] &&
|
|
|
groupJson.islock == 2,
|
|
groupJson.islock == 2,
|
|
|
}"><span class="updateChairBtn"
|
|
}"><span class="updateChairBtn"
|
|
|
- @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][9])">修改</span></span><span>{{
|
|
|
|
|
|
|
+ @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][9])">{{ lang.Edit }}</span></span><span>{{
|
|
|
groupStudent[g.id] &&
|
|
groupStudent[g.id] &&
|
|
|
groupStudent[g.id][9]
|
|
groupStudent[g.id][9]
|
|
|
? groupStudent[g.id] &&
|
|
? groupStudent[g.id] &&
|
|
|
groupStudent[g.id][9].name
|
|
groupStudent[g.id][9].name
|
|
|
- : "空位置" }}</span>
|
|
|
|
|
|
|
+ : lang.emptyplaces }}</span>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div v-else-if="!groupJson.group.length" style="text-align: center;">{{ courseDetail.userid == userid ?
|
|
<div v-else-if="!groupJson.group.length" style="text-align: center;">{{ courseDetail.userid == userid ?
|
|
|
- "暂无分组,请点击右上角设置分组" :
|
|
|
|
|
- "老师暂未添加分组" }}</div>
|
|
|
|
|
- <div v-else-if="!isopen" style="text-align: center;">{{ "已关闭分组" }}</div>
|
|
|
|
|
|
|
+ lang.Pleasesetupgroups :
|
|
|
|
|
+ lang.Teachernotaddedgroups }}</div>
|
|
|
|
|
+ <div v-else-if="!isopen" style="text-align: center;">{{ lang.Groupinghasbeenclosed }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <el-dialog title="分组设置" :visible.sync="dialogVisibleGroup2" :append-to-body="true" width="650px"
|
|
|
|
|
|
|
+ <el-dialog :title="lang.GroupSettings" :visible.sync="dialogVisibleGroup2" :append-to-body="true" width="650px"
|
|
|
:before-close="handleClose" class="dialog_diy">
|
|
:before-close="handleClose" class="dialog_diy">
|
|
|
<div class="groupBox">
|
|
<div class="groupBox">
|
|
|
<div v-if="groupJson2.group" class="groupContent">
|
|
<div v-if="groupJson2.group" class="groupContent">
|
|
|
- <div class="groupTitle">请设置小组数量及名称</div>
|
|
|
|
|
|
|
+ <div class="groupTitle">{{ lang.GroupNames }}</div>
|
|
|
<div v-for="(item, index) in groupJson2.group" :key="index" class="groupName">
|
|
<div v-for="(item, index) in groupJson2.group" :key="index" class="groupName">
|
|
|
- <span class="groupn">第{{ index + 1 }}组名称:</span>
|
|
|
|
|
- <el-input v-model="item.name" placeholder="请输入名称..." style="width: 250px"></el-input>
|
|
|
|
|
|
|
+ <span class="groupn">
|
|
|
|
|
+ <!-- 第{{ index + 1 }}组名称: -->
|
|
|
|
|
+ <span v-if="index == 0">{{ (lang.GroupName1).replace(/\*/g, index + 1) }}:</span>
|
|
|
|
|
+ <span v-if="index == 1">{{ (lang.GroupName2).replace(/\*/g, index + 1) }}:</span>
|
|
|
|
|
+ <span v-if="index == 2">{{ (lang.GroupName3).replace(/\*/g, index + 1) }}:</span>
|
|
|
|
|
+ <span v-if="index >= 3">{{ (lang.GroupName4).replace(/\*/g, index + 1) }}:</span>
|
|
|
|
|
+ </span>
|
|
|
|
|
+ <el-input v-model="item.name" :placeholder="lang.Pleaseenteraname" style="width: 250px"></el-input>
|
|
|
<div class="groupBtn">
|
|
<div class="groupBtn">
|
|
|
<el-button type="primary" size="small" @click="addGroup(index)"
|
|
<el-button type="primary" size="small" @click="addGroup(index)"
|
|
|
v-if="(groupJson2.group.length - 1) == index">
|
|
v-if="(groupJson2.group.length - 1) == index">
|
|
|
- 添加</el-button>
|
|
|
|
|
|
|
+ {{ lang.AddGroup }}</el-button>
|
|
|
<el-button type="primary" size="small" @click="deleteGroup(index)"
|
|
<el-button type="primary" size="small" @click="deleteGroup(index)"
|
|
|
- v-if="groupJson2.group && groupJson2.group.length > 1">删除</el-button>
|
|
|
|
|
|
|
+ v-if="groupJson2.group && groupJson2.group.length > 1">{{ lang.Delete }}</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="batch_add_group">
|
|
<div class="batch_add_group">
|
|
|
- <span>批量添加小组:</span>
|
|
|
|
|
- <el-input-number v-model="addGroupNum" :min="0" label="批量添加小组"></el-input-number>
|
|
|
|
|
|
|
+ <span>{{ lang.Addgroupsinbatch }}:</span>
|
|
|
|
|
+ <el-input-number v-model="addGroupNum" :min="0" :label="lang.Addgroupsinbatch"></el-input-number>
|
|
|
<el-button style="margin-left:5px" type="primary" size="small" @click="handleAddGroupNumChange()">
|
|
<el-button style="margin-left:5px" type="primary" size="small" @click="handleAddGroupNumChange()">
|
|
|
- 批量添加</el-button>
|
|
|
|
|
|
|
+ {{ lang.BatchAdd }}</el-button>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<div class="groupContent">
|
|
<div class="groupContent">
|
|
|
- <div class="groupTitle">请设置每组人数</div>
|
|
|
|
|
- <el-input v-model="groupJson2.number" style="width:150px" placeholder="请输入2-10的数字"
|
|
|
|
|
|
|
+ <div class="groupTitle">{{ lang.Groupsize }}</div>
|
|
|
|
|
+ <el-input v-model="groupJson2.number" style="width:250px" :placeholder="lang.Inputinteger"
|
|
|
@change="numberPan"></el-input>
|
|
@change="numberPan"></el-input>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
<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; addGroupNum = 0;">{{ lang.Cancel }}</el-button>
|
|
|
|
|
+ <el-button type="primary" @click="updateGroupJson(2)">{{ lang.Save }}</el-button>
|
|
|
</span>
|
|
</span>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
- <el-dialog title="移除组员" :visible.sync="dialogVisibleDeleteGroup" :append-to-body="true" width="350px"
|
|
|
|
|
|
|
+ <el-dialog :title="lang.Removeteammembers" :visible.sync="dialogVisibleDeleteGroup" :append-to-body="true" width="350px"
|
|
|
:before-close="handleClose" class="dialog_diy">
|
|
:before-close="handleClose" class="dialog_diy">
|
|
|
<div>
|
|
<div>
|
|
|
<h2>
|
|
<h2>
|
|
|
{{ this.deleteGroupArray.name }}
|
|
{{ this.deleteGroupArray.name }}
|
|
|
</h2>
|
|
</h2>
|
|
|
<div style="color: rgb(171 171 171); margin-top: 10px">
|
|
<div style="color: rgb(171 171 171); margin-top: 10px">
|
|
|
- 请选择要删除的组员
|
|
|
|
|
|
|
+ {{ lang.selectteamdelete }}
|
|
|
</div>
|
|
</div>
|
|
|
<el-checkbox-group v-model="checkDeleteGroup">
|
|
<el-checkbox-group v-model="checkDeleteGroup">
|
|
|
<el-checkbox style="display: flex; margin-top: 20px" v-for="(item, index) in deleteGroupUser"
|
|
<el-checkbox style="display: flex; margin-top: 20px" v-for="(item, index) in deleteGroupUser"
|
|
@@ -332,18 +338,18 @@
|
|
|
</el-checkbox-group>
|
|
</el-checkbox-group>
|
|
|
</div>
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
<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">{{ lang.Cancel}}</el-button>
|
|
|
|
|
+ <el-button type="primary" @click="deleteChair">{{ lang.Confirm}}</el-button>
|
|
|
</span>
|
|
</span>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
- <el-dialog title="修改分组" :visible.sync="dialogVisibleUpdateGroup" :append-to-body="true" width="350px"
|
|
|
|
|
|
|
+ <el-dialog :title="lang.Modifygrouping" :visible.sync="dialogVisibleUpdateGroup" :append-to-body="true" width="350px"
|
|
|
:before-close="handleClose" class="dialog_diy">
|
|
:before-close="handleClose" class="dialog_diy">
|
|
|
<div>
|
|
<div>
|
|
|
<h2>
|
|
<h2>
|
|
|
{{ this.updateGroupUser.name }}
|
|
{{ this.updateGroupUser.name }}
|
|
|
</h2>
|
|
</h2>
|
|
|
<div style="color: rgb(171 171 171); margin-top: 10px">
|
|
<div style="color: rgb(171 171 171); margin-top: 10px">
|
|
|
- 请选择要进入的分组
|
|
|
|
|
|
|
+ {{ lang.selectgroupenter }}
|
|
|
</div>
|
|
</div>
|
|
|
<el-radio-group v-model="checkChair">
|
|
<el-radio-group v-model="checkChair">
|
|
|
<el-radio style="display: block; margin-top: 20px" v-for="(item, index) in updateGroupArray"
|
|
<el-radio style="display: block; margin-top: 20px" v-for="(item, index) in updateGroupArray"
|
|
@@ -351,23 +357,23 @@
|
|
|
</el-radio-group>
|
|
</el-radio-group>
|
|
|
</div>
|
|
</div>
|
|
|
<span slot="footer" class="dialog-footer">
|
|
<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">{{ lang.Cancel}}</el-button>
|
|
|
|
|
+ <el-button type="primary" @click="updateChair">{{ lang.Confirm}}</el-button>
|
|
|
</span>
|
|
</span>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
- <el-dialog title="添加组员" :visible.sync="dialogVisibleMember" :append-to-body="true" width="540px" height="80%"
|
|
|
|
|
|
|
+ <el-dialog :title="lang.Addteammembers" :visible.sync="dialogVisibleMember" :append-to-body="true" width="540px" height="80%"
|
|
|
:before-close="handleClose" class="addNewPP" v-loading="loading">
|
|
:before-close="handleClose" class="addNewPP" v-loading="loading">
|
|
|
<div class="people">
|
|
<div class="people">
|
|
|
<div class="people_top">
|
|
<div class="people_top">
|
|
|
<div class="people_top_right">
|
|
<div class="people_top_right">
|
|
|
<div class="people_search">
|
|
<div class="people_search">
|
|
|
- <el-input placeholder="搜索学生的姓名" v-model="searchTN" @keyup.enter.native="getStudent"></el-input>
|
|
|
|
|
|
|
+ <el-input :placeholder="lang.Searchstudentname" v-model="searchTN" @keyup.enter.native="getStudent"></el-input>
|
|
|
<div class="search_img" @click="getStudent">
|
|
<div class="search_img" @click="getStudent">
|
|
|
<img src="../../../../assets/icon/search.png" alt />
|
|
<img src="../../../../assets/icon/search.png" alt />
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div class="people_nav">选择成员</div>
|
|
|
|
|
|
|
+ <div class="people_nav">{{ lang.Choosemembers }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
<!-- <div class="t_j_box" style="
|
|
<!-- <div class="t_j_box" style="
|
|
|
padding: 20px 0 0 25px;
|
|
padding: 20px 0 0 25px;
|
|
@@ -392,13 +398,13 @@
|
|
|
<div class="i_box_login2" v-if="classJuri.length">
|
|
<div class="i_box_login2" v-if="classJuri.length">
|
|
|
<div :class="{ active: checkboxList3.indexOf(item.userid) != -1 }" v-for="item in classJuri"
|
|
<div :class="{ active: checkboxList3.indexOf(item.userid) != -1 }" v-for="item in classJuri"
|
|
|
:key="item.userid" :label="item.userid" @click="addGroupUser(item.userid)">
|
|
: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('、') : ''}`">
|
|
|
|
|
- <span>{{ item.name ? item.name : "暂无姓名" }}</span>
|
|
|
|
|
|
|
+ <el-tooltip placement="top" :content="`${item.name ? item.name : lang.Noname}${item.group.length > 0 ? this.lang.exist+item.group.join('、') : ''}`">
|
|
|
|
|
+ <span>{{ item.name ? item.name : lang.Noname }}</span>
|
|
|
</el-tooltip>
|
|
</el-tooltip>
|
|
|
<div class="grouplBox" v-if="item.group.length">{{ item.group.length }}</div>
|
|
<div class="grouplBox" v-if="item.group.length">{{ item.group.length }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
</div>
|
|
</div>
|
|
|
- <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
|
|
|
|
|
|
|
+ <div style="text-align: center; margin-top: 10px" v-else>{{ lang.Nodata }}</div>
|
|
|
</div>
|
|
</div>
|
|
|
<!-- <div style="margin-top: 10px;">
|
|
<!-- <div style="margin-top: 10px;">
|
|
|
<el-pagination background layout="prev, pager, next" :page-size="pageSize" :total="total"
|
|
<el-pagination background layout="prev, pager, next" :page-size="pageSize" :total="total"
|
|
@@ -406,8 +412,8 @@
|
|
|
@current-change="handleCurrentChange"></el-pagination>
|
|
@current-change="handleCurrentChange"></el-pagination>
|
|
|
</div> -->
|
|
</div> -->
|
|
|
<span slot="footer" class="dialog-footer">
|
|
<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">{{ lang.Cancel}}</el-button>
|
|
|
|
|
+ <el-button type="primary" @click="joinGroup2">{{ lang.Confirm}}</el-button>
|
|
|
</span>
|
|
</span>
|
|
|
</el-dialog>
|
|
</el-dialog>
|
|
|
</div>
|
|
</div>
|
|
@@ -457,7 +463,7 @@ export default {
|
|
|
handleAddGroupNumChange() {
|
|
handleAddGroupNumChange() {
|
|
|
for (let i = 0; i < this.addGroupNum; i++) {
|
|
for (let i = 0; i < this.addGroupNum; i++) {
|
|
|
this.groupJson2.group.push({
|
|
this.groupJson2.group.push({
|
|
|
- name: "第" + (this.groupJson2.group.length + 1) + "组",
|
|
|
|
|
|
|
+ name: (this.lang.Group).replace(/\*/g, this.groupJson2.group.length + 1),
|
|
|
id: this.guid()
|
|
id: this.guid()
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
@@ -574,7 +580,7 @@ export default {
|
|
|
this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
|
|
this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
|
|
|
if (!this.groupJson2.group.length) {
|
|
if (!this.groupJson2.group.length) {
|
|
|
this.groupJson2.group.push({
|
|
this.groupJson2.group.push({
|
|
|
- name: "第" + (this.groupJson2.group.length + 1) + "组",
|
|
|
|
|
|
|
+ name: (this.lang.Group).replace(/\*/g, this.groupJson2.group.length + 1),
|
|
|
id: this.guid()
|
|
id: this.guid()
|
|
|
});
|
|
});
|
|
|
}
|
|
}
|
|
@@ -583,11 +589,11 @@ export default {
|
|
|
deleteCourseGroup() {
|
|
deleteCourseGroup() {
|
|
|
this.$confirm(
|
|
this.$confirm(
|
|
|
// "您确定要删除该分组吗? 分组删除后将被清空并且无法恢复。",
|
|
// "您确定要删除该分组吗? 分组删除后将被清空并且无法恢复。",
|
|
|
- "是否确定删除已有分组?删除后分组数据将被清空!",
|
|
|
|
|
- "提示",
|
|
|
|
|
|
|
+ this.lang.Areyousuredeletegroup,
|
|
|
|
|
+ this.lang.tip,
|
|
|
{
|
|
{
|
|
|
- confirmButtonText: "确定",
|
|
|
|
|
- cancelButtonText: "取消",
|
|
|
|
|
|
|
+ confirmButtonText: this.lang.Confirm,
|
|
|
|
|
+ cancelButtonText: this.lang.Cancel,
|
|
|
type: "warning",
|
|
type: "warning",
|
|
|
}
|
|
}
|
|
|
)
|
|
)
|
|
@@ -605,7 +611,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
this.islock = false
|
|
this.islock = false
|
|
|
this.isopen = true
|
|
this.isopen = true
|
|
|
- this.$message.success("操作成功");
|
|
|
|
|
|
|
+ this.$message.success(this.OperateSuccessful);
|
|
|
this.getCourseGroup();
|
|
this.getCourseGroup();
|
|
|
this.$forceUpdate()
|
|
this.$forceUpdate()
|
|
|
})
|
|
})
|
|
@@ -617,7 +623,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
addGroup() {
|
|
addGroup() {
|
|
|
this.groupJson2.group.push({
|
|
this.groupJson2.group.push({
|
|
|
- name: "第" + (this.groupJson2.group.length + 1) + "组",
|
|
|
|
|
|
|
+ name: (this.lang.Group).replace(/\*/g, this.groupJson2.group.length + 1),
|
|
|
id: this.guid()
|
|
id: this.guid()
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
@@ -627,7 +633,7 @@ export default {
|
|
|
lockChair() {
|
|
lockChair() {
|
|
|
this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
|
|
this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
|
|
|
if (this.groupJson2.isopen == 2) {
|
|
if (this.groupJson2.isopen == 2) {
|
|
|
- this.$message.error("请开启分组后才能开放选座")
|
|
|
|
|
|
|
+ this.$message.error(this.lang.enablegroupingbefor)
|
|
|
this.islock = false
|
|
this.islock = false
|
|
|
return
|
|
return
|
|
|
} else {
|
|
} else {
|
|
@@ -637,7 +643,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
numberPan() {
|
|
numberPan() {
|
|
|
if (/[^\d]/.test(this.groupJson2.number) || this.groupJson2.number < 2 || this.groupJson2.number > 10) {
|
|
if (/[^\d]/.test(this.groupJson2.number) || this.groupJson2.number < 2 || this.groupJson2.number > 10) {
|
|
|
- this.$message.error('请输入2-10的数字')
|
|
|
|
|
|
|
+ this.$message.error(this.lang.Inputinteger)
|
|
|
this.groupJson2.number = ''
|
|
this.groupJson2.number = ''
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
@@ -658,12 +664,12 @@ export default {
|
|
|
updateGroupJson(type) {
|
|
updateGroupJson(type) {
|
|
|
for (var i = 0; i < this.groupJson2.group.length; i++) {
|
|
for (var i = 0; i < this.groupJson2.group.length; i++) {
|
|
|
if (!this.groupJson2.group[i].name) {
|
|
if (!this.groupJson2.group[i].name) {
|
|
|
- this.$message.error("请将信息填写完整!");
|
|
|
|
|
|
|
+ this.$message.error(this.lang.fillincompletely);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
if (!this.groupJson2.number) {
|
|
if (!this.groupJson2.number) {
|
|
|
- this.$message.error("请将信息填写完整!");
|
|
|
|
|
|
|
+ this.$message.error(this.lang.fillincompletely);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
for (var i = 0; i < this.groupJson2.group.length; i++) {
|
|
for (var i = 0; i < this.groupJson2.group.length; i++) {
|
|
@@ -671,7 +677,7 @@ export default {
|
|
|
this.groupStudentUid[this.groupJson2.group[i].id] && this.groupStudentUid[this.groupJson2.group[i].id].length >
|
|
this.groupStudentUid[this.groupJson2.group[i].id] && this.groupStudentUid[this.groupJson2.group[i].id].length >
|
|
|
this.groupJson2.number
|
|
this.groupJson2.number
|
|
|
) {
|
|
) {
|
|
|
- this.$message.error("已经有小组比你设置的人数多,请重新设置");
|
|
|
|
|
|
|
+ this.$message.error(this.lang.pleaseresetgroup);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
@@ -687,12 +693,12 @@ export default {
|
|
|
.then((res) => {
|
|
.then((res) => {
|
|
|
if (this.groupJson2.isopen == 1) {
|
|
if (this.groupJson2.isopen == 1) {
|
|
|
if (type == 2) {
|
|
if (type == 2) {
|
|
|
- this.$message.success("设置成功");
|
|
|
|
|
|
|
+ this.$message.success(this.lang.Settingsuccessful);
|
|
|
} else {
|
|
} else {
|
|
|
- this.$message.success("开启分组成功");
|
|
|
|
|
|
|
+ this.$message.success(this.lang.Successfullystartedgrouping);
|
|
|
}
|
|
}
|
|
|
} else if (this.groupJson2.isopen == 2) {
|
|
} else if (this.groupJson2.isopen == 2) {
|
|
|
- this.$message.success("关闭分组成功");
|
|
|
|
|
|
|
+ this.$message.success(this.lang.Successfullyclosedgrouping);
|
|
|
}
|
|
}
|
|
|
// 开启分组成功/关闭分组成功
|
|
// 开启分组成功/关闭分组成功
|
|
|
this.dialogVisibleGroup2 = false;
|
|
this.dialogVisibleGroup2 = false;
|
|
@@ -701,7 +707,7 @@ export default {
|
|
|
this.$forceUpdate();
|
|
this.$forceUpdate();
|
|
|
})
|
|
})
|
|
|
.catch((err) => {
|
|
.catch((err) => {
|
|
|
- this.$message.error("网络不佳");
|
|
|
|
|
|
|
+ this.$message.error(this.lang.Poorinternetconnection);
|
|
|
console.error(err);
|
|
console.error(err);
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
@@ -749,7 +755,7 @@ export default {
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
.catch((err) => {
|
|
.catch((err) => {
|
|
|
- this.$message.error("网络不佳");
|
|
|
|
|
|
|
+ this.$message.error(this.lang.Poorinternetconnection);
|
|
|
console.error(err);
|
|
console.error(err);
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
@@ -768,7 +774,7 @@ export default {
|
|
|
this.groupStudent[this.checkChair].length ==
|
|
this.groupStudent[this.checkChair].length ==
|
|
|
this.groupJson.number
|
|
this.groupJson.number
|
|
|
) {
|
|
) {
|
|
|
- this.$message.error("位置已满,无法加入");
|
|
|
|
|
|
|
+ this.$message.error(this.lang.Locationisfull);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
let params = [
|
|
let params = [
|
|
@@ -781,7 +787,7 @@ export default {
|
|
|
this.ajax
|
|
this.ajax
|
|
|
.post(this.$store.state.api + "joinCourseGroup", params)
|
|
.post(this.$store.state.api + "joinCourseGroup", params)
|
|
|
.then((res) => {
|
|
.then((res) => {
|
|
|
- this.$message.success("修改成功");
|
|
|
|
|
|
|
+ this.$message.success(this.lang.Editsuccessful);
|
|
|
this.updateGroupUser = {};
|
|
this.updateGroupUser = {};
|
|
|
this.checkChair = "";
|
|
this.checkChair = "";
|
|
|
this.updateGroupArray = {};
|
|
this.updateGroupArray = {};
|
|
@@ -789,7 +795,7 @@ export default {
|
|
|
this.getCourseGroup();
|
|
this.getCourseGroup();
|
|
|
})
|
|
})
|
|
|
.catch((err) => {
|
|
.catch((err) => {
|
|
|
- this.$message.error("网络不佳");
|
|
|
|
|
|
|
+ this.$message.error(this.lang.Poorinternetconnection);
|
|
|
console.error(err);
|
|
console.error(err);
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
@@ -817,7 +823,7 @@ export default {
|
|
|
];
|
|
];
|
|
|
var a = await this.deleteChairA(params);
|
|
var a = await this.deleteChairA(params);
|
|
|
if (i == this.checkDeleteGroup.length - 1) {
|
|
if (i == this.checkDeleteGroup.length - 1) {
|
|
|
- this.$message.success("退出成功");
|
|
|
|
|
|
|
+ this.$message.success(this.lang.Exitsuccessful);
|
|
|
this.dialogVisibleDeleteGroup = false;
|
|
this.dialogVisibleDeleteGroup = false;
|
|
|
this.deleteGroupUser = [];
|
|
this.deleteGroupUser = [];
|
|
|
this.deleteGroupArray = {};
|
|
this.deleteGroupArray = {};
|
|
@@ -835,7 +841,7 @@ export default {
|
|
|
resolve(1);
|
|
resolve(1);
|
|
|
})
|
|
})
|
|
|
.catch((err) => {
|
|
.catch((err) => {
|
|
|
- this.$message.error("网络不佳");
|
|
|
|
|
|
|
+ this.$message.error(this.lang.Poorinternetconnection);
|
|
|
console.error(err);
|
|
console.error(err);
|
|
|
});
|
|
});
|
|
|
});
|
|
});
|
|
@@ -843,11 +849,11 @@ export default {
|
|
|
selectGroup(gid) {
|
|
selectGroup(gid) {
|
|
|
this.$confirm(
|
|
this.$confirm(
|
|
|
// "您确定要删除该分组吗? 分组删除后将被清空并且无法恢复。",
|
|
// "您确定要删除该分组吗? 分组删除后将被清空并且无法恢复。",
|
|
|
- "确认加入分组?确认后将直接打开协同构建",
|
|
|
|
|
- "提示",
|
|
|
|
|
|
|
+ this.lang.confirmjointhegroup,
|
|
|
|
|
+ this.lang.tip,
|
|
|
{
|
|
{
|
|
|
- confirmButtonText: "确定",
|
|
|
|
|
- cancelButtonText: "取消",
|
|
|
|
|
|
|
+ confirmButtonText: this.lang.Confirm,
|
|
|
|
|
+ cancelButtonText: this.lang.Cancel,
|
|
|
type: "warning",
|
|
type: "warning",
|
|
|
}
|
|
}
|
|
|
).then(() => {
|
|
).then(() => {
|
|
@@ -856,7 +862,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
joinGroup(gid) {
|
|
joinGroup(gid) {
|
|
|
if (this.groupJson.islock == 2) {
|
|
if (this.groupJson.islock == 2) {
|
|
|
- this.$message.error("位置已被锁定,无法加入");
|
|
|
|
|
|
|
+ this.$message.error(this.lang.Locationlocked);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
if (
|
|
if (
|
|
@@ -864,7 +870,7 @@ export default {
|
|
|
this.groupJson.number ||
|
|
this.groupJson.number ||
|
|
|
this.groupStudent[gid].length == this.groupJson.number
|
|
this.groupStudent[gid].length == this.groupJson.number
|
|
|
) {
|
|
) {
|
|
|
- this.$message.error("位置已满,无法加入");
|
|
|
|
|
|
|
+ this.$message.error(this.lang.Locationisfull);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
let params = [
|
|
let params = [
|
|
@@ -877,13 +883,13 @@ export default {
|
|
|
this.ajax
|
|
this.ajax
|
|
|
.post(this.$store.state.api + "joinCourseGroup", params)
|
|
.post(this.$store.state.api + "joinCourseGroup", params)
|
|
|
.then((res) => {
|
|
.then((res) => {
|
|
|
- this.$message.success("加入成功");
|
|
|
|
|
|
|
+ this.$message.success(this.lang.Joinsuccessfully);
|
|
|
this.$emit('open2')
|
|
this.$emit('open2')
|
|
|
this.$emit('getGroup')
|
|
this.$emit('getGroup')
|
|
|
this.getCourseGroup();
|
|
this.getCourseGroup();
|
|
|
})
|
|
})
|
|
|
.catch((err) => {
|
|
.catch((err) => {
|
|
|
- this.$message.error("网络不佳");
|
|
|
|
|
|
|
+ this.$message.error(this.lang.Poorinternetconnection);
|
|
|
console.error(err);
|
|
console.error(err);
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|
|
@@ -899,7 +905,7 @@ export default {
|
|
|
this.groupStudent[this.gid].length + this.checkboxList3.length >
|
|
this.groupStudent[this.gid].length + this.checkboxList3.length >
|
|
|
this.groupJson.number
|
|
this.groupJson.number
|
|
|
) {
|
|
) {
|
|
|
- this.$message.error("位置已满,无法加入");
|
|
|
|
|
|
|
+ this.$message.error(this.lang.Locationisfull);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
for (let i = 0; i < this.checkboxList3.length; i++) {
|
|
for (let i = 0; i < this.checkboxList3.length; i++) {
|
|
@@ -912,7 +918,7 @@ export default {
|
|
|
];
|
|
];
|
|
|
const res = await this.ajax.post(this.$store.state.api + "joinCourseGroup", params)
|
|
const res = await this.ajax.post(this.$store.state.api + "joinCourseGroup", params)
|
|
|
if (i == this.checkboxList3.length - 1) {
|
|
if (i == this.checkboxList3.length - 1) {
|
|
|
- this.$message.success("加入成功");
|
|
|
|
|
|
|
+ this.$message.success(this.lang.Joinsuccessfully);
|
|
|
this.dialogVisibleMember = false
|
|
this.dialogVisibleMember = false
|
|
|
this.getCourseGroup();
|
|
this.getCourseGroup();
|
|
|
}
|
|
}
|
|
@@ -920,7 +926,7 @@ export default {
|
|
|
},
|
|
},
|
|
|
exitGroup(id) {
|
|
exitGroup(id) {
|
|
|
if (this.groupJson.islock == 2) {
|
|
if (this.groupJson.islock == 2) {
|
|
|
- this.$message.error("位置已被锁定,无法退出");
|
|
|
|
|
|
|
+ this.$message.error(this.lang.unabletoexit);
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
let params = [
|
|
let params = [
|
|
@@ -931,12 +937,12 @@ export default {
|
|
|
this.ajax
|
|
this.ajax
|
|
|
.post(this.$store.state.api + "exitCourseGroup", params)
|
|
.post(this.$store.state.api + "exitCourseGroup", params)
|
|
|
.then((res) => {
|
|
.then((res) => {
|
|
|
- this.$message.success("退出成功");
|
|
|
|
|
|
|
+ this.$message.success(this.lang.Exitsuccessful);
|
|
|
this.$emit('getGroup')
|
|
this.$emit('getGroup')
|
|
|
this.getCourseGroup();
|
|
this.getCourseGroup();
|
|
|
})
|
|
})
|
|
|
.catch((err) => {
|
|
.catch((err) => {
|
|
|
- this.$message.error("网络不佳"); s
|
|
|
|
|
|
|
+ this.$message.error(this.lang.Poorinternetconnection);
|
|
|
console.error(err);
|
|
console.error(err);
|
|
|
});
|
|
});
|
|
|
},
|
|
},
|