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

MoneyQ 部署微服务应用 [后台服务,演示应用]

上级 a13cae21
...@@ -24,8 +24,8 @@ ...@@ -24,8 +24,8 @@
"viewtag": "06f6c93b65230d180597e6bd32051447" "viewtag": "06f6c93b65230d180597e6bd32051447"
}, },
"ibizsample0001sf5editview": { "ibizsample0001sf5editview": {
"title": "示例实体01编辑视图", "title": "默认编辑器类型",
"caption": "示例实体01", "caption": "默认编辑器类型",
"viewtype": "DEEDITVIEW", "viewtype": "DEEDITVIEW",
"viewmodule": "Sample", "viewmodule": "Sample",
"viewname": "IBIZSample0001SF5EditView", "viewname": "IBIZSample0001SF5EditView",
...@@ -328,8 +328,8 @@ ...@@ -328,8 +328,8 @@
"viewtag": "5ccbd78fe47300a160915d6398b59604" "viewtag": "5ccbd78fe47300a160915d6398b59604"
}, },
"ibizsample0001sf2editview": { "ibizsample0001sf2editview": {
"title": "示例实体01编辑视图", "title": "基础表单项",
"caption": "示例实体01", "caption": "基础表单项",
"viewtype": "DEEDITVIEW", "viewtype": "DEEDITVIEW",
"viewmodule": "Sample", "viewmodule": "Sample",
"viewname": "IBIZSample0001SF2EditView", "viewname": "IBIZSample0001SF2EditView",
......
...@@ -4,5 +4,8 @@ ...@@ -4,5 +4,8 @@
], ],
"VMGroup2":[ "VMGroup2":[
{"tag":"ViewMsg2","position":"TOP","type":"ERROR"} {"tag":"ViewMsg2","position":"TOP","type":"ERROR"}
],
"VMGroup3":[
{"tag":"ViewMsg3","position":"TOP","type":"ERROR"}
] ]
} }
\ No newline at end of file
...@@ -34,16 +34,16 @@ export default { ...@@ -34,16 +34,16 @@ export default {
}, },
views: { views: {
sf5editview: { sf5editview: {
caption: "示例实体01", caption: "默认编辑器类型",
title: "示例实体01编辑视图", title: "默认编辑器类型",
}, },
sf4editview: { sf4editview: {
caption: "默认数据类型", caption: "默认数据类型",
title: "默认数据类型", title: "默认数据类型",
}, },
sf2editview: { sf2editview: {
caption: "示例实体01", caption: "基础表单项",
title: "示例实体01编辑视图", title: "基础表单项",
}, },
}, },
main4_form: { main4_form: {
......
...@@ -33,16 +33,16 @@ export default { ...@@ -33,16 +33,16 @@ export default {
}, },
views: { views: {
sf5editview: { sf5editview: {
caption: "示例实体01", caption: "默认编辑器类型",
title: "示例实体01编辑视图", title: "默认编辑器类型",
}, },
sf4editview: { sf4editview: {
caption: "默认数据类型", caption: "默认数据类型",
title: "默认数据类型", title: "默认数据类型",
}, },
sf2editview: { sf2editview: {
caption: "示例实体01", caption: "基础表单项",
title: "示例实体01编辑视图", title: "基础表单项",
}, },
}, },
main4_form: { main4_form: {
......
...@@ -41,6 +41,7 @@ export class MessageServiceRegister { ...@@ -41,6 +41,7 @@ export class MessageServiceRegister {
protected init(): void { protected init(): void {
this.allMessageService.set('ViewMsg2', () => import('@/message/view-msg2/view-msg2-message')); this.allMessageService.set('ViewMsg2', () => import('@/message/view-msg2/view-msg2-message'));
this.allMessageService.set('ViewMsg', () => import('@/message/view-msg/view-msg-message')); this.allMessageService.set('ViewMsg', () => import('@/message/view-msg/view-msg-message'));
this.allMessageService.set('ViewMsg3', () => import('@/message/view-msg3/view-msg3-message'));
} }
/** /**
......
import ViewMessageService from '../view-message-service';
/**
* 基础表单项视图消息服务对象基类
*
* @export
* @class ViewMsg3MessageServiceBase
*/
export default class ViewMsg3MessageServiceBase extends ViewMessageService {
/**
* Creates an instance of ViewMsg3MessageServiceBase.
*
* @param {*} [opts={}]
* @memberof ViewMsg3MessageServiceBase
*/
constructor(opts: any = {}) {
super(opts);
}
/**
* 初始化基础参数
*
* @memberof ViewMsg3MessageServiceBase
*/
public initBasicParam(){
this.id = "7484C747-AA1C-421B-822F-F59D4CBCFBED";
this.name = "基础表单项";
this.codename = "ViewMsg3";
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 ViewMsg3MessageServiceBase
*/
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 ViewMsg3MessageServiceBase from './view-msg3-message-base';
/**
* 基础表单项视图消息服务对象
*
* @export
* @class ViewMsg3MessageService
*/
export default class ViewMsg3MessageService extends ViewMsg3MessageServiceBase {
/**
* Creates an instance of ViewMsg3MessageService.
*
* @param {*} [opts={}]
* @memberof ViewMsg3MessageService
*/
constructor(opts: any = {}) {
super(opts);
}
}
\ No newline at end of file
...@@ -32,8 +32,8 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { ...@@ -32,8 +32,8 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag": "06f6c93b65230d180597e6bd32051447" "viewtag": "06f6c93b65230d180597e6bd32051447"
}, },
"ibizsample0001sf5editview": { "ibizsample0001sf5editview": {
"title": "示例实体01编辑视图", "title": "默认编辑器类型",
"caption": "示例实体01", "caption": "默认编辑器类型",
"viewtype": "DEEDITVIEW", "viewtype": "DEEDITVIEW",
"viewmodule": "Sample", "viewmodule": "Sample",
"viewname": "IBIZSample0001SF5EditView", "viewname": "IBIZSample0001SF5EditView",
...@@ -336,8 +336,8 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => { ...@@ -336,8 +336,8 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag": "5ccbd78fe47300a160915d6398b59604" "viewtag": "5ccbd78fe47300a160915d6398b59604"
}, },
"ibizsample0001sf2editview": { "ibizsample0001sf2editview": {
"title": "示例实体01编辑视图", "title": "基础表单项",
"caption": "示例实体01", "caption": "基础表单项",
"viewtype": "DEEDITVIEW", "viewtype": "DEEDITVIEW",
"viewmodule": "Sample", "viewmodule": "Sample",
"viewname": "IBIZSample0001SF2EditView", "viewname": "IBIZSample0001SF2EditView",
...@@ -899,6 +899,9 @@ mock.onGet('./assets/json/view-message-group.json').reply((config: any) => { ...@@ -899,6 +899,9 @@ mock.onGet('./assets/json/view-message-group.json').reply((config: any) => {
], ],
"VMGroup2":[ "VMGroup2":[
{"tag":"ViewMsg2","position":"TOP","type":"ERROR"} {"tag":"ViewMsg2","position":"TOP","type":"ERROR"}
],
"VMGroup3":[
{"tag":"ViewMsg3","position":"TOP","type":"ERROR"}
] ]
}]; }];
}); });
\ No newline at end of file
<template> <template>
<div class="view-container deeditview ibizsample0001-sf2-edit-view"> <div class="view-container deeditview ibizsample0001-sf2-edit-view">
<app-studioaction :viewTitle="$t(model.srfCaption)" viewName="ibizsample0001sf2editview"></app-studioaction> <app-studioaction :viewTitle="$t(model.srfCaption)" viewName="ibizsample0001sf2editview"></app-studioaction>
<card class='view-card view-no-toolbar' :disHover="true" :bordered="false"> <card class='view-card view-no-caption view-no-toolbar' :disHover="true" :bordered="false">
<div slot='title' class="header-container">
<span class='caption-info'>{{$t(model.srfCaption)}}</span>
</div>
<div class='view-top-messages'> <div class='view-top-messages'>
</div> <app-alert-group position='TOP' :context="context" :viewparam="viewparams" infoGroup='VMGroup3' viewname='ibizsample0001sf2editview'></app-alert-group> </div>
<div class="content-container"> <div class="content-container">
<div class='view-body-messages'> <div class='view-body-messages'>
</div> <app-alert-group position='BODY' :context="context" :viewparam="viewparams" infoGroup='VMGroup3' viewname='ibizsample0001sf2editview'></app-alert-group> </div>
<view_form <view_form
:viewState="viewState" :viewState="viewState"
:viewparams="viewparams" :viewparams="viewparams"
...@@ -36,7 +33,7 @@ ...@@ -36,7 +33,7 @@
</view_form> </view_form>
</div> </div>
<div class='view-bottom-messages'> <div class='view-bottom-messages'>
</div> <app-alert-group position='BOTTOM' :context="context" :viewparam="viewparams" infoGroup='VMGroup3' viewname='ibizsample0001sf2editview'></app-alert-group> </div>
</card> </card>
</div> </div>
</template> </template>
......
...@@ -316,7 +316,7 @@ ...@@ -316,7 +316,7 @@
<!--输出实体[IBIZSAMPLE0001]数据结构 --> <!--输出实体[IBIZSAMPLE0001]数据结构 -->
<changeSet author="a_LAB01_df847bdfd" id="tab-ibizsample0001-14-13"> <changeSet author="a_LAB01_df847bdfd" id="tab-ibizsample0001-18-13">
<createTable tableName="T_IBIZSAMPLE0001"> <createTable tableName="T_IBIZSAMPLE0001">
<column name="FIELD01" remarks="" type="VARCHAR(100)"> <column name="FIELD01" remarks="" type="VARCHAR(100)">
</column> </column>
......
...@@ -67,7 +67,7 @@ ...@@ -67,7 +67,7 @@
</createView> </createView>
</changeSet> </changeSet>
<!--输出实体[IBIZSAMPLE0001]视图结构信息 runOnChange="true" 当视图发生变更时,通过liquibase强刷prod的视图,实现视图的同步--> <!--输出实体[IBIZSAMPLE0001]视图结构信息 runOnChange="true" 当视图发生变更时,通过liquibase强刷prod的视图,实现视图的同步-->
<changeSet author="a_LAB01_df847bdfd" id="view-ibizsample0001-14-13" runOnChange="true"> <changeSet author="a_LAB01_df847bdfd" id="view-ibizsample0001-18-13" runOnChange="true">
<createView fullDefinition="false" replaceIfExists="true" viewName="V_IBIZSAMPLE0001"> <createView fullDefinition="false" replaceIfExists="true" viewName="V_IBIZSAMPLE0001">
<![CDATA[ SELECT t1.[CREATEDATE], t1.[CREATEMAN], t1.[FIELD01], t1.[FIELD02], t1.[FIELD05], t1.[FIELD06], t1.[FIELD07], t1.[FIELD08], t1.[FIELD09], t1.[FIELD10], t1.[FIELD11], t1.[FIELD12], t1.[FIELD13], t1.[FIELD14], t1.[FIELD15], t1.[FIELD16], t1.[FIELD17], t1.[FIELD18], t1.[FIELD19], t1.[FIELD20], t1.[FIELD21], t1.[FIELD22], t1.[FIELD23], t1.[FIELD24], t1.[FIELD25], t1.[FIELD26], t1.[FIELD27], t1.[IBIZSAMPLE0001ID], t1.[IBIZSAMPLE0001NAME], t1.[UPDATEDATE], t1.[UPDATEMAN] FROM [T_IBIZSAMPLE0001] t1 ]]> <![CDATA[ SELECT t1.[CREATEDATE], t1.[CREATEMAN], t1.[FIELD01], t1.[FIELD02], t1.[FIELD05], t1.[FIELD06], t1.[FIELD07], t1.[FIELD08], t1.[FIELD09], t1.[FIELD10], t1.[FIELD11], t1.[FIELD12], t1.[FIELD13], t1.[FIELD14], t1.[FIELD15], t1.[FIELD16], t1.[FIELD17], t1.[FIELD18], t1.[FIELD19], t1.[FIELD20], t1.[FIELD21], t1.[FIELD22], t1.[FIELD23], t1.[FIELD24], t1.[FIELD25], t1.[FIELD26], t1.[FIELD27], t1.[IBIZSAMPLE0001ID], t1.[IBIZSAMPLE0001NAME], t1.[UPDATEDATE], t1.[UPDATEMAN] FROM [T_IBIZSAMPLE0001] t1 ]]>
</createView> </createView>
......
...@@ -231,12 +231,6 @@ ...@@ -231,12 +231,6 @@
<version>${jsonwebtoken-jjwt.version}</version> <version>${jsonwebtoken-jjwt.version}</version>
</dependency> </dependency>
<dependency>
<groupId>com.alibaba</groupId>
<artifactId>druid-spring-boot-starter</artifactId>
<version>${alibaba-druid.version}</version>
</dependency>
<dependency> <dependency>
<groupId>org.zalando</groupId> <groupId>org.zalando</groupId>
<artifactId>problem-spring-web</artifactId> <artifactId>problem-spring-web</artifactId>
......
...@@ -101,7 +101,7 @@ public class ExceptionTranslator implements ProblemHandling { ...@@ -101,7 +101,7 @@ public class ExceptionTranslator implements ProblemHandling {
public static HttpHeaders createFailureAlert(String entityName, String errorKey, String defaultMessage) { public static HttpHeaders createFailureAlert(String entityName, String errorKey, String defaultMessage) {
HttpHeaders headers = new HttpHeaders(); HttpHeaders headers = new HttpHeaders();
headers.add("X-ibz-error", "error." + errorKey); headers.add("X-ibz-error", errorKey);
headers.add("X-ibz-params", entityName); headers.add("X-ibz-params", entityName);
return headers; return headers;
} }
......
...@@ -59,6 +59,7 @@ public class AppController { ...@@ -59,6 +59,7 @@ public class AppController {
appData.put("enablepermissionvalid",false); appData.put("enablepermissionvalid",false);
else else
appData.put("enablepermissionvalid",enablePermissionValid); appData.put("enablepermissionvalid",enablePermissionValid);
fillAppData(appData);
return ResponseEntity.status(HttpStatus.OK).body(appData); return ResponseEntity.status(HttpStatus.OK).body(appData);
} }
...@@ -87,4 +88,12 @@ public class AppController { ...@@ -87,4 +88,12 @@ public class AppController {
throw new BadRequestAlertException("获取配置失败,参数缺失","IBZConfig",configType); throw new BadRequestAlertException("获取配置失败,参数缺失","IBZConfig",configType);
return ResponseEntity.ok(ibzConfigService.getConfig(configType,targetType,userId)); return ResponseEntity.ok(ibzConfigService.getConfig(configType,targetType,userId));
} }
/**
* 应用参数扩展
* @param appData
*/
protected void fillAppData(JSONObject appData){
}
} }
Markdown 格式
0% or
您添加了 0 到此讨论。请谨慎行事。
先完成此消息的编辑!
想要评论请 注册