Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
a699a255
S
Skyeye
项目概览
doc_wei
/
Skyeye
通知
1173
Star
154
Fork
127
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
S
Skyeye
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
提交
a699a255
编写于
5月 16, 2024
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat: 已办事宜修改
上级
049deb21
变更
8
隐藏空白更改
内联
并排
Showing
8 changed file
with
95 addition
and
57 deletion
+95
-57
activiti/src/main/resources/template/js/activitiCommon/processInstanceDetails.js
...rces/template/js/activitiCommon/processInstanceDetails.js
+2
-0
activiti/src/main/resources/template/js/approvalActiviti/approvalProcessTask.js
...urces/template/js/approvalActiviti/approvalProcessTask.js
+2
-0
activiti/src/main/resources/template/js/myActiviti/pendingProcess.js
...c/main/resources/template/js/myActiviti/pendingProcess.js
+3
-0
activiti/src/main/resources/template/js/myActiviti/processedProcess.js
...main/resources/template/js/myActiviti/processedProcess.js
+60
-41
activiti/src/main/resources/template/tpl/activitiCommon/processInstanceDetails.html
...s/template/tpl/activitiCommon/processInstanceDetails.html
+9
-0
activiti/src/main/resources/template/tpl/approvalActiviti/approvalProcessTask.html
...es/template/tpl/approvalActiviti/approvalProcessTask.html
+6
-0
activiti/src/main/resources/template/tpl/myActiviti/processedProcess.html
...n/resources/template/tpl/myActiviti/processedProcess.html
+11
-14
web/src/main/resources/bootstrap.yml
web/src/main/resources/bootstrap.yml
+2
-2
未找到文件。
activiti/src/main/resources/template/js/activitiCommon/processInstanceDetails.js
浏览文件 @
a699a255
...
...
@@ -21,6 +21,8 @@ layui.config({
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
queryProcessInstance
"
,
params
:
{
processInstanceId
:
processInstanceId
},
type
:
'
json
'
,
method
:
'
POST
'
,
callback
:
function
(
data
)
{
// 加载业务数据
activitiUtil
.
loadBusiness
(
data
.
bean
.
objectId
,
data
.
bean
.
objectKey
,
data
.
bean
.
actFlowId
,
'
details
'
);
// 当前审批人
$
(
"
#taskCurrentAssignee
"
).
html
(
getNotUndefinedVal
(
data
.
bean
.
task
?.
taskCurrentAssigneeMation
?.
name
));
// 加载流程图片
$
(
"
#processInstanceIdImg
"
).
attr
(
"
src
"
,
fileBasePath
+
'
images/upload/activiti/
'
+
processInstanceId
+
"
.png?cdnversion=
"
+
Math
.
ceil
(
new
Date
()
/
3600000
));
matchingLanguage
();
...
...
activiti/src/main/resources/template/js/approvalActiviti/approvalProcessTask.js
浏览文件 @
a699a255
...
...
@@ -25,6 +25,8 @@ layui.config({
// 加载业务数据
activitiUtil
.
loadBusiness
(
data
.
bean
.
objectId
,
data
.
bean
.
objectKey
,
data
.
bean
.
actFlowId
,
'
edit
'
);
// 当前审批人
$
(
"
#taskCurrentAssignee
"
).
html
(
getNotUndefinedVal
(
data
.
bean
.
task
?.
taskCurrentAssigneeMation
?.
name
));
},
async
:
false
});
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
activitimode016
"
,
params
:
{
taskId
:
taskId
,
processInstanceId
:
processInstanceId
},
type
:
'
json
'
,
method
:
'
GET
'
,
callback
:
function
(
j
){
...
...
activiti/src/main/resources/template/js/myActiviti/pendingProcess.js
浏览文件 @
a699a255
...
...
@@ -44,6 +44,9 @@ layui.config({
{
field
:
'
createTime
'
,
title
:
'
申请时间
'
,
align
:
'
center
'
,
width
:
150
,
templet
:
function
(
d
)
{
return
d
.
processMation
.
createTime
;
}},
{
field
:
'
assignee
'
,
title
:
'
当前审批人
'
,
width
:
120
,
templet
:
function
(
d
)
{
return
d
.
processMation
.
createName
;
}},
{
field
:
'
name
'
,
title
:
'
当前节点
'
,
width
:
130
,
templet
:
function
(
d
)
{
return
'
[
'
+
d
.
name
+
'
]
'
;
}},
...
...
activiti/src/main/resources/template/js/myActiviti/processedProcess.js
浏览文件 @
a699a255
var
processInstanceId
=
""
;
//流程id
var
hisTaskId
=
""
;
//历史审批任务id
// 流程id
var
processInstanceId
=
""
;
// 历史审批任务id
var
hisTaskId
=
""
;
layui
.
config
({
base
:
basePath
,
...
...
@@ -14,53 +15,69 @@ layui.config({
table
=
layui
.
table
,
form
=
layui
.
form
;
// 我的历史任务
// 我的历史
审批
任务
table
.
render
({
id
:
'
messageMyHistoryTaskTable
'
,
elem
:
'
#messageMyHistoryTaskTable
'
,
method
:
'
post
'
,
url
:
flowableBasePath
+
'
activitimode014
'
,
where
:{}
,
where
:
getTableParams
()
,
even
:
true
,
page
:
true
,
limits
:
getLimits
(),
limit
:
getLimit
(),
cols
:
[[
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
},
{
field
:
'
processInstanceId
'
,
title
:
'
流程ID
'
,
width
:
100
},
{
field
:
'
taskType
'
,
title
:
'
类型
'
,
width
:
150
,
templet
:
function
(
d
)
{
return
d
.
processMation
.
title
;
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
rowspan
:
'
2
'
,
type
:
'
numbers
'
},
{
field
:
'
processInstanceId
'
,
title
:
'
流程ID
'
,
rowspan
:
'
2
'
,
width
:
280
,
templet
:
function
(
d
)
{
return
'
<a lay-event="details" class="notice-title-click">
'
+
getNotUndefinedVal
(
d
.
hisTask
?.
processInstanceId
)
+
'
</a>
'
;
}},
{
field
:
'
createName
'
,
title
:
'
申请人
'
,
width
:
12
0
,
templet
:
function
(
d
)
{
return
d
.
processMation
.
createName
;
{
field
:
'
taskType
'
,
title
:
'
类型
'
,
rowspan
:
'
2
'
,
width
:
15
0
,
templet
:
function
(
d
)
{
return
getNotUndefinedVal
(
d
.
processMation
.
title
)
;
}},
{
field
:
'
create
Time
'
,
title
:
'
申请时间
'
,
align
:
'
center
'
,
width
:
15
0
,
templet
:
function
(
d
)
{
return
d
.
processMation
.
createTime
;
{
field
:
'
create
Name
'
,
title
:
'
申请人
'
,
rowspan
:
'
2
'
,
width
:
12
0
,
templet
:
function
(
d
)
{
return
getNotUndefinedVal
(
d
.
processMation
?.
createName
)
;
}},
{
field
:
'
name
'
,
title
:
'
我处理的节点
'
,
width
:
130
,
templet
:
function
(
d
)
{
return
'
[
'
+
d
.
name
+
'
]
'
;
}},
{
field
:
'
agencyName
'
,
title
:
'
受理人
'
,
width
:
80
},
{
field
:
'
endTime
'
,
title
:
'
受理时间
'
,
align
:
'
center
'
,
width
:
140
,
templet
:
function
(
d
)
{
if
(
!
isNull
(
d
.
endTime
)){
var
str
=
d
.
endTime
.
toString
();
str
=
str
.
substring
(
0
,
str
.
length
-
3
);
return
date
(
'
Y-m-d H:i
'
,
str
);
}
else
{
return
""
;
}
}},
{
field
:
'
weatherEnd
'
,
title
:
'
审批进度
'
,
align
:
'
left
'
,
width
:
80
,
templet
:
function
(
d
)
{
if
(
d
.
weatherEnd
==
0
){
{
field
:
'
createTime
'
,
title
:
'
申请时间
'
,
rowspan
:
'
2
'
,
align
:
'
center
'
,
width
:
150
,
templet
:
function
(
d
)
{
return
getNotUndefinedVal
(
d
.
processMation
?.
createTime
);
}},
{
field
:
'
assigneeList
'
,
title
:
'
当前审批人
'
,
align
:
'
left
'
,
rowspan
:
'
2
'
,
width
:
150
,
templet
:
function
(
d
)
{
if
(
!
isNull
(
d
.
assigneeList
))
{
var
str
=
""
;
$
.
each
(
d
.
assigneeList
,
function
(
i
,
item
)
{
str
+=
'
<span class="layui-badge layui-bg-blue">
'
+
item
.
name
+
'
</span><br>
'
;
});
return
str
;
}
return
''
;
}},
{
title
:
'
我处理的
'
,
colspan
:
'
2
'
,
align
:
'
center
'
},
{
field
:
'
weatherEnd
'
,
title
:
'
审批进度
'
,
align
:
'
left
'
,
rowspan
:
'
2
'
,
width
:
80
,
templet
:
function
(
d
)
{
if
(
d
.
weatherEnd
==
0
)
{
return
"
<span class='state-down'>进行中</span>
"
;
}
else
{
return
"
<span class='state-up'>已完成</span>
"
;
}
}},
{
title
:
systemLanguage
[
"
com.skyeye.operation
"
][
languageType
],
fixed
:
'
right
'
,
align
:
'
center
'
,
width
:
240
,
toolbar
:
'
#myHistoryTaskTableBar
'
}
]],
{
title
:
systemLanguage
[
"
com.skyeye.operation
"
][
languageType
],
fixed
:
'
right
'
,
rowspan
:
'
2
'
,
align
:
'
center
'
,
width
:
150
,
toolbar
:
'
#myHistoryTaskTableBar
'
}
],
[
{
field
:
'
hisTaskName
'
,
title
:
'
节点
'
,
width
:
130
,
templet
:
function
(
d
)
{
return
'
[
'
+
getNotUndefinedVal
(
d
.
hisTask
?.
name
)
+
'
]
'
;
}},
{
field
:
'
lastUpdateTime
'
,
title
:
'
处理时间
'
,
width
:
130
,
templet
:
function
(
d
)
{
if
(
!
isNull
(
d
.
hisTask
.
endTime
))
{
var
str
=
d
.
hisTask
.
endTime
.
toString
();
str
=
str
.
substring
(
0
,
str
.
length
-
3
);
return
date
(
'
Y-m-d H:i
'
,
str
);
}
else
{
return
""
;
}
}}
]],
done
:
function
(
json
)
{
matchingLanguage
();
initTableSearchUtil
.
initAdvancedSearch
(
this
,
json
.
searchFilter
,
form
,
"
请输入流程ID
"
,
function
()
{
table
.
reloadData
(
"
messageMyHistoryTaskTable
"
,
{
page
:
{
curr
:
1
},
where
:
getTableParams
()});
});
}
});
...
...
@@ -76,11 +93,9 @@ layui.config({
}
});
//撤回
//
撤回
function
withdraw
(
data
)
{
//流程id
processInstanceId
=
data
.
processInstanceId
;
//历史审批任务id
hisTaskId
=
data
.
hisTaskId
;
_openNewWindows
({
url
:
"
../../tpl/activitiCommon/revokeActiviti.html
"
,
...
...
@@ -89,12 +104,12 @@ layui.config({
area
:
[
'
70vw
'
,
'
40vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
reloadMyHistoryTask
Table
();
load
Table
();
}
});
}
//刷新流程图
//
刷新流程图
function
refreshPic
(
data
)
{
layer
.
confirm
(
'
确认重新生成流程图吗?
'
,
{
icon
:
3
,
title
:
'
刷新流程图操作
'
},
function
(
i
)
{
layer
.
close
(
i
);
...
...
@@ -104,14 +119,18 @@ layui.config({
});
}
//刷新我的历史任务
form
.
render
();
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadMyHistoryTaskTable
"
,
function
()
{
reloadMyHistoryTask
Table
();
load
Table
();
});
function
reloadMyHistoryTaskTable
(){
table
.
reloadData
(
"
messageMyHistoryTaskTable
"
,
{
where
:{}});
}
function
loadTable
()
{
table
.
reloadData
(
"
messageMyHistoryTaskTable
"
,
{
where
:
getTableParams
()});
}
function
getTableParams
()
{
return
$
.
extend
(
true
,
{},
initTableSearchUtil
.
getSearchValue
(
"
messageMyHistoryTaskTable
"
));
}
exports
(
'
processedProcess
'
,
{});
});
activiti/src/main/resources/template/tpl/activitiCommon/processInstanceDetails.html
浏览文件 @
a699a255
...
...
@@ -32,6 +32,15 @@
<div
id=
"showForm"
style=
"height: auto; width: 100%; float: left;"
>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<span
class=
"hr-title"
>
审批信息
</span><hr>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
当前审批人:
</label>
<div
class=
"layui-input-block ver-center"
id=
"taskCurrentAssignee"
>
</div>
</div>
</div>
<div
class=
"layui-tab-item"
>
<img
alt=
""
src=
""
id=
"processInstanceIdImg"
>
...
...
activiti/src/main/resources/template/tpl/approvalActiviti/approvalProcessTask.html
浏览文件 @
a699a255
...
...
@@ -42,6 +42,12 @@
<div
class=
"layui-form-item layui-col-xs12"
id=
"multiInstanceBox"
>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
当前审批人:
</label>
<div
class=
"layui-input-block ver-center"
id=
"taskCurrentAssignee"
>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
><span
id=
"resultTitle"
>
审批结果
</span><i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block winui-radio"
>
...
...
activiti/src/main/resources/template/tpl/myActiviti/processedProcess.html
浏览文件 @
a699a255
...
...
@@ -5,28 +5,25 @@
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
<style>
.layui-table-cell
{
height
:
auto
;
text-overflow
:
inherit
;
overflow
:
visible
;
white-space
:
normal
;
word-wrap
:
break-word
;
}
</style>
</head>
<body>
<div
class=
"txtcenter"
style=
"margin:0 auto;padding:10px;"
>
<form
class=
"layui-form layui-form-pane"
action=
""
autocomplete=
"off"
>
<div
class=
"layui-form-item"
>
<div
class=
"layui-inline"
>
<!-- <button type="reset" class="layui-btn layui-btn-primary list-form-search"><language showName="com.skyeye.reset"></language></button>
<button class="layui-btn list-form-search" type="button" id="formSearch"><language showName="com.skyeye.search2"></language></button> -->
</div>
</div>
</form>
</div>
<div
class=
"winui-toolbar"
>
<div
class=
"winui-tool"
>
<button
id=
"reloadMyHistoryTaskTable"
class=
"winui-toolbtn"
><i
class=
"fa fa-refresh"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.refreshDataBtn"
></language></button>
<button
id=
"reloadMyHistoryTaskTable"
class=
"winui-toolbtn
search-table-btn-right
"
><i
class=
"fa fa-refresh"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.refreshDataBtn"
></language></button>
</div>
</div>
<div
style=
"margin:auto 10px;"
>
<div
style=
"margin:
auto 10px;"
>
<table
id=
"messageMyHistoryTaskTable"
lay-filter=
"messageMyHistoryTaskTable"
></table>
<script
type=
"text/html"
id=
"myHistoryTaskTableBar"
>
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
details
"
>
详情
<
/a
>
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
refreshPic
"
>
刷新流程图
<
/a
>
{{
#
if
(
d
.
weatherEnd
==
0
){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-danger
"
lay
-
event
=
"
withdraw
"
>
撤回
<
/a
>
...
...
web/src/main/resources/bootstrap.yml
浏览文件 @
a699a255
...
...
@@ -10,9 +10,9 @@ spring:
cloud
:
nacos
:
discovery
:
server-addr
:
172.18.92.40
:9000
# 配置服务注册nacos地址
server-addr
:
localhost
:9000
# 配置服务注册nacos地址
config
:
# 指定nacos server的地址
server-addr
:
172.18.92.40
:9000
server-addr
:
localhost
:9000
file-extension
:
yml
namespace
:
dev
\ No newline at end of file
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录