Skip to content
项目
群组
代码片段
帮助
正在加载...
帮助
提交反馈
为 GitLab 提交贡献
登录
切换导航
I
ibztask
项目
项目
详情
动态
版本
周期分析
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
统计图
议题
0
议题
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
CI / CD
CI / CD
流水线
作业
计划
统计图
Wiki
Wiki
代码片段
代码片段
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
统计图
创建新议题
作业
提交
议题看板
打开侧边栏
ibiz4jteam
ibztask
提交
0b88be5e
提交
0b88be5e
编写于
6月 24, 2020
作者:
ibizdev
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
ibiz4j 发布系统代码
上级
1410da84
变更
28
隐藏空白字符变更
内嵌
并排
正在显示
28 个修改的文件
包含
90 行增加
和
100 行删除
+90
-100
package.json
app_web/package.json
+1
-1
app-register.ts
app_web/src/app-register.ts
+7
-5
app-department-select.vue
...omponents/app-department-select/app-department-select.vue
+0
-2
app-group-picker.vue
app_web/src/components/app-group-picker/app-group-picker.vue
+22
-25
app-group-select.vue
app_web/src/components/app-group-select/app-group-select.vue
+20
-20
app-org-select.vue
app_web/src/components/app-org-select/app-org-select.vue
+0
-2
jobs-info-edit-view-base.vue
...ges/task/jobs-info-edit-view/jobs-info-edit-view-base.vue
+1
-1
jobs-info-grid-view-base.vue
...ges/task/jobs-info-grid-view/jobs-info-grid-view-base.vue
+1
-1
jobs-log-edit-view-base.vue
...pages/task/jobs-log-edit-view/jobs-log-edit-view-base.vue
+1
-1
jobs-log-grid-view-base.vue
...pages/task/jobs-log-grid-view/jobs-log-grid-view-base.vue
+1
-1
jobs-registry-edit-view-base.vue
.../jobs-registry-edit-view/jobs-registry-edit-view-base.vue
+1
-1
jobs-registry-grid-view-base.vue
.../jobs-registry-grid-view/jobs-registry-grid-view-base.vue
+1
-1
main.ts
app_web/src/pages/task/task-index-view/main.ts
+3
-1
default.less
app_web/src/styles/default.less
+2
-2
main-form-base.vue
app_web/src/widgets/jobs-info/main-form/main-form-base.vue
+1
-1
main-form-base.vue
app_web/src/widgets/jobs-log/main-form/main-form-base.vue
+1
-1
main-form-base.vue
...eb/src/widgets/jobs-registry/main-form/main-form-base.vue
+1
-1
config.xml
config.xml
+0
-5
Dockerfile
ibztask-app/ibztask-app-web/src/main/docker/Dockerfile
+1
-1
ibztask-app-web.yaml
...-app/ibztask-app-web/src/main/docker/ibztask-app-web.yaml
+1
-14
JobsInfoServiceImpl.java
...n/ibizlab/core/task/service/impl/JobsInfoServiceImpl.java
+1
-1
JobsInfoResource.java
...i/src/main/java/cn/ibizlab/api/rest/JobsInfoResource.java
+2
-2
JobsLockResource.java
...i/src/main/java/cn/ibizlab/api/rest/JobsLockResource.java
+2
-2
JobsLogResource.java
...pi/src/main/java/cn/ibizlab/api/rest/JobsLogResource.java
+2
-2
JobsRegistryResource.java
...c/main/java/cn/ibizlab/api/rest/JobsRegistryResource.java
+2
-2
IBZWFFallback.java
...l/src/main/java/cn/ibizlab/util/client/IBZWFFallback.java
+6
-1
IBZWFFeignClient.java
...rc/main/java/cn/ibizlab/util/client/IBZWFFeignClient.java
+4
-1
PermissionSyncJob.java
.../src/main/java/cn/ibizlab/util/job/PermissionSyncJob.java
+5
-2
未找到文件。
app_web/package.json
浏览文件 @
0b88be5e
...
@@ -27,7 +27,7 @@
...
@@ -27,7 +27,7 @@
"file-saver"
:
"^2.0.2"
,
"file-saver"
:
"^2.0.2"
,
"font-awesome"
:
"^4.7.0"
,
"font-awesome"
:
"^4.7.0"
,
"ibiz-gantt-elastic"
:
"^1.0.17"
,
"ibiz-gantt-elastic"
:
"^1.0.17"
,
"ibiz-vue-lib"
:
"^0.1.1
0
"
,
"ibiz-vue-lib"
:
"^0.1.1
3
"
,
"interactjs"
:
"^1.9.4"
,
"interactjs"
:
"^1.9.4"
,
"moment"
:
"^2.24.0"
,
"moment"
:
"^2.24.0"
,
"path-to-regexp"
:
"^6.1.0"
,
"path-to-regexp"
:
"^6.1.0"
,
...
...
app_web/src/app-register.ts
浏览文件 @
0b88be5e
...
@@ -73,7 +73,9 @@ import AppWFApproval from './components/app-wf-approval/app-wf-approval.vue'
...
@@ -73,7 +73,9 @@ import AppWFApproval from './components/app-wf-approval/app-wf-approval.vue'
import
Breadcrumb
from
'./components/app-breadcrumb/app-breadcrumb.vue'
import
Breadcrumb
from
'./components/app-breadcrumb/app-breadcrumb.vue'
import
AppTransfer
from
'./components/app-transfer/app-transfer.vue'
import
AppTransfer
from
'./components/app-transfer/app-transfer.vue'
import
ContextMenuDrag
from
'./components/context-menu-drag/context-menu-drag.vue'
import
ContextMenuDrag
from
'./components/context-menu-drag/context-menu-drag.vue'
import
AppOrgSelect
from
'./components/app-org-select/app-org-select.vue'
import
AppDepartmentSelect
from
'./components/app-department-select/app-department-select.vue'
import
AppGroupSelect
from
'./components/app-group-select/app-group-select.vue'
// 全局挂载UI实体服务注册中心
// 全局挂载UI实体服务注册中心
window
[
'uiServiceRegister'
]
=
uiServiceRegister
;
window
[
'uiServiceRegister'
]
=
uiServiceRegister
;
// 全局挂载功能服务注册中心
// 全局挂载功能服务注册中心
...
@@ -153,10 +155,10 @@ export const AppComponents = {
...
@@ -153,10 +155,10 @@ export const AppComponents = {
v
.
component
(
'context-menu'
,
ContextMenu
);
v
.
component
(
'context-menu'
,
ContextMenu
);
v
.
component
(
'app-column-format'
,
AppColumnFormat
);
v
.
component
(
'app-column-format'
,
AppColumnFormat
);
v
.
component
(
'app-quick-group'
,
AppQuickGroup
);
v
.
component
(
'app-quick-group'
,
AppQuickGroup
);
v
.
component
(
'app-org-select'
,
()
=>
import
(
'./components/app-org-select/app-org-select.vue'
)
);
v
.
component
(
'app-org-select'
,
AppOrgSelect
);
v
.
component
(
'app-department-select'
,
()
=>
import
(
'./components/app-department-select/app-department-select.vue'
)
);
v
.
component
(
'app-department-select'
,
AppDepartmentSelect
);
v
.
component
(
'app-group-select'
,
()
=>
import
(
'./components/app-group-select/app-group-select.vue'
)
);
v
.
component
(
'app-group-select'
,
AppGroupSelect
);
v
.
component
(
'app-group-picker'
,
()
=>
import
(
'./components/app-group-picker/app-group-picker.vue'
)
);
v
.
component
(
'app-group-picker'
,
AppGroupPicker
);
v
.
component
(
'app-wf-approval'
,
AppWFApproval
);
v
.
component
(
'app-wf-approval'
,
AppWFApproval
);
v
.
component
(
'app-breadcrumb'
,
Breadcrumb
);
v
.
component
(
'app-breadcrumb'
,
Breadcrumb
);
v
.
component
(
'app-transfer'
,
AppTransfer
);
v
.
component
(
'app-transfer'
,
AppTransfer
);
...
...
app_web/src/components/app-department-select/app-department-select.vue
浏览文件 @
0b88be5e
...
@@ -6,8 +6,6 @@
...
@@ -6,8 +6,6 @@
<
script
lang=
"ts"
>
<
script
lang=
"ts"
>
import
{
Vue
,
Component
,
Watch
,
Prop
,
Model
}
from
'vue-property-decorator'
;
import
{
Vue
,
Component
,
Watch
,
Prop
,
Model
}
from
'vue-property-decorator'
;
import
'ibiz-vue-lib/lib/ibiz-vue-lib.css'
;
import
{
IBizSelectTree
}
from
'ibiz-vue-lib'
;
@
Component
({
@
Component
({
})
})
export
default
class
AppDepartmentSelect
extends
Vue
{
export
default
class
AppDepartmentSelect
extends
Vue
{
...
...
app_web/src/components/app-group-picker/app-group-picker.vue
浏览文件 @
0b88be5e
...
@@ -19,17 +19,14 @@
...
@@ -19,17 +19,14 @@
import
{
Component
,
Vue
,
Prop
,
Watch
}
from
'vue-property-decorator'
;
import
{
Component
,
Vue
,
Prop
,
Watch
}
from
'vue-property-decorator'
;
import
{
Subject
}
from
'rxjs'
;
import
{
Subject
}
from
'rxjs'
;
import
{
Http
}
from
'../../utils'
;
import
{
Http
}
from
'../../utils'
;
import
'ibiz-vue-lib/lib/ibiz-vue-lib.css'
;
import
{
IBizSelectTree
}
from
'ibiz-vue-lib'
;
import
{
IBizGroupCard
}
from
'ibiz-vue-lib'
;
@
Component
({})
@
Component
({})
export
default
class
IBiz
GroupPicker
extends
Vue
{
export
default
class
App
GroupPicker
extends
Vue
{
/**
/**
* 视图上下文参数
* 视图上下文参数
*
*
* @type {*}
* @type {*}
* @memberof
IBiz
GroupPicker
* @memberof
App
GroupPicker
*/
*/
@
Prop
()
viewdata
:
any
;
@
Prop
()
viewdata
:
any
;
...
@@ -37,7 +34,7 @@ export default class IBizGroupPicker extends Vue {
...
@@ -37,7 +34,7 @@ export default class IBizGroupPicker extends Vue {
* 视图参数
* 视图参数
*
*
* @type {*}
* @type {*}
* @memberof
IBiz
GroupPicker
* @memberof
App
GroupPicker
*/
*/
@
Prop
()
viewparam
:
any
;
@
Prop
()
viewparam
:
any
;
...
@@ -45,7 +42,7 @@ export default class IBizGroupPicker extends Vue {
...
@@ -45,7 +42,7 @@ export default class IBizGroupPicker extends Vue {
* 多选
* 多选
*
*
* @type {*}
* @type {*}
* @memberof
IBiz
GroupPicker
* @memberof
App
GroupPicker
*/
*/
protected
multiple
:
boolean
=
false
;
protected
multiple
:
boolean
=
false
;
...
@@ -53,7 +50,7 @@ export default class IBizGroupPicker extends Vue {
...
@@ -53,7 +50,7 @@ export default class IBizGroupPicker extends Vue {
* 加载树url
* 加载树url
*
*
* @type {*}
* @type {*}
* @memberof
IBiz
GroupPicker
* @memberof
App
GroupPicker
*/
*/
protected
treeurl
:
any
;
protected
treeurl
:
any
;
...
@@ -61,7 +58,7 @@ export default class IBizGroupPicker extends Vue {
...
@@ -61,7 +58,7 @@ export default class IBizGroupPicker extends Vue {
* 加载人员url
* 加载人员url
*
*
* @type {*}
* @type {*}
* @memberof
IBiz
GroupPicker
* @memberof
App
GroupPicker
*/
*/
protected
url
:
any
;
protected
url
:
any
;
...
@@ -69,7 +66,7 @@ export default class IBizGroupPicker extends Vue {
...
@@ -69,7 +66,7 @@ export default class IBizGroupPicker extends Vue {
* 树数据集
* 树数据集
*
*
* @type {*}
* @type {*}
* @memberof
IBiz
GroupPicker
* @memberof
App
GroupPicker
*/
*/
protected
treeItems
:
any
[]
=
[];
protected
treeItems
:
any
[]
=
[];
...
@@ -77,7 +74,7 @@ export default class IBizGroupPicker extends Vue {
...
@@ -77,7 +74,7 @@ export default class IBizGroupPicker extends Vue {
* 分组表数据集
* 分组表数据集
*
*
* @type {*}
* @type {*}
* @memberof
IBiz
GroupPicker
* @memberof
App
GroupPicker
*/
*/
protected
cardItems
:
any
[]
=
[];
protected
cardItems
:
any
[]
=
[];
...
@@ -85,7 +82,7 @@ export default class IBizGroupPicker extends Vue {
...
@@ -85,7 +82,7 @@ export default class IBizGroupPicker extends Vue {
* 视图上下文参数对象
* 视图上下文参数对象
*
*
* @type {*}
* @type {*}
* @memberof
IBiz
GroupPicker
* @memberof
App
GroupPicker
*/
*/
protected
viewData
:
any
;
protected
viewData
:
any
;
...
@@ -93,7 +90,7 @@ export default class IBizGroupPicker extends Vue {
...
@@ -93,7 +90,7 @@ export default class IBizGroupPicker extends Vue {
* 视图参数对象
* 视图参数对象
*
*
* @type {*}
* @type {*}
* @memberof
IBiz
GroupPicker
* @memberof
App
GroupPicker
*/
*/
protected
viewParam
:
any
;
protected
viewParam
:
any
;
...
@@ -101,7 +98,7 @@ export default class IBizGroupPicker extends Vue {
...
@@ -101,7 +98,7 @@ export default class IBizGroupPicker extends Vue {
* 树选中值
* 树选中值
*
*
* @type {*}
* @type {*}
* @memberof
IBiz
GroupPicker
* @memberof
App
GroupPicker
*/
*/
protected
treeSelectVal
:
string
=
''
;
protected
treeSelectVal
:
string
=
''
;
...
@@ -109,7 +106,7 @@ export default class IBizGroupPicker extends Vue {
...
@@ -109,7 +106,7 @@ export default class IBizGroupPicker extends Vue {
* 分组表选中集合
* 分组表选中集合
*
*
* @type {*}
* @type {*}
* @memberof
IBiz
GroupPicker
* @memberof
App
GroupPicker
*/
*/
protected
cardSelctVal
:
any
=
[];
protected
cardSelctVal
:
any
=
[];
...
@@ -117,7 +114,7 @@ export default class IBizGroupPicker extends Vue {
...
@@ -117,7 +114,7 @@ export default class IBizGroupPicker extends Vue {
* 数据选中集合
* 数据选中集合
*
*
* @type {*}
* @type {*}
* @memberof
IBiz
GroupPicker
* @memberof
App
GroupPicker
*/
*/
protected
selects
:
any
[]
=
[];
protected
selects
:
any
[]
=
[];
...
@@ -125,7 +122,7 @@ export default class IBizGroupPicker extends Vue {
...
@@ -125,7 +122,7 @@ export default class IBizGroupPicker extends Vue {
* 是否显示树
* 是否显示树
*
*
* @type {*}
* @type {*}
* @memberof
IBiz
GroupPicker
* @memberof
App
GroupPicker
*/
*/
get
showTree
()
{
get
showTree
()
{
if
(
this
.
viewParam
)
{
if
(
this
.
viewParam
)
{
...
@@ -137,7 +134,7 @@ export default class IBizGroupPicker extends Vue {
...
@@ -137,7 +134,7 @@ export default class IBizGroupPicker extends Vue {
* 生命周期
* 生命周期
*
*
* @type {*}
* @type {*}
* @memberof
IBiz
GroupPicker
* @memberof
App
GroupPicker
*/
*/
public
created
()
{
public
created
()
{
if
(
!
this
.
viewdata
||
!
this
.
viewparam
)
{
if
(
!
this
.
viewdata
||
!
this
.
viewparam
)
{
...
@@ -161,7 +158,7 @@ export default class IBizGroupPicker extends Vue {
...
@@ -161,7 +158,7 @@ export default class IBizGroupPicker extends Vue {
* 加载数据
* 加载数据
*
*
* @type {*}
* @type {*}
* @memberof
IBiz
GroupPicker
* @memberof
App
GroupPicker
*/
*/
public
load
()
{
public
load
()
{
if
(
this
.
showTree
)
{
if
(
this
.
showTree
)
{
...
@@ -175,7 +172,7 @@ export default class IBizGroupPicker extends Vue {
...
@@ -175,7 +172,7 @@ export default class IBizGroupPicker extends Vue {
* 加载树数据
* 加载树数据
*
*
* @type {*}
* @type {*}
* @memberof
IBiz
GroupPicker
* @memberof
App
GroupPicker
*/
*/
public
loadTree
()
{
public
loadTree
()
{
let
orgid
=
this
.
viewParam
.
filtervalue
;
let
orgid
=
this
.
viewParam
.
filtervalue
;
...
@@ -194,7 +191,7 @@ export default class IBizGroupPicker extends Vue {
...
@@ -194,7 +191,7 @@ export default class IBizGroupPicker extends Vue {
* 加载分组表数据
* 加载分组表数据
*
*
* @type {*}
* @type {*}
* @memberof
IBiz
GroupPicker
* @memberof
App
GroupPicker
*/
*/
public
loadGroupData
(
key
:
string
)
{
public
loadGroupData
(
key
:
string
)
{
let
tempUrl
=
this
.
url
.
replace
(
'${selected-orgid}'
,
key
);
let
tempUrl
=
this
.
url
.
replace
(
'${selected-orgid}'
,
key
);
...
@@ -212,7 +209,7 @@ export default class IBizGroupPicker extends Vue {
...
@@ -212,7 +209,7 @@ export default class IBizGroupPicker extends Vue {
* 树选中
* 树选中
*
*
* @type {*}
* @type {*}
* @memberof
IBiz
GroupPicker
* @memberof
App
GroupPicker
*/
*/
public
treeSelect
(
event
:
any
)
{
public
treeSelect
(
event
:
any
)
{
if
(
!
event
||
JSON
.
parse
(
event
).
length
==
0
)
{
if
(
!
event
||
JSON
.
parse
(
event
).
length
==
0
)
{
...
@@ -226,7 +223,7 @@ export default class IBizGroupPicker extends Vue {
...
@@ -226,7 +223,7 @@ export default class IBizGroupPicker extends Vue {
* 分组表选中
* 分组表选中
*
*
* @type {*}
* @type {*}
* @memberof
IBiz
GroupPicker
* @memberof
App
GroupPicker
*/
*/
public
groupSelect
(
event
:
any
)
{
public
groupSelect
(
event
:
any
)
{
if
(
!
event
||
!
event
.
select
)
{
if
(
!
event
||
!
event
.
select
)
{
...
@@ -258,7 +255,7 @@ export default class IBizGroupPicker extends Vue {
...
@@ -258,7 +255,7 @@ export default class IBizGroupPicker extends Vue {
* 确认
* 确认
*
*
* @type {*}
* @type {*}
* @memberof
IBiz
GroupPicker
* @memberof
App
GroupPicker
*/
*/
public
onOK
()
{
public
onOK
()
{
this
.
$emit
(
'close'
,
this
.
selects
);
this
.
$emit
(
'close'
,
this
.
selects
);
...
@@ -268,7 +265,7 @@ export default class IBizGroupPicker extends Vue {
...
@@ -268,7 +265,7 @@ export default class IBizGroupPicker extends Vue {
* 取消
* 取消
*
*
* @type {*}
* @type {*}
* @memberof
IBiz
GroupPicker
* @memberof
App
GroupPicker
*/
*/
public
onCancel
()
{
public
onCancel
()
{
this
.
$emit
(
'close'
);
this
.
$emit
(
'close'
);
...
...
app_web/src/components/app-group-select/app-group-select.vue
浏览文件 @
0b88be5e
...
@@ -23,12 +23,12 @@ import { Component, Vue, Prop, Watch } from 'vue-property-decorator';
...
@@ -23,12 +23,12 @@ import { Component, Vue, Prop, Watch } from 'vue-property-decorator';
import
{
Subject
}
from
'rxjs'
;
import
{
Subject
}
from
'rxjs'
;
@
Component
({})
@
Component
({})
export
default
class
IBiz
GroupSelect
extends
Vue
{
export
default
class
App
GroupSelect
extends
Vue
{
/**
/**
* 名称标识
* 名称标识
*
*
* @type {*}
* @type {*}
* @memberof
IBiz
GroupSelect
* @memberof
App
GroupSelect
*/
*/
@
Prop
()
name
!
:
string
;
@
Prop
()
name
!
:
string
;
...
@@ -36,7 +36,7 @@ export default class IBizGroupSelect extends Vue {
...
@@ -36,7 +36,7 @@ export default class IBizGroupSelect extends Vue {
* 树加载地址
* 树加载地址
*
*
* @type {*}
* @type {*}
* @memberof
IBiz
GroupSelect
* @memberof
App
GroupSelect
*/
*/
@
Prop
()
treeurl
?:
boolean
;
@
Prop
()
treeurl
?:
boolean
;
...
@@ -44,7 +44,7 @@ export default class IBizGroupSelect extends Vue {
...
@@ -44,7 +44,7 @@ export default class IBizGroupSelect extends Vue {
* 数据接口地址
* 数据接口地址
*
*
* @type {*}
* @type {*}
* @memberof
IBiz
GroupSelect
* @memberof
App
GroupSelect
*/
*/
@
Prop
()
url
!
:
string
;
@
Prop
()
url
!
:
string
;
...
@@ -52,7 +52,7 @@ export default class IBizGroupSelect extends Vue {
...
@@ -52,7 +52,7 @@ export default class IBizGroupSelect extends Vue {
* 多选
* 多选
*
*
* @type {*}
* @type {*}
* @memberof
IBiz
GroupSelect
* @memberof
App
GroupSelect
*/
*/
@
Prop
({
default
:
false
})
multiple
?:
boolean
;
@
Prop
({
default
:
false
})
multiple
?:
boolean
;
...
@@ -60,7 +60,7 @@ export default class IBizGroupSelect extends Vue {
...
@@ -60,7 +60,7 @@ export default class IBizGroupSelect extends Vue {
* 数据对象
* 数据对象
*
*
* @type {*}
* @type {*}
* @memberof
IBiz
GroupSelect
* @memberof
App
GroupSelect
*/
*/
@
Prop
()
data
:
any
;
@
Prop
()
data
:
any
;
...
@@ -68,7 +68,7 @@ export default class IBizGroupSelect extends Vue {
...
@@ -68,7 +68,7 @@ export default class IBizGroupSelect extends Vue {
* 过滤属性标识
* 过滤属性标识
*
*
* @type {*}
* @type {*}
* @memberof
IBiz
GroupSelect
* @memberof
App
GroupSelect
*/
*/
@
Prop
()
filter
?:
string
;
@
Prop
()
filter
?:
string
;
...
@@ -76,7 +76,7 @@ export default class IBizGroupSelect extends Vue {
...
@@ -76,7 +76,7 @@ export default class IBizGroupSelect extends Vue {
* 是否启用
* 是否启用
*
*
* @type {*}
* @type {*}
* @memberof
IBiz
GroupSelect
* @memberof
App
GroupSelect
*/
*/
@
Prop
()
disabled
?:
boolean
;
@
Prop
()
disabled
?:
boolean
;
...
@@ -84,7 +84,7 @@ export default class IBizGroupSelect extends Vue {
...
@@ -84,7 +84,7 @@ export default class IBizGroupSelect extends Vue {
* 值
* 值
*
*
* @type {*}
* @type {*}
* @memberof
IBiz
GroupSelect
* @memberof
App
GroupSelect
*/
*/
@
Prop
()
value
:
any
;
@
Prop
()
value
:
any
;
...
@@ -92,7 +92,7 @@ export default class IBizGroupSelect extends Vue {
...
@@ -92,7 +92,7 @@ export default class IBizGroupSelect extends Vue {
* 上下文参数
* 上下文参数
*
*
* @type {*}
* @type {*}
* @memberof
IBiz
GroupSelect
* @memberof
App
GroupSelect
*/
*/
@
Prop
()
context
:
any
;
@
Prop
()
context
:
any
;
...
@@ -100,7 +100,7 @@ export default class IBizGroupSelect extends Vue {
...
@@ -100,7 +100,7 @@ export default class IBizGroupSelect extends Vue {
* 关联属性
* 关联属性
*
*
* @type {*}
* @type {*}
* @memberof
IBiz
GroupSelect
* @memberof
App
GroupSelect
*/
*/
@
Prop
()
valueitem
:
any
;
@
Prop
()
valueitem
:
any
;
...
@@ -108,7 +108,7 @@ export default class IBizGroupSelect extends Vue {
...
@@ -108,7 +108,7 @@ export default class IBizGroupSelect extends Vue {
* 填充属性
* 填充属性
*
*
* @type {*}
* @type {*}
* @memberof
IBiz
GroupSelect
* @memberof
App
GroupSelect
*/
*/
@
Prop
()
fillmap
:
any
;
@
Prop
()
fillmap
:
any
;
...
@@ -116,7 +116,7 @@ export default class IBizGroupSelect extends Vue {
...
@@ -116,7 +116,7 @@ export default class IBizGroupSelect extends Vue {
* 选中项集合
* 选中项集合
*
*
* @type {*}
* @type {*}
* @memberof
IBiz
GroupSelect
* @memberof
App
GroupSelect
*/
*/
protected
selects
:
any
[]
=
[];
protected
selects
:
any
[]
=
[];
...
@@ -124,7 +124,7 @@ export default class IBizGroupSelect extends Vue {
...
@@ -124,7 +124,7 @@ export default class IBizGroupSelect extends Vue {
* 值变化
* 值变化
*
*
* @type {*}
* @type {*}
* @memberof
IBiz
GroupSelect
* @memberof
App
GroupSelect
*/
*/
@
Watch
(
'value'
)
@
Watch
(
'value'
)
onValueChange
(
newVal
:
any
)
{
onValueChange
(
newVal
:
any
)
{
...
@@ -154,7 +154,7 @@ export default class IBizGroupSelect extends Vue {
...
@@ -154,7 +154,7 @@ export default class IBizGroupSelect extends Vue {
* 单选时选中名称
* 单选时选中名称
*
*
* @type {*}
* @type {*}
* @memberof
IBiz
GroupSelect
* @memberof
App
GroupSelect
*/
*/
get
selectName
()
{
get
selectName
()
{
if
(
this
.
selects
.
length
>
0
)
{
if
(
this
.
selects
.
length
>
0
)
{
...
@@ -166,11 +166,11 @@ export default class IBizGroupSelect extends Vue {
...
@@ -166,11 +166,11 @@ export default class IBizGroupSelect extends Vue {
* 打开选择视图
* 打开选择视图
*
*
* @type {*}
* @type {*}
* @memberof
IBiz
GroupSelect
* @memberof
App
GroupSelect
*/
*/
public
openView
()
{
public
openView
()
{
const
view
:
any
=
{
const
view
:
any
=
{
viewname
:
'
ibiz
-group-picker'
,
viewname
:
'
app
-group-picker'
,
title
:
'分组选择'
title
:
'分组选择'
};
};
const
context
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
));
const
context
:
any
=
JSON
.
parse
(
JSON
.
stringify
(
this
.
context
));
...
@@ -208,7 +208,7 @@ export default class IBizGroupSelect extends Vue {
...
@@ -208,7 +208,7 @@ export default class IBizGroupSelect extends Vue {
* 选择视图关闭
* 选择视图关闭
*
*
* @type {*}
* @type {*}
* @memberof
IBiz
GroupSelect
* @memberof
App
GroupSelect
*/
*/
public
openViewClose
(
result
:
any
)
{
public
openViewClose
(
result
:
any
)
{
this
.
selects
=
[];
this
.
selects
=
[];
...
@@ -222,7 +222,7 @@ export default class IBizGroupSelect extends Vue {
...
@@ -222,7 +222,7 @@ export default class IBizGroupSelect extends Vue {
* 数据删除
* 数据删除
*
*
* @type {*}
* @type {*}
* @memberof
IBiz
GroupSelect
* @memberof
App
GroupSelect
*/
*/
public
remove
(
item
:
any
)
{
public
remove
(
item
:
any
)
{
this
.
selects
.
splice
(
this
.
selects
.
indexOf
(
item
),
1
);
this
.
selects
.
splice
(
this
.
selects
.
indexOf
(
item
),
1
);
...
@@ -233,7 +233,7 @@ export default class IBizGroupSelect extends Vue {
...
@@ -233,7 +233,7 @@ export default class IBizGroupSelect extends Vue {
* 设置值
* 设置值
*
*
* @type {*}
* @type {*}
* @memberof
IBiz
GroupSelect
* @memberof
App
GroupSelect
*/
*/
public
setValue
()
{
public
setValue
()
{
let
item
:
any
=
{};
let
item
:
any
=
{};
...
...
app_web/src/components/app-org-select/app-org-select.vue
浏览文件 @
0b88be5e
...
@@ -6,8 +6,6 @@
...
@@ -6,8 +6,6 @@
<
script
lang =
'ts'
>
<
script
lang =
'ts'
>
import
{
Vue
,
Component
,
Prop
,
Watch
}
from
"vue-property-decorator"
;
import
{
Vue
,
Component
,
Prop
,
Watch
}
from
"vue-property-decorator"
;
import
{
Http
}
from
'@/utils'
;
import
{
Http
}
from
'@/utils'
;
import
'ibiz-vue-lib/lib/ibiz-vue-lib.css'
;
import
{
IBizSelectTree
}
from
'ibiz-vue-lib'
;
@
Component
({})
@
Component
({})
export
default
class
AppOrgSelect
extends
Vue
{
export
default
class
AppOrgSelect
extends
Vue
{
...
...
app_web/src/pages/task/jobs-info-edit-view/jobs-info-edit-view-base.vue
浏览文件 @
0b88be5e
...
@@ -131,7 +131,7 @@ export default class JobsInfoEditViewBase extends Vue {
...
@@ -131,7 +131,7 @@ export default class JobsInfoEditViewBase extends Vue {
* @type {string}
* @type {string}
* @memberof JobsInfoEditViewBase
* @memberof JobsInfoEditViewBase
*/
*/
@
Inject
(
'navModel'
)
@
Inject
(
{
from
:
'navModel'
,
default
:
'tab'
}
)
public
navModel
!
:
string
;
public
navModel
!
:
string
;
/**
/**
...
...
app_web/src/pages/task/jobs-info-grid-view/jobs-info-grid-view-base.vue
浏览文件 @
0b88be5e
...
@@ -193,7 +193,7 @@ export default class JobsInfoGridViewBase extends Vue {
...
@@ -193,7 +193,7 @@ export default class JobsInfoGridViewBase extends Vue {
* @type {string}
* @type {string}
* @memberof JobsInfoGridViewBase
* @memberof JobsInfoGridViewBase
*/
*/
@
Inject
(
'navModel'
)
@
Inject
(
{
from
:
'navModel'
,
default
:
'tab'
}
)
public
navModel
!
:
string
;
public
navModel
!
:
string
;
/**
/**
...
...
app_web/src/pages/task/jobs-log-edit-view/jobs-log-edit-view-base.vue
浏览文件 @
0b88be5e
...
@@ -115,7 +115,7 @@ export default class JobsLogEditViewBase extends Vue {
...
@@ -115,7 +115,7 @@ export default class JobsLogEditViewBase extends Vue {
* @type {string}
* @type {string}
* @memberof JobsLogEditViewBase
* @memberof JobsLogEditViewBase
*/
*/
@
Inject
(
'navModel'
)
@
Inject
(
{
from
:
'navModel'
,
default
:
'tab'
}
)
public
navModel
!
:
string
;
public
navModel
!
:
string
;
/**
/**
...
...
app_web/src/pages/task/jobs-log-grid-view/jobs-log-grid-view-base.vue
浏览文件 @
0b88be5e
...
@@ -141,7 +141,7 @@ export default class JobsLogGridViewBase extends Vue {
...
@@ -141,7 +141,7 @@ export default class JobsLogGridViewBase extends Vue {
* @type {string}
* @type {string}
* @memberof JobsLogGridViewBase
* @memberof JobsLogGridViewBase
*/
*/
@
Inject
(
'navModel'
)
@
Inject
(
{
from
:
'navModel'
,
default
:
'tab'
}
)
public
navModel
!
:
string
;
public
navModel
!
:
string
;
/**
/**
...
...
app_web/src/pages/task/jobs-registry-edit-view/jobs-registry-edit-view-base.vue
浏览文件 @
0b88be5e
...
@@ -131,7 +131,7 @@ export default class JobsRegistryEditViewBase extends Vue {
...
@@ -131,7 +131,7 @@ export default class JobsRegistryEditViewBase extends Vue {
* @type {string}
* @type {string}
* @memberof JobsRegistryEditViewBase
* @memberof JobsRegistryEditViewBase
*/
*/
@
Inject
(
'navModel'
)
@
Inject
(
{
from
:
'navModel'
,
default
:
'tab'
}
)
public
navModel
!
:
string
;
public
navModel
!
:
string
;
/**
/**
...
...
app_web/src/pages/task/jobs-registry-grid-view/jobs-registry-grid-view-base.vue
浏览文件 @
0b88be5e
...
@@ -171,7 +171,7 @@ export default class JobsRegistryGridViewBase extends Vue {
...
@@ -171,7 +171,7 @@ export default class JobsRegistryGridViewBase extends Vue {
* @type {string}
* @type {string}
* @memberof JobsRegistryGridViewBase
* @memberof JobsRegistryGridViewBase
*/
*/
@
Inject
(
'navModel'
)
@
Inject
(
{
from
:
'navModel'
,
default
:
'tab'
}
)
public
navModel
!
:
string
;
public
navModel
!
:
string
;
/**
/**
...
...
app_web/src/pages/task/task-index-view/main.ts
浏览文件 @
0b88be5e
...
@@ -4,13 +4,14 @@ import VueRouter from 'vue-router';
...
@@ -4,13 +4,14 @@ import VueRouter from 'vue-router';
import
App
from
'@/App.vue'
;
import
App
from
'@/App.vue'
;
import
ElementUi
from
'element-ui'
;
import
ElementUi
from
'element-ui'
;
import
ViewUI
from
'view-design'
;
import
ViewUI
from
'view-design'
;
import
ibizLab
from
'ibiz-vue-lib'
;
import
{
Interceptors
}
from
'@/utils'
;
import
{
Interceptors
}
from
'@/utils'
;
import
{
Print
}
from
'@/utils/print'
;
import
{
Print
}
from
'@/utils/print'
;
import
i18n
from
'@/locale'
import
i18n
from
'@/locale'
import
'element-ui/lib/theme-chalk/index.css'
;
import
'element-ui/lib/theme-chalk/index.css'
;
import
'view-design/dist/styles/iview.css'
;
import
'view-design/dist/styles/iview.css'
;
import
'ibiz-vue-lib/lib/ibiz-vue-lib.css'
;
import
'@/styles/default.less'
;
import
'@/styles/default.less'
;
// 模拟数据
// 模拟数据
...
@@ -31,6 +32,7 @@ Vue.config.errorHandler = function (err: any, vm: any, info: any) {
...
@@ -31,6 +32,7 @@ Vue.config.errorHandler = function (err: any, vm: any, info: any) {
}
}
Vue
.
config
.
productionTip
=
false
;
Vue
.
config
.
productionTip
=
false
;
Vue
.
use
(
Print
);
Vue
.
use
(
Print
);
Vue
.
use
(
ibizLab
);
Vue
.
use
(
Vuex
);
Vue
.
use
(
Vuex
);
Vue
.
use
(
VueRouter
);;
Vue
.
use
(
VueRouter
);;
Vue
.
use
(
ElementUi
,
{
Vue
.
use
(
ElementUi
,
{
...
...
app_web/src/styles/default.less
浏览文件 @
0b88be5e
...
@@ -64,14 +64,14 @@
...
@@ -64,14 +64,14 @@
// tab分页模式首页布局
// tab分页模式首页布局
.index_tab_content{
.index_tab_content{
.view-container {
>
.view-container {
height: calc(100% - 65px);
height: calc(100% - 65px);
margin: 0px 12px;
margin: 0px 12px;
}
}
}
}
// 面包屑模式首页布局
// 面包屑模式首页布局
.index_route_content{
.index_route_content{
.view-container {
>
.view-container {
height: calc(100% - 36px);
height: calc(100% - 36px);
margin: 12px;
margin: 12px;
}
}
...
...
app_web/src/widgets/jobs-info/main-form/main-form-base.vue
浏览文件 @
0b88be5e
...
@@ -250,7 +250,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -250,7 +250,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @type {string}
* @type {string}
* @memberof MainBase
* @memberof MainBase
*/
*/
@
Inject
(
'navModel'
)
@
Inject
(
{
from
:
'navModel'
,
default
:
'tab'
}
)
public
navModel
!
:
string
;
public
navModel
!
:
string
;
/**
/**
...
...
app_web/src/widgets/jobs-log/main-form/main-form-base.vue
浏览文件 @
0b88be5e
...
@@ -206,7 +206,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -206,7 +206,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @type {string}
* @type {string}
* @memberof MainBase
* @memberof MainBase
*/
*/
@
Inject
(
'navModel'
)
@
Inject
(
{
from
:
'navModel'
,
default
:
'tab'
}
)
public
navModel
!
:
string
;
public
navModel
!
:
string
;
/**
/**
...
...
app_web/src/widgets/jobs-registry/main-form/main-form-base.vue
浏览文件 @
0b88be5e
...
@@ -181,7 +181,7 @@ export default class MainBase extends Vue implements ControlInterface {
...
@@ -181,7 +181,7 @@ export default class MainBase extends Vue implements ControlInterface {
* @type {string}
* @type {string}
* @memberof MainBase
* @memberof MainBase
*/
*/
@
Inject
(
'navModel'
)
@
Inject
(
{
from
:
'navModel'
,
default
:
'tab'
}
)
public
navModel
!
:
string
;
public
navModel
!
:
string
;
/**
/**
...
...
config.xml
浏览文件 @
0b88be5e
...
@@ -37,11 +37,6 @@
...
@@ -37,11 +37,6 @@
git clone -b master $para2 ibztask/
git clone -b master $para2 ibztask/
export NODE_OPTIONS=--max-old-space-size=4096
export NODE_OPTIONS=--max-old-space-size=4096
cd ibztask/
cd ibztask/
mvn clean package -Pweb
cd ibztask-app/ibztask-app-web
mvn -Pweb docker:build
mvn -Pweb docker:push
docker -H $para1 stack deploy --compose-file=src/main/docker/ibztask-app-web.yaml ibzlab-rt --with-registry-auth
</command>
</command>
</hudson.tasks.Shell>
</hudson.tasks.Shell>
</builders>
</builders>
...
...
ibztask-app/ibztask-app-web/src/main/docker/Dockerfile
浏览文件 @
0b88be5e
...
@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
...
@@ -9,6 +9,6 @@ CMD echo "The application will start in ${IBIZ_SLEEP}s..." && \
sleep ${IBIZ_SLEEP} && \
sleep ${IBIZ_SLEEP} && \
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibztask-app-web.jar
java ${JAVA_OPTS} -Djava.security.egd=file:/dev/./urandom -jar /ibztask-app-web.jar
EXPOSE
30005
EXPOSE
8080
ADD
ibztask-app-web.jar /ibztask-app-web.jar
ADD
ibztask-app-web.jar /ibztask-app-web.jar
ibztask-app/ibztask-app-web/src/main/docker/ibztask-app-web.yaml
浏览文件 @
0b88be5e
...
@@ -3,22 +3,9 @@ services:
...
@@ -3,22 +3,9 @@ services:
ibztask-app-web
:
ibztask-app-web
:
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/ibztask-app-web:latest
image
:
registry.cn-shanghai.aliyuncs.com/ibizsys/ibztask-app-web:latest
ports
:
ports
:
-
"
30005:30005
"
-
"
8080:8080
"
networks
:
networks
:
-
agent_network
-
agent_network
environment
:
-
SPRING_CLOUD_NACOS_DISCOVERY_IP=172.16.180.237
-
SERVER_PORT=30005
-
SPRING_CLOUD_NACOS_DISCOVERY_SERVER-ADDR=172.16.102.211:8848
-
SPRING_REDIS_HOST=172.16.100.243
-
SPRING_REDIS_PORT=6379
-
SPRING_REDIS_DATABASE=0
-
SPRING_DATASOURCE_USERNAME=a_A_5d9d78509
-
SPRING_DATASOURCE_PASSWORD=@6dEfb3@
-
SPRING_DATASOURCE_URL=jdbc:mysql://172.16.180.232:3306/a_A_5d9d78509?autoReconnect=true&useUnicode=true&characterEncoding=UTF-8&useOldAliasMetadataBehavior=true
-
SPRING_DATASOURCE_DRIVER-CLASS-NAME=com.mysql.jdbc.Driver
-
SPRING_DATASOURCE_DEFAULTSCHEMA=a_A_5d9d78509
-
NACOS=172.16.102.211:8848
deploy
:
deploy
:
resources
:
resources
:
limits
:
limits
:
...
...
ibztask-core/src/main/java/cn/ibizlab/core/task/service/impl/JobsInfoServiceImpl.java
浏览文件 @
0b88be5e
...
@@ -158,9 +158,9 @@ public class JobsInfoServiceImpl extends ServiceImpl<JobsInfoMapper, JobsInfo> i
...
@@ -158,9 +158,9 @@ public class JobsInfoServiceImpl extends ServiceImpl<JobsInfoMapper, JobsInfo> i
@Override
@Override
@Transactional
@Transactional
public
JobsInfo
stop
(
JobsInfo
et
)
{
public
JobsInfo
stop
(
JobsInfo
et
)
{
et
.
set
(
"Next_time"
,
"0"
);
et
.
set
(
"Last_time"
,
"0"
);
et
.
set
(
"Last_time"
,
"0"
);
et
.
set
(
"Status"
,
"1"
);
et
.
set
(
"Status"
,
"1"
);
et
.
set
(
"Next_time"
,
"0"
);
update
(
et
);
update
(
et
);
return
et
;
return
et
;
}
}
...
...
ibztask-provider/ibztask-provider-api/src/main/java/cn/ibizlab/api/rest/JobsInfoResource.java
浏览文件 @
0b88be5e
...
@@ -173,7 +173,7 @@ public class JobsInfoResource {
...
@@ -173,7 +173,7 @@ public class JobsInfoResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
jobsinfodto
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
jobsinfodto
);
}
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibztask-JobsInfo-Default-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibztask-JobsInfo-
search
Default-all')"
)
@ApiOperation
(
value
=
"获取DEFAULT"
,
tags
=
{
"任务信息"
}
,
notes
=
"获取DEFAULT"
)
@ApiOperation
(
value
=
"获取DEFAULT"
,
tags
=
{
"任务信息"
}
,
notes
=
"获取DEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/jobsinfos/fetchdefault"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/jobsinfos/fetchdefault"
)
public
ResponseEntity
<
List
<
JobsInfoDTO
>>
fetchDefault
(
JobsInfoSearchContext
context
)
{
public
ResponseEntity
<
List
<
JobsInfoDTO
>>
fetchDefault
(
JobsInfoSearchContext
context
)
{
...
@@ -186,7 +186,7 @@ public class JobsInfoResource {
...
@@ -186,7 +186,7 @@ public class JobsInfoResource {
.
body
(
list
);
.
body
(
list
);
}
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibztask-JobsInfo-Default-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibztask-JobsInfo-
search
Default-all')"
)
@ApiOperation
(
value
=
"查询DEFAULT"
,
tags
=
{
"任务信息"
}
,
notes
=
"查询DEFAULT"
)
@ApiOperation
(
value
=
"查询DEFAULT"
,
tags
=
{
"任务信息"
}
,
notes
=
"查询DEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/jobsinfos/searchdefault"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/jobsinfos/searchdefault"
)
public
ResponseEntity
<
Page
<
JobsInfoDTO
>>
searchDefault
(
@RequestBody
JobsInfoSearchContext
context
)
{
public
ResponseEntity
<
Page
<
JobsInfoDTO
>>
searchDefault
(
@RequestBody
JobsInfoSearchContext
context
)
{
...
...
ibztask-provider/ibztask-provider-api/src/main/java/cn/ibizlab/api/rest/JobsLockResource.java
浏览文件 @
0b88be5e
...
@@ -137,7 +137,7 @@ public class JobsLockResource {
...
@@ -137,7 +137,7 @@ public class JobsLockResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
jobslockMapping
.
toDto
(
jobslockService
.
getDraft
(
new
JobsLock
())));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
jobslockMapping
.
toDto
(
jobslockService
.
getDraft
(
new
JobsLock
())));
}
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibztask-JobsLock-Default-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibztask-JobsLock-
search
Default-all')"
)
@ApiOperation
(
value
=
"获取DEFAULT"
,
tags
=
{
"任务锁"
}
,
notes
=
"获取DEFAULT"
)
@ApiOperation
(
value
=
"获取DEFAULT"
,
tags
=
{
"任务锁"
}
,
notes
=
"获取DEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/jobslocks/fetchdefault"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/jobslocks/fetchdefault"
)
public
ResponseEntity
<
List
<
JobsLockDTO
>>
fetchDefault
(
JobsLockSearchContext
context
)
{
public
ResponseEntity
<
List
<
JobsLockDTO
>>
fetchDefault
(
JobsLockSearchContext
context
)
{
...
@@ -150,7 +150,7 @@ public class JobsLockResource {
...
@@ -150,7 +150,7 @@ public class JobsLockResource {
.
body
(
list
);
.
body
(
list
);
}
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibztask-JobsLock-Default-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibztask-JobsLock-
search
Default-all')"
)
@ApiOperation
(
value
=
"查询DEFAULT"
,
tags
=
{
"任务锁"
}
,
notes
=
"查询DEFAULT"
)
@ApiOperation
(
value
=
"查询DEFAULT"
,
tags
=
{
"任务锁"
}
,
notes
=
"查询DEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/jobslocks/searchdefault"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/jobslocks/searchdefault"
)
public
ResponseEntity
<
Page
<
JobsLockDTO
>>
searchDefault
(
@RequestBody
JobsLockSearchContext
context
)
{
public
ResponseEntity
<
Page
<
JobsLockDTO
>>
searchDefault
(
@RequestBody
JobsLockSearchContext
context
)
{
...
...
ibztask-provider/ibztask-provider-api/src/main/java/cn/ibizlab/api/rest/JobsLogResource.java
浏览文件 @
0b88be5e
...
@@ -137,7 +137,7 @@ public class JobsLogResource {
...
@@ -137,7 +137,7 @@ public class JobsLogResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
dto
);
}
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibztask-JobsLog-Default-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibztask-JobsLog-
search
Default-all')"
)
@ApiOperation
(
value
=
"获取DEFAULT"
,
tags
=
{
"任务调度日志"
}
,
notes
=
"获取DEFAULT"
)
@ApiOperation
(
value
=
"获取DEFAULT"
,
tags
=
{
"任务调度日志"
}
,
notes
=
"获取DEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/jobslogs/fetchdefault"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/jobslogs/fetchdefault"
)
public
ResponseEntity
<
List
<
JobsLogDTO
>>
fetchDefault
(
JobsLogSearchContext
context
)
{
public
ResponseEntity
<
List
<
JobsLogDTO
>>
fetchDefault
(
JobsLogSearchContext
context
)
{
...
@@ -150,7 +150,7 @@ public class JobsLogResource {
...
@@ -150,7 +150,7 @@ public class JobsLogResource {
.
body
(
list
);
.
body
(
list
);
}
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibztask-JobsLog-Default-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibztask-JobsLog-
search
Default-all')"
)
@ApiOperation
(
value
=
"查询DEFAULT"
,
tags
=
{
"任务调度日志"
}
,
notes
=
"查询DEFAULT"
)
@ApiOperation
(
value
=
"查询DEFAULT"
,
tags
=
{
"任务调度日志"
}
,
notes
=
"查询DEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/jobslogs/searchdefault"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/jobslogs/searchdefault"
)
public
ResponseEntity
<
Page
<
JobsLogDTO
>>
searchDefault
(
@RequestBody
JobsLogSearchContext
context
)
{
public
ResponseEntity
<
Page
<
JobsLogDTO
>>
searchDefault
(
@RequestBody
JobsLogSearchContext
context
)
{
...
...
ibztask-provider/ibztask-provider-api/src/main/java/cn/ibizlab/api/rest/JobsRegistryResource.java
浏览文件 @
0b88be5e
...
@@ -137,7 +137,7 @@ public class JobsRegistryResource {
...
@@ -137,7 +137,7 @@ public class JobsRegistryResource {
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
jobsregistryMapping
.
toDto
(
jobsregistryService
.
getDraft
(
new
JobsRegistry
())));
return
ResponseEntity
.
status
(
HttpStatus
.
OK
).
body
(
jobsregistryMapping
.
toDto
(
jobsregistryService
.
getDraft
(
new
JobsRegistry
())));
}
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibztask-JobsRegistry-Default-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibztask-JobsRegistry-
search
Default-all')"
)
@ApiOperation
(
value
=
"获取DEFAULT"
,
tags
=
{
"任务注册信息"
}
,
notes
=
"获取DEFAULT"
)
@ApiOperation
(
value
=
"获取DEFAULT"
,
tags
=
{
"任务注册信息"
}
,
notes
=
"获取DEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/jobsregistries/fetchdefault"
)
@RequestMapping
(
method
=
RequestMethod
.
GET
,
value
=
"/jobsregistries/fetchdefault"
)
public
ResponseEntity
<
List
<
JobsRegistryDTO
>>
fetchDefault
(
JobsRegistrySearchContext
context
)
{
public
ResponseEntity
<
List
<
JobsRegistryDTO
>>
fetchDefault
(
JobsRegistrySearchContext
context
)
{
...
@@ -150,7 +150,7 @@ public class JobsRegistryResource {
...
@@ -150,7 +150,7 @@ public class JobsRegistryResource {
.
body
(
list
);
.
body
(
list
);
}
}
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibztask-JobsRegistry-Default-all')"
)
@PreAuthorize
(
"hasAnyAuthority('ROLE_SUPERADMIN','ibztask-JobsRegistry-
search
Default-all')"
)
@ApiOperation
(
value
=
"查询DEFAULT"
,
tags
=
{
"任务注册信息"
}
,
notes
=
"查询DEFAULT"
)
@ApiOperation
(
value
=
"查询DEFAULT"
,
tags
=
{
"任务注册信息"
}
,
notes
=
"查询DEFAULT"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/jobsregistries/searchdefault"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/jobsregistries/searchdefault"
)
public
ResponseEntity
<
Page
<
JobsRegistryDTO
>>
searchDefault
(
@RequestBody
JobsRegistrySearchContext
context
)
{
public
ResponseEntity
<
Page
<
JobsRegistryDTO
>>
searchDefault
(
@RequestBody
JobsRegistrySearchContext
context
)
{
...
...
ibztask-util/src/main/java/cn/ibizlab/util/client/IBZWFFallback.java
浏览文件 @
0b88be5e
package
cn
.
ibizlab
.
util
.
client
;
package
cn
.
ibizlab
.
util
.
client
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
java.util.
List
;
import
java.util.
*
;
@Component
@Component
public
class
IBZWFFallback
implements
IBZWFFeignClient
{
public
class
IBZWFFallback
implements
IBZWFFeignClient
{
...
@@ -15,4 +15,9 @@ public class IBZWFFallback implements IBZWFFeignClient {
...
@@ -15,4 +15,9 @@ public class IBZWFFallback implements IBZWFFeignClient {
public
List
<
String
>
getbusinesskeysByUserId
(
String
system
,
String
userId
,
String
entity
,
String
processDefinitionKey
,
String
taskDefinitionKey
)
{
public
List
<
String
>
getbusinesskeysByUserId
(
String
system
,
String
userId
,
String
entity
,
String
processDefinitionKey
,
String
taskDefinitionKey
)
{
return
null
;
return
null
;
}
}
@Override
public
Boolean
deployBpmnFile
(
List
<
Map
<
String
,
Object
>>
bpmnfiles
)
{
return
null
;
}
}
}
ibztask-util/src/main/java/cn/ibizlab/util/client/IBZWFFeignClient.java
浏览文件 @
0b88be5e
...
@@ -2,7 +2,7 @@ package cn.ibizlab.util.client;
...
@@ -2,7 +2,7 @@ package cn.ibizlab.util.client;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.cloud.openfeign.FeignClient
;
import
org.springframework.web.bind.annotation.*
;
import
org.springframework.web.bind.annotation.*
;
import
java.util.
List
;
import
java.util.
*
;
@FeignClient
(
value
=
"ibzwf-api"
,
fallback
=
IBZWFFallback
.
class
)
@FeignClient
(
value
=
"ibzwf-api"
,
fallback
=
IBZWFFallback
.
class
)
public
interface
IBZWFFeignClient
public
interface
IBZWFFeignClient
...
@@ -15,4 +15,7 @@ public interface IBZWFFeignClient
...
@@ -15,4 +15,7 @@ public interface IBZWFFeignClient
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/{system}-user-{userId}/{entity}/process-definitions/{processDefinitionKey}/usertasks/{taskDefinitionKey}/tasks"
)
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/{system}-user-{userId}/{entity}/process-definitions/{processDefinitionKey}/usertasks/{taskDefinitionKey}/tasks"
)
List
<
String
>
getbusinesskeysByUserId
(
@PathVariable
(
"system"
)
String
system
,
@PathVariable
(
"userId"
)
String
userId
,
List
<
String
>
getbusinesskeysByUserId
(
@PathVariable
(
"system"
)
String
system
,
@PathVariable
(
"userId"
)
String
userId
,
@PathVariable
(
"entity"
)
String
entity
,
@PathVariable
(
"processDefinitionKey"
)
String
processDefinitionKey
,
@PathVariable
(
"taskDefinitionKey"
)
String
taskDefinitionKey
);
@PathVariable
(
"entity"
)
String
entity
,
@PathVariable
(
"processDefinitionKey"
)
String
processDefinitionKey
,
@PathVariable
(
"taskDefinitionKey"
)
String
taskDefinitionKey
);
@RequestMapping
(
method
=
RequestMethod
.
POST
,
value
=
"/deploybpmn"
)
Boolean
deployBpmnFile
(
@RequestBody
List
<
Map
<
String
,
Object
>>
bpmnfiles
);
}
}
ibztask-util/src/main/java/cn/ibizlab/util/job/PermissionSyncJob.java
浏览文件 @
0b88be5e
...
@@ -11,7 +11,9 @@ import org.springframework.boot.ApplicationRunner;
...
@@ -11,7 +11,9 @@ import org.springframework.boot.ApplicationRunner;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
;
import
org.springframework.boot.autoconfigure.condition.ConditionalOnProperty
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.context.annotation.Lazy
;
import
org.springframework.stereotype.Component
;
import
org.springframework.stereotype.Component
;
import
org.springframework.util.DigestUtils
;
import
java.io.InputStream
;
import
java.io.InputStream
;
import
java.util.*
;
/**
/**
* 权限:向uaa同步当前系统菜单、权限资源任务类
* 权限:向uaa同步当前系统菜单、权限资源任务类
...
@@ -21,15 +23,14 @@ import java.io.InputStream;
...
@@ -21,15 +23,14 @@ import java.io.InputStream;
@ConditionalOnProperty
(
name
=
"ibiz.enablePermissionValid"
,
havingValue
=
"true"
)
@ConditionalOnProperty
(
name
=
"ibiz.enablePermissionValid"
,
havingValue
=
"true"
)
public
class
PermissionSyncJob
implements
ApplicationRunner
{
public
class
PermissionSyncJob
implements
ApplicationRunner
{
@Autowired
@Autowired
@Lazy
@Lazy
private
IBZUAAFeignClient
client
;
private
IBZUAAFeignClient
client
;
@Value
(
"${ibiz.systemid:ibztask}"
)
@Value
(
"${ibiz.systemid:ibztask}"
)
private
String
systemId
;
private
String
systemId
;
@Override
@Override
public
void
run
(
ApplicationArguments
args
)
{
public
void
run
(
ApplicationArguments
args
)
{
try
{
try
{
...
@@ -40,6 +41,7 @@ public class PermissionSyncJob implements ApplicationRunner {
...
@@ -40,6 +41,7 @@ public class PermissionSyncJob implements ApplicationRunner {
system
.
put
(
"pssystemid"
,
systemId
);
system
.
put
(
"pssystemid"
,
systemId
);
system
.
put
(
"pssystemname"
,
systemId
);
system
.
put
(
"pssystemname"
,
systemId
);
system
.
put
(
"sysstructure"
,
JSONObject
.
parseObject
(
permissionResult
));
system
.
put
(
"sysstructure"
,
JSONObject
.
parseObject
(
permissionResult
));
system
.
put
(
"md5check"
,
DigestUtils
.
md5DigestAsHex
(
permissionResult
.
getBytes
()));
if
(
client
.
syncSysAuthority
(
system
)){
if
(
client
.
syncSysAuthority
(
system
)){
log
.
info
(
"向[UAA]同步系统资源成功"
);
log
.
info
(
"向[UAA]同步系统资源成功"
);
}
else
{
}
else
{
...
@@ -49,5 +51,6 @@ public class PermissionSyncJob implements ApplicationRunner {
...
@@ -49,5 +51,6 @@ public class PermissionSyncJob implements ApplicationRunner {
catch
(
Exception
ex
)
{
catch
(
Exception
ex
)
{
log
.
error
(
String
.
format
(
"向[UAA]同步系统资源失败,请检查[UAA]服务是否正常! [%s]"
,
ex
));
log
.
error
(
String
.
format
(
"向[UAA]同步系统资源失败,请检查[UAA]服务是否正常! [%s]"
,
ex
));
}
}
}
}
}
}
\ No newline at end of file
编辑
预览
Markdown
格式
0%
请重试
or
添加新附件
添加附件
取消
您添加了
0
人
到此讨论。请谨慎行事。
先完成此消息的编辑!
取消
想要评论请
注册
或
登录