提交 d1845973 编写于 作者: ibizdev's avatar ibizdev

tony001 发布系统代码 [后台服务,演示应用]

上级 f1c04a91
......@@ -20,6 +20,9 @@
"VMGroup2":[
{"tag":"ViewMsg2","position":"TOP","type":"ERROR"}
],
"VMGroup56":[
{"tag":"ViewMsg55","position":"TOP","type":"ERROR"}
],
"VMGroup10":[
{"tag":"ViewMsg9","position":"TOP","type":"ERROR"}
],
......
......@@ -75,6 +75,7 @@ export class MessageServiceRegister {
this.allMessageService.set('ViewMsg44', () => import('@/message/view-msg44/view-msg44-message'));
this.allMessageService.set('ViewMsg45', () => import('@/message/view-msg45/view-msg45-message'));
this.allMessageService.set('ViewMsg50', () => import('@/message/view-msg50/view-msg50-message'));
this.allMessageService.set('ViewMsg55', () => import('@/message/view-msg55/view-msg55-message'));
this.allMessageService.set('ViewMsg29', () => import('@/message/view-msg29/view-msg29-message'));
this.allMessageService.set('ViewMsg8', () => import('@/message/view-msg8/view-msg8-message'));
this.allMessageService.set('ViewMsg', () => import('@/message/view-msg/view-msg-message'));
......
import ViewMessageService from '../view-message-service';
/**
* 树视图---动态节点(实体)视图消息服务对象基类
*
* @export
* @class ViewMsg55MessageServiceBase
*/
export default class ViewMsg55MessageServiceBase extends ViewMessageService {
/**
* Creates an instance of ViewMsg55MessageServiceBase.
*
* @param {*} [opts={}]
* @memberof ViewMsg55MessageServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础参数
*
* @memberof ViewMsg55MessageServiceBase
*/
public initBasicParam(){
this.id = "A36A30A1-E1ED-4B74-A035-EF1049DF48B4";
this.name = "树视图---动态节点(实体)";
this.codename = "ViewMsg55";
this.title = "";
this.content = "本示例展示树视图动态节点(实体)节点类型界面呈现。";
this.closeMode = 0;
this.position = "TOP";
this.type = "error";
this.isEnableRemove = false;
this.order = 1;
this.dynamicMode = "STATIC";
this.hasMessageTemp = false;
this.messageType = "TEXT";
}
/**
* 转化消息模板标题和内容
*
* @target {*} target 返回目标数据
* @param {*} context 应用上下文
* @param {*} viewparam 视图参数
* @param {*} item 源数据
*
* @memberof ViewMsg55MessageServiceBase
*/
public translateMessageTemp(target:any,context:any,viewparam:any,item?:any){
if(this.hasMessageTemp && Object.is(this.messageType,"HTML")){
Object.assign(target,{title:``});
Object.assign(target,{content:``});
}
if(this.hasMessageTemp && Object.is(this.messageType,"TEXT")){
Object.assign(target,{title:""});
Object.assign(target,{content:""});
}
}
}
\ No newline at end of file
import ViewMsg55MessageServiceBase from './view-msg55-message-base';
/**
* 树视图---动态节点(实体)视图消息服务对象
*
* @export
* @class ViewMsg55MessageService
*/
export default class ViewMsg55MessageService extends ViewMsg55MessageServiceBase {
/**
* Creates an instance of ViewMsg55MessageService.
*
* @param {*} [opts={}]
* @memberof ViewMsg55MessageService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -1755,6 +1755,9 @@ mock.onGet('./assets/json/view-message-group.json').reply((config: any) => {
"VMGroup2":[
{"tag":"ViewMsg2","position":"TOP","type":"ERROR"}
],
"VMGroup56":[
{"tag":"ViewMsg55","position":"TOP","type":"ERROR"}
],
"VMGroup10":[
{"tag":"ViewMsg9","position":"TOP","type":"ERROR"}
],
......
<template>
<div class='view-container detreeexpview ibizsample0003-f3-tree-exp-view'>
<app-studioaction :viewTitle="$t(model.srfCaption)" viewName="ibizsample0003f3treeexpview"></app-studioaction>
<card class='view-card view-no-toolbar' :dis-hover="true" :bordered="false">
<div slot='title' class="header-container">
<span class='caption-info'>{{$t(model.srfCaption)}}</span>
</div>
<card class='view-card view-no-caption view-no-toolbar' :dis-hover="true" :bordered="false">
<div class='view-top-messages'>
</div>
<app-alert-group position='TOP' :context="context" :viewparam="viewparams" infoGroup='VMGroup56' viewname='ibizsample0003f3treeexpview'></app-alert-group> </div>
<div class='content-container'>
<div class='view-body-messages'>
</div>
<app-alert-group position='BODY' :context="context" :viewparam="viewparams" infoGroup='VMGroup56' viewname='ibizsample0003f3treeexpview'></app-alert-group> </div>
<view_treeexpbar
:viewState="viewState"
:viewparams="viewparams"
......@@ -27,7 +24,7 @@
</view_treeexpbar>
</div>
<div class='view-bottom-messages'>
</div>
<app-alert-group position='BOTTOM' :context="context" :viewparam="viewparams" infoGroup='VMGroup56' viewname='ibizsample0003f3treeexpview'></app-alert-group> </div>
</card>
</div>
</template>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册