From a4ce67cd18a538c09893cd525cc184d53cd30311 Mon Sep 17 00:00:00 2001 From: rd <1344903914@qq.com> Date: Fri, 19 Sep 2025 17:31:07 +0800 Subject: [PATCH] =?UTF-8?q?feat(account-manage):=20=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E8=A1=A8=E6=A0=BC=E8=A7=86=E5=9B=BE=E5=B9=B6=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E7=8E=B0=E6=9C=89=E7=BB=84=E4=BB=B6=E6=A0=B7=E5=BC=8F=E5=92=8C?= =?UTF-8?q?=E9=80=BB=E8=BE=91?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../components/account-table/card.vue | 107 +++++----- .../components/account-table/footer-btn.tsx | 29 ++- .../components/account-table/table.vue | 185 ++++++++++++++++++ .../media-account/account-manage/constants.ts | 60 ++++++ .../media-account/account-manage/index.vue | 143 ++++++++------ 5 files changed, 401 insertions(+), 123 deletions(-) create mode 100644 src/views/property-marketing/media-account/account-manage/components/account-table/table.vue diff --git a/src/views/property-marketing/media-account/account-manage/components/account-table/card.vue b/src/views/property-marketing/media-account/account-manage/components/account-table/card.vue index 6a74dd3..9bcd7db 100644 --- a/src/views/property-marketing/media-account/account-manage/components/account-table/card.vue +++ b/src/views/property-marketing/media-account/account-manage/components/account-table/card.vue @@ -3,7 +3,8 @@ * @Date: 2025-06-25 15:31:15 --> - +

{{ item.name || '-' }}

@@ -47,30 +53,30 @@ 运营人员 {{ item.operator?.name || '-' }}
-
- 所属项目 - - -
- -
- {{ `+${item.projects.length - 2}` }} -
-
+ + + + + + + + + + + + + + + + + + -
- {{ project.name }} -
-
-
+ + + + +
分组 {{ item.group?.name || '-' }} @@ -123,14 +129,11 @@
- - - + + diff --git a/src/views/property-marketing/media-account/account-manage/constants.ts b/src/views/property-marketing/media-account/account-manage/constants.ts index 26f37e0..bc06301 100644 --- a/src/views/property-marketing/media-account/account-manage/constants.ts +++ b/src/views/property-marketing/media-account/account-manage/constants.ts @@ -41,3 +41,63 @@ export const SHOW_TYPES = [ svgName: 'svg-list', }, ]; + +export const TABLE_COLUMNS = [ + { + title: '账号名称', + dataIndex: 'name', + width: 200, + fixed: 'left', + }, + { + title: '状态', + dataIndex: 'status', + width: 100, + }, + { + title: '数据更新时间', + dataIndex: 'last_synced_at', + width: 140, + }, + { + title: '最后授权时间', + dataIndex: 'last_authorized_at', + width: 140, + }, + { + title: '平台', + dataIndex: 'platform', + width: 80, + }, + { + title: '账号ID', + dataIndex: 'account_id', + width: 140, + }, + { + title: '手机号码', + dataIndex: 'mobile', + width: 140, + }, + { + title: '运营人员', + dataIndex: 'operator.name', + width: 140, + }, + { + title: '分组', + dataIndex: 'group.name', + width: 140, + }, + { + title: '标签', + dataIndex: 'tags', + width: 180, + }, + { + title: '操作', + dataIndex: 'operation', + width: 180, + fixed: 'right', + }, +]; diff --git a/src/views/property-marketing/media-account/account-manage/index.vue b/src/views/property-marketing/media-account/account-manage/index.vue index c96744e..45e4bc9 100644 --- a/src/views/property-marketing/media-account/account-manage/index.vue +++ b/src/views/property-marketing/media-account/account-manage/index.vue @@ -55,12 +55,12 @@ :checked="checkedAll" :indeterminate="indeterminate" class="mr-24px" - @change="(e) => handleChangeAll(e.target.checked)" + @change="(e) => handleSelectAll(e.target.checked)" > 全选 -