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

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

上级 57958b85
......@@ -5,12 +5,12 @@
"VMGroup30":[
{"tag":"ViewMsg28","position":"TOP","type":"ERROR"}
],
"VMGroup45":[
{"tag":"ViewMsg44","position":"TOP","type":"ERROR"}
],
"VMGroup6":[
{"tag":"ViewMsg6","position":"TOP","type":"ERROR"}
],
"VMGroup45":[
{"tag":"ViewMsg44","position":"TOP","type":"ERROR"}
],
"VMGroup36":[
{"tag":"ViewMsg35","position":"TOP","type":"ERROR"}
],
......@@ -41,6 +41,9 @@
"VMGroup25":[
{"tag":"ViewMsg24","position":"TOP","type":"ERROR"}
],
"VMGroup58":[
{"tag":"ViewMsg57","position":"TOP","type":"ERROR"}
],
"VMGroup34":[
{"tag":"ViewMsg33","position":"TOP","type":"ERROR"}
],
......
......@@ -83,6 +83,7 @@ export class MessageServiceRegister {
this.allMessageService.set('ViewMsg27', () => import('@/message/view-msg27/view-msg27-message'));
this.allMessageService.set('ViewMsg9', () => import('@/message/view-msg9/view-msg9-message'));
this.allMessageService.set('ViewMsg18', () => import('@/message/view-msg18/view-msg18-message'));
this.allMessageService.set('ViewMsg57', () => import('@/message/view-msg57/view-msg57-message'));
this.allMessageService.set('ViewMsg36', () => import('@/message/view-msg36/view-msg36-message'));
this.allMessageService.set('ViewMsg52', () => import('@/message/view-msg52/view-msg52-message'));
this.allMessageService.set('ViewMsg12', () => import('@/message/view-msg12/view-msg12-message'));
......
import ViewMessageService from '../view-message-service';
/**
* 树表格视图消息服务对象基类
*
* @export
* @class ViewMsg57MessageServiceBase
*/
export default class ViewMsg57MessageServiceBase extends ViewMessageService {
/**
* Creates an instance of ViewMsg57MessageServiceBase.
*
* @param {*} [opts={}]
* @memberof ViewMsg57MessageServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础参数
*
* @memberof ViewMsg57MessageServiceBase
*/
public initBasicParam(){
this.id = "5A5F7B57-EA84-4681-BF29-119F70FEF9EB";
this.name = "树表格";
this.codename = "ViewMsg57";
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 ViewMsg57MessageServiceBase
*/
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 ViewMsg57MessageServiceBase from './view-msg57-message-base';
/**
* 树表格视图消息服务对象
*
* @export
* @class ViewMsg57MessageService
*/
export default class ViewMsg57MessageService extends ViewMsg57MessageServiceBase {
/**
* Creates an instance of ViewMsg57MessageService.
*
* @param {*} [opts={}]
* @memberof ViewMsg57MessageService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -1788,12 +1788,12 @@ mock.onGet('./assets/json/view-message-group.json').reply((config: any) => {
"VMGroup30":[
{"tag":"ViewMsg28","position":"TOP","type":"ERROR"}
],
"VMGroup45":[
{"tag":"ViewMsg44","position":"TOP","type":"ERROR"}
],
"VMGroup6":[
{"tag":"ViewMsg6","position":"TOP","type":"ERROR"}
],
"VMGroup45":[
{"tag":"ViewMsg44","position":"TOP","type":"ERROR"}
],
"VMGroup36":[
{"tag":"ViewMsg35","position":"TOP","type":"ERROR"}
],
......@@ -1824,6 +1824,9 @@ mock.onGet('./assets/json/view-message-group.json').reply((config: any) => {
"VMGroup25":[
{"tag":"ViewMsg24","position":"TOP","type":"ERROR"}
],
"VMGroup58":[
{"tag":"ViewMsg57","position":"TOP","type":"ERROR"}
],
"VMGroup34":[
{"tag":"ViewMsg33","position":"TOP","type":"ERROR"}
],
......
<template>
<div class='view-container detreegridexview ibizorder-tree-grid-ex-view'>
<app-studioaction :viewTitle="$t(model.srfCaption)" viewName="ibizordertreegridexview"></app-studioaction>
<card class='view-card ' :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' :dis-hover="true" :bordered="false">
<div class='view-top-messages'>
</div>
<app-alert-group position='TOP' :context="context" :viewparam="viewparams" infoGroup='VMGroup58' viewname='ibizordertreegridexview'></app-alert-group> </div>
<div class='content-container'>
<div style='margin-bottom: 6px;'>
<div class='pull-right'>
......@@ -15,7 +12,7 @@
</div>
</div>
<div class='view-body-messages'>
</div>
<app-alert-group position='BODY' :context="context" :viewparam="viewparams" infoGroup='VMGroup58' viewname='ibizordertreegridexview'></app-alert-group> </div>
<view_treegridex
:viewState="viewState"
:viewparams="viewparams"
......@@ -32,7 +29,7 @@
</view_treegridex>
</div>
<div class='view-bottom-messages'>
</div>
<app-alert-group position='BOTTOM' :context="context" :viewparam="viewparams" infoGroup='VMGroup58' viewname='ibizordertreegridexview'></app-alert-group> </div>
</card>
</div>
</template>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册