Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
1bd1dc99
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看板
提交
1bd1dc99
编写于
5月 18, 2024
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
feat:代办,已办,我的请求代码修改
上级
b9f2d0e7
变更
5
隐藏空白更改
内联
并排
Showing
5 changed file
with
66 addition
and
147 deletion
+66
-147
activiti/src/main/resources/template/js/myActiviti/initiatedProcess.js
...main/resources/template/js/myActiviti/initiatedProcess.js
+36
-69
activiti/src/main/resources/template/js/myActiviti/pendingProcess.js
...c/main/resources/template/js/myActiviti/pendingProcess.js
+16
-36
activiti/src/main/resources/template/tpl/myActiviti/initiatedProcess.html
...n/resources/template/tpl/myActiviti/initiatedProcess.html
+1
-20
activiti/src/main/resources/template/tpl/myActiviti/pendingProcess.html
...ain/resources/template/tpl/myActiviti/pendingProcess.html
+11
-20
web/src/main/resources/bootstrap.yml
web/src/main/resources/bootstrap.yml
+2
-2
未找到文件。
activiti/src/main/resources/template/js/myActiviti/initiatedProcess.js
浏览文件 @
1bd1dc99
var
processInstanceId
=
""
;
//流程id
var
sequenceId
=
""
;
//动态表单类型的流程
var
rowId
=
""
;
//用户提交的表单数据的id
var
taskId
=
""
;
//任务id
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
table
'
,
'
jquery
'
,
'
winui
'
,
'
form
'
,
'
laydate
'
],
function
(
exports
)
{
}).
define
([
'
window
'
,
'
table
'
,
'
jquery
'
,
'
winui
'
,
'
form
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
$
=
layui
.
$
,
table
=
layui
.
table
,
laydate
=
layui
.
laydate
,
form
=
layui
.
form
;
// '申请时间'页面的选取时间段表格
laydate
.
render
({
elem
:
'
#createTime
'
,
range
:
'
~
'
});
//申请时间
var
startTime
=
""
,
endTime
=
""
;
// 我启动的流程
table
.
render
({
id
:
'
messageMyStartTable
'
,
elem
:
'
#messageMyStartTable
'
,
method
:
'
post
'
,
url
:
flowableBasePath
+
'
activitimode013
'
,
where
:
{
startTime
:
startTime
,
endTime
:
endTime
,
processInstanceId
:
$
(
"
#processInstanceId
"
).
val
()}
,
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
;
{
field
:
'
processInstanceId
'
,
title
:
'
流程ID
'
,
width
:
280
,
templet
:
function
(
d
)
{
return
'
<a lay-event="details" class="notice-title-click">
'
+
getNotUndefinedVal
(
d
.
processInstanceId
)
+
'
</a>
'
;
}},
{
field
:
'
createName
'
,
title
:
'
申请人
'
,
width
:
12
0
,
templet
:
function
(
d
)
{
return
d
.
processMation
.
createName
;
{
field
:
'
taskType
'
,
title
:
'
类型
'
,
width
:
15
0
,
templet
:
function
(
d
)
{
return
getNotUndefinedVal
(
d
.
processMation
?.
title
)
;
}},
{
field
:
'
createTime
'
,
title
:
'
申请时间
'
,
align
:
'
center
'
,
width
:
150
,
templet
:
function
(
d
)
{
return
d
.
processMation
.
createTime
;
return
getNotUndefinedVal
(
d
.
processMation
?.
createTime
);
}},
{
field
:
'
assigneeList
'
,
title
:
'
当前审批人
'
,
align
:
'
left
'
,
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
''
;
}},
{
field
:
'
name
'
,
title
:
'
当前节点
'
,
width
:
130
,
templet
:
function
(
d
)
{
return
'
[
'
+
d
.
name
+
'
]
'
;
}},
{
field
:
'
agencyName
'
,
title
:
'
审批人
'
,
width
:
120
},
{
field
:
'
suspended
'
,
title
:
'
状态<i id="stateDesc" class="fa fa-question-circle" style="margin-left: 5px"></i>
'
,
align
:
'
center
'
,
width
:
130
,
templet
:
function
(
d
)
{
if
(
d
.
suspended
)
{
if
(
d
.
suspended
)
{
return
"
<span class='state-down'>挂起</span>
"
;
}
else
{
return
"
<span class='state-up'>正常</span>
"
;
}
}},
{
field
:
'
weatherEnd
'
,
title
:
'
审批进度
'
,
align
:
'
left
'
,
width
:
80
,
templet
:
function
(
d
)
{
if
(
d
.
weatherEnd
==
1
)
{
return
"
<span class='state-up'>已完成</span>
"
;
}
else
{
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
:
'
#myStartTableBar
'
}
]],
done
:
function
(
json
)
{
matchingLanguage
();
initTableSearchUtil
.
initAdvancedSearch
(
this
,
json
.
searchFilter
,
form
,
"
请输入流程ID
"
,
function
()
{
table
.
reloadData
(
"
messageMyStartTable
"
,
{
page
:
{
curr
:
1
},
where
:
getTableParams
()});
});
}
});
...
...
@@ -83,7 +76,7 @@ layui.config({
}
});
//刷新流程图
//
刷新流程图
function
refreshPic
(
data
)
{
layer
.
confirm
(
'
确认重新生成流程图吗?
'
,
{
icon
:
3
,
title
:
'
刷新流程图操作
'
},
function
(
i
)
{
layer
.
close
(
i
);
...
...
@@ -92,45 +85,19 @@ layui.config({
}});
});
}
//刷新我启用的流程
form
.
render
();
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadMyStartTable
"
,
function
()
{
reloadMyStartTable
();
});
//搜索
$
(
"
body
"
).
on
(
"
click
"
,
"
#formSearch
"
,
function
()
{
searchMyStartTable
();
});
function
reloadMyStartTable
(){
if
(
!
isNull
(
$
(
"
#createTime
"
).
val
()))
{
//一定要记得,当createTime为空时
startTime
=
$
(
"
#createTime
"
).
val
().
split
(
'
~
'
)[
0
].
trim
()
+
'
00:00:00
'
;
endTime
=
$
(
"
#createTime
"
).
val
().
split
(
'
~
'
)[
1
].
trim
()
+
'
23:59:59
'
;
}
else
{
startTime
=
""
;
endTime
=
""
;
}
table
.
reloadData
(
"
messageMyStartTable
"
,
{
where
:{
startTime
:
startTime
,
endTime
:
endTime
,
processInstanceId
:
$
(
"
#processInstanceId
"
).
val
()}});
}
function
searchMyStartTable
(){
if
(
!
isNull
(
$
(
"
#createTime
"
).
val
()))
{
//一定要记得,当createTime为空时
startTime
=
$
(
"
#createTime
"
).
val
().
split
(
'
~
'
)[
0
].
trim
()
+
'
00:00:00
'
;
endTime
=
$
(
"
#createTime
"
).
val
().
split
(
'
~
'
)[
1
].
trim
()
+
'
23:59:59
'
;
}
else
{
startTime
=
""
;
endTime
=
""
;
}
table
.
reloadData
(
"
messageMyStartTable
"
,
{
page
:
{
curr
:
1
},
where
:{
startTime
:
startTime
,
endTime
:
endTime
,
processInstanceId
:
$
(
"
#processInstanceId
"
).
val
()}});
}
$
(
"
body
"
).
on
(
"
click
"
,
"
#stateDesc
"
,
function
()
{
layer
.
tips
(
'
该状态分为挂机和正常,被挂机待办无法进行审批操作
'
,
$
(
"
#stateDesc
"
),
{
tips
:
[
1
,
'
#3595CC
'
],
time
:
4000
});
loadTable
();
});
function
loadTable
()
{
table
.
reloadData
(
"
messageMyStartTable
"
,
{
where
:
getTableParams
()});
}
function
getTableParams
()
{
return
$
.
extend
(
true
,
{},
initTableSearchUtil
.
getSearchValue
(
"
messageMyStartTable
"
));
}
exports
(
'
initiatedProcess
'
,
{});
});
activiti/src/main/resources/template/js/myActiviti/pendingProcess.js
浏览文件 @
1bd1dc99
...
...
@@ -5,8 +5,6 @@ var taskType = "";//流程类型
var
processInstanceId
=
""
;
//流程id
var
sequenceId
=
""
;
//动态表单类型的流程
// 待我审批
layui
.
config
({
base
:
basePath
,
...
...
@@ -36,22 +34,19 @@ layui.config({
return
'
<a lay-event="details" class="notice-title-click">
'
+
getNotUndefinedVal
(
d
.
processInstanceId
)
+
'
</a>
'
;
}},
{
field
:
'
taskType
'
,
title
:
'
类型
'
,
width
:
150
,
templet
:
function
(
d
)
{
return
d
.
processMation
.
title
;
return
getNotUndefinedVal
(
d
.
processMation
?.
title
)
;
}},
{
field
:
'
createName
'
,
title
:
'
申请人
'
,
width
:
120
,
templet
:
function
(
d
)
{
return
d
.
processMation
.
createName
;
return
getNotUndefinedVal
(
d
.
processMation
?.
createName
)
;
}},
{
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
;
return
getNotUndefinedVal
(
d
.
processMation
?.
createTime
);
}},
{
field
:
'
n
ame
'
,
title
:
'
当前节点
'
,
width
:
130
,
templet
:
function
(
d
)
{
return
'
[
'
+
d
.
n
ame
+
'
]
'
;
{
field
:
'
taskN
ame
'
,
title
:
'
当前节点
'
,
width
:
130
,
templet
:
function
(
d
)
{
return
'
[
'
+
d
.
taskN
ame
+
'
]
'
;
}},
{
field
:
'
suspended
'
,
title
:
'
状态<i id="stateDesc" class="fa fa-question-circle" style="margin-left: 5px"></i>
'
,
align
:
'
center
'
,
width
:
1
3
0
,
templet
:
function
(
d
)
{
if
(
d
.
suspended
)
{
{
field
:
'
suspended
'
,
title
:
'
状态<i id="stateDesc" class="fa fa-question-circle" style="margin-left: 5px"></i>
'
,
align
:
'
center
'
,
width
:
1
0
0
,
templet
:
function
(
d
)
{
if
(
d
.
suspended
)
{
return
"
<span class='state-down'>挂起</span>
"
;
}
else
{
return
"
<span class='state-up'>正常</span>
"
;
...
...
@@ -61,6 +56,9 @@ layui.config({
]],
done
:
function
(
json
)
{
matchingLanguage
();
initTableSearchUtil
.
initAdvancedSearch
(
this
,
json
.
searchFilter
,
form
,
"
请输入流程ID
"
,
function
()
{
table
.
reloadData
(
"
messageMyNeedDealtTable
"
,
{
page
:
{
curr
:
1
},
where
:
getTableParams
()});
});
}
});
...
...
@@ -76,7 +74,7 @@ layui.config({
// 提交任务
function
subTasks
(
data
,
obj
){
taskId
=
data
.
i
d
;
taskId
=
data
.
taskI
d
;
taskType
=
data
.
taskType
;
processInstanceId
=
data
.
processInstanceId
;
_openNewWindows
({
...
...
@@ -86,39 +84,21 @@ layui.config({
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
"
提交成功
"
,
{
icon
:
1
,
time
:
2000
});
load
MyNeedDealt
Table
();
loadTable
();
}});
}
$
(
"
body
"
).
on
(
"
click
"
,
"
#stateDesc
"
,
function
()
{
layer
.
tips
(
'
该状态分为挂机和正常,被挂机待办无法进行审批操作
'
,
$
(
"
#stateDesc
"
),
{
tips
:
[
1
,
'
#3595CC
'
],
time
:
4000
});
});
form
.
render
();
form
.
on
(
'
submit(formSearch)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
table
.
reloadData
(
"
messageMyNeedDealtTable
"
,
{
page
:
{
curr
:
1
},
where
:
getTableParams
()});
}
return
false
;
});
// 刷新我的待办
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadMyNeedDealtTable
"
,
function
()
{
load
MyNeedDealt
Table
();
loadTable
();
});
function
load
MyNeedDealtTable
()
{
function
load
Table
()
{
table
.
reloadData
(
"
messageMyNeedDealtTable
"
,
{
where
:
getTableParams
()});
}
function
getTableParams
()
{
return
{
taskName
:
$
(
"
#taskName
"
).
val
(),
processInstanceId
:
$
(
"
#processInstanceId
"
).
val
()
};
function
getTableParams
()
{
return
$
.
extend
(
true
,
{},
initTableSearchUtil
.
getSearchValue
(
"
messageMyNeedDealtTable
"
));
}
exports
(
'
pendingProcess
'
,
{});
...
...
activiti/src/main/resources/template/tpl/myActiviti/initiatedProcess.html
浏览文件 @
1bd1dc99
...
...
@@ -7,33 +7,14 @@
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</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"
>
<label
class=
"layui-form-label"
>
流程ID
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"processInstanceId"
name=
"processInstanceId"
placeholder=
"请输入流程ID"
class=
"layui-input"
/>
</div>
<label
class=
"layui-form-label"
>
申请时间
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"createTime"
name=
"createTime"
placeholder=
"请选择申请时间"
class=
"layui-input"
/>
</div>
<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=
"reloadMyStartTable"
class=
"winui-toolbtn"
><i
class=
"fa fa-refresh"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.refreshDataBtn"
></language></button>
<button
id=
"reloadMyStartTable"
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;"
>
<table
id=
"messageMyStartTable"
lay-filter=
"messageMyStartTable"
></table>
<script
type=
"text/html"
id=
"myStartTableBar"
>
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
details
"
>
详情
<
/a
>
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
refreshPic
"
>
刷新流程图
<
/a
>
</script>
</div>
...
...
activiti/src/main/resources/template/tpl/myActiviti/pendingProcess.html
浏览文件 @
1bd1dc99
...
...
@@ -5,35 +5,26 @@
<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"
>
<label
class=
"layui-form-label"
>
流程ID
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"processInstanceId"
name=
"processInstanceId"
placeholder=
"请输入流程ID"
class=
"layui-input"
/>
</div>
<label
class=
"layui-form-label"
>
任务名称
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"taskName"
name=
"taskName"
placeholder=
"请输入任务名称"
class=
"layui-input"
/>
</div>
<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"
lay-submit
lay-filter=
"formSearch"
><language
showName=
"com.skyeye.search2"
></language></button>
</div>
</div>
</form>
</div>
<div
class=
"winui-toolbar"
>
<div
class=
"winui-tool"
>
<button
id=
"reloadMyNeedDealtTable"
class=
"winui-toolbtn"
><i
class=
"fa fa-refresh"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.refreshDataBtn"
></language></button>
<button
id=
"reloadMyNeedDealtTable"
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;"
>
<table
id=
"messageMyNeedDealtTable"
lay-filter=
"messageMyNeedDealtTable"
></table>
<script
type=
"text/html"
id=
"myNeedDealtTableBar"
>
{{
#
if
(
!
d
.
suspended
)
{
}}
{{
#
if
(
!
d
.
suspended
)
{
}}
<
a
class
=
"
layui-btn layui-btn-normal layui-btn-xs
"
lay
-
event
=
"
subTasks
"
>
审批
<
/a
>
{{
#
}
}}
</script>
...
...
web/src/main/resources/bootstrap.yml
浏览文件 @
1bd1dc99
...
...
@@ -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.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录