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

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

上级 64dec31a
{
"VMGroup9":[
{"tag":"DataViewDar","position":"TOP","type":"INFO"}
],
"VMGroup5":[
{"tag":"ViewMsg5","position":"TOP","type":"INFO"}
],
"VMGroup7":[
{"tag":"ViewMsg7","position":"TOP","type":"INFO"}
],
"VMGroup":[
{"tag":"ViewMsg","position":"TOP","type":"ERROR"}
],
"VMGroup2":[
{"tag":"ViewMsg2","position":"TOP","type":"ERROR"}
],
"VMGroup8":[
{"tag":"ViewMsg8","position":"TOP","type":"INFO"}
],
"VMGroup6":[
{"tag":"ViewMsg6","position":"TOP","type":"INFO"}
],
"VMGroup4":[
{"tag":"ViewMsg4","position":"TOP","type":"ERROR"}
],
......
import ViewMessageService from '../view-message-service';
/**
* 数据视图(项布局面板)视图消息服务对象基类
*
* @export
* @class DataViewDarMessageServiceBase
*/
export default class DataViewDarMessageServiceBase extends ViewMessageService {
/**
* Creates an instance of DataViewDarMessageServiceBase.
*
* @param {*} [opts={}]
* @memberof DataViewDarMessageServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础参数
*
* @memberof DataViewDarMessageServiceBase
*/
public initBasicParam(){
this.id = "DBDA15AA-C0C3-4BB0-95DF-AD8AAD082352";
this.name = "数据视图(项布局面板)";
this.codename = "DataViewDar";
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 DataViewDarMessageServiceBase
*/
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 DataViewDarMessageServiceBase from './data-view-dar-message-base';
/**
* 数据视图(项布局面板)视图消息服务对象
*
* @export
* @class DataViewDarMessageService
*/
export default class DataViewDarMessageService extends DataViewDarMessageServiceBase {
/**
* Creates an instance of DataViewDarMessageService.
*
* @param {*} [opts={}]
* @memberof DataViewDarMessageService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -41,9 +41,13 @@ export class MessageServiceRegister {
protected init(): void {
this.allMessageService.set('ViewMsg4', () => import('@/message/view-msg4/view-msg4-message'));
this.allMessageService.set('ViewMsg2', () => import('@/message/view-msg2/view-msg2-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('ViewMsg5', () => import('@/message/view-msg5/view-msg5-message'));
this.allMessageService.set('ViewMsg8', () => import('@/message/view-msg8/view-msg8-message'));
this.allMessageService.set('ViewMsg', () => import('@/message/view-msg/view-msg-message'));
this.allMessageService.set('ViewMsg3', () => import('@/message/view-msg3/view-msg3-message'));
this.allMessageService.set('ViewMsg6', () => import('@/message/view-msg6/view-msg6-message'));
}
/**
......
import ViewMessageService from '../view-message-service';
/**
* 数据视图内置功能视图消息服务对象基类
*
* @export
* @class ViewMsg6MessageServiceBase
*/
export default class ViewMsg6MessageServiceBase extends ViewMessageService {
/**
* Creates an instance of ViewMsg6MessageServiceBase.
*
* @param {*} [opts={}]
* @memberof ViewMsg6MessageServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础参数
*
* @memberof ViewMsg6MessageServiceBase
*/
public initBasicParam(){
this.id = "FA14E673-AB67-4C52-B866-807B66E3AB19";
this.name = "数据视图内置功能";
this.codename = "ViewMsg6";
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 ViewMsg6MessageServiceBase
*/
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 ViewMsg6MessageServiceBase from './view-msg6-message-base';
/**
* 数据视图内置功能视图消息服务对象
*
* @export
* @class ViewMsg6MessageService
*/
export default class ViewMsg6MessageService extends ViewMsg6MessageServiceBase {
/**
* Creates an instance of ViewMsg6MessageService.
*
* @param {*} [opts={}]
* @memberof ViewMsg6MessageService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import ViewMessageService from '../view-message-service';
/**
* 数据视图自动分组视图消息服务对象基类
*
* @export
* @class ViewMsg7MessageServiceBase
*/
export default class ViewMsg7MessageServiceBase extends ViewMessageService {
/**
* Creates an instance of ViewMsg7MessageServiceBase.
*
* @param {*} [opts={}]
* @memberof ViewMsg7MessageServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础参数
*
* @memberof ViewMsg7MessageServiceBase
*/
public initBasicParam(){
this.id = "12EDBAFE-47E3-444C-8AEB-EF84C55646E0";
this.name = "数据视图自动分组";
this.codename = "ViewMsg7";
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 ViewMsg7MessageServiceBase
*/
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 ViewMsg7MessageServiceBase from './view-msg7-message-base';
/**
* 数据视图自动分组视图消息服务对象
*
* @export
* @class ViewMsg7MessageService
*/
export default class ViewMsg7MessageService extends ViewMsg7MessageServiceBase {
/**
* Creates an instance of ViewMsg7MessageService.
*
* @param {*} [opts={}]
* @memberof ViewMsg7MessageService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import ViewMessageService from '../view-message-service';
/**
* 数据视图代码表分组视图消息服务对象基类
*
* @export
* @class ViewMsg8MessageServiceBase
*/
export default class ViewMsg8MessageServiceBase extends ViewMessageService {
/**
* Creates an instance of ViewMsg8MessageServiceBase.
*
* @param {*} [opts={}]
* @memberof ViewMsg8MessageServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础参数
*
* @memberof ViewMsg8MessageServiceBase
*/
public initBasicParam(){
this.id = "81ECB4F0-B3B4-4BFB-A94C-85CBD109357E";
this.name = "数据视图代码表分组";
this.codename = "ViewMsg8";
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 ViewMsg8MessageServiceBase
*/
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 ViewMsg8MessageServiceBase from './view-msg8-message-base';
/**
* 数据视图代码表分组视图消息服务对象
*
* @export
* @class ViewMsg8MessageService
*/
export default class ViewMsg8MessageService extends ViewMsg8MessageServiceBase {
/**
* Creates an instance of ViewMsg8MessageService.
*
* @param {*} [opts={}]
* @memberof ViewMsg8MessageService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
......@@ -1142,15 +1142,27 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
mock.onGet('./assets/json/view-message-group.json').reply((config: any) => {
let status = MockAdapter.mockStatus(config);
return [status,{
"VMGroup9":[
{"tag":"DataViewDar","position":"TOP","type":"INFO"}
],
"VMGroup5":[
{"tag":"ViewMsg5","position":"TOP","type":"INFO"}
],
"VMGroup7":[
{"tag":"ViewMsg7","position":"TOP","type":"INFO"}
],
"VMGroup":[
{"tag":"ViewMsg","position":"TOP","type":"ERROR"}
],
"VMGroup2":[
{"tag":"ViewMsg2","position":"TOP","type":"ERROR"}
],
"VMGroup8":[
{"tag":"ViewMsg8","position":"TOP","type":"INFO"}
],
"VMGroup6":[
{"tag":"ViewMsg6","position":"TOP","type":"INFO"}
],
"VMGroup4":[
{"tag":"ViewMsg4","position":"TOP","type":"ERROR"}
],
......
......@@ -7,7 +7,7 @@
<span class='caption-info'>{{$t(model.srfCaption)}}</span>
</div>
<div class='view-top-messages'>
</div>
<app-alert-group position='TOP' :context="context" :viewparam="viewparams" infoGroup='VMGroup6' viewname='ibizbookdataview'></app-alert-group> </div>
<div class='content-container'>
<div style="margin-bottom:6px;">
<div class="quick-group-container">
......@@ -72,7 +72,7 @@
@closeview="closeView($event)">
</view_searchform>
<div class='view-body-messages'>
</div>
<app-alert-group position='BODY' :context="context" :viewparam="viewparams" infoGroup='VMGroup6' viewname='ibizbookdataview'></app-alert-group> </div>
<view_dataview
:viewState="viewState"
:viewparams="viewparams"
......@@ -97,7 +97,7 @@
</div>
<div class='view-bottom-messages'>
</div>
<app-alert-group position='BOTTOM' :context="context" :viewparam="viewparams" infoGroup='VMGroup6' viewname='ibizbookdataview'></app-alert-group> </div>
</card>
</div>
</template>
......
......@@ -7,7 +7,7 @@
<span class='caption-info'>{{$t(model.srfCaption)}}</span>
</div>
<div class='view-top-messages'>
</div>
<app-alert-group position='TOP' :context="context" :viewparam="viewparams" infoGroup='VMGroup7' viewname='ibizbookusr2dataview'></app-alert-group> </div>
<div class='content-container'>
<div style="margin-bottom:6px;">
<i-input v-show='!this.isExpandSearchForm ' v-model='query' search @on-search='onSearch' placeholder="图书名称" class='pull-left' style='max-width: 400px;margin-top:6px;' />
......@@ -33,7 +33,7 @@
@closeview="closeView($event)">
</view_searchform>
<div class='view-body-messages'>
</div>
<app-alert-group position='BODY' :context="context" :viewparam="viewparams" infoGroup='VMGroup7' viewname='ibizbookusr2dataview'></app-alert-group> </div>
<view_dataview
:viewState="viewState"
:viewparams="viewparams"
......@@ -58,7 +58,7 @@
</div>
<div class='view-bottom-messages'>
</div>
<app-alert-group position='BOTTOM' :context="context" :viewparam="viewparams" infoGroup='VMGroup7' viewname='ibizbookusr2dataview'></app-alert-group> </div>
</card>
</div>
</template>
......
......@@ -7,7 +7,7 @@
<span class='caption-info'>{{$t(model.srfCaption)}}</span>
</div>
<div class='view-top-messages'>
</div>
<app-alert-group position='TOP' :context="context" :viewparam="viewparams" infoGroup='VMGroup8' viewname='ibizbookusr3dataview'></app-alert-group> </div>
<div class='content-container'>
<div style="margin-bottom:6px;">
<i-input v-show='!this.isExpandSearchForm ' v-model='query' search @on-search='onSearch' placeholder="图书名称" class='pull-left' style='max-width: 400px;margin-top:6px;' />
......@@ -33,7 +33,7 @@
@closeview="closeView($event)">
</view_searchform>
<div class='view-body-messages'>
</div>
<app-alert-group position='BODY' :context="context" :viewparam="viewparams" infoGroup='VMGroup8' viewname='ibizbookusr3dataview'></app-alert-group> </div>
<view_dataview
:viewState="viewState"
:viewparams="viewparams"
......@@ -58,7 +58,7 @@
</div>
<div class='view-bottom-messages'>
</div>
<app-alert-group position='BOTTOM' :context="context" :viewparam="viewparams" infoGroup='VMGroup8' viewname='ibizbookusr3dataview'></app-alert-group> </div>
</card>
</div>
</template>
......
......@@ -7,7 +7,7 @@
<span class='caption-info'>{{$t(model.srfCaption)}}</span>
</div>
<div class='view-top-messages'>
</div>
<app-alert-group position='TOP' :context="context" :viewparam="viewparams" infoGroup='VMGroup9' viewname='ibizbookusr4dataview'></app-alert-group> </div>
<div class='content-container'>
<div style="margin-bottom:6px;">
<i-input v-show='!this.isExpandSearchForm ' v-model='query' search @on-search='onSearch' placeholder="图书名称" class='pull-left' style='max-width: 400px;margin-top:6px;' />
......@@ -54,7 +54,7 @@
@closeview="closeView($event)">
</view_searchform>
<div class='view-body-messages'>
</div>
<app-alert-group position='BODY' :context="context" :viewparam="viewparams" infoGroup='VMGroup9' viewname='ibizbookusr4dataview'></app-alert-group> </div>
<view_dataview
:viewState="viewState"
:viewparams="viewparams"
......@@ -79,7 +79,7 @@
</div>
<div class='view-bottom-messages'>
</div>
<app-alert-group position='BOTTOM' :context="context" :viewparam="viewparams" infoGroup='VMGroup9' viewname='ibizbookusr4dataview'></app-alert-group> </div>
</card>
</div>
</template>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册