修正 文章分类更新名称去重判断
This commit is contained in:
parent
122e868b52
commit
4bf2afa45c
|
|
@ -1,9 +1,10 @@
|
||||||
|
/// <reference types="react" />
|
||||||
import { GenerateUrlFn } from "../../../types/Article";
|
import { GenerateUrlFn } from "../../../types/Article";
|
||||||
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "article", true, {
|
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "article", true, {
|
||||||
entityId: string;
|
entityId: string;
|
||||||
articleMenuId: string | undefined;
|
articleMenuId: string | undefined;
|
||||||
generateUrl: GenerateUrlFn;
|
generateUrl: GenerateUrlFn;
|
||||||
empty: React.ReactNode | undefined;
|
empty: import("react").ReactNode;
|
||||||
menuCheck: (isArticle: boolean) => void;
|
menuCheck: (isArticle: boolean) => void;
|
||||||
}>) => React.ReactElement;
|
}>) => React.ReactElement;
|
||||||
export default _default;
|
export default _default;
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/// <reference types="react" />
|
||||||
import { EntityDict } from "../../../oak-app-domain";
|
import { EntityDict } from "../../../oak-app-domain";
|
||||||
import { GenerateUrlFn } from "../../../types/Article";
|
import { GenerateUrlFn } from "../../../types/Article";
|
||||||
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<EntityDict, keyof EntityDict, false, {
|
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<EntityDict, keyof EntityDict, false, {
|
||||||
|
|
@ -5,8 +6,8 @@ declare const _default: (props: import("oak-frontend-base").ReactComponentProps<
|
||||||
entityId: string;
|
entityId: string;
|
||||||
title: string;
|
title: string;
|
||||||
origin: string;
|
origin: string;
|
||||||
menuEmpty: React.ReactNode | undefined;
|
menuEmpty: import("react").ReactNode;
|
||||||
articleEmpty: React.ReactNode | undefined;
|
articleEmpty: import("react").ReactNode;
|
||||||
generateUrl: GenerateUrlFn;
|
generateUrl: GenerateUrlFn;
|
||||||
}>) => React.ReactElement;
|
}>) => React.ReactElement;
|
||||||
export default _default;
|
export default _default;
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,4 @@
|
||||||
|
/// <reference types="react" />
|
||||||
import { GenerateUrlFn } from "../../../types/Article";
|
import { GenerateUrlFn } from "../../../types/Article";
|
||||||
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "articleMenu", true, {
|
declare const _default: (props: import("oak-frontend-base").ReactComponentProps<import("../../../oak-app-domain").EntityDict, "articleMenu", true, {
|
||||||
entity: string;
|
entity: string;
|
||||||
|
|
@ -6,7 +7,7 @@ declare const _default: (props: import("oak-frontend-base").ReactComponentProps<
|
||||||
origin: string;
|
origin: string;
|
||||||
onMenuClick: (menuId: string, menuName: string, isArticle: boolean) => void;
|
onMenuClick: (menuId: string, menuName: string, isArticle: boolean) => void;
|
||||||
onArticleClick: (atricleId: string) => void;
|
onArticleClick: (atricleId: string) => void;
|
||||||
empty: React.ReactNode | undefined;
|
empty: import("react").ReactNode;
|
||||||
changeAddArticle: (show: boolean) => void;
|
changeAddArticle: (show: boolean) => void;
|
||||||
generateUrl: GenerateUrlFn;
|
generateUrl: GenerateUrlFn;
|
||||||
}>) => React.ReactElement;
|
}>) => React.ReactElement;
|
||||||
|
|
|
||||||
|
|
@ -141,6 +141,8 @@ const triggers = [
|
||||||
id: 1,
|
id: 1,
|
||||||
name: 1,
|
name: 1,
|
||||||
parentId: 1,
|
parentId: 1,
|
||||||
|
entity: 1,
|
||||||
|
entityId: 1,
|
||||||
},
|
},
|
||||||
filter,
|
filter,
|
||||||
}, {});
|
}, {});
|
||||||
|
|
@ -152,6 +154,8 @@ const triggers = [
|
||||||
parentId: 1,
|
parentId: 1,
|
||||||
},
|
},
|
||||||
filter: {
|
filter: {
|
||||||
|
entity: articleMenu.entity,
|
||||||
|
entityId: articleMenu.entityId,
|
||||||
name: data.name,
|
name: data.name,
|
||||||
parentId: articleMenu.parentId
|
parentId: articleMenu.parentId
|
||||||
? articleMenu.parentId
|
? articleMenu.parentId
|
||||||
|
|
|
||||||
|
|
@ -143,6 +143,8 @@ const triggers = [
|
||||||
id: 1,
|
id: 1,
|
||||||
name: 1,
|
name: 1,
|
||||||
parentId: 1,
|
parentId: 1,
|
||||||
|
entity: 1,
|
||||||
|
entityId: 1,
|
||||||
},
|
},
|
||||||
filter,
|
filter,
|
||||||
}, {});
|
}, {});
|
||||||
|
|
@ -154,6 +156,8 @@ const triggers = [
|
||||||
parentId: 1,
|
parentId: 1,
|
||||||
},
|
},
|
||||||
filter: {
|
filter: {
|
||||||
|
entity: articleMenu.entity,
|
||||||
|
entityId: articleMenu.entityId,
|
||||||
name: data.name,
|
name: data.name,
|
||||||
parentId: articleMenu.parentId
|
parentId: articleMenu.parentId
|
||||||
? articleMenu.parentId
|
? articleMenu.parentId
|
||||||
|
|
|
||||||
|
|
@ -192,6 +192,8 @@ const triggers: Trigger<
|
||||||
id: 1,
|
id: 1,
|
||||||
name: 1,
|
name: 1,
|
||||||
parentId: 1,
|
parentId: 1,
|
||||||
|
entity: 1,
|
||||||
|
entityId :1,
|
||||||
},
|
},
|
||||||
filter,
|
filter,
|
||||||
},
|
},
|
||||||
|
|
@ -207,6 +209,8 @@ const triggers: Trigger<
|
||||||
parentId: 1,
|
parentId: 1,
|
||||||
},
|
},
|
||||||
filter: {
|
filter: {
|
||||||
|
entity: articleMenu.entity!,
|
||||||
|
entityId: articleMenu.entityId!,
|
||||||
name: (data as any).name,
|
name: (data as any).name,
|
||||||
parentId: articleMenu.parentId
|
parentId: articleMenu.parentId
|
||||||
? articleMenu.parentId
|
? articleMenu.parentId
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue