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

MoneyQ 部署微服务应用 [后台服务,演示应用]

上级 80b9f8a6
{ {
"VMGroup":[
{"tag":"ViewMsg","position":"TOP","type":"INFO"}
]
} }
\ No newline at end of file
...@@ -39,6 +39,7 @@ export class MessageServiceRegister { ...@@ -39,6 +39,7 @@ export class MessageServiceRegister {
* @memberof MessageServiceRegister * @memberof MessageServiceRegister
*/ */
protected init(): void { protected init(): void {
this.allMessageService.set('ViewMsg', () => import('@/message/view-msg/view-msg-message'));
} }
/** /**
......
import ViewMessageService from '../view-message-service';
/**
* 默认数据类型视图消息服务对象基类
*
* @export
* @class ViewMsgMessageServiceBase
*/
export default class ViewMsgMessageServiceBase extends ViewMessageService {
/**
* Creates an instance of ViewMsgMessageServiceBase.
*
* @param {*} [opts={}]
* @memberof ViewMsgMessageServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础参数
*
* @memberof ViewMsgMessageServiceBase
*/
public initBasicParam(){
this.id = "E7E9D84B-76B8-4482-B2D8-FE27E883448E";
this.name = "默认数据类型";
this.codename = "ViewMsg";
this.title = "";
this.content = "本示例展示实体属性的数据类型默认呈现组件";
this.closeMode = 0;
this.position = "TOP";
this.type = "info";
this.isEnableRemove = false;
this.order = 1;
this.dynamicMode = "STATIC";
this.hasMessageTemp = false;
this.messageType = "TEXT";
}
/**
* 转化消息模板标题和内容
*
* @target {*} target 返回目标数据
* @param {*} context 应用上下文
* @param {*} viewparam 视图参数
* @param {*} item 源数据
*
* @memberof ViewMsgMessageServiceBase
*/
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 ViewMsgMessageServiceBase from './view-msg-message-base';
/**
* 默认数据类型视图消息服务对象
*
* @export
* @class ViewMsgMessageService
*/
export default class ViewMsgMessageService extends ViewMsgMessageServiceBase {
/**
* Creates an instance of ViewMsgMessageService.
*
* @param {*} [opts={}]
* @memberof ViewMsgMessageService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
...@@ -894,5 +894,8 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { ...@@ -894,5 +894,8 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
mock.onGet('./assets/json/view-message-group.json').reply((config: any) => { mock.onGet('./assets/json/view-message-group.json').reply((config: any) => {
let status = MockAdapter.mockStatus(config); let status = MockAdapter.mockStatus(config);
return [status,{ return [status,{
"VMGroup":[
{"tag":"ViewMsg","position":"TOP","type":"INFO"}
]
}]; }];
}); });
\ No newline at end of file
...@@ -5,10 +5,10 @@ ...@@ -5,10 +5,10 @@
<div class='view-top-messages'> <div class='view-top-messages'>
</div> <app-alert-group position='TOP' :context="context" :viewparam="viewparams" infoGroup='VMGroup' viewname='ibizsample0001sf4editview'></app-alert-group> </div>
<div class="content-container"> <div class="content-container">
<div class='view-body-messages'> <div class='view-body-messages'>
</div> <app-alert-group position='BODY' :context="context" :viewparam="viewparams" infoGroup='VMGroup' viewname='ibizsample0001sf4editview'></app-alert-group> </div>
<view_form <view_form
:viewState="viewState" :viewState="viewState"
:viewparams="viewparams" :viewparams="viewparams"
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
</view_form> </view_form>
</div> </div>
<div class='view-bottom-messages'> <div class='view-bottom-messages'>
</div> <app-alert-group position='BOTTOM' :context="context" :viewparam="viewparams" infoGroup='VMGroup' viewname='ibizsample0001sf4editview'></app-alert-group> </div>
</card> </card>
</div> </div>
</template> </template>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册