Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzlite
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzlite
提交
adbaef2d
提交
adbaef2d
编写于
11月 30, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibiz4j 发布系统代码 [ibz-lite,应用]
上级
b79b4b8f
变更
6
显示空白字符变更
内嵌
并排
正在显示
6 个修改的文件
包含
14 行增加
和
33 行删除
+14
-33
meta-relationship_en_US.ts
...res/entities/meta-relationship/meta-relationship_en_US.ts
+1
-1
meta-relationship_zh_CN.ts
...res/entities/meta-relationship/meta-relationship_zh_CN.ts
+1
-1
main-form-base.vue
...rc/widgets/meta-relationship/main-form/main-form-base.vue
+4
-22
main-form-model.ts
...rc/widgets/meta-relationship/main-form/main-form-model.ts
+4
-5
h2_table.xml
ibzlite-core/src/main/resources/liquibase/h2_table.xml
+1
-1
MetaRelationshipDTO.java
...src/main/java/cn/ibizlab/api/dto/MetaRelationshipDTO.java
+3
-3
未找到文件。
app_web/src/locale/lanres/entities/meta-relationship/meta-relationship_en_US.ts
浏览文件 @
adbaef2d
...
...
@@ -37,6 +37,7 @@ export default {
},
main_form
:
{
details
:
{
lookup
:
""
,
group1
:
"实体关系基本信息"
,
formpage1
:
"基本信息"
,
srforikey
:
""
,
...
...
@@ -54,7 +55,6 @@ export default {
nestedname
:
"嵌套代码名称"
,
refentityid
:
"引用实体标识"
,
entityid
:
"实体标识"
,
lookup
:
"Lookup"
,
relationid
:
"关系标识"
,
},
uiactions
:
{
...
...
app_web/src/locale/lanres/entities/meta-relationship/meta-relationship_zh_CN.ts
浏览文件 @
adbaef2d
...
...
@@ -36,6 +36,7 @@ export default {
},
main_form
:
{
details
:
{
lookup
:
""
,
group1
:
"实体关系基本信息"
,
formpage1
:
"基本信息"
,
srforikey
:
""
,
...
...
@@ -53,7 +54,6 @@ export default {
nestedname
:
"嵌套代码名称"
,
refentityid
:
"引用实体标识"
,
entityid
:
"实体标识"
,
lookup
:
"Lookup"
,
relationid
:
"关系标识"
,
},
uiactions
:
{
...
...
app_web/src/widgets/meta-relationship/main-form/main-form-base.vue
浏览文件 @
adbaef2d
...
...
@@ -118,9 +118,7 @@
</i-col>
<i-col
v-show=
"detailsModel.lookup.visible"
:style=
"
{}" :lg="{ span: 24, offset: 0 }">
<app-form-item
name=
'lookup'
:itemRules=
"this.rules().lookup"
class=
''
:caption=
"$t('entities.metarelationship.main_form.details.lookup')"
uiStyle=
"DEFAULT"
:labelWidth=
"130"
:isShowCaption=
"true"
:error=
"detailsModel.lookup.error"
:isEmptyCaption=
"false"
labelPos=
"LEFT"
>
<avue-custom-form
:isSubForm=
"true"
:isParseString=
"true"
:isFormData=
"false"
:options=
"
{"column":[{"type":"dynamic","label":"","span":24,"display":true,"children":{"type":"crud","index":false,"align":"center","headerAlign":"center","addBtn":true,"delBtn":true,"column":[{"type":"select","label":"Key field","cascaderItem":[],"span":24,"display":true,"prop":"fieldname","props":{"label":"showName","value":"columnName"},"dicUrl":`lite/ibzlite/entitys/${entityname}/fields`,"dicMethod":"get","filterable":true},{"type":"select","label":"References key field","cascaderItem":[],"span":24,"display":true,"prop":"reffieldname","props":{"label":"showName","value":"columnName"},"dicUrl":`lite/ibzlite/entitys/${refentityname}/fields`,"dicMethod":"get"}]},"prop":"dstlookups"}],"labelPosition":"top","labelSuffix":"","labelWidth":80,"gutter":0,"menuBtn":false,"submitBtn":true,"submitText":"提交","emptyBtn":true,"emptyText":"清空","menuPosition":"center"}" v-model="data.lookup" :formData="data" :formState="formState">
</avue-custom-form>
</app-form-item>
<app-form-part
name=
"lookup"
:context=
"context"
:viewparams=
"viewparams"
:data=
"mixinData"
:formState=
"formState"
systemCodeName=
"ibzlite"
appCodeName=
"web"
deCodeName=
"MetaRelationship"
formCodeName=
"Main"
formDetailCodeName=
"lookup"
@
change=
"onFormItemValueChange"
></app-form-part>
</i-col>
...
...
@@ -515,6 +513,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @memberof MainBase
*/
public
data
:
any
=
{
lookup
:
null
,
srforikey
:
null
,
srfkey
:
null
,
srfmajortext
:
null
,
...
...
@@ -530,7 +529,6 @@ export default class MainBase extends Vue implements ControlInterface {
nestedname
:
null
,
refentityid
:
null
,
entityid
:
null
,
lookup
:
null
,
relationid
:
null
,
metarelationship
:
null
,
};
...
...
@@ -607,10 +605,6 @@ export default class MainBase extends Vue implements ControlInterface {
{
required
:
this
.
detailsModel
.
nestedname
.
required
,
type
:
'string'
,
message
:
'嵌套代码名称 值不能为空'
,
trigger
:
'change'
},
{
required
:
this
.
detailsModel
.
nestedname
.
required
,
type
:
'string'
,
message
:
'嵌套代码名称 值不能为空'
,
trigger
:
'blur'
},
],
lookup
:
[
{
required
:
this
.
detailsModel
.
lookup
.
required
,
type
:
'string'
,
message
:
'Lookup 值不能为空'
,
trigger
:
'change'
},
{
required
:
this
.
detailsModel
.
lookup
.
required
,
type
:
'string'
,
message
:
'Lookup 值不能为空'
,
trigger
:
'blur'
},
],
}
}
...
...
@@ -716,6 +710,8 @@ export default class MainBase extends Vue implements ControlInterface {
* @memberof MainBase
*/
public
detailsModel
:
any
=
{
lookup
:
new
FormPartModel
({
caption
:
''
,
detailType
:
'FORMPART'
,
name
:
'lookup'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
})
,
group1
:
new
FormGroupPanelModel
({
caption
:
'实体关系基本信息'
,
detailType
:
'GROUPPANEL'
,
name
:
'group1'
,
visible
:
true
,
isShowCaption
:
false
,
form
:
this
,
isControlledContent
:
false
,
uiActionGroup
:
{
caption
:
''
,
langbase
:
'entities.metarelationship.main_form'
,
extractMode
:
'ITEM'
,
details
:
[]
},
isManageContainer
:
false
,
showMoreModeItems
:
[]
})
,
formpage1
:
new
FormPageModel
({
caption
:
'基本信息'
,
detailType
:
'FORMPAGE'
,
name
:
'formpage1'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
})
...
...
@@ -749,8 +745,6 @@ export default class MainBase extends Vue implements ControlInterface {
refentityid
:
new
FormItemModel
({
caption
:
'引用实体标识'
,
detailType
:
'FORMITEM'
,
name
:
'refentityid'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
,
required
:
false
,
disabled
:
false
,
enableCond
:
3
})
,
entityid
:
new
FormItemModel
({
caption
:
'实体标识'
,
detailType
:
'FORMITEM'
,
name
:
'entityid'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
,
required
:
false
,
disabled
:
false
,
enableCond
:
3
})
,
lookup
:
new
FormItemModel
({
caption
:
'Lookup'
,
detailType
:
'FORMITEM'
,
name
:
'lookup'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
,
required
:
false
,
disabled
:
false
,
enableCond
:
3
})
,
relationid
:
new
FormItemModel
({
caption
:
'关系标识'
,
detailType
:
'FORMITEM'
,
name
:
'relationid'
,
visible
:
true
,
isShowCaption
:
true
,
form
:
this
,
isControlledContent
:
false
,
required
:
false
,
disabled
:
false
,
enableCond
:
3
})
,
...
...
@@ -936,18 +930,6 @@ export default class MainBase extends Vue implements ControlInterface {
this
.
formDataChange
({
name
:
'entityid'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 监控表单属性 lookup 值
*
* @param {*} newVal
* @param {*} oldVal
* @memberof MainBase
*/
@
Watch
(
'data.lookup'
)
onLookupChange
(
newVal
:
any
,
oldVal
:
any
)
{
this
.
formDataChange
({
name
:
'lookup'
,
newVal
:
newVal
,
oldVal
:
oldVal
});
}
/**
* 监控表单属性 relationid 值
*
...
...
app_web/src/widgets/meta-relationship/main-form/main-form-model.ts
浏览文件 @
adbaef2d
...
...
@@ -24,6 +24,10 @@ export default class MainModel {
name
:
'srffrontuf'
,
prop
:
'srffrontuf'
,
dataType
:
'TEXT'
,
},
{
name
:
'lookup'
,
dataType
:
'FORMPART'
},
{
name
:
'srforikey'
,
...
...
@@ -90,11 +94,6 @@ export default class MainModel {
prop
:
'entity_id'
,
dataType
:
'PICKUP'
,
},
{
name
:
'lookup'
,
prop
:
'lookups'
,
dataType
:
'ONE2MANYDATA'
,
},
{
name
:
'relationid'
,
prop
:
'id'
,
...
...
ibzlite-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
adbaef2d
...
...
@@ -360,7 +360,7 @@
<!--输出实体[META_RELATION]数据结构 -->
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-meta_relation-9
1
-16"
>
<changeSet
author=
"a_A_5d9d78509"
id=
"tab-meta_relation-9
8
-16"
>
<createTable
tableName=
"IBZRELATION"
>
<column
name=
"RELATIONID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_META_RELATION_RELATIONID"
/>
...
...
ibzlite-provider/ibzlite-provider-api/src/main/java/cn/ibizlab/api/dto/MetaRelationshipDTO.java
浏览文件 @
adbaef2d
...
...
@@ -189,9 +189,9 @@ public class MetaRelationshipDTO extends DTOBase implements Serializable {
/**
* [META_LOOKUP]
*/
@JsonProperty
(
"lookups"
)
@JSONField
(
name
=
"lookups"
)
private
List
<
l
ookupDTO
>
lookups
;
@JsonProperty
(
"
meta
lookups"
)
@JSONField
(
name
=
"
meta
lookups"
)
private
List
<
MetaL
ookupDTO
>
lookups
;
}
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录