@maketribe/ms-app 3.0.56 → 3.0.58
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/components/data-model/data-form/views/form-view/form-view.js +1 -1
- package/dist/cjs/components/data-model/data-form/views/form-view/form-view.js.map +1 -1
- package/dist/cjs/components/data-model/data-table/views/table-view/table-view.d.ts +3 -2
- package/dist/cjs/components/data-model/data-table/views/table-view/table-view.js +3 -1
- package/dist/cjs/components/data-model/data-table/views/table-view/table-view.js.map +1 -1
- package/dist/cjs/modules/cms/components/part-list/components/article-table/index.d.ts +17 -0
- package/dist/cjs/modules/cms/components/part-list/components/article-table/index.js +12 -0
- package/dist/cjs/modules/cms/components/part-list/components/article-table/index.js.map +1 -0
- package/dist/cjs/modules/cms/components/part-list/components/article-table/index.vue.d.ts +17 -0
- package/dist/cjs/modules/cms/components/part-list/components/article-table/index.vue.js +9 -0
- package/dist/cjs/modules/cms/components/part-list/components/article-table/index.vue.js.map +1 -0
- package/dist/cjs/modules/cms/components/part-list/components/article-table/index.vue2.js +159 -0
- package/dist/cjs/modules/cms/components/part-list/components/article-table/index.vue2.js.map +1 -0
- package/dist/cjs/modules/cms/components/part-list/components/index.d.ts +3 -0
- package/dist/cjs/modules/cms/components/part-list/components/index.js +12 -0
- package/dist/cjs/modules/cms/components/part-list/components/index.js.map +1 -0
- package/dist/cjs/modules/cms/components/part-list/components/page-container/index.d.ts +107 -0
- package/dist/cjs/modules/cms/components/part-list/components/page-container/index.js +12 -0
- package/dist/cjs/modules/cms/components/part-list/components/page-container/index.js.map +1 -0
- package/dist/cjs/modules/cms/components/part-list/components/page-container/index.vue.d.ts +19 -0
- package/dist/cjs/modules/cms/components/part-list/components/page-container/index.vue.js +9 -0
- package/dist/cjs/modules/cms/components/part-list/components/page-container/index.vue.js.map +1 -0
- package/dist/cjs/modules/cms/components/part-list/components/page-container/index.vue2.js +99 -0
- package/dist/cjs/modules/cms/components/part-list/components/page-container/index.vue2.js.map +1 -0
- package/dist/cjs/modules/cms/components/part-list/components/part-page/index.d.ts +26 -0
- package/dist/cjs/modules/cms/components/part-list/components/part-page/index.js +12 -0
- package/dist/cjs/modules/cms/components/part-list/components/part-page/index.js.map +1 -0
- package/dist/cjs/modules/cms/components/part-list/components/part-page/index.vue2.js +78 -9
- package/dist/cjs/modules/cms/components/part-list/components/part-page/index.vue2.js.map +1 -1
- package/dist/cjs/modules/cms/components/part-list/index.js.map +1 -1
- package/dist/cjs/modules/cms/components/part-list/part-list.vue2.js +68 -16
- package/dist/cjs/modules/cms/components/part-list/part-list.vue2.js.map +1 -1
- package/dist/cjs/modules/cms/dataviews/cms-parts/CmsPartForm.js +9 -2
- package/dist/cjs/modules/cms/dataviews/cms-parts/CmsPartForm.js.map +1 -1
- package/dist/cjs/modules/ms/components/rich-text-editor/rich-text-editor.d.ts +1 -0
- package/dist/cjs/modules/ms/components/rich-text-editor/rich-text-editor.js +3 -2
- package/dist/cjs/modules/ms/components/rich-text-editor/rich-text-editor.js.map +1 -1
- package/dist/cjs/modules/ms/pages/ms-member/index.vue2.js +1 -1
- package/dist/cjs/node_modules/.pnpm/tinymce@7.1.1/node_modules/tinymce/plugins/code/plugin.js +87 -0
- package/dist/cjs/node_modules/.pnpm/tinymce@7.1.1/node_modules/tinymce/plugins/code/plugin.js.map +1 -0
- package/dist/esm/components/data-model/data-form/views/form-view/form-view.js +1 -1
- package/dist/esm/components/data-model/data-form/views/form-view/form-view.js.map +1 -1
- package/dist/esm/components/data-model/data-table/views/table-view/table-view.d.ts +3 -2
- package/dist/esm/components/data-model/data-table/views/table-view/table-view.js +3 -1
- package/dist/esm/components/data-model/data-table/views/table-view/table-view.js.map +1 -1
- package/dist/esm/modules/cms/components/part-list/components/article-table/index.d.ts +17 -0
- package/dist/esm/modules/cms/components/part-list/components/article-table/index.js +7 -0
- package/dist/esm/modules/cms/components/part-list/components/article-table/index.js.map +1 -0
- package/dist/esm/modules/cms/components/part-list/components/article-table/index.vue.d.ts +17 -0
- package/dist/esm/modules/cms/components/part-list/components/article-table/index.vue.js +7 -0
- package/dist/esm/modules/cms/components/part-list/components/article-table/index.vue.js.map +1 -0
- package/dist/esm/modules/cms/components/part-list/components/article-table/index.vue2.js +157 -0
- package/dist/esm/modules/cms/components/part-list/components/article-table/index.vue2.js.map +1 -0
- package/dist/esm/modules/cms/components/part-list/components/index.d.ts +3 -0
- package/dist/esm/modules/cms/components/part-list/components/index.js +4 -0
- package/dist/esm/modules/cms/components/part-list/components/index.js.map +1 -0
- package/dist/esm/modules/cms/components/part-list/components/page-container/index.d.ts +107 -0
- package/dist/esm/modules/cms/components/part-list/components/page-container/index.js +7 -0
- package/dist/esm/modules/cms/components/part-list/components/page-container/index.js.map +1 -0
- package/dist/esm/modules/cms/components/part-list/components/page-container/index.vue.d.ts +19 -0
- package/dist/esm/modules/cms/components/part-list/components/page-container/index.vue.js +7 -0
- package/dist/esm/modules/cms/components/part-list/components/page-container/index.vue.js.map +1 -0
- package/dist/esm/modules/cms/components/part-list/components/page-container/index.vue2.js +97 -0
- package/dist/esm/modules/cms/components/part-list/components/page-container/index.vue2.js.map +1 -0
- package/dist/esm/modules/cms/components/part-list/components/part-page/index.d.ts +26 -0
- package/dist/esm/modules/cms/components/part-list/components/part-page/index.js +7 -0
- package/dist/esm/modules/cms/components/part-list/components/part-page/index.js.map +1 -0
- package/dist/esm/modules/cms/components/part-list/components/part-page/index.vue2.js +79 -10
- package/dist/esm/modules/cms/components/part-list/components/part-page/index.vue2.js.map +1 -1
- package/dist/esm/modules/cms/components/part-list/index.js.map +1 -1
- package/dist/esm/modules/cms/components/part-list/part-list.vue2.js +69 -17
- package/dist/esm/modules/cms/components/part-list/part-list.vue2.js.map +1 -1
- package/dist/esm/modules/cms/dataviews/cms-parts/CmsPartForm.js +9 -2
- package/dist/esm/modules/cms/dataviews/cms-parts/CmsPartForm.js.map +1 -1
- package/dist/esm/modules/ms/components/rich-text-editor/rich-text-editor.d.ts +1 -0
- package/dist/esm/modules/ms/components/rich-text-editor/rich-text-editor.js +3 -2
- package/dist/esm/modules/ms/components/rich-text-editor/rich-text-editor.js.map +1 -1
- package/dist/esm/modules/ms/pages/ms-member/index.vue2.js +1 -1
- package/dist/esm/node_modules/.pnpm/tinymce@7.1.1/node_modules/tinymce/plugins/code/plugin.js +85 -0
- package/dist/esm/node_modules/.pnpm/tinymce@7.1.1/node_modules/tinymce/plugins/code/plugin.js.map +1 -0
- package/dist/style/components/index.css +1 -1
- package/dist/style/components/part-list.css +1 -1
- package/dist/style/components/part-page.css +1 -1
- package/dist/style/index.css +1 -1
- package/dist/style/src/components/part-list.scss +8 -1
- package/dist/style/src/components/part-page.scss +29 -1
- package/package.json +4 -4
|
@@ -0,0 +1,107 @@
|
|
|
1
|
+
export declare const MKPageContainer: import("@maketribe/utils").SFCWithInstall<{
|
|
2
|
+
new (...args: any[]): {
|
|
3
|
+
$: import("vue").ComponentInternalInstance;
|
|
4
|
+
$data: {};
|
|
5
|
+
$props: {
|
|
6
|
+
key?: string | number | symbol | undefined;
|
|
7
|
+
style?: unknown;
|
|
8
|
+
ref?: import("vue").VNodeRef | undefined;
|
|
9
|
+
ref_for?: boolean | undefined;
|
|
10
|
+
ref_key?: string | undefined;
|
|
11
|
+
onVnodeBeforeMount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
12
|
+
[key: string]: any;
|
|
13
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
14
|
+
[key: string]: any;
|
|
15
|
+
}>) => void)[] | undefined;
|
|
16
|
+
onVnodeMounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
17
|
+
[key: string]: any;
|
|
18
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
19
|
+
[key: string]: any;
|
|
20
|
+
}>) => void)[] | undefined;
|
|
21
|
+
onVnodeBeforeUpdate?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
22
|
+
[key: string]: any;
|
|
23
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
24
|
+
[key: string]: any;
|
|
25
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
26
|
+
[key: string]: any;
|
|
27
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
28
|
+
[key: string]: any;
|
|
29
|
+
}>) => void)[] | undefined;
|
|
30
|
+
onVnodeUpdated?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
31
|
+
[key: string]: any;
|
|
32
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
33
|
+
[key: string]: any;
|
|
34
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
35
|
+
[key: string]: any;
|
|
36
|
+
}>, oldVNode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
37
|
+
[key: string]: any;
|
|
38
|
+
}>) => void)[] | undefined;
|
|
39
|
+
onVnodeBeforeUnmount?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
40
|
+
[key: string]: any;
|
|
41
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
42
|
+
[key: string]: any;
|
|
43
|
+
}>) => void)[] | undefined;
|
|
44
|
+
onVnodeUnmounted?: ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
45
|
+
[key: string]: any;
|
|
46
|
+
}>) => void) | ((vnode: import("vue").VNode<import("vue").RendererNode, import("vue").RendererElement, {
|
|
47
|
+
[key: string]: any;
|
|
48
|
+
}>) => void)[] | undefined;
|
|
49
|
+
class?: unknown;
|
|
50
|
+
readonly dataForm?: import("@maketribe/dm").DataForm<unknown, unknown, import("@maketribe/dm").FormColumn> | undefined;
|
|
51
|
+
};
|
|
52
|
+
$attrs: {
|
|
53
|
+
[x: string]: unknown;
|
|
54
|
+
};
|
|
55
|
+
$refs: {
|
|
56
|
+
[x: string]: unknown;
|
|
57
|
+
};
|
|
58
|
+
$slots: Readonly<{
|
|
59
|
+
[name: string]: import("vue").Slot<any> | undefined;
|
|
60
|
+
}>;
|
|
61
|
+
$root: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
62
|
+
$parent: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null;
|
|
63
|
+
$emit: (event: string, ...args: any[]) => void;
|
|
64
|
+
$el: any;
|
|
65
|
+
$options: import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
66
|
+
dataForm: {
|
|
67
|
+
type: typeof import("@maketribe/dm").DataForm;
|
|
68
|
+
};
|
|
69
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}> & {
|
|
70
|
+
beforeCreate?: ((() => void) | (() => void)[]) | undefined;
|
|
71
|
+
created?: ((() => void) | (() => void)[]) | undefined;
|
|
72
|
+
beforeMount?: ((() => void) | (() => void)[]) | undefined;
|
|
73
|
+
mounted?: ((() => void) | (() => void)[]) | undefined;
|
|
74
|
+
beforeUpdate?: ((() => void) | (() => void)[]) | undefined;
|
|
75
|
+
updated?: ((() => void) | (() => void)[]) | undefined;
|
|
76
|
+
activated?: ((() => void) | (() => void)[]) | undefined;
|
|
77
|
+
deactivated?: ((() => void) | (() => void)[]) | undefined;
|
|
78
|
+
beforeDestroy?: ((() => void) | (() => void)[]) | undefined;
|
|
79
|
+
beforeUnmount?: ((() => void) | (() => void)[]) | undefined;
|
|
80
|
+
destroyed?: ((() => void) | (() => void)[]) | undefined;
|
|
81
|
+
unmounted?: ((() => void) | (() => void)[]) | undefined;
|
|
82
|
+
renderTracked?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
83
|
+
renderTriggered?: (((e: import("vue").DebuggerEvent) => void) | ((e: import("vue").DebuggerEvent) => void)[]) | undefined;
|
|
84
|
+
errorCaptured?: (((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void) | ((err: unknown, instance: import("vue").ComponentPublicInstance<{}, {}, {}, {}, {}, {}, {}, {}, false, import("vue").ComponentOptionsBase<any, any, any, any, any, any, any, any, any, {}, {}, string, {}>, {}, {}> | null, info: string) => boolean | void)[]) | undefined;
|
|
85
|
+
};
|
|
86
|
+
$forceUpdate: () => void;
|
|
87
|
+
$nextTick: typeof import("vue").nextTick;
|
|
88
|
+
$watch<T extends string | ((...args: any) => any)>(source: T, cb: T extends (...args: any) => infer R ? (args_0: R, args_1: R) => any : (...args: any) => any, options?: import("vue").WatchOptions<boolean> | undefined): import("vue").WatchStopHandle;
|
|
89
|
+
} & Readonly<import("vue").ExtractPropTypes<{
|
|
90
|
+
dataForm: {
|
|
91
|
+
type: typeof import("@maketribe/dm").DataForm;
|
|
92
|
+
};
|
|
93
|
+
}>> & import("vue").ShallowUnwrapRef<{}> & {} & import("vue").ComponentCustomProperties & {};
|
|
94
|
+
__isFragment?: undefined;
|
|
95
|
+
__isTeleport?: undefined;
|
|
96
|
+
__isSuspense?: undefined;
|
|
97
|
+
} & import("vue").ComponentOptionsBase<Readonly<import("vue").ExtractPropTypes<{
|
|
98
|
+
dataForm: {
|
|
99
|
+
type: typeof import("@maketribe/dm").DataForm;
|
|
100
|
+
};
|
|
101
|
+
}>>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, {}, {}, string, {}> & import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps & (new () => {
|
|
102
|
+
$slots: {
|
|
103
|
+
main?(_: {}): any;
|
|
104
|
+
optional?(_: {}): any;
|
|
105
|
+
};
|
|
106
|
+
})> & Record<string, any>;
|
|
107
|
+
export default MKPageContainer;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../src/modules/cms/components/part-list/components/page-container/index.ts"],"sourcesContent":["import { withInstall } from \"@maketribe/utils\";\r\nimport PageContainer from \"./index.vue\";\r\n\r\nexport const MKPageContainer = withInstall(PageContainer);\r\nexport default MKPageContainer;\r\n"],"names":[],"mappings":";;;AAGa,MAAA,eAAA,GAAkB,YAAY,aAAa;;;;"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { DataForm } from "@maketribe/dm";
|
|
2
|
+
declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<{
|
|
3
|
+
dataForm: {
|
|
4
|
+
type: typeof DataForm;
|
|
5
|
+
};
|
|
6
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
7
|
+
dataForm: {
|
|
8
|
+
type: typeof DataForm;
|
|
9
|
+
};
|
|
10
|
+
}>>, {}, {}>, {
|
|
11
|
+
main?(_: {}): any;
|
|
12
|
+
optional?(_: {}): any;
|
|
13
|
+
}>;
|
|
14
|
+
export default _default;
|
|
15
|
+
type __VLS_WithTemplateSlots<T, S> = T & {
|
|
16
|
+
new (): {
|
|
17
|
+
$slots: S;
|
|
18
|
+
};
|
|
19
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import _sfc_main from './index.vue2.js';
|
|
2
|
+
import _export_sfc from '../../../../../../_virtual/_plugin-vue_export-helper.js';
|
|
3
|
+
|
|
4
|
+
var PageContainer = /* @__PURE__ */ _export_sfc(_sfc_main, [["__file", "D:\\project\\\u7801\u5BA2\u90E8\u843D\u6846\u67B6\\make-appclient\\packages\\ms-app\\src\\modules\\cms\\components\\part-list\\components\\page-container\\index.vue"]]);
|
|
5
|
+
|
|
6
|
+
export { PageContainer as default };
|
|
7
|
+
//# sourceMappingURL=index.vue.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.vue.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;"}
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
import { defineComponent, computed, openBlock, createBlock, unref, withCtx, createVNode, createTextVNode, createElementVNode, renderSlot } from 'vue';
|
|
2
|
+
import { ElButton, ElCard } from 'element-plus';
|
|
3
|
+
import '../../../../../../components/basic/svg-icon/index.js';
|
|
4
|
+
import '../../../../../../components/basic/button/button-options.js';
|
|
5
|
+
import '../../../../../../components/basic/config-provider/index.js';
|
|
6
|
+
import '../../../../../../components/basic/data-table-select-dialog/index.js';
|
|
7
|
+
import '../../../../../../components/basic/data-table-select/index.js';
|
|
8
|
+
import '../../../../../../components/basic/data-select/index.js';
|
|
9
|
+
import '../../../../../../components/basic/pagination/index.js';
|
|
10
|
+
import '../../../../../../components/basic/system-provider/index.js';
|
|
11
|
+
import '../../../../../../components/basic/json-editor/index.js';
|
|
12
|
+
import '../../../../../../components/basic/page-container/index.js';
|
|
13
|
+
import '../../../../../../components/basic/date-picker/index.js';
|
|
14
|
+
import '../../../../../../components/basic/icon-select/index.js';
|
|
15
|
+
import '../../../../../../components/basic/upload-file/upload-file.js';
|
|
16
|
+
import '@maketribe/request';
|
|
17
|
+
import { DataForm } from '@maketribe/dm';
|
|
18
|
+
import '@maketribe/utils';
|
|
19
|
+
import '../../../../../../core/DataModelDefines.js';
|
|
20
|
+
import 'vue-router';
|
|
21
|
+
import '@maketribe/locale';
|
|
22
|
+
import '../../../../../../components/basic/upload-file/context/web-file-upload-context.js';
|
|
23
|
+
import '../../../../../../components/basic/upload-file/context/web-file-upload-context-options.js';
|
|
24
|
+
import '../../../../../../components/basic/upload-file/ui/upload-image/index.js';
|
|
25
|
+
import '../../../../../../components/basic/upload-file/upload-file-options.js';
|
|
26
|
+
import { MKDataForm } from '../../../../../../components/data-model/data-form/index.js';
|
|
27
|
+
import '../../../../../../components/data-model/data-table/index.js';
|
|
28
|
+
import '../../../../../../components/data-model/data-table-pagination/index.js';
|
|
29
|
+
import '../../../../../../components/business/verify-dialog/index.js';
|
|
30
|
+
import { MKFormView } from '../../../../../../components/data-model/data-form/views/form-view/index.js';
|
|
31
|
+
|
|
32
|
+
const _hoisted_1 = { class: "part-page" };
|
|
33
|
+
const _hoisted_2 = { class: "part-page__main" };
|
|
34
|
+
const _hoisted_3 = /* @__PURE__ */ createElementVNode(
|
|
35
|
+
"div",
|
|
36
|
+
{ class: "part-page__title" },
|
|
37
|
+
"\u53EF\u9009\u914D\u7F6E",
|
|
38
|
+
-1
|
|
39
|
+
/* HOISTED */
|
|
40
|
+
);
|
|
41
|
+
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
42
|
+
__name: "index",
|
|
43
|
+
props: {
|
|
44
|
+
dataForm: {
|
|
45
|
+
type: DataForm
|
|
46
|
+
}
|
|
47
|
+
},
|
|
48
|
+
setup(__props) {
|
|
49
|
+
const props = __props;
|
|
50
|
+
console.log(props.dataForm);
|
|
51
|
+
const dataForm = computed(() => {
|
|
52
|
+
return props.dataForm;
|
|
53
|
+
});
|
|
54
|
+
return (_ctx, _cache) => {
|
|
55
|
+
return openBlock(), createBlock(unref(MKDataForm), {
|
|
56
|
+
dataForm: dataForm.value,
|
|
57
|
+
style: { "height": "100%" }
|
|
58
|
+
}, {
|
|
59
|
+
default: withCtx(() => [
|
|
60
|
+
createVNode(unref(MKFormView), { dataForm: dataForm.value }, {
|
|
61
|
+
"footer-button": withCtx(() => [
|
|
62
|
+
createVNode(unref(ElButton), { type: "primary" }, {
|
|
63
|
+
default: withCtx(() => [
|
|
64
|
+
createTextVNode("\u9884\u89C8")
|
|
65
|
+
]),
|
|
66
|
+
_: 1
|
|
67
|
+
/* STABLE */
|
|
68
|
+
})
|
|
69
|
+
]),
|
|
70
|
+
default: withCtx(() => [
|
|
71
|
+
createElementVNode("div", _hoisted_1, [
|
|
72
|
+
createElementVNode("div", _hoisted_2, [
|
|
73
|
+
renderSlot(_ctx.$slots, "main")
|
|
74
|
+
]),
|
|
75
|
+
createVNode(unref(ElCard), { class: "part-page__sub" }, {
|
|
76
|
+
default: withCtx(() => [
|
|
77
|
+
_hoisted_3,
|
|
78
|
+
renderSlot(_ctx.$slots, "optional")
|
|
79
|
+
]),
|
|
80
|
+
_: 3
|
|
81
|
+
/* FORWARDED */
|
|
82
|
+
})
|
|
83
|
+
])
|
|
84
|
+
]),
|
|
85
|
+
_: 3
|
|
86
|
+
/* FORWARDED */
|
|
87
|
+
}, 8, ["dataForm"])
|
|
88
|
+
]),
|
|
89
|
+
_: 3
|
|
90
|
+
/* FORWARDED */
|
|
91
|
+
}, 8, ["dataForm"]);
|
|
92
|
+
};
|
|
93
|
+
}
|
|
94
|
+
});
|
|
95
|
+
|
|
96
|
+
export { _sfc_main as default };
|
|
97
|
+
//# sourceMappingURL=index.vue2.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.vue2.js","sources":["../../../../../../../../src/modules/cms/components/part-list/components/page-container/index.vue"],"sourcesContent":["<template>\r\n\t<MKDataForm :dataForm=\"dataForm\" style=\"height: 100%;\">\r\n\t\t<MKFormView :dataForm=\"dataForm\">\r\n\t\t\t<div class=\"part-page\">\r\n\t\t\t\t<div class=\"part-page__main\">\r\n\t\t\t\t\t<slot name=\"main\"></slot>\r\n\t\t\t\t</div>\r\n\t\t\t\t<ElCard class=\"part-page__sub\">\r\n\t\t\t\t\t<div class=\"part-page__title\">可选配置</div>\r\n\t\t\t\t\t<slot name=\"optional\"></slot>\r\n\t\t\t\t</ElCard>\r\n\t\t\t</div>\r\n\t\t\t<template #footer-button>\r\n\t\t\t\t<ElButton type=\"primary\">预览</ElButton>\r\n\t\t\t</template>\r\n\t\t</MKFormView>\r\n\t</MKDataForm>\r\n</template>\r\n<script setup lang='ts'>\r\nimport { ElDialog, ElButton, ElCard, ElCollapse } from 'element-plus';\r\nimport { computed, reactive, onMounted, ref } from \"vue\";\r\nimport { MKFormView, MKDataForm, MKForm, MKDataFormItem } from \"../../../../../../components\";\r\nimport { DataForm } from \"@maketribe/dm\"\r\n\r\nconst props = defineProps({\r\n\tdataForm: {\r\n\t\ttype: DataForm,\r\n\t},\r\n})\r\nconsole.log(props.dataForm)\r\nconst dataForm = computed(() => {\r\n\treturn props.dataForm as DataForm\r\n})\r\n</script>"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6BA,IAAQ,OAAA,CAAA,GAAA,CAAI,MAAM,QAAQ,CAAA,CAAA;AAC1B,IAAM,MAAA,QAAA,GAAW,SAAS,MAAM;AAC/B,MAAA,OAAO,KAAM,CAAA,QAAA,CAAA;AAAA,KACb,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
export declare const MKPartPage: import("@maketribe/utils").SFCWithInstall<import("vue").DefineComponent<{
|
|
2
|
+
editId: {
|
|
3
|
+
type: StringConstructor;
|
|
4
|
+
default: string;
|
|
5
|
+
};
|
|
6
|
+
pid: {
|
|
7
|
+
type: StringConstructor;
|
|
8
|
+
default: string;
|
|
9
|
+
};
|
|
10
|
+
}, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("onCancel" | "onSubmitted")[], "onCancel" | "onSubmitted", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{
|
|
11
|
+
editId: {
|
|
12
|
+
type: StringConstructor;
|
|
13
|
+
default: string;
|
|
14
|
+
};
|
|
15
|
+
pid: {
|
|
16
|
+
type: StringConstructor;
|
|
17
|
+
default: string;
|
|
18
|
+
};
|
|
19
|
+
}>> & {
|
|
20
|
+
onOnCancel?: ((...args: any[]) => any) | undefined;
|
|
21
|
+
onOnSubmitted?: ((...args: any[]) => any) | undefined;
|
|
22
|
+
}, {
|
|
23
|
+
pid: string;
|
|
24
|
+
editId: string;
|
|
25
|
+
}, {}>> & Record<string, any>;
|
|
26
|
+
export default MKPartPage;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../../../src/modules/cms/components/part-list/components/part-page/index.ts"],"sourcesContent":["import { withInstall } from \"@maketribe/utils\";\r\nimport PartPage from \"./index.vue\";\r\n\r\nexport const MKPartPage = withInstall(PartPage);\r\nexport default MKPartPage;\r\n"],"names":[],"mappings":";;;AAGa,MAAA,UAAA,GAAa,YAAY,QAAQ;;;;"}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { defineComponent, reactive, onMounted, openBlock, createBlock, unref, withCtx, createVNode } from 'vue';
|
|
1
|
+
import { defineComponent, reactive, computed, ref, onMounted, resolveComponent, openBlock, createBlock, unref, withCtx, createVNode, createCommentVNode } from 'vue';
|
|
2
|
+
import { ElCollapse } from 'element-plus';
|
|
2
3
|
import { CmsPartForm } from '../../../../dataviews/cms-parts/CmsPartForm.js';
|
|
3
4
|
import '@maketribe/dm';
|
|
4
|
-
import 'element-plus';
|
|
5
5
|
import '@maketribe/utils';
|
|
6
6
|
import '../../../../../../core/DataModelDefines.js';
|
|
7
7
|
import 'vue-router';
|
|
@@ -24,11 +24,14 @@ import '../../../../../../components/basic/upload-file/context/web-file-upload-c
|
|
|
24
24
|
import '../../../../../../components/basic/upload-file/context/web-file-upload-context-options.js';
|
|
25
25
|
import '../../../../../../components/basic/upload-file/ui/upload-image/index.js';
|
|
26
26
|
import '../../../../../../components/basic/upload-file/upload-file-options.js';
|
|
27
|
-
import
|
|
27
|
+
import '../../../../../../components/data-model/data-form/index.js';
|
|
28
28
|
import '../../../../../../components/data-model/data-table/index.js';
|
|
29
29
|
import '../../../../../../components/data-model/data-table-pagination/index.js';
|
|
30
30
|
import '../../../../../../components/business/verify-dialog/index.js';
|
|
31
|
-
import
|
|
31
|
+
import './index.js';
|
|
32
|
+
import '../article-table/index.js';
|
|
33
|
+
import { MKPageContainer } from '../page-container/index.js';
|
|
34
|
+
import { MKDataFormItem } from '../../../../../../components/data-model/data-form/data-form-item/index.js';
|
|
32
35
|
|
|
33
36
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
34
37
|
__name: "index",
|
|
@@ -46,6 +49,11 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
46
49
|
setup(__props, { emit }) {
|
|
47
50
|
const props = __props;
|
|
48
51
|
const dataForm = reactive(new CmsPartForm());
|
|
52
|
+
const isArticle = computed(() => dataForm.data?.cmsPartTypeId == 2);
|
|
53
|
+
const isMenu = computed(() => dataForm.data?.cmsPartTypeId == 3);
|
|
54
|
+
const isExternalMenu = computed(() => dataForm.data?.cmsPartTypeId == 2);
|
|
55
|
+
const activeName = ref(["position", "seo", "template"]);
|
|
56
|
+
window.dddd = dataForm;
|
|
49
57
|
dataForm.cancelEvent.on(() => {
|
|
50
58
|
emit("onCancel");
|
|
51
59
|
});
|
|
@@ -63,12 +71,73 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
63
71
|
}
|
|
64
72
|
});
|
|
65
73
|
return (_ctx, _cache) => {
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
createVNode(unref(
|
|
74
|
+
const _component_ElCollapseItem = resolveComponent("ElCollapseItem");
|
|
75
|
+
return openBlock(), createBlock(unref(MKPageContainer), { dataForm }, {
|
|
76
|
+
main: withCtx(() => [
|
|
77
|
+
createVNode(unref(MKDataFormItem), { name: "cmsPartTypeId" }),
|
|
78
|
+
createVNode(unref(MKDataFormItem), { name: "parentId" }),
|
|
79
|
+
createVNode(unref(MKDataFormItem), { name: "title" }),
|
|
80
|
+
createVNode(unref(MKDataFormItem), { name: "name" }),
|
|
81
|
+
!isExternalMenu.value ? (openBlock(), createBlock(unref(MKDataFormItem), {
|
|
82
|
+
key: 0,
|
|
83
|
+
name: "externalLink"
|
|
84
|
+
})) : createCommentVNode("v-if", true),
|
|
85
|
+
isExternalMenu.value ? (openBlock(), createBlock(unref(MKDataFormItem), {
|
|
86
|
+
key: 1,
|
|
87
|
+
name: "content"
|
|
88
|
+
})) : createCommentVNode("v-if", true)
|
|
89
|
+
]),
|
|
90
|
+
optional: withCtx(() => [
|
|
91
|
+
createVNode(unref(ElCollapse), {
|
|
92
|
+
modelValue: activeName.value,
|
|
93
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = ($event) => activeName.value = $event),
|
|
94
|
+
class: "part-page__optional"
|
|
95
|
+
}, {
|
|
96
|
+
default: withCtx(() => [
|
|
97
|
+
isArticle.value ? (openBlock(), createBlock(_component_ElCollapseItem, {
|
|
98
|
+
key: 0,
|
|
99
|
+
title: "SEO\u8BBE\u7F6E",
|
|
100
|
+
name: "seo"
|
|
101
|
+
}, {
|
|
102
|
+
default: withCtx(() => [
|
|
103
|
+
createVNode(unref(MKDataFormItem), { name: "seoKeywords" }),
|
|
104
|
+
createVNode(unref(MKDataFormItem), { name: "seoDesc" })
|
|
105
|
+
]),
|
|
106
|
+
_: 1
|
|
107
|
+
/* STABLE */
|
|
108
|
+
})) : createCommentVNode("v-if", true),
|
|
109
|
+
isArticle.value ? (openBlock(), createBlock(_component_ElCollapseItem, {
|
|
110
|
+
key: 1,
|
|
111
|
+
title: "\u6A21\u677F\u8BBE\u7F6E",
|
|
112
|
+
name: "template"
|
|
113
|
+
}, {
|
|
114
|
+
default: withCtx(() => [
|
|
115
|
+
createVNode(unref(MKDataFormItem), { name: "coverTemplate" }),
|
|
116
|
+
createVNode(unref(MKDataFormItem), { name: "listTemplate" }),
|
|
117
|
+
createVNode(unref(MKDataFormItem), { name: "contentTemplate" })
|
|
118
|
+
]),
|
|
119
|
+
_: 1
|
|
120
|
+
/* STABLE */
|
|
121
|
+
})) : createCommentVNode("v-if", true),
|
|
122
|
+
createVNode(_component_ElCollapseItem, {
|
|
123
|
+
title: "\u4F4D\u7F6E\u8BBE\u7F6E",
|
|
124
|
+
name: "position"
|
|
125
|
+
}, {
|
|
126
|
+
default: withCtx(() => [
|
|
127
|
+
createVNode(unref(MKDataFormItem), { name: "sortNo" }),
|
|
128
|
+
!isMenu.value ? (openBlock(), createBlock(unref(MKDataFormItem), {
|
|
129
|
+
key: 0,
|
|
130
|
+
name: "isShowMenu"
|
|
131
|
+
})) : createCommentVNode("v-if", true),
|
|
132
|
+
createVNode(unref(MKDataFormItem), { name: "isHome" })
|
|
133
|
+
]),
|
|
134
|
+
_: 1
|
|
135
|
+
/* STABLE */
|
|
136
|
+
})
|
|
137
|
+
]),
|
|
138
|
+
_: 1
|
|
139
|
+
/* STABLE */
|
|
140
|
+
}, 8, ["modelValue"])
|
|
72
141
|
]),
|
|
73
142
|
_: 1
|
|
74
143
|
/* STABLE */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.vue2.js","sources":["../../../../../../../../src/modules/cms/components/part-list/components/part-page/index.vue"],"sourcesContent":["<template>\r\n\t<
|
|
1
|
+
{"version":3,"file":"index.vue2.js","sources":["../../../../../../../../src/modules/cms/components/part-list/components/part-page/index.vue"],"sourcesContent":["<template>\r\n\t<MKPageContainer :dataForm=\"dataForm\">\r\n\t\t<template #main>\r\n\t\t\t<MKDataFormItem name=\"cmsPartTypeId\"></MKDataFormItem>\r\n\t\t\t<MKDataFormItem name=\"parentId\"></MKDataFormItem>\r\n\t\t\t<MKDataFormItem name=\"title\"></MKDataFormItem>\r\n\t\t\t<MKDataFormItem name=\"name\"></MKDataFormItem>\r\n\t\t\t<MKDataFormItem name=\"externalLink\" v-if=\"!isExternalMenu\"></MKDataFormItem>\r\n\t\t\t<MKDataFormItem name=\"content\" v-if=\"isExternalMenu\"></MKDataFormItem>\r\n\t\t</template>\r\n\t\t<template #optional>\r\n\t\t\t<ElCollapse v-model=\"activeName\" class=\"part-page__optional\">\r\n\t\t\t\t<ElCollapseItem title=\"SEO设置\" name=\"seo\" v-if=\"isArticle\">\r\n\t\t\t\t\t<MKDataFormItem name=\"seoKeywords\"></MKDataFormItem>\r\n\t\t\t\t\t<MKDataFormItem name=\"seoDesc\"></MKDataFormItem>\r\n\t\t\t\t</ElCollapseItem>\r\n\t\t\t\t<ElCollapseItem title=\"模板设置\" name=\"template\" v-if=\"isArticle\">\r\n\t\t\t\t\t<MKDataFormItem name=\"coverTemplate\"></MKDataFormItem>\r\n\t\t\t\t\t<MKDataFormItem name=\"listTemplate\"></MKDataFormItem>\r\n\t\t\t\t\t<MKDataFormItem name=\"contentTemplate\"></MKDataFormItem>\r\n\t\t\t\t</ElCollapseItem>\r\n\t\t\t\t<ElCollapseItem title=\"位置设置\" name=\"position\">\r\n\t\t\t\t\t<MKDataFormItem name=\"sortNo\"></MKDataFormItem>\r\n\t\t\t\t\t<MKDataFormItem name=\"isShowMenu\" v-if=\"!isMenu\"></MKDataFormItem>\r\n\t\t\t\t\t<MKDataFormItem name=\"isHome\"></MKDataFormItem>\r\n\t\t\t\t</ElCollapseItem>\r\n\t\t\t</ElCollapse>\r\n\t\t</template>\r\n\t</MKPageContainer>\r\n</template>\r\n<script setup lang='ts'>\r\nimport { ElDialog, ElButton, ElCard, ElCollapse } from 'element-plus';\r\nimport { computed, reactive, onMounted, ref } from \"vue\";\r\nimport { CmsPartForm } from \"../../../../dataviews/cms-parts\";\r\nimport { MKFormView, MKDataForm, MKForm, MKDataFormItem } from \"../../../../../../components\";\r\nimport { MKPageContainer } from \"../index\"\r\nconst dataForm = reactive(new CmsPartForm()) as CmsPartForm;\r\nconst props = defineProps({\r\n\teditId: {\r\n\t\ttype: String,\r\n\t\tdefault: \"\"\r\n\t},\r\n\tpid: {\r\n\t\ttype: String,\r\n\t\tdefault: \"\"\r\n\t}\r\n})\r\nconst emit = defineEmits([\"onCancel\", \"onSubmitted\"])\r\n\r\nconst isArticle = computed(() => dataForm.data?.cmsPartTypeId == 2);\r\nconst isMenu = computed(() => dataForm.data?.cmsPartTypeId == 3);\r\nconst isExternalMenu = computed(() => dataForm.data?.cmsPartTypeId == 2);\r\n\r\nconst activeName = ref([\"position\", \"seo\", \"template\"]);\r\n\r\n(window as any).dddd = dataForm;\r\n\r\ndataForm.cancelEvent.on(() => {\r\n\temit(\"onCancel\")\r\n})\r\n\r\ndataForm.submittedEvent.on((data) => {\r\n\temit(\"onSubmitted\", data)\r\n})\r\n\r\nonMounted(async () => {\r\n\tif (props.editId) {\r\n\t\tdataForm.editRecord(props.editId)\r\n\t} else {\r\n\t\tawait dataForm.addRecord();\r\n\t\tif (props.pid) {\r\n\t\t\tdataForm.setData({ ...dataForm.data, parentId: props.pid })\r\n\t\t}\r\n\t}\r\n});\r\n\r\n</script>"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoCA,IAAA,MAAM,QAAW,GAAA,QAAA,CAAS,IAAI,WAAA,EAAa,CAAA,CAAA;AAa3C,IAAA,MAAM,YAAY,QAAS,CAAA,MAAM,QAAS,CAAA,IAAA,EAAM,iBAAiB,CAAC,CAAA,CAAA;AAClE,IAAA,MAAM,SAAS,QAAS,CAAA,MAAM,QAAS,CAAA,IAAA,EAAM,iBAAiB,CAAC,CAAA,CAAA;AAC/D,IAAA,MAAM,iBAAiB,QAAS,CAAA,MAAM,QAAS,CAAA,IAAA,EAAM,iBAAiB,CAAC,CAAA,CAAA;AAEvE,IAAA,MAAM,aAAa,GAAI,CAAA,CAAC,UAAY,EAAA,KAAA,EAAO,UAAU,CAAC,CAAA,CAAA;AAEtD,IAAC,OAAe,IAAO,GAAA,QAAA,CAAA;AAEvB,IAAS,QAAA,CAAA,WAAA,CAAY,GAAG,MAAM;AAC7B,MAAA,IAAA,CAAK,UAAU,CAAA,CAAA;AAAA,KACf,CAAA,CAAA;AAED,IAAS,QAAA,CAAA,cAAA,CAAe,EAAG,CAAA,CAAC,IAAS,KAAA;AACpC,MAAA,IAAA,CAAK,eAAe,IAAI,CAAA,CAAA;AAAA,KACxB,CAAA,CAAA;AAED,IAAA,SAAA,CAAU,YAAY;AACrB,MAAA,IAAI,MAAM,MAAQ,EAAA;AACjB,QAAS,QAAA,CAAA,UAAA,CAAW,MAAM,MAAM,CAAA,CAAA;AAAA,OAC1B,MAAA;AACN,QAAA,MAAM,SAAS,SAAU,EAAA,CAAA;AACzB,QAAA,IAAI,MAAM,GAAK,EAAA;AACd,UAAS,QAAA,CAAA,OAAA,CAAQ,EAAE,GAAG,QAAA,CAAS,MAAM,QAAU,EAAA,KAAA,CAAM,KAAK,CAAA,CAAA;AAAA,SAC3D;AAAA,OACD;AAAA,KACA,CAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":["../../../../../../src/modules/cms/components/part-list/index.ts"],"sourcesContent":["import { withInstall } from \"@maketribe/utils\";\r\nimport PartList from \"./part-list.vue\";\r\n\r\nexport const MKPartList
|
|
1
|
+
{"version":3,"file":"index.js","sources":["../../../../../../src/modules/cms/components/part-list/index.ts"],"sourcesContent":["import { withInstall } from \"@maketribe/utils\";\r\nimport PartList from \"./part-list.vue\";\r\n\r\nexport const MKPartList= withInstall(PartList);\r\nexport default MKPartList;\r\n"],"names":[],"mappings":";;;AAGa,MAAA,UAAA,GAAY,YAAY,QAAQ;;;;"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { defineComponent, ref, reactive, resolveComponent, resolveDirective, openBlock, createElementBlock, withDirectives, createElementVNode, createTextVNode, createVNode, unref, withCtx, toDisplayString, createBlock, createCommentVNode, vShow } from 'vue';
|
|
2
|
-
import { ElButton, ElScrollbar, ElMessageBox, ElMessage } from 'element-plus';
|
|
2
|
+
import { ElButton, ElScrollbar, ElEmpty, ElMessageBox, ElMessage } from 'element-plus';
|
|
3
3
|
import { Plus, Edit, Delete } from '@element-plus/icons-vue';
|
|
4
|
-
import
|
|
4
|
+
import { MKPartPage } from './components/part-page/index.js';
|
|
5
|
+
import { MKArticleTable } from './components/article-table/index.js';
|
|
6
|
+
import './components/page-container/index.js';
|
|
5
7
|
import { MKDataTable } from '../../../../components/data-model/data-table/index.js';
|
|
6
|
-
import '@maketribe/dm';
|
|
8
|
+
import { isWhereFilter } from '@maketribe/dm';
|
|
7
9
|
import '@maketribe/utils';
|
|
8
10
|
import '../../../../core/DataModelDefines.js';
|
|
9
11
|
import 'vue-router';
|
|
@@ -29,9 +31,11 @@ import '../../../../components/basic/upload-file/ui/upload-image/index.js';
|
|
|
29
31
|
import '../../../../components/basic/upload-file/upload-file-options.js';
|
|
30
32
|
import '../../../ms/material-upload-context/material-upload-context-options.js';
|
|
31
33
|
import '../../../ms/material-upload-context/material-upload-context.js';
|
|
34
|
+
import { CmsArticlesTable } from '../../dataviews/cms-articles/CmsArticlesTable.js';
|
|
32
35
|
import { CmsPartTree } from '../../dataviews/cms-parts/CmsPartTree.js';
|
|
33
36
|
import '../../../../components/basic/config-provider/index.js';
|
|
34
37
|
import { useI18n } from '../../../../composables/use-i18n.js';
|
|
38
|
+
import { MKTableView } from '../../../../components/data-model/data-table/views/table-view/index.js';
|
|
35
39
|
import { MKTree } from '../../../../components/data-model/data-table/views/tree/index.js';
|
|
36
40
|
|
|
37
41
|
const _hoisted_1 = { class: "cms-part" };
|
|
@@ -42,13 +46,7 @@ const _hoisted_5 = { class: "cms-part-list__left-body" };
|
|
|
42
46
|
const _hoisted_6 = { class: "mk-material-group__tools-item" };
|
|
43
47
|
const _hoisted_7 = { class: "mk-material-group__tools-item" };
|
|
44
48
|
const _hoisted_8 = { class: "mk-material-group__tools-item" };
|
|
45
|
-
const _hoisted_9 =
|
|
46
|
-
"div",
|
|
47
|
-
{ class: "cms-part-list__right" },
|
|
48
|
-
" 2 ",
|
|
49
|
-
-1
|
|
50
|
-
/* HOISTED */
|
|
51
|
-
);
|
|
49
|
+
const _hoisted_9 = { class: "cms-part-list__right" };
|
|
52
50
|
var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
53
51
|
...{ name: "MKPartList" },
|
|
54
52
|
__name: "part-list",
|
|
@@ -57,22 +55,39 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
57
55
|
const visible = ref(true);
|
|
58
56
|
const partPageVisible = ref(false);
|
|
59
57
|
const dataTree = reactive(new CmsPartTree());
|
|
58
|
+
const dataTable = reactive(new CmsArticlesTable());
|
|
60
59
|
const editId = ref("");
|
|
61
60
|
const pid = ref("");
|
|
61
|
+
const tableVisible = ref(false);
|
|
62
|
+
const articlePageVisible = ref(false);
|
|
62
63
|
const showPartHandle = () => {
|
|
63
64
|
visible.value = false;
|
|
64
65
|
partPageVisible.value = true;
|
|
65
66
|
};
|
|
67
|
+
const showArticleHandle = () => {
|
|
68
|
+
visible.value = false;
|
|
69
|
+
articlePageVisible.value = true;
|
|
70
|
+
};
|
|
66
71
|
const hidePartHandle = () => {
|
|
67
72
|
editId.value = "";
|
|
68
73
|
pid.value = "";
|
|
69
74
|
visible.value = true;
|
|
70
75
|
partPageVisible.value = false;
|
|
71
76
|
};
|
|
72
|
-
const
|
|
77
|
+
const hideArticleHandle = () => {
|
|
78
|
+
editId.value = "";
|
|
79
|
+
pid.value = "";
|
|
80
|
+
visible.value = true;
|
|
81
|
+
articlePageVisible.value = false;
|
|
82
|
+
};
|
|
83
|
+
const partFormSubmittedHandle = async (data) => {
|
|
73
84
|
hidePartHandle();
|
|
74
85
|
await dataTree.load();
|
|
75
86
|
};
|
|
87
|
+
const articleFormSubmittedHandle = async (data) => {
|
|
88
|
+
hideArticleHandle();
|
|
89
|
+
await dataTable.load();
|
|
90
|
+
};
|
|
76
91
|
const handleAddClick = (item) => {
|
|
77
92
|
pid.value = item.id;
|
|
78
93
|
showPartHandle();
|
|
@@ -101,6 +116,23 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
101
116
|
return;
|
|
102
117
|
}
|
|
103
118
|
};
|
|
119
|
+
const selectPart = (data) => {
|
|
120
|
+
tableVisible.value ||= true;
|
|
121
|
+
if (isWhereFilter(dataTable.dataFilter)) {
|
|
122
|
+
let group = dataTable.dataFilter.getDefaultGroup();
|
|
123
|
+
group.clear();
|
|
124
|
+
group.addCondition("cmsPartId", "=", data.data?.id);
|
|
125
|
+
}
|
|
126
|
+
dataTable.load();
|
|
127
|
+
};
|
|
128
|
+
dataTable.addRecordEvent.on(() => {
|
|
129
|
+
showArticleHandle();
|
|
130
|
+
});
|
|
131
|
+
dataTable.editRecordEvent.on((item) => {
|
|
132
|
+
console.log(item);
|
|
133
|
+
editId.value = item.id;
|
|
134
|
+
showArticleHandle();
|
|
135
|
+
});
|
|
104
136
|
return (_ctx, _cache) => {
|
|
105
137
|
const _component_ElIcon = resolveComponent("ElIcon");
|
|
106
138
|
const _component_ElTooltip = resolveComponent("ElTooltip");
|
|
@@ -128,8 +160,7 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
128
160
|
default: withCtx(() => [
|
|
129
161
|
createVNode(unref(MKTree), {
|
|
130
162
|
"data-tree": dataTree,
|
|
131
|
-
onNodeClick:
|
|
132
|
-
})
|
|
163
|
+
onNodeClick: selectPart
|
|
133
164
|
}, {
|
|
134
165
|
"node-main": withCtx(({ data }) => [
|
|
135
166
|
createTextVNode(
|
|
@@ -225,18 +256,39 @@ var _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
225
256
|
})
|
|
226
257
|
])
|
|
227
258
|
]),
|
|
228
|
-
_hoisted_9
|
|
259
|
+
createElementVNode("div", _hoisted_9, [
|
|
260
|
+
tableVisible.value ? (openBlock(), createBlock(unref(MKDataTable), {
|
|
261
|
+
key: 0,
|
|
262
|
+
"auto-load": false,
|
|
263
|
+
dataTable
|
|
264
|
+
}, {
|
|
265
|
+
default: withCtx(() => [
|
|
266
|
+
createVNode(unref(MKTableView), { dataTable }, null, 8, ["dataTable"])
|
|
267
|
+
]),
|
|
268
|
+
_: 1
|
|
269
|
+
/* STABLE */
|
|
270
|
+
}, 8, ["dataTable"])) : (openBlock(), createBlock(unref(ElEmpty), {
|
|
271
|
+
key: 1,
|
|
272
|
+
description: "\u8BF7\u5148\u9009\u62E9\u680F\u76EE"
|
|
273
|
+
}))
|
|
274
|
+
])
|
|
229
275
|
])), [
|
|
230
276
|
[vShow, visible.value],
|
|
231
277
|
[_directive_loading, dataTree.loading]
|
|
232
278
|
]),
|
|
233
|
-
partPageVisible.value ? (openBlock(), createBlock(
|
|
279
|
+
partPageVisible.value ? (openBlock(), createBlock(unref(MKPartPage), {
|
|
234
280
|
key: 0,
|
|
235
281
|
editId: editId.value,
|
|
236
282
|
pid: pid.value,
|
|
237
283
|
onOnCancel: hidePartHandle,
|
|
238
|
-
onOnSubmitted:
|
|
239
|
-
}, null, 8, ["editId", "pid"])) : createCommentVNode("v-if", true)
|
|
284
|
+
onOnSubmitted: partFormSubmittedHandle
|
|
285
|
+
}, null, 8, ["editId", "pid"])) : createCommentVNode("v-if", true),
|
|
286
|
+
articlePageVisible.value ? (openBlock(), createBlock(unref(MKArticleTable), {
|
|
287
|
+
key: 1,
|
|
288
|
+
editId: editId.value,
|
|
289
|
+
onOnCancel: hideArticleHandle,
|
|
290
|
+
onOnSubmitted: articleFormSubmittedHandle
|
|
291
|
+
}, null, 8, ["editId"])) : createCommentVNode("v-if", true)
|
|
240
292
|
]);
|
|
241
293
|
};
|
|
242
294
|
}
|