Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzlite
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzlite
提交
a0b03d05
提交
a0b03d05
编写于
11月 19, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
liuleizhi 发布系统代码 [ibz-lite,应用]
上级
68f50012
变更
7
隐藏空白字符变更
内嵌
并排
正在显示
7 个修改的文件
包含
2 行增加
和
73 行删除
+2
-73
blade-visuals.ts
app_web/src/mock/entity/blade-visuals/blade-visuals.ts
+0
-38
blade-visual-service-base.ts
...web/src/service/blade-visual/blade-visual-service-base.ts
+0
-14
IBladeVisualService.java
...cn/ibizlab/core/avuedata/service/IBladeVisualService.java
+0
-1
BladeVisualServiceImpl.java
...ab/core/avuedata/service/impl/BladeVisualServiceImpl.java
+0
-7
h2_table.xml
ibzlite-core/src/main/resources/liquibase/h2_table.xml
+1
-1
systemResource.json
...te-core/src/main/resources/permission/systemResource.json
+1
-1
BladeVisualResource.java
...rc/main/java/cn/ibizlab/api/rest/BladeVisualResource.java
+0
-11
未找到文件。
app_web/src/mock/entity/blade-visuals/blade-visuals.ts
浏览文件 @
a0b03d05
...
@@ -86,44 +86,6 @@ mock.onDelete(new RegExp(/^\/bladevisuals\/batch$/)).reply((config: any) => {
...
@@ -86,44 +86,6 @@ mock.onDelete(new RegExp(/^\/bladevisuals\/batch$/)).reply((config: any) => {
return
[
status
,
{}];
return
[
status
,
{}];
});
});
// Save2
mock
.
onPost
(
new
RegExp
(
/^
\/
bladevisuals
\/?([
a-zA-Z0-9
\-\;]{0,35})
$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:bladevisual 方法: Save2"
);
console
.
table
({
url
:
config
.
url
,
method
:
config
.
method
,
data
:
config
.
data
});
let
status
=
MockAdapter
.
mockStatus
(
config
);
if
(
status
!==
200
)
{
return
[
status
,
null
];
}
const
paramArray
:
Array
<
any
>
=
[
'id'
];
const
matchArray
:
any
=
new
RegExp
(
/^
\/
bladevisuals
\/([
a-zA-Z0-9
\-\;]{1,35})
$/
).
exec
(
config
.
url
);
let
tempValue
:
any
=
{};
if
(
matchArray
&&
matchArray
.
length
>
1
&&
paramArray
&&
paramArray
.
length
>
0
){
paramArray
.
forEach
((
item
:
any
,
index
:
number
)
=>
{
Object
.
defineProperty
(
tempValue
,
item
,
{
enumerable
:
true
,
value
:
matchArray
[
index
+
1
]
});
});
}
//let items = mockDatas ? mockDatas : [];
//let _items = items.find((item: any) => Object.is(item.id, tempValue.id));
let
data
=
JSON
.
parse
(
config
.
data
);
mockDatas
.
forEach
((
item
)
=>
{
if
(
item
[
'id'
]
==
tempValue
[
'id'
]
){
for
(
let
value
in
data
){
if
(
item
.
hasOwnProperty
(
value
)){
item
[
value
]
=
data
[
value
];
}
}
}
})
console
.
groupCollapsed
(
"response数据 status: "
+
status
+
" data: "
);
console
.
table
(
data
);
console
.
groupEnd
();
console
.
groupEnd
();
return
[
status
,
data
];
});
// Select
// Select
mock
.
onGet
(
new
RegExp
(
/^
\/
bladevisuals
\/([
a-zA-Z0-9
\-\;]{1,35})\/
select$/
)).
reply
((
config
:
any
)
=>
{
mock
.
onGet
(
new
RegExp
(
/^
\/
bladevisuals
\/([
a-zA-Z0-9
\-\;]{1,35})\/
select$/
)).
reply
((
config
:
any
)
=>
{
...
...
app_web/src/service/blade-visual/blade-visual-service-base.ts
浏览文件 @
a0b03d05
...
@@ -38,20 +38,6 @@ export default class BladeVisualServiceBase extends EntityService {
...
@@ -38,20 +38,6 @@ export default class BladeVisualServiceBase extends EntityService {
// 实体接口
// 实体接口
/**
* Save2接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof BladeVisualServiceBase
*/
public
async
Save2
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
Http
.
getInstance
().
post
(
`/bladevisuals/
${
context
.
bladevisual
}
`
,
data
,
isloading
);
return
res
;
}
/**
/**
* Select接口方法
* Select接口方法
*
*
...
...
ibzlite-core/src/main/java/cn/ibizlab/core/avuedata/service/IBladeVisualService.java
浏览文件 @
a0b03d05
...
@@ -36,7 +36,6 @@ public interface IBladeVisualService extends IService<BladeVisual> {
...
@@ -36,7 +36,6 @@ public interface IBladeVisualService extends IService<BladeVisual> {
boolean
checkKey
(
BladeVisual
et
);
boolean
checkKey
(
BladeVisual
et
);
boolean
save
(
BladeVisual
et
);
boolean
save
(
BladeVisual
et
);
void
saveBatch
(
List
<
BladeVisual
>
list
);
void
saveBatch
(
List
<
BladeVisual
>
list
);
BladeVisual
save2
(
BladeVisual
et
);
Page
<
BladeVisual
>
searchDefault
(
BladeVisualSearchContext
context
);
Page
<
BladeVisual
>
searchDefault
(
BladeVisualSearchContext
context
);
/**
/**
*自定义查询SQL
*自定义查询SQL
...
...
ibzlite-core/src/main/java/cn/ibizlab/core/avuedata/service/impl/BladeVisualServiceImpl.java
浏览文件 @
a0b03d05
...
@@ -150,13 +150,6 @@ public class BladeVisualServiceImpl extends ServiceImpl<BladeVisualMapper, Blade
...
@@ -150,13 +150,6 @@ public class BladeVisualServiceImpl extends ServiceImpl<BladeVisualMapper, Blade
saveOrUpdateBatch
(
list
,
batchSize
);
saveOrUpdateBatch
(
list
,
batchSize
);
}
}
@Override
@Transactional
public
BladeVisual
save2
(
BladeVisual
et
)
{
//自定义代码
return
et
;
}
/**
/**
...
...
ibzlite-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
a0b03d05
...
@@ -4,7 +4,7 @@
...
@@ -4,7 +4,7 @@
<!--输出实体[BLADE_VISUAL]数据结构 -->
<!--输出实体[BLADE_VISUAL]数据结构 -->
<changeSet
author=
"root"
id=
"tab-blade_visual-5
4
-1"
>
<changeSet
author=
"root"
id=
"tab-blade_visual-5
5
-1"
>
<createTable
tableName=
"blade_visual"
>
<createTable
tableName=
"blade_visual"
>
<column
name=
"ID"
remarks=
""
type=
"BIGINT"
>
<column
name=
"ID"
remarks=
""
type=
"BIGINT"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_BLADE_VISUAL_ID"
/>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_BLADE_VISUAL_ID"
/>
...
...
ibzlite-core/src/main/resources/permission/systemResource.json
浏览文件 @
a0b03d05
...
@@ -120,7 +120,7 @@
...
@@ -120,7 +120,7 @@
"delogicname"
:
"可视化表"
,
"delogicname"
:
"可视化表"
,
"sysmoudle"
:{
"id"
:
"AVUEDATA"
,
"name"
:
"大屏展示"
},
"sysmoudle"
:{
"id"
:
"AVUEDATA"
,
"name"
:
"大屏展示"
},
"dedataset"
:[{
"id"
:
"Default"
,
"name"
:
"数据集"
}],
"dedataset"
:[{
"id"
:
"Default"
,
"name"
:
"数据集"
}],
"deaction"
:[{
"id"
:
"Create"
,
"name"
:
"Create"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Update"
,
"name"
:
"Update"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Remove"
,
"name"
:
"Remove"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Get"
,
"name"
:
"Get"
,
"type"
:
"BUILTIN"
},{
"id"
:
"GetDraft"
,
"name"
:
"GetDraft"
,
"type"
:
"BUILTIN"
},{
"id"
:
"CheckKey"
,
"name"
:
"CheckKey"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Save"
,
"name"
:
"Save"
,
"type"
:
"BUILTIN"
}
,{
"id"
:
"Save2"
,
"name"
:
"Save2"
,
"type"
:
"USERCUSTOM"
}
],
"deaction"
:[{
"id"
:
"Create"
,
"name"
:
"Create"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Update"
,
"name"
:
"Update"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Remove"
,
"name"
:
"Remove"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Get"
,
"name"
:
"Get"
,
"type"
:
"BUILTIN"
},{
"id"
:
"GetDraft"
,
"name"
:
"GetDraft"
,
"type"
:
"BUILTIN"
},{
"id"
:
"CheckKey"
,
"name"
:
"CheckKey"
,
"type"
:
"BUILTIN"
},{
"id"
:
"Save"
,
"name"
:
"Save"
,
"type"
:
"BUILTIN"
}],
"datascope"
:[{
"id"
:
"all"
,
"name"
:
"全部数据"
}]
"datascope"
:[{
"id"
:
"all"
,
"name"
:
"全部数据"
}]
}
}
,
{
,
{
...
...
ibzlite-provider/ibzlite-provider-api/src/main/java/cn/ibizlab/api/rest/BladeVisualResource.java
浏览文件 @
a0b03d05
...
@@ -47,17 +47,6 @@ public class BladeVisualResource {
...
@@ -47,17 +47,6 @@ public class BladeVisualResource {
@Lazy
@Lazy
public
BladeVisualMapping
bladevisualMapping
;
public
BladeVisualMapping
bladevisualMapping
;
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzlite-BladeVisual-Save2-all')"
)
@ApiOperation
(
value
=
"Save2"
,
tags
=
{
"可视化表"
},
notes
=
"Save2"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/bladevisuals/{bladevisual_id}/save2"
)
public
ResponseEntity
<
BladeVisualDTO
>
save2
(
@PathVariable
(
"bladevisual_id"
)
Long
bladevisual_id
,
@RequestBody
BladeVisualDTO
bladevisualdto
)
{
BladeVisual
domain
=
bladevisualMapping
.
toDomain
(
bladevisualdto
);
domain
.
setId
(
bladevisual_id
);
domain
=
bladevisualService
.
save2
(
domain
);
bladevisualdto
=
bladevisualMapping
.
toDto
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
bladevisualdto
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzlite-BladeVisual-Create-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzlite-BladeVisual-Create-all')"
)
@ApiOperation
(
value
=
"新建可视化表"
,
tags
=
{
"可视化表"
},
notes
=
"新建可视化表"
)
@ApiOperation
(
value
=
"新建可视化表"
,
tags
=
{
"可视化表"
},
notes
=
"新建可视化表"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/bladevisuals"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/bladevisuals"
)
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录