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

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

上级 6fe442c2
......@@ -35,6 +35,9 @@
"VMGroup43":[
{"tag":"ViewMsg42","position":"TOP","type":"ERROR"}
],
"VMGroup66":[
{"tag":"ViewMsg65","position":"TOP","type":"ERROR"}
],
"VMGroup54":[
{"tag":"ViewMsg53","position":"TOP","type":"ERROR"}
],
......
......@@ -60,6 +60,7 @@ export class MessageServiceRegister {
this.allMessageService.set('ViewMsg58', () => import('@/message/view-msg58/view-msg58-message'));
this.allMessageService.set('DataViewDar', () => import('@/message/data-view-dar/data-view-dar-message'));
this.allMessageService.set('ViewMsg38', () => import('@/message/view-msg38/view-msg38-message'));
this.allMessageService.set('ViewMsg65', () => import('@/message/view-msg65/view-msg65-message'));
this.allMessageService.set('ViewMsg17', () => import('@/message/view-msg17/view-msg17-message'));
this.allMessageService.set('ViewMsg41', () => import('@/message/view-msg41/view-msg41-message'));
this.allMessageService.set('ViewMsg35', () => import('@/message/view-msg35/view-msg35-message'));
......
import ViewMessageService from '../view-message-service';
/**
* 扩展编辑器视图消息服务对象基类
*
* @export
* @class ViewMsg65MessageServiceBase
*/
export default class ViewMsg65MessageServiceBase extends ViewMessageService {
/**
* Creates an instance of ViewMsg65MessageServiceBase.
*
* @param {*} [opts={}]
* @memberof ViewMsg65MessageServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础参数
*
* @memberof ViewMsg65MessageServiceBase
*/
public initBasicParam(){
this.id = "F4725B5A-CC56-4AA1-9EBD-0369B1520651";
this.name = "扩展编辑器";
this.codename = "ViewMsg65";
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 ViewMsg65MessageServiceBase
*/
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 ViewMsg65MessageServiceBase from './view-msg65-message-base';
/**
* 扩展编辑器视图消息服务对象
*
* @export
* @class ViewMsg65MessageService
*/
export default class ViewMsg65MessageService extends ViewMsg65MessageServiceBase {
/**
* Creates an instance of ViewMsg65MessageService.
*
* @param {*} [opts={}]
* @memberof ViewMsg65MessageService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -1946,6 +1946,9 @@ mock.onGet('./assets/json/view-message-group.json').reply((config: any) => {
"VMGroup43":[
{"tag":"ViewMsg42","position":"TOP","type":"ERROR"}
],
"VMGroup66":[
{"tag":"ViewMsg65","position":"TOP","type":"ERROR"}
],
"VMGroup54":[
{"tag":"ViewMsg53","position":"TOP","type":"ERROR"}
],
......
......@@ -24,10 +24,10 @@
</div>
<div class='view-top-messages'>
<app-alert-group position='TOP' :context="context" :viewparam="viewparams" infoGroup='VMGroup' viewname='ibizsample0001sf6editview'></app-alert-group> </div>
<app-alert-group position='TOP' :context="context" :viewparam="viewparams" infoGroup='VMGroup66' viewname='ibizsample0001sf6editview'></app-alert-group> </div>
<div class="content-container">
<div class='view-body-messages'>
<app-alert-group position='BODY' :context="context" :viewparam="viewparams" infoGroup='VMGroup' viewname='ibizsample0001sf6editview'></app-alert-group> </div>
<app-alert-group position='BODY' :context="context" :viewparam="viewparams" infoGroup='VMGroup66' viewname='ibizsample0001sf6editview'></app-alert-group> </div>
<view_form
:viewState="viewState"
:viewparams="viewparams"
......@@ -52,7 +52,7 @@
</view_form>
</div>
<div class='view-bottom-messages'>
<app-alert-group position='BOTTOM' :context="context" :viewparam="viewparams" infoGroup='VMGroup' viewname='ibizsample0001sf6editview'></app-alert-group> </div>
<app-alert-group position='BOTTOM' :context="context" :viewparam="viewparams" infoGroup='VMGroup66' viewname='ibizsample0001sf6editview'></app-alert-group> </div>
</card>
</div>
</template>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册