Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Skyeye云
Skyeye
提交
822c6605
S
Skyeye
项目概览
Skyeye云
/
Skyeye
通知
1434
Star
162
Fork
130
代码
文件
提交
分支
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看板
提交
822c6605
编写于
8月 03, 2023
作者:
Skyeye云
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
项目任务重构
上级
4a6bd535
变更
16
隐藏空白更改
内联
并排
Showing
16 changed file
with
313 addition
and
121 deletion
+313
-121
pro/src/main/resources/template/js/proTask/proTaskList.js
pro/src/main/resources/template/js/proTask/proTaskList.js
+284
-0
pro/src/main/resources/template/js/proTask/protaskadd.js
pro/src/main/resources/template/js/proTask/protaskadd.js
+0
-0
pro/src/main/resources/template/js/proTask/protaskdetails.js
pro/src/main/resources/template/js/proTask/protaskdetails.js
+0
-0
pro/src/main/resources/template/js/proTask/protaskedit.js
pro/src/main/resources/template/js/proTask/protaskedit.js
+0
-0
pro/src/main/resources/template/js/proTask/protaskexecution.js
...rc/main/resources/template/js/proTask/protaskexecution.js
+0
-0
pro/src/main/resources/template/tpl/proTask/executionresultshow.html
...n/resources/template/tpl/proTask/executionresultshow.html
+0
-0
pro/src/main/resources/template/tpl/proTask/proTaskList.html
pro/src/main/resources/template/tpl/proTask/proTaskList.html
+25
-0
pro/src/main/resources/template/tpl/proTask/protaskadd.html
pro/src/main/resources/template/tpl/proTask/protaskadd.html
+0
-0
pro/src/main/resources/template/tpl/proTask/protaskdetails.html
...c/main/resources/template/tpl/proTask/protaskdetails.html
+0
-0
pro/src/main/resources/template/tpl/proTask/protaskedit.html
pro/src/main/resources/template/tpl/proTask/protaskedit.html
+0
-0
pro/src/main/resources/template/tpl/proTask/protaskeditTemplate.tpl
...in/resources/template/tpl/proTask/protaskeditTemplate.tpl
+0
-0
pro/src/main/resources/template/tpl/proTask/protaskexecution.html
...main/resources/template/tpl/proTask/protaskexecution.html
+0
-0
pro/src/main/resources/template/tpl/proTask/protaskexecutionTemplate.tpl
...sources/template/tpl/proTask/protaskexecutionTemplate.tpl
+0
-0
pro/src/main/resources/template/tpl/proTask/taskinstructionsshow.html
.../resources/template/tpl/proTask/taskinstructionsshow.html
+0
-0
pro/src/main/resources/template/tpl/protask/protasklist.html
pro/src/main/resources/template/tpl/protask/protasklist.html
+0
-121
web/src/main/resources/template/json/skyeyeClassEnum.json
web/src/main/resources/template/json/skyeyeClassEnum.json
+4
-0
未找到文件。
pro/src/main/resources/template/js/pro
task/protaskl
ist.js
→
pro/src/main/resources/template/js/pro
Task/proTaskL
ist.js
浏览文件 @
822c6605
var
rowId
=
""
;
var
objectKey
=
""
;
var
objectId
=
""
;
var
isSplitTask
=
false
;
//是否是拆分的新增
var
restWorkload
=
""
;
//主任务拆分剩下的工作量
layui
.
config
({
layui
.
config
({
base
:
basePath
,
base
:
basePath
,
version
:
skyeyeVersion
version
:
skyeyeVersion
}).
extend
({
}).
extend
({
window
:
'
js/winui.window
'
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
,
'
form
'
,
'
laydate
'
,
'
tableTreeDj
'
],
function
(
exports
)
{
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
,
'
form
'
],
function
(
exports
)
{
winui
.
renderColor
();
winui
.
renderColor
();
var
$
=
layui
.
$
,
var
$
=
layui
.
$
,
form
=
layui
.
form
,
form
=
layui
.
form
,
laydate
=
layui
.
laydate
,
table
=
layui
.
table
;
tableTree
=
layui
.
tableTreeDj
;
objectKey
=
GetUrlParam
(
"
objectKey
"
);
var
serviceClassName
=
sysServiceMation
[
"
proTask
"
][
"
key
"
];
objectId
=
GetUrlParam
(
"
objectId
"
);
if
(
isNull
(
objectKey
)
||
isNull
(
objectId
))
{
winui
.
window
.
msg
(
"
请传入适用对象信息
"
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
authBtn
(
'
1574644930825
'
);
var
authPermission
=
teamObjectPermissionUtil
.
checkTeamBusinessAuthPermission
(
objectId
,
'
taskAuthEnum
'
);
var
btnStr
=
`<div style="" class="type-group" id="temp">`
;
// 任务开始时间
var
firstBtn
=
true
;
laydate
.
render
({
elem
:
'
#startTime
'
,
range
:
'
~
'
});
if
(
authPermission
[
'
list
'
])
{
var
defaultClassName
=
firstBtn
?
'
plan-select
'
:
''
;
firstBtn
=
false
;
btnStr
+=
`<button type="button" class="layui-btn layui-btn-primary type-btn
${
defaultClassName
}
" data-type="list" table-id="messageTable"><i class="layui-icon"></i>所有任务</button>`
}
if
(
authPermission
[
'
myExecute
'
])
{
var
defaultClassName
=
firstBtn
?
'
plan-select
'
:
''
;
firstBtn
=
false
;
btnStr
+=
`<button type="button" class="layui-btn layui-btn-primary type-btn
${
defaultClassName
}
" data-type="
${
myExecute
}
" table-id="messageTable"><i class="layui-icon"></i>我执行的任务</button>`
}
if
(
authPermission
[
'
myCreate
'
])
{
var
defaultClassName
=
firstBtn
?
'
plan-select
'
:
''
;
btnStr
+=
`<button type="button" class="layui-btn layui-btn-primary type-btn
${
defaultClassName
}
" data-type="myCreate" table-id="messageTable"><i class="layui-icon"></i>我创建的任务</button>`
}
btnStr
+=
`</div>`
;
$
(
"
.winui-toolbar
"
).
before
(
btnStr
);
tableTree
.
render
({
table
.
render
({
id
:
'
messageTable
'
,
id
:
'
messageTable
'
,
elem
:
'
#messageTable
'
,
elem
:
'
#messageTable
'
,
method
:
'
post
'
,
method
:
'
post
'
,
url
:
flowableBasePath
+
'
protask011
'
,
url
:
sysMainMation
.
crmBasePath
+
'
queryCrmOpportunityList
'
,
where
:
getTableParams
(),
where
:
getTableParams
(),
cols
:
[[
even
:
true
,
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
,
rowspan
:
2
},
page
:
true
,
{
field
:
'
taskName
'
,
title
:
'
名称
'
,
rowspan
:
2
,
width
:
200
},
limits
:
getLimits
(),
{
field
:
'
processInstanceId
'
,
title
:
'
流程ID
'
,
rowspan
:
2
,
width
:
70
,
templet
:
function
(
d
)
{
limit
:
getLimit
(),
return
'
<a lay-event="processDetails" class="notice-title-click">
'
+
d
.
processInstanceId
+
'
</a>
'
;
cols
:
[[
}},
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
},
{
field
:
'
state
'
,
title
:
'
审批状态
'
,
rowspan
:
2
,
width
:
80
,
templet
:
function
(
d
)
{
{
field
:
'
name
'
,
title
:
'
任务名称
'
,
width
:
200
,
templet
:
function
(
d
)
{
if
(
d
.
state
==
'
0
'
)
{
return
'
<a lay-event="details" class="notice-title-click">
'
+
d
.
name
+
'
</a>
'
;
return
"
草稿
"
;
}},
}
else
if
(
d
.
state
==
'
1
'
)
{
{
field
:
'
oddNumber
'
,
title
:
'
任务编号
'
,
align
:
'
left
'
,
width
:
120
},
return
"
<span class='state-new'>审核中</span>
"
;
{
field
:
'
startTime
'
,
title
:
'
开始时间
'
,
align
:
'
center
'
,
width
:
100
},
}
else
if
(
d
.
state
==
'
2
'
)
{
{
field
:
'
endTime
'
,
title
:
'
结束时间
'
,
align
:
'
center
'
,
width
:
100
},
return
"
<span class='state-new'>执行中</span>
"
;
{
field
:
'
estimatedWorkload
'
,
title
:
'
预计工作量
'
,
align
:
'
center
'
,
width
:
120
},
}
else
if
(
d
.
state
==
'
3
'
)
{
{
field
:
'
actualWorkload
'
,
title
:
'
实际工作量
'
,
align
:
'
center
'
,
width
:
120
},
return
"
<span class='state-new'>执行完成</span>
"
;
{
field
:
'
processInstanceId
'
,
title
:
'
流程ID
'
,
align
:
'
center
'
,
width
:
100
,
templet
:
function
(
d
)
{
}
else
if
(
d
.
state
==
'
4
'
)
{
return
'
<a lay-event="processDetails" class="notice-title-click">
'
+
d
.
processInstanceId
+
'
</a>
'
;
return
"
<span class='state-error'>关闭</span>
"
;
}},
}
else
if
(
d
.
state
==
'
5
'
)
{
{
field
:
'
state
'
,
title
:
'
状态
'
,
width
:
90
,
templet
:
function
(
d
)
{
return
"
<span class='state-error'>撤销</span>
"
;
return
skyeyeClassEnumUtil
.
getEnumDataNameByCodeAndKey
(
"
taskStateEnum
"
,
'
id
'
,
d
.
state
,
'
name
'
);
}
else
if
(
d
.
state
==
'
6
'
)
{
}},
return
"
<span class='state-down'>作废</span>
"
;
{
field
:
'
createName
'
,
title
:
systemLanguage
[
"
com.skyeye.createName
"
][
languageType
],
align
:
'
left
'
,
width
:
120
},
}
else
if
(
d
.
state
==
'
11
'
)
{
{
field
:
'
createTime
'
,
title
:
systemLanguage
[
"
com.skyeye.createTime
"
][
languageType
],
align
:
'
center
'
,
width
:
150
},
return
"
<span class='state-up'>审核通过</span>
"
;
{
field
:
'
lastUpdateName
'
,
title
:
systemLanguage
[
"
com.skyeye.lastUpdateName
"
][
languageType
],
align
:
'
left
'
,
width
:
120
},
}
else
if
(
d
.
state
==
'
12
'
)
{
{
field
:
'
lastUpdateTime
'
,
title
:
systemLanguage
[
"
com.skyeye.lastUpdateTime
"
][
languageType
],
align
:
'
center
'
,
width
:
150
},
return
"
<span class='state-down'>审核不通过</span>
"
;
{
title
:
systemLanguage
[
"
com.skyeye.operation
"
][
languageType
],
fixed
:
'
right
'
,
align
:
'
center
'
,
width
:
250
,
templet
:
function
(
d
)
{
var
str
=
''
;
if
(
d
.
editRow
==
1
)
{
if
(
authPermission
[
'
submitToApproval
'
])
{
str
+=
'
<a class="layui-btn layui-btn-xs" lay-event="subApproval">提交审批</a>
'
;
}
if
(
authPermission
[
'
edit
'
])
{
str
+=
'
<a class="layui-btn layui-btn-xs layui-btn-normal" lay-event="edit"><language showName="com.skyeye.editBtn"></language></a>
'
;
}
if
(
authPermission
[
'
delete
'
])
{
str
+=
'
<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="del">删除</a>
'
;
}
if
(
authPermission
[
'
invalid
'
])
{
str
+=
'
<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="cancellation">作废</a>
'
;
}
}
if
(
d
.
editRow
==
2
&&
d
.
state
==
'
inExamine
'
)
{
if
(
authPermission
[
'
revoke
'
])
{
str
+=
'
<a class="layui-btn layui-btn-xs layui-btn-danger" lay-event="revoke">撤销</a>
'
;
}
}
if
(
d
.
state
==
'
pass
'
&&
authPermission
[
'
executing
'
])
{
str
+=
'
<a class="layui-btn layui-btn-xs" lay-event="stateChange">执行</a>
'
;
}
}
}},
if
(
d
.
state
==
'
executing
'
&&
authPermission
[
'
completed
'
])
{
{
field
:
'
projectName
'
,
title
:
'
所属项目
'
,
rowspan
:
2
,
width
:
120
},
str
+=
'
<a class="layui-btn layui-btn-xs" lay-event="stateChange">完成</a>
'
;
{
field
:
'
performId
'
,
title
:
'
执行人
'
,
rowspan
:
2
,
width
:
200
},
}
{
field
:
'
createId
'
,
title
:
systemLanguage
[
"
com.skyeye.createName
"
][
languageType
],
rowspan
:
2
,
width
:
120
},
if
(
d
.
state
==
'
completed
'
&&
authPermission
[
'
close
'
])
{
{
field
:
'
createTime
'
,
title
:
systemLanguage
[
"
com.skyeye.createTime
"
][
languageType
],
rowspan
:
2
,
width
:
115
},
str
+=
'
<a class="layui-btn layui-btn-xs" lay-event="stateChange">关闭</a>
'
;
{
field
:
'
startTime
'
,
title
:
'
开始时间
'
,
rowspan
:
2
,
width
:
80
},
}
{
title
:
'
工作量(天)
'
,
align
:
'
center
'
,
colspan
:
2
},
return
str
;
{
title
:
systemLanguage
[
"
com.skyeye.operation
"
][
languageType
],
align
:
'
center
'
,
width
:
300
,
rowspan
:
2
,
toolbar
:
'
#tableBar
'
}
}}
],
]],
[
done
:
function
(
json
)
{
{
field
:
'
estimatedWorkload
'
,
title
:
'
预估
'
,
align
:
'
center
'
,
width
:
50
},
matchingLanguage
();
{
field
:
'
actualWorkload
'
,
title
:
'
实际
'
,
align
:
'
center
'
,
width
:
50
}
initTableSearchUtil
.
initAdvancedSearch
(
this
,
json
.
searchFilter
,
form
,
"
请输入商机名称
"
,
function
()
{
]
table
.
reloadData
(
"
messageTable
"
,
{
page
:
{
curr
:
1
},
where
:
getTableParams
()});
],
});
done
:
function
(
json
)
{
}
matchingLanguage
();
}
},
{
keyId
:
'
id
'
,
keyPid
:
'
pId
'
,
title
:
'
taskName
'
,
});
});
tableTree
.
getTable
().
on
(
'
tool(messageTable)
'
,
function
(
obj
)
{
tableTree
.
getTable
().
on
(
'
tool(messageTable)
'
,
function
(
obj
)
{
...
@@ -105,12 +138,65 @@ layui.config({
...
@@ -105,12 +138,65 @@ layui.config({
}
}
});
});
// 添加
$
(
"
body
"
).
on
(
"
click
"
,
"
#addBean
"
,
function
()
{
isSplitTask
=
false
;
_openNewWindows
({
url
:
"
../../tpl/protask/protaskadd.html
"
,
title
:
"
新增任务
"
,
pageId
:
"
protaskadd
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
// 执行完成
function
executionOver
(
data
)
{
_openNewWindows
({
url
:
"
../../tpl/protask/protaskexecution.html
"
,
title
:
'
执行信息
'
,
pageId
:
"
protaskexecution
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
}
// 详情
function
details
(
data
)
{
_openNewWindows
({
url
:
"
../../tpl/protask/protaskdetails.html
"
,
title
:
"
任务详情
"
,
pageId
:
"
protaskdetails
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
}});
}
// 编辑
function
edit
(
data
)
{
_openNewWindows
({
url
:
"
../../tpl/protask/protaskedit.html
"
,
title
:
"
编辑任务
"
,
pageId
:
"
protaskedit
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}
});
}
// 开始执行
// 开始执行
function
executionBegin
(
data
,
obj
){
function
executionBegin
(
data
,
obj
){
var
msg
=
obj
?
'
确认开始执行【
'
+
obj
.
data
.
taskName
+
'
】吗?
'
:
'
确认开始执行该任务吗?
'
;
var
msg
=
obj
?
'
确认开始执行【
'
+
obj
.
data
.
taskName
+
'
】吗?
'
:
'
确认开始执行该任务吗?
'
;
layer
.
confirm
(
msg
,
{
icon
:
3
,
title
:
'
任务开始执行
'
},
function
(
index
)
{
layer
.
confirm
(
msg
,
{
icon
:
3
,
title
:
'
任务开始执行
'
},
function
(
index
)
{
layer
.
close
(
index
);
layer
.
close
(
index
);
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
protask012
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
projectBasePath
+
"
protask012
"
,
params
:
{
id
:
data
.
id
},
type
:
'
json
'
,
method
:
'
POST
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
loadTable
();
}});
}});
...
@@ -122,7 +208,7 @@ layui.config({
...
@@ -122,7 +208,7 @@ layui.config({
var
msg
=
obj
?
'
确认关闭【
'
+
obj
.
data
.
taskName
+
'
】吗?
'
:
'
确认关闭该任务吗?
'
;
var
msg
=
obj
?
'
确认关闭【
'
+
obj
.
data
.
taskName
+
'
】吗?
'
:
'
确认关闭该任务吗?
'
;
layer
.
confirm
(
msg
,
{
icon
:
3
,
title
:
'
关闭任务
'
},
function
(
index
)
{
layer
.
confirm
(
msg
,
{
icon
:
3
,
title
:
'
关闭任务
'
},
function
(
index
)
{
layer
.
close
(
index
);
layer
.
close
(
index
);
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
protask014
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
projectBasePath
+
"
protask014
"
,
params
:
{
id
:
data
.
id
},
type
:
'
json
'
,
method
:
'
POST
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
loadTable
();
}});
}});
...
@@ -134,67 +220,23 @@ layui.config({
...
@@ -134,67 +220,23 @@ layui.config({
var
msg
=
'
确认从工作流中撤销选中数据吗?
'
;
var
msg
=
'
确认从工作流中撤销选中数据吗?
'
;
layer
.
confirm
(
msg
,
{
icon
:
3
,
title
:
'
撤销任务审批申请
'
},
function
(
index
)
{
layer
.
confirm
(
msg
,
{
icon
:
3
,
title
:
'
撤销任务审批申请
'
},
function
(
index
)
{
layer
.
close
(
index
);
layer
.
close
(
index
);
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
protask007
"
,
params
:
{
processInstanceId
:
data
.
processInstanceId
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
projectBasePath
+
"
protask007
"
,
params
:
{
processInstanceId
:
data
.
processInstanceId
},
type
:
'
json
'
,
method
:
'
POST
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
"
提交成功
"
,
{
icon
:
1
,
time
:
2000
});
winui
.
window
.
msg
(
"
提交成功
"
,
{
icon
:
1
,
time
:
2000
});
loadTable
();
loadTable
();
}});
}});
});
});
}
}
// 添加
$
(
"
body
"
).
on
(
"
click
"
,
"
#addBean
"
,
function
()
{
isSplitTask
=
false
;
_openNewWindows
({
url
:
"
../../tpl/protask/protaskadd.html
"
,
title
:
"
新增任务
"
,
pageId
:
"
protaskadd
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
});
// 拆分任务
function
taskSplit
(
data
)
{
isSplitTask
=
true
;
rowId
=
data
.
id
;
restWorkload
=
data
.
restWorkload
;
_openNewWindows
({
url
:
"
../../tpl/protask/protaskadd.html
"
,
title
:
'
<span style="color: blue; font-size:21px">
'
+
data
.
taskName
+
'
</span><span style="font-size:12px">[拆分子任务]</span>
'
,
pageId
:
"
protaskadd
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
}
// 执行完成
function
executionOver
(
data
)
{
rowId
=
data
.
id
;
_openNewWindows
({
url
:
"
../../tpl/protask/protaskexecution.html
"
,
title
:
'
执行信息
'
,
pageId
:
"
protaskexecution
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
}
// 任务提交审批
// 任务提交审批
function
subApproval
(
data
,
obj
){
function
subApproval
(
data
,
obj
){
layer
.
confirm
(
systemLanguage
[
"
com.skyeye.approvalOperationMsg
"
][
languageType
],
{
icon
:
3
,
title
:
systemLanguage
[
"
com.skyeye.approvalOperation
"
][
languageType
]},
function
(
index
)
{
layer
.
confirm
(
systemLanguage
[
"
com.skyeye.approvalOperationMsg
"
][
languageType
],
{
icon
:
3
,
title
:
systemLanguage
[
"
com.skyeye.approvalOperation
"
][
languageType
]},
function
(
index
)
{
layer
.
close
(
index
);
layer
.
close
(
index
);
activitiUtil
.
startProcess
(
serviceClassName
,
null
,
function
(
approvalId
)
{
activitiUtil
.
startProcess
(
data
.
serviceClassName
,
null
,
function
(
approvalId
)
{
var
params
=
{
var
params
=
{
rowI
d
:
data
.
id
,
i
d
:
data
.
id
,
approvalId
:
approvalId
approvalId
:
approvalId
};
};
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
protask008
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
projectBasePath
+
"
protask008
"
,
params
:
params
,
type
:
'
json
'
,
method
:
'
POST
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
"
提交成功
"
,
{
icon
:
1
,
time
:
2000
});
winui
.
window
.
msg
(
"
提交成功
"
,
{
icon
:
1
,
time
:
2000
});
loadTable
();
loadTable
();
}});
}});
...
@@ -207,85 +249,36 @@ layui.config({
...
@@ -207,85 +249,36 @@ layui.config({
var
msg
=
obj
?
'
确认作废【
'
+
obj
.
data
.
taskName
+
'
】吗?
'
:
'
确认作废该任务信息吗?
'
;
var
msg
=
obj
?
'
确认作废【
'
+
obj
.
data
.
taskName
+
'
】吗?
'
:
'
确认作废该任务信息吗?
'
;
layer
.
confirm
(
msg
,
{
icon
:
3
,
title
:
'
任务作废
'
},
function
(
index
)
{
layer
.
confirm
(
msg
,
{
icon
:
3
,
title
:
'
任务作废
'
},
function
(
index
)
{
layer
.
close
(
index
);
layer
.
close
(
index
);
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
protask009
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
projectBasePath
+
"
protask009
"
,
params
:
{
id
:
data
.
id
},
type
:
'
json
'
,
method
:
'
POST
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
loadTable
();
}});
}});
});
});
}
}
// 详情
function
details
(
data
)
{
rowId
=
data
.
id
;
_openNewWindows
({
url
:
"
../../tpl/protask/protaskdetails.html
"
,
title
:
"
任务详情
"
,
pageId
:
"
protaskdetails
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
}});
}
// 编辑
function
edit
(
data
)
{
rowId
=
data
.
id
;
_openNewWindows
({
url
:
"
../../tpl/protask/protaskedit.html
"
,
title
:
"
编辑任务
"
,
pageId
:
"
protaskedit
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}
});
}
// 删除
// 删除
function
del
(
data
,
obj
)
{
function
del
(
data
,
obj
)
{
var
msg
=
obj
?
'
确认删除【
'
+
obj
.
data
.
taskName
+
'
】吗?
'
:
'
确认删除选中数据吗?
'
;
var
msg
=
obj
?
'
确认删除【
'
+
obj
.
data
.
taskName
+
'
】吗?
'
:
'
确认删除选中数据吗?
'
;
layer
.
confirm
(
msg
,
{
icon
:
3
,
title
:
'
删除任务
'
},
function
(
index
)
{
layer
.
confirm
(
msg
,
{
icon
:
3
,
title
:
'
删除任务
'
},
function
(
index
)
{
layer
.
close
(
index
);
layer
.
close
(
index
);
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
protask006
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
sysMainMation
.
projectBasePath
+
"
protask006
"
,
params
:
{
id
:
data
.
id
},
type
:
'
json
'
,
method
:
'
POST
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.deleteOperationSuccessMsg
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.deleteOperationSuccessMsg
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
loadTable
();
}});
}});
});
});
}
}
// 搜索表单
form
.
render
();
form
.
render
();
form
.
on
(
'
submit(formSearch)
'
,
function
(
data
)
{
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
()
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
loadTable
();
loadTable
();
}
return
false
;
});
});
function
loadTable
()
{
table
.
reloadData
(
"
messageTable
"
,
{
where
:
getTableParams
()});
}
// 刷新数据
function
getTableParams
()
{
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
()
{
return
$
.
extend
(
true
,
{
objectKey
:
objectKey
,
objectId
:
objectId
},
initTableSearchUtil
.
getSearchValue
(
"
messageTable
"
));
loadTable
();
});
function
loadTable
()
{
tableTree
.
reload
(
"
messageTable
"
,
{
where
:
getTableParams
()});
}
function
getTableParams
()
{
var
theStartTime
=
""
,
theEndTime
=
""
;
if
(
!
isNull
(
$
(
"
#startTime
"
).
val
()))
{
theStartTime
=
$
(
"
#startTime
"
).
val
().
split
(
'
~
'
)[
0
].
trim
()
+
'
00:00:00
'
;
theEndTime
=
$
(
"
#startTime
"
).
val
().
split
(
'
~
'
)[
1
].
trim
()
+
'
23:59:59
'
;
}
return
{
taskName
:
$
(
"
#taskName
"
).
val
(),
myRole
:
$
(
"
#myRole
"
).
val
(),
state
:
$
(
"
#state
"
).
val
(),
firstTime
:
theStartTime
,
lastTime
:
theEndTime
};
}
}
exports
(
'
pro
taskl
ist
'
,
{});
exports
(
'
pro
TaskL
ist
'
,
{});
});
});
pro/src/main/resources/template/js/pro
t
ask/protaskadd.js
→
pro/src/main/resources/template/js/pro
T
ask/protaskadd.js
浏览文件 @
822c6605
文件已移动
pro/src/main/resources/template/js/pro
t
ask/protaskdetails.js
→
pro/src/main/resources/template/js/pro
T
ask/protaskdetails.js
浏览文件 @
822c6605
文件已移动
pro/src/main/resources/template/js/pro
t
ask/protaskedit.js
→
pro/src/main/resources/template/js/pro
T
ask/protaskedit.js
浏览文件 @
822c6605
文件已移动
pro/src/main/resources/template/js/pro
t
ask/protaskexecution.js
→
pro/src/main/resources/template/js/pro
T
ask/protaskexecution.js
浏览文件 @
822c6605
文件已移动
pro/src/main/resources/template/tpl/pro
t
ask/executionresultshow.html
→
pro/src/main/resources/template/tpl/pro
T
ask/executionresultshow.html
浏览文件 @
822c6605
文件已移动
pro/src/main/resources/template/tpl/proTask/proTaskList.html
0 → 100644
浏览文件 @
822c6605
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
class=
"winui-toolbar"
>
<div
class=
"winui-tool"
>
<button
id=
"reloadTable"
class=
"winui-toolbtn search-table-btn-right"
><i
class=
"fa fa-refresh"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.refreshDataBtn"
></language></button>
<button
id=
"addBean"
class=
"winui-toolbtn search-table-btn-right"
auth=
"add"
><i
class=
"fa fa-plus"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.addBtn"
></language></button>
</div>
</div>
<div
style=
"margin:auto 10px;"
>
<table
id=
"messageTable"
lay-filter=
"messageTable"
></table>
</div>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/proTask/
'
}).
use
(
'
proTaskList
'
);
</script>
</body>
</html>
\ No newline at end of file
pro/src/main/resources/template/tpl/pro
t
ask/protaskadd.html
→
pro/src/main/resources/template/tpl/pro
T
ask/protaskadd.html
浏览文件 @
822c6605
文件已移动
pro/src/main/resources/template/tpl/pro
t
ask/protaskdetails.html
→
pro/src/main/resources/template/tpl/pro
T
ask/protaskdetails.html
浏览文件 @
822c6605
文件已移动
pro/src/main/resources/template/tpl/pro
t
ask/protaskedit.html
→
pro/src/main/resources/template/tpl/pro
T
ask/protaskedit.html
浏览文件 @
822c6605
文件已移动
pro/src/main/resources/template/tpl/pro
t
ask/protaskeditTemplate.tpl
→
pro/src/main/resources/template/tpl/pro
T
ask/protaskeditTemplate.tpl
浏览文件 @
822c6605
文件已移动
pro/src/main/resources/template/tpl/pro
t
ask/protaskexecution.html
→
pro/src/main/resources/template/tpl/pro
T
ask/protaskexecution.html
浏览文件 @
822c6605
文件已移动
pro/src/main/resources/template/tpl/pro
t
ask/protaskexecutionTemplate.tpl
→
pro/src/main/resources/template/tpl/pro
T
ask/protaskexecutionTemplate.tpl
浏览文件 @
822c6605
文件已移动
pro/src/main/resources/template/tpl/pro
t
ask/taskinstructionsshow.html
→
pro/src/main/resources/template/tpl/pro
T
ask/taskinstructionsshow.html
浏览文件 @
822c6605
文件已移动
pro/src/main/resources/template/tpl/protask/protasklist.html
已删除
100644 → 0
浏览文件 @
4a6bd535
<!DOCTYPE html>
<html>
<head>
<meta
charset=
"utf-8"
/>
<title></title>
<link
href=
"../../assets/lib/layui/css/layui.css"
rel=
"stylesheet"
/>
<link
href=
"../../assets/lib/winui/css/winui.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
class=
"txtcenter"
style=
"margin:0 auto;padding-top: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"
>
名称
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"taskName"
name=
"taskName"
placeholder=
"请输入任务名称"
class=
"layui-input"
/>
</div>
<label
class=
"layui-form-label"
>
我的任务
</label>
<div
class=
"layui-input-inline"
>
<select
id=
"myRole"
>
<option
value=
""
>
全部
</option>
<option
value=
"1"
>
我创建的任务
</option>
<option
value=
"2"
>
我执行的任务
</option>
</select>
</div>
<label
class=
"layui-form-label"
>
状态
</label>
<div
class=
"layui-input-inline"
>
<select
id=
"state"
>
<option
value=
""
>
全部
</option>
<option
value=
"0"
>
草稿
</option>
<option
value=
"1"
>
审核中
</option>
<option
value=
"11"
>
审核通过
</option>
<option
value=
"12"
>
审核不通过
</option>
<option
value=
"2"
>
执行中
</option>
<option
value=
"3"
>
执行完成
</option>
<option
value=
"4"
>
关闭
</option>
<option
value=
"5"
>
撤销
</option>
<option
value=
"6"
>
作废
</option>
</select>
</div>
<label
class=
"layui-form-label"
>
开始时间
</label>
<div
class=
"layui-input-inline"
>
<input
type=
"text"
id=
"startTime"
name=
"startTime"
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=
"reloadTable"
class=
"winui-toolbtn"
><i
class=
"fa fa-refresh"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.refreshDataBtn"
></language></button>
<button
id=
"addBean"
class=
"winui-toolbtn"
auth=
"1574644930825"
><i
class=
"fa fa-plus"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.addBtn"
></language></button>
</div>
</div>
<div
style=
"margin:auto 10px;"
>
<div
style=
"margin:auto 10px;"
>
<table
id=
"messageTable"
lay-filter=
"messageTable"
></table>
<script
type=
"text/html"
id=
"tableBar"
>
{{
#
if
(
d
.
state
==
'
0
'
||
d
.
state
==
'
12
'
||
d
.
state
==
'
5
'
){
}}
{{
#
if
(
auth
(
'
1574645014192
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
subApproval
"
>
提交审批
<
/a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1574645025398
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-danger
"
lay
-
event
=
"
cancellation
"
>
作废
<
/a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1574644973457
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-danger
"
lay
-
event
=
"
del
"
><
language
showName
=
"
com.skyeye.deleteBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
}
else
if
(
d
.
state
==
'
2
'
){
}}
{{
#
if
(
d
.
creater
==
'
1
'
){
}}
{{
#
if
(
auth
(
'
1574644930825
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
taskSplit
"
>
拆分
<
/a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1574645025398
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-danger
"
lay
-
event
=
"
cancellation
"
>
作废
<
/a
>
{{
#
}
}}
{{
#
}
}}
{{
#
if
(
auth
(
'
1574645120584
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
executionOver
"
>
执行完成
<
/a
>
{{
#
}
}}
{{
#
}
else
if
(
d
.
state
==
'
11
'
){
}}
{{
#
if
(
auth
(
'
1574644930825
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
taskSplit
"
>
拆分
<
/a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1574645109392
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
executionBegin
"
>
开始执行
<
/a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1574645025398
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-danger
"
lay
-
event
=
"
cancellation
"
>
作废
<
/a
>
{{
#
}
}}
{{
#
}
else
if
(
d
.
state
==
'
3
'
){
}}
{{
#
if
(
d
.
creater
==
'
1
'
&&
auth
(
'
1574645131746
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
executionClose
"
>
关闭
<
/a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1574645120584
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
executionOver
"
>
执行完成
<
/a
>
{{
#
}
}}
{{
#
}
}}
{{
#
if
(
d
.
editRow
==
'
1
'
||
d
.
editRow
==
'
2
'
){
}}
{{
#
if
(
auth
(
'
1574644958748
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
edit
"
><
language
showName
=
"
com.skyeye.editBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
}
}}
{{
#
if
(
d
.
editRow
==
'
2
'
){
}}
{{
#
if
(
auth
(
'
1574644990638
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-danger
"
lay
-
event
=
"
revoke
"
>
撤销
<
/a
>
{{
#
}
}}
{{
#
}
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-normal
"
lay
-
event
=
"
details
"
>
详情
<
/a
>
</script>
</div>
</div>
<script
src=
"../../assets/lib/layui/layui.js"
></script>
<script
src=
"../../assets/lib/layui/custom.js"
></script>
<script
type=
"text/javascript"
>
layui
.
config
({
base
:
'
../../js/protask/
'
}).
use
(
'
protasklist
'
);
</script>
</body>
</html>
\ No newline at end of file
web/src/main/resources/template/json/skyeyeClassEnum.json
浏览文件 @
822c6605
...
@@ -54,6 +54,10 @@
...
@@ -54,6 +54,10 @@
"flowableStateEnum"
:
{
"name"
:
"工作流状态"
,
"className"
:
"skyeye-pro#com.skyeye.common.enumeration.FlowableStateEnum"
},
"flowableStateEnum"
:
{
"name"
:
"工作流状态"
,
"className"
:
"skyeye-pro#com.skyeye.common.enumeration.FlowableStateEnum"
},
"correspondentEnterEnum"
:
{
"name"
:
"往来单位类型"
,
"className"
:
"skyeye-pro#com.skyeye.common.enumeration.CorrespondentEnterEnum"
,
"remark"
:
"往来单位的组件中使用"
},
"correspondentEnterEnum"
:
{
"name"
:
"往来单位类型"
,
"className"
:
"skyeye-pro#com.skyeye.common.enumeration.CorrespondentEnterEnum"
,
"remark"
:
"往来单位的组件中使用"
},
"projectStateEnum"
:
{
"name"
:
"项目状态"
,
"className"
:
"skyeye-project#com.skyeye.project.classenum.ProjectStateEnum"
},
"taskStateEnum"
:
{
"name"
:
"项目任务状态"
,
"className"
:
"skyeye-project#com.skyeye.task.classenum.TaskStateEnum"
},
"taskAuthEnum"
:
{
"name"
:
"项目任务权限"
,
"className"
:
"skyeye-project#com.skyeye.task.classenum.TaskAuthEnum"
,
"pageUrl"
:
"../../tpl/proTask/proTaskList.html"
},
"dsFormPageType"
:
{
"name"
:
"表单布局类型"
,
"className"
:
"skyeye-pro#com.skyeye.dsform.classenum.DsFormPageType"
},
"dsFormPageType"
:
{
"name"
:
"表单布局类型"
,
"className"
:
"skyeye-pro#com.skyeye.dsform.classenum.DsFormPageType"
},
"simpleTableWhetherChoose"
:
{
"name"
:
"表格类型的布局是否开启选择功能"
,
"className"
:
"skyeye-pro#com.skyeye.dsform.classenum.SimpleTableWhetherChoose"
},
"simpleTableWhetherChoose"
:
{
"name"
:
"表格类型的布局是否开启选择功能"
,
"className"
:
"skyeye-pro#com.skyeye.dsform.classenum.SimpleTableWhetherChoose"
},
"attrSymbols"
:
{
"name"
:
"属性与值的对比符号"
,
"className"
:
"skyeye-pro#com.skyeye.attr.classenum.AttrSymbols"
},
"attrSymbols"
:
{
"name"
:
"属性与值的对比符号"
,
"className"
:
"skyeye-pro#com.skyeye.attr.classenum.AttrSymbols"
},
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录