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

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

上级 f8a8129a
...@@ -10,7 +10,7 @@ ...@@ -10,7 +10,7 @@
</#list> </#list>
<template v-for="item in customizeModel"> <template v-for="item in customizeModel">
<ion-card class="dashboard-item ios hydrated" :class="item.componentName + 'dashboard'" :key="item.id" v-if="isEnableCustomized"> <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> </ion-card>
</template> </template>
</ion-grid> </ion-grid>
......
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
</#if> </#if>
</ion-list> </ion-list>
<ion-select ref="select" v-show="false" @ionChange="change" interface="action-sheet" :cancel-text="$t('app.button.cancel')"> <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-select>
</ion-row> </ion-row>
</template> </template>
\ No newline at end of file
...@@ -45,6 +45,14 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/ap ...@@ -45,6 +45,14 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/ap
</#if> </#if>
/**
* 是否为定制门户
*
* @type {string}
* @memberof MyTaskMob
*/
@Prop({default:false}) protected isCustomize?: boolean;
/** /**
* 操作栏模型数据 * 操作栏模型数据
* *
...@@ -170,11 +178,11 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/ap ...@@ -170,11 +178,11 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/ap
public isEditTitle = false; 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,17 +206,28 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/ap ...@@ -198,17 +206,28 @@ import ${srfclassname('${appCounter.getCodeName()}')}CounterService from '@/ap
public change(value:any) { public change(value:any) {
if(value.detail.value){ if(value.detail.value){
if(value.detail.value == 'rename' ){ 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(() => { setTimeout(() => {
let select :any = this.$refs['select']; let select :any = this.$refs['select'];
if (select) { if (select) {
select.value = null; select.value = null;
} }
}, 1); }, 1);
} }
public mounted() {
if(this.isCustomize){
this.actionBarModelData.push(...this.builtinItemS);
}
}
<#ibizinclude> <#ibizinclude>
../@MACRO/CONTROL/CONTROL_BOTTOM-BASE.vue.ftl ../@MACRO/CONTROL/CONTROL_BOTTOM-BASE.vue.ftl
</#ibizinclude> </#ibizinclude>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册