diff --git a/src/layouts/components/navbar/components/task-center-modal/components/export-task/index.vue b/src/layouts/components/navbar/components/task-center-modal/components/export-task/index.vue
index 7686ef4..4fff449 100644
--- a/src/layouts/components/navbar/components/task-center-modal/components/export-task/index.vue
+++ b/src/layouts/components/navbar/components/task-center-modal/components/export-task/index.vue
@@ -12,7 +12,7 @@ import { useTableSelectionWithPagination } from '@/hooks/useTableSelectionWithPa
import { downloadByUrl } from '@/utils/tools';
import DeleteTaskModal from './delete-task-modal.vue';
import icon1 from '@/assets/img/media-account/icon-delete.png';
-import { showExportNotification, showFailExportNotification } from '@/utils/arcoD';
+import { showExportNotification, showFailExportNotification } from '@/utils/notification';
export default {
setup(props, { emit, expose }) {
diff --git a/src/layouts/components/navbar/components/task-center-modal/components/import-task/index.vue b/src/layouts/components/navbar/components/task-center-modal/components/import-task/index.vue
index 3648bea..c188ac5 100644
--- a/src/layouts/components/navbar/components/task-center-modal/components/import-task/index.vue
+++ b/src/layouts/components/navbar/components/task-center-modal/components/import-task/index.vue
@@ -11,7 +11,7 @@ import { useTableSelectionWithPagination } from '@/hooks/useTableSelectionWithPa
import { downloadByUrl } from '@/utils/tools';
import DeleteTaskModal from './delete-task-modal.vue';
import icon1 from '@/assets/img/media-account/icon-delete.png';
-// import { showExportNotification } from '@/utils/arcoD';
+// import { showExportNotification } from '@/utils/notification';
export default {
setup(props, { emit, expose }) {
@@ -110,7 +110,7 @@ export default {
selectedRowKeys.value = [];
getData();
};
-
+
expose({ init, reset });
return () => (
diff --git a/src/router/routes/modules/propertyMarketing.ts b/src/router/routes/modules/propertyMarketing.ts
index 5d62b3d..40df5ad 100644
--- a/src/router/routes/modules/propertyMarketing.ts
+++ b/src/router/routes/modules/propertyMarketing.ts
@@ -100,6 +100,19 @@ const COMPONENTS: AppRouteRecordRaw[] = [
},
component: () => import('@/views/property-marketing/media-account/account-detail/index.vue'),
},
+ {
+ path: 'note-detail/:id',
+ name: 'MediaAccountNoteDetails',
+ meta: {
+ locale: '作品详情',
+ requiresAuth: true,
+ requireLogin: true,
+ roles: ['*'],
+ hideInMenu: true,
+ activeMenu: 'MediaAccountAccountDashboard',
+ },
+ component: () => import('@/views/property-marketing/media-account/node-detail/index.vue'),
+ },
],
},
// {
diff --git a/src/styles/components/ant-table.scss b/src/styles/components/ant-table.scss
index 3198601..96c061e 100644
--- a/src/styles/components/ant-table.scss
+++ b/src/styles/components/ant-table.scss
@@ -50,6 +50,12 @@
padding: 11px 16px;
@include table-cell-text;
}
+
+ &-selected {
+ > td {
+ background-color: #fff;
+ }
+ }
}
}
}
diff --git a/src/styles/mixins/index.scss b/src/styles/mixins/index.scss
index 3a3b3e8..d36aee7 100644
--- a/src/styles/mixins/index.scss
+++ b/src/styles/mixins/index.scss
@@ -1 +1 @@
-@import "./ellipsis.scss"
\ No newline at end of file
+@import './ellipsis.scss';
diff --git a/src/utils/arcoD.tsx b/src/utils/notification.tsx
similarity index 100%
rename from src/utils/arcoD.tsx
rename to src/utils/notification.tsx
diff --git a/src/views/material-center/components/finished-products/manuscript/upload/index.vue b/src/views/material-center/components/finished-products/manuscript/upload/index.vue
index 0dd9a42..0748d1c 100644
--- a/src/views/material-center/components/finished-products/manuscript/upload/index.vue
+++ b/src/views/material-center/components/finished-products/manuscript/upload/index.vue
@@ -71,22 +71,26 @@ export default {
};
const onSubmit = async (action) => {
- uploadLoading.value = true;
- const filteredWorks = map(works.value, (work) => omit(work, 'videoInfo'));
- const { code, data } = await postWorksBatch({ works: filteredWorks });
- if (code === 200) {
- uploadLoading.value = false;
- if (action === 'batchUpload') {
- uploadSuccessModal.value?.open(data);
- } else {
- message.success('上传成功');
- if (action === 'uploadAndCheck') {
- slsWithCatch('manuscriptCheckIds', data);
- router.push({ name: 'ManuscriptCheck' });
+ try {
+ uploadLoading.value = true;
+ const filteredWorks = map(works.value, (work) => omit(work, 'videoInfo'));
+ const { code, data } = await postWorksBatch({ works: filteredWorks });
+ if (code === 200) {
+ uploadLoading.value = false;
+ if (action === 'batchUpload') {
+ uploadSuccessModal.value?.open(data);
} else {
- router.push({ name: 'MaterialCenterFinishedProducts' });
+ message.success('上传成功');
+ if (action === 'uploadAndCheck') {
+ slsWithCatch('manuscriptCheckIds', data);
+ router.push({ name: 'ManuscriptCheck' });
+ } else {
+ router.push({ name: 'MaterialCenterFinishedProducts' });
+ }
}
}
+ } finally {
+ uploadLoading.value = false;
}
};
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 53af1c1..3e6114a 100644
--- a/src/views/property-marketing/media-account/account-dashboard/index.vue
+++ b/src/views/property-marketing/media-account/account-dashboard/index.vue
@@ -40,7 +40,7 @@
@sorterChange="handleSorterChange"
/>
-
- 所属项目
-
-
+
+
+
+
标签
@@ -150,7 +151,7 @@ onMounted(() => {
getTags();
getGroups();
getOperators();
- getProjects();
+ // getProjects();
});
defineExpose({
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 c46f3ca..d24d015 100644
--- a/src/views/property-marketing/media-account/account-manage/constants.ts
+++ b/src/views/property-marketing/media-account/account-manage/constants.ts
@@ -28,3 +28,82 @@ export const PLATFORM_LIST = [
value: 1,
},
];
+
+export const SHOW_TYPES = [
+ {
+ label: '卡片',
+ value: 'card',
+ svgName: 'svg-card',
+ },
+ {
+ label: '列表',
+ value: 'list',
+ svgName: 'svg-list',
+ },
+];
+
+export const TABLE_COLUMNS = [
+ {
+ title: '账号名称',
+ dataIndex: 'name',
+ width: 200,
+ fixed: 'left',
+ },
+ {
+ title: '更新状态',
+ dataIndex: 'sync',
+ class: 'sync-row',
+ },
+ {
+ title: '状态',
+ dataIndex: 'status',
+ width: 110,
+ },
+ {
+ 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 b9a2965..45e4bc9 100644
--- a/src/views/property-marketing/media-account/account-manage/index.vue
+++ b/src/views/property-marketing/media-account/account-manage/index.vue
@@ -4,7 +4,7 @@
-->
-
+
账号管理
@@ -31,65 +31,74 @@
+
-
- handleChangeAll(e.target.checked)"
- />
-
- 已选
- {{ selectedItems.length }}
- 个账号
-
-
- 批量更新数据
- 批量标签
- 批量分组
- 批量删除
-
-
-
- {{ tipLabel }}
-
+
![]()
+
{{ tipLabel }}
-
-
-
-
-
-
+
+
+
+
+ handleSelectAll(e.target.checked)"
+ >
+ 全选
+
+
+
+
+ 批量更新数据
-
+ 批量标签
+ 批量分组
+ 批量删除
+
+
+
+
+
+
+
+ {{ item.label }}
+
+
+
-
-
+
+
diff --git a/src/views/property-marketing/media-account/node-detail/style.scss b/src/views/property-marketing/media-account/node-detail/style.scss
new file mode 100644
index 0000000..2fdada2
--- /dev/null
+++ b/src/views/property-marketing/media-account/node-detail/style.scss
@@ -0,0 +1,29 @@
+.note-detail-wrap {
+ .cts {
+ color: var(--Text-1, #211f24);
+ font-family: $font-family-regular;
+ font-size: 14px;
+ font-style: normal;
+ font-weight: 400;
+ line-height: 22px;
+
+ &.bold {
+ font-family: $font-family-medium;
+ }
+
+ &.num {
+ font-family: $font-family-manrope-regular;
+ }
+ }
+
+ .title-row {
+ display: flex;
+ height: 64px;
+ padding: 10px 0;
+ align-items: center;
+ }
+
+ :deep(.ant-image) {
+ margin-right: 8px;
+ }
+}
diff --git a/src/views/property-marketing/put-account/account-data/index.vue b/src/views/property-marketing/put-account/account-data/index.vue
index 0e68a35..75e9ae8 100644
--- a/src/views/property-marketing/put-account/account-data/index.vue
+++ b/src/views/property-marketing/put-account/account-data/index.vue
@@ -67,7 +67,7 @@ import {
postPlacementAccountDataListExport,
} from '@/api/all/propertyMarketing';
-import { showExportNotification } from '@/utils/arcoD';
+import { showExportNotification } from '@/utils/notification';
import { INITIAL_QUERY, INITIAL_PAGE_INFO } from './constants';
// import { downloadByUrl } from '@/utils/tools';
diff --git a/src/views/property-marketing/put-account/account-manage/components/add-account-modal/index.vue b/src/views/property-marketing/put-account/account-manage/components/add-account-modal/index.vue
index 8d332a3..b25f75b 100644
--- a/src/views/property-marketing/put-account/account-manage/components/add-account-modal/index.vue
+++ b/src/views/property-marketing/put-account/account-manage/components/add-account-modal/index.vue
@@ -174,7 +174,7 @@ import CommonSelect from '@/components/common-select';
import { PLATFORM_LIST, ENUM_PUT_ACCOUNT_PLATFORM } from '@/utils/platform';
-import { showExportNotification } from '@/utils/arcoD';
+import { showExportNotification } from '@/utils/notification';
import { genRandomId } from '@/utils/tools';
import {
postPlacementAccounts,
diff --git a/src/views/property-marketing/put-account/account-manage/index.vue b/src/views/property-marketing/put-account/account-manage/index.vue
index 75b40fd..7507cdc 100644
--- a/src/views/property-marketing/put-account/account-manage/index.vue
+++ b/src/views/property-marketing/put-account/account-manage/index.vue
@@ -102,7 +102,7 @@ import DeleteAccountModal from './components/account-table/delete-account';
import { INITIAL_QUERY } from './constants';
import { getPlacementAccounts, getPlacementAccountsHealth } from '@/api/all/propertyMarketing';
import { getTaskStatus } from '@/api/all/common';
-import { showImportResultNotification } from '@/utils/arcoD';
+import { showImportResultNotification } from '@/utils/notification';
import icon4 from '@/assets/img/media-account/icon-success.png';
import icon5 from '@/assets/img/media-account/icon-warn.png';
diff --git a/src/views/writer-material-center/components/finished-products/manuscript/upload/index.vue b/src/views/writer-material-center/components/finished-products/manuscript/upload/index.vue
index f50fe4a..7f10ef4 100644
--- a/src/views/writer-material-center/components/finished-products/manuscript/upload/index.vue
+++ b/src/views/writer-material-center/components/finished-products/manuscript/upload/index.vue
@@ -72,31 +72,35 @@ export default {
};
const onSubmit = async (action) => {
- uploadLoading.value = true;
- const filteredWorks = map(works.value, (work) => omit(work, 'videoInfo'));
- const { code, data } = await postWorksBatchWriter({ works: filteredWorks }, writerCode.value);
- if (code === 200) {
- uploadLoading.value = false;
- if (action === 'batchUpload') {
- uploadSuccessModal.value?.open(data);
- } else {
- if (action === 'uploadAndCheck') {
- slsWithCatch('writerManuscriptCheckIds', [data]);
- router.push({
- name: 'WriterManuscriptCheck',
- params: {
- writerCode: writerCode.value,
- },
- });
+ try {
+ uploadLoading.value = true;
+ const filteredWorks = map(works.value, (work) => omit(work, 'videoInfo'));
+ const { code, data } = await postWorksBatchWriter({ works: filteredWorks }, writerCode.value);
+ if (code === 200) {
+ uploadLoading.value = false;
+ if (action === 'batchUpload') {
+ uploadSuccessModal.value?.open(data);
} else {
- router.push({
- name: 'WriterMaterialCenterFinishedProducts',
- params: {
- writerCode: writerCode.value,
- },
- });
+ if (action === 'uploadAndCheck') {
+ slsWithCatch('writerManuscriptCheckIds', [data]);
+ router.push({
+ name: 'WriterManuscriptCheck',
+ params: {
+ writerCode: writerCode.value,
+ },
+ });
+ } else {
+ router.push({
+ name: 'WriterMaterialCenterFinishedProducts',
+ params: {
+ writerCode: writerCode.value,
+ },
+ });
+ }
}
}
+ } finally {
+ uploadLoading.value = false;
}
};