提交 0013a476 编写于 作者: Cano1997's avatar Cano1997

update: 表单关系界面支持默认加载配置

上级 bfb06251
...@@ -21,6 +21,12 @@ export const FormDRUIPart = defineComponent({ ...@@ -21,6 +21,12 @@ export const FormDRUIPart = defineComponent({
const ns = useNamespace('form-druipart'); const ns = useNamespace('form-druipart');
const viewPath = props.modelData.embedView.source.modelPath; const viewPath = props.modelData.embedView.source.modelPath;
let noLoadDefault = true;
// 样式2时默认加载数据
if (props.modelData.source.detailStyle === 'STYLE2') {
noLoadDefault = false;
}
// 模态对象 // 模态对象
const modal: IModal = { mode: ViewMode.EMBED }; const modal: IModal = { mode: ViewMode.EMBED };
...@@ -36,6 +42,7 @@ export const FormDRUIPart = defineComponent({ ...@@ -36,6 +42,7 @@ export const FormDRUIPart = defineComponent({
ns, ns,
modal, modal,
viewPath, viewPath,
noLoadDefault,
onNeuronInit, onNeuronInit,
}; };
}, },
...@@ -55,7 +62,7 @@ export const FormDRUIPart = defineComponent({ ...@@ -55,7 +62,7 @@ export const FormDRUIPart = defineComponent({
params: this.$props.controller.params, params: this.$props.controller.params,
modal: this.modal, modal: this.modal,
modelPath: this.viewPath, modelPath: this.viewPath,
noLoadDefault: true, noLoadDefault: this.noLoadDefault,
}, },
key: this.controller.viewComponentKey, key: this.controller.viewComponentKey,
on: { on: {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册