Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzdst
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzdst
提交
3c559ea6
提交
3c559ea6
编写于
12月 10, 2020
作者:
sq3536
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
配置完成
上级
71b3262d
变更
7
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
115 行增加
和
37 行删除
+115
-37
app-form-json-dim.vue
app_web/src/components/app-form-json/app-form-json-dim.vue
+1
-6
app-form-json-field-set.vue
.../src/components/app-form-json/app-form-json-field-set.vue
+72
-18
avue-custom-form.vue
app_web/src/components/avue-custom-form/avue-custom-form.vue
+1
-1
DstDataSourceExService.java
...izlab/core/extensions/service/DstDataSourceExService.java
+0
-2
DataModel.java
...java/cn/ibizlab/core/lite/extensions/model/DataModel.java
+14
-0
LiteStorage.java
...ava/cn/ibizlab/core/lite/extensions/util/LiteStorage.java
+0
-10
DstCoreResource.java
.../java/cn/ibizlab/api/rest/extensions/DstCoreResource.java
+27
-0
未找到文件。
app_web/src/components/app-form-json/app-form-json-dim.vue
浏览文件 @
3c559ea6
...
@@ -128,12 +128,7 @@ export default class AppFormJsonDim extends AppFormJson {
...
@@ -128,12 +128,7 @@ export default class AppFormJsonDim extends AppFormJson {
value
:
"{{item.id}}"
,
value
:
"{{item.id}}"
,
},
},
],
],
links
:
[
{
rel
:
"查看"
,
href
:
"/dstweb/app/codelist/dst/fielddict/{{self}}"
,
},
],
options
:
{
options
:
{
select2_options
:
{
select2_options
:
{
...
...
app_web/src/components/app-form-json/app-form-json-field-set.vue
浏览文件 @
3c559ea6
...
@@ -36,6 +36,8 @@ export default class AppFormJsonFieldSet extends AppFormJson {
...
@@ -36,6 +36,8 @@ export default class AppFormJsonFieldSet extends AppFormJson {
"timefield"
,
"timefield"
,
"domainsentity"
,
"domainsentity"
,
"domainsfield"
,
"domainsfield"
,
"dimentity"
,
"dimfield"
,
"modelid"
,
"modelid"
,
],
],
properties
:
{
properties
:
{
...
@@ -70,7 +72,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
...
@@ -70,7 +72,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
{
{
source
:
[...[{
label
:
"--"
,
id
:
""
}]],
source
:
[...[{
label
:
"--"
,
id
:
""
}]],
p0
:
"modelid"
,
p0
:
"modelid"
,
url
:
"/dst/datamodels/${p0}/propertys"
,
url
:
"/dst/datamodels/${p0}/
all
propertys"
,
title
:
"{{item.label}}"
,
title
:
"{{item.label}}"
,
value
:
"{{item.id}}"
,
value
:
"{{item.id}}"
,
},
},
...
@@ -96,7 +98,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
...
@@ -96,7 +98,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
source
:
[...[{
label
:
"--"
,
id
:
""
}]],
source
:
[...[{
label
:
"--"
,
id
:
""
}]],
p0
:
"modelid"
,
p0
:
"modelid"
,
p1
:
"entity"
,
p1
:
"entity"
,
url
:
"/dst/datamodels/${p0}/propertys/${p1}/fields"
,
url
:
"/dst/datamodels/${p0}/
all
propertys/${p1}/fields"
,
title
:
"{{item.label}}"
,
title
:
"{{item.label}}"
,
value
:
"{{item.id}}"
,
value
:
"{{item.id}}"
,
},
},
...
@@ -122,7 +124,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
...
@@ -122,7 +124,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
{
{
source
:
[...[{
label
:
"--"
,
id
:
""
}]],
source
:
[...[{
label
:
"--"
,
id
:
""
}]],
p0
:
"modelid"
,
p0
:
"modelid"
,
url
:
"/dst/datamodels/${p0}/propertys"
,
url
:
"/dst/datamodels/${p0}/
all
propertys"
,
title
:
"{{item.label}}"
,
title
:
"{{item.label}}"
,
value
:
"{{item.id}}"
,
value
:
"{{item.id}}"
,
},
},
...
@@ -148,7 +150,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
...
@@ -148,7 +150,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
source
:
[...[{
label
:
"--"
,
id
:
""
}]],
source
:
[...[{
label
:
"--"
,
id
:
""
}]],
p0
:
"modelid"
,
p0
:
"modelid"
,
p1
:
"entity"
,
p1
:
"entity"
,
url
:
"/dst/datamodels/${p0}/propertys/${p1}/fields"
,
url
:
"/dst/datamodels/${p0}/
all
propertys/${p1}/fields"
,
title
:
"{{item.label}}"
,
title
:
"{{item.label}}"
,
value
:
"{{item.id}}"
,
value
:
"{{item.id}}"
,
},
},
...
@@ -174,7 +176,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
...
@@ -174,7 +176,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
{
{
source
:
[...[{
label
:
"--"
,
id
:
""
}]],
source
:
[...[{
label
:
"--"
,
id
:
""
}]],
p0
:
"modelid"
,
p0
:
"modelid"
,
url
:
"/dst/datamodels/${p0}/propertys"
,
url
:
"/dst/datamodels/${p0}/
all
propertys"
,
title
:
"{{item.label}}"
,
title
:
"{{item.label}}"
,
value
:
"{{item.id}}"
,
value
:
"{{item.id}}"
,
},
},
...
@@ -200,7 +202,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
...
@@ -200,7 +202,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
source
:
[...[{
label
:
"--"
,
id
:
""
}]],
source
:
[...[{
label
:
"--"
,
id
:
""
}]],
p0
:
"modelid"
,
p0
:
"modelid"
,
p1
:
"entity"
,
p1
:
"entity"
,
url
:
"/dst/datamodels/${p0}/propertys/${p1}/fields"
,
url
:
"/dst/datamodels/${p0}/
all
propertys/${p1}/fields"
,
title
:
"{{item.label}}"
,
title
:
"{{item.label}}"
,
value
:
"{{item.id}}"
,
value
:
"{{item.id}}"
,
},
},
...
@@ -216,6 +218,58 @@ export default class AppFormJsonFieldSet extends AppFormJson {
...
@@ -216,6 +218,58 @@ export default class AppFormJsonFieldSet extends AppFormJson {
propertyOrder
:
9
,
propertyOrder
:
9
,
},
},
dimentity
:
{
type
:
"selectnew"
,
title
:
"维度实体"
,
watch
:
{
modelid
:
"arr_columnDefs.modelid"
,
},
enumSource
:
[
{
source
:
[...[{
label
:
"--"
,
id
:
""
}]],
p0
:
"modelid"
,
url
:
"/dst/datamodels/${p0}/allpropertys"
,
title
:
"{{item.label}}"
,
value
:
"{{item.id}}"
,
},
],
options
:
{
grid_columns
:
6
,
select2_options
:
{
width
:
350
,
value
:
""
,
},
},
propertyOrder
:
10
,
},
dimfield
:
{
type
:
"selectnew"
,
title
:
"维度属性"
,
watch
:
{
modelid
:
"arr_columnDefs.modelid"
,
entity
:
"arr_columnDefs.dimentity"
,
},
enumSource
:
[
{
source
:
[...[{
label
:
"--"
,
id
:
""
}]],
p0
:
"modelid"
,
p1
:
"entity"
,
url
:
"/dst/datamodels/${p0}/allpropertys/${p1}/fields"
,
title
:
"{{item.label}}"
,
value
:
"{{item.id}}"
,
},
],
options
:
{
grid_columns
:
6
,
select2_options
:
{
width
:
250
,
value
:
""
,
},
},
propertyOrder
:
11
,
},
keyvalueentity
:
{
keyvalueentity
:
{
type
:
"selectnew"
,
type
:
"selectnew"
,
title
:
"标示实体"
,
title
:
"标示实体"
,
...
@@ -226,7 +280,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
...
@@ -226,7 +280,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
{
{
source
:
[...[{
label
:
"--"
,
id
:
""
}]],
source
:
[...[{
label
:
"--"
,
id
:
""
}]],
p0
:
"modelid"
,
p0
:
"modelid"
,
url
:
"/dst/datamodels/${p0}/propertys"
,
url
:
"/dst/datamodels/${p0}/
all
propertys"
,
title
:
"{{item.label}}"
,
title
:
"{{item.label}}"
,
value
:
"{{item.id}}"
,
value
:
"{{item.id}}"
,
},
},
...
@@ -237,7 +291,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
...
@@ -237,7 +291,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
value
:
""
,
value
:
""
,
},
},
},
},
propertyOrder
:
1
0
,
propertyOrder
:
1
2
,
},
},
keyvaluefield
:
{
keyvaluefield
:
{
type
:
"selectnew"
,
type
:
"selectnew"
,
...
@@ -251,7 +305,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
...
@@ -251,7 +305,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
source
:
[...[{
label
:
"--"
,
id
:
""
}]],
source
:
[...[{
label
:
"--"
,
id
:
""
}]],
p0
:
"modelid"
,
p0
:
"modelid"
,
p1
:
"entity"
,
p1
:
"entity"
,
url
:
"/dst/datamodels/${p0}/propertys/${p1}/fields"
,
url
:
"/dst/datamodels/${p0}/
all
propertys/${p1}/fields"
,
title
:
"{{item.label}}"
,
title
:
"{{item.label}}"
,
value
:
"{{item.id}}"
,
value
:
"{{item.id}}"
,
},
},
...
@@ -264,7 +318,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
...
@@ -264,7 +318,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
value
:
""
,
value
:
""
,
},
},
},
},
propertyOrder
:
1
1
,
propertyOrder
:
1
3
,
},
},
ext1entity
:
{
ext1entity
:
{
...
@@ -277,7 +331,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
...
@@ -277,7 +331,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
{
{
source
:
[...[{
label
:
"--"
,
id
:
""
}]],
source
:
[...[{
label
:
"--"
,
id
:
""
}]],
p0
:
"modelid"
,
p0
:
"modelid"
,
url
:
"/dst/datamodels/${p0}/propertys"
,
url
:
"/dst/datamodels/${p0}/
all
propertys"
,
title
:
"{{item.label}}"
,
title
:
"{{item.label}}"
,
value
:
"{{item.id}}"
,
value
:
"{{item.id}}"
,
},
},
...
@@ -289,7 +343,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
...
@@ -289,7 +343,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
value
:
""
,
value
:
""
,
},
},
},
},
propertyOrder
:
1
2
,
propertyOrder
:
1
4
,
},
},
ext1field
:
{
ext1field
:
{
type
:
"selectnew"
,
type
:
"selectnew"
,
...
@@ -303,7 +357,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
...
@@ -303,7 +357,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
source
:
[...[{
label
:
"--"
,
id
:
""
}]],
source
:
[...[{
label
:
"--"
,
id
:
""
}]],
p0
:
"modelid"
,
p0
:
"modelid"
,
p1
:
"entity"
,
p1
:
"entity"
,
url
:
"/dst/datamodels/${p0}/propertys/${p1}/fields"
,
url
:
"/dst/datamodels/${p0}/
all
propertys/${p1}/fields"
,
title
:
"{{item.label}}"
,
title
:
"{{item.label}}"
,
value
:
"{{item.id}}"
,
value
:
"{{item.id}}"
,
},
},
...
@@ -316,7 +370,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
...
@@ -316,7 +370,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
value
:
""
,
value
:
""
,
},
},
},
},
propertyOrder
:
1
3
,
propertyOrder
:
1
5
,
},
},
ext2entity
:
{
ext2entity
:
{
...
@@ -329,7 +383,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
...
@@ -329,7 +383,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
{
{
source
:
[...[{
label
:
"--"
,
id
:
""
}]],
source
:
[...[{
label
:
"--"
,
id
:
""
}]],
p0
:
"modelid"
,
p0
:
"modelid"
,
url
:
"/dst/datamodels/${p0}/propertys"
,
url
:
"/dst/datamodels/${p0}/
all
propertys"
,
title
:
"{{item.label}}"
,
title
:
"{{item.label}}"
,
value
:
"{{item.id}}"
,
value
:
"{{item.id}}"
,
},
},
...
@@ -341,7 +395,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
...
@@ -341,7 +395,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
value
:
""
,
value
:
""
,
},
},
},
},
propertyOrder
:
1
4
,
propertyOrder
:
1
6
,
},
},
ext2field
:
{
ext2field
:
{
type
:
"selectnew"
,
type
:
"selectnew"
,
...
@@ -355,7 +409,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
...
@@ -355,7 +409,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
source
:
[...[{
label
:
"--"
,
id
:
""
}]],
source
:
[...[{
label
:
"--"
,
id
:
""
}]],
p0
:
"modelid"
,
p0
:
"modelid"
,
p1
:
"entity"
,
p1
:
"entity"
,
url
:
"/dst/datamodels/${p0}/propertys/${p1}/fields"
,
url
:
"/dst/datamodels/${p0}/
all
propertys/${p1}/fields"
,
title
:
"{{item.label}}"
,
title
:
"{{item.label}}"
,
value
:
"{{item.id}}"
,
value
:
"{{item.id}}"
,
},
},
...
@@ -368,7 +422,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
...
@@ -368,7 +422,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
value
:
""
,
value
:
""
,
},
},
},
},
propertyOrder
:
1
5
,
propertyOrder
:
1
7
,
},
},
},
},
},
},
...
...
app_web/src/components/avue-custom-form/avue-custom-form.vue
浏览文件 @
3c559ea6
...
@@ -23,7 +23,7 @@ export default class AvueCustomForm extends Vue {
...
@@ -23,7 +23,7 @@ export default class AvueCustomForm extends Vue {
* @type {*}
* @type {*}
* @memberof AvueCustomForm
* @memberof AvueCustomForm
*/
*/
public
options
:
any
;
@
Prop
()
public
options
?
:
any
;
/**
/**
* 是否需要转换为string类型
* 是否需要转换为string类型
...
...
ibzdst-core/src/main/java/cn/ibizlab/core/extensions/service/DstDataSourceExService.java
浏览文件 @
3c559ea6
...
@@ -26,8 +26,6 @@ import java.util.HashMap;
...
@@ -26,8 +26,6 @@ import java.util.HashMap;
import
java.util.List
;
import
java.util.List
;
import
java.util.Map
;
import
java.util.Map
;
import
static
cn
.
ibizlab
.
core
.
lite
.
extensions
.
util
.
LiteStorage
.
parseDatasource
;
/**
/**
* 实体[数据源] 自定义服务对象
* 实体[数据源] 自定义服务对象
*/
*/
...
...
ibzdst-core/src/main/java/cn/ibizlab/core/lite/extensions/model/DataModel.java
浏览文件 @
3c559ea6
...
@@ -332,4 +332,18 @@ public class DataModel {
...
@@ -332,4 +332,18 @@ public class DataModel {
return
properties
;
return
properties
;
}
}
@JsonIgnore
@JSONField
(
serialize
=
false
)
public
LinkedHashSet
<
Property
>
getAllProperty
()
{
LinkedHashSet
<
Property
>
properties
=
this
.
getObjectProperties
();
if
(
this
.
getNestedDataModels
()
!=
null
)
{
for
(
DataModel
dm
:
this
.
getNestedDataModels
())
{
properties
.
addAll
(
dm
.
getAllProperty
());
}
}
return
properties
;
}
}
}
ibzdst-core/src/main/java/cn/ibizlab/core/lite/extensions/util/LiteStorage.java
浏览文件 @
3c559ea6
...
@@ -88,14 +88,4 @@ public class LiteStorage {
...
@@ -88,14 +88,4 @@ public class LiteStorage {
}
}
}
}
}
}
public
static
Map
parseDatasource
(
String
json
)
{
JSONArray
tableData
=
JSONArray
.
parseArray
(
json
);
Map
map
=
new
HashMap
();
for
(
int
i
=
0
;
i
<
tableData
.
size
();
i
++)
{
JSONObject
jsonObject
=
tableData
.
getJSONObject
(
i
);
map
.
put
(
jsonObject
.
get
(
"param"
),
jsonObject
.
get
(
"value"
));
}
return
map
;
}
}
}
ibzdst-provider/ibzdst-provider-api/src/main/java/cn/ibizlab/api/rest/extensions/DstCoreResource.java
浏览文件 @
3c559ea6
...
@@ -80,6 +80,8 @@ public class DstCoreResource {
...
@@ -80,6 +80,8 @@ public class DstCoreResource {
return
ResponseEntity
.
ok
(
list
);
return
ResponseEntity
.
ok
(
list
);
}
}
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
{
"/dst/datamodels/{modelid}/propertys/{propertyname}/fields"
,
"/dst/datamodels/{modelid}/name/{modelname}/propertys/{propertyname}/fields"
})
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
{
"/dst/datamodels/{modelid}/propertys/{propertyname}/fields"
,
"/dst/datamodels/{modelid}/name/{modelname}/propertys/{propertyname}/fields"
})
public
ResponseEntity
<
List
<
Option
>>
getDataModelParentField
(
@PathVariable
(
name
=
"modelid"
,
required
=
false
)
String
modelid
,
public
ResponseEntity
<
List
<
Option
>>
getDataModelParentField
(
@PathVariable
(
name
=
"modelid"
,
required
=
false
)
String
modelid
,
@PathVariable
(
name
=
"modelname"
,
required
=
false
)
String
modelname
,
@PathVariable
(
name
=
"modelname"
,
required
=
false
)
String
modelname
,
...
@@ -94,6 +96,31 @@ public class DstCoreResource {
...
@@ -94,6 +96,31 @@ public class DstCoreResource {
return
ResponseEntity
.
ok
(
list
);
return
ResponseEntity
.
ok
(
list
);
}
}
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
{
"/dst/datamodels/{modelid}/allpropertys"
})
public
ResponseEntity
<
List
<
Option
>>
getDataModelParentProperty
(
@PathVariable
(
name
=
"modelid"
,
required
=
false
)
String
modelid
)
{
List
<
Option
>
list
=
new
ArrayList
<>();
liteModelService
.
getDataModel
(
modelid
).
getAllProperty
().
forEach
(
property
->
{
Option
option
=
new
Option
().
setId
(
property
.
getPropertyName
()).
setLabel
(
property
.
getEntityModel
().
getLogicName
()+
"["
+
property
.
getPropertyName
()+
"]"
);
list
.
add
(
option
);
});
return
ResponseEntity
.
ok
(
list
);
}
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
{
"/dst/datamodels/{modelid}/allpropertys/{propertyname}/fields"
})
public
ResponseEntity
<
List
<
Option
>>
getDataModelField
(
@PathVariable
(
name
=
"modelid"
,
required
=
false
)
String
modelid
,
@PathVariable
(
name
=
"propertyname"
,
required
=
false
)
String
propertyname
,
@PathVariable
(
name
=
"fieldname"
,
required
=
false
)
String
fieldname
)
{
List
<
Option
>
list
=
new
ArrayList
<>();
Property
property
=
liteModelService
.
getDataModel
(
modelid
).
findObjectProperty
(
propertyname
,
"ALL"
);
property
.
getEntityModel
().
getFields
().
forEach
(
field
->
{
Option
option
=
new
Option
().
setId
(
property
.
getPropertyName
()+
"."
+
field
.
getColumnName
()).
setLabel
(
field
.
getComment
()+
"["
+
field
.
getColumnName
()+
"]"
);
list
.
add
(
option
);
});
return
ResponseEntity
.
ok
(
list
);
}
@Autowired
@Autowired
private
IBZDictFeignClient
dictFeignClient
;
private
IBZDictFeignClient
dictFeignClient
;
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录