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 {
value
:
"{{item.id}}"
,
},
],
links
:
[
{
rel
:
"查看"
,
href
:
"/dstweb/app/codelist/dst/fielddict/{{self}}"
,
},
],
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 {
"timefield"
,
"domainsentity"
,
"domainsfield"
,
"dimentity"
,
"dimfield"
,
"modelid"
,
],
properties
:
{
...
...
@@ -70,7 +72,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
{
source
:
[...[{
label
:
"--"
,
id
:
""
}]],
p0
:
"modelid"
,
url
:
"/dst/datamodels/${p0}/propertys"
,
url
:
"/dst/datamodels/${p0}/
all
propertys"
,
title
:
"{{item.label}}"
,
value
:
"{{item.id}}"
,
},
...
...
@@ -96,7 +98,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
source
:
[...[{
label
:
"--"
,
id
:
""
}]],
p0
:
"modelid"
,
p1
:
"entity"
,
url
:
"/dst/datamodels/${p0}/propertys/${p1}/fields"
,
url
:
"/dst/datamodels/${p0}/
all
propertys/${p1}/fields"
,
title
:
"{{item.label}}"
,
value
:
"{{item.id}}"
,
},
...
...
@@ -122,7 +124,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
{
source
:
[...[{
label
:
"--"
,
id
:
""
}]],
p0
:
"modelid"
,
url
:
"/dst/datamodels/${p0}/propertys"
,
url
:
"/dst/datamodels/${p0}/
all
propertys"
,
title
:
"{{item.label}}"
,
value
:
"{{item.id}}"
,
},
...
...
@@ -148,7 +150,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
source
:
[...[{
label
:
"--"
,
id
:
""
}]],
p0
:
"modelid"
,
p1
:
"entity"
,
url
:
"/dst/datamodels/${p0}/propertys/${p1}/fields"
,
url
:
"/dst/datamodels/${p0}/
all
propertys/${p1}/fields"
,
title
:
"{{item.label}}"
,
value
:
"{{item.id}}"
,
},
...
...
@@ -174,7 +176,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
{
source
:
[...[{
label
:
"--"
,
id
:
""
}]],
p0
:
"modelid"
,
url
:
"/dst/datamodels/${p0}/propertys"
,
url
:
"/dst/datamodels/${p0}/
all
propertys"
,
title
:
"{{item.label}}"
,
value
:
"{{item.id}}"
,
},
...
...
@@ -200,7 +202,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
source
:
[...[{
label
:
"--"
,
id
:
""
}]],
p0
:
"modelid"
,
p1
:
"entity"
,
url
:
"/dst/datamodels/${p0}/propertys/${p1}/fields"
,
url
:
"/dst/datamodels/${p0}/
all
propertys/${p1}/fields"
,
title
:
"{{item.label}}"
,
value
:
"{{item.id}}"
,
},
...
...
@@ -216,6 +218,58 @@ export default class AppFormJsonFieldSet extends AppFormJson {
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
:
{
type
:
"selectnew"
,
title
:
"标示实体"
,
...
...
@@ -226,7 +280,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
{
source
:
[...[{
label
:
"--"
,
id
:
""
}]],
p0
:
"modelid"
,
url
:
"/dst/datamodels/${p0}/propertys"
,
url
:
"/dst/datamodels/${p0}/
all
propertys"
,
title
:
"{{item.label}}"
,
value
:
"{{item.id}}"
,
},
...
...
@@ -237,7 +291,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
value
:
""
,
},
},
propertyOrder
:
1
0
,
propertyOrder
:
1
2
,
},
keyvaluefield
:
{
type
:
"selectnew"
,
...
...
@@ -251,7 +305,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
source
:
[...[{
label
:
"--"
,
id
:
""
}]],
p0
:
"modelid"
,
p1
:
"entity"
,
url
:
"/dst/datamodels/${p0}/propertys/${p1}/fields"
,
url
:
"/dst/datamodels/${p0}/
all
propertys/${p1}/fields"
,
title
:
"{{item.label}}"
,
value
:
"{{item.id}}"
,
},
...
...
@@ -264,7 +318,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
value
:
""
,
},
},
propertyOrder
:
1
1
,
propertyOrder
:
1
3
,
},
ext1entity
:
{
...
...
@@ -277,7 +331,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
{
source
:
[...[{
label
:
"--"
,
id
:
""
}]],
p0
:
"modelid"
,
url
:
"/dst/datamodels/${p0}/propertys"
,
url
:
"/dst/datamodels/${p0}/
all
propertys"
,
title
:
"{{item.label}}"
,
value
:
"{{item.id}}"
,
},
...
...
@@ -289,7 +343,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
value
:
""
,
},
},
propertyOrder
:
1
2
,
propertyOrder
:
1
4
,
},
ext1field
:
{
type
:
"selectnew"
,
...
...
@@ -303,7 +357,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
source
:
[...[{
label
:
"--"
,
id
:
""
}]],
p0
:
"modelid"
,
p1
:
"entity"
,
url
:
"/dst/datamodels/${p0}/propertys/${p1}/fields"
,
url
:
"/dst/datamodels/${p0}/
all
propertys/${p1}/fields"
,
title
:
"{{item.label}}"
,
value
:
"{{item.id}}"
,
},
...
...
@@ -316,7 +370,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
value
:
""
,
},
},
propertyOrder
:
1
3
,
propertyOrder
:
1
5
,
},
ext2entity
:
{
...
...
@@ -329,7 +383,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
{
source
:
[...[{
label
:
"--"
,
id
:
""
}]],
p0
:
"modelid"
,
url
:
"/dst/datamodels/${p0}/propertys"
,
url
:
"/dst/datamodels/${p0}/
all
propertys"
,
title
:
"{{item.label}}"
,
value
:
"{{item.id}}"
,
},
...
...
@@ -341,7 +395,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
value
:
""
,
},
},
propertyOrder
:
1
4
,
propertyOrder
:
1
6
,
},
ext2field
:
{
type
:
"selectnew"
,
...
...
@@ -355,7 +409,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
source
:
[...[{
label
:
"--"
,
id
:
""
}]],
p0
:
"modelid"
,
p1
:
"entity"
,
url
:
"/dst/datamodels/${p0}/propertys/${p1}/fields"
,
url
:
"/dst/datamodels/${p0}/
all
propertys/${p1}/fields"
,
title
:
"{{item.label}}"
,
value
:
"{{item.id}}"
,
},
...
...
@@ -368,7 +422,7 @@ export default class AppFormJsonFieldSet extends AppFormJson {
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 {
* @type {*}
* @memberof AvueCustomForm
*/
public
options
:
any
;
@
Prop
()
public
options
?
:
any
;
/**
* 是否需要转换为string类型
...
...
ibzdst-core/src/main/java/cn/ibizlab/core/extensions/service/DstDataSourceExService.java
浏览文件 @
3c559ea6
...
...
@@ -26,8 +26,6 @@ import java.util.HashMap;
import
java.util.List
;
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 {
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 {
}
}
}
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 {
return
ResponseEntity
.
ok
(
list
);
}
@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
,
@PathVariable
(
name
=
"modelname"
,
required
=
false
)
String
modelname
,
...
...
@@ -94,6 +96,31 @@ public class DstCoreResource {
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
private
IBZDictFeignClient
dictFeignClient
;
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录