提交 0fb294d7 编写于 作者: jlj05024111@163.com's avatar jlj05024111@163.com

feat: 更新关系视图嵌入上层视图的控制器

上级 efec17ec
import { ViewController } from '@ibiz-template/controller';
import { IModal } from '@ibiz-template/runtime'; import { IModal } from '@ibiz-template/runtime';
import { useEditViewController } from '@ibiz-template/vue-util'; import { useEditViewController } from '@ibiz-template/vue-util';
import { defineComponent, getCurrentInstance, PropType } from 'vue'; import { defineComponent, getCurrentInstance, PropType } from 'vue';
...@@ -9,6 +10,7 @@ export const EditView = defineComponent({ ...@@ -9,6 +10,7 @@ export const EditView = defineComponent({
modelPath: { type: String, required: true }, modelPath: { type: String, required: true },
modal: { type: Object as PropType<IModal> }, modal: { type: Object as PropType<IModal> },
noLoadDefault: { type: Boolean, required: false }, noLoadDefault: { type: Boolean, required: false },
parentView: { type: ViewController },
}, },
setup(props) { setup(props) {
const { proxy } = getCurrentInstance()!; const { proxy } = getCurrentInstance()!;
......
import { ViewController } from '@ibiz-template/controller';
import { IModal } from '@ibiz-template/runtime'; import { IModal } from '@ibiz-template/runtime';
import { useGridViewController } from '@ibiz-template/vue-util'; import { useGridViewController } from '@ibiz-template/vue-util';
import { import {
...@@ -14,6 +15,7 @@ export const GridView = defineComponent({ ...@@ -14,6 +15,7 @@ export const GridView = defineComponent({
modelPath: { type: String, required: true }, modelPath: { type: String, required: true },
modal: { type: Object as PropType<IModal> }, modal: { type: Object as PropType<IModal> },
noLoadDefault: { type: Boolean, required: false }, noLoadDefault: { type: Boolean, required: false },
parentView: { type: ViewController },
}, },
setup(props) { setup(props) {
const { proxy } = getCurrentInstance()!; const { proxy } = getCurrentInstance()!;
......
...@@ -5,6 +5,7 @@ import { ...@@ -5,6 +5,7 @@ import {
import { defineComponent, getCurrentInstance, PropType, Ref, ref } from 'vue'; import { defineComponent, getCurrentInstance, PropType, Ref, ref } from 'vue';
import { IModal } from '@ibiz-template/runtime'; import { IModal } from '@ibiz-template/runtime';
import '@ibiz-template/theme/style/components/views/mpickup-view/mpickup-view.scss'; import '@ibiz-template/theme/style/components/views/mpickup-view/mpickup-view.scss';
import { ViewController } from '@ibiz-template/controller';
export const MPickupView = defineComponent({ export const MPickupView = defineComponent({
props: { props: {
...@@ -13,6 +14,7 @@ export const MPickupView = defineComponent({ ...@@ -13,6 +14,7 @@ export const MPickupView = defineComponent({
modelPath: { type: String, required: true }, modelPath: { type: String, required: true },
modal: { type: Object as PropType<IModal> }, modal: { type: Object as PropType<IModal> },
noLoadDefault: { type: Boolean, required: false }, noLoadDefault: { type: Boolean, required: false },
parentView: { type: ViewController },
}, },
setup(props) { setup(props) {
const { proxy } = getCurrentInstance()!; const { proxy } = getCurrentInstance()!;
......
...@@ -67,6 +67,7 @@ export const FormDRUIPart = defineComponent({ ...@@ -67,6 +67,7 @@ export const FormDRUIPart = defineComponent({
modal: this.modal, modal: this.modal,
modelPath: this.viewPath, modelPath: this.viewPath,
noLoadDefault: this.noLoadDefault, noLoadDefault: this.noLoadDefault,
parentView: this.controller.form.view,
}, },
key: this.controller.viewComponentKey, key: this.controller.viewComponentKey,
on: { on: {
......
...@@ -54,6 +54,7 @@ export class OpenViewUtil implements IOpenViewUtil { ...@@ -54,6 +54,7 @@ export class OpenViewUtil implements IOpenViewUtil {
appView: IPSAppView, appView: IPSAppView,
context: IContext, context: IContext,
params?: IParams | undefined, params?: IParams | undefined,
_opts?: IData,
): Promise<IModalData> { ): Promise<IModalData> {
// 获取视图path // 获取视图path
const modelPath = appView.modelPath!; const modelPath = appView.modelPath!;
...@@ -72,6 +73,7 @@ export class OpenViewUtil implements IOpenViewUtil { ...@@ -72,6 +73,7 @@ export class OpenViewUtil implements IOpenViewUtil {
params, params,
modelPath, modelPath,
modal, modal,
..._opts,
}, },
opts, opts,
); );
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册