|
|
@@ -22,7 +22,7 @@
|
|
|
<el-table-column label="组名">
|
|
|
<template #default="scope">
|
|
|
<span
|
|
|
- :style="groupData && scope.row['groupVO'].id===groupData['groupVO'].id ? 'color: #67C23A':''">
|
|
|
+ :style="groupData && scope.row['groupVO'].id===groupData['groupVO'].id ? 'color: var(--el-color-primary)':''">
|
|
|
{{ scope.row["groupVO"].name }}
|
|
|
</span>
|
|
|
</template>
|
|
|
@@ -33,7 +33,7 @@
|
|
|
<div v-for="item of scope.row.members"
|
|
|
:key="'member'+item.id"
|
|
|
style="margin-right: 10px"
|
|
|
- :style="groupData && scope.row['groupVO'].id===groupData['groupVO'].id ? 'color: #67C23A':''">
|
|
|
+ :style="groupData && scope.row['groupVO'].id===groupData['groupVO'].id ? 'color: var(--el-color-primary)':''">
|
|
|
{{ item.username }}
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -168,19 +168,7 @@ export default {
|
|
|
_this.maxNameLen=ruleRes.data.maxNameLen;
|
|
|
const groupsRes = (await _this.$apis.findAllGroupsByCourse(_this.courseId)).data;
|
|
|
if (!groupsRes.code) {
|
|
|
- if (!this.isCreator){
|
|
|
- for (let i=0;i<groupsRes.data.length;i++){
|
|
|
- let members=groupsRes.data[i].members;
|
|
|
- for (let j=0;j<members.length;j++){
|
|
|
- if (members[j].id == this.$store.state.user.id){ // 使用==而非===以便字符串转化成数字
|
|
|
- _this.groupTableData.push(groupsRes.data[i]);
|
|
|
- break;
|
|
|
- }
|
|
|
- }
|
|
|
- }
|
|
|
- }else {
|
|
|
- _this.groupTableData = groupsRes.data;
|
|
|
- }
|
|
|
+ _this.groupTableData = groupsRes.data;
|
|
|
}
|
|
|
const groupRes = (await _this.$apis.findGroup(_this.courseId)).data;
|
|
|
if (!groupRes.code) {
|