Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibztask
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibztask
提交
100e2a1a
提交
100e2a1a
编写于
11月 09, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibiz4j 发布系统代码 [ibiz-task,任务调度]
上级
8a872084
变更
59
展开全部
显示空白字符变更
内嵌
并排
正在显示
59 个修改的文件
包含
3592 行增加
和
164 行删除
+3592
-164
CHANGELOG.md
app_web/CHANGELOG.md
+72
-0
app-register.ts
app_web/src/app-register.ts
+2
-0
app-actionbar.vue
app_web/src/components/app-actionbar/app-actionbar.vue
+2
-0
app-column-link.vue
app_web/src/components/app-column-link/app-column-link.vue
+1
-1
app-form-group.vue
app_web/src/components/app-form-group/app-form-group.vue
+2
-0
app-format-data.vue
app_web/src/components/app-format-data/app-format-data.vue
+1
-1
app-image-romate.vue
app_web/src/components/app-image-romate/app-image-romate.vue
+102
-0
app-orgsector.vue
app_web/src/components/app-orgsector/app-orgsector.vue
+24
-7
app-picker.vue
app_web/src/components/app-picker/app-picker.vue
+25
-3
app-rawitem.vue
app_web/src/components/app-rawitem/app-rawitem.vue
+25
-21
login.vue
app_web/src/components/login/login.vue
+3
-0
tab-exp-view-engine.ts
app_web/src/engine/view/tab-exp-view-engine.ts
+10
-0
view-engine.ts
app_web/src/engine/view/view-engine.ts
+2
-0
en-US.ts
app_web/src/locale/lang/en-US.ts
+0
-1
zh-CN.ts
app_web/src/locale/lang/zh-CN.ts
+0
-1
components_en_US.ts
app_web/src/locale/lanres/components/components_en_US.ts
+4
-0
components_zh_CN.ts
app_web/src/locale/lanres/components/components_zh_CN.ts
+4
-0
jobs-info_en_US.ts
...b/src/locale/lanres/entities/jobs-info/jobs-info_en_US.ts
+1
-0
jobs-info_zh_CN.ts
...b/src/locale/lanres/entities/jobs-info/jobs-info_zh_CN.ts
+1
-0
jobs-log_en_US.ts
...web/src/locale/lanres/entities/jobs-log/jobs-log_en_US.ts
+1
-0
jobs-log_zh_CN.ts
...web/src/locale/lanres/entities/jobs-log/jobs-log_zh_CN.ts
+1
-0
jobs-registry_en_US.ts
...cale/lanres/entities/jobs-registry/jobs-registry_en_US.ts
+1
-0
jobs-registry_zh_CN.ts
...cale/lanres/entities/jobs-registry/jobs-registry_zh_CN.ts
+1
-0
jobs-info-edit-view-base.vue
...ges/task/jobs-info-edit-view/jobs-info-edit-view-base.vue
+2
-2
jobs-info-grid-view-base.vue
...ges/task/jobs-info-grid-view/jobs-info-grid-view-base.vue
+2
-2
jobs-log-edit-view-base.vue
...pages/task/jobs-log-edit-view/jobs-log-edit-view-base.vue
+2
-2
jobs-log-grid-view-base.vue
...pages/task/jobs-log-grid-view/jobs-log-grid-view-base.vue
+2
-2
jobs-registry-edit-view-base.vue
.../jobs-registry-edit-view/jobs-registry-edit-view-base.vue
+2
-2
jobs-registry-grid-view-base.vue
.../jobs-registry-grid-view/jobs-registry-grid-view-base.vue
+2
-2
task-index-view-base.vue
...b/src/pages/task/task-index-view/task-index-view-base.vue
+2
-2
jobs-info-ui-service-base.ts
app_web/src/uiservice/jobs-info/jobs-info-ui-service-base.ts
+19
-12
jobs-lock-ui-service-base.ts
app_web/src/uiservice/jobs-lock/jobs-lock-ui-service-base.ts
+7
-0
jobs-log-ui-service-base.ts
app_web/src/uiservice/jobs-log/jobs-log-ui-service-base.ts
+7
-0
jobs-registry-ui-service-base.ts
.../uiservice/jobs-registry/jobs-registry-ui-service-base.ts
+7
-0
view-tool.ts
app_web/src/utils/view-tool/view-tool.ts
+1
-1
main-grid-base.vue
app_web/src/widgets/jobs-info/main-grid/main-grid-base.vue
+60
-13
main-grid-service.ts
app_web/src/widgets/jobs-info/main-grid/main-grid-service.ts
+2
-2
main-grid-base.vue
app_web/src/widgets/jobs-log/main-grid/main-grid-base.vue
+51
-5
main-grid-service.ts
app_web/src/widgets/jobs-log/main-grid/main-grid-service.ts
+2
-2
main-grid-base.vue
...eb/src/widgets/jobs-registry/main-grid/main-grid-base.vue
+55
-13
main-grid-service.ts
.../src/widgets/jobs-registry/main-grid/main-grid-service.ts
+2
-2
application-dev.yml
ibztask-boot/src/main/resources/application-dev.yml
+52
-52
IJobsInfoService.java
...n/java/cn/ibizlab/core/task/service/IJobsInfoService.java
+0
-1
IJobsLockService.java
...n/java/cn/ibizlab/core/task/service/IJobsLockService.java
+0
-1
IJobsLogService.java
...in/java/cn/ibizlab/core/task/service/IJobsLogService.java
+0
-1
IJobsRegistryService.java
...va/cn/ibizlab/core/task/service/IJobsRegistryService.java
+0
-1
JobsInfoServiceImpl.java
...n/ibizlab/core/task/service/impl/JobsInfoServiceImpl.java
+1
-0
JobsLockServiceImpl.java
...n/ibizlab/core/task/service/impl/JobsLockServiceImpl.java
+1
-0
JobsLogServiceImpl.java
...cn/ibizlab/core/task/service/impl/JobsLogServiceImpl.java
+1
-0
JobsRegistryServiceImpl.java
...izlab/core/task/service/impl/JobsRegistryServiceImpl.java
+1
-0
ibztask.json
ibztask-core/src/main/resources/sysmodel/ibztask.json
+34
-0
pom.xml
ibztask-dependencies/pom.xml
+2
-6
DEField.java
...til/src/main/java/cn/ibizlab/util/annotation/DEField.java
+10
-0
StaticDict.java
...k-util/src/main/java/cn/ibizlab/util/dict/StaticDict.java
+2932
-0
EntityClient.java
...il/src/main/java/cn/ibizlab/util/domain/EntityClient.java
+1
-1
DupCheck.java
...sk-util/src/main/java/cn/ibizlab/util/enums/DupCheck.java
+23
-0
ExceptionTranslator.java
...main/java/cn/ibizlab/util/errors/ExceptionTranslator.java
+11
-2
PermissionSyncJob.java
.../src/main/java/cn/ibizlab/util/job/PermissionSyncJob.java
+2
-0
AppController.java
...til/src/main/java/cn/ibizlab/util/rest/AppController.java
+9
-0
未找到文件。
app_web/CHANGELOG.md
浏览文件 @
100e2a1a
## v7.0.0-alpha.21 [2020-10-31]
### Bug修复
修复视图类型门户部件通知嵌入视图刷新问题
修复表格行编辑传值无效和设置表格行编辑禁用无效问题
修复表格列触发行为权限控制无效问题
修复表格导出代码表转化问题
修复行编辑时合并行主键到上下文中
修复多表单编辑视图(部件视图)临时模式异常问题
修复修复表单值规则异常问题
### 功能新增及优化
#### 模板
新增导航类部件快速搜索栏提示
新增分页导航面板主状态逻辑
新增图片预览(可旋转)控件
新增多数据部件无值显示内容适配
新增分页导航视图工具栏权限状态逻辑
新增适配界面行为中显示处理
新增支持是否支持实体主状态属性
优化列表加载、刷新逻辑
优化直接内容项组件
优化甘特图部件和树表格部件加载逻辑
优化后台界面行为异常处理逻辑
优化分页导航面板切换分页刷新逻辑
优化树导航视图树节点刷新逻辑
优化表单更新项传入调用方法名称
优化行编辑值校验错误信息提示
#### 基础文件
新增图片预览(可旋转)控件
新增计算分页导航视图工具栏权限状态逻辑
新增支持是否支持实体主状态逻辑
新增切换组织部门功能
优化数据选择下拉控件(下拉列表宽度和编辑器宽度保持一致)
优化直接内容项组件
修复数据选择无值抛出null
修复登录完成user存储到localStorage
修复表格值为0不显示问题
## v7.0.0-alpha.20 [2020-10-18]
## v7.0.0-alpha.20 [2020-10-18]
### Bug修复
### Bug修复
...
...
app_web/src/app-register.ts
浏览文件 @
100e2a1a
...
@@ -97,6 +97,7 @@ import AppFormPart from './components/app-form-part/app-form-part.vue'
...
@@ -97,6 +97,7 @@ import AppFormPart from './components/app-form-part/app-form-part.vue'
import
AppAlert
from
'./components/app-alert/app-alert.vue'
import
AppAlert
from
'./components/app-alert/app-alert.vue'
import
AppAlertGroup
from
'./components/app-alert-group/app-alert-group.vue'
import
AppAlertGroup
from
'./components/app-alert-group/app-alert-group.vue'
import
AppRawItem
from
'./components/app-rawitem/app-rawitem.vue'
import
AppRawItem
from
'./components/app-rawitem/app-rawitem.vue'
import
AppImageRomate
from
'./components/app-image-romate/app-image-romate.vue'
// 全局挂载UI实体服务注册中心
// 全局挂载UI实体服务注册中心
window
[
'uiServiceRegister'
]
=
uiServiceRegister
;
window
[
'uiServiceRegister'
]
=
uiServiceRegister
;
...
@@ -209,5 +210,6 @@ export const AppComponents = {
...
@@ -209,5 +210,6 @@ export const AppComponents = {
v
.
component
(
'app-alert'
,
AppAlert
);
v
.
component
(
'app-alert'
,
AppAlert
);
v
.
component
(
'app-alert-group'
,
AppAlertGroup
);
v
.
component
(
'app-alert-group'
,
AppAlertGroup
);
v
.
component
(
'app-rawitem'
,
AppRawItem
);
v
.
component
(
'app-rawitem'
,
AppRawItem
);
v
.
component
(
'app-image-romate'
,
AppImageRomate
)
},
},
};
};
\ No newline at end of file
app_web/src/components/app-actionbar/app-actionbar.vue
浏览文件 @
100e2a1a
...
@@ -100,6 +100,8 @@ export default class AppActionBar extends Vue {
...
@@ -100,6 +100,8 @@ export default class AppActionBar extends Vue {
* @memberof AppActionBar
* @memberof AppActionBar
*/
*/
public
calcActionItemAuthState
(
data
:
any
,
ActionModel
:
any
,
UIService
:
any
){
public
calcActionItemAuthState
(
data
:
any
,
ActionModel
:
any
,
UIService
:
any
){
if
(
!
UIService
.
isEnableDEMainState
)
return
;
for
(
const
key
in
ActionModel
)
{
for
(
const
key
in
ActionModel
)
{
if
(
!
ActionModel
.
hasOwnProperty
(
key
))
{
if
(
!
ActionModel
.
hasOwnProperty
(
key
))
{
return
;
return
;
...
...
app_web/src/components/app-column-link/app-column-link.vue
浏览文件 @
100e2a1a
...
@@ -279,7 +279,7 @@ export default class AppColumnLink extends Vue {
...
@@ -279,7 +279,7 @@ export default class AppColumnLink extends Vue {
if
(
result
.
datas
&&
Array
.
isArray
(
result
.
datas
))
{
if
(
result
.
datas
&&
Array
.
isArray
(
result
.
datas
))
{
Object
.
assign
(
item
,
result
.
datas
[
0
]);
Object
.
assign
(
item
,
result
.
datas
[
0
]);
}
}
console
.
log
(
item
);
this
.
$emit
(
'refresh'
,
item
);
}
}
/**
/**
...
...
app_web/src/components/app-form-group/app-form-group.vue
浏览文件 @
100e2a1a
...
@@ -158,6 +158,8 @@ export default class AppFormGroup extends Vue {
...
@@ -158,6 +158,8 @@ export default class AppFormGroup extends Vue {
* @memberof AppFormGroup
* @memberof AppFormGroup
*/
*/
public
calcActionItemAuthState
(
data
:
any
,
ActionModel
:
any
,
UIService
:
any
){
public
calcActionItemAuthState
(
data
:
any
,
ActionModel
:
any
,
UIService
:
any
){
if
(
!
UIService
.
isEnableDEMainState
)
return
;
for
(
const
key
in
ActionModel
)
{
for
(
const
key
in
ActionModel
)
{
if
(
!
ActionModel
.
hasOwnProperty
(
key
))
{
if
(
!
ActionModel
.
hasOwnProperty
(
key
))
{
return
;
return
;
...
...
app_web/src/components/app-format-data/app-format-data.vue
浏览文件 @
100e2a1a
...
@@ -47,7 +47,7 @@ export default class AppFormatData extends Vue {
...
@@ -47,7 +47,7 @@ export default class AppFormatData extends Vue {
* @memberof AppFormatData
* @memberof AppFormatData
*/
*/
getcurValue
(){
getcurValue
(){
if
(
this
.
data
){
if
(
this
.
data
||
this
.
data
==
0
){
if
(
Object
.
is
(
this
.
dataType
,
"DECIMAL"
)
||
Object
.
is
(
this
.
dataType
,
"FLOAT"
)
||
Object
.
is
(
this
.
dataType
,
"CURRENCY"
)){
if
(
Object
.
is
(
this
.
dataType
,
"DECIMAL"
)
||
Object
.
is
(
this
.
dataType
,
"FLOAT"
)
||
Object
.
is
(
this
.
dataType
,
"CURRENCY"
)){
let
number
=
Number
(
this
.
data
);
let
number
=
Number
(
this
.
data
);
let
precision
=
Number
(
this
.
precision
);
let
precision
=
Number
(
this
.
precision
);
...
...
app_web/src/components/app-image-romate/app-image-romate.vue
0 → 100644
浏览文件 @
100e2a1a
<
template
>
<div
class=
'app-image-preview'
>
<el-image
:src=
"data[name]"
:previewSrcList=
"previewList"
:disabled=
"disabled"
>
</el-image>
</div>
</
template
>
<
script
lang =
'ts'
>
import
{
Vue
,
Component
,
Prop
,
Watch
,
Provide
}
from
'vue-property-decorator'
;
import
{
Subject
,
Unsubscribable
}
from
'rxjs'
;
@
Component
({})
export
default
class
AppImageRomate
extends
Vue
{
/**
* 表单状态
*
* @type {any}
* @memberof AppImageRomate
*/
@
Prop
()
public
formState
:
any
;
/**
* 图片数据
*
* @type {any}
* @memberof AppImageRomate
*/
@
Prop
()
public
data
!
:
any
;
/**
* 字段名
*
* @type {any}
* @memberof AppImageRomate
*/
@
Prop
()
public
name
:
any
;
/**
* 禁用状态
*
* @type {boolean}
* @memberof AppImageRomate
*/
@
Prop
()
public
disabled
:
boolean
=
false
;
/**
* 预览图片数组
*
* @type {boolean}
* @memberof AppImageRomate
*/
public
previewList
:
Array
<
any
>
=
[];
/**
* 表单状态事件
*
* @private
* @type {(Unsubscribable | undefined)}
* @memberof AppImageUpload
*/
private
formStateEvent
:
Unsubscribable
|
undefined
;
/**
* Vue生命周期
*
* @type {boolean}
* @memberof AppImageRomate
*/
public
created
()
{
if
(
this
.
formState
)
{
this
.
formStateEvent
=
this
.
formState
.
subscribe
((
$event
:
any
)
=>
{
// 表单加载完成
if
(
this
.
data
&&
this
.
name
)
{
this
.
handleData
();
}
});
}
}
/**
* 数据处理
*
* @type {boolean}
* @memberof AppImageRomate
*/
public
handleData
()
{
this
.
previewList
.
push
(
this
.
data
[
this
.
name
]);
}
/**
* 组件销毁
*
* @memberof AppImageRomate
*/
public
destroyed
():
void
{
if
(
this
.
formStateEvent
)
{
this
.
formStateEvent
.
unsubscribe
();
}
}
}
</
script
>
\ No newline at end of file
app_web/src/components/app-orgsector/app-orgsector.vue
浏览文件 @
100e2a1a
...
@@ -22,6 +22,7 @@
...
@@ -22,6 +22,7 @@
</div>
</div>
</
template
>
</
template
>
<
script
lang =
'ts'
>
<
script
lang =
'ts'
>
import
{
Http
}
from
'@/utils/http/http'
;
import
{
Vue
,
Component
,
Inject
}
from
"vue-property-decorator"
;
import
{
Vue
,
Component
,
Inject
}
from
"vue-property-decorator"
;
@
Component
({})
@
Component
({})
...
@@ -110,17 +111,33 @@ export default class AppOrgSector extends Vue {
...
@@ -110,17 +111,33 @@ export default class AppOrgSector extends Vue {
let
item
:
any
=
this
.
selectedOrgArray
.
find
((
_item
:
any
)
=>
{
let
item
:
any
=
this
.
selectedOrgArray
.
find
((
_item
:
any
)
=>
{
return
_item
.
srforgsectorid
===
data
;
return
_item
.
srforgsectorid
===
data
;
});
});
this
.
switchDepartment
(
data
).
then
((
response
:
any
)
=>
{
if
(
response
.
status
==
200
)
{
if
(
item
.
srforgsectorid
&&
item
.
srforgsectorname
)
{
if
(
item
.
srforgsectorid
&&
item
.
srforgsectorname
)
{
this
.
selectedOrgId
=
item
.
srforgsectorid
;
this
.
selectedOrgId
=
item
.
srforgsectorid
;
this
.
selectedOrgName
=
item
.
srforgsectorname
;
this
.
selectedOrgName
=
item
.
srforgsectorname
;
this
.
reload
();
}
}
this
.
updateStoreOrgData
(
item
);
this
.
updateStoreOrgData
(
item
);
this
.
reload
();
}
else
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
?
response
.
data
.
message
:(
this
.
$t
(
'components.appOrgSector.errorSwitch'
)
as
string
)
});
}
}).
catch
((
error
:
any
)
=>
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'components.appOrgSector.errorSwitch'
)
as
string
)
});
})
}
/**
* 调用远端切换部门接口
*
* @memberof AppOrgSector
*/
public
async
switchDepartment
(
data
:
any
){
return
await
Http
.
getInstance
().
post
(
`/oumaps/switch`
,
data
,
false
);
}
}
/**
/**
* 更新仓库
Org
信息
* 更新仓库
部门
信息
*
*
* @memberof AppOrgSector
* @memberof AppOrgSector
*/
*/
...
...
app_web/src/components/app-picker/app-picker.vue
浏览文件 @
100e2a1a
...
@@ -37,7 +37,7 @@
...
@@ -37,7 +37,7 @@
</div>
</div>
<div
v-else-if=
"Object.is(editortype, 'dropdown')"
class=
'app-picker'
>
<div
v-else-if=
"Object.is(editortype, 'dropdown')"
class=
'app-picker'
>
<el-select
ref=
"appPicker"
remote
:remote-method=
"(query) => this.onSearch(query, null, true)"
:value=
"refvalue"
size=
'small'
filterable
<el-select
ref=
"appPicker"
remote
:remote-method=
"(query) => this.onSearch(query, null, true)"
:value=
"refvalue"
size=
'small'
filterable
@
change=
"onSelect"
:disabled=
"disabled"
style=
'width:100%;'
clearable
@
change=
"onSelect"
:disabled=
"disabled"
style=
'width:100%;'
clearable
popper-class=
"app-picker-dropdown"
@
clear=
"onClear"
@
visible-change=
"onSelectOpen"
>
@
clear=
"onClear"
@
visible-change=
"onSelectOpen"
>
<
template
v-if=
"items"
>
<
template
v-if=
"items"
>
<template
v-for=
"_item in items"
>
<template
v-for=
"_item in items"
>
...
@@ -260,6 +260,14 @@ export default class AppPicker extends Vue {
...
@@ -260,6 +260,14 @@ export default class AppPicker extends Vue {
*/
*/
public
selectValue
=
this
.
value
;
public
selectValue
=
this
.
value
;
/**
* 下拉列表节点元素
*
* @type {*}
* @memberof AppPicker
*/
public
dropdownDom
:
any
=
{};
/**
/**
* 获取关联数据项值
* 获取关联数据项值
*
*
...
@@ -314,6 +322,8 @@ export default class AppPicker extends Vue {
...
@@ -314,6 +322,8 @@ export default class AppPicker extends Vue {
* @memberof AppPicker
* @memberof AppPicker
*/
*/
public
mounted
()
{
public
mounted
()
{
const
dropdownDom
:
any
=
this
.
$el
.
getElementsByClassName
(
'app-picker-dropdown'
)[
0
];
this
.
dropdownDom
=
dropdownDom
;
}
}
/**
/**
...
@@ -331,10 +341,22 @@ export default class AppPicker extends Vue {
...
@@ -331,10 +341,22 @@ export default class AppPicker extends Vue {
public
onSelectOpen
(
flag
:
boolean
):
void
{
public
onSelectOpen
(
flag
:
boolean
):
void
{
this
.
open
=
flag
;
this
.
open
=
flag
;
if
(
this
.
open
)
{
if
(
this
.
open
)
{
//设置下拉列表的最大宽度
this
.
setDropdownWidth
();
this
.
onSearch
(
this
.
curvalue
,
null
,
true
);
this
.
onSearch
(
this
.
curvalue
,
null
,
true
);
}
}
}
}
/**
* 设置下拉列表最大宽度使下拉列表宽度和编辑器宽度一致
*
* @memberof AppPicker
*/
public
setDropdownWidth
(){
const
elInput
:
any
=
this
.
$el
.
getElementsByClassName
(
'el-input__inner'
)[
0
];
this
.
dropdownDom
.
style
.
maxWidth
=
elInput
.
offsetWidth
+
'px'
;
}
/**
/**
* 执行搜索数据
* 执行搜索数据
* @param query
* @param query
...
@@ -434,10 +456,10 @@ export default class AppPicker extends Vue {
...
@@ -434,10 +456,10 @@ export default class AppPicker extends Vue {
*/
*/
public
onClear
(
$event
:
any
):
void
{
public
onClear
(
$event
:
any
):
void
{
if
(
this
.
valueitem
)
{
if
(
this
.
valueitem
)
{
this
.
$emit
(
'formitemvaluechange'
,
{
name
:
this
.
valueitem
,
value
:
''
});
this
.
$emit
(
'formitemvaluechange'
,
{
name
:
this
.
valueitem
,
value
:
null
});
}
}
if
(
this
.
name
)
{
if
(
this
.
name
)
{
this
.
$emit
(
'formitemvaluechange'
,
{
name
:
this
.
name
,
value
:
''
});
this
.
$emit
(
'formitemvaluechange'
,
{
name
:
this
.
name
,
value
:
null
});
}
}
this
.
fillPickUpData
();
this
.
fillPickUpData
();
this
.
$forceUpdate
();
this
.
$forceUpdate
();
...
...
app_web/src/components/app-rawitem/app-rawitem.vue
浏览文件 @
100e2a1a
<
template
>
<
template
>
<div>
<div
:style=
"sizeStyle"
>
<span
v-if=
"caption"
>
{{
caption
}}
</span>
<span>
{{
caption
}}
</span>
<div
:class=
"contentStyle"
:style=
"sizeStyle"
>
<div
v-if=
"Object.is(contentType,'RAW')"
:class=
"contentStyle"
>
<template
v-if=
"Object.is(contentType,'RAW')"
>
<slot></slot>
{{
rawContent
?
rawContent
:
''
}}
</div>
</
template
>
<div
v-else-if=
"Object.is(contentType,'HTML')"
:class=
"contentStyle"
v-html=
"htmlContent"
/>
<
template
v-else-if=
"Object.is(contentType,'HTML')"
>
<div
v-else-if=
"Object.is(contentType,'IMAGE')"
:class=
"contentStyle"
>
{{
htmlContent
?
htmlContent
:
''
}}
</
template
>
<
template
v-else-if=
"Object.is(contentType,'IMAGE')"
>
<i
:class=
"imageClass ? imageClass : ''"
></i>
<i
:class=
"imageClass ? imageClass : ''"
></i>
</
template
>
</div>
</div>
</div>
</div>
</
template
>
</
template
>
...
@@ -22,20 +18,28 @@ import { Component, Vue, Prop, Model, Watch } from "vue-property-decorator";
...
@@ -22,20 +18,28 @@ import { Component, Vue, Prop, Model, Watch } from "vue-property-decorator";
export
default
class
AppRawItem
extends
Vue
{
export
default
class
AppRawItem
extends
Vue
{
/**
/**
*
内容类型
*
应用上下文
*
*
* @type {string}
* @type {string}
* @memberof AppRawItem
* @memberof AppRawItem
*/
*/
@
Prop
()
public
conte
ntType
!
:
string
;
@
Prop
()
public
conte
xt
!
:
any
;
/**
/**
* 直接内容
* 视图参数
*
*
* @type {strin}
* @type {string}
* @memberof AppRawItem
*/
@
Prop
()
public
viewparams
!
:
any
;
/**
* 内容类型
*
* @type {string}
* @memberof AppRawItem
* @memberof AppRawItem
*/
*/
@
Prop
()
public
rawContent
?
:
string
;
@
Prop
()
public
contentType
!
:
string
;
/**
/**
* html内容
* html内容
...
@@ -46,7 +50,7 @@ export default class AppRawItem extends Vue {
...
@@ -46,7 +50,7 @@ export default class AppRawItem extends Vue {
@
Prop
()
public
htmlContent
?:
string
;
@
Prop
()
public
htmlContent
?:
string
;
/**
/**
*
html内容
*
图片
*
*
* @type {strin}
* @type {strin}
* @memberof AppRawItem
* @memberof AppRawItem
...
...
app_web/src/components/login/login.vue
浏览文件 @
100e2a1a
...
@@ -183,6 +183,9 @@ export default class Login extends Vue {
...
@@ -183,6 +183,9 @@ export default class Login extends Vue {
localStorage
.
setItem
(
'token'
,
data
.
token
);
localStorage
.
setItem
(
'token'
,
data
.
token
);
this
.
setCookie
(
'ibzuaa-token'
,
data
.
token
,
0
);
this
.
setCookie
(
'ibzuaa-token'
,
data
.
token
,
0
);
}
}
if
(
data
&&
data
.
user
){
localStorage
.
setItem
(
'user'
,
JSON
.
stringify
(
data
.
user
));
}
// 设置cookie,保存账号密码7天
// 设置cookie,保存账号密码7天
this
.
setCookie
(
"loginname"
,
loginname
,
7
);
this
.
setCookie
(
"loginname"
,
loginname
,
7
);
// 跳转首页
// 跳转首页
...
...
app_web/src/engine/view/tab-exp-view-engine.ts
浏览文件 @
100e2a1a
...
@@ -44,4 +44,14 @@ export default class TabExpViewEngine extends ViewEngine {
...
@@ -44,4 +44,14 @@ export default class TabExpViewEngine extends ViewEngine {
this
.
setViewState2
({
tag
:
_item
.
name
,
action
:
'load'
,
viewdata
:
this
.
view
.
context
});
this
.
setViewState2
({
tag
:
_item
.
name
,
action
:
'load'
,
viewdata
:
this
.
view
.
context
});
});
});
}
}
/**
* 计算按钮状态
*
* @memberof TabExpViewEngine
*/
public
computeToolbarState
(
state
:
boolean
,
data
:
any
){
this
.
calcToolbarItemState
(
state
);
this
.
calcToolbarItemAuthState
(
data
);
}
}
}
\ No newline at end of file
app_web/src/engine/view/view-engine.ts
浏览文件 @
100e2a1a
...
@@ -187,6 +187,8 @@ export default class ViewEngine {
...
@@ -187,6 +187,8 @@ export default class ViewEngine {
*/
*/
public
calcToolbarItemAuthState
(
data
:
any
){
public
calcToolbarItemAuthState
(
data
:
any
){
const
_this
:
any
=
this
;
const
_this
:
any
=
this
;
if
(
!
_this
.
view
.
appUIService
.
isEnableDEMainState
)
return
;
for
(
const
key
in
_this
.
view
.
toolBarModels
)
{
for
(
const
key
in
_this
.
view
.
toolBarModels
)
{
if
(
!
_this
.
view
.
toolBarModels
.
hasOwnProperty
(
key
))
{
if
(
!
_this
.
view
.
toolBarModels
.
hasOwnProperty
(
key
))
{
return
;
return
;
...
...
app_web/src/locale/lang/en-US.ts
浏览文件 @
100e2a1a
...
@@ -41,7 +41,6 @@ export default {
...
@@ -41,7 +41,6 @@ export default {
show
:
"Show"
,
show
:
"Show"
,
records
:
"records"
,
records
:
"records"
,
totle
:
"totle"
,
totle
:
"totle"
,
noData
:
"No data"
,
valueVail
:
"Value cannot be empty"
,
valueVail
:
"Value cannot be empty"
,
group
:
"Group"
,
group
:
"Group"
,
other
:
"Other"
,
other
:
"Other"
,
...
...
app_web/src/locale/lang/zh-CN.ts
浏览文件 @
100e2a1a
...
@@ -41,7 +41,6 @@ export default {
...
@@ -41,7 +41,6 @@ export default {
show
:
"显示"
,
show
:
"显示"
,
records
:
"条"
,
records
:
"条"
,
totle
:
"共"
,
totle
:
"共"
,
noData
:
"无数据"
,
valueVail
:
"值不能为空"
,
valueVail
:
"值不能为空"
,
group
:
"分组"
,
group
:
"分组"
,
other
:
"其他"
,
other
:
"其他"
,
...
...
app_web/src/locale/lanres/components/components_en_US.ts
浏览文件 @
100e2a1a
...
@@ -11,6 +11,10 @@ export default {
...
@@ -11,6 +11,10 @@ export default {
indexPage
:
'home page'
,
indexPage
:
'home page'
,
continue
:
'to continue browsing'
,
continue
:
'to continue browsing'
,
},
},
appOrgSector
:{
successSwitch
:
'The switch was successful'
,
errorSwitch
:
'The switchover failed'
,
},
appAutocomplete
:
{
appAutocomplete
:
{
error
:
'Error'
,
error
:
'Error'
,
miss
:
'Missing parameter '
,
miss
:
'Missing parameter '
,
...
...
app_web/src/locale/lanres/components/components_zh_CN.ts
浏览文件 @
100e2a1a
...
@@ -11,6 +11,10 @@ export default {
...
@@ -11,6 +11,10 @@ export default {
indexPage
:
'首页'
,
indexPage
:
'首页'
,
continue
:
'继续浏览'
,
continue
:
'继续浏览'
,
},
},
appOrgSector
:{
successSwitch
:
'切换成功'
,
errorSwitch
:
'切换失败'
,
},
appAutocomplete
:
{
appAutocomplete
:
{
error
:
'错误'
,
error
:
'错误'
,
miss
:
'缺少参数'
,
miss
:
'缺少参数'
,
...
...
app_web/src/locale/lanres/entities/jobs-info/jobs-info_en_US.ts
浏览文件 @
100e2a1a
...
@@ -69,6 +69,7 @@ export default {
...
@@ -69,6 +69,7 @@ export default {
timeout
:
"任务执行超时时间(秒)"
,
timeout
:
"任务执行超时时间(秒)"
,
update_time
:
"更新时间"
,
update_time
:
"更新时间"
,
},
},
nodata
:
""
,
uiactions
:
{
uiactions
:
{
},
},
},
},
...
...
app_web/src/locale/lanres/entities/jobs-info/jobs-info_zh_CN.ts
浏览文件 @
100e2a1a
...
@@ -68,6 +68,7 @@ export default {
...
@@ -68,6 +68,7 @@ export default {
timeout
:
"任务执行超时时间(秒)"
,
timeout
:
"任务执行超时时间(秒)"
,
update_time
:
"更新时间"
,
update_time
:
"更新时间"
,
},
},
nodata
:
""
,
uiactions
:
{
uiactions
:
{
},
},
},
},
...
...
app_web/src/locale/lanres/entities/jobs-log/jobs-log_en_US.ts
浏览文件 @
100e2a1a
...
@@ -58,6 +58,7 @@ export default {
...
@@ -58,6 +58,7 @@ export default {
fail_retry_count
:
"失败重试次数"
,
fail_retry_count
:
"失败重试次数"
,
create_time
:
"创建时间"
,
create_time
:
"创建时间"
,
},
},
nodata
:
""
,
uiactions
:
{
uiactions
:
{
},
},
},
},
...
...
app_web/src/locale/lanres/entities/jobs-log/jobs-log_zh_CN.ts
浏览文件 @
100e2a1a
...
@@ -57,6 +57,7 @@ export default {
...
@@ -57,6 +57,7 @@ export default {
fail_retry_count
:
"失败重试次数"
,
fail_retry_count
:
"失败重试次数"
,
create_time
:
"创建时间"
,
create_time
:
"创建时间"
,
},
},
nodata
:
""
,
uiactions
:
{
uiactions
:
{
},
},
},
},
...
...
app_web/src/locale/lanres/entities/jobs-registry/jobs-registry_en_US.ts
浏览文件 @
100e2a1a
...
@@ -43,6 +43,7 @@ export default {
...
@@ -43,6 +43,7 @@ export default {
address
:
"执行地址"
,
address
:
"执行地址"
,
status
:
"状态"
,
status
:
"状态"
,
},
},
nodata
:
""
,
uiactions
:
{
uiactions
:
{
},
},
},
},
...
...
app_web/src/locale/lanres/entities/jobs-registry/jobs-registry_zh_CN.ts
浏览文件 @
100e2a1a
...
@@ -42,6 +42,7 @@ export default {
...
@@ -42,6 +42,7 @@ export default {
address
:
"执行地址"
,
address
:
"执行地址"
,
status
:
"状态"
,
status
:
"状态"
,
},
},
nodata
:
""
,
uiactions
:
{
uiactions
:
{
},
},
},
},
...
...
app_web/src/pages/task/jobs-info-edit-view/jobs-info-edit-view-base.vue
浏览文件 @
100e2a1a
...
@@ -206,11 +206,11 @@ export default class JobsInfoEditViewBase extends Vue {
...
@@ -206,11 +206,11 @@ export default class JobsInfoEditViewBase extends Vue {
@
Watch
(
'viewdata'
)
@
Watch
(
'viewdata'
)
onViewData
(
newVal
:
any
,
oldVal
:
any
)
{
onViewData
(
newVal
:
any
,
oldVal
:
any
)
{
const
_this
:
any
=
this
;
const
_this
:
any
=
this
;
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
engine
)
{
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
engine
)
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
_this
.
parseViewParam
();
_this
.
parseViewParam
();
_this
.
engine
.
load
();
_this
.
engine
.
load
();
});
});
}
else
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
}
else
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
_this
.
refresh
();
_this
.
refresh
();
...
@@ -555,7 +555,7 @@ export default class JobsInfoEditViewBase extends Vue {
...
@@ -555,7 +555,7 @@ export default class JobsInfoEditViewBase extends Vue {
});
});
if
(
_this
.
portletState
){
if
(
_this
.
portletState
){
_this
.
portletStateEvent
=
_this
.
portletState
.
subscribe
((
res
:
any
)
=>
{
_this
.
portletStateEvent
=
_this
.
portletState
.
subscribe
((
res
:
any
)
=>
{
if
(
!
Object
.
is
(
res
.
name
,
'
calendar-view9
'
)){
if
(
!
Object
.
is
(
res
.
name
,
'
JobsInfoEditView
'
)){
return
;
return
;
}
}
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
...
...
app_web/src/pages/task/jobs-info-grid-view/jobs-info-grid-view-base.vue
浏览文件 @
100e2a1a
...
@@ -268,11 +268,11 @@ export default class JobsInfoGridViewBase extends Vue {
...
@@ -268,11 +268,11 @@ export default class JobsInfoGridViewBase extends Vue {
@
Watch
(
'viewdata'
)
@
Watch
(
'viewdata'
)
onViewData
(
newVal
:
any
,
oldVal
:
any
)
{
onViewData
(
newVal
:
any
,
oldVal
:
any
)
{
const
_this
:
any
=
this
;
const
_this
:
any
=
this
;
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
engine
)
{
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
engine
)
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
_this
.
parseViewParam
();
_this
.
parseViewParam
();
_this
.
engine
.
load
();
_this
.
engine
.
load
();
});
});
}
else
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
}
else
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
_this
.
refresh
();
_this
.
refresh
();
...
@@ -635,7 +635,7 @@ export default class JobsInfoGridViewBase extends Vue {
...
@@ -635,7 +635,7 @@ export default class JobsInfoGridViewBase extends Vue {
});
});
if
(
_this
.
portletState
){
if
(
_this
.
portletState
){
_this
.
portletStateEvent
=
_this
.
portletState
.
subscribe
((
res
:
any
)
=>
{
_this
.
portletStateEvent
=
_this
.
portletState
.
subscribe
((
res
:
any
)
=>
{
if
(
!
Object
.
is
(
res
.
name
,
'
calendar-view9
'
)){
if
(
!
Object
.
is
(
res
.
name
,
'
JobsInfoGridView
'
)){
return
;
return
;
}
}
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
...
...
app_web/src/pages/task/jobs-log-edit-view/jobs-log-edit-view-base.vue
浏览文件 @
100e2a1a
...
@@ -190,11 +190,11 @@ export default class JobsLogEditViewBase extends Vue {
...
@@ -190,11 +190,11 @@ export default class JobsLogEditViewBase extends Vue {
@
Watch
(
'viewdata'
)
@
Watch
(
'viewdata'
)
onViewData
(
newVal
:
any
,
oldVal
:
any
)
{
onViewData
(
newVal
:
any
,
oldVal
:
any
)
{
const
_this
:
any
=
this
;
const
_this
:
any
=
this
;
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
engine
)
{
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
engine
)
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
_this
.
parseViewParam
();
_this
.
parseViewParam
();
_this
.
engine
.
load
();
_this
.
engine
.
load
();
});
});
}
else
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
}
else
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
_this
.
refresh
();
_this
.
refresh
();
...
@@ -525,7 +525,7 @@ export default class JobsLogEditViewBase extends Vue {
...
@@ -525,7 +525,7 @@ export default class JobsLogEditViewBase extends Vue {
});
});
if
(
_this
.
portletState
){
if
(
_this
.
portletState
){
_this
.
portletStateEvent
=
_this
.
portletState
.
subscribe
((
res
:
any
)
=>
{
_this
.
portletStateEvent
=
_this
.
portletState
.
subscribe
((
res
:
any
)
=>
{
if
(
!
Object
.
is
(
res
.
name
,
'
calendar-view9
'
)){
if
(
!
Object
.
is
(
res
.
name
,
'
JobsLogEditView
'
)){
return
;
return
;
}
}
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
...
...
app_web/src/pages/task/jobs-log-grid-view/jobs-log-grid-view-base.vue
浏览文件 @
100e2a1a
...
@@ -217,11 +217,11 @@ export default class JobsLogGridViewBase extends Vue {
...
@@ -217,11 +217,11 @@ export default class JobsLogGridViewBase extends Vue {
@
Watch
(
'viewdata'
)
@
Watch
(
'viewdata'
)
onViewData
(
newVal
:
any
,
oldVal
:
any
)
{
onViewData
(
newVal
:
any
,
oldVal
:
any
)
{
const
_this
:
any
=
this
;
const
_this
:
any
=
this
;
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
engine
)
{
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
engine
)
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
_this
.
parseViewParam
();
_this
.
parseViewParam
();
_this
.
engine
.
load
();
_this
.
engine
.
load
();
});
});
}
else
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
}
else
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
_this
.
refresh
();
_this
.
refresh
();
...
@@ -560,7 +560,7 @@ export default class JobsLogGridViewBase extends Vue {
...
@@ -560,7 +560,7 @@ export default class JobsLogGridViewBase extends Vue {
});
});
if
(
_this
.
portletState
){
if
(
_this
.
portletState
){
_this
.
portletStateEvent
=
_this
.
portletState
.
subscribe
((
res
:
any
)
=>
{
_this
.
portletStateEvent
=
_this
.
portletState
.
subscribe
((
res
:
any
)
=>
{
if
(
!
Object
.
is
(
res
.
name
,
'
calendar-view9
'
)){
if
(
!
Object
.
is
(
res
.
name
,
'
JobsLogGridView
'
)){
return
;
return
;
}
}
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
...
...
app_web/src/pages/task/jobs-registry-edit-view/jobs-registry-edit-view-base.vue
浏览文件 @
100e2a1a
...
@@ -206,11 +206,11 @@ export default class JobsRegistryEditViewBase extends Vue {
...
@@ -206,11 +206,11 @@ export default class JobsRegistryEditViewBase extends Vue {
@
Watch
(
'viewdata'
)
@
Watch
(
'viewdata'
)
onViewData
(
newVal
:
any
,
oldVal
:
any
)
{
onViewData
(
newVal
:
any
,
oldVal
:
any
)
{
const
_this
:
any
=
this
;
const
_this
:
any
=
this
;
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
engine
)
{
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
engine
)
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
_this
.
parseViewParam
();
_this
.
parseViewParam
();
_this
.
engine
.
load
();
_this
.
engine
.
load
();
});
});
}
else
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
}
else
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
_this
.
refresh
();
_this
.
refresh
();
...
@@ -555,7 +555,7 @@ export default class JobsRegistryEditViewBase extends Vue {
...
@@ -555,7 +555,7 @@ export default class JobsRegistryEditViewBase extends Vue {
});
});
if
(
_this
.
portletState
){
if
(
_this
.
portletState
){
_this
.
portletStateEvent
=
_this
.
portletState
.
subscribe
((
res
:
any
)
=>
{
_this
.
portletStateEvent
=
_this
.
portletState
.
subscribe
((
res
:
any
)
=>
{
if
(
!
Object
.
is
(
res
.
name
,
'
calendar-view9
'
)){
if
(
!
Object
.
is
(
res
.
name
,
'
JobsRegistryEditView
'
)){
return
;
return
;
}
}
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
...
...
app_web/src/pages/task/jobs-registry-grid-view/jobs-registry-grid-view-base.vue
浏览文件 @
100e2a1a
...
@@ -247,11 +247,11 @@ export default class JobsRegistryGridViewBase extends Vue {
...
@@ -247,11 +247,11 @@ export default class JobsRegistryGridViewBase extends Vue {
@
Watch
(
'viewdata'
)
@
Watch
(
'viewdata'
)
onViewData
(
newVal
:
any
,
oldVal
:
any
)
{
onViewData
(
newVal
:
any
,
oldVal
:
any
)
{
const
_this
:
any
=
this
;
const
_this
:
any
=
this
;
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
engine
)
{
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
engine
)
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
_this
.
parseViewParam
();
_this
.
parseViewParam
();
_this
.
engine
.
load
();
_this
.
engine
.
load
();
});
});
}
else
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
}
else
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
_this
.
refresh
();
_this
.
refresh
();
...
@@ -608,7 +608,7 @@ export default class JobsRegistryGridViewBase extends Vue {
...
@@ -608,7 +608,7 @@ export default class JobsRegistryGridViewBase extends Vue {
});
});
if
(
_this
.
portletState
){
if
(
_this
.
portletState
){
_this
.
portletStateEvent
=
_this
.
portletState
.
subscribe
((
res
:
any
)
=>
{
_this
.
portletStateEvent
=
_this
.
portletState
.
subscribe
((
res
:
any
)
=>
{
if
(
!
Object
.
is
(
res
.
name
,
'
calendar-view9
'
)){
if
(
!
Object
.
is
(
res
.
name
,
'
JobsRegistryGridView
'
)){
return
;
return
;
}
}
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
...
...
app_web/src/pages/task/task-index-view/task-index-view-base.vue
浏览文件 @
100e2a1a
...
@@ -187,11 +187,11 @@ export default class TaskIndexViewBase extends Vue {
...
@@ -187,11 +187,11 @@ export default class TaskIndexViewBase extends Vue {
@
Watch
(
'viewdata'
)
@
Watch
(
'viewdata'
)
onViewData
(
newVal
:
any
,
oldVal
:
any
)
{
onViewData
(
newVal
:
any
,
oldVal
:
any
)
{
const
_this
:
any
=
this
;
const
_this
:
any
=
this
;
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
engine
)
{
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
engine
)
{
this
.
$nextTick
(()
=>
{
this
.
$nextTick
(()
=>
{
_this
.
parseViewParam
();
_this
.
parseViewParam
();
_this
.
engine
.
load
();
_this
.
engine
.
load
();
});
});
}
else
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
}
else
if
(
!
Object
.
is
(
newVal
,
oldVal
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
)
{
_this
.
refresh
();
_this
.
refresh
();
...
@@ -489,7 +489,7 @@ export default class TaskIndexViewBase extends Vue {
...
@@ -489,7 +489,7 @@ export default class TaskIndexViewBase extends Vue {
});
});
if
(
_this
.
portletState
){
if
(
_this
.
portletState
){
_this
.
portletStateEvent
=
_this
.
portletState
.
subscribe
((
res
:
any
)
=>
{
_this
.
portletStateEvent
=
_this
.
portletState
.
subscribe
((
res
:
any
)
=>
{
if
(
!
Object
.
is
(
res
.
name
,
'
calendar-view9
'
)){
if
(
!
Object
.
is
(
res
.
name
,
'
TaskIndexView
'
)){
return
;
return
;
}
}
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
if
(
Object
.
is
(
res
.
action
,
'refresh'
)
&&
_this
.
refresh
&&
_this
.
refresh
instanceof
Function
){
...
...
app_web/src/uiservice/jobs-info/jobs-info-ui-service-base.ts
浏览文件 @
100e2a1a
...
@@ -20,6 +20,13 @@ export default class JobsInfoUIServiceBase extends UIService {
...
@@ -20,6 +20,13 @@ export default class JobsInfoUIServiceBase extends UIService {
*/
*/
public
isEnableWorkflow
:
boolean
=
false
;
public
isEnableWorkflow
:
boolean
=
false
;
/**
* 是否支持实体主状态
*
* @memberof JobsInfoUIServiceBase
*/
public
isEnableDEMainState
:
boolean
=
false
;
/**
/**
* 当前UI服务对应的数据服务对象
* 当前UI服务对应的数据服务对象
*
*
...
@@ -156,15 +163,15 @@ export default class JobsInfoUIServiceBase extends UIService {
...
@@ -156,15 +163,15 @@ export default class JobsInfoUIServiceBase extends UIService {
return
;
return
;
}
}
actionContext
.
$Notice
.
success
({
title
:
'成功'
,
desc
:
'执行成功!'
});
actionContext
.
$Notice
.
success
({
title
:
'成功'
,
desc
:
'执行成功!'
});
const
_this
:
any
=
actionContext
;
const
_this
:
any
=
actionContext
;
return
response
;
return
response
;
}).
catch
((
response
:
any
)
=>
{
}).
catch
((
response
:
any
)
=>
{
if
(
!
response
||
!
response
.
status
||
!
response
.
data
)
{
if
(
response
&&
response
.
status
&&
response
.
data
)
{
actionContext
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'系统异常!'
});
actionContext
.
$Notice
.
error
({
title
:
(
actionContext
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
return
;
return
;
}
}
if
(
response
.
status
===
401
)
{
if
(
!
response
||
!
response
.
status
||
!
response
.
data
)
{
actionContext
.
$Notice
.
error
({
title
:
(
actionContext
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
actionContext
.
$t
(
'app.commonWords.sysException'
)
as
string
)
});
return
;
return
;
}
}
return
response
;
return
response
;
...
@@ -220,15 +227,15 @@ export default class JobsInfoUIServiceBase extends UIService {
...
@@ -220,15 +227,15 @@ export default class JobsInfoUIServiceBase extends UIService {
return
;
return
;
}
}
actionContext
.
$Notice
.
success
({
title
:
'成功'
,
desc
:
'启动成功!'
});
actionContext
.
$Notice
.
success
({
title
:
'成功'
,
desc
:
'启动成功!'
});
const
_this
:
any
=
actionContext
;
const
_this
:
any
=
actionContext
;
return
response
;
return
response
;
}).
catch
((
response
:
any
)
=>
{
}).
catch
((
response
:
any
)
=>
{
if
(
!
response
||
!
response
.
status
||
!
response
.
data
)
{
if
(
response
&&
response
.
status
&&
response
.
data
)
{
actionContext
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'系统异常!'
});
actionContext
.
$Notice
.
error
({
title
:
(
actionContext
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
return
;
return
;
}
}
if
(
response
.
status
===
401
)
{
if
(
!
response
||
!
response
.
status
||
!
response
.
data
)
{
actionContext
.
$Notice
.
error
({
title
:
(
actionContext
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
actionContext
.
$t
(
'app.commonWords.sysException'
)
as
string
)
});
return
;
return
;
}
}
return
response
;
return
response
;
...
@@ -284,15 +291,15 @@ export default class JobsInfoUIServiceBase extends UIService {
...
@@ -284,15 +291,15 @@ export default class JobsInfoUIServiceBase extends UIService {
return
;
return
;
}
}
actionContext
.
$Notice
.
success
({
title
:
'成功'
,
desc
:
'停止成功!'
});
actionContext
.
$Notice
.
success
({
title
:
'成功'
,
desc
:
'停止成功!'
});
const
_this
:
any
=
actionContext
;
const
_this
:
any
=
actionContext
;
return
response
;
return
response
;
}).
catch
((
response
:
any
)
=>
{
}).
catch
((
response
:
any
)
=>
{
if
(
!
response
||
!
response
.
status
||
!
response
.
data
)
{
if
(
response
&&
response
.
status
&&
response
.
data
)
{
actionContext
.
$Notice
.
error
({
title
:
'错误'
,
desc
:
'系统异常!'
});
actionContext
.
$Notice
.
error
({
title
:
(
actionContext
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
response
.
data
.
message
});
return
;
return
;
}
}
if
(
response
.
status
===
401
)
{
if
(
!
response
||
!
response
.
status
||
!
response
.
data
)
{
actionContext
.
$Notice
.
error
({
title
:
(
actionContext
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
actionContext
.
$t
(
'app.commonWords.sysException'
)
as
string
)
});
return
;
return
;
}
}
return
response
;
return
response
;
...
...
app_web/src/uiservice/jobs-lock/jobs-lock-ui-service-base.ts
浏览文件 @
100e2a1a
...
@@ -20,6 +20,13 @@ export default class JobsLockUIServiceBase extends UIService {
...
@@ -20,6 +20,13 @@ export default class JobsLockUIServiceBase extends UIService {
*/
*/
public
isEnableWorkflow
:
boolean
=
false
;
public
isEnableWorkflow
:
boolean
=
false
;
/**
* 是否支持实体主状态
*
* @memberof JobsLockUIServiceBase
*/
public
isEnableDEMainState
:
boolean
=
false
;
/**
/**
* 当前UI服务对应的数据服务对象
* 当前UI服务对应的数据服务对象
*
*
...
...
app_web/src/uiservice/jobs-log/jobs-log-ui-service-base.ts
浏览文件 @
100e2a1a
...
@@ -20,6 +20,13 @@ export default class JobsLogUIServiceBase extends UIService {
...
@@ -20,6 +20,13 @@ export default class JobsLogUIServiceBase extends UIService {
*/
*/
public
isEnableWorkflow
:
boolean
=
false
;
public
isEnableWorkflow
:
boolean
=
false
;
/**
* 是否支持实体主状态
*
* @memberof JobsLogUIServiceBase
*/
public
isEnableDEMainState
:
boolean
=
false
;
/**
/**
* 当前UI服务对应的数据服务对象
* 当前UI服务对应的数据服务对象
*
*
...
...
app_web/src/uiservice/jobs-registry/jobs-registry-ui-service-base.ts
浏览文件 @
100e2a1a
...
@@ -20,6 +20,13 @@ export default class JobsRegistryUIServiceBase extends UIService {
...
@@ -20,6 +20,13 @@ export default class JobsRegistryUIServiceBase extends UIService {
*/
*/
public
isEnableWorkflow
:
boolean
=
false
;
public
isEnableWorkflow
:
boolean
=
false
;
/**
* 是否支持实体主状态
*
* @memberof JobsRegistryUIServiceBase
*/
public
isEnableDEMainState
:
boolean
=
false
;
/**
/**
* 当前UI服务对应的数据服务对象
* 当前UI服务对应的数据服务对象
*
*
...
...
app_web/src/utils/view-tool/view-tool.ts
浏览文件 @
100e2a1a
...
@@ -258,7 +258,7 @@ export class ViewTool {
...
@@ -258,7 +258,7 @@ export class ViewTool {
return
result
;
return
result
;
}
}
const
_item
=
ActionModel
[
key
];
const
_item
=
ActionModel
[
key
];
if
(
_item
&&
_item
[
'dataaccaction'
]
&&
UIService
){
if
(
_item
&&
_item
[
'dataaccaction'
]
&&
UIService
&&
UIService
.
isEnableDEMainState
){
let
dataActionResult
:
any
;
let
dataActionResult
:
any
;
if
(
Object
.
is
(
_item
[
'actiontarget'
],
"NONE"
)
||
Object
.
is
(
_item
[
'actiontarget'
],
""
)){
if
(
Object
.
is
(
_item
[
'actiontarget'
],
"NONE"
)
||
Object
.
is
(
_item
[
'actiontarget'
],
""
)){
dataActionResult
=
UIService
.
getResourceOPPrivs
(
_item
[
'dataaccaction'
]);
dataActionResult
=
UIService
.
getResourceOPPrivs
(
_item
[
'dataaccaction'
]);
...
...
app_web/src/widgets/jobs-info/main-grid/main-grid-base.vue
浏览文件 @
100e2a1a
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
@row-dblclick="rowDBLClick($event)"
@row-dblclick="rowDBLClick($event)"
ref='multipleTable' :data="items" :show-header="!isHideHeader">
ref='multipleTable' :data="items" :show-header="!isHideHeader">
<template
slot=
"empty"
>
<template
slot=
"empty"
>
{{
$t
(
'
app.gridpage.noD
ata'
)
}}
{{
$t
(
'
entities.jobsinfo.main_grid.nod
ata'
)
}}
</
template
>
</
template
>
<
template
v-if=
"!isSingleSelect"
>
<
template
v-if=
"!isSingleSelect"
>
<el-table-column
align=
"center"
type=
'selection'
:width=
"checkboxColWidth"
></el-table-column>
<el-table-column
align=
"center"
type=
'selection'
:width=
"checkboxColWidth"
></el-table-column>
...
@@ -640,6 +640,14 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -640,6 +640,14 @@ export default class MainBase extends Vue implements ControlInterface {
*/
*/
public
isDisplay
:
boolean
=
true
;
public
isDisplay
:
boolean
=
true
;
/**
* 表格行编辑项校验错误提示信息
*
* @type {boolean}
* @memberof MainBase
*/
public
errorMessages
:
Array
<
any
>
=
[];
/**
/**
* 部件刷新
* 部件刷新
*
*
...
@@ -680,6 +688,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -680,6 +688,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
show
:
true
,
unit
:
'PX'
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
},
{
{
name
:
'app'
,
name
:
'app'
,
...
@@ -688,6 +697,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -688,6 +697,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
show
:
true
,
unit
:
'PX'
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
},
{
{
name
:
'handler'
,
name
:
'handler'
,
...
@@ -696,6 +706,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -696,6 +706,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
show
:
true
,
unit
:
'PX'
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
},
{
{
name
:
'cron'
,
name
:
'cron'
,
...
@@ -704,6 +715,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -704,6 +715,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
show
:
true
,
unit
:
'PX'
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
},
{
{
name
:
'last_time'
,
name
:
'last_time'
,
...
@@ -712,6 +724,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -712,6 +724,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
show
:
true
,
unit
:
'PX'
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
},
{
{
name
:
'next_time'
,
name
:
'next_time'
,
...
@@ -720,6 +733,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -720,6 +733,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
show
:
true
,
unit
:
'PX'
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
},
{
{
name
:
'status'
,
name
:
'status'
,
...
@@ -728,6 +742,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -728,6 +742,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
show
:
true
,
unit
:
'PX'
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
},
{
{
name
:
'timeout'
,
name
:
'timeout'
,
...
@@ -736,6 +751,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -736,6 +751,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
show
:
true
,
unit
:
'PX'
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
},
{
{
name
:
'update_time'
,
name
:
'update_time'
,
...
@@ -744,6 +760,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -744,6 +760,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
show
:
true
,
unit
:
'PX'
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
},
]
]
...
@@ -854,6 +871,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -854,6 +871,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @memberof MainBase
* @memberof MainBase
*/
*/
public
async
validateAll
(){
public
async
validateAll
(){
this
.
errorMessages
=
[];
let
validateState
=
true
;
let
validateState
=
true
;
let
index
=
-
1
;
let
index
=
-
1
;
for
(
let
item
of
this
.
items
){
for
(
let
item
of
this
.
items
){
...
@@ -862,6 +880,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -862,6 +880,7 @@ export default class MainBase extends Vue implements ControlInterface {
for
(
let
property
of
Object
.
keys
(
this
.
rules
)){
for
(
let
property
of
Object
.
keys
(
this
.
rules
)){
if
(
!
await
this
.
validate
(
property
,
item
,
index
)){
if
(
!
await
this
.
validate
(
property
,
item
,
index
)){
validateState
=
false
;
validateState
=
false
;
this
.
errorMessages
.
push
(
this
.
gridItemsModel
[
index
][
property
].
error
);
}
}
}
}
}
}
...
@@ -1229,7 +1248,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -1229,7 +1248,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @memberof MainBase
* @memberof MainBase
*/
*/
public
getCodelistValue
(
items
:
any
[],
value
:
any
,
codelist
:
any
,){
public
getCodelistValue
(
items
:
any
[],
value
:
any
,
codelist
:
any
,){
if
(
!
value
){
if
(
!
value
&&
value
!==
0
&&
value
!==
false
){
return
this
.
$t
(
'codelist.'
+
codelist
.
srfkey
+
'.empty'
);
return
this
.
$t
(
'codelist.'
+
codelist
.
srfkey
+
'.empty'
);
}
}
if
(
items
)
{
if
(
items
)
{
...
@@ -1810,8 +1829,16 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -1810,8 +1829,16 @@ export default class MainBase extends Vue implements ControlInterface {
}
}
}
}
}
}
if
(
!
await
this
.
validateAll
()){
if
(
!
await
this
.
validateAll
())
{
if
(
this
.
errorMessages
&&
this
.
errorMessages
.
length
>
0
)
{
let
descMessage
:
string
=
''
;
this
.
errorMessages
.
forEach
((
message
:
any
)
=>
{
descMessage
=
descMessage
+
'<p>'
+
message
+
'<p>'
;
})
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
descMessage
});
}
else
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.commonWords.rulesException'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.commonWords.rulesException'
)
as
string
)
});
}
return
[];
return
[];
}
}
let
successItems
:
any
=
[];
let
successItems
:
any
=
[];
...
@@ -1951,9 +1978,11 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -1951,9 +1978,11 @@ export default class MainBase extends Vue implements ControlInterface {
if
(
!
mode
||
(
mode
&&
Object
.
is
(
mode
,
''
)))
{
if
(
!
mode
||
(
mode
&&
Object
.
is
(
mode
,
''
)))
{
return
;
return
;
}
}
let
tempContext
:
any
=
this
.
$util
.
deepCopy
(
this
.
context
);
Object
.
is
(
tempContext
,
{
jobsinfo
:
data
.
id
});
const
arg
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
const
arg
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
Object
.
assign
(
arg
,{
viewparams
:
this
.
viewparams
});
Object
.
assign
(
arg
,{
viewparams
:
this
.
viewparams
});
const
post
:
Promise
<
any
>
=
this
.
service
.
frontLogic
(
mode
,
JSON
.
parse
(
JSON
.
stringify
(
t
his
.
c
ontext
)),
arg
,
showloading
);
const
post
:
Promise
<
any
>
=
this
.
service
.
frontLogic
(
mode
,
JSON
.
parse
(
JSON
.
stringify
(
t
empC
ontext
)),
arg
,
showloading
);
post
.
then
((
response
:
any
)
=>
{
post
.
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
if
(
!
response
||
response
.
status
!==
200
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.gridpage.formitemFailed'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.gridpage.formitemFailed'
)
as
string
)
});
...
@@ -2194,6 +2223,24 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -2194,6 +2223,24 @@ export default class MainBase extends Vue implements ControlInterface {
})
})
}
}
/**
* 获取表格列禁用状态
*
* @memberof MainBase
*/
public
getColumnDisabled
(
data
:
any
,
name
:
string
){
if
(
this
.
allColumns
||
Array
.
isArray
(
this
.
allColumns
)){
const
curColumn
:
any
=
this
.
allColumns
.
find
((
item
:
any
)
=>
{
return
item
.
name
===
name
;
})
if
(
curColumn
.
hasOwnProperty
(
'enableCond'
)){
return
data
.
srfuf
==
1
?
(
curColumn
.
enableCond
&
2
)
!==
2
:
(
curColumn
.
enableCond
&
1
)
!==
1
}
else
{
return
false
;
}
}
}
}
}
</
script
>
</
script
>
...
...
app_web/src/widgets/jobs-info/main-grid/main-grid-service.ts
浏览文件 @
100e2a1a
...
@@ -216,7 +216,7 @@ export default class MainService extends ControlService {
...
@@ -216,7 +216,7 @@ export default class MainService extends ControlService {
result
.
then
((
response
)
=>
{
result
.
then
((
response
)
=>
{
//处理返回数据,补充判断标识
//处理返回数据,补充判断标识
if
(
response
.
data
){
if
(
response
.
data
){
Object
.
assign
(
response
.
data
,{
srfuf
:
0
});
Object
.
assign
(
response
.
data
,{
srfuf
:
'0'
});
}
}
resolve
(
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
}).
catch
(
response
=>
{
...
@@ -347,7 +347,7 @@ export default class MainService extends ControlService {
...
@@ -347,7 +347,7 @@ export default class MainService extends ControlService {
requestData
[
item
.
prop
]
=
context
[
item
.
name
];
requestData
[
item
.
prop
]
=
context
[
item
.
name
];
}
}
}
else
{
}
else
{
if
(
item
&&
item
.
isEditable
&&
item
.
prop
&&
item
.
name
&&
(
data
[
item
.
name
]
||
Object
.
is
(
data
[
item
.
name
],
0
)
||
Object
.
is
(
data
[
item
.
name
],
""
))
){
if
(
item
&&
item
.
isEditable
&&
item
.
prop
&&
item
.
name
&&
data
.
hasOwnProperty
(
item
.
name
)
){
requestData
[
item
.
prop
]
=
data
[
item
.
name
];
requestData
[
item
.
prop
]
=
data
[
item
.
name
];
}
}
}
}
...
...
app_web/src/widgets/jobs-log/main-grid/main-grid-base.vue
浏览文件 @
100e2a1a
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
@row-dblclick="rowDBLClick($event)"
@row-dblclick="rowDBLClick($event)"
ref='multipleTable' :data="items" :show-header="!isHideHeader">
ref='multipleTable' :data="items" :show-header="!isHideHeader">
<template
slot=
"empty"
>
<template
slot=
"empty"
>
{{
$t
(
'
app.gridpage.noD
ata'
)
}}
{{
$t
(
'
entities.jobslog.main_grid.nod
ata'
)
}}
</
template
>
</
template
>
<
template
v-if=
"!isSingleSelect"
>
<
template
v-if=
"!isSingleSelect"
>
<el-table-column
align=
"center"
type=
'selection'
:width=
"checkboxColWidth"
></el-table-column>
<el-table-column
align=
"center"
type=
'selection'
:width=
"checkboxColWidth"
></el-table-column>
...
@@ -626,6 +626,14 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -626,6 +626,14 @@ export default class MainBase extends Vue implements ControlInterface {
*/
*/
public
isDisplay
:
boolean
=
true
;
public
isDisplay
:
boolean
=
true
;
/**
* 表格行编辑项校验错误提示信息
*
* @type {boolean}
* @memberof MainBase
*/
public
errorMessages
:
Array
<
any
>
=
[];
/**
/**
* 部件刷新
* 部件刷新
*
*
...
@@ -666,6 +674,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -666,6 +674,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
show
:
true
,
unit
:
'PX'
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
},
{
{
name
:
'job_id'
,
name
:
'job_id'
,
...
@@ -674,6 +683,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -674,6 +683,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
show
:
true
,
unit
:
'PX'
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
},
{
{
name
:
'handler'
,
name
:
'handler'
,
...
@@ -682,6 +692,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -682,6 +692,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
show
:
true
,
unit
:
'PX'
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
},
{
{
name
:
'address'
,
name
:
'address'
,
...
@@ -690,6 +701,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -690,6 +701,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
show
:
true
,
unit
:
'PX'
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
},
{
{
name
:
'trigger_code'
,
name
:
'trigger_code'
,
...
@@ -698,6 +710,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -698,6 +710,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
show
:
true
,
unit
:
'PX'
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
},
{
{
name
:
'trigger_type'
,
name
:
'trigger_type'
,
...
@@ -706,6 +719,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -706,6 +719,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
show
:
true
,
unit
:
'PX'
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
},
{
{
name
:
'fail_retry_count'
,
name
:
'fail_retry_count'
,
...
@@ -714,6 +728,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -714,6 +728,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
show
:
true
,
unit
:
'PX'
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
},
{
{
name
:
'create_time'
,
name
:
'create_time'
,
...
@@ -722,6 +737,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -722,6 +737,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
show
:
true
,
unit
:
'PX'
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
},
]
]
...
@@ -832,6 +848,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -832,6 +848,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @memberof MainBase
* @memberof MainBase
*/
*/
public
async
validateAll
(){
public
async
validateAll
(){
this
.
errorMessages
=
[];
let
validateState
=
true
;
let
validateState
=
true
;
let
index
=
-
1
;
let
index
=
-
1
;
for
(
let
item
of
this
.
items
){
for
(
let
item
of
this
.
items
){
...
@@ -840,6 +857,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -840,6 +857,7 @@ export default class MainBase extends Vue implements ControlInterface {
for
(
let
property
of
Object
.
keys
(
this
.
rules
)){
for
(
let
property
of
Object
.
keys
(
this
.
rules
)){
if
(
!
await
this
.
validate
(
property
,
item
,
index
)){
if
(
!
await
this
.
validate
(
property
,
item
,
index
)){
validateState
=
false
;
validateState
=
false
;
this
.
errorMessages
.
push
(
this
.
gridItemsModel
[
index
][
property
].
error
);
}
}
}
}
}
}
...
@@ -1199,7 +1217,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -1199,7 +1217,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @memberof MainBase
* @memberof MainBase
*/
*/
public
getCodelistValue
(
items
:
any
[],
value
:
any
,
codelist
:
any
,){
public
getCodelistValue
(
items
:
any
[],
value
:
any
,
codelist
:
any
,){
if
(
!
value
){
if
(
!
value
&&
value
!==
0
&&
value
!==
false
){
return
this
.
$t
(
'codelist.'
+
codelist
.
srfkey
+
'.empty'
);
return
this
.
$t
(
'codelist.'
+
codelist
.
srfkey
+
'.empty'
);
}
}
if
(
items
)
{
if
(
items
)
{
...
@@ -1779,8 +1797,16 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -1779,8 +1797,16 @@ export default class MainBase extends Vue implements ControlInterface {
}
}
}
}
}
}
if
(
!
await
this
.
validateAll
()){
if
(
!
await
this
.
validateAll
())
{
if
(
this
.
errorMessages
&&
this
.
errorMessages
.
length
>
0
)
{
let
descMessage
:
string
=
''
;
this
.
errorMessages
.
forEach
((
message
:
any
)
=>
{
descMessage
=
descMessage
+
'<p>'
+
message
+
'<p>'
;
})
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
descMessage
});
}
else
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.commonWords.rulesException'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.commonWords.rulesException'
)
as
string
)
});
}
return
[];
return
[];
}
}
let
successItems
:
any
=
[];
let
successItems
:
any
=
[];
...
@@ -1920,9 +1946,11 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -1920,9 +1946,11 @@ export default class MainBase extends Vue implements ControlInterface {
if
(
!
mode
||
(
mode
&&
Object
.
is
(
mode
,
''
)))
{
if
(
!
mode
||
(
mode
&&
Object
.
is
(
mode
,
''
)))
{
return
;
return
;
}
}
let
tempContext
:
any
=
this
.
$util
.
deepCopy
(
this
.
context
);
Object
.
is
(
tempContext
,
{
jobslog
:
data
.
id
});
const
arg
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
const
arg
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
Object
.
assign
(
arg
,{
viewparams
:
this
.
viewparams
});
Object
.
assign
(
arg
,{
viewparams
:
this
.
viewparams
});
const
post
:
Promise
<
any
>
=
this
.
service
.
frontLogic
(
mode
,
JSON
.
parse
(
JSON
.
stringify
(
t
his
.
c
ontext
)),
arg
,
showloading
);
const
post
:
Promise
<
any
>
=
this
.
service
.
frontLogic
(
mode
,
JSON
.
parse
(
JSON
.
stringify
(
t
empC
ontext
)),
arg
,
showloading
);
post
.
then
((
response
:
any
)
=>
{
post
.
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
if
(
!
response
||
response
.
status
!==
200
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.gridpage.formitemFailed'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.gridpage.formitemFailed'
)
as
string
)
});
...
@@ -2163,6 +2191,24 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -2163,6 +2191,24 @@ export default class MainBase extends Vue implements ControlInterface {
})
})
}
}
/**
* 获取表格列禁用状态
*
* @memberof MainBase
*/
public
getColumnDisabled
(
data
:
any
,
name
:
string
){
if
(
this
.
allColumns
||
Array
.
isArray
(
this
.
allColumns
)){
const
curColumn
:
any
=
this
.
allColumns
.
find
((
item
:
any
)
=>
{
return
item
.
name
===
name
;
})
if
(
curColumn
.
hasOwnProperty
(
'enableCond'
)){
return
data
.
srfuf
==
1
?
(
curColumn
.
enableCond
&
2
)
!==
2
:
(
curColumn
.
enableCond
&
1
)
!==
1
}
else
{
return
false
;
}
}
}
}
}
</
script
>
</
script
>
...
...
app_web/src/widgets/jobs-log/main-grid/main-grid-service.ts
浏览文件 @
100e2a1a
...
@@ -216,7 +216,7 @@ export default class MainService extends ControlService {
...
@@ -216,7 +216,7 @@ export default class MainService extends ControlService {
result
.
then
((
response
)
=>
{
result
.
then
((
response
)
=>
{
//处理返回数据,补充判断标识
//处理返回数据,补充判断标识
if
(
response
.
data
){
if
(
response
.
data
){
Object
.
assign
(
response
.
data
,{
srfuf
:
0
});
Object
.
assign
(
response
.
data
,{
srfuf
:
'0'
});
}
}
resolve
(
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
}).
catch
(
response
=>
{
...
@@ -347,7 +347,7 @@ export default class MainService extends ControlService {
...
@@ -347,7 +347,7 @@ export default class MainService extends ControlService {
requestData
[
item
.
prop
]
=
context
[
item
.
name
];
requestData
[
item
.
prop
]
=
context
[
item
.
name
];
}
}
}
else
{
}
else
{
if
(
item
&&
item
.
isEditable
&&
item
.
prop
&&
item
.
name
&&
(
data
[
item
.
name
]
||
Object
.
is
(
data
[
item
.
name
],
0
)
||
Object
.
is
(
data
[
item
.
name
],
""
))
){
if
(
item
&&
item
.
isEditable
&&
item
.
prop
&&
item
.
name
&&
data
.
hasOwnProperty
(
item
.
name
)
){
requestData
[
item
.
prop
]
=
data
[
item
.
name
];
requestData
[
item
.
prop
]
=
data
[
item
.
name
];
}
}
}
}
...
...
app_web/src/widgets/jobs-registry/main-grid/main-grid-base.vue
浏览文件 @
100e2a1a
...
@@ -16,7 +16,7 @@
...
@@ -16,7 +16,7 @@
@row-dblclick="rowDBLClick($event)"
@row-dblclick="rowDBLClick($event)"
ref='multipleTable' :data="items" :show-header="!isHideHeader">
ref='multipleTable' :data="items" :show-header="!isHideHeader">
<template
slot=
"empty"
>
<template
slot=
"empty"
>
{{
$t
(
'
app.gridpage.noD
ata'
)
}}
{{
$t
(
'
entities.jobsregistry.main_grid.nod
ata'
)
}}
</
template
>
</
template
>
<
template
v-if=
"!isSingleSelect"
>
<
template
v-if=
"!isSingleSelect"
>
<el-table-column
align=
"center"
type=
'selection'
:width=
"checkboxColWidth"
></el-table-column>
<el-table-column
align=
"center"
type=
'selection'
:width=
"checkboxColWidth"
></el-table-column>
...
@@ -580,6 +580,14 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -580,6 +580,14 @@ export default class MainBase extends Vue implements ControlInterface {
*/
*/
public
isDisplay
:
boolean
=
true
;
public
isDisplay
:
boolean
=
true
;
/**
* 表格行编辑项校验错误提示信息
*
* @type {boolean}
* @memberof MainBase
*/
public
errorMessages
:
Array
<
any
>
=
[];
/**
/**
* 部件刷新
* 部件刷新
*
*
...
@@ -620,6 +628,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -620,6 +628,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
show
:
true
,
unit
:
'PX'
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
},
{
{
name
:
'app'
,
name
:
'app'
,
...
@@ -628,6 +637,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -628,6 +637,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
show
:
true
,
unit
:
'PX'
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
},
{
{
name
:
'address'
,
name
:
'address'
,
...
@@ -636,6 +646,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -636,6 +646,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
show
:
true
,
unit
:
'PX'
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
},
{
{
name
:
'status'
,
name
:
'status'
,
...
@@ -644,6 +655,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -644,6 +655,7 @@ export default class MainBase extends Vue implements ControlInterface {
show
:
true
,
show
:
true
,
unit
:
'PX'
,
unit
:
'PX'
,
isEnableRowEdit
:
false
,
isEnableRowEdit
:
false
,
enableCond
:
3
,
},
},
]
]
...
@@ -754,6 +766,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -754,6 +766,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @memberof MainBase
* @memberof MainBase
*/
*/
public
async
validateAll
(){
public
async
validateAll
(){
this
.
errorMessages
=
[];
let
validateState
=
true
;
let
validateState
=
true
;
let
index
=
-
1
;
let
index
=
-
1
;
for
(
let
item
of
this
.
items
){
for
(
let
item
of
this
.
items
){
...
@@ -762,6 +775,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -762,6 +775,7 @@ export default class MainBase extends Vue implements ControlInterface {
for
(
let
property
of
Object
.
keys
(
this
.
rules
)){
for
(
let
property
of
Object
.
keys
(
this
.
rules
)){
if
(
!
await
this
.
validate
(
property
,
item
,
index
)){
if
(
!
await
this
.
validate
(
property
,
item
,
index
)){
validateState
=
false
;
validateState
=
false
;
this
.
errorMessages
.
push
(
this
.
gridItemsModel
[
index
][
property
].
error
);
}
}
}
}
}
}
...
@@ -1129,7 +1143,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -1129,7 +1143,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @memberof MainBase
* @memberof MainBase
*/
*/
public
getCodelistValue
(
items
:
any
[],
value
:
any
,
codelist
:
any
,){
public
getCodelistValue
(
items
:
any
[],
value
:
any
,
codelist
:
any
,){
if
(
!
value
){
if
(
!
value
&&
value
!==
0
&&
value
!==
false
){
return
this
.
$t
(
'codelist.'
+
codelist
.
srfkey
+
'.empty'
);
return
this
.
$t
(
'codelist.'
+
codelist
.
srfkey
+
'.empty'
);
}
}
if
(
items
)
{
if
(
items
)
{
...
@@ -1705,8 +1719,16 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -1705,8 +1719,16 @@ export default class MainBase extends Vue implements ControlInterface {
}
}
}
}
}
}
if
(
!
await
this
.
validateAll
()){
if
(
!
await
this
.
validateAll
())
{
if
(
this
.
errorMessages
&&
this
.
errorMessages
.
length
>
0
)
{
let
descMessage
:
string
=
''
;
this
.
errorMessages
.
forEach
((
message
:
any
)
=>
{
descMessage
=
descMessage
+
'<p>'
+
message
+
'<p>'
;
})
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
descMessage
});
}
else
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.commonWords.rulesException'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.commonWords.rulesException'
)
as
string
)
});
}
return
[];
return
[];
}
}
let
successItems
:
any
=
[];
let
successItems
:
any
=
[];
...
@@ -1846,9 +1868,11 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -1846,9 +1868,11 @@ export default class MainBase extends Vue implements ControlInterface {
if
(
!
mode
||
(
mode
&&
Object
.
is
(
mode
,
''
)))
{
if
(
!
mode
||
(
mode
&&
Object
.
is
(
mode
,
''
)))
{
return
;
return
;
}
}
let
tempContext
:
any
=
this
.
$util
.
deepCopy
(
this
.
context
);
Object
.
is
(
tempContext
,
{
jobsregistry
:
data
.
id
});
const
arg
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
const
arg
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
data
));
Object
.
assign
(
arg
,{
viewparams
:
this
.
viewparams
});
Object
.
assign
(
arg
,{
viewparams
:
this
.
viewparams
});
const
post
:
Promise
<
any
>
=
this
.
service
.
frontLogic
(
mode
,
JSON
.
parse
(
JSON
.
stringify
(
t
his
.
c
ontext
)),
arg
,
showloading
);
const
post
:
Promise
<
any
>
=
this
.
service
.
frontLogic
(
mode
,
JSON
.
parse
(
JSON
.
stringify
(
t
empC
ontext
)),
arg
,
showloading
);
post
.
then
((
response
:
any
)
=>
{
post
.
then
((
response
:
any
)
=>
{
if
(
!
response
||
response
.
status
!==
200
)
{
if
(
!
response
||
response
.
status
!==
200
)
{
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.gridpage.formitemFailed'
)
as
string
)
});
this
.
$Notice
.
error
({
title
:
(
this
.
$t
(
'app.commonWords.wrong'
)
as
string
),
desc
:
(
this
.
$t
(
'app.gridpage.formitemFailed'
)
as
string
)
});
...
@@ -2089,6 +2113,24 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -2089,6 +2113,24 @@ export default class MainBase extends Vue implements ControlInterface {
})
})
}
}
/**
* 获取表格列禁用状态
*
* @memberof MainBase
*/
public
getColumnDisabled
(
data
:
any
,
name
:
string
){
if
(
this
.
allColumns
||
Array
.
isArray
(
this
.
allColumns
)){
const
curColumn
:
any
=
this
.
allColumns
.
find
((
item
:
any
)
=>
{
return
item
.
name
===
name
;
})
if
(
curColumn
.
hasOwnProperty
(
'enableCond'
)){
return
data
.
srfuf
==
1
?
(
curColumn
.
enableCond
&
2
)
!==
2
:
(
curColumn
.
enableCond
&
1
)
!==
1
}
else
{
return
false
;
}
}
}
}
}
</
script
>
</
script
>
...
...
app_web/src/widgets/jobs-registry/main-grid/main-grid-service.ts
浏览文件 @
100e2a1a
...
@@ -216,7 +216,7 @@ export default class MainService extends ControlService {
...
@@ -216,7 +216,7 @@ export default class MainService extends ControlService {
result
.
then
((
response
)
=>
{
result
.
then
((
response
)
=>
{
//处理返回数据,补充判断标识
//处理返回数据,补充判断标识
if
(
response
.
data
){
if
(
response
.
data
){
Object
.
assign
(
response
.
data
,{
srfuf
:
0
});
Object
.
assign
(
response
.
data
,{
srfuf
:
'0'
});
}
}
resolve
(
response
);
resolve
(
response
);
}).
catch
(
response
=>
{
}).
catch
(
response
=>
{
...
@@ -347,7 +347,7 @@ export default class MainService extends ControlService {
...
@@ -347,7 +347,7 @@ export default class MainService extends ControlService {
requestData
[
item
.
prop
]
=
context
[
item
.
name
];
requestData
[
item
.
prop
]
=
context
[
item
.
name
];
}
}
}
else
{
}
else
{
if
(
item
&&
item
.
isEditable
&&
item
.
prop
&&
item
.
name
&&
(
data
[
item
.
name
]
||
Object
.
is
(
data
[
item
.
name
],
0
)
||
Object
.
is
(
data
[
item
.
name
],
""
))
){
if
(
item
&&
item
.
isEditable
&&
item
.
prop
&&
item
.
name
&&
data
.
hasOwnProperty
(
item
.
name
)
){
requestData
[
item
.
prop
]
=
data
[
item
.
name
];
requestData
[
item
.
prop
]
=
data
[
item
.
name
];
}
}
}
}
...
...
ibztask-boot/src/main/resources/application-dev.yml
浏览文件 @
100e2a1a
ibztask-core/src/main/java/cn/ibizlab/core/task/service/IJobsInfoService.java
浏览文件 @
100e2a1a
...
@@ -18,7 +18,6 @@ import org.springframework.cache.annotation.CacheEvict;
...
@@ -18,7 +18,6 @@ import org.springframework.cache.annotation.CacheEvict;
import
cn.ibizlab.core.task.domain.JobsInfo
;
import
cn.ibizlab.core.task.domain.JobsInfo
;
import
cn.ibizlab.core.task.filter.JobsInfoSearchContext
;
import
cn.ibizlab.core.task.filter.JobsInfoSearchContext
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.baomidou.mybatisplus.extension.service.IService
;
/**
/**
...
...
ibztask-core/src/main/java/cn/ibizlab/core/task/service/IJobsLockService.java
浏览文件 @
100e2a1a
...
@@ -18,7 +18,6 @@ import org.springframework.cache.annotation.CacheEvict;
...
@@ -18,7 +18,6 @@ import org.springframework.cache.annotation.CacheEvict;
import
cn.ibizlab.core.task.domain.JobsLock
;
import
cn.ibizlab.core.task.domain.JobsLock
;
import
cn.ibizlab.core.task.filter.JobsLockSearchContext
;
import
cn.ibizlab.core.task.filter.JobsLockSearchContext
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.baomidou.mybatisplus.extension.service.IService
;
/**
/**
...
...
ibztask-core/src/main/java/cn/ibizlab/core/task/service/IJobsLogService.java
浏览文件 @
100e2a1a
...
@@ -18,7 +18,6 @@ import org.springframework.cache.annotation.CacheEvict;
...
@@ -18,7 +18,6 @@ import org.springframework.cache.annotation.CacheEvict;
import
cn.ibizlab.core.task.domain.JobsLog
;
import
cn.ibizlab.core.task.domain.JobsLog
;
import
cn.ibizlab.core.task.filter.JobsLogSearchContext
;
import
cn.ibizlab.core.task.filter.JobsLogSearchContext
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.baomidou.mybatisplus.extension.service.IService
;
/**
/**
...
...
ibztask-core/src/main/java/cn/ibizlab/core/task/service/IJobsRegistryService.java
浏览文件 @
100e2a1a
...
@@ -18,7 +18,6 @@ import org.springframework.cache.annotation.CacheEvict;
...
@@ -18,7 +18,6 @@ import org.springframework.cache.annotation.CacheEvict;
import
cn.ibizlab.core.task.domain.JobsRegistry
;
import
cn.ibizlab.core.task.domain.JobsRegistry
;
import
cn.ibizlab.core.task.filter.JobsRegistrySearchContext
;
import
cn.ibizlab.core.task.filter.JobsRegistrySearchContext
;
import
com.baomidou.mybatisplus.extension.service.IService
;
import
com.baomidou.mybatisplus.extension.service.IService
;
/**
/**
...
...
ibztask-core/src/main/java/cn/ibizlab/core/task/service/impl/JobsInfoServiceImpl.java
浏览文件 @
100e2a1a
...
@@ -215,6 +215,7 @@ public class JobsInfoServiceImpl extends ServiceImpl<JobsInfoMapper, JobsInfo> i
...
@@ -215,6 +215,7 @@ public class JobsInfoServiceImpl extends ServiceImpl<JobsInfoMapper, JobsInfo> i
}
}
...
...
ibztask-core/src/main/java/cn/ibizlab/core/task/service/impl/JobsLockServiceImpl.java
浏览文件 @
100e2a1a
...
@@ -191,6 +191,7 @@ public class JobsLockServiceImpl extends ServiceImpl<JobsLockMapper, JobsLock> i
...
@@ -191,6 +191,7 @@ public class JobsLockServiceImpl extends ServiceImpl<JobsLockMapper, JobsLock> i
}
}
...
...
ibztask-core/src/main/java/cn/ibizlab/core/task/service/impl/JobsLogServiceImpl.java
浏览文件 @
100e2a1a
...
@@ -191,6 +191,7 @@ public class JobsLogServiceImpl extends ServiceImpl<JobsLogMapper, JobsLog> impl
...
@@ -191,6 +191,7 @@ public class JobsLogServiceImpl extends ServiceImpl<JobsLogMapper, JobsLog> impl
}
}
...
...
ibztask-core/src/main/java/cn/ibizlab/core/task/service/impl/JobsRegistryServiceImpl.java
浏览文件 @
100e2a1a
...
@@ -191,6 +191,7 @@ public class JobsRegistryServiceImpl extends ServiceImpl<JobsRegistryMapper, Job
...
@@ -191,6 +191,7 @@ public class JobsRegistryServiceImpl extends ServiceImpl<JobsRegistryMapper, Job
}
}
...
...
ibztask-core/src/main/resources/sysmodel/ibztask.json
浏览文件 @
100e2a1a
...
@@ -21,6 +21,7 @@
...
@@ -21,6 +21,7 @@
"data_type"
:
"VARCHAR"
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_length"
:
100
,
"key_field"
:
1
,
"key_field"
:
1
,
"show_order"
:
1
,
"major_field"
:
0
"major_field"
:
0
},
},
{
{
...
@@ -34,6 +35,7 @@
...
@@ -34,6 +35,7 @@
"data_type"
:
"VARCHAR"
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_length"
:
100
,
"key_field"
:
0
,
"key_field"
:
0
,
"show_order"
:
2
,
"major_field"
:
0
"major_field"
:
0
},
},
{
{
...
@@ -47,6 +49,7 @@
...
@@ -47,6 +49,7 @@
"data_type"
:
"VARCHAR"
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_length"
:
100
,
"key_field"
:
0
,
"key_field"
:
0
,
"show_order"
:
3
,
"major_field"
:
0
"major_field"
:
0
},
},
{
{
...
@@ -60,6 +63,7 @@
...
@@ -60,6 +63,7 @@
"data_type"
:
"VARCHAR"
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_length"
:
100
,
"key_field"
:
0
,
"key_field"
:
0
,
"show_order"
:
4
,
"major_field"
:
0
"major_field"
:
0
},
},
{
{
...
@@ -73,6 +77,7 @@
...
@@ -73,6 +77,7 @@
"data_type"
:
"VARCHAR"
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
255
,
"data_length"
:
255
,
"key_field"
:
0
,
"key_field"
:
0
,
"show_order"
:
5
,
"major_field"
:
1
"major_field"
:
1
},
},
{
{
...
@@ -86,6 +91,7 @@
...
@@ -86,6 +91,7 @@
"data_type"
:
"VARCHAR"
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
512
,
"data_length"
:
512
,
"key_field"
:
0
,
"key_field"
:
0
,
"show_order"
:
6
,
"major_field"
:
0
"major_field"
:
0
},
},
{
{
...
@@ -98,6 +104,7 @@
...
@@ -98,6 +104,7 @@
"physical_field"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"INT"
,
"data_type"
:
"INT"
,
"key_field"
:
0
,
"key_field"
:
0
,
"show_order"
:
7
,
"major_field"
:
0
"major_field"
:
0
},
},
{
{
...
@@ -110,6 +117,7 @@
...
@@ -110,6 +117,7 @@
"physical_field"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"INT"
,
"data_type"
:
"INT"
,
"key_field"
:
0
,
"key_field"
:
0
,
"show_order"
:
8
,
"major_field"
:
0
"major_field"
:
0
},
},
{
{
...
@@ -122,6 +130,7 @@
...
@@ -122,6 +130,7 @@
"physical_field"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"BIGINT"
,
"data_type"
:
"BIGINT"
,
"key_field"
:
0
,
"key_field"
:
0
,
"show_order"
:
9
,
"major_field"
:
0
"major_field"
:
0
},
},
{
{
...
@@ -134,6 +143,7 @@
...
@@ -134,6 +143,7 @@
"physical_field"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"BIGINT"
,
"data_type"
:
"BIGINT"
,
"key_field"
:
0
,
"key_field"
:
0
,
"show_order"
:
10
,
"major_field"
:
0
"major_field"
:
0
},
},
{
{
...
@@ -147,6 +157,7 @@
...
@@ -147,6 +157,7 @@
"data_type"
:
"VARCHAR"
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
30
,
"data_length"
:
30
,
"key_field"
:
0
,
"key_field"
:
0
,
"show_order"
:
11
,
"major_field"
:
0
"major_field"
:
0
},
},
{
{
...
@@ -160,6 +171,7 @@
...
@@ -160,6 +171,7 @@
"data_type"
:
"VARCHAR"
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
30
,
"data_length"
:
30
,
"key_field"
:
0
,
"key_field"
:
0
,
"show_order"
:
12
,
"major_field"
:
0
"major_field"
:
0
},
},
{
{
...
@@ -173,6 +185,7 @@
...
@@ -173,6 +185,7 @@
"physical_field"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"INT"
,
"data_type"
:
"INT"
,
"key_field"
:
0
,
"key_field"
:
0
,
"show_order"
:
13
,
"major_field"
:
0
"major_field"
:
0
},
},
{
{
...
@@ -185,6 +198,7 @@
...
@@ -185,6 +198,7 @@
"physical_field"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"DATETIME"
,
"data_type"
:
"DATETIME"
,
"key_field"
:
0
,
"key_field"
:
0
,
"show_order"
:
21
,
"major_field"
:
0
"major_field"
:
0
},
},
{
{
...
@@ -198,6 +212,7 @@
...
@@ -198,6 +212,7 @@
"data_type"
:
"DATETIME"
,
"data_type"
:
"DATETIME"
,
"predefined"
:
"CREATEDATE"
,
"predefined"
:
"CREATEDATE"
,
"key_field"
:
0
,
"key_field"
:
0
,
"show_order"
:
22
,
"major_field"
:
0
"major_field"
:
0
}
}
],
],
...
@@ -226,6 +241,7 @@
...
@@ -226,6 +241,7 @@
"data_type"
:
"VARCHAR"
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_length"
:
100
,
"key_field"
:
1
,
"key_field"
:
1
,
"show_order"
:
1
,
"major_field"
:
0
"major_field"
:
0
},
},
{
{
...
@@ -239,6 +255,7 @@
...
@@ -239,6 +255,7 @@
"data_type"
:
"VARCHAR"
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
30
,
"data_length"
:
30
,
"key_field"
:
0
,
"key_field"
:
0
,
"show_order"
:
2
,
"major_field"
:
1
"major_field"
:
1
},
},
{
{
...
@@ -252,6 +269,7 @@
...
@@ -252,6 +269,7 @@
"data_type"
:
"VARCHAR"
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_length"
:
100
,
"key_field"
:
0
,
"key_field"
:
0
,
"show_order"
:
3
,
"major_field"
:
0
"major_field"
:
0
},
},
{
{
...
@@ -264,6 +282,7 @@
...
@@ -264,6 +282,7 @@
"physical_field"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"DATETIME"
,
"data_type"
:
"DATETIME"
,
"key_field"
:
0
,
"key_field"
:
0
,
"show_order"
:
22
,
"major_field"
:
0
"major_field"
:
0
}
}
],
],
...
@@ -292,6 +311,7 @@
...
@@ -292,6 +311,7 @@
"data_type"
:
"VARCHAR"
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_length"
:
100
,
"key_field"
:
1
,
"key_field"
:
1
,
"show_order"
:
1
,
"major_field"
:
0
"major_field"
:
0
},
},
{
{
...
@@ -305,6 +325,7 @@
...
@@ -305,6 +325,7 @@
"data_type"
:
"VARCHAR"
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_length"
:
100
,
"key_field"
:
0
,
"key_field"
:
0
,
"show_order"
:
2
,
"major_field"
:
0
"major_field"
:
0
},
},
{
{
...
@@ -318,6 +339,7 @@
...
@@ -318,6 +339,7 @@
"data_type"
:
"VARCHAR"
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
255
,
"data_length"
:
255
,
"key_field"
:
0
,
"key_field"
:
0
,
"show_order"
:
3
,
"major_field"
:
0
"major_field"
:
0
},
},
{
{
...
@@ -331,6 +353,7 @@
...
@@ -331,6 +353,7 @@
"data_type"
:
"VARCHAR"
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
255
,
"data_length"
:
255
,
"key_field"
:
0
,
"key_field"
:
0
,
"show_order"
:
5
,
"major_field"
:
1
"major_field"
:
1
},
},
{
{
...
@@ -344,6 +367,7 @@
...
@@ -344,6 +367,7 @@
"data_type"
:
"VARCHAR"
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
512
,
"data_length"
:
512
,
"key_field"
:
0
,
"key_field"
:
0
,
"show_order"
:
6
,
"major_field"
:
0
"major_field"
:
0
},
},
{
{
...
@@ -356,6 +380,7 @@
...
@@ -356,6 +380,7 @@
"physical_field"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"INT"
,
"data_type"
:
"INT"
,
"key_field"
:
0
,
"key_field"
:
0
,
"show_order"
:
8
,
"major_field"
:
0
"major_field"
:
0
},
},
{
{
...
@@ -368,6 +393,7 @@
...
@@ -368,6 +393,7 @@
"physical_field"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"INT"
,
"data_type"
:
"INT"
,
"key_field"
:
0
,
"key_field"
:
0
,
"show_order"
:
11
,
"major_field"
:
0
"major_field"
:
0
},
},
{
{
...
@@ -381,6 +407,7 @@
...
@@ -381,6 +407,7 @@
"data_type"
:
"VARCHAR"
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
30
,
"data_length"
:
30
,
"key_field"
:
0
,
"key_field"
:
0
,
"show_order"
:
12
,
"major_field"
:
0
"major_field"
:
0
},
},
{
{
...
@@ -394,6 +421,7 @@
...
@@ -394,6 +421,7 @@
"data_type"
:
"TEXT"
,
"data_type"
:
"TEXT"
,
"data_length"
:
1048576
,
"data_length"
:
1048576
,
"key_field"
:
0
,
"key_field"
:
0
,
"show_order"
:
13
,
"major_field"
:
0
"major_field"
:
0
},
},
{
{
...
@@ -406,6 +434,7 @@
...
@@ -406,6 +434,7 @@
"physical_field"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"DATETIME"
,
"data_type"
:
"DATETIME"
,
"key_field"
:
0
,
"key_field"
:
0
,
"show_order"
:
22
,
"major_field"
:
0
"major_field"
:
0
}
}
],
],
...
@@ -434,6 +463,7 @@
...
@@ -434,6 +463,7 @@
"data_type"
:
"VARCHAR"
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_length"
:
100
,
"key_field"
:
1
,
"key_field"
:
1
,
"show_order"
:
1
,
"major_field"
:
0
"major_field"
:
0
},
},
{
{
...
@@ -447,6 +477,7 @@
...
@@ -447,6 +477,7 @@
"data_type"
:
"VARCHAR"
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
100
,
"data_length"
:
100
,
"key_field"
:
0
,
"key_field"
:
0
,
"show_order"
:
3
,
"major_field"
:
1
"major_field"
:
1
},
},
{
{
...
@@ -460,6 +491,7 @@
...
@@ -460,6 +491,7 @@
"data_type"
:
"VARCHAR"
,
"data_type"
:
"VARCHAR"
,
"data_length"
:
255
,
"data_length"
:
255
,
"key_field"
:
0
,
"key_field"
:
0
,
"show_order"
:
4
,
"major_field"
:
0
"major_field"
:
0
},
},
{
{
...
@@ -473,6 +505,7 @@
...
@@ -473,6 +505,7 @@
"physical_field"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"INT"
,
"data_type"
:
"INT"
,
"key_field"
:
0
,
"key_field"
:
0
,
"show_order"
:
13
,
"major_field"
:
0
"major_field"
:
0
},
},
{
{
...
@@ -485,6 +518,7 @@
...
@@ -485,6 +518,7 @@
"physical_field"
:
1
,
"physical_field"
:
1
,
"data_type"
:
"DATETIME"
,
"data_type"
:
"DATETIME"
,
"key_field"
:
0
,
"key_field"
:
0
,
"show_order"
:
21
,
"major_field"
:
0
"major_field"
:
0
}
}
],
],
...
...
ibztask-dependencies/pom.xml
浏览文件 @
100e2a1a
...
@@ -233,12 +233,6 @@
...
@@ -233,12 +233,6 @@
<version>
${jsonwebtoken-jjwt.version}
</version>
<version>
${jsonwebtoken-jjwt.version}
</version>
</dependency>
</dependency>
<dependency>
<groupId>
com.alibaba
</groupId>
<artifactId>
druid-spring-boot-starter
</artifactId>
<version>
${alibaba-druid.version}
</version>
</dependency>
<dependency>
<dependency>
<groupId>
org.zalando
</groupId>
<groupId>
org.zalando
</groupId>
<artifactId>
problem-spring-web
</artifactId>
<artifactId>
problem-spring-web
</artifactId>
...
@@ -351,6 +345,8 @@
...
@@ -351,6 +345,8 @@
</dependency>
</dependency>
</dependencies>
</dependencies>
</project>
</project>
ibztask-util/src/main/java/cn/ibizlab/util/annotation/DEField.java
浏览文件 @
100e2a1a
...
@@ -2,6 +2,7 @@ package cn.ibizlab.util.annotation;
...
@@ -2,6 +2,7 @@ package cn.ibizlab.util.annotation;
import
cn.ibizlab.util.enums.DEFieldDefaultValueType
;
import
cn.ibizlab.util.enums.DEFieldDefaultValueType
;
import
cn.ibizlab.util.enums.DEPredefinedFieldType
;
import
cn.ibizlab.util.enums.DEPredefinedFieldType
;
import
cn.ibizlab.util.enums.DupCheck
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.ElementType
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.Retention
;
import
java.lang.annotation.RetentionPolicy
;
import
java.lang.annotation.RetentionPolicy
;
...
@@ -66,5 +67,14 @@ public @interface DEField
...
@@ -66,5 +67,14 @@ public @interface DEField
* @return
* @return
*/
*/
String
format
()
default
""
;
String
format
()
default
""
;
/**
* 重复性检查
* @return
*/
DupCheck
dupCheck
()
default
DupCheck
.
NONE
;
/**
* 范围属性
*/
String
dupCheckField
()
default
""
;
}
}
ibztask-util/src/main/java/cn/ibizlab/util/dict/StaticDict.java
0 → 100644
浏览文件 @
100e2a1a
此差异已折叠。
点击以展开。
ibztask-util/src/main/java/cn/ibizlab/util/domain/EntityClient.java
浏览文件 @
100e2a1a
...
@@ -6,9 +6,9 @@ public class EntityClient extends EntityBase {
...
@@ -6,9 +6,9 @@ public class EntityClient extends EntityBase {
@Override
@Override
public
void
modify
(
String
field
,
Object
val
)
{
public
void
modify
(
String
field
,
Object
val
)
{
getExtensionparams
().
put
(
"dirtyflagenable"
,
true
);
if
(
val
==
null
){
if
(
val
==
null
){
this
.
getFocusNull
().
add
(
field
.
toLowerCase
());
this
.
getFocusNull
().
add
(
field
.
toLowerCase
());
getExtensionparams
().
put
(
"dirtyflagenable"
,
true
);
getExtensionparams
().
put
(
field
.
toLowerCase
()+
"dirtyflag"
,
true
);
getExtensionparams
().
put
(
field
.
toLowerCase
()+
"dirtyflag"
,
true
);
}
}
else
{
else
{
...
...
ibztask-util/src/main/java/cn/ibizlab/util/enums/DupCheck.java
0 → 100644
浏览文件 @
100e2a1a
package
cn
.
ibizlab
.
util
.
enums
;
/**
* 属性重复值检查
*/
public
enum
DupCheck
{
/**
* 不检查
*/
NONE
,
/**
* 全部检查
*/
ALL
,
/**
* 非空检查
*/
NOTNULL
,
/**
* 指定范围检查
*/
RANGE
,
}
ibztask-util/src/main/java/cn/ibizlab/util/errors/ExceptionTranslator.java
浏览文件 @
100e2a1a
package
cn
.
ibizlab
.
util
.
errors
;
package
cn
.
ibizlab
.
util
.
errors
;
import
org.springframework.dao.
ConcurrencyFailureException
;
import
org.springframework.dao.
*
;
import
org.springframework.http.HttpHeaders
;
import
org.springframework.http.HttpHeaders
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.http.ResponseEntity
;
import
org.springframework.validation.BindingResult
;
import
org.springframework.validation.BindingResult
;
...
@@ -90,9 +90,18 @@ public class ExceptionTranslator implements ProblemHandling {
...
@@ -90,9 +90,18 @@ public class ExceptionTranslator implements ProblemHandling {
return
create
(
ex
,
problem
,
request
);
return
create
(
ex
,
problem
,
request
);
}
}
@ExceptionHandler
(
DataAccessException
.
class
)
public
ResponseEntity
<
Problem
>
handlerDataAccessFailure
(
DataAccessException
ex
,
NativeWebRequest
request
){
Problem
problem
=
Problem
.
builder
()
.
withStatus
(
Status
.
INTERNAL_SERVER_ERROR
)
.
with
(
"message"
,
ex
.
getMessage
())
.
build
();
return
create
(
ex
,
problem
,
request
,
createFailureAlert
(
ex
.
getClass
().
getSimpleName
(),
ex
.
getClass
().
getSimpleName
(),
ex
.
getMessage
()));
}
public
static
HttpHeaders
createFailureAlert
(
String
entityName
,
String
errorKey
,
String
defaultMessage
)
{
public
static
HttpHeaders
createFailureAlert
(
String
entityName
,
String
errorKey
,
String
defaultMessage
)
{
HttpHeaders
headers
=
new
HttpHeaders
();
HttpHeaders
headers
=
new
HttpHeaders
();
headers
.
add
(
"X-ibz-error"
,
"error."
+
errorKey
);
headers
.
add
(
"X-ibz-error"
,
errorKey
);
headers
.
add
(
"X-ibz-params"
,
entityName
);
headers
.
add
(
"X-ibz-params"
,
entityName
);
return
headers
;
return
headers
;
}
}
...
...
ibztask-util/src/main/java/cn/ibizlab/util/job/PermissionSyncJob.java
浏览文件 @
100e2a1a
...
@@ -41,6 +41,7 @@ public class PermissionSyncJob implements ApplicationRunner {
...
@@ -41,6 +41,7 @@ public class PermissionSyncJob implements ApplicationRunner {
@Lazy
@Lazy
IBZLiteFeignClient
liteFeignClient
;
IBZLiteFeignClient
liteFeignClient
;
@Override
@Override
public
void
run
(
ApplicationArguments
args
)
{
public
void
run
(
ApplicationArguments
args
)
{
try
{
try
{
...
@@ -76,5 +77,6 @@ public class PermissionSyncJob implements ApplicationRunner {
...
@@ -76,5 +77,6 @@ public class PermissionSyncJob implements ApplicationRunner {
}
}
}
}
}
}
\ No newline at end of file
ibztask-util/src/main/java/cn/ibizlab/util/rest/AppController.java
浏览文件 @
100e2a1a
...
@@ -59,6 +59,7 @@ public class AppController {
...
@@ -59,6 +59,7 @@ public class AppController {
appData
.
put
(
"enablepermissionvalid"
,
false
);
appData
.
put
(
"enablepermissionvalid"
,
false
);
else
else
appData
.
put
(
"enablepermissionvalid"
,
enablePermissionValid
);
appData
.
put
(
"enablepermissionvalid"
,
enablePermissionValid
);
fillAppData
(
appData
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
appData
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
appData
);
}
}
...
@@ -87,4 +88,12 @@ public class AppController {
...
@@ -87,4 +88,12 @@ public class AppController {
throw
new
BadRequestAlertException
(
"获取配置失败,参数缺失"
,
"IBZConfig"
,
configType
);
throw
new
BadRequestAlertException
(
"获取配置失败,参数缺失"
,
"IBZConfig"
,
configType
);
return
ResponseEntity
.
ok
(
ibzConfigService
.
getConfig
(
configType
,
targetType
,
userId
));
return
ResponseEntity
.
ok
(
ibzConfigService
.
getConfig
(
configType
,
targetType
,
userId
));
}
}
/**
* 应用参数扩展
* @param appData
*/
protected
void
fillAppData
(
JSONObject
appData
){
}
}
}
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录