feat(agent): 툴바 제목에 크리에이터 수 표시, 테이블에 순번 표시

This commit is contained in:
Yu Sung
2026-04-13 19:39:54 +09:00
parent cac14832c2
commit c24103f303
2 changed files with 22 additions and 1 deletions

View File

@@ -2,7 +2,7 @@
<div>
<v-toolbar dark>
<v-spacer />
<v-toolbar-title>소속 크리에이터</v-toolbar-title>
<v-toolbar-title>소속 크리에이터 - {{ totalCount }}</v-toolbar-title>
<v-spacer />
</v-toolbar>
@@ -69,6 +69,7 @@ export default {
data() {
return {
headers: [
{ text: '순번', value: 'no', align: 'center', sortable: false },
{ text: '프로필', value: 'profileImageUrl', align: 'center', sortable: false },
{ text: '닉네임', value: 'creatorNickname', align: 'center' }
],
@@ -132,6 +133,13 @@ export default {
this.items = Array.isArray(payload.items) ? payload.items : [];
const totalPage = Math.ceil(this.totalCount / this.itemsPerPage);
this.total_page = totalPage > 0 ? totalPage : 1;
// 페이지 연속 역순 번호 부여 (전체 totalCount 기준)
const startNo = this.totalCount - ((this.page - 1) * this.itemsPerPage);
this.items = this.items.map((it, idx) => ({
...it,
no: startNo - idx
}));
} catch (e) {
// 최소한의 에러 로깅
// eslint-disable-next-line no-console