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

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

上级 f013fc5c
...@@ -74,11 +74,14 @@ ...@@ -74,11 +74,14 @@
"VMGroup3":[ "VMGroup3":[
{"tag":"ViewMsg3","position":"TOP","type":"ERROR"} {"tag":"ViewMsg3","position":"TOP","type":"ERROR"}
], ],
"VMGroup13":[
{"tag":"ViewMsg12","position":"TOP","type":"ERROR"}
],
"VMGroup5":[ "VMGroup5":[
{"tag":"ViewMsg5","position":"TOP","type":"ERROR"} {"tag":"ViewMsg5","position":"TOP","type":"ERROR"}
], ],
"VMGroup13":[ "VMGroup39":[
{"tag":"ViewMsg12","position":"TOP","type":"ERROR"} {"tag":"ViewMsg38","position":"TOP","type":"ERROR"}
], ],
"VMGroup34":[ "VMGroup34":[
{"tag":"ViewMsg33","position":"TOP","type":"ERROR"} {"tag":"ViewMsg33","position":"TOP","type":"ERROR"}
......
...@@ -49,6 +49,7 @@ export class MessageServiceRegister { ...@@ -49,6 +49,7 @@ export class MessageServiceRegister {
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('ViewMsg26', () => import('@/message/view-msg26/view-msg26-message')); this.allMessageService.set('ViewMsg26', () => import('@/message/view-msg26/view-msg26-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('ViewMsg38', () => import('@/message/view-msg38/view-msg38-message'));
this.allMessageService.set('ViewMsg37', () => import('@/message/view-msg37/view-msg37-message')); this.allMessageService.set('ViewMsg37', () => import('@/message/view-msg37/view-msg37-message'));
this.allMessageService.set('ViewMsg17', () => import('@/message/view-msg17/view-msg17-message')); this.allMessageService.set('ViewMsg17', () => import('@/message/view-msg17/view-msg17-message'));
this.allMessageService.set('ViewMsg35', () => import('@/message/view-msg35/view-msg35-message')); this.allMessageService.set('ViewMsg35', () => import('@/message/view-msg35/view-msg35-message'));
......
import ViewMessageService from '../view-message-service';
/**
* 搜索表单---内置功能视图消息服务对象基类
*
* @export
* @class ViewMsg38MessageServiceBase
*/
export default class ViewMsg38MessageServiceBase extends ViewMessageService {
/**
* Creates an instance of ViewMsg38MessageServiceBase.
*
* @param {*} [opts={}]
* @memberof ViewMsg38MessageServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础参数
*
* @memberof ViewMsg38MessageServiceBase
*/
public initBasicParam(){
this.id = "B5C1DF0F-FDC0-4AA8-A3AE-269190787C02";
this.name = "搜索表单---内置功能";
this.codename = "ViewMsg38";
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 ViewMsg38MessageServiceBase
*/
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 ViewMsg38MessageServiceBase from './view-msg38-message-base';
/**
* 搜索表单---内置功能视图消息服务对象
*
* @export
* @class ViewMsg38MessageService
*/
export default class ViewMsg38MessageService extends ViewMsg38MessageServiceBase {
/**
* Creates an instance of ViewMsg38MessageService.
*
* @param {*} [opts={}]
* @memberof ViewMsg38MessageService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
...@@ -1537,11 +1537,14 @@ mock.onGet('./assets/json/view-message-group.json').reply((config: any) => { ...@@ -1537,11 +1537,14 @@ mock.onGet('./assets/json/view-message-group.json').reply((config: any) => {
"VMGroup3":[ "VMGroup3":[
{"tag":"ViewMsg3","position":"TOP","type":"ERROR"} {"tag":"ViewMsg3","position":"TOP","type":"ERROR"}
], ],
"VMGroup13":[
{"tag":"ViewMsg12","position":"TOP","type":"ERROR"}
],
"VMGroup5":[ "VMGroup5":[
{"tag":"ViewMsg5","position":"TOP","type":"ERROR"} {"tag":"ViewMsg5","position":"TOP","type":"ERROR"}
], ],
"VMGroup13":[ "VMGroup39":[
{"tag":"ViewMsg12","position":"TOP","type":"ERROR"} {"tag":"ViewMsg38","position":"TOP","type":"ERROR"}
], ],
"VMGroup34":[ "VMGroup34":[
{"tag":"ViewMsg33","position":"TOP","type":"ERROR"} {"tag":"ViewMsg33","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='VMGroup39' viewname='ibizordersf1gridview'></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;padding-left: 24px' placeholder="订单名称" /> <i-input v-show="!isExpandSearchForm" v-model="query" search enter-button @on-search="onSearch($event)" class='quick-search-input' style='max-width: 400px;padding-left: 24px' placeholder="订单名称" />
...@@ -130,7 +130,7 @@ ...@@ -130,7 +130,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='VMGroup39' viewname='ibizordersf1gridview'></app-alert-group> </div>
<view_grid <view_grid
:viewState="viewState" :viewState="viewState"
:viewparams="viewparams" :viewparams="viewparams"
...@@ -160,7 +160,7 @@ ...@@ -160,7 +160,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='VMGroup39' viewname='ibizordersf1gridview'></app-alert-group> </div>
</card> </card>
</div> </div>
</template> </template>
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册