提交 17897ab7 编写于 作者: tony001's avatar tony001

调整状态向导面板

上级 7d9f1aab
<#-- 获取该步骤的表单 -->
<#macro getStepForm ctrlmodel step>
<#compress>
<#if ctrlmodel.getPSDEEditForms()??>
<#list ctrlmodel.getPSDEEditForms() as form>
<#if form.getPSDEWizardForm()??><#assign wizardForm = form.getPSDEWizardForm() />
<#if wizardForm.getPSDEWizardStep()??><#assign wizardStep = form.getPSDEWizardStep() />
<#if wizardStep.getId() == step.getId()>${form.getName()}</#if>
</#if>
</#if>
</#list>
</#if>
</#compress>
</#macro>
<template> <template>
<layout class="app-wizard"> <layout class="app-wizard">
<#if ctrl.getPSDEWizard?? && ctrl.getPSDEWizard()?? && ctrl.getPSDEWizard().getPSDEWizardSteps?? && ctrl.getPSDEWizard().getPSDEWizardSteps()??> <#if ctrl.getPSDEWizard?? && ctrl.getPSDEWizard()?? && ctrl.getPSDEWizard().getPSDEWizardSteps?? && ctrl.getPSDEWizard().getPSDEWizardSteps()??>
...@@ -5,7 +19,7 @@ ...@@ -5,7 +19,7 @@
<#list ctrl.getPSDEWizard().getPSDEWizardSteps() as step> <#list ctrl.getPSDEWizard().getPSDEWizardSteps() as step>
<el-step> <el-step>
<template v-slot:title> <template v-slot:title>
<div v-popover:wizardpanel_form_FirstForm_popover>${step.getTitle()}</div> <div v-popover:<@getStepForm ctrlmodel=ctrl step=step />_popover>${step.getTitle()}</div>
</template> </template>
</el-step> </el-step>
</#list> </#list>
...@@ -171,6 +185,7 @@ ...@@ -171,6 +185,7 @@
if(this.activeForm) { if(this.activeForm) {
this.historyForms.push(this.activeForm); this.historyForms.push(this.activeForm);
} }
this.doInit();
if (this.viewState) { if (this.viewState) {
this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => { this.viewStateEvent = this.viewState.subscribe(({ tag, action, data }) => {
if (Object.is(tag, this.name)) { if (Object.is(tag, this.name)) {
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册