提交 7f160620 编写于 作者: tony001's avatar tony001

导航类部件刷新行为

上级 3355dd40
......@@ -484,7 +484,22 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/co
${destroyed_block}
</#if>
}
/**
* 刷新
*
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public refresh(args?: any): void {
<#if ctrl.getXDataPSControl?? && ctrl.getXDataPSControl()??>
<#assign dataControl = ctrl.getXDataPSControl() />
const refs: any = this.$refs;
if (refs && refs.${dataControl.name}) {
refs.${dataControl.name}.refresh();
}
</#if>
}
/**
* ${ctrl.name}的选中数据事件
*
......
......@@ -486,6 +486,21 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/co
</#if>
}
/**
* 刷新
*
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public refresh(args?: any): void {
<#if ctrl.getXDataPSControl?? && ctrl.getXDataPSControl()??>
<#assign dataControl = ctrl.getXDataPSControl() />
const refs: any = this.$refs;
if (refs && refs.${dataControl.name}) {
refs.${dataControl.name}.refresh();
}
</#if>
}
/**
* 卡片视图导航选中
*
......
......@@ -367,7 +367,22 @@
${destroyed_block}
</#if>
}
/**
* 刷新
*
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public refresh(args?: any): void {
<#if ctrl.getXDataPSControl?? && ctrl.getXDataPSControl()??>
<#assign dataControl = ctrl.getXDataPSControl() />
const refs: any = this.$refs;
if (refs && refs.${dataControl.name}) {
refs.${dataControl.name}.refresh();
}
</#if>
}
/**
* ${ctrl.name}的选中数据事件
*
......
......@@ -491,6 +491,21 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/co
}
/**
* 刷新
*
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public refresh(args?: any): void {
<#if ctrl.getXDataPSControl?? && ctrl.getXDataPSControl()??>
<#assign dataControl = ctrl.getXDataPSControl() />
const refs: any = this.$refs;
if (refs && refs.${dataControl.name}) {
refs.${dataControl.name}.refresh();
}
</#if>
}
/**
* ${ctrl.name}的选中数据事件
*
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册