提交 8b284b00 编写于 作者: Shine-zwj's avatar Shine-zwj

update:更新

上级 95f835a7
...@@ -288,6 +288,7 @@ import UIService from '@/uiservice/ui-service'; ...@@ -288,6 +288,7 @@ import UIService from '@/uiservice/ui-service';
<@compress single_line=true>${panelItem.name}:{ ${detail}, ${rawItem} }<#if panelItem_has_next>,</#if></@compress> <@compress single_line=true>${panelItem.name}:{ ${detail}, ${rawItem} }<#if panelItem_has_next>,</#if></@compress>
<#elseif panelItem.getItemType() == 'FIELD'> <#elseif panelItem.getItemType() == 'FIELD'>
<#assign field> <#assign field>
required: <#if panelItem.isAllowEmpty()>false<#else>true</#if>,
<#if panelItem.getFieldStates?? && panelItem.getFieldStates()??> <#if panelItem.getFieldStates?? && panelItem.getFieldStates()??>
fieldState: '${panelItem.getFieldStates()}', fieldState: '${panelItem.getFieldStates()}',
</#if> </#if>
...@@ -330,6 +331,8 @@ import UIService from '@/uiservice/ui-service'; ...@@ -330,6 +331,8 @@ import UIService from '@/uiservice/ui-service';
</#if> </#if>
iconAlign: '${panelItem.getIconAlign()}', iconAlign: '${panelItem.getIconAlign()}',
<#if panelItem.getPSUIAction?? && panelItem.getPSUIAction()??> <#if panelItem.getPSUIAction?? && panelItem.getPSUIAction()??>
<#assign uiAction = panelItem.getPSUIAction()/>
uiAction: { actiontarget: '${uiAction.getActionTarget()}', noprivdisplaymode: '${uiAction.getAppNoPrivDisplayMode()}', dataaccaction: '${uiAction.getDataAccessAction()}', visabled: true, disabled: false }
<#if panelItem.getPSUIAction().getPredefinedType?? && panelItem.getPSUIAction().getPredefinedType()??> <#if panelItem.getPSUIAction().getPredefinedType?? && panelItem.getPSUIAction().getPredefinedType()??>
predefinedType: '${panelItem.getPSUIAction().getPredefinedType()}', predefinedType: '${panelItem.getPSUIAction().getPredefinedType()}',
</#if> </#if>
...@@ -353,25 +356,6 @@ import UIService from '@/uiservice/ui-service'; ...@@ -353,25 +356,6 @@ import UIService from '@/uiservice/ui-service';
</#list> </#list>
}; };
/**
* 值规则对象
*
* @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')}Base
*/
public rules:any={
<#if ctrl.getAllPSPanelItems()??>
<#list ctrl.getAllPSPanelItems() as panelItem>
<#if panelItem.getItemType() == "FIELD">
${panelItem.getName()}:[
{ required: <#if panelItem.isAllowEmpty()>false<#else>true</#if>, type: 'string', message: '${panelItem.getCaption()} 值不能为空'},
{ required: <#if panelItem.isAllowEmpty()>false<#else>true</#if>, type: 'string', message: '${panelItem.getCaption()} 值不能为空'}
],
</#if>
</#list>
</#if>
};
/** /**
* 监听数据对象 * 监听数据对象
* *
...@@ -435,7 +419,7 @@ import UIService from '@/uiservice/ui-service'; ...@@ -435,7 +419,7 @@ import UIService from '@/uiservice/ui-service';
let targetData:any = this.parentRef.transformData(data); let targetData:any = this.parentRef.transformData(data);
if(this.layoutModelDetails && Object.keys(this.layoutModelDetails).length >0){ if(this.layoutModelDetails && Object.keys(this.layoutModelDetails).length >0){
Object.keys(this.layoutModelDetails).forEach((name:any) =>{ Object.keys(this.layoutModelDetails).forEach((name:any) =>{
if(this.layoutModelDetails[name] && this.layoutModelDetails[name].uiAction && this.layoutModelDetails[name].uiAction.dataAccaction && Object.is(this.layoutModelDetails[name].itemType,"BUTTON")){ if(this.layoutModelDetails[name] && this.layoutModelDetails[name].uiAction && this.layoutModelDetails[name].uiAction.dataaccaction && Object.is(this.layoutModelDetails[name].itemType,"BUTTON")){
let tempUIAction:any = JSON.parse(JSON.stringify(this.layoutModelDetails[name].uiAction)); let tempUIAction:any = JSON.parse(JSON.stringify(this.layoutModelDetails[name].uiAction));
let result: any[] = ViewTool.calcActionItemAuthState(targetData, [tempUIAction], this.appUIService ? this.appUIService : null); let result: any[] = ViewTool.calcActionItemAuthState(targetData, [tempUIAction], this.appUIService ? this.appUIService : null);
this.layoutModelDetails[name].visible = tempUIAction.visabled; this.layoutModelDetails[name].visible = tempUIAction.visabled;
......
...@@ -408,6 +408,7 @@ ${P.getCtrlCode('toolbar', 'CONTROL.vue').code} ...@@ -408,6 +408,7 @@ ${P.getCtrlCode('toolbar', 'CONTROL.vue').code}
<@compress single_line=true>${panelItem.name}:{ ${detail}, ${rawItem} }<#if panelItem_has_next>,</#if></@compress> <@compress single_line=true>${panelItem.name}:{ ${detail}, ${rawItem} }<#if panelItem_has_next>,</#if></@compress>
<#elseif panelItem.getItemType() == 'FIELD'> <#elseif panelItem.getItemType() == 'FIELD'>
<#assign field> <#assign field>
required: <#if panelItem.isAllowEmpty()>false<#else>true</#if>,
<#if panelItem.getFieldStates?? && panelItem.getFieldStates()??> <#if panelItem.getFieldStates?? && panelItem.getFieldStates()??>
fieldState: '${panelItem.getFieldStates()}', fieldState: '${panelItem.getFieldStates()}',
</#if> </#if>
...@@ -450,6 +451,8 @@ ${P.getCtrlCode('toolbar', 'CONTROL.vue').code} ...@@ -450,6 +451,8 @@ ${P.getCtrlCode('toolbar', 'CONTROL.vue').code}
</#if> </#if>
iconAlign: '${panelItem.getIconAlign()}', iconAlign: '${panelItem.getIconAlign()}',
<#if panelItem.getPSUIAction?? && panelItem.getPSUIAction()??> <#if panelItem.getPSUIAction?? && panelItem.getPSUIAction()??>
<#assign uiAction = panelItem.getPSUIAction()/>
uiAction: { actiontarget: '${uiAction.getActionTarget()}', noprivdisplaymode: '${uiAction.getAppNoPrivDisplayMode()}', dataaccaction: '${uiAction.getDataAccessAction()}', visabled: true, disabled: false }
<#if panelItem.getPSUIAction().getPredefinedType?? && panelItem.getPSUIAction().getPredefinedType()??> <#if panelItem.getPSUIAction().getPredefinedType?? && panelItem.getPSUIAction().getPredefinedType()??>
predefinedType: '${panelItem.getPSUIAction().getPredefinedType()}', predefinedType: '${panelItem.getPSUIAction().getPredefinedType()}',
</#if> </#if>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册