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

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

上级 56835176
......@@ -45,7 +45,10 @@
{"tag":"ViewMsg9","position":"TOP","type":"ERROR"}
],
"VMGroup15":[
{"tag":"ViewMsg14","position":"TOP","type":"INFO"}
{"tag":"ViewMsg14","position":"TOP","type":"ERROR"}
],
"VMGroup21":[
{"tag":"ViewMsg20","position":"TOP","type":"INFO"}
],
"VMGroup11":[
{"tag":"ViewMsg10","position":"TOP","type":"ERROR"}
......
......@@ -45,6 +45,7 @@ export class MessageServiceRegister {
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('ViewMsg17', () => import('@/message/view-msg17/view-msg17-message'));
this.allMessageService.set('ViewMsg20', () => import('@/message/view-msg20/view-msg20-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('ViewMsg16', () => import('@/message/view-msg16/view-msg16-message'));
......
......@@ -31,7 +31,7 @@ export default class ViewMsg14MessageServiceBase extends ViewMessageService {
this.content = "表格更新默认值:表格更新时提供默认值";
this.closeMode = 0;
this.position = "TOP";
this.type = "info";
this.type = "error";
this.isEnableRemove = false;
this.order = 1;
this.dynamicMode = "STATIC";
......
import ViewMessageService from '../view-message-service';
/**
* 表单更新默认值视图消息服务对象基类
*
* @export
* @class ViewMsg20MessageServiceBase
*/
export default class ViewMsg20MessageServiceBase extends ViewMessageService {
/**
* Creates an instance of ViewMsg20MessageServiceBase.
*
* @param {*} [opts={}]
* @memberof ViewMsg20MessageServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础参数
*
* @memberof ViewMsg20MessageServiceBase
*/
public initBasicParam(){
this.id = "9960CA5B-18CD-43E4-888A-170381FFB9CC";
this.name = "表单更新默认值";
this.codename = "ViewMsg20";
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 ViewMsg20MessageServiceBase
*/
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 ViewMsg20MessageServiceBase from './view-msg20-message-base';
/**
* 表单更新默认值视图消息服务对象
*
* @export
* @class ViewMsg20MessageService
*/
export default class ViewMsg20MessageService extends ViewMsg20MessageServiceBase {
/**
* Creates an instance of ViewMsg20MessageService.
*
* @param {*} [opts={}]
* @memberof ViewMsg20MessageService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
import ViewMessageService from '../view-message-service';
/**
* 表单默认值视图消息服务对象基类
* 表单新建默认值视图消息服务对象基类
*
* @export
* @class ViewMsg4MessageServiceBase
......@@ -25,10 +25,10 @@ export default class ViewMsg4MessageServiceBase extends ViewMessageService {
*/
public initBasicParam(){
this.id = "71630E0E-47C6-4891-8699-94DA61C8F5CF";
this.name = "表单默认值";
this.name = "表单新建默认值";
this.codename = "ViewMsg4";
this.title = "";
this.content = "本示例展示表单的新建默认值功能;展示内容包含【订单时间】默认为【当前时间】、【订单状态】默认为【未提交】";
this.content = "本示例展示表单的新建默认值功能;展示内容包含【订单时间】默认为【当前时间】、【订单状态】默认为【未提交】";
this.closeMode = 0;
this.position = "TOP";
this.type = "error";
......
import ViewMsg4MessageServiceBase from './view-msg4-message-base';
/**
* 表单默认值视图消息服务对象
* 表单新建默认值视图消息服务对象
*
* @export
* @class ViewMsg4MessageService
......
......@@ -1236,7 +1236,10 @@ mock.onGet('./assets/json/view-message-group.json').reply((config: any) => {
{"tag":"ViewMsg9","position":"TOP","type":"ERROR"}
],
"VMGroup15":[
{"tag":"ViewMsg14","position":"TOP","type":"INFO"}
{"tag":"ViewMsg14","position":"TOP","type":"ERROR"}
],
"VMGroup21":[
{"tag":"ViewMsg20","position":"TOP","type":"INFO"}
],
"VMGroup11":[
{"tag":"ViewMsg10","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='VMGroup21' viewname='ibizorderusr2editview'></app-alert-group> </div>
<div class="content-container">
<div class='view-body-messages'>
</div>
<app-alert-group position='BODY' :context="context" :viewparam="viewparams" infoGroup='VMGroup21' viewname='ibizorderusr2editview'></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='VMGroup21' viewname='ibizorderusr2editview'></app-alert-group> </div>
</card>
</div>
</template>
......
......@@ -2423,7 +2423,7 @@ export default class UpdateformBase extends Vue implements ControlInterface {
this.data['f6'] = this.$util.dateFormat(new Date());
}
if (this.data.hasOwnProperty('f7') && !this.data.f7) {
this.data['f7'] = this.service.getRemoteCopyData().ibizcustomername?this.service.getRemoteCopyData().ibizcustomername:null;
this.data['f7'] = this.service.getRemoteCopyData().orderuid?this.service.getRemoteCopyData().orderuid:null;
}
if (this.data.hasOwnProperty('f8') && !this.data.f8) {
this.data['f8'] = '默认值';
......
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册