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

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

上级 b95680db
......@@ -164,6 +164,9 @@
"VMGroup13":[
{"tag":"ViewMsg12","position":"TOP","type":"ERROR"}
],
"VMGroup67":[
{"tag":"ViewMsg66","position":"TOP","type":"INFO"}
],
"VMGroup39":[
{"tag":"ViewMsg38","position":"TOP","type":"ERROR"}
],
......
......@@ -48,6 +48,7 @@ export class MessageServiceRegister {
this.allMessageService.set('ViewMsg40', () => import('@/message/view-msg40/view-msg40-message'));
this.allMessageService.set('ViewMsg53', () => import('@/message/view-msg53/view-msg53-message'));
this.allMessageService.set('ViewMsg2', () => import('@/message/view-msg2/view-msg2-message'));
this.allMessageService.set('ViewMsg66', () => import('@/message/view-msg66/view-msg66-message'));
this.allMessageService.set('ViewMsg28', () => import('@/message/view-msg28/view-msg28-message'));
this.allMessageService.set('ViewMsg54', () => import('@/message/view-msg54/view-msg54-message'));
this.allMessageService.set('ViewMsg10', () => import('@/message/view-msg10/view-msg10-message'));
......
import ViewMessageService from '../view-message-service';
/**
* 编辑器插件示例视图消息服务对象基类
*
* @export
* @class ViewMsg66MessageServiceBase
*/
export default class ViewMsg66MessageServiceBase extends ViewMessageService {
/**
* Creates an instance of ViewMsg66MessageServiceBase.
*
* @param {*} [opts={}]
* @memberof ViewMsg66MessageServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础参数
*
* @memberof ViewMsg66MessageServiceBase
*/
public initBasicParam(){
this.id = "ACA86674-1B80-484E-8D8F-94221697CF2F";
this.name = "编辑器插件示例";
this.codename = "ViewMsg66";
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 ViewMsg66MessageServiceBase
*/
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 ViewMsg66MessageServiceBase from './view-msg66-message-base';
/**
* 编辑器插件示例视图消息服务对象
*
* @export
* @class ViewMsg66MessageService
*/
export default class ViewMsg66MessageService extends ViewMsg66MessageServiceBase {
/**
* Creates an instance of ViewMsg66MessageService.
*
* @param {*} [opts={}]
* @memberof ViewMsg66MessageService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -2075,6 +2075,9 @@ mock.onGet('./assets/json/view-message-group.json').reply((config: any) => {
"VMGroup13":[
{"tag":"ViewMsg12","position":"TOP","type":"ERROR"}
],
"VMGroup67":[
{"tag":"ViewMsg66","position":"TOP","type":"INFO"}
],
"VMGroup39":[
{"tag":"ViewMsg38","position":"TOP","type":"ERROR"}
],
......
......@@ -10,10 +10,10 @@
</div>
<div class='view-top-messages'>
</div>
<app-alert-group position='TOP' :context="context" :viewparam="viewparams" infoGroup='VMGroup67' viewname='ibizsample0001usr3editview'></app-alert-group> </div>
<div class="content-container">
<div class='view-body-messages'>
</div>
<app-alert-group position='BODY' :context="context" :viewparam="viewparams" infoGroup='VMGroup67' viewname='ibizsample0001usr3editview'></app-alert-group> </div>
<view_form
:viewState="viewState"
:viewparams="viewparams"
......@@ -38,7 +38,7 @@
</view_form>
</div>
<div class='view-bottom-messages'>
</div>
<app-alert-group position='BOTTOM' :context="context" :viewparam="viewparams" infoGroup='VMGroup67' viewname='ibizsample0001usr3editview'></app-alert-group> </div>
</card>
</div>
</template>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册