提交 e2efefe9 编写于 作者: Mosher's avatar Mosher

调整多数据部件操作栏模型标识

上级 d8488bd1
...@@ -40,10 +40,10 @@ ...@@ -40,10 +40,10 @@
<span class="date">{{ item.srfdate }}</span> <span class="date">{{ item.srfdate }}</span>
</div> </div>
<div class="app-list-item-action"> <div class="app-list-item-action">
<template v-for="(action,index) in Object.keys(ActionModel)"> <template v-for="(action,index) in Object.keys(actionModel)">
<a :key="index" style="display: inline-block;margin: 0 12px;" @click="uiAction(item, action, $event)"> <a :key="index" style="display: inline-block;margin: 0 12px;" @click="uiAction(item, action, $event)">
<i :class="ActionModel[action].icon" style="margin-right:2px;"></i> <i :class="actionModel[action].icon" style="margin-right:2px;"></i>
<span>{{ActionModel[action].caption}}</span> <span>{{actionModel[action].caption}}</span>
</a> </a>
</template> </template>
</div> </div>
...@@ -67,10 +67,10 @@ ...@@ -67,10 +67,10 @@
<#else> <#else>
<div class="app-list-item-content">{{item.srfmajortext}}</div> <div class="app-list-item-content">{{item.srfmajortext}}</div>
<div calss="app-list-item-action"> <div calss="app-list-item-action">
<template v-for="(action,index) in Object.keys(ActionModel)"> <template v-for="(action,index) in Object.keys(actionModel)">
<a :key="index" style="display: inline-block;margin: 0 12px;" @click="uiAction(item, action, $event)"> <a :key="index" style="display: inline-block;margin: 0 12px;" @click="uiAction(item, action, $event)">
<i :class="ActionModel[action].icon" style="margin-right:2px;"></i> <i :class="actionModel[action].icon" style="margin-right:2px;"></i>
<span>{{ActionModel[action].caption}}</span> <span>{{actionModel[action].caption}}</span>
</a> </a>
</template> </template>
</div> </div>
...@@ -941,7 +941,7 @@ import CodeListService from "@/codelist/codelist-service"; ...@@ -941,7 +941,7 @@ import CodeListService from "@/codelist/codelist-service";
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public ActionModel:any ={ public actionModel:any ={
<#if ctrl.getPSDEListItems?? && ctrl.getPSDEListItems()??> <#if ctrl.getPSDEListItems?? && ctrl.getPSDEListItems()??>
<#list ctrl.getPSDEListItems() as listItem> <#list ctrl.getPSDEListItems() as listItem>
<#if listItem.getPSDEUIActionGroup?? && listItem.getPSDEUIActionGroup()??> <#if listItem.getPSDEUIActionGroup?? && listItem.getPSDEUIActionGroup()??>
......
...@@ -46,10 +46,10 @@ ...@@ -46,10 +46,10 @@
</div> </div>
</div> </div>
<div class="data-view-item-action"> <div class="data-view-item-action">
<template v-for="(action,index) in Object.keys(ActionModel)"> <template v-for="(action,index) in Object.keys(actionModel)">
<button type="info" :key="index" @click="uiAction(item, action, $event)"> <button type="info" :key="index" @click="uiAction(item, action, $event)">
<i :class="ActionModel[action].icon" style="margin-right:2px;"></i> <i :class="actionModel[action].icon" style="margin-right:2px;"></i>
<span>{{ActionModel[action].caption}}</span> <span>{{actionModel[action].caption}}</span>
</button> </button>
</template> </template>
</div> </div>
...@@ -85,10 +85,10 @@ ...@@ -85,10 +85,10 @@
</div> </div>
</div> </div>
<div class="data-view-item-action"> <div class="data-view-item-action">
<template v-for="(action,index) in Object.keys(ActionModel)"> <template v-for="(action,index) in Object.keys(actionModel)">
<button type="info" :key="index" @click="uiAction(item, action, $event)"> <button type="info" :key="index" @click="uiAction(item, action, $event)">
<i :class="ActionModel[action].icon" style="margin-right:2px;"></i> <i :class="actionModel[action].icon" style="margin-right:2px;"></i>
<span>{{ActionModel[action].caption}}</span> <span>{{actionModel[action].caption}}</span>
</button> </button>
</template> </template>
</div> </div>
...@@ -489,7 +489,7 @@ import CodeListService from "@/codelist/codelist-service"; ...@@ -489,7 +489,7 @@ import CodeListService from "@/codelist/codelist-service";
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public ActionModel:any ={ public actionModel:any ={
<#if ctrl.getPSDEDataViewItems?? && ctrl.getPSDEDataViewItems()??> <#if ctrl.getPSDEDataViewItems?? && ctrl.getPSDEDataViewItems()??>
<#list ctrl.getPSDEDataViewItems() as dataViewItem> <#list ctrl.getPSDEDataViewItems() as dataViewItem>
<#if dataViewItem.getPSDEUIActionGroup?? && dataViewItem.getPSDEUIActionGroup()??> <#if dataViewItem.getPSDEUIActionGroup?? && dataViewItem.getPSDEUIActionGroup()??>
......
...@@ -176,7 +176,7 @@ ${gridColumn.getName()} ...@@ -176,7 +176,7 @@ ${gridColumn.getName()}
* @type {*} * @type {*}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public ActionModel:any ={ public actionModel:any ={
<#if ctrl.getPSUIActions()??> <#if ctrl.getPSUIActions()??>
<#list ctrl.getPSUIActions() as item> <#list ctrl.getPSUIActions() as item>
${item.getUIActionTag()}: { name: '${item.getUIActionTag()}',disabled: false, visabled: true,noprivdisplaymode:<#if item.getNoPrivDisplayMode(view)??>${item.getNoPrivDisplayMode(view)}</#if>,dataaccaction: '<#if item.getDataAccessAction()??>${item.getDataAccessAction()}</#if>', actiontarget: '${item.getActionTarget()}'}<#if item_has_next>,</#if> ${item.getUIActionTag()}: { name: '${item.getUIActionTag()}',disabled: false, visabled: true,noprivdisplaymode:<#if item.getNoPrivDisplayMode(view)??>${item.getNoPrivDisplayMode(view)}</#if>,dataaccaction: '<#if item.getDataAccessAction()??>${item.getDataAccessAction()}</#if>', actiontarget: '${item.getActionTarget()}'}<#if item_has_next>,</#if>
...@@ -655,7 +655,7 @@ ${gridColumn.getName()} ...@@ -655,7 +655,7 @@ ${gridColumn.getName()}
* @memberof ${srfclassname('${ctrl.codeName}')}Base * @memberof ${srfclassname('${ctrl.codeName}')}Base
*/ */
public getActionState(data:any){ public getActionState(data:any){
let tempActionModel:any = JSON.parse(JSON.stringify(this.ActionModel)); let tempActionModel:any = JSON.parse(JSON.stringify(this.actionModel));
let targetData:any = this.transformData(data); let targetData:any = this.transformData(data);
ViewTool.calcActionItemAuthState(targetData,tempActionModel,this.appUIService); ViewTool.calcActionItemAuthState(targetData,tempActionModel,this.appUIService);
return tempActionModel; return tempActionModel;
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册