|
@@ -46,10 +46,10 @@
|
|
|
<div class="btn_right"
|
|
|
v-else>
|
|
|
<div style="color: rgb(171 171 171); margin: 0 10px 0 0">
|
|
|
- 提示:开启【开放选座】,能够自由加入和退出小组。
|
|
|
+ Tip: Enabling the "Open Seat Selection" allows for free entry and exit from the group.
|
|
|
</div>
|
|
|
<div class="group_switch">
|
|
|
- <span>开放选座</span>
|
|
|
+ <span>Open Seat Selection</span>
|
|
|
<el-switch v-model="islock" active-text="" class="switchCss" @change="lockChair" disabled></el-switch>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -69,7 +69,7 @@
|
|
|
groupStudent[g.id][0] &&
|
|
|
groupJson.islock == 2,
|
|
|
}"><span class="updateChairBtn"
|
|
|
- @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][0])">修改</span></span><span>{{
|
|
|
+ @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][0])">update</span></span><span>{{
|
|
|
groupStudent[g.id] &&
|
|
|
groupStudent[g.id][0]
|
|
|
? groupStudent[g.id] &&
|
|
@@ -87,7 +87,7 @@
|
|
|
groupStudent[g.id][4] &&
|
|
|
groupJson.islock == 2,
|
|
|
}"><span class="updateChairBtn"
|
|
|
- @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][4])">修改</span></span><span>{{
|
|
|
+ @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][4])">update</span></span><span>{{
|
|
|
groupStudent[g.id] &&
|
|
|
groupStudent[g.id][4]
|
|
|
? groupStudent[g.id] &&
|
|
@@ -105,7 +105,7 @@
|
|
|
groupStudent[g.id][8] &&
|
|
|
groupJson.islock == 2,
|
|
|
}"><span class="updateChairBtn"
|
|
|
- @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][8])">修改</span></span><span>{{
|
|
|
+ @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][8])">update</span></span><span>{{
|
|
|
groupStudent[g.id] &&
|
|
|
groupStudent[g.id][8]
|
|
|
? groupStudent[g.id] &&
|
|
@@ -126,7 +126,7 @@
|
|
|
groupStudent[g.id][2] &&
|
|
|
groupJson.islock == 2,
|
|
|
}"><span class="updateChairBtn"
|
|
|
- @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][2])">修改</span></span><span>{{
|
|
|
+ @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][2])">update</span></span><span>{{
|
|
|
groupStudent[g.id] &&
|
|
|
groupStudent[g.id][2]
|
|
|
? groupStudent[g.id] &&
|
|
@@ -144,7 +144,7 @@
|
|
|
groupStudent[g.id][6] &&
|
|
|
groupJson.islock == 2,
|
|
|
}"><span class="updateChairBtn"
|
|
|
- @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][6])">修改</span></span><span>{{
|
|
|
+ @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][6])">update</span></span><span>{{
|
|
|
groupStudent[g.id] &&
|
|
|
groupStudent[g.id][6]
|
|
|
? groupStudent[g.id] &&
|
|
@@ -173,7 +173,7 @@
|
|
|
].id)
|
|
|
"
|
|
|
v-else-if="groupStudentUid && groupStudentUid[g.id].indexOf(userid) != -1">
|
|
|
- 退出分组
|
|
|
+ Leave Group
|
|
|
</div>
|
|
|
<div style="margin-top:10px"
|
|
|
v-if="(courseDetail.userid == userid ) && groupStudent[g.id].length < groupJson.number"
|
|
@@ -195,7 +195,7 @@
|
|
|
groupStudent[g.id][3] &&
|
|
|
groupJson.islock == 2,
|
|
|
}"><span class="updateChairBtn"
|
|
|
- @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][3])">修改</span></span><span>{{
|
|
|
+ @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][3])">update</span></span><span>{{
|
|
|
groupStudent[g.id] &&
|
|
|
groupStudent[g.id][3]
|
|
|
? groupStudent[g.id] &&
|
|
@@ -213,7 +213,7 @@
|
|
|
groupStudent[g.id][7] &&
|
|
|
groupJson.islock == 2,
|
|
|
}"><span class="updateChairBtn"
|
|
|
- @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][7])">修改</span></span><span>{{
|
|
|
+ @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][7])">update</span></span><span>{{
|
|
|
groupStudent[g.id] &&
|
|
|
groupStudent[g.id][7]
|
|
|
? groupStudent[g.id] &&
|
|
@@ -234,7 +234,7 @@
|
|
|
groupStudent[g.id][1] &&
|
|
|
groupJson.islock == 2,
|
|
|
}"><span class="updateChairBtn"
|
|
|
- @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][1])">修改</span></span><span>{{
|
|
|
+ @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][1])">update</span></span><span>{{
|
|
|
groupStudent[g.id] &&
|
|
|
groupStudent[g.id][1]
|
|
|
? groupStudent[g.id] &&
|
|
@@ -252,7 +252,7 @@
|
|
|
groupStudent[g.id][5] &&
|
|
|
groupJson.islock == 2,
|
|
|
}"><span class="updateChairBtn"
|
|
|
- @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][5])">修改</span></span><span>{{
|
|
|
+ @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][5])">update</span></span><span>{{
|
|
|
groupStudent[g.id] &&
|
|
|
groupStudent[g.id][5]
|
|
|
? groupStudent[g.id] &&
|
|
@@ -270,7 +270,7 @@
|
|
|
groupStudent[g.id][9] &&
|
|
|
groupJson.islock == 2,
|
|
|
}"><span class="updateChairBtn"
|
|
|
- @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][9])">修改</span></span><span>{{
|
|
|
+ @click="updateGroupChair(groupStudent[g.id] && groupStudent[g.id][9])">update</span></span><span>{{
|
|
|
groupStudent[g.id] &&
|
|
|
groupStudent[g.id][9]
|
|
|
? groupStudent[g.id] &&
|
|
@@ -282,8 +282,8 @@
|
|
|
</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>
|
|
|
+ "The teacher has not added groups yet" }}</div>
|
|
|
+ <div v-else-if="!isopen" style="text-align: center;">{{ "Groups have been closed" }}</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
<el-dialog title="Group Settings" :visible.sync="dialogVisibleGroup2" :append-to-body="true" width="650px"
|
|
@@ -299,7 +299,7 @@
|
|
|
v-if="(groupJson2.group.length - 1) == index">
|
|
|
Add</el-button>
|
|
|
<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">delete</el-button>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -333,14 +333,14 @@
|
|
|
<el-button type="primary" @click="deleteChair">Save</el-button>
|
|
|
</span>
|
|
|
</el-dialog>
|
|
|
- <el-dialog title="修改分组" :visible.sync="dialogVisibleUpdateGroup" :append-to-body="true" width="350px"
|
|
|
+ <el-dialog title="update group" :visible.sync="dialogVisibleUpdateGroup" :append-to-body="true" width="350px"
|
|
|
:before-close="handleClose" class="dialog_diy">
|
|
|
<div>
|
|
|
<h2>
|
|
|
{{ this.updateGroupUser.name }}
|
|
|
</h2>
|
|
|
<div style="color: rgb(171 171 171); margin-top: 10px">
|
|
|
- 请选择要进入的分组
|
|
|
+ Please select the group to enter
|
|
|
</div>
|
|
|
<el-radio-group v-model="checkChair">
|
|
|
<el-radio style="display: block; margin-top: 20px" v-for="(item, index) in updateGroupArray"
|
|
@@ -389,12 +389,12 @@
|
|
|
<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 : '暂无姓名'">
|
|
|
- <span>{{ item.name ? item.name : "暂无姓名" }}</span>
|
|
|
+ <el-tooltip placement="top" :content="item.name ? item.name : 'No Name'">
|
|
|
+ <span>{{ item.name ? item.name : "No Name" }}</span>
|
|
|
</el-tooltip>
|
|
|
</div>
|
|
|
</div>
|
|
|
- <div style="text-align: center; margin-top: 10px" v-else>暂无数据</div>
|
|
|
+ <div style="text-align: center; margin-top: 10px" v-else>No data</div>
|
|
|
</div>
|
|
|
<!-- <div style="margin-top: 10px;">
|
|
|
<el-pagination background layout="prev, pager, next" :page-size="pageSize" :total="total"
|
|
@@ -550,7 +550,7 @@ export default {
|
|
|
deleteCourseGroup() {
|
|
|
this.$confirm(
|
|
|
// "您确定要删除该分组吗? 分组删除后将被清空并且无法恢复。",
|
|
|
- "是否确定删除已有分组?删除后分组数据将被清空!",
|
|
|
+ "Are you sure to delete the existing group? The group data will be cleared after deletion!",
|
|
|
"Notification",
|
|
|
{
|
|
|
confirmButtonText: "Save",
|
|
@@ -572,7 +572,7 @@ export default {
|
|
|
}
|
|
|
this.islock = false
|
|
|
this.isopen = true
|
|
|
- this.$message.success("操作成功");
|
|
|
+ this.$message.success("Operation successful");
|
|
|
this.getCourseGroup();
|
|
|
this.$forceUpdate()
|
|
|
})
|
|
@@ -594,7 +594,7 @@ export default {
|
|
|
lockChair() {
|
|
|
this.groupJson2 = JSON.parse(JSON.stringify(this.groupJson));
|
|
|
if (this.groupJson2.isopen == 2) {
|
|
|
- this.$message.error("请开启分组后才能开放选座")
|
|
|
+ this.$message.error("Please enable the group before opening the seat selection")
|
|
|
this.islock = false
|
|
|
return
|
|
|
} else {
|
|
@@ -604,7 +604,7 @@ export default {
|
|
|
},
|
|
|
numberPan() {
|
|
|
if (/[^\d]/.test(this.groupJson2.number) || this.groupJson2.number < 2 || this.groupJson2.number > 10) {
|
|
|
- this.$message.error('请输入2-10的数字')
|
|
|
+ this.$message.error('Please enter a number between 2 and 10')
|
|
|
this.groupJson2.number = ''
|
|
|
}
|
|
|
},
|
|
@@ -638,7 +638,7 @@ export default {
|
|
|
this.groupStudentUid[this.groupJson2.group[i].id] && this.groupStudentUid[this.groupJson2.group[i].id].length >
|
|
|
this.groupJson2.number
|
|
|
) {
|
|
|
- this.$message.error("已经有小组比你设置的人数多,请重新设置");
|
|
|
+ this.$message.error("There are already groups with more people than you set, please reset");
|
|
|
return;
|
|
|
}
|
|
|
}
|
|
@@ -735,7 +735,7 @@ export default {
|
|
|
this.groupStudent[this.checkChair].length ==
|
|
|
this.groupJson.number
|
|
|
) {
|
|
|
- this.$message.error("位置已满,无法加入");
|
|
|
+ this.$message.error("The position is full and cannot be joined");
|
|
|
return;
|
|
|
}
|
|
|
let params = [
|
|
@@ -748,7 +748,7 @@ export default {
|
|
|
this.ajax
|
|
|
.post(this.$store.state.api + "joinCourseGroup", params)
|
|
|
.then((res) => {
|
|
|
- this.$message.success("修改成功");
|
|
|
+ this.$message.success("Modification successful");
|
|
|
this.updateGroupUser = {};
|
|
|
this.checkChair = "";
|
|
|
this.updateGroupArray = {};
|