提交 2b994e9b 编写于 作者: RedPig97's avatar RedPig97

update: 更新

上级 99749a7a
...@@ -31,7 +31,8 @@ interface ViewEmit { ...@@ -31,7 +31,8 @@ interface ViewEmit {
const emit = defineEmits<ViewEmit>(); const emit = defineEmits<ViewEmit>();
// 安装功能模块,提供状态和能力方法 // 安装功能模块,提供状态和能力方法
const { state, menu } = new IndexView(viewState, props, emit).moduleInstall(); const IndexView = new IndexView(viewState, props, emit).moduleInstall();
const { state, menu } = IndexView;
const collapsed: Ref<boolean> = ref(false); const collapsed: Ref<boolean> = ref(false);
const collapsedChange = () => { const collapsedChange = () => {
collapsed.value = !collapsed.value; collapsed.value = !collapsed.value;
...@@ -66,6 +67,7 @@ const collapsedChange = () => { ...@@ -66,6 +67,7 @@ const collapsedChange = () => {
:defaultView="state.defaultView" :defaultView="state.defaultView"
:viewParams="state.viewParams" :viewParams="state.viewParams"
:viewSubject="state.viewSubject" :viewSubject="state.viewSubject"
:parent="IndexView"
></{{codeName}}Menu> ></{{codeName}}Menu>
{{/eq}} {{/eq}}
{{/page.ctrls}} {{/page.ctrls}}
......
...@@ -29,7 +29,8 @@ interface ViewEmit { ...@@ -29,7 +29,8 @@ interface ViewEmit {
const emit = defineEmits<ViewEmit>(); const emit = defineEmits<ViewEmit>();
// 安装功能模块,提供状态和能力方法 // 安装功能模块,提供状态和能力方法
const { state, dashboard, onCtrlEvent } = new PortalView(viewState, props, emit).moduleInstall(); const PortalView = new PortalView(viewState, props, emit).moduleInstall();
const { state, dashboard, onCtrlEvent } = PortalView;
</script> </script>
...@@ -50,6 +51,7 @@ const { state, dashboard, onCtrlEvent } = new PortalView(viewState, props, emit) ...@@ -50,6 +51,7 @@ const { state, dashboard, onCtrlEvent } = new PortalView(viewState, props, emit)
:context="state.context" :context="state.context"
:viewParams="state.viewParams" :viewParams="state.viewParams"
:viewSubject="state.viewSubject" :viewSubject="state.viewSubject"
:parent="PortalView"
@ctrlEvent="onCtrlEvent" @ctrlEvent="onCtrlEvent"
></{{codeName}}Dashboard> ></{{codeName}}Dashboard>
{{/eq}} {{/eq}}
......
...@@ -29,7 +29,8 @@ interface ViewEmit { ...@@ -29,7 +29,8 @@ interface ViewEmit {
const emit = defineEmits<ViewEmit>(); const emit = defineEmits<ViewEmit>();
// 安装功能模块,提供状态和能力方法 // 安装功能模块,提供状态和能力方法
const { state, form, onToolbarEvent, onCtrlEvent } = new EditView(viewState, props, emit).moduleInstall(); const EditView = new EditView(viewState, props, emit).moduleInstall();
const { state, form, onToolbarEvent, onCtrlEvent } = EditView;
</script> </script>
...@@ -63,6 +64,7 @@ const { state, form, onToolbarEvent, onCtrlEvent } = new EditView(viewState, pro ...@@ -63,6 +64,7 @@ const { state, form, onToolbarEvent, onCtrlEvent } = new EditView(viewState, pro
:viewParams="state.viewParams" :viewParams="state.viewParams"
:controlAction="state.{{name}}.action" :controlAction="state.{{name}}.action"
:viewSubject="state.viewSubject" :viewSubject="state.viewSubject"
:parent="EditView"
@ctrlEvent="onCtrlEvent" @ctrlEvent="onCtrlEvent"
></{{codeName}}Form> ></{{codeName}}Form>
{{/eq}} {{/eq}}
......
...@@ -39,7 +39,8 @@ interface ViewEmit { ...@@ -39,7 +39,8 @@ interface ViewEmit {
const emit = defineEmits<ViewEmit>(); const emit = defineEmits<ViewEmit>();
// 安装功能模块,提供状态和能力方法 // 安装功能模块,提供状态和能力方法
const { state, grid, onCtrlEvent, onToolbarEvent, onQuickGroupEvent, onQuickSearchEvent } = new GridView(viewState, props, emit).moduleInstall(); const GridView = new GridView(viewState, props, emit).moduleInstall();
const { state, grid, onCtrlEvent, onToolbarEvent, onQuickGroupEvent, onQuickSearchEvent } = GridView;
</script> </script>
...@@ -127,6 +128,7 @@ const { state, grid, onCtrlEvent, onToolbarEvent, onQuickGroupEvent, onQuickSear ...@@ -127,6 +128,7 @@ const { state, grid, onCtrlEvent, onToolbarEvent, onQuickGroupEvent, onQuickSear
:viewParams="state.viewParams" :viewParams="state.viewParams"
:controlAction="state.{{name}}.action" :controlAction="state.{{name}}.action"
:viewSubject="state.viewSubject" :viewSubject="state.viewSubject"
:parent="GridView"
@ctrlEvent="onCtrlEvent" @ctrlEvent="onCtrlEvent"
></{{codeName}}Grid> ></{{codeName}}Grid>
{{/eq}} {{/eq}}
......
...@@ -29,6 +29,7 @@ interface ViewEmit { ...@@ -29,6 +29,7 @@ interface ViewEmit {
const emit = defineEmits<ViewEmit>(); const emit = defineEmits<ViewEmit>();
// 安装功能模块,提供状态和能力方法 // 安装功能模块,提供状态和能力方法
const MPickupView = new MPickupView(viewState, props, emit).moduleInstall();
const { state, onCancel, onConfirm, onCtrlEvent, useSelections, onMoveRight, onMoveLeft, onAllMoveRight, onAllMoveLeft } = new MPickupView(viewState, props, emit).moduleInstall(); const { state, onCancel, onConfirm, onCtrlEvent, useSelections, onMoveRight, onMoveLeft, onAllMoveRight, onAllMoveLeft } = new MPickupView(viewState, props, emit).moduleInstall();
</script> </script>
...@@ -61,6 +62,7 @@ const { state, onCancel, onConfirm, onCtrlEvent, useSelections, onMoveRight, onM ...@@ -61,6 +62,7 @@ const { state, onCancel, onConfirm, onCtrlEvent, useSelections, onMoveRight, onM
:viewParams="state.viewParams" :viewParams="state.viewParams"
:controlAction="state.{{name}}.action" :controlAction="state.{{name}}.action"
:viewSubject="state.viewSubject" :viewSubject="state.viewSubject"
:parent="MPickupView"
@onCtrlEvent="onCtrlEvent" @onCtrlEvent="onCtrlEvent"
></{{codeName}}PickupViewPanel> ></{{codeName}}PickupViewPanel>
{{/eq}} {{/eq}}
......
...@@ -38,7 +38,8 @@ interface ViewEmit { ...@@ -38,7 +38,8 @@ interface ViewEmit {
const emit = defineEmits<ViewEmit>(); const emit = defineEmits<ViewEmit>();
// 安装功能模块,提供状态和能力方法 // 安装功能模块,提供状态和能力方法
const { state, grid, onCtrlEvent, onQuickGroupEvent, onQuickSearchEvent } = new PickupGridView(viewState, props, emit).moduleInstall(); const PickupGridView = new PickupGridView(viewState, props, emit).moduleInstall();
const { state, grid, onCtrlEvent, onQuickGroupEvent, onQuickSearchEvent } = PickupGridView;
</script> </script>
<template> <template>
...@@ -66,6 +67,7 @@ const { state, grid, onCtrlEvent, onQuickGroupEvent, onQuickSearchEvent } = new ...@@ -66,6 +67,7 @@ const { state, grid, onCtrlEvent, onQuickGroupEvent, onQuickSearchEvent } = new
:viewParams="state.viewParams" :viewParams="state.viewParams"
:controlAction="state.{{camelCase name}}.action" :controlAction="state.{{camelCase name}}.action"
:viewSubject="state.viewSubject" :viewSubject="state.viewSubject"
:parent="PickupGridView"
@ctrlEvent="onCtrlEvent" @ctrlEvent="onCtrlEvent"
></{{codeName}}SearchForm> ></{{codeName}}SearchForm>
</template> </template>
......
...@@ -28,7 +28,8 @@ interface ViewEmit { ...@@ -28,7 +28,8 @@ interface ViewEmit {
const emit = defineEmits<ViewEmit>(); const emit = defineEmits<ViewEmit>();
// 安装功能模块,提供状态和能力方法 // 安装功能模块,提供状态和能力方法
const { state, onCancel, onConfirm, onCtrlEvent, selectData } = new PickupView(viewState, props, emit).moduleInstall(); const PickupView = new PickupView(viewState, props, emit).moduleInstall();
const { state, onCancel, onConfirm, onCtrlEvent, selectData } = PickupView;
</script> </script>
<template> <template>
...@@ -56,7 +57,8 @@ const { state, onCancel, onConfirm, onCtrlEvent, selectData } = new PickupView(v ...@@ -56,7 +57,8 @@ const { state, onCancel, onConfirm, onCtrlEvent, selectData } = new PickupView(v
:viewParams="state.viewParams" :viewParams="state.viewParams"
:controlAction="state.{{name}}.action" :controlAction="state.{{name}}.action"
:viewSubject="state.viewSubject" :viewSubject="state.viewSubject"
:selectData="selectData" :selectData="selectData"
:parent="PickupView"
@onCtrlEvent="onCtrlEvent" @onCtrlEvent="onCtrlEvent"
></{{codeName}}PickupViewPanel> ></{{codeName}}PickupViewPanel>
{{/eq}} {{/eq}}
......
...@@ -28,7 +28,8 @@ interface ViewEmit { ...@@ -28,7 +28,8 @@ interface ViewEmit {
const emit = defineEmits<ViewEmit>(); const emit = defineEmits<ViewEmit>();
// 安装功能模块,提供状态和能力方法 // 安装功能模块,提供状态和能力方法
const { state, onCtrlEvent } = new TabExpView(viewState, props, emit).moduleInstall(); const TabExpView = new TabExpView(viewState, props, emit).moduleInstall();
const { state, onCtrlEvent } = TabExpView;
</script> </script>
<template> <template>
...@@ -54,6 +55,7 @@ const { state, onCtrlEvent } = new TabExpView(viewState, props, emit).moduleInst ...@@ -54,6 +55,7 @@ const { state, onCtrlEvent } = new TabExpView(viewState, props, emit).moduleInst
:viewParams="state.viewParams" :viewParams="state.viewParams"
:viewSubject="state.viewSubject" :viewSubject="state.viewSubject"
:defaultActivePanel="state.defaultActivePanel" :defaultActivePanel="state.defaultActivePanel"
:parent="TabExpView"
@onCtrlEvent="onCtrlEvent" @onCtrlEvent="onCtrlEvent"
></{{codeName}}TabExpPanel> ></{{codeName}}TabExpPanel>
{{/eq}} {{/eq}}
......
...@@ -25,7 +25,8 @@ interface ViewEmit { ...@@ -25,7 +25,8 @@ interface ViewEmit {
const emit = defineEmits<ViewEmit>(); const emit = defineEmits<ViewEmit>();
// 安装功能模块 // 安装功能模块
const { state, onCtrlEvent, onToolbarEvent } = new TreeExpView(viewState, props, emit).moduleInstall(); const TreeExpView = new TreeExpView(viewState, props, emit).moduleInstall()
const { state, onCtrlEvent, onToolbarEvent } = TreeExpView;
</script> </script>
<template> <template>
...@@ -50,6 +51,7 @@ const { state, onCtrlEvent, onToolbarEvent } = new TreeExpView(viewState, props, ...@@ -50,6 +51,7 @@ const { state, onCtrlEvent, onToolbarEvent } = new TreeExpView(viewState, props,
:showBusyIndicator="true" :showBusyIndicator="true"
:viewParams="state.viewParams" :viewParams="state.viewParams"
:viewSubject="state.viewSubject" :viewSubject="state.viewSubject"
:parent="TreeExpView"
@ctrlEvent="onCtrlEvent" @ctrlEvent="onCtrlEvent"
></{{codeName}}TreeExpBar> ></{{codeName}}TreeExpBar>
{{/eq}} {{/eq}}
......
...@@ -38,7 +38,8 @@ interface ViewEmit { ...@@ -38,7 +38,8 @@ interface ViewEmit {
const emit = defineEmits<ViewEmit>(); const emit = defineEmits<ViewEmit>();
// 安装功能模块,提供状态和能力方法 // 安装功能模块,提供状态和能力方法
const { state, tree, onCtrlEvent, onToolbarEvent, onQuickGroupEvent, onQuickSearchEvent } = new TreeView(viewState, props, emit).moduleInstall(); const TreeView = new TreeView(viewState, props, emit).moduleInstall();
const { state, tree, onCtrlEvent, onToolbarEvent, onQuickGroupEvent, onQuickSearchEvent } = TreeView;
</script> </script>
...@@ -126,6 +127,7 @@ const { state, tree, onCtrlEvent, onToolbarEvent, onQuickGroupEvent, onQuickSear ...@@ -126,6 +127,7 @@ const { state, tree, onCtrlEvent, onToolbarEvent, onQuickGroupEvent, onQuickSear
:viewParams="state.viewParams" :viewParams="state.viewParams"
:controlAction="state.{{name}}.action" :controlAction="state.{{name}}.action"
:viewSubject="state.viewSubject" :viewSubject="state.viewSubject"
:parent="TreeView"
@ctrlEvent="onCtrlEvent" @ctrlEvent="onCtrlEvent"
></{{codeName}}Tree> ></{{codeName}}Tree>
{{/eq}} {{/eq}}
......
...@@ -9,6 +9,7 @@ interface Props { ...@@ -9,6 +9,7 @@ interface Props {
collapsed: boolean; collapsed: boolean;
menuAlign: "LEFT" | "TOP" | "CENTER" | "TABEXP_LEFT" | "TABEXP_TOP" | "TABEXP_RIGHT" | "TABEXP_BOTTOM" | "NONE"; menuAlign: "LEFT" | "TOP" | "CENTER" | "TABEXP_LEFT" | "TABEXP_TOP" | "TABEXP_RIGHT" | "TABEXP_BOTTOM" | "NONE";
viewParams?: IParam; viewParams?: IParam;
parent: IParam;
viewSubject: Subject<IActionParam>; viewSubject: Subject<IActionParam>;
} }
const props = withDefaults(defineProps < Props > (), { const props = withDefaults(defineProps < Props > (), {
......
...@@ -13,6 +13,7 @@ import { {{codeName}}Portlet } from '@widgets/app/{{spinalCase codeName}}-portle ...@@ -13,6 +13,7 @@ import { {{codeName}}Portlet } from '@widgets/app/{{spinalCase codeName}}-portle
interface Props { interface Props {
name:string, name:string,
parent: IParam;
context: IContext; context: IContext;
viewParams?: IParam; viewParams?: IParam;
viewSubject: Subject<IActionParam>; viewSubject: Subject<IActionParam>;
......
...@@ -19,6 +19,7 @@ import {{formDetail.psAppView.codeName}} from '@views/{{spinalCase formDetail.ps ...@@ -19,6 +19,7 @@ import {{formDetail.psAppView.codeName}} from '@views/{{spinalCase formDetail.ps
{{/each}} {{/each}}
interface Props { interface Props {
name:string, name:string,
parent: IParam;
context: IContext; context: IContext;
viewParams?: IParam; viewParams?: IParam;
controlAction: ControlAction; controlAction: ControlAction;
......
...@@ -6,6 +6,7 @@ import { GridControl, IActionParam, IParam, IContext, ControlAction, deepCopy } ...@@ -6,6 +6,7 @@ import { GridControl, IActionParam, IParam, IContext, ControlAction, deepCopy }
interface Props { interface Props {
name:string, name:string,
parent: IParam;
context: IContext; context: IContext;
viewParams: IParam; viewParams: IParam;
multiple?: boolean; multiple?: boolean;
...@@ -70,7 +71,15 @@ defineExpose({ name, state, newRow, remove, save, load, refresh, getData }); ...@@ -70,7 +71,15 @@ defineExpose({ name, state, newRow, remove, save, load, refresh, getData });
无数据 无数据
{{/if}} {{/if}}
</span> </span>
{{!-- 快速工具栏 --}} {{#if ctrl.quickToolBarItems}}
<AppToolbar
mode="button"
class="app-grid-quicktoolbar"
name="{{ctrl.quickToolBarName}}"
:actionModel="state.quickToolbar"
@onToolbarEvent="onToolbarEvent"
></AppToolbar>
{{/if}}
</div> </div>
</template> </template>
<template #headerCell="{title, column}"> <template #headerCell="{title, column}">
......
...@@ -7,6 +7,7 @@ import {{ctrl.embeddedPSAppDEView.codeName}} from '@views/{{spinalCase ctrl.embe ...@@ -7,6 +7,7 @@ import {{ctrl.embeddedPSAppDEView.codeName}} from '@views/{{spinalCase ctrl.embe
{{/if}} {{/if}}
interface Props { interface Props {
name:string, name:string,
parent: IParam;
context: IContext; context: IContext;
viewParams?: IParam; viewParams?: IParam;
controlAction: ControlAction; controlAction: ControlAction;
......
...@@ -6,6 +6,7 @@ import { SearchFormControl, IActionParam, IParam, ControlAction, IContext } from ...@@ -6,6 +6,7 @@ import { SearchFormControl, IActionParam, IParam, ControlAction, IContext } from
interface Props { interface Props {
name:string, name:string,
parent: IParam;
context: IContext; context: IContext;
viewParams?: IParam; viewParams?: IParam;
controlAction: ControlAction; controlAction: ControlAction;
......
...@@ -7,6 +7,7 @@ import { {{codeName}}TabViewPanel } from '@widgets/{{spinalCase viewPanel.psAppD ...@@ -7,6 +7,7 @@ import { {{codeName}}TabViewPanel } from '@widgets/{{spinalCase viewPanel.psAppD
{{/each}} {{/each}}
interface Props { interface Props {
name:string, name:string,
parent: IParam;
context: IContext; context: IContext;
viewParams?: IParam; viewParams?: IParam;
showBusyIndicator?: boolean; showBusyIndicator?: boolean;
...@@ -56,6 +57,7 @@ defineExpose({ name, state }); ...@@ -56,6 +57,7 @@ defineExpose({ name, state });
:context="state.context" :context="state.context"
:viewParams="state.viewParams" :viewParams="state.viewParams"
:viewSubject="state.viewSubject" :viewSubject="state.viewSubject"
:parent="parent"
@onCtrlEvent="onCtrlEvent" @onCtrlEvent="onCtrlEvent"
/> />
</a-tab-pane> </a-tab-pane>
......
...@@ -15,6 +15,7 @@ import {{viewRef.refPSAppView.name}} from '@views/{{spinalCase viewRef.refPSAppV ...@@ -15,6 +15,7 @@ import {{viewRef.refPSAppView.name}} from '@views/{{spinalCase viewRef.refPSAppV
interface Props { interface Props {
name:string, name:string,
parent: IParam;
context: IContext; context: IContext;
viewParams?: IParam; viewParams?: IParam;
showBusyIndicator?: boolean; showBusyIndicator?: boolean;
...@@ -59,6 +60,7 @@ defineExpose({ name, state }); ...@@ -59,6 +60,7 @@ defineExpose({ name, state });
:viewSubject="state.viewSubject" :viewSubject="state.viewSubject"
:selectFirstDefault="true" :selectFirstDefault="true"
:isBranchAvailable="true" :isBranchAvailable="true"
:parent="parent"
@ctrlEvent="onCtrlEvent" @ctrlEvent="onCtrlEvent"
></{{codeName}}Tree> ></{{codeName}}Tree>
{{/eq}} {{/eq}}
......
...@@ -5,6 +5,7 @@ import { ctrlState } from './{{spinalCase ctrl.codeName}}-tree-state'; ...@@ -5,6 +5,7 @@ import { ctrlState } from './{{spinalCase ctrl.codeName}}-tree-state';
interface Props { interface Props {
name:string, name:string,
parent: IParam;
context: IContext; context: IContext;
selectedData?: IParam[]; selectedData?: IParam[];
selectFirstDefault?: boolean; selectFirstDefault?: boolean;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册