Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
功
功能演示系统
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
示例
功能演示系统
提交
077cf898
提交
077cf898
编写于
11月 06, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
MoneyQ 部署微服务应用 [后台服务,演示应用]
上级
d7fd700e
变更
12
隐藏空白字符变更
内嵌
并排
正在显示
12 个修改的文件
包含
117 行增加
和
26 行删除
+117
-26
view-config.json
app_Web/public/assets/json/view-config.json
+2
-2
view-message-group.json
app_Web/public/assets/json/view-message-group.json
+3
-0
ibizorder_en_US.ts
...b/src/locale/lanres/entities/ibizorder/ibizorder_en_US.ts
+2
-2
ibizorder_zh_CN.ts
...b/src/locale/lanres/entities/ibizorder/ibizorder_zh_CN.ts
+2
-2
message-service-register.ts
app_Web/src/message/message-service-register.ts
+2
-1
view-msg4-message-base.ts
app_Web/src/message/view-msg4/view-msg4-message-base.ts
+63
-0
view-msg4-message.ts
app_Web/src/message/view-msg4/view-msg4-message.ts
+21
-0
viewconfig.ts
app_Web/src/mock/viewconfig/viewconfig.ts
+5
-2
ibizorder-sf1-edit-view-base.vue
.../ibizorder-sf1-edit-view/ibizorder-sf1-edit-view-base.vue
+4
-7
main2-form-base.vue
app_Web/src/widgets/ibizorder/main2-form/main2-form-base.vue
+11
-8
h2_table.xml
demo-core/src/main/resources/liquibase/h2_table.xml
+1
-1
view.xml
demo-core/src/main/resources/liquibase/view.xml
+1
-1
未找到文件。
app_Web/public/assets/json/view-config.json
浏览文件 @
077cf898
...
...
@@ -408,8 +408,8 @@
"viewtag"
:
"80c9ae9ed04e7107ed9fc93734a447d1"
},
"ibizordersf1editview"
:
{
"title"
:
"
订单编辑视图
"
,
"caption"
:
"
订单
"
,
"title"
:
"
编辑表单默认值
"
,
"caption"
:
"
编辑表单默认值
"
,
"viewtype"
:
"DEEDITVIEW"
,
"viewmodule"
:
"Sample"
,
"viewname"
:
"IBIZOrderSF1EditView"
,
...
...
app_Web/public/assets/json/view-message-group.json
浏览文件 @
077cf898
...
...
@@ -5,6 +5,9 @@
"VMGroup2"
:[
{
"tag"
:
"ViewMsg2"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
],
"VMGroup4"
:[
{
"tag"
:
"ViewMsg4"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
],
"VMGroup3"
:[
{
"tag"
:
"ViewMsg3"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
]
...
...
app_Web/src/locale/lanres/entities/ibizorder/ibizorder_en_US.ts
浏览文件 @
077cf898
...
...
@@ -102,8 +102,8 @@ export default {
title
:
"订单图表视图"
,
},
sf1editview
:
{
caption
:
"
订单
"
,
title
:
"
订单编辑视图
"
,
caption
:
"
编辑表单默认值
"
,
title
:
"
编辑表单默认值
"
,
},
piechartview
:
{
caption
:
"订单"
,
...
...
app_Web/src/locale/lanres/entities/ibizorder/ibizorder_zh_CN.ts
浏览文件 @
077cf898
...
...
@@ -101,8 +101,8 @@ export default {
title
:
"订单图表视图"
,
},
sf1editview
:
{
caption
:
"
订单
"
,
title
:
"
订单编辑视图
"
,
caption
:
"
编辑表单默认值
"
,
title
:
"
编辑表单默认值
"
,
},
piechartview
:
{
caption
:
"订单"
,
...
...
app_Web/src/message/message-service-register.ts
浏览文件 @
077cf898
...
...
@@ -39,7 +39,8 @@ export class MessageServiceRegister {
* @memberof MessageServiceRegister
*/
protected
init
():
void
{
this
.
allMessageService
.
set
(
'ViewMsg2'
,
()
=>
import
(
'@/message/view-msg2/view-msg2-message'
));
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
(
'ViewMsg'
,
()
=>
import
(
'@/message/view-msg/view-msg-message'
));
this
.
allMessageService
.
set
(
'ViewMsg3'
,
()
=>
import
(
'@/message/view-msg3/view-msg3-message'
));
}
...
...
app_Web/src/message/view-msg4/view-msg4-message-base.ts
0 → 100644
浏览文件 @
077cf898
import
ViewMessageService
from
'../view-message-service'
;
/**
* 表单项默认值视图消息服务对象基类
*
* @export
* @class ViewMsg4MessageServiceBase
*/
export
default
class
ViewMsg4MessageServiceBase
extends
ViewMessageService
{
/**
* Creates an instance of ViewMsg4MessageServiceBase.
*
* @param {*} [opts={}]
* @memberof ViewMsg4MessageServiceBase
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
/**
* 初始化基础参数
*
* @memberof ViewMsg4MessageServiceBase
*/
public
initBasicParam
(){
this
.
id
=
"71630E0E-47C6-4891-8699-94DA61C8F5CF"
;
this
.
name
=
"表单项默认值"
;
this
.
codename
=
"ViewMsg4"
;
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 ViewMsg4MessageServiceBase
*/
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
app_Web/src/message/view-msg4/view-msg4-message.ts
0 → 100644
浏览文件 @
077cf898
import
ViewMsg4MessageServiceBase
from
'./view-msg4-message-base'
;
/**
* 表单项默认值视图消息服务对象
*
* @export
* @class ViewMsg4MessageService
*/
export
default
class
ViewMsg4MessageService
extends
ViewMsg4MessageServiceBase
{
/**
* Creates an instance of ViewMsg4MessageService.
*
* @param {*} [opts={}]
* @memberof ViewMsg4MessageService
*/
constructor
(
opts
:
any
=
{})
{
super
(
opts
);
}
}
\ No newline at end of file
app_Web/src/mock/viewconfig/viewconfig.ts
浏览文件 @
077cf898
...
...
@@ -416,8 +416,8 @@ mock.onGet('./assets/json/view-config.json').reply((config: any) => {
"viewtag"
:
"80c9ae9ed04e7107ed9fc93734a447d1"
},
"ibizordersf1editview"
:
{
"title"
:
"
订单编辑视图
"
,
"caption"
:
"
订单
"
,
"title"
:
"
编辑表单默认值
"
,
"caption"
:
"
编辑表单默认值
"
,
"viewtype"
:
"DEEDITVIEW"
,
"viewmodule"
:
"Sample"
,
"viewname"
:
"IBIZOrderSF1EditView"
,
...
...
@@ -900,6 +900,9 @@ mock.onGet('./assets/json/view-message-group.json').reply((config: any) => {
"VMGroup2"
:[
{
"tag"
:
"ViewMsg2"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
],
"VMGroup4"
:[
{
"tag"
:
"ViewMsg4"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
],
"VMGroup3"
:[
{
"tag"
:
"ViewMsg3"
,
"position"
:
"TOP"
,
"type"
:
"ERROR"
}
]
...
...
app_Web/src/pages/sample/ibizorder-sf1-edit-view/ibizorder-sf1-edit-view-base.vue
浏览文件 @
077cf898
<
template
>
<div
class=
"view-container deeditview ibizorder-sf1-edit-view"
>
<app-studioaction
:viewTitle=
"$t(model.srfCaption)"
viewName=
"ibizordersf1editview"
></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>
<
app-alert-group
position=
'TOP'
:context=
"context"
:viewparam=
"viewparams"
infoGroup=
'VMGroup4'
viewname=
'ibizordersf1editview'
></app-alert-group>
<
/div>
<div
class=
"content-container"
>
<div
class=
'view-body-messages'
>
</div>
<
app-alert-group
position=
'BODY'
:context=
"context"
:viewparam=
"viewparams"
infoGroup=
'VMGroup4'
viewname=
'ibizordersf1editview'
></app-alert-group>
<
/div>
<view
_form
:viewState=
"viewState"
:viewparams=
"viewparams"
...
...
@@ -36,7 +33,7 @@
</view
_form
>
</div>
<div
class=
'view-bottom-messages'
>
</div>
<
app-alert-group
position=
'BOTTOM'
:context=
"context"
:viewparam=
"viewparams"
infoGroup=
'VMGroup4'
viewname=
'ibizordersf1editview'
></app-alert-group>
<
/div>
</card>
</div>
</
template
>
...
...
app_Web/src/widgets/ibizorder/main2-form/main2-form-base.vue
浏览文件 @
077cf898
...
...
@@ -2,10 +2,10 @@
<i-form
:model=
"this.data"
class=
'app-form'
ref=
'form'
id=
'ibizorder_main2'
style=
""
>
<input
style=
"display:none;"
/>
<row
>
<i-col
v-show=
"detailsModel.group1.visible"
:style=
"
{}" :
sm="{ span: 12, offset: 0 }" :md="{ span: 12, offset: 0 }" :lg="{ span: 12
, offset: 0 }">
<i-col
v-show=
"detailsModel.group1.visible"
:style=
"
{}" :
lg="{ span: 24
, offset: 0 }">
<app-form-group
:uiService=
"appUIService"
:data=
"transformData(data)"
:manageContainerStatus=
"detailsModel.group1.manageContainerStatus"
:isManageContainer=
"detailsModel.group1.isManageContainer"
@
managecontainerclick=
"manageContainerClick('group1')"
layoutType=
"TABLE_24COL"
titleStyle=
""
class=
''
:uiActionGroup=
"detailsModel.group1.uiActionGroup"
@
groupuiactionclick=
"groupUIActionClick($event)"
:caption=
"$t('entities.ibizorder.main2_form.details.group1')"
:isShowCaption=
"false"
uiStyle=
"DEFAULT"
:titleBarCloseMode=
"0"
:isInfoGroupMode=
"false"
>
<row>
<i-col
v-show=
"detailsModel.orderuid.visible"
:style=
"
{}" :
sm="{ span: 6, offset: 0 }" :md="{ span: 6, offset: 0 }" :lg="{ span: 6
, offset: 0 }">
<i-col
v-show=
"detailsModel.orderuid.visible"
:style=
"
{}" :
lg="{ span: 12, offset: 0 }" :xl="{ span: 12
, offset: 0 }">
<app-form-item
name=
'orderuid'
:itemRules=
"this.rules().orderuid"
class=
''
:caption=
"$t('entities.ibizorder.main2_form.details.orderuid')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.orderuid.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.orderuid"
...
...
@@ -19,7 +19,7 @@
</app-form-item>
</i-col>
<i-col
v-show=
"detailsModel.ibizordername.visible"
:style=
"
{}" :
sm="{ span: 6, offset: 0 }" :md="{ span: 6, offset: 0 }" :lg="{ span: 6
, offset: 0 }">
<i-col
v-show=
"detailsModel.ibizordername.visible"
:style=
"
{}" :
lg="{ span: 12, offset: 0 }" :xl="{ span: 12
, offset: 0 }">
<app-form-item
name=
'ibizordername'
:itemRules=
"this.rules().ibizordername"
class=
''
:caption=
"$t('entities.ibizorder.main2_form.details.ibizordername')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.ibizordername.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.ibizordername"
...
...
@@ -33,14 +33,14 @@
</app-form-item>
</i-col>
<i-col
v-show=
"detailsModel.ordertime.visible"
:style=
"
{}" :
sm="{ span: 6, offset: 0 }" :md="{ span: 6, offset: 0 }" :lg="{ span: 6
, offset: 0 }">
<i-col
v-show=
"detailsModel.ordertime.visible"
:style=
"
{}" :
lg="{ span: 12, offset: 0 }" :xl="{ span: 12
, offset: 0 }">
<app-form-item
name=
'ordertime'
:itemRules=
"this.rules().ordertime"
class=
''
:caption=
"$t('entities.ibizorder.main2_form.details.ordertime')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.ordertime.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<date-picker
type=
"date"
:transfer=
"true"
format=
"yyyy-MM-dd"
placeholder=
"请选择时间..."
:value=
"data.ordertime"
:disabled=
"detailsModel.ordertime.disabled"
style=
"min-width: 150px; width:100px;"
@
on-change=
"(val1, val2) =>
{ this.data.ordertime = val1 }">
</date-picker>
</app-form-item>
</i-col>
<i-col
v-show=
"detailsModel.ibizcustomername.visible"
:style=
"
{}" :
sm="{ span: 6, offset: 0 }" :md="{ span: 6, offset: 0 }" :lg="{ span: 6
, offset: 0 }">
<i-col
v-show=
"detailsModel.ibizcustomername.visible"
:style=
"
{}" :
lg="{ span: 12, offset: 0 }" :xl="{ span: 12
, offset: 0 }">
<app-form-item
name=
'ibizcustomername'
:itemRules=
"this.rules().ibizcustomername"
class=
''
:caption=
"$t('entities.ibizorder.main2_form.details.ibizcustomername')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.ibizcustomername.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<app-picker
...
...
@@ -68,7 +68,7 @@
</app-form-item>
</i-col>
<i-col
v-show=
"detailsModel.ordertype.visible"
:style=
"
{}" :
sm="{ span: 6, offset: 0 }" :md="{ span: 6, offset: 0 }" :lg="{ span: 6
, offset: 0 }">
<i-col
v-show=
"detailsModel.ordertype.visible"
:style=
"
{}" :
lg="{ span: 12, offset: 0 }" :xl="{ span: 12
, offset: 0 }">
<app-form-item
name=
'ordertype'
:itemRules=
"this.rules().ordertype"
class=
''
:caption=
"$t('entities.ibizorder.main2_form.details.ordertype')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.ordertype.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<dropdown-list
...
...
@@ -89,7 +89,7 @@
</app-form-item>
</i-col>
<i-col
v-show=
"detailsModel.orderstate.visible"
:style=
"
{}" :
sm="{ span: 6, offset: 0 }" :md="{ span: 6, offset: 0 }" :lg="{ span: 6
, offset: 0 }">
<i-col
v-show=
"detailsModel.orderstate.visible"
:style=
"
{}" :
lg="{ span: 12, offset: 0 }" :xl="{ span: 12
, offset: 0 }">
<app-form-item
name=
'orderstate'
:itemRules=
"this.rules().orderstate"
class=
''
:caption=
"$t('entities.ibizorder.main2_form.details.orderstate')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.orderstate.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<dropdown-list
...
...
@@ -110,7 +110,7 @@
</app-form-item>
</i-col>
<i-col
v-show=
"detailsModel.memo.visible"
:style=
"
{}" :
sm="{ span: 12, offset: 0 }" :md="{ span: 12, offset: 0 }" :lg="{ span: 12
, offset: 0 }">
<i-col
v-show=
"detailsModel.memo.visible"
:style=
"
{}" :
lg="{ span: 24, offset: 0 }" :xl="{ span: 24
, offset: 0 }">
<app-form-item
name=
'memo'
:itemRules=
"this.rules().memo"
class=
''
:caption=
"$t('entities.ibizorder.main2_form.details.memo')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.memo.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<input-box
v-model=
"data.memo"
:textareaId=
"this.$util.createUUID()"
:disabled=
"detailsModel.memo.disabled"
type=
'textarea'
textareaStyle=
"height:200px;"
></input-box>
...
...
@@ -1993,6 +1993,9 @@ export default class Main2Base extends Vue implements ControlInterface {
* @memberof Main2Base
*/
public
createDefault
(){
if
(
this
.
data
.
hasOwnProperty
(
'orderstate'
))
{
this
.
data
[
'orderstate'
]
=
'10'
;
}
}
/**
...
...
demo-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
077cf898
...
...
@@ -134,7 +134,7 @@
<!--输出实体[IBIZORDER]数据结构 -->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizorder-
2
-8"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"tab-ibizorder-
7
-8"
>
<createTable
tableName=
"T_IBIZORDER"
>
<column
name=
"TP"
remarks=
""
type=
"TEXT(1048576)"
>
</column>
...
...
demo-core/src/main/resources/liquibase/view.xml
浏览文件 @
077cf898
...
...
@@ -37,7 +37,7 @@
</createView>
</changeSet>
<!--输出实体[IBIZORDER]视图结构信息 runOnChange="true" 当视图发生变更时,通过liquibase强刷prod的视图,实现视图的同步-->
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"view-ibizorder-
2
-8"
runOnChange=
"true"
>
<changeSet
author=
"a_LAB01_df847bdfd"
id=
"view-ibizorder-
7
-8"
runOnChange=
"true"
>
<createView
fullDefinition=
"false"
replaceIfExists=
"true"
viewName=
"V_IBIZORDER"
>
<![CDATA[ SELECT t1.[AMOUNT], t1.[CREATEDATE], t1.[CREATEMAN], t1.[DETAILNUM], t1.[IBIZCUSTOMERID], t11.[IBIZCUSTOMERNAME], t1.[IBIZORDERID], t1.[IBIZORDERNAME], t1.[MEMO], t1.[ORDERSTATE], t1.[ORDERTIME], t1.[ORDERTYPE], t1.[ORDERUID], t1.[UPDATEDATE], t1.[UPDATEMAN], t1.[WFINSTANCEID], t1.[WFSTATE], t1.[WFSTEP] FROM [T_IBIZORDER] t1 LEFT JOIN T_IBIZCUSTOMER t11 ON t1.IBIZCUSTOMERID = t11.IBIZCUSTOMERID ]]>
</createView>
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录