Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibzdst
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
1
议题
1
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibzdst
提交
4c200af5
提交
4c200af5
编写于
12月 16, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
hebao1234 发布系统代码 [ibz-dst,应用]
上级
d174b69d
变更
38
隐藏空白字符变更
内嵌
并排
正在显示
38 个修改的文件
包含
512 行增加
和
99 行删除
+512
-99
dropdown-list.vue
app_web/src/components/dropdown-list/dropdown-list.vue
+1
-1
exec-results.ts
app_web/src/mock/entity/exec-results/exec-results.ts
+76
-0
dabuild-service-base.ts
app_web/src/service/dabuild/dabuild-service-base.ts
+14
-0
dametric-service-base.ts
app_web/src/service/dametric/dametric-service-base.ts
+18
-0
dst-data-source-service-base.ts
...c/service/dst-data-source/dst-data-source-service-base.ts
+14
-0
dst-system-service-base.ts
app_web/src/service/dst-system/dst-system-service-base.ts
+14
-0
exec-result-service-base.ts
app_web/src/service/exec-result/exec-result-service-base.ts
+56
-0
meta-entity-service-base.ts
app_web/src/service/meta-entity/meta-entity-service-base.ts
+18
-0
meta-model-service-base.ts
app_web/src/service/meta-model/meta-model-service-base.ts
+14
-0
rule-engine-service-base.ts
app_web/src/service/rule-engine/rule-engine-service-base.ts
+14
-0
rule-item-service-base.ts
app_web/src/service/rule-item/rule-item-service-base.ts
+28
-0
rule-engine-ui-service-base.ts
.../src/uiservice/rule-engine/rule-engine-ui-service-base.ts
+18
-1
app-popover.d.ts
app_web/src/utils/types/app-popover.d.ts
+1
-1
main-grid-base.vue
app_web/src/widgets/dabuild/main-grid/main-grid-base.vue
+6
-5
main-grid-base.vue
app_web/src/widgets/dachart/main-grid/main-grid-base.vue
+6
-5
main-grid-base.vue
app_web/src/widgets/dametric/main-grid/main-grid-base.vue
+6
-5
main-grid-base.vue
app_web/src/widgets/dareport/main-grid/main-grid-base.vue
+6
-5
main-grid-base.vue
.../src/widgets/dst-data-source/main-grid/main-grid-base.vue
+6
-5
main-grid-base.vue
app_web/src/widgets/dst-system/main-grid/main-grid-base.vue
+6
-5
main-grid-base.vue
app_web/src/widgets/exec-log/main-grid/main-grid-base.vue
+6
-5
main-grid-base.vue
app_web/src/widgets/exec-result/main-grid/main-grid-base.vue
+6
-5
main-grid-base.vue
...eb/src/widgets/meta-data-set/main-grid/main-grid-base.vue
+6
-5
main-grid-base.vue
app_web/src/widgets/meta-entity/main-grid/main-grid-base.vue
+6
-5
edit-main-grid-base.vue
...widgets/meta-field/edit-main-grid/edit-main-grid-base.vue
+6
-5
main-grid-base.vue
app_web/src/widgets/meta-field/main-grid/main-grid-base.vue
+6
-5
main-grid-base.vue
app_web/src/widgets/meta-model/main-grid/main-grid-base.vue
+6
-5
main-grid-base.vue
app_web/src/widgets/meta-module/main-grid/main-grid-base.vue
+6
-5
edit-main-grid-base.vue
.../meta-relationship/edit-main-grid/edit-main-grid-base.vue
+6
-5
main-grid-base.vue
...rc/widgets/meta-relationship/main-grid/main-grid-base.vue
+6
-5
main-grid-base.vue
app_web/src/widgets/rule-engine/main-grid/main-grid-base.vue
+6
-5
main-grid-base.vue
app_web/src/widgets/rule-item/main-grid/main-grid-base.vue
+6
-5
ExecResultExService.java
.../ibizlab/core/extensions/service/ExecResultExService.java
+45
-0
IExecResultService.java
...java/cn/ibizlab/core/rule/service/IExecResultService.java
+4
-0
ExecResultServiceImpl.java
...ibizlab/core/rule/service/impl/ExecResultServiceImpl.java
+32
-0
h2_table.xml
ibzdst-core/src/main/resources/liquibase/h2_table.xml
+1
-1
systemResource.json
...st-core/src/main/resources/permission/systemResource.json
+1
-1
ExecResultResource.java
...src/main/java/cn/ibizlab/api/rest/ExecResultResource.java
+34
-0
AuthorizationTokenFilter.java
...va/cn/ibizlab/util/security/AuthorizationTokenFilter.java
+1
-4
未找到文件。
app_web/src/components/dropdown-list/dropdown-list.vue
浏览文件 @
4c200af5
...
...
@@ -196,7 +196,7 @@ export default class DropDownList extends Vue {
val
=
tempVal
.
length
>
0
?
tempVal
[
0
].
value
:
null
;
}
const
type
:
string
=
this
.
$util
.
typeOf
(
val
);
val
=
Object
.
is
(
type
,
'null'
)
||
Object
.
is
(
type
,
'undefined'
)
?
undefined
:
val
;
val
=
Object
.
is
(
type
,
'null'
)
||
Object
.
is
(
type
,
'undefined'
)
?
null
:
val
;
this
.
$emit
(
'change'
,
val
);
}
...
...
app_web/src/mock/entity/exec-results/exec-results.ts
浏览文件 @
4c200af5
...
...
@@ -233,6 +233,44 @@ mock.onPost(new RegExp(/^\/execresults\/?([a-zA-Z0-9\-\;]{0,35})\/checkkey$/)).r
return
[
status
,
data
];
});
// DeleteAsync
mock
.
onPost
(
new
RegExp
(
/^
\/
execresults
\/?([
a-zA-Z0-9
\-\;]{0,35})\/
deleteasync$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:execresult 方法: DeleteAsync"
);
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
(
/^
\/
execresults
\/([
a-zA-Z0-9
\-\;]{1,35})\/
deleteasync$/
).
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
];
});
// Save
mock
.
onPost
(
new
RegExp
(
/^
\/
execresults
\/?([
a-zA-Z0-9
\-\;]{0,35})\/
save$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:execresult 方法: Save"
);
...
...
@@ -270,6 +308,44 @@ mock.onPost(new RegExp(/^\/execresults\/?([a-zA-Z0-9\-\;]{0,35})\/save$/)).reply
console
.
groupEnd
();
return
[
status
,
data
];
});
// SaveAsync
mock
.
onPost
(
new
RegExp
(
/^
\/
execresults
\/?([
a-zA-Z0-9
\-\;]{0,35})\/
saveasync$/
)).
reply
((
config
:
any
)
=>
{
console
.
groupCollapsed
(
"实体:execresult 方法: SaveAsync"
);
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
(
/^
\/
execresults
\/([
a-zA-Z0-9
\-\;]{1,35})\/
saveasync$/
).
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
];
});
// FetchDefault
mock
.
onGet
(
new
RegExp
(
/^
\/
execresults
\/
fetchdefault$/
)).
reply
((
config
:
any
)
=>
{
...
...
app_web/src/service/dabuild/dabuild-service-base.ts
浏览文件 @
4c200af5
...
...
@@ -169,6 +169,20 @@ export default class DABuildServiceBase extends EntityService {
return
res
;
}
/**
* RunBatch接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof DABuildServiceBase
*/
public
async
RunBatch
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
return
await
Http
.
getInstance
().
post
(
`/dabuild/runbatch`
,
tempData
,
isloading
);
}
/**
* Save接口方法
*
...
...
app_web/src/service/dametric/dametric-service-base.ts
浏览文件 @
4c200af5
...
...
@@ -246,6 +246,24 @@ export default class DAMetricServiceBase extends EntityService {
return
res
;
}
/**
* SyncRuleBatch接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof DAMetricServiceBase
*/
public
async
SyncRuleBatch
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
dabuild
&&
true
){
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
return
await
Http
.
getInstance
().
post
(
`/dabuilds/
${
context
.
dabuild
}
/dametric/syncrulebatch`
,
tempData
,
isloading
);
}
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
return
await
Http
.
getInstance
().
post
(
`/dametric/syncrulebatch`
,
tempData
,
isloading
);
}
/**
* FetchDefault接口方法
*
...
...
app_web/src/service/dst-data-source/dst-data-source-service-base.ts
浏览文件 @
4c200af5
...
...
@@ -153,6 +153,20 @@ export default class DstDataSourceServiceBase extends EntityService {
return
res
;
}
/**
* BuildDSBatch接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof DstDataSourceServiceBase
*/
public
async
BuildDSBatch
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
return
await
Http
.
getInstance
().
post
(
`/dstdatasource/builddsbatch`
,
tempData
,
isloading
);
}
/**
* CheckKey接口方法
*
...
...
app_web/src/service/dst-system/dst-system-service-base.ts
浏览文件 @
4c200af5
...
...
@@ -186,6 +186,20 @@ export default class DstSystemServiceBase extends EntityService {
return
res
;
}
/**
* SyncSysModelBatch接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof DstSystemServiceBase
*/
public
async
SyncSysModelBatch
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
return
await
Http
.
getInstance
().
post
(
`/dstsystem/syncsysmodelbatch`
,
tempData
,
isloading
);
}
/**
* FetchDefault接口方法
*
...
...
app_web/src/service/exec-result/exec-result-service-base.ts
浏览文件 @
4c200af5
...
...
@@ -153,6 +153,34 @@ export default class ExecResultServiceBase extends EntityService {
return
res
;
}
/**
* DeleteAsync接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof ExecResultServiceBase
*/
public
async
DeleteAsync
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
Http
.
getInstance
().
post
(
`/execresults/
${
context
.
execresult
}
/deleteasync`
,
data
,
isloading
);
return
res
;
}
/**
* DeleteAsyncBatch接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof ExecResultServiceBase
*/
public
async
DeleteAsyncBatch
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
return
await
Http
.
getInstance
().
post
(
`/execresult/deleteasyncbatch`
,
tempData
,
isloading
);
}
/**
* Save接口方法
*
...
...
@@ -170,6 +198,34 @@ export default class ExecResultServiceBase extends EntityService {
return
res
;
}
/**
* SaveAsync接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof ExecResultServiceBase
*/
public
async
SaveAsync
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
res
:
any
=
Http
.
getInstance
().
post
(
`/execresults/
${
context
.
execresult
}
/saveasync`
,
data
,
isloading
);
return
res
;
}
/**
* SaveAsyncBatch接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof ExecResultServiceBase
*/
public
async
SaveAsyncBatch
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
return
await
Http
.
getInstance
().
post
(
`/execresult/saveasyncbatch`
,
tempData
,
isloading
);
}
/**
* FetchDefault接口方法
*
...
...
app_web/src/service/meta-entity/meta-entity-service-base.ts
浏览文件 @
4c200af5
...
...
@@ -227,6 +227,24 @@ export default class MetaEntityServiceBase extends EntityService {
return
res
;
}
/**
* GetDefaultModelBatch接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MetaEntityServiceBase
*/
public
async
GetDefaultModelBatch
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
if
(
context
.
dstsystem
&&
true
){
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
return
await
Http
.
getInstance
().
post
(
`/dstsystems/
${
context
.
dstsystem
}
/metaentity/getdefaultmodelbatch`
,
tempData
,
isloading
);
}
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
return
await
Http
.
getInstance
().
post
(
`/metaentity/getdefaultmodelbatch`
,
tempData
,
isloading
);
}
/**
* Save接口方法
*
...
...
app_web/src/service/meta-model/meta-model-service-base.ts
浏览文件 @
4c200af5
...
...
@@ -153,6 +153,20 @@ export default class MetaModelServiceBase extends EntityService {
return
res
;
}
/**
* ChangeBatch接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof MetaModelServiceBase
*/
public
async
ChangeBatch
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
return
await
Http
.
getInstance
().
post
(
`/metamodel/changebatch`
,
tempData
,
isloading
);
}
/**
* CheckKey接口方法
*
...
...
app_web/src/service/rule-engine/rule-engine-service-base.ts
浏览文件 @
4c200af5
...
...
@@ -167,6 +167,20 @@ export default class RuleEngineServiceBase extends EntityService {
return
res
;
}
/**
* RunBatch接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof RuleEngineServiceBase
*/
public
async
RunBatch
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
return
await
Http
.
getInstance
().
post
(
`/ruleengine/runbatch`
,
tempData
,
isloading
);
}
/**
* Save接口方法
*
...
...
app_web/src/service/rule-item/rule-item-service-base.ts
浏览文件 @
4c200af5
...
...
@@ -153,6 +153,20 @@ export default class RuleItemServiceBase extends EntityService {
return
res
;
}
/**
* BuildRuleFileBatch接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof RuleItemServiceBase
*/
public
async
BuildRuleFileBatch
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
return
await
Http
.
getInstance
().
post
(
`/ruleitem/buildrulefilebatch`
,
tempData
,
isloading
);
}
/**
* CheckKey接口方法
*
...
...
@@ -181,6 +195,20 @@ export default class RuleItemServiceBase extends EntityService {
return
res
;
}
/**
* ModelchangeBatch接口方法
*
* @param {*} [context={}]
* @param {*} [data={}]
* @param {boolean} [isloading]
* @returns {Promise<any>}
* @memberof RuleItemServiceBase
*/
public
async
ModelchangeBatch
(
context
:
any
=
{},
data
:
any
=
{},
isloading
?:
boolean
):
Promise
<
any
>
{
let
tempData
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
return
await
Http
.
getInstance
().
post
(
`/ruleitem/modelchangebatch`
,
tempData
,
isloading
);
}
/**
* Save接口方法
*
...
...
app_web/src/uiservice/rule-engine/rule-engine-ui-service-base.ts
浏览文件 @
4c200af5
...
...
@@ -146,9 +146,26 @@ export default class RuleEngineUIServiceBase extends UIService {
}
context
=
UIActionTool
.
handleContextParam
(
actionTarget
,
_args
,
parentContext
,
parentViewParam
,
context
);
data
=
UIActionTool
.
handleActionParam
(
actionTarget
,
_args
,
parentContext
,
parentViewParam
,
params
);
if
(
Object
.
is
(
actionTarget
,
"MULTIKEY"
)){
let
tempDataArray
:
Array
<
any
>
=
[];
if
((
_args
.
length
>
1
)
&&
(
Object
.
keys
(
data
).
length
>
0
)){
for
(
let
i
=
0
;
i
<
_args
.
length
;
i
++
){
let
tempObject
:
any
=
{};
Object
.
keys
(
data
).
forEach
((
key
:
string
)
=>
{
Object
.
assign
(
tempObject
,{[
key
]:
data
[
key
].
split
(
','
)[
i
]});
})
tempDataArray
.
push
(
tempObject
);
}
}
else
{
tempDataArray
.
push
(
data
);
}
data
=
tempDataArray
;
}
context
=
Object
.
assign
({},
actionContext
.
context
,
context
);
let
parentObj
:
any
=
{
srfparentdename
:
srfParentDeName
?
srfParentDeName
:
null
,
srfparentkey
:
srfParentDeName
?
context
[
srfParentDeName
.
toLowerCase
()]:
null
};
Object
.
assign
(
data
,
parentObj
);
if
(
!
Object
.
is
(
actionTarget
,
"MULTIKEY"
)){
Object
.
assign
(
data
,
parentObj
);
}
Object
.
assign
(
context
,
parentObj
);
// 直接调实体服务需要转换的数据
if
(
context
&&
context
.
srfsessionid
){
...
...
app_web/src/utils/types/app-popover.d.ts
浏览文件 @
4c200af5
...
...
@@ -37,7 +37,7 @@ export declare interface AppPopover {
* @param {number} [height]
* @memberof AppPopover
*/
openPopover
(
event
:
MouseEvent
,
content
:
(
h
:
CreateElement
)
=>
any
,
title
?:
string
,
position
?:
PopperJs
.
Placement
,
isAutoClose
?:
boolean
,
width
?:
number
,
height
?:
number
):
void
;
openPopover
(
event
:
MouseEvent
,
content
:
(
h
:
CreateElement
)
=>
any
,
position
?:
PopperJs
.
Placement
,
isAutoClose
?:
boolean
,
width
?:
number
,
height
?:
number
):
void
;
/**
* 销毁popper(带回填数据)
*
...
...
app_web/src/widgets/dabuild/main-grid/main-grid-base.vue
浏览文件 @
4c200af5
...
...
@@ -850,6 +850,11 @@ export default class MainBase extends Vue implements ControlInterface {
const
sort
:
string
=
this
.
minorSortPSDEF
+
","
+
this
.
minorSortDir
;
Object
.
assign
(
page
,
{
sort
:
sort
});
}
//清空selections
if
(
this
.
selections
&&
this
.
selections
.
length
>
0
)
{
this
.
selections
=
[];
this
.
$emit
(
'selectionchange'
,
this
.
selections
);
}
Object
.
assign
(
arg
,
page
);
const
parentdata
:
any
=
{};
this
.
$emit
(
'beforeload'
,
parentdata
);
...
...
@@ -869,7 +874,7 @@ export default class MainBase extends Vue implements ControlInterface {
this
.
totalrow
=
response
.
total
;
this
.
items
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
// 清空selections,gridItemsModel
//this.selections = [];
//
this.selections = [];
this
.
gridItemsModel
=
[];
this
.
items
.
forEach
(()
=>
{
this
.
gridItemsModel
.
push
(
this
.
getGridRowModel
())});
this
.
items
.
forEach
((
item
:
any
)
=>
{
...
...
@@ -1279,10 +1284,6 @@ export default class MainBase extends Vue implements ControlInterface {
return
;
}
if
(
Object
.
is
(
action
,
'appRefresh'
)){
if
(
this
.
selections
&&
this
.
selections
.
length
>
0
)
{
this
.
selections
=
[];
this
.
$emit
(
'selectionchange'
,
this
.
selections
);
}
this
.
refresh
([
data
]);
}
})
...
...
app_web/src/widgets/dachart/main-grid/main-grid-base.vue
浏览文件 @
4c200af5
...
...
@@ -850,6 +850,11 @@ export default class MainBase extends Vue implements ControlInterface {
const
sort
:
string
=
this
.
minorSortPSDEF
+
","
+
this
.
minorSortDir
;
Object
.
assign
(
page
,
{
sort
:
sort
});
}
//清空selections
if
(
this
.
selections
&&
this
.
selections
.
length
>
0
)
{
this
.
selections
=
[];
this
.
$emit
(
'selectionchange'
,
this
.
selections
);
}
Object
.
assign
(
arg
,
page
);
const
parentdata
:
any
=
{};
this
.
$emit
(
'beforeload'
,
parentdata
);
...
...
@@ -869,7 +874,7 @@ export default class MainBase extends Vue implements ControlInterface {
this
.
totalrow
=
response
.
total
;
this
.
items
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
// 清空selections,gridItemsModel
//this.selections = [];
//
this.selections = [];
this
.
gridItemsModel
=
[];
this
.
items
.
forEach
(()
=>
{
this
.
gridItemsModel
.
push
(
this
.
getGridRowModel
())});
this
.
items
.
forEach
((
item
:
any
)
=>
{
...
...
@@ -1279,10 +1284,6 @@ export default class MainBase extends Vue implements ControlInterface {
return
;
}
if
(
Object
.
is
(
action
,
'appRefresh'
)){
if
(
this
.
selections
&&
this
.
selections
.
length
>
0
)
{
this
.
selections
=
[];
this
.
$emit
(
'selectionchange'
,
this
.
selections
);
}
this
.
refresh
([
data
]);
}
})
...
...
app_web/src/widgets/dametric/main-grid/main-grid-base.vue
浏览文件 @
4c200af5
...
...
@@ -919,6 +919,11 @@ export default class MainBase extends Vue implements ControlInterface {
const
sort
:
string
=
this
.
minorSortPSDEF
+
","
+
this
.
minorSortDir
;
Object
.
assign
(
page
,
{
sort
:
sort
});
}
//清空selections
if
(
this
.
selections
&&
this
.
selections
.
length
>
0
)
{
this
.
selections
=
[];
this
.
$emit
(
'selectionchange'
,
this
.
selections
);
}
Object
.
assign
(
arg
,
page
);
const
parentdata
:
any
=
{};
this
.
$emit
(
'beforeload'
,
parentdata
);
...
...
@@ -938,7 +943,7 @@ export default class MainBase extends Vue implements ControlInterface {
this
.
totalrow
=
response
.
total
;
this
.
items
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
// 清空selections,gridItemsModel
//this.selections = [];
//
this.selections = [];
this
.
gridItemsModel
=
[];
this
.
items
.
forEach
(()
=>
{
this
.
gridItemsModel
.
push
(
this
.
getGridRowModel
())});
this
.
items
.
forEach
((
item
:
any
)
=>
{
...
...
@@ -1372,10 +1377,6 @@ export default class MainBase extends Vue implements ControlInterface {
return
;
}
if
(
Object
.
is
(
action
,
'appRefresh'
)){
if
(
this
.
selections
&&
this
.
selections
.
length
>
0
)
{
this
.
selections
=
[];
this
.
$emit
(
'selectionchange'
,
this
.
selections
);
}
this
.
refresh
([
data
]);
}
})
...
...
app_web/src/widgets/dareport/main-grid/main-grid-base.vue
浏览文件 @
4c200af5
...
...
@@ -850,6 +850,11 @@ export default class MainBase extends Vue implements ControlInterface {
const
sort
:
string
=
this
.
minorSortPSDEF
+
","
+
this
.
minorSortDir
;
Object
.
assign
(
page
,
{
sort
:
sort
});
}
//清空selections
if
(
this
.
selections
&&
this
.
selections
.
length
>
0
)
{
this
.
selections
=
[];
this
.
$emit
(
'selectionchange'
,
this
.
selections
);
}
Object
.
assign
(
arg
,
page
);
const
parentdata
:
any
=
{};
this
.
$emit
(
'beforeload'
,
parentdata
);
...
...
@@ -869,7 +874,7 @@ export default class MainBase extends Vue implements ControlInterface {
this
.
totalrow
=
response
.
total
;
this
.
items
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
// 清空selections,gridItemsModel
//this.selections = [];
//
this.selections = [];
this
.
gridItemsModel
=
[];
this
.
items
.
forEach
(()
=>
{
this
.
gridItemsModel
.
push
(
this
.
getGridRowModel
())});
this
.
items
.
forEach
((
item
:
any
)
=>
{
...
...
@@ -1279,10 +1284,6 @@ export default class MainBase extends Vue implements ControlInterface {
return
;
}
if
(
Object
.
is
(
action
,
'appRefresh'
)){
if
(
this
.
selections
&&
this
.
selections
.
length
>
0
)
{
this
.
selections
=
[];
this
.
$emit
(
'selectionchange'
,
this
.
selections
);
}
this
.
refresh
([
data
]);
}
})
...
...
app_web/src/widgets/dst-data-source/main-grid/main-grid-base.vue
浏览文件 @
4c200af5
...
...
@@ -808,6 +808,11 @@ export default class MainBase extends Vue implements ControlInterface {
const
sort
:
string
=
this
.
minorSortPSDEF
+
","
+
this
.
minorSortDir
;
Object
.
assign
(
page
,
{
sort
:
sort
});
}
//清空selections
if
(
this
.
selections
&&
this
.
selections
.
length
>
0
)
{
this
.
selections
=
[];
this
.
$emit
(
'selectionchange'
,
this
.
selections
);
}
Object
.
assign
(
arg
,
page
);
const
parentdata
:
any
=
{};
this
.
$emit
(
'beforeload'
,
parentdata
);
...
...
@@ -827,7 +832,7 @@ export default class MainBase extends Vue implements ControlInterface {
this
.
totalrow
=
response
.
total
;
this
.
items
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
// 清空selections,gridItemsModel
//this.selections = [];
//
this.selections = [];
this
.
gridItemsModel
=
[];
this
.
items
.
forEach
(()
=>
{
this
.
gridItemsModel
.
push
(
this
.
getGridRowModel
())});
this
.
items
.
forEach
((
item
:
any
)
=>
{
...
...
@@ -1237,10 +1242,6 @@ export default class MainBase extends Vue implements ControlInterface {
return
;
}
if
(
Object
.
is
(
action
,
'appRefresh'
)){
if
(
this
.
selections
&&
this
.
selections
.
length
>
0
)
{
this
.
selections
=
[];
this
.
$emit
(
'selectionchange'
,
this
.
selections
);
}
this
.
refresh
([
data
]);
}
})
...
...
app_web/src/widgets/dst-system/main-grid/main-grid-base.vue
浏览文件 @
4c200af5
...
...
@@ -829,6 +829,11 @@ export default class MainBase extends Vue implements ControlInterface {
const
sort
:
string
=
this
.
minorSortPSDEF
+
","
+
this
.
minorSortDir
;
Object
.
assign
(
page
,
{
sort
:
sort
});
}
//清空selections
if
(
this
.
selections
&&
this
.
selections
.
length
>
0
)
{
this
.
selections
=
[];
this
.
$emit
(
'selectionchange'
,
this
.
selections
);
}
Object
.
assign
(
arg
,
page
);
const
parentdata
:
any
=
{};
this
.
$emit
(
'beforeload'
,
parentdata
);
...
...
@@ -848,7 +853,7 @@ export default class MainBase extends Vue implements ControlInterface {
this
.
totalrow
=
response
.
total
;
this
.
items
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
// 清空selections,gridItemsModel
//this.selections = [];
//
this.selections = [];
this
.
gridItemsModel
=
[];
this
.
items
.
forEach
(()
=>
{
this
.
gridItemsModel
.
push
(
this
.
getGridRowModel
())});
this
.
items
.
forEach
((
item
:
any
)
=>
{
...
...
@@ -1258,10 +1263,6 @@ export default class MainBase extends Vue implements ControlInterface {
return
;
}
if
(
Object
.
is
(
action
,
'appRefresh'
)){
if
(
this
.
selections
&&
this
.
selections
.
length
>
0
)
{
this
.
selections
=
[];
this
.
$emit
(
'selectionchange'
,
this
.
selections
);
}
this
.
refresh
([
data
]);
}
})
...
...
app_web/src/widgets/exec-log/main-grid/main-grid-base.vue
浏览文件 @
4c200af5
...
...
@@ -913,6 +913,11 @@ export default class MainBase extends Vue implements ControlInterface {
const
sort
:
string
=
this
.
minorSortPSDEF
+
","
+
this
.
minorSortDir
;
Object
.
assign
(
page
,
{
sort
:
sort
});
}
//清空selections
if
(
this
.
selections
&&
this
.
selections
.
length
>
0
)
{
this
.
selections
=
[];
this
.
$emit
(
'selectionchange'
,
this
.
selections
);
}
Object
.
assign
(
arg
,
page
);
const
parentdata
:
any
=
{};
this
.
$emit
(
'beforeload'
,
parentdata
);
...
...
@@ -932,7 +937,7 @@ export default class MainBase extends Vue implements ControlInterface {
this
.
totalrow
=
response
.
total
;
this
.
items
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
// 清空selections,gridItemsModel
//this.selections = [];
//
this.selections = [];
this
.
gridItemsModel
=
[];
this
.
items
.
forEach
(()
=>
{
this
.
gridItemsModel
.
push
(
this
.
getGridRowModel
())});
this
.
items
.
forEach
((
item
:
any
)
=>
{
...
...
@@ -1342,10 +1347,6 @@ export default class MainBase extends Vue implements ControlInterface {
return
;
}
if
(
Object
.
is
(
action
,
'appRefresh'
)){
if
(
this
.
selections
&&
this
.
selections
.
length
>
0
)
{
this
.
selections
=
[];
this
.
$emit
(
'selectionchange'
,
this
.
selections
);
}
this
.
refresh
([
data
]);
}
})
...
...
app_web/src/widgets/exec-result/main-grid/main-grid-base.vue
浏览文件 @
4c200af5
...
...
@@ -1062,6 +1062,11 @@ export default class MainBase extends Vue implements ControlInterface {
const
sort
:
string
=
this
.
minorSortPSDEF
+
","
+
this
.
minorSortDir
;
Object
.
assign
(
page
,
{
sort
:
sort
});
}
//清空selections
if
(
this
.
selections
&&
this
.
selections
.
length
>
0
)
{
this
.
selections
=
[];
this
.
$emit
(
'selectionchange'
,
this
.
selections
);
}
Object
.
assign
(
arg
,
page
);
const
parentdata
:
any
=
{};
this
.
$emit
(
'beforeload'
,
parentdata
);
...
...
@@ -1081,7 +1086,7 @@ export default class MainBase extends Vue implements ControlInterface {
this
.
totalrow
=
response
.
total
;
this
.
items
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
// 清空selections,gridItemsModel
//this.selections = [];
//
this.selections = [];
this
.
gridItemsModel
=
[];
this
.
items
.
forEach
(()
=>
{
this
.
gridItemsModel
.
push
(
this
.
getGridRowModel
())});
this
.
items
.
forEach
((
item
:
any
)
=>
{
...
...
@@ -1499,10 +1504,6 @@ export default class MainBase extends Vue implements ControlInterface {
return
;
}
if
(
Object
.
is
(
action
,
'appRefresh'
)){
if
(
this
.
selections
&&
this
.
selections
.
length
>
0
)
{
this
.
selections
=
[];
this
.
$emit
(
'selectionchange'
,
this
.
selections
);
}
this
.
refresh
([
data
]);
}
})
...
...
app_web/src/widgets/meta-data-set/main-grid/main-grid-base.vue
浏览文件 @
4c200af5
...
...
@@ -947,6 +947,11 @@ export default class MainBase extends Vue implements ControlInterface {
const
sort
:
string
=
this
.
minorSortPSDEF
+
","
+
this
.
minorSortDir
;
Object
.
assign
(
page
,
{
sort
:
sort
});
}
//清空selections
if
(
this
.
selections
&&
this
.
selections
.
length
>
0
)
{
this
.
selections
=
[];
this
.
$emit
(
'selectionchange'
,
this
.
selections
);
}
Object
.
assign
(
arg
,
page
);
const
parentdata
:
any
=
{};
this
.
$emit
(
'beforeload'
,
parentdata
);
...
...
@@ -966,7 +971,7 @@ export default class MainBase extends Vue implements ControlInterface {
this
.
totalrow
=
response
.
total
;
this
.
items
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
// 清空selections,gridItemsModel
//this.selections = [];
//
this.selections = [];
this
.
gridItemsModel
=
[];
this
.
items
.
forEach
(()
=>
{
this
.
gridItemsModel
.
push
(
this
.
getGridRowModel
())});
this
.
items
.
forEach
((
item
:
any
)
=>
{
...
...
@@ -1376,10 +1381,6 @@ export default class MainBase extends Vue implements ControlInterface {
return
;
}
if
(
Object
.
is
(
action
,
'appRefresh'
)){
if
(
this
.
selections
&&
this
.
selections
.
length
>
0
)
{
this
.
selections
=
[];
this
.
$emit
(
'selectionchange'
,
this
.
selections
);
}
this
.
refresh
([
data
]);
}
})
...
...
app_web/src/widgets/meta-entity/main-grid/main-grid-base.vue
浏览文件 @
4c200af5
...
...
@@ -878,6 +878,11 @@ export default class MainBase extends Vue implements ControlInterface {
const
sort
:
string
=
this
.
minorSortPSDEF
+
","
+
this
.
minorSortDir
;
Object
.
assign
(
page
,
{
sort
:
sort
});
}
//清空selections
if
(
this
.
selections
&&
this
.
selections
.
length
>
0
)
{
this
.
selections
=
[];
this
.
$emit
(
'selectionchange'
,
this
.
selections
);
}
Object
.
assign
(
arg
,
page
);
const
parentdata
:
any
=
{};
this
.
$emit
(
'beforeload'
,
parentdata
);
...
...
@@ -897,7 +902,7 @@ export default class MainBase extends Vue implements ControlInterface {
this
.
totalrow
=
response
.
total
;
this
.
items
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
// 清空selections,gridItemsModel
//this.selections = [];
//
this.selections = [];
this
.
gridItemsModel
=
[];
this
.
items
.
forEach
(()
=>
{
this
.
gridItemsModel
.
push
(
this
.
getGridRowModel
())});
this
.
items
.
forEach
((
item
:
any
)
=>
{
...
...
@@ -1307,10 +1312,6 @@ export default class MainBase extends Vue implements ControlInterface {
return
;
}
if
(
Object
.
is
(
action
,
'appRefresh'
)){
if
(
this
.
selections
&&
this
.
selections
.
length
>
0
)
{
this
.
selections
=
[];
this
.
$emit
(
'selectionchange'
,
this
.
selections
);
}
this
.
refresh
([
data
]);
}
})
...
...
app_web/src/widgets/meta-field/edit-main-grid/edit-main-grid-base.vue
浏览文件 @
4c200af5
...
...
@@ -1731,6 +1731,11 @@ export default class EditMainBase extends Vue implements ControlInterface {
const
sort
:
string
=
this
.
minorSortPSDEF
+
","
+
this
.
minorSortDir
;
Object
.
assign
(
page
,
{
sort
:
sort
});
}
//清空selections
if
(
this
.
selections
&&
this
.
selections
.
length
>
0
)
{
this
.
selections
=
[];
this
.
$emit
(
'selectionchange'
,
this
.
selections
);
}
Object
.
assign
(
arg
,
page
);
const
parentdata
:
any
=
{};
this
.
$emit
(
'beforeload'
,
parentdata
);
...
...
@@ -1750,7 +1755,7 @@ export default class EditMainBase extends Vue implements ControlInterface {
this
.
totalrow
=
response
.
total
;
this
.
items
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
// 清空selections,gridItemsModel
//this.selections = [];
//
this.selections = [];
this
.
gridItemsModel
=
[];
this
.
items
.
forEach
(()
=>
{
this
.
gridItemsModel
.
push
(
this
.
getGridRowModel
())});
this
.
items
.
forEach
((
item
:
any
)
=>
{
...
...
@@ -2200,10 +2205,6 @@ export default class EditMainBase extends Vue implements ControlInterface {
return
;
}
if
(
Object
.
is
(
action
,
'appRefresh'
)){
if
(
this
.
selections
&&
this
.
selections
.
length
>
0
)
{
this
.
selections
=
[];
this
.
$emit
(
'selectionchange'
,
this
.
selections
);
}
this
.
refresh
([
data
]);
}
})
...
...
app_web/src/widgets/meta-field/main-grid/main-grid-base.vue
浏览文件 @
4c200af5
...
...
@@ -1396,6 +1396,11 @@ export default class MainBase extends Vue implements ControlInterface {
const
sort
:
string
=
this
.
minorSortPSDEF
+
","
+
this
.
minorSortDir
;
Object
.
assign
(
page
,
{
sort
:
sort
});
}
//清空selections
if
(
this
.
selections
&&
this
.
selections
.
length
>
0
)
{
this
.
selections
=
[];
this
.
$emit
(
'selectionchange'
,
this
.
selections
);
}
Object
.
assign
(
arg
,
page
);
const
parentdata
:
any
=
{};
this
.
$emit
(
'beforeload'
,
parentdata
);
...
...
@@ -1415,7 +1420,7 @@ export default class MainBase extends Vue implements ControlInterface {
this
.
totalrow
=
response
.
total
;
this
.
items
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
// 清空selections,gridItemsModel
//this.selections = [];
//
this.selections = [];
this
.
gridItemsModel
=
[];
this
.
items
.
forEach
(()
=>
{
this
.
gridItemsModel
.
push
(
this
.
getGridRowModel
())});
this
.
items
.
forEach
((
item
:
any
)
=>
{
...
...
@@ -1865,10 +1870,6 @@ export default class MainBase extends Vue implements ControlInterface {
return
;
}
if
(
Object
.
is
(
action
,
'appRefresh'
)){
if
(
this
.
selections
&&
this
.
selections
.
length
>
0
)
{
this
.
selections
=
[];
this
.
$emit
(
'selectionchange'
,
this
.
selections
);
}
this
.
refresh
([
data
]);
}
})
...
...
app_web/src/widgets/meta-model/main-grid/main-grid-base.vue
浏览文件 @
4c200af5
...
...
@@ -808,6 +808,11 @@ export default class MainBase extends Vue implements ControlInterface {
const
sort
:
string
=
this
.
minorSortPSDEF
+
","
+
this
.
minorSortDir
;
Object
.
assign
(
page
,
{
sort
:
sort
});
}
//清空selections
if
(
this
.
selections
&&
this
.
selections
.
length
>
0
)
{
this
.
selections
=
[];
this
.
$emit
(
'selectionchange'
,
this
.
selections
);
}
Object
.
assign
(
arg
,
page
);
const
parentdata
:
any
=
{};
this
.
$emit
(
'beforeload'
,
parentdata
);
...
...
@@ -827,7 +832,7 @@ export default class MainBase extends Vue implements ControlInterface {
this
.
totalrow
=
response
.
total
;
this
.
items
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
// 清空selections,gridItemsModel
//this.selections = [];
//
this.selections = [];
this
.
gridItemsModel
=
[];
this
.
items
.
forEach
(()
=>
{
this
.
gridItemsModel
.
push
(
this
.
getGridRowModel
())});
this
.
items
.
forEach
((
item
:
any
)
=>
{
...
...
@@ -1237,10 +1242,6 @@ export default class MainBase extends Vue implements ControlInterface {
return
;
}
if
(
Object
.
is
(
action
,
'appRefresh'
)){
if
(
this
.
selections
&&
this
.
selections
.
length
>
0
)
{
this
.
selections
=
[];
this
.
$emit
(
'selectionchange'
,
this
.
selections
);
}
this
.
refresh
([
data
]);
}
})
...
...
app_web/src/widgets/meta-module/main-grid/main-grid-base.vue
浏览文件 @
4c200af5
...
...
@@ -864,6 +864,11 @@ export default class MainBase extends Vue implements ControlInterface {
const
sort
:
string
=
this
.
minorSortPSDEF
+
","
+
this
.
minorSortDir
;
Object
.
assign
(
page
,
{
sort
:
sort
});
}
//清空selections
if
(
this
.
selections
&&
this
.
selections
.
length
>
0
)
{
this
.
selections
=
[];
this
.
$emit
(
'selectionchange'
,
this
.
selections
);
}
Object
.
assign
(
arg
,
page
);
const
parentdata
:
any
=
{};
this
.
$emit
(
'beforeload'
,
parentdata
);
...
...
@@ -883,7 +888,7 @@ export default class MainBase extends Vue implements ControlInterface {
this
.
totalrow
=
response
.
total
;
this
.
items
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
// 清空selections,gridItemsModel
//this.selections = [];
//
this.selections = [];
this
.
gridItemsModel
=
[];
this
.
items
.
forEach
(()
=>
{
this
.
gridItemsModel
.
push
(
this
.
getGridRowModel
())});
this
.
items
.
forEach
((
item
:
any
)
=>
{
...
...
@@ -1293,10 +1298,6 @@ export default class MainBase extends Vue implements ControlInterface {
return
;
}
if
(
Object
.
is
(
action
,
'appRefresh'
)){
if
(
this
.
selections
&&
this
.
selections
.
length
>
0
)
{
this
.
selections
=
[];
this
.
$emit
(
'selectionchange'
,
this
.
selections
);
}
this
.
refresh
([
data
]);
}
})
...
...
app_web/src/widgets/meta-relationship/edit-main-grid/edit-main-grid-base.vue
浏览文件 @
4c200af5
...
...
@@ -1128,6 +1128,11 @@ export default class EditMainBase extends Vue implements ControlInterface {
const
sort
:
string
=
this
.
minorSortPSDEF
+
","
+
this
.
minorSortDir
;
Object
.
assign
(
page
,
{
sort
:
sort
});
}
//清空selections
if
(
this
.
selections
&&
this
.
selections
.
length
>
0
)
{
this
.
selections
=
[];
this
.
$emit
(
'selectionchange'
,
this
.
selections
);
}
Object
.
assign
(
arg
,
page
);
const
parentdata
:
any
=
{};
this
.
$emit
(
'beforeload'
,
parentdata
);
...
...
@@ -1147,7 +1152,7 @@ export default class EditMainBase extends Vue implements ControlInterface {
this
.
totalrow
=
response
.
total
;
this
.
items
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
// 清空selections,gridItemsModel
//this.selections = [];
//
this.selections = [];
this
.
gridItemsModel
=
[];
this
.
items
.
forEach
(()
=>
{
this
.
gridItemsModel
.
push
(
this
.
getGridRowModel
())});
this
.
items
.
forEach
((
item
:
any
)
=>
{
...
...
@@ -1557,10 +1562,6 @@ export default class EditMainBase extends Vue implements ControlInterface {
return
;
}
if
(
Object
.
is
(
action
,
'appRefresh'
)){
if
(
this
.
selections
&&
this
.
selections
.
length
>
0
)
{
this
.
selections
=
[];
this
.
$emit
(
'selectionchange'
,
this
.
selections
);
}
this
.
refresh
([
data
]);
}
})
...
...
app_web/src/widgets/meta-relationship/main-grid/main-grid-base.vue
浏览文件 @
4c200af5
...
...
@@ -969,6 +969,11 @@ export default class MainBase extends Vue implements ControlInterface {
const
sort
:
string
=
this
.
minorSortPSDEF
+
","
+
this
.
minorSortDir
;
Object
.
assign
(
page
,
{
sort
:
sort
});
}
//清空selections
if
(
this
.
selections
&&
this
.
selections
.
length
>
0
)
{
this
.
selections
=
[];
this
.
$emit
(
'selectionchange'
,
this
.
selections
);
}
Object
.
assign
(
arg
,
page
);
const
parentdata
:
any
=
{};
this
.
$emit
(
'beforeload'
,
parentdata
);
...
...
@@ -988,7 +993,7 @@ export default class MainBase extends Vue implements ControlInterface {
this
.
totalrow
=
response
.
total
;
this
.
items
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
// 清空selections,gridItemsModel
//this.selections = [];
//
this.selections = [];
this
.
gridItemsModel
=
[];
this
.
items
.
forEach
(()
=>
{
this
.
gridItemsModel
.
push
(
this
.
getGridRowModel
())});
this
.
items
.
forEach
((
item
:
any
)
=>
{
...
...
@@ -1398,10 +1403,6 @@ export default class MainBase extends Vue implements ControlInterface {
return
;
}
if
(
Object
.
is
(
action
,
'appRefresh'
)){
if
(
this
.
selections
&&
this
.
selections
.
length
>
0
)
{
this
.
selections
=
[];
this
.
$emit
(
'selectionchange'
,
this
.
selections
);
}
this
.
refresh
([
data
]);
}
})
...
...
app_web/src/widgets/rule-engine/main-grid/main-grid-base.vue
浏览文件 @
4c200af5
...
...
@@ -873,6 +873,11 @@ export default class MainBase extends Vue implements ControlInterface {
const
sort
:
string
=
this
.
minorSortPSDEF
+
","
+
this
.
minorSortDir
;
Object
.
assign
(
page
,
{
sort
:
sort
});
}
//清空selections
if
(
this
.
selections
&&
this
.
selections
.
length
>
0
)
{
this
.
selections
=
[];
this
.
$emit
(
'selectionchange'
,
this
.
selections
);
}
Object
.
assign
(
arg
,
page
);
const
parentdata
:
any
=
{};
this
.
$emit
(
'beforeload'
,
parentdata
);
...
...
@@ -892,7 +897,7 @@ export default class MainBase extends Vue implements ControlInterface {
this
.
totalrow
=
response
.
total
;
this
.
items
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
// 清空selections,gridItemsModel
//this.selections = [];
//
this.selections = [];
this
.
gridItemsModel
=
[];
this
.
items
.
forEach
(()
=>
{
this
.
gridItemsModel
.
push
(
this
.
getGridRowModel
())});
this
.
items
.
forEach
((
item
:
any
)
=>
{
...
...
@@ -1310,10 +1315,6 @@ export default class MainBase extends Vue implements ControlInterface {
return
;
}
if
(
Object
.
is
(
action
,
'appRefresh'
)){
if
(
this
.
selections
&&
this
.
selections
.
length
>
0
)
{
this
.
selections
=
[];
this
.
$emit
(
'selectionchange'
,
this
.
selections
);
}
this
.
refresh
([
data
]);
}
})
...
...
app_web/src/widgets/rule-item/main-grid/main-grid-base.vue
浏览文件 @
4c200af5
...
...
@@ -943,6 +943,11 @@ export default class MainBase extends Vue implements ControlInterface {
const
sort
:
string
=
this
.
minorSortPSDEF
+
","
+
this
.
minorSortDir
;
Object
.
assign
(
page
,
{
sort
:
sort
});
}
//清空selections
if
(
this
.
selections
&&
this
.
selections
.
length
>
0
)
{
this
.
selections
=
[];
this
.
$emit
(
'selectionchange'
,
this
.
selections
);
}
Object
.
assign
(
arg
,
page
);
const
parentdata
:
any
=
{};
this
.
$emit
(
'beforeload'
,
parentdata
);
...
...
@@ -962,7 +967,7 @@ export default class MainBase extends Vue implements ControlInterface {
this
.
totalrow
=
response
.
total
;
this
.
items
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
// 清空selections,gridItemsModel
//this.selections = [];
//
this.selections = [];
this
.
gridItemsModel
=
[];
this
.
items
.
forEach
(()
=>
{
this
.
gridItemsModel
.
push
(
this
.
getGridRowModel
())});
this
.
items
.
forEach
((
item
:
any
)
=>
{
...
...
@@ -1380,10 +1385,6 @@ export default class MainBase extends Vue implements ControlInterface {
return
;
}
if
(
Object
.
is
(
action
,
'appRefresh'
)){
if
(
this
.
selections
&&
this
.
selections
.
length
>
0
)
{
this
.
selections
=
[];
this
.
$emit
(
'selectionchange'
,
this
.
selections
);
}
this
.
refresh
([
data
]);
}
})
...
...
ibzdst-core/src/main/java/cn/ibizlab/core/extensions/service/ExecResultExService.java
0 → 100644
浏览文件 @
4c200af5
package
cn
.
ibizlab
.
core
.
extensions
.
service
;
import
cn.ibizlab.core.rule.service.impl.ExecResultServiceImpl
;
import
lombok.extern.slf4j.Slf4j
;
import
cn.ibizlab.core.rule.domain.ExecResult
;
import
org.springframework.stereotype.Service
;
import
org.springframework.transaction.annotation.Transactional
;
import
org.springframework.context.annotation.Primary
;
import
java.util.*
;
/**
* 实体[执行结果] 自定义服务对象
*/
@Slf4j
@Primary
@Service
(
"ExecResultExService"
)
public
class
ExecResultExService
extends
ExecResultServiceImpl
{
@Override
protected
Class
currentModelClass
()
{
return
com
.
baomidou
.
mybatisplus
.
core
.
toolkit
.
ReflectionKit
.
getSuperClassGenericType
(
this
.
getClass
().
getSuperclass
(),
1
);
}
/**
* [DeleteAsync:DeleteAsync] 行为扩展
* @param et
* @return
*/
@Override
@Transactional
public
ExecResult
deleteAsync
(
ExecResult
et
)
{
return
super
.
deleteAsync
(
et
);
}
/**
* [SaveAsync:SaveAsync] 行为扩展
* @param et
* @return
*/
@Override
@Transactional
public
ExecResult
saveAsync
(
ExecResult
et
)
{
return
super
.
saveAsync
(
et
);
}
}
ibzdst-core/src/main/java/cn/ibizlab/core/rule/service/IExecResultService.java
浏览文件 @
4c200af5
...
...
@@ -34,8 +34,12 @@ public interface IExecResultService extends IService<ExecResult> {
ExecResult
get
(
String
key
);
ExecResult
getDraft
(
ExecResult
et
);
boolean
checkKey
(
ExecResult
et
);
ExecResult
deleteAsync
(
ExecResult
et
);
boolean
deleteAsyncBatch
(
List
<
ExecResult
>
etList
);
boolean
save
(
ExecResult
et
);
void
saveBatch
(
List
<
ExecResult
>
list
);
ExecResult
saveAsync
(
ExecResult
et
);
boolean
saveAsyncBatch
(
List
<
ExecResult
>
etList
);
Page
<
ExecResult
>
searchDefault
(
ExecResultSearchContext
context
);
List
<
ExecResult
>
selectByRuleId
(
String
rule_id
);
void
removeByRuleId
(
String
rule_id
);
...
...
ibzdst-core/src/main/java/cn/ibizlab/core/rule/service/impl/ExecResultServiceImpl.java
浏览文件 @
4c200af5
...
...
@@ -126,6 +126,22 @@ public class ExecResultServiceImpl extends ServiceImpl<ExecResultMapper, ExecRes
public
boolean
checkKey
(
ExecResult
et
)
{
return
(!
ObjectUtils
.
isEmpty
(
et
.
getId
()))
&&
(!
Objects
.
isNull
(
this
.
getById
(
et
.
getId
())));
}
@Override
@Transactional
public
ExecResult
deleteAsync
(
ExecResult
et
)
{
//自定义代码
return
et
;
}
@Override
@Transactional
public
boolean
deleteAsyncBatch
(
List
<
ExecResult
>
etList
)
{
for
(
ExecResult
et
:
etList
)
{
deleteAsync
(
et
);
}
return
true
;
}
@Override
@Transactional
public
boolean
save
(
ExecResult
et
)
{
...
...
@@ -160,6 +176,22 @@ public class ExecResultServiceImpl extends ServiceImpl<ExecResultMapper, ExecRes
saveOrUpdateBatch
(
list
,
batchSize
);
}
@Override
@Transactional
public
ExecResult
saveAsync
(
ExecResult
et
)
{
//自定义代码
return
et
;
}
@Override
@Transactional
public
boolean
saveAsyncBatch
(
List
<
ExecResult
>
etList
)
{
for
(
ExecResult
et
:
etList
)
{
saveAsync
(
et
);
}
return
true
;
}
@Override
public
List
<
ExecResult
>
selectByRuleId
(
String
rule_id
)
{
...
...
ibzdst-core/src/main/resources/liquibase/h2_table.xml
浏览文件 @
4c200af5
...
...
@@ -164,7 +164,7 @@
<!--输出实体[RU_EXECRESULT]数据结构 -->
<changeSet
author=
"root"
id=
"tab-ru_execresult-4
4
-8"
>
<changeSet
author=
"root"
id=
"tab-ru_execresult-4
6
-8"
>
<createTable
tableName=
"IBZRULERESULT"
>
<column
name=
"RU_EXECRESULTID"
remarks=
""
type=
"VARCHAR(100)"
>
<constraints
primaryKey=
"true"
primaryKeyName=
"PK_RU_EXECRESULT_RU_EXECRESULT"
/>
...
...
ibzdst-core/src/main/resources/permission/systemResource.json
浏览文件 @
4c200af5
...
...
@@ -80,7 +80,7 @@
"delogicname"
:
"执行结果"
,
"sysmoudle"
:{
"id"
:
"RULE"
,
"name"
:
"rule"
},
"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
"
}],
"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"
:
"
DeleteAsync"
,
"name"
:
"DeleteAsync"
,
"type"
:
"USERCUSTOM"
},{
"id"
:
"Save"
,
"name"
:
"Save"
,
"type"
:
"BUILTIN"
},{
"id"
:
"SaveAsync"
,
"name"
:
"SaveAsync"
,
"type"
:
"USERCUSTOM
"
}],
"datascope"
:[{
"id"
:
"all"
,
"name"
:
"全部数据"
}]
}
,
{
...
...
ibzdst-provider/ibzdst-provider-api/src/main/java/cn/ibizlab/api/rest/ExecResultResource.java
浏览文件 @
4c200af5
...
...
@@ -121,6 +121,23 @@ public class ExecResultResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
execresultService
.
checkKey
(
execresultMapping
.
toDomain
(
execresultdto
)));
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-ExecResult-DeleteAsync-all')"
)
@ApiOperation
(
value
=
"DeleteAsync"
,
tags
=
{
"执行结果"
},
notes
=
"DeleteAsync"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/execresults/{execresult_id}/deleteasync"
)
public
ResponseEntity
<
ExecResultDTO
>
deleteAsync
(
@PathVariable
(
"execresult_id"
)
String
execresult_id
,
@RequestBody
ExecResultDTO
execresultdto
)
{
ExecResult
domain
=
execresultMapping
.
toDomain
(
execresultdto
);
domain
.
setId
(
execresult_id
);
domain
=
execresultService
.
deleteAsync
(
domain
);
execresultdto
=
execresultMapping
.
toDto
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
execresultdto
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-ExecResult-DeleteAsync-all')"
)
@ApiOperation
(
value
=
"批量处理[DeleteAsync]"
,
tags
=
{
"执行结果"
},
notes
=
"批量处理[DeleteAsync]"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/execresults/{execresult_id}/deleteasyncbatch"
)
public
ResponseEntity
<
Boolean
>
deleteAsyncBatch
(
@RequestBody
List
<
ExecResultDTO
>
execresultdtos
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
execresultService
.
deleteAsyncBatch
(
execresultMapping
.
toDomain
(
execresultdtos
)));
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-ExecResult-Save-all')"
)
@ApiOperation
(
value
=
"保存执行结果"
,
tags
=
{
"执行结果"
},
notes
=
"保存执行结果"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/execresults/save"
)
...
...
@@ -136,6 +153,23 @@ public class ExecResultResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
true
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-ExecResult-SaveAsync-all')"
)
@ApiOperation
(
value
=
"SaveAsync"
,
tags
=
{
"执行结果"
},
notes
=
"SaveAsync"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/execresults/{execresult_id}/saveasync"
)
public
ResponseEntity
<
ExecResultDTO
>
saveAsync
(
@PathVariable
(
"execresult_id"
)
String
execresult_id
,
@RequestBody
ExecResultDTO
execresultdto
)
{
ExecResult
domain
=
execresultMapping
.
toDomain
(
execresultdto
);
domain
.
setId
(
execresult_id
);
domain
=
execresultService
.
saveAsync
(
domain
);
execresultdto
=
execresultMapping
.
toDto
(
domain
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
execresultdto
);
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-ExecResult-SaveAsync-all')"
)
@ApiOperation
(
value
=
"批量处理[SaveAsync]"
,
tags
=
{
"执行结果"
},
notes
=
"批量处理[SaveAsync]"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/execresults/{execresult_id}/saveasyncbatch"
)
public
ResponseEntity
<
Boolean
>
saveAsyncBatch
(
@RequestBody
List
<
ExecResultDTO
>
execresultdtos
)
{
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
execresultService
.
saveAsyncBatch
(
execresultMapping
.
toDomain
(
execresultdtos
)));
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibzdst-ExecResult-searchDefault-all')"
)
@ApiOperation
(
value
=
"获取数据集"
,
tags
=
{
"执行结果"
}
,
notes
=
"获取数据集"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/execresults/fetchdefault"
)
...
...
ibzdst-util/src/main/java/cn/ibizlab/util/security/AuthorizationTokenFilter.java
浏览文件 @
4c200af5
...
...
@@ -20,10 +20,7 @@ import javax.servlet.ServletException;
import
javax.servlet.http.HttpServletRequest
;
import
javax.servlet.http.HttpServletResponse
;
import
java.io.IOException
;
import
java.util.Arrays
;
import
java.util.HashSet
;
import
java.util.Iterator
;
import
java.util.Set
;
import
java.util.*
;
@Slf4j
@Component
...
...
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录