提交 2e5eee46 编写于 作者: KK's avatar KK

门户部件调整 看板定制参数

上级 f8a8129a
......@@ -10,7 +10,7 @@
</#list>
<template v-for="item in customizeModel">
<ion-card class="dashboard-item ios hydrated" :class="item.componentName + 'dashboard'" :key="item.id" v-if="isEnableCustomized">
<component :is="item.componentName" :viewState="viewState" :name="item.portletCodeName" :context="context" :isChildView="true" :viewparams="viewparams"></component>
<component :is="item.componentName" :isCustomize="true" :viewState="viewState" :name="item.portletCodeName" :context="context" :isChildView="true" :viewparams="viewparams"></component>
</ion-card>
</template>
</ion-grid>
......
......@@ -32,7 +32,7 @@
</#if>
</ion-list>
<ion-select ref="select" v-show="false" @ionChange="change" interface="action-sheet" :cancel-text="$t('app.button.cancel')">
<ion-select-option v-for="option of items" :key="option.value" :value="option.value">{{option.text}}</ion-select-option>
<ion-select-option v-for="option of actionBarModelData" :key="option.viewlogicname" :value="option.viewlogicname">{{option.actionName}}</ion-select-option>
</ion-select>
</ion-row>
</template>
\ No newline at end of file
......@@ -45,6 +45,14 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/ap
</#if>
/**
* 是否为定制门户
*
* @type {string}
* @memberof MyTaskMob
*/
@Prop({default:false}) protected isCustomize?: boolean;
/**
* 操作栏模型数据
*
......@@ -170,11 +178,11 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/ap
public isEditTitle = false;
/**
* 门户行为组
* 内置门户行为组
*
* @memberof ${srfclassname('${ctrl.codeName}')}
* @memberof MyTaskMob
*/
public items = [{text:'重命名',value:'rename'},{text:"删除",value:"delete",style:"color: red;"}]
public builtinItemS = [{actionName:'重命名',viewlogicname:'rename'},{actionName:"删除",viewlogicname:"delete"}]
/**
* 门户点击行为菜单
......@@ -198,7 +206,12 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/ap
public change(value:any) {
if(value.detail.value){
if(value.detail.value == 'rename' ){
this.isEditTitle = true;
this.$notice.warning("暂不支持");
}else if(value.detail.value == 'delete' ){
this.$notice.warning("暂不支持");
}
else{
this.handleItemClick(value.detail.value);
}
}
setTimeout(() => {
......@@ -209,6 +222,12 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/ap
}, 1);
}
public mounted() {
if(this.isCustomize){
this.actionBarModelData.push(...this.builtinItemS);
}
}
<#ibizinclude>
../@MACRO/CONTROL/CONTROL_BOTTOM-BASE.vue.ftl
</#ibizinclude>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册