Skip to content

Commit 6fbacb1

Browse files
committed
perf:team
1 parent ef65611 commit 6fbacb1

10 files changed

Lines changed: 76 additions & 11 deletions

File tree

docs/project/team/battle.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,10 @@ GET /api/team/my-race-rank/records?pageIndex=:page&pageSize=10&team_id=:teamId
5757
### 团队战绩管理
5858

5959
```http
60-
GET /api/team/my-team/race-rank/records?team_id=:teamId
60+
GET /api/team/my-team/race-rank/records?pageIndex=:page&pageSize=10&team_id=:teamId&is_leader=1
6161
```
6262

63-
数据语义是归属当前团队的所有团长上报记录,供团队管理者关联战斗数据并进入秘境百强榜。
63+
数据语义是归属当前团队的所有团长上报记录,供团队管理者关联战斗数据并进入秘境百强榜。管理页按接口分页信息展示翻页控件;`team_id` 必须是当前工作台团队,`is_leader=1` 用于限定游戏内担任队长时上报的数据。
6464

6565
### 首领活动配置
6666

src/components/team/snapshot/snapshotItem.vue

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -117,7 +117,12 @@ export default {
117117
return _list;
118118
},
119119
autoname() {
120-
return this.$t("team.snapshot.uploadedInGame", { time: showTime(this.data.created_at), name: this.data.user_data?.display_name || this.$t("team.snapshot.unknown") });
120+
if (!this.data.cguid) return this.$t("team.snapshot.manualAdd");
121+
122+
const uploader = this.list.find((item) => String(item.jx3id) === String(this.data.jx3id));
123+
return this.$t("team.snapshot.uploadedInGame", {
124+
name: uploader?.name || this.$t("team.snapshot.unknown"),
125+
});
121126
},
122127
groups: function () {
123128
return ~~Math.ceil(this.list.length / 5);

src/locale/en-US/team.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/locale/vi/team.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)