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

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

上级 21f1e79a
{ {
"VMGroup16":[
{"tag":"ViewMsg15","position":"TOP","type":"INFO"}
],
"VMGroup":[ "VMGroup":[
{"tag":"ViewMsg","position":"TOP","type":"ERROR"} {"tag":"ViewMsg","position":"TOP","type":"ERROR"}
], ],
...@@ -26,6 +29,9 @@ ...@@ -26,6 +29,9 @@
"VMGroup7":[ "VMGroup7":[
{"tag":"ViewMsg7","position":"TOP","type":"INFO"} {"tag":"ViewMsg7","position":"TOP","type":"INFO"}
], ],
"VMGroup17":[
{"tag":"ViewMsg16","position":"TOP","type":"INFO"}
],
"VMGroup2":[ "VMGroup2":[
{"tag":"ViewMsg2","position":"TOP","type":"ERROR"} {"tag":"ViewMsg2","position":"TOP","type":"ERROR"}
], ],
......
...@@ -44,7 +44,9 @@ export class MessageServiceRegister { ...@@ -44,7 +44,9 @@ export class MessageServiceRegister {
this.allMessageService.set('ViewMsg10', () => import('@/message/view-msg10/view-msg10-message')); this.allMessageService.set('ViewMsg10', () => import('@/message/view-msg10/view-msg10-message'));
this.allMessageService.set('ViewMsg7', () => import('@/message/view-msg7/view-msg7-message')); this.allMessageService.set('ViewMsg7', () => import('@/message/view-msg7/view-msg7-message'));
this.allMessageService.set('DataViewDar', () => import('@/message/data-view-dar/data-view-dar-message')); this.allMessageService.set('DataViewDar', () => import('@/message/data-view-dar/data-view-dar-message'));
this.allMessageService.set('ViewMsg15', () => import('@/message/view-msg15/view-msg15-message'));
this.allMessageService.set('ViewMsg5', () => import('@/message/view-msg5/view-msg5-message')); this.allMessageService.set('ViewMsg5', () => import('@/message/view-msg5/view-msg5-message'));
this.allMessageService.set('ViewMsg16', () => import('@/message/view-msg16/view-msg16-message'));
this.allMessageService.set('ViewMsg13', () => import('@/message/view-msg13/view-msg13-message')); this.allMessageService.set('ViewMsg13', () => import('@/message/view-msg13/view-msg13-message'));
this.allMessageService.set('ViewMsg9', () => import('@/message/view-msg9/view-msg9-message')); this.allMessageService.set('ViewMsg9', () => import('@/message/view-msg9/view-msg9-message'));
this.allMessageService.set('ViewMsg8', () => import('@/message/view-msg8/view-msg8-message')); this.allMessageService.set('ViewMsg8', () => import('@/message/view-msg8/view-msg8-message'));
......
import ViewMessageService from '../view-message-service';
/**
* 表格聚合(本页聚合)视图消息服务对象基类
*
* @export
* @class ViewMsg15MessageServiceBase
*/
export default class ViewMsg15MessageServiceBase extends ViewMessageService {
/**
* Creates an instance of ViewMsg15MessageServiceBase.
*
* @param {*} [opts={}]
* @memberof ViewMsg15MessageServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础参数
*
* @memberof ViewMsg15MessageServiceBase
*/
public initBasicParam(){
this.id = "1FBAE147-F355-498E-8417-2167648EB362";
this.name = "表格聚合(本页聚合)";
this.codename = "ViewMsg15";
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 ViewMsg15MessageServiceBase
*/
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 ViewMsg15MessageServiceBase from './view-msg15-message-base';
/**
* 表格聚合(本页聚合)视图消息服务对象
*
* @export
* @class ViewMsg15MessageService
*/
export default class ViewMsg15MessageService extends ViewMsg15MessageServiceBase {
/**
* Creates an instance of ViewMsg15MessageService.
*
* @param {*} [opts={}]
* @memberof ViewMsg15MessageService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import ViewMessageService from '../view-message-service';
/**
* 表格聚合(远程聚合)视图消息服务对象基类
*
* @export
* @class ViewMsg16MessageServiceBase
*/
export default class ViewMsg16MessageServiceBase extends ViewMessageService {
/**
* Creates an instance of ViewMsg16MessageServiceBase.
*
* @param {*} [opts={}]
* @memberof ViewMsg16MessageServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础参数
*
* @memberof ViewMsg16MessageServiceBase
*/
public initBasicParam(){
this.id = "C55A4FB4-B429-4BCB-9BEF-60872A2717CB";
this.name = "表格聚合(远程聚合)";
this.codename = "ViewMsg16";
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 ViewMsg16MessageServiceBase
*/
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 ViewMsg16MessageServiceBase from './view-msg16-message-base';
/**
* 表格聚合(远程聚合)视图消息服务对象
*
* @export
* @class ViewMsg16MessageService
*/
export default class ViewMsg16MessageService extends ViewMsg16MessageServiceBase {
/**
* Creates an instance of ViewMsg16MessageService.
*
* @param {*} [opts={}]
* @memberof ViewMsg16MessageService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
...@@ -1142,6 +1142,9 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { ...@@ -1142,6 +1142,9 @@ 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,{
"VMGroup16":[
{"tag":"ViewMsg15","position":"TOP","type":"INFO"}
],
"VMGroup":[ "VMGroup":[
{"tag":"ViewMsg","position":"TOP","type":"ERROR"} {"tag":"ViewMsg","position":"TOP","type":"ERROR"}
], ],
...@@ -1169,6 +1172,9 @@ mock.onGet('./assets/json/view-message-group.json').reply((config: any) => { ...@@ -1169,6 +1172,9 @@ mock.onGet('./assets/json/view-message-group.json').reply((config: any) => {
"VMGroup7":[ "VMGroup7":[
{"tag":"ViewMsg7","position":"TOP","type":"INFO"} {"tag":"ViewMsg7","position":"TOP","type":"INFO"}
], ],
"VMGroup17":[
{"tag":"ViewMsg16","position":"TOP","type":"INFO"}
],
"VMGroup2":[ "VMGroup2":[
{"tag":"ViewMsg2","position":"TOP","type":"ERROR"} {"tag":"ViewMsg2","position":"TOP","type":"ERROR"}
], ],
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<span class='caption-info'>{{$t(model.srfCaption)}}</span> <span class='caption-info'>{{$t(model.srfCaption)}}</span>
</div> </div>
<div class='view-top-messages'> <div class='view-top-messages'>
</div> <app-alert-group position='TOP' :context="context" :viewparam="viewparams" infoGroup='VMGroup16' viewname='ibizbookusr4gridview'></app-alert-group> </div>
<div class='content-container'> <div class='content-container'>
<div style='margin-bottom: 6px;'> <div style='margin-bottom: 6px;'>
<i-input v-show="!isExpandSearchForm" v-model="query" search enter-button @on-search="onSearch($event)" class='quick-search-input' style='max-width: 400px;' placeholder="图书名称" /> <i-input v-show="!isExpandSearchForm" v-model="query" search enter-button @on-search="onSearch($event)" class='quick-search-input' style='max-width: 400px;' placeholder="图书名称" />
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
@closeview="closeView($event)"> @closeview="closeView($event)">
</view_searchform> </view_searchform>
<div class='view-body-messages'> <div class='view-body-messages'>
</div> <app-alert-group position='BODY' :context="context" :viewparam="viewparams" infoGroup='VMGroup16' viewname='ibizbookusr4gridview'></app-alert-group> </div>
<view_grid <view_grid
:viewState="viewState" :viewState="viewState"
:viewparams="viewparams" :viewparams="viewparams"
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
</view_grid> </view_grid>
</div> </div>
<div class='view-bottom-messages'> <div class='view-bottom-messages'>
</div> <app-alert-group position='BOTTOM' :context="context" :viewparam="viewparams" infoGroup='VMGroup16' viewname='ibizbookusr4gridview'></app-alert-group> </div>
</card> </card>
</div> </div>
</template> </template>
......
...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
<span class='caption-info'>{{$t(model.srfCaption)}}</span> <span class='caption-info'>{{$t(model.srfCaption)}}</span>
</div> </div>
<div class='view-top-messages'> <div class='view-top-messages'>
</div> <app-alert-group position='TOP' :context="context" :viewparam="viewparams" infoGroup='VMGroup17' viewname='ibizbookusr5gridview'></app-alert-group> </div>
<div class='content-container'> <div class='content-container'>
<div style='margin-bottom: 6px;'> <div style='margin-bottom: 6px;'>
<i-input v-show="!isExpandSearchForm" v-model="query" search enter-button @on-search="onSearch($event)" class='quick-search-input' style='max-width: 400px;' placeholder="图书名称" /> <i-input v-show="!isExpandSearchForm" v-model="query" search enter-button @on-search="onSearch($event)" class='quick-search-input' style='max-width: 400px;' placeholder="图书名称" />
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
@closeview="closeView($event)"> @closeview="closeView($event)">
</view_searchform> </view_searchform>
<div class='view-body-messages'> <div class='view-body-messages'>
</div> <app-alert-group position='BODY' :context="context" :viewparam="viewparams" infoGroup='VMGroup17' viewname='ibizbookusr5gridview'></app-alert-group> </div>
<view_grid <view_grid
:viewState="viewState" :viewState="viewState"
:viewparams="viewparams" :viewparams="viewparams"
...@@ -62,7 +62,7 @@ ...@@ -62,7 +62,7 @@
</view_grid> </view_grid>
</div> </div>
<div class='view-bottom-messages'> <div class='view-bottom-messages'>
</div> <app-alert-group position='BOTTOM' :context="context" :viewparam="viewparams" infoGroup='VMGroup17' viewname='ibizbookusr5gridview'></app-alert-group> </div>
</card> </card>
</div> </div>
</template> </template>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册