diff --git a/src/api/ydoyun/customtag/index.ts b/src/api/ydoyun/customtag/index.ts index ba66fed..4dadf35 100644 --- a/src/api/ydoyun/customtag/index.ts +++ b/src/api/ydoyun/customtag/index.ts @@ -1,8 +1,8 @@ import request from '@/config/axios' import type { Dayjs } from 'dayjs'; -/** 自定义标签类型:product-产品, store-店铺, supplier-供货商 */ -export type CustomTagType = 'product' | 'store' | 'supplier' +/** 自定义标签类型:product-产品, store-店铺, supplier-供货商, member-会员 */ +export type CustomTagType = 'product' | 'store' | 'supplier' | 'member' /** 自定义标签信息 */ export interface CustomTag { diff --git a/src/api/ydoyun/tagconfig/index.ts b/src/api/ydoyun/tagconfig/index.ts index 1e78719..7905cd1 100644 --- a/src/api/ydoyun/tagconfig/index.ts +++ b/src/api/ydoyun/tagconfig/index.ts @@ -66,7 +66,7 @@ export const TagConfigApi = { deleteTagConfig: (id: number) => request.delete({ url: '/ydoyun/tag-config/delete?id=' + id }), manualSync: (tagConfigId: number) => - request.post({ url: '/ydoyun/tag-config/manual-sync?tagConfigId=' + tagConfigId }), + request.post({ url: '/ydoyun/tag-config/manual-sync?tagConfigId=' + tagConfigId }) } export const TagApi = { @@ -90,3 +90,22 @@ export const TagSyncHistoryApi = { getTagSyncHistory: (id: number) => request.get({ url: '/ydoyun/tag-sync-history/get?id=' + id }), } + +/** 标签同步详情 */ +export interface TagSyncDetail { + id?: number + syncHistoryId?: number + tagId?: number + tagName?: string + tagType?: string + sqlExecuted?: string + execStatus?: string + recordCount?: number + errorMessage?: string + execOrder?: number +} + +export const TagSyncDetailApi = { + getDetailListBySyncHistoryId: (syncHistoryId: number) => + request.get({ url: '/ydoyun/tag-sync-detail/list-by-sync-history-id?syncHistoryId=' + syncHistoryId }), +} diff --git a/src/router/modules/remaining.ts b/src/router/modules/remaining.ts index d6cf781..ad7ad7d 100644 --- a/src/router/modules/remaining.ts +++ b/src/router/modules/remaining.ts @@ -831,6 +831,16 @@ const remainingRouter: AppRouteRecordRaw[] = [ hidden: true }, children: [ + { + path: 'custom-tag', + name: 'CustomTag', + meta: { + title: '定制标签', + noCache: true, + canTo: true + }, + component: () => import(/* webpackChunkName: "custom-tag" */ '@/views/ydoyun/customtag/index.vue') + }, { path: 'product-custom-tag', name: 'ProductCustomTag', diff --git a/src/views/Login/Login.vue b/src/views/Login/Login.vue index 3a828bc..ca4e733 100644 --- a/src/views/Login/Login.vue +++ b/src/views/Login/Login.vue @@ -96,6 +96,10 @@ defineOptions({ name: 'Login' }) overflow-x: hidden; overflow-y: auto; font-family: 'PingFang SC', 'Microsoft YaHei', sans-serif; + display: flex; + flex-direction: column; + justify-content: center; + align-items: center; } .bg-container { @@ -199,10 +203,10 @@ defineOptions({ name: 'Login' }) width: 100%; max-width: 1300px; margin: 0 auto; - padding: 80px 40px 100px; + padding: 40px; display: flex; justify-content: space-between; - align-items: flex-start; + align-items: center; gap: 40px; } diff --git a/src/views/ydoyun/customtag/CustomTagForm.vue b/src/views/ydoyun/customtag/CustomTagForm.vue index 5f0b0e0..c19755e 100644 --- a/src/views/ydoyun/customtag/CustomTagForm.vue +++ b/src/views/ydoyun/customtag/CustomTagForm.vue @@ -1,5 +1,5 @@