diff --git a/src/api/all/propertyMarketing.ts b/src/api/all/propertyMarketing.ts index c4c3ced..3eb1bb3 100644 --- a/src/api/all/propertyMarketing.ts +++ b/src/api/all/propertyMarketing.ts @@ -19,6 +19,11 @@ export const fetchAccountOperators = (params = {}) => { return Http.get('/v1/media-account-operators/list', params); }; +// 投放账户运营人员分组-列表 +export const fetchPlacementAccountOperators = (params = {}) => { + return Http.get('/v1/placement-account-operators/list', params); +}; + // 媒体账号-分页 export const getMediaAccounts = (params = {}) => { return Http.get('/v1/media-accounts', params); @@ -94,7 +99,7 @@ export const deleteTag = (id: string) => { // 媒体账号-批量删除 export const batchDeleteMediaAccounts = (params = {}) => { - return Http.delete(`/v1/media-accounts/batch`, params); + return Http.delete(`/v1/media-accounts/batch`, { data: params }); }; // 媒体账号-批量标签 @@ -141,3 +146,60 @@ export const postAccountBoardExport = (params = {}) => { export const getAccountBoardDetail = (id: string) => { return Http.get(`/v1/media-account-boards/${id}`); }; + +// 投放账号-分页 +export const getPlacementAccounts = (params = {}) => { + return Http.get('/v1/placement-accounts', params); +}; + +// 投放账号-暂停爬取 +export const pausePatchPlacementAccount = (id: string) => { + return Http.patch(`/v1/placement-accounts/${id}/pause`); +}; + +// 投放账号-删除 +export const deletePlacementAccount = (id: string) => { + return Http.delete(`/v1/placement-accounts/${id}`); +}; + +// 投放账号-批量删除 +export const batchDeletePlacementAccounts = (params = {}) => { + return Http.delete(`/v1/placement-accounts/batch`, { data: params }); +}; + +// 投放账号-批量添加 +export const batchPlacementAccounts = (params = {}, config = {}) => { + return Http.post('/v1/placement-accounts/batch', params, config); +}; + +// 投放账号-修改 +export const putPlacementAccounts = (params = {}) => { + const { id, ...rest } = params as { id: string; [key: string]: any }; + return Http.put(`/v1/placement-accounts/${id}`, rest); +}; + +// 投放账号-添加 +export const postPlacementAccounts = (params = {}) => { + return Http.post('/v1/placement-accounts', params); +}; + +// 投放账号-详情 +export const getPlacementAccountsDetail = (id: string) => { + return Http.get(`/v1/placement-accounts/${id}`); +}; + +// 投放账号-授权 +export const putPlacementAccountsAuthorized = (params = {}) => { + const { id, ...rest } = params as { id: string; [key: string]: any }; + return Http.put(`/v1/placement-accounts/${id}/authorized`, rest); +}; + +// 投放账号-获取模板地址 +export const getPlacementAccountsTemplateUrl = (params = {}) => { + return Http.get('/v1/placement-accounts/template', params); +}; + +// 投放账号-查询授权状态 +export const getPlacementAccountsAuthorizedStatus = (id: string) => { + return Http.get(`/v1/placement-accounts/${id}/authorized-status`); +}; diff --git a/src/assets/img/media-account/icon-bili.png b/src/assets/img/media-account/icon-bili.png new file mode 100644 index 0000000..ff4e62a Binary files /dev/null and b/src/assets/img/media-account/icon-bili.png differ diff --git a/src/assets/img/media-account/icon-jg.png b/src/assets/img/media-account/icon-jg.png new file mode 100644 index 0000000..dedbbd2 Binary files /dev/null and b/src/assets/img/media-account/icon-jg.png differ diff --git a/src/assets/img/media-account/icon-jl.png b/src/assets/img/media-account/icon-jl.png new file mode 100644 index 0000000..2e54c42 Binary files /dev/null and b/src/assets/img/media-account/icon-jl.png differ diff --git a/src/components/custom-table-column-modal/style.scss b/src/components/custom-table-column-modal/style.scss index a18d7a7..2700810 100644 --- a/src/components/custom-table-column-modal/style.scss +++ b/src/components/custom-table-column-modal/style.scss @@ -22,7 +22,7 @@ margin-bottom: 16px; .text { color: var(--Text-1, #211f24); - font-family: 'Alibaba PuHuiTi'; + font-family: 'PuHuiTi-Medium'; font-size: 16px; font-style: normal; font-weight: 400; @@ -47,7 +47,7 @@ flex-direction: column; .checked-title { color: var(--Text-1, #211f24); - font-family: 'Alibaba PuHuiTi'; + font-family: 'PuHuiTi-Medium'; font-size: 16px; font-style: normal; font-weight: 400; @@ -69,7 +69,7 @@ align-items: center; .text { color: var(--Text-1, #211f24); - font-family: 'Alibaba PuHuiTi'; + font-family: 'PuHuiTi-Medium'; font-size: 14px; font-style: normal; font-weight: 400; diff --git a/src/layouts/Basic.vue b/src/layouts/Basic.vue index 3378cf5..7b9221c 100644 --- a/src/layouts/Basic.vue +++ b/src/layouts/Basic.vue @@ -35,8 +35,6 @@ const paddingStyle = computed(() => { return { ...paddingLeft, ...paddingTop }; }); -console.log('showSidebar', showSidebar); - onMounted(() => { checkHasInviteCode(); }); diff --git a/src/router/routes/modules/propertyMarketing.ts b/src/router/routes/modules/propertyMarketing.ts index f85feac..92702c2 100644 --- a/src/router/routes/modules/propertyMarketing.ts +++ b/src/router/routes/modules/propertyMarketing.ts @@ -37,7 +37,7 @@ const COMPONENTS: AppRouteRecordRaw[] = [ name: 'MediaAccount', redirect: 'media-account/accountManagement', meta: { - locale: '新媒体账号管理', + locale: '账号资源中心', icon: IconBookmark, requiresAuth: true, roles: ['*'], @@ -96,7 +96,7 @@ const COMPONENTS: AppRouteRecordRaw[] = [ path: 'manage', name: 'PutAccountAccountManagement', meta: { - locale: '账号管理', + locale: '账户管理', requiresAuth: true, roles: ['*'], }, @@ -106,7 +106,7 @@ const COMPONENTS: AppRouteRecordRaw[] = [ path: 'data', name: 'PutAccountAccountData', meta: { - locale: '账号数据', + locale: '账户数据', requiresAuth: true, roles: ['*'], }, @@ -126,7 +126,7 @@ const COMPONENTS: AppRouteRecordRaw[] = [ path: 'investmentGuidelines', name: 'PutAccountInvestmentGuidelines', meta: { - locale: '投放指南', + locale: '平台投放指南', requiresAuth: true, roles: ['*'], }, diff --git a/src/styles/components/pagination.scss b/src/styles/components/pagination.scss index d0fa4f8..e739b4e 100644 --- a/src/styles/components/pagination.scss +++ b/src/styles/components/pagination.scss @@ -28,7 +28,7 @@ &-prepend { color: var(--Text-2, #3c4043); text-align: right; - font-family: 'Alibaba PuHuiTi'; + font-family: 'PuHuiTi-Medium'; font-size: 14px; font-style: normal; font-weight: 400; diff --git a/src/styles/components/tabs.scss b/src/styles/components/tabs.scss index 422d644..4148086 100644 --- a/src/styles/components/tabs.scss +++ b/src/styles/components/tabs.scss @@ -4,7 +4,7 @@ .arco-tabs-tab { .arco-tabs-tab-title { color: var(--Text-2, #3c4043); - font-family: 'Alibaba PuHuiTi'; + font-family: 'PuHuiTi-Medium'; font-size: 16px; font-style: normal; font-weight: 400; diff --git a/src/views/property-marketing/brands/brand-materials/style.scss b/src/views/property-marketing/brands/brand-materials/style.scss index 8cc147b..ba5bf26 100644 --- a/src/views/property-marketing/brands/brand-materials/style.scss +++ b/src/views/property-marketing/brands/brand-materials/style.scss @@ -44,7 +44,7 @@ .label { margin-right: 8px; color: #211f24; - font-family: 'Alibaba PuHuiTi'; + font-family: 'PuHuiTi-Medium'; font-size: 14px; font-style: normal; font-weight: 400; diff --git a/src/views/property-marketing/component.scss b/src/views/property-marketing/component.scss index 90ad518..14e6920 100644 --- a/src/views/property-marketing/component.scss +++ b/src/views/property-marketing/component.scss @@ -31,7 +31,7 @@ } .arco-form-item-label { color: var(--Text-1, #211f24); - font-family: 'Alibaba PuHuiTi'; + font-family: 'PuHuiTi-Regular'; font-size: 14px; font-style: normal; font-weight: 400; diff --git a/src/views/property-marketing/intelligent-solution/businessAnalysisReport.vue b/src/views/property-marketing/intelligent-solution/businessAnalysisReport.vue index 7e9cdf7..f45ee55 100644 --- a/src/views/property-marketing/intelligent-solution/businessAnalysisReport.vue +++ b/src/views/property-marketing/intelligent-solution/businessAnalysisReport.vue @@ -198,7 +198,7 @@ const columns = [ .label { margin-right: 8px; color: #211f24; - font-family: 'Alibaba PuHuiTi'; + font-family: 'PuHuiTi-Medium'; font-size: 14px; font-style: normal; font-weight: 400; diff --git a/src/views/property-marketing/intelligent-solution/competitiveProductAnalysisReport.vue b/src/views/property-marketing/intelligent-solution/competitiveProductAnalysisReport.vue index 84787ca..adaea54 100644 --- a/src/views/property-marketing/intelligent-solution/competitiveProductAnalysisReport.vue +++ b/src/views/property-marketing/intelligent-solution/competitiveProductAnalysisReport.vue @@ -190,7 +190,7 @@ const columns = [ .label { margin-right: 8px; color: #211f24; - font-family: 'Alibaba PuHuiTi'; + font-family: 'PuHuiTi-Medium'; font-size: 14px; font-style: normal; font-weight: 400; diff --git a/src/views/property-marketing/media-account/account-dashboard/components/account-table/style.scss b/src/views/property-marketing/media-account/account-dashboard/components/account-table/style.scss index cfdf11c..4b056ba 100644 --- a/src/views/property-marketing/media-account/account-dashboard/components/account-table/style.scss +++ b/src/views/property-marketing/media-account/account-dashboard/components/account-table/style.scss @@ -9,7 +9,7 @@ .account-table { .cts { color: var(--Text-1, #211f24); - font-family: 'Alibaba PuHuiTi'; + font-family: 'PuHuiTi-Medium'; font-size: 14px; font-style: normal; font-weight: 400; diff --git a/src/views/property-marketing/media-account/account-dashboard/components/filter-block/style.scss b/src/views/property-marketing/media-account/account-dashboard/components/filter-block/style.scss index 3a33894..ff7b556 100644 --- a/src/views/property-marketing/media-account/account-dashboard/components/filter-block/style.scss +++ b/src/views/property-marketing/media-account/account-dashboard/components/filter-block/style.scss @@ -20,7 +20,7 @@ .label { margin-right: 8px; color: #211f24; - font-family: 'Alibaba PuHuiTi'; + font-family: 'PuHuiTi-Regular'; font-size: 14px; font-style: normal; font-weight: 400; diff --git a/src/views/property-marketing/media-account/account-dashboard/index.vue b/src/views/property-marketing/media-account/account-dashboard/index.vue index 74a3731..e321c56 100644 --- a/src/views/property-marketing/media-account/account-dashboard/index.vue +++ b/src/views/property-marketing/media-account/account-dashboard/index.vue @@ -64,11 +64,9 @@ import FilterBlock from './components/filter-block'; import AccountTable from './components/account-table'; import { getAccountBoardOverview, getAccountBoardList, postAccountBoardExport } from '@/api/all/propertyMarketing'; - import { formatNumberShow } from '@/utils/tools'; -import { INITIAL_QUERY } from './constants'; +import { INITIAL_QUERY, CARD_FIELDS } from './constants'; -import { CARD_FIELDS } from './constants'; import icon1 from '@/assets/img/icon-question.png'; const query = ref(cloneDeep(INITIAL_QUERY)); diff --git a/src/views/property-marketing/media-account/account-dashboard/style.scss b/src/views/property-marketing/media-account/account-dashboard/style.scss index f56c5bb..2e1f2a9 100644 --- a/src/views/property-marketing/media-account/account-dashboard/style.scss +++ b/src/views/property-marketing/media-account/account-dashboard/style.scss @@ -17,7 +17,7 @@ border: 1px solid #e6e6e8; .top { .title { - font-family: 'Alibaba PuHuiTi'; + font-family: 'PuHuiTi-Medium'; font-style: normal; } :deep(.arco-btn) { diff --git a/src/views/property-marketing/media-account/account-detail/components/note-table/style.scss b/src/views/property-marketing/media-account/account-detail/components/note-table/style.scss index e040bfe..12d1404 100644 --- a/src/views/property-marketing/media-account/account-detail/components/note-table/style.scss +++ b/src/views/property-marketing/media-account/account-detail/components/note-table/style.scss @@ -21,7 +21,7 @@ .label { margin-right: 8px; color: #211f24; - font-family: 'Alibaba PuHuiTi'; + font-family: 'PuHuiTi-Regular'; font-size: 14px; font-style: normal; font-weight: 400; diff --git a/src/views/property-marketing/media-account/account-detail/style.scss b/src/views/property-marketing/media-account/account-detail/style.scss index 387d967..16e6c75 100644 --- a/src/views/property-marketing/media-account/account-detail/style.scss +++ b/src/views/property-marketing/media-account/account-detail/style.scss @@ -4,7 +4,7 @@ flex-direction: column; :deep(.cts) { color: var(--Text-1, #211f24); - font-family: 'Alibaba PuHuiTi'; + font-family: 'PuHuiTi-Medium'; font-size: 14px; font-style: normal; font-weight: 400; diff --git a/src/views/property-marketing/media-account/account-manage/components/account-table/index.vue b/src/views/property-marketing/media-account/account-manage/components/account-table/index.vue index 3530eaa..6a35125 100644 --- a/src/views/property-marketing/media-account/account-manage/components/account-table/index.vue +++ b/src/views/property-marketing/media-account/account-manage/components/account-table/index.vue @@ -4,7 +4,14 @@ -->