Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
doc_wei
Skyeye
提交
fbd02af4
S
Skyeye
项目概览
doc_wei
/
Skyeye
通知
1172
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看板
提交
fbd02af4
编写于
1月 02, 2023
作者:
doc_wei
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
表单设计第一版修改
上级
a7f8c256
变更
31
隐藏空白更改
内联
并排
Showing
31 changed file
with
121 addition
and
840 deletion
+121
-840
activiti/src/main/resources/template/js/actModel/actModelAdd.js
...ti/src/main/resources/template/js/actModel/actModelAdd.js
+4
-56
activiti/src/main/resources/template/js/actModel/actModelDetails.js
...rc/main/resources/template/js/actModel/actModelDetails.js
+0
-10
activiti/src/main/resources/template/js/actModel/actModelEdit.js
...i/src/main/resources/template/js/actModel/actModelEdit.js
+4
-67
activiti/src/main/resources/template/js/actModel/actModelList.js
...i/src/main/resources/template/js/actModel/actModelList.js
+0
-7
activiti/src/main/resources/template/js/approvalActiviti/approvalProcess.js
...resources/template/js/approvalActiviti/approvalProcess.js
+0
-5
activiti/src/main/resources/template/js/dsFormPageSequence/dsFormPageSequenceDraftProcessAdd.js
...s/dsFormPageSequence/dsFormPageSequenceDraftProcessAdd.js
+0
-56
activiti/src/main/resources/template/js/dsFormPageSequence/dsFormPageSequenceDraftProcessDetail.js
...sFormPageSequence/dsFormPageSequenceDraftProcessDetail.js
+0
-22
activiti/src/main/resources/template/js/dsFormPageSequence/dsFormPageSequenceDraftProcessEdit.js
.../dsFormPageSequence/dsFormPageSequenceDraftProcessEdit.js
+0
-40
activiti/src/main/resources/template/js/dsFormPageSequence/dsFormPageSequenceDraftProcessEditToAct.js
...rmPageSequence/dsFormPageSequenceDraftProcessEditToAct.js
+0
-44
activiti/src/main/resources/template/js/dsFormPageSequence/dsFormPageSequenceDraftProcessList.js
.../dsFormPageSequence/dsFormPageSequenceDraftProcessList.js
+0
-152
activiti/src/main/resources/template/tpl/actModel/actModelAdd.html
...src/main/resources/template/tpl/actModel/actModelAdd.html
+6
-22
activiti/src/main/resources/template/tpl/actModel/actModelDetails.html
...main/resources/template/tpl/actModel/actModelDetails.html
+2
-16
activiti/src/main/resources/template/tpl/actModel/actModelEdit.html
...rc/main/resources/template/tpl/actModel/actModelEdit.html
+5
-20
activiti/src/main/resources/template/tpl/dsFormPageSequence/dsFormPageSequenceDraftProcessAdd.html
...dsFormPageSequence/dsFormPageSequenceDraftProcessAdd.html
+0
-22
activiti/src/main/resources/template/tpl/dsFormPageSequence/dsFormPageSequenceDraftProcessDetail.html
...ormPageSequence/dsFormPageSequenceDraftProcessDetail.html
+0
-22
activiti/src/main/resources/template/tpl/dsFormPageSequence/dsFormPageSequenceDraftProcessEdit.html
...sFormPageSequence/dsFormPageSequenceDraftProcessEdit.html
+0
-22
activiti/src/main/resources/template/tpl/dsFormPageSequence/dsFormPageSequenceDraftProcessEditToAct.html
...PageSequence/dsFormPageSequenceDraftProcessEditToAct.html
+0
-22
activiti/src/main/resources/template/tpl/dsFormPageSequence/dsFormPageSequenceDraftProcessList.html
...sFormPageSequence/dsFormPageSequenceDraftProcessList.html
+0
-45
dsform/src/main/resources/template/js/dsFormObjectRelation/dsFormObjectRelationEdit.js
...plate/js/dsFormObjectRelation/dsFormObjectRelationEdit.js
+4
-4
dsform/src/main/resources/template/js/dsFormPage/dsFormPageDesign.js
...main/resources/template/js/dsFormPage/dsFormPageDesign.js
+32
-68
dsform/src/main/resources/template/js/dsFormPage/dsFormPageListChoose.js
.../resources/template/js/dsFormPage/dsFormPageListChoose.js
+13
-14
dsform/src/main/resources/template/js/dsFormPage/pageAdd.js
dsform/src/main/resources/template/js/dsFormPage/pageAdd.js
+3
-3
dsform/src/main/resources/template/js/dsFormPage/pageEdit.js
dsform/src/main/resources/template/js/dsFormPage/pageEdit.js
+5
-5
dsform/src/main/resources/template/js/dsFormPage/pageList.js
dsform/src/main/resources/template/js/dsFormPage/pageList.js
+15
-22
dsform/src/main/resources/template/tpl/dsFormPage/dsFormPageDesign.html
...n/resources/template/tpl/dsFormPage/dsFormPageDesign.html
+6
-18
dsform/src/main/resources/template/tpl/dsFormPage/dsFormPageListChoose.html
...sources/template/tpl/dsFormPage/dsFormPageListChoose.html
+5
-24
dsform/src/main/resources/template/tpl/dsFormPage/pageAdd.html
...m/src/main/resources/template/tpl/dsFormPage/pageAdd.html
+4
-4
dsform/src/main/resources/template/tpl/dsFormPage/pageEdit.html
.../src/main/resources/template/tpl/dsFormPage/pageEdit.html
+3
-3
dsform/src/main/resources/template/tpl/dsFormPage/pageList.html
.../src/main/resources/template/tpl/dsFormPage/pageList.html
+3
-17
erp/src/main/resources/template/js/material/materialList.js
erp/src/main/resources/template/js/material/materialList.js
+0
-1
web/src/main/resources/template/assets/lib/layui/customer/skyeye/dsFormUtil.js
...s/template/assets/lib/layui/customer/skyeye/dsFormUtil.js
+7
-7
未找到文件。
activiti/src/main/resources/template/js/actModel/actModelAdd.js
浏览文件 @
fbd02af4
...
...
@@ -17,34 +17,8 @@ layui.config({
// 加载图标信息
systemCommonUtil
.
initIconChooseHtml
(
'
iconMation
'
,
form
,
colorpicker
,
17
);
// 初始化动态表单
showGrid
({
id
:
"
dsFormId
"
,
url
:
flowableBasePath
+
"
actmodletype020
"
,
params
:
{},
pagination
:
false
,
template
:
getFileContent
(
'
tpl/template/select-option-must.tpl
'
),
ajaxSendAfter
:
function
(
json
)
{
form
.
render
(
'
select
'
);
}
})
textool
.
init
({
eleId
:
'
remark
'
,
maxlength
:
200
});
// 页面类型变化事件
form
.
on
(
'
radio(pageTypes)
'
,
function
(
data
)
{
var
val
=
data
.
value
;
if
(
val
==
1
)
{
// 指定页面
$
(
"
.TypeIsTwo
"
).
addClass
(
"
layui-hide
"
);
$
(
"
.TypeIsOne
"
).
removeClass
(
"
layui-hide
"
);
}
else
if
(
val
==
2
)
{
// 动态表单
$
(
"
.TypeIsTwo
"
).
removeClass
(
"
layui-hide
"
);
$
(
"
.TypeIsOne
"
).
addClass
(
"
layui-hide
"
);
}
});
matchingLanguage
();
form
.
render
();
form
.
on
(
'
submit(formAddBean)
'
,
function
(
data
)
{
...
...
@@ -52,40 +26,14 @@ layui.config({
var
params
=
{
typeId
:
parent
.
rowId
,
title
:
$
(
"
#typeName
"
).
val
(),
pageTypes
:
data
.
field
.
pageTypes
,
tokenUrl
:
$
(
"
#tokenUrl
"
).
val
(),
remark
:
$
(
"
#remark
"
).
val
(),
commonUsed
:
data
.
field
.
commonUsed
,
actFlowId
:
$
(
"
#actFlowId
"
).
attr
(
"
actFlowId
"
)
actFlowId
:
$
(
"
#actFlowId
"
).
attr
(
"
actFlowId
"
),
addPageUrl
:
$
(
"
#addPageUrl
"
).
val
(),
editPageUrl
:
$
(
"
#editPageUrl
"
).
val
(),
revokeMapping
:
$
(
"
#revokeMapping
"
).
val
()
};
if
(
params
.
pageTypes
==
1
)
{
params
.
addPageUrl
=
$
(
"
#addPageUrl
"
).
val
();
params
.
editPageUrl
=
$
(
"
#editPageUrl
"
).
val
();
params
.
revokeMapping
=
$
(
"
#revokeMapping
"
).
val
();
if
(
isNull
(
params
.
addPageUrl
))
{
winui
.
window
.
msg
(
"
请输入新增页面地址
"
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
if
(
isNull
(
params
.
editPageUrl
))
{
winui
.
window
.
msg
(
"
请输入编辑页面地址
"
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
if
(
isNull
(
params
.
revokeMapping
))
{
winui
.
window
.
msg
(
"
请输入撤销接口
"
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
params
.
dsFormId
=
""
;
}
else
if
(
params
.
pageTypes
==
2
)
{
params
.
addPageUrl
=
""
;
params
.
editPageUrl
=
""
;
params
.
revokeMapping
=
""
;
params
.
dsFormId
=
$
(
"
#dsFormId
"
).
val
();
if
(
isNull
(
params
.
dsFormId
))
{
winui
.
window
.
msg
(
"
请选择表单页面
"
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
}
// 获取图标信息
params
=
systemCommonUtil
.
getIconChoose
(
params
);
if
(
!
params
[
"
iconChooseResult
"
])
{
...
...
activiti/src/main/resources/template/js/actModel/actModelDetails.js
浏览文件 @
fbd02af4
...
...
@@ -18,16 +18,6 @@ layui.config({
method
:
'
GET
'
,
template
:
$
(
"
#beanTemplate
"
).
html
(),
ajaxSendAfter
:
function
(
json
)
{
if
(
json
.
bean
.
pageTypes
==
1
){
$
(
"
#pageTypes
"
).
html
(
'
指定业务
'
);
$
(
"
.TypeIsTwo
"
).
addClass
(
"
layui-hide
"
);
$
(
"
.TypeIsOne
"
).
removeClass
(
"
layui-hide
"
);
}
else
{
$
(
"
#pageTypes
"
).
html
(
'
动态表单
'
);
$
(
"
.TypeIsTwo
"
).
removeClass
(
"
layui-hide
"
);
$
(
"
.TypeIsOne
"
).
addClass
(
"
layui-hide
"
);
}
if
(
json
.
bean
.
iconType
==
1
){
$
(
"
#iconType
"
).
html
(
'
Icon
'
);
$
(
"
.iconTypeIsTwo
"
).
addClass
(
"
layui-hide
"
);
...
...
activiti/src/main/resources/template/js/actModel/actModelEdit.js
浏览文件 @
fbd02af4
...
...
@@ -27,44 +27,6 @@ layui.config({
textool
.
init
({
eleId
:
'
remark
'
,
maxlength
:
200
});
// 初始化动态表单
showGrid
({
id
:
"
dsFormId
"
,
url
:
flowableBasePath
+
"
actmodletype020
"
,
params
:
{},
pagination
:
false
,
template
:
getFileContent
(
'
tpl/template/select-option-must.tpl
'
),
ajaxSendAfter
:
function
(
data
)
{
form
.
render
(
'
select
'
);
$
(
"
#dsFormId
"
).
val
(
json
.
bean
.
dsFormId
);
}
})
// 设置页面类型
$
(
"
input:radio[name=pageTypes][value=
"
+
json
.
bean
.
pageTypes
+
"
]
"
).
attr
(
"
checked
"
,
true
);
if
(
json
.
bean
.
pageTypes
==
1
)
{
$
(
"
.TypeIsTwo
"
).
addClass
(
"
layui-hide
"
);
$
(
"
.TypeIsOne
"
).
removeClass
(
"
layui-hide
"
);
}
else
{
$
(
"
.TypeIsTwo
"
).
removeClass
(
"
layui-hide
"
);
$
(
"
.TypeIsOne
"
).
addClass
(
"
layui-hide
"
);
}
// 页面类型变化事件
form
.
on
(
'
radio(pageTypes)
'
,
function
(
data
)
{
var
val
=
data
.
value
;
if
(
val
==
1
)
{
// 指定页面
$
(
"
.TypeIsTwo
"
).
addClass
(
"
layui-hide
"
);
$
(
"
.TypeIsOne
"
).
removeClass
(
"
layui-hide
"
);
}
else
if
(
val
==
2
)
{
// 动态表单
$
(
"
.TypeIsTwo
"
).
removeClass
(
"
layui-hide
"
);
$
(
"
.TypeIsOne
"
).
addClass
(
"
layui-hide
"
);
}
});
matchingLanguage
();
form
.
render
();
form
.
on
(
'
submit(formEditBean)
'
,
function
(
data
)
{
...
...
@@ -72,39 +34,14 @@ layui.config({
var
params
=
{
id
:
parent
.
rowId
,
title
:
$
(
"
#title
"
).
val
(),
pageTypes
:
data
.
field
.
pageTypes
,
tokenUrl
:
$
(
"
#tokenUrl
"
).
val
(),
remark
:
$
(
"
#remark
"
).
val
(),
commonUsed
:
data
.
field
.
commonUsed
,
actFlowId
:
$
(
"
#actFlowId
"
).
attr
(
"
actFlowId
"
)
actFlowId
:
$
(
"
#actFlowId
"
).
attr
(
"
actFlowId
"
),
addPageUrl
:
$
(
"
#addPageUrl
"
).
val
(),
editPageUrl
:
$
(
"
#editPageUrl
"
).
val
(),
revokeMapping
:
$
(
"
#revokeMapping
"
).
val
()
};
if
(
params
.
pageTypes
==
1
)
{
params
.
addPageUrl
=
$
(
"
#addPageUrl
"
).
val
();
params
.
editPageUrl
=
$
(
"
#editPageUrl
"
).
val
();
params
.
revokeMapping
=
$
(
"
#revokeMapping
"
).
val
();
if
(
isNull
(
params
.
addPageUrl
))
{
winui
.
window
.
msg
(
"
请输入新增页面地址
"
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
if
(
isNull
(
params
.
editPageUrl
))
{
winui
.
window
.
msg
(
"
请输入编辑页面地址
"
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
if
(
isNull
(
params
.
revokeMapping
))
{
winui
.
window
.
msg
(
"
请输入撤销接口
"
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
params
.
dsFormId
=
""
;
}
else
if
(
params
.
pageTypes
==
2
)
{
params
.
addPageUrl
=
""
;
params
.
editPageUrl
=
""
;
params
.
revokeMapping
=
""
;
params
.
dsFormId
=
$
(
"
#dsFormId
"
).
val
();
if
(
isNull
(
params
.
dsFormId
))
{
winui
.
window
.
msg
(
"
请选择表单页面
"
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
}
// 获取图标信息
params
=
systemCommonUtil
.
getIconChoose
(
params
);
if
(
!
params
[
"
iconChooseResult
"
])
{
...
...
activiti/src/main/resources/template/js/actModel/actModelList.js
浏览文件 @
fbd02af4
...
...
@@ -265,13 +265,6 @@ layui.config({
return
'
<a lay-event="dedails" class="notice-title-click">
'
+
d
.
title
+
'
</a>
'
;
}},
{
field
:
'
actFlowName
'
,
title
:
'
工作流模型
'
,
align
:
'
left
'
,
width
:
120
},
{
field
:
'
pageTypes
'
,
title
:
'
流程类型
'
,
align
:
'
center
'
,
width
:
120
,
templet
:
function
(
d
)
{
if
(
d
.
pageTypes
==
1
)
{
return
"
指定业务
"
;
}
else
if
(
d
.
pageTypes
==
2
)
{
return
"
动态表单
"
;
}
}},
{
field
:
'
addPageUrl
'
,
title
:
'
新增页面
'
,
align
:
'
left
'
,
width
:
200
},
{
field
:
'
editPageUrl
'
,
title
:
'
编辑页面
'
,
align
:
'
left
'
,
width
:
200
},
{
field
:
'
iconBg
'
,
title
:
'
背景
'
,
align
:
'
center
'
,
width
:
80
},
...
...
activiti/src/main/resources/template/js/approvalActiviti/approvalProcess.js
浏览文件 @
fbd02af4
...
...
@@ -2,9 +2,6 @@
var
jsonArray
=
[];
//表单项
var
layedit
,
form
;
// 当前审批的表单是动态表单还是静态页面
var
pageTypes
=
""
;
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
...
...
@@ -37,7 +34,6 @@ layui.config({
voucherTemplate
=
$
(
"
#voucherTemplate
"
).
html
();
//凭证展示
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
activitimode016
"
,
params
:
{
taskId
:
taskId
,
processInstanceId
:
processInstanceId
},
type
:
'
json
'
,
method
:
'
GET
'
,
callback
:
function
(
j
){
pageTypes
=
isNull
(
j
.
bean
.
pageTypes
)
?
'
1
'
:
j
.
bean
.
pageTypes
;
var
jsonStr
=
""
;
//实体json对象
var
str
=
""
;
//获取该节点的id和名称
...
...
@@ -340,7 +336,6 @@ layui.config({
flag
:
$
(
"
input[name='flag']:checked
"
).
val
(),
processInstanceId
:
processInstanceId
,
editStr
:
(
params
.
length
>
0
)
?
JSON
.
stringify
(
params
)
:
""
,
pageTypes
:
pageTypes
,
approverId
:
activitiUtil
.
getApprovalPersonId
()
};
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
activitimode005
"
,
params
:
jStr
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
...
...
activiti/src/main/resources/template/js/dsFormPageSequence/dsFormPageSequenceDraftProcessAdd.js
已删除
100644 → 0
浏览文件 @
a7f8c256
var
layedit
,
form
;
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
].
concat
(
dsFormUtil
.
mastHaveImport
),
function
(
exports
)
{
winui
.
renderColor
();
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
;
layedit
=
layui
.
layedit
,
form
=
layui
.
form
;
var
actFlowId
=
parent
.
actFlowId
;
// 加载动态表单页
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
dsformpage004
"
,
params
:
{
pageId
:
parent
.
dsFormId
},
type
:
'
json
'
,
method
:
'
GET
'
,
callback
:
function
(
json
)
{
dsFormUtil
.
loadDsFormItemToEdit
(
"
showForm
"
,
json
.
rows
);
$
(
"
#showForm
"
).
append
(
'
<div class="layui-form-item layui-col-xs12"><div class="layui-input-block">
'
+
'
<button class="winui-btn" id="cancle">
'
+
systemLanguage
[
"
com.skyeye.cancel
"
][
languageType
]
+
'
</button>
'
+
'
<button class="winui-btn" lay-submit="" lay-filter="formAddBean">提交审批</button>
'
+
'
</div></div>
'
);
matchingLanguage
();
form
.
render
();
}});
form
.
on
(
'
submit(formAddBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
activitiUtil
.
startProcess
(
actFlowId
,
null
,
function
(
approvalId
)
{
if
(
isNull
(
actFlowId
)){
winui
.
window
.
msg
(
'
流程对象为空,无法启动.
'
,
{
icon
:
2
,
time
:
2000
});
return
false
;
}
var
jStr
=
{
actFlowId
:
actFlowId
,
jsonStr
:
JSON
.
stringify
(
dsFormUtil
.
getPageData
(
$
(
"
#showForm
"
))),
pageId
:
parent
.
dsFormId
,
approvalId
:
approvalId
};
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
activitimode022
"
,
params
:
jStr
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
"
申请提交成功,等待审核...
"
,
{
icon
:
1
,
time
:
2000
},
function
()
{
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
});
}});
});
}
return
false
;
});
// 取消
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
});
\ No newline at end of file
activiti/src/main/resources/template/js/dsFormPageSequence/dsFormPageSequenceDraftProcessDetail.js
已删除
100644 → 0
浏览文件 @
a7f8c256
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
table
'
,
'
jquery
'
,
'
winui
'
,
'
form
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
,
form
=
layui
.
form
,
table
=
layui
.
table
;
// 动态表单草稿状态下的详情
var
rowId
=
parent
.
rowId
;
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
pagesequence006
"
,
params
:
{
rowId
:
rowId
},
type
:
'
json
'
,
callback
:
function
(
j
){
dsFormUtil
.
initSequenceDataDetails
(
"
showForm
"
,
j
.
rows
);
matchingLanguage
();
}});
exports
(
'
dsFormPageSequenceDraftProcessDetail
'
,
{});
});
activiti/src/main/resources/template/js/dsFormPageSequence/dsFormPageSequenceDraftProcessEdit.js
已删除
100644 → 0
浏览文件 @
a7f8c256
var
layedit
,
form
;
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
].
concat
(
dsFormUtil
.
mastHaveImport
),
function
(
exports
)
{
winui
.
renderColor
();
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
;
layedit
=
layui
.
layedit
,
form
=
layui
.
form
;
// 编辑动态表单时进行回显
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
pagesequence003
"
,
params
:
{
rowId
:
parent
.
rowId
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
dsFormUtil
.
loadDsFormItemToEdit
(
"
showForm
"
,
json
.
rows
);
$
(
"
#showForm
"
).
append
(
'
<div class="layui-form-item layui-col-xs12"><div class="layui-input-block">
'
+
'
<button class="winui-btn" id="cancle">
'
+
systemLanguage
[
"
com.skyeye.cancel
"
][
languageType
]
+
'
</button>
'
+
'
<button class="winui-btn" lay-submit="" lay-filter="formAddBean">
'
+
systemLanguage
[
"
com.skyeye.save
"
][
languageType
]
+
'
</button>
'
+
'
</div></div>
'
);
matchingLanguage
();
form
.
render
();
}});
form
.
on
(
'
submit(formAddBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
params
=
dsFormUtil
.
getPageData
(
$
(
"
#showForm
"
));
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
pagesequence004
"
,
params
:
{
jsonStr
:
JSON
.
stringify
(
params
)},
type
:
'
json
'
,
callback
:
function
(
json
)
{
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}});
}
return
false
;
});
// 取消
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
});
\ No newline at end of file
activiti/src/main/resources/template/js/dsFormPageSequence/dsFormPageSequenceDraftProcessEditToAct.js
已删除
100644 → 0
浏览文件 @
a7f8c256
var
layedit
,
form
;
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
jquery
'
,
'
winui
'
].
concat
(
dsFormUtil
.
mastHaveImport
),
function
(
exports
)
{
winui
.
renderColor
();
var
index
=
parent
.
layer
.
getFrameIndex
(
window
.
name
);
var
$
=
layui
.
$
;
layedit
=
layui
.
layedit
,
form
=
layui
.
form
;
// 获取动态表单内容用于编辑申请类型实体
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
activitimode023
"
,
params
:
{
rowId
:
parent
.
sequenceId
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
dsFormUtil
.
loadDsFormItemToEdit
(
"
showForm
"
,
json
.
rows
);
$
(
"
#showForm
"
).
append
(
'
<div class="layui-form-item layui-col-xs12"><div class="layui-input-block">
'
+
'
<button class="winui-btn" id="cancle">
'
+
systemLanguage
[
"
com.skyeye.cancel
"
][
languageType
]
+
'
</button>
'
+
'
<button class="winui-btn" lay-submit="" lay-filter="formAddBean">
'
+
systemLanguage
[
"
com.skyeye.save
"
][
languageType
]
+
'
</button>
'
+
'
</div></div>
'
);
form
.
render
();
matchingLanguage
();
}});
form
.
on
(
'
submit(formAddBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
jStr
=
{
jsonStr
:
JSON
.
stringify
(
dsFormUtil
.
getPageData
(
$
(
"
#showForm
"
))),
taskId
:
parent
.
taskId
,
processInstanceId
:
parent
.
processInstanceId
};
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
activitimode024
"
,
params
:
jStr
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}});
}
return
false
;
});
// 取消
$
(
"
body
"
).
on
(
"
click
"
,
"
#cancle
"
,
function
()
{
parent
.
layer
.
close
(
index
);
});
});
\ No newline at end of file
activiti/src/main/resources/template/js/dsFormPageSequence/dsFormPageSequenceDraftProcessList.js
已删除
100644 → 0
浏览文件 @
a7f8c256
var
rowId
=
""
;
//用户提交的表单数据的id
layui
.
config
({
base
:
basePath
,
version
:
skyeyeVersion
}).
extend
({
window
:
'
js/winui.window
'
}).
define
([
'
window
'
,
'
table
'
,
'
jquery
'
,
'
winui
'
,
'
form
'
,
'
laydate
'
],
function
(
exports
)
{
winui
.
renderColor
();
var
$
=
layui
.
$
,
table
=
layui
.
table
,
laydate
=
layui
.
laydate
,
form
=
layui
.
form
;
// '申请时间'页面的选取时间段表格
laydate
.
render
({
elem
:
'
#createTime
'
,
range
:
'
~
'
});
// 我启动的流程
table
.
render
({
id
:
'
messageMyStartTable
'
,
elem
:
'
#messageMyStartTable
'
,
method
:
'
post
'
,
url
:
flowableBasePath
+
'
pagesequence001
'
,
where
:
getTableParams
(),
even
:
true
,
page
:
true
,
limits
:
getLimits
(),
limit
:
getLimit
(),
cols
:
[[
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
},
{
field
:
'
title
'
,
title
:
'
流程名称
'
,
width
:
100
},
{
field
:
'
createTime
'
,
title
:
'
申请时间
'
,
align
:
'
center
'
,
width
:
140
},
{
field
:
'
state
'
,
title
:
'
状态
'
,
align
:
'
center
'
,
width
:
80
,
templet
:
function
(
d
)
{
if
(
d
.
state
==
1
){
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
();
}
});
table
.
on
(
'
tool(messageMyStartTable)
'
,
function
(
obj
)
{
var
data
=
obj
.
data
;
var
layEvent
=
obj
.
event
;
if
(
layEvent
===
'
edit
'
)
{
//编辑
edit
(
data
);
}
else
if
(
layEvent
===
'
details
'
)
{
//详情
details
(
data
);
}
else
if
(
layEvent
===
'
subApproval
'
)
{
//提交审批
subApproval
(
data
);
}
else
if
(
layEvent
===
'
deleteRow
'
)
{
//删除
deleteRow
(
data
);
}
});
// 编辑
function
edit
(
data
)
{
rowId
=
data
.
id
;
_openNewWindows
({
url
:
'
../../tpl/dsFormPageSequence/dsFormPageSequenceDraftProcessEdit.html
'
,
title
:
systemLanguage
[
"
com.skyeye.editPageTitle
"
][
languageType
],
pageId
:
"
dsFormPageSequenceDraftProcessEdit
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
}
});
}
// 表单详情
function
details
(
data
)
{
rowId
=
data
.
id
;
_openNewWindows
({
url
:
"
../../tpl/dsFormPageSequence/dsFormPageSequenceDraftProcessDetail.html
"
,
title
:
systemLanguage
[
"
com.skyeye.detailsPageTitle
"
][
languageType
],
pageId
:
"
dsFormPageSequenceDraftProcessDetail
"
,
area
:
[
'
90vw
'
,
'
90vh
'
],
callBack
:
function
(
refreshCode
)
{
}
});
}
// 提交审批
function
subApproval
(
data
)
{
layer
.
confirm
(
'
确认提交进行审批吗?
'
,
{
icon
:
3
,
title
:
'
提交审批
'
},
function
(
i
)
{
layer
.
close
(
i
);
activitiUtil
.
startProcess
(
data
.
pageId
,
null
,
function
(
approvalId
)
{
var
params
=
{
rowId
:
data
.
id
,
approvalId
:
approvalId
};
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
pagesequence005
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
"
申请提交成功,等待审核...
"
,
{
icon
:
1
,
time
:
2000
});
reloadMyStartTable
();
}});
});
});
}
// 删除
function
deleteRow
(
data
)
{
layer
.
confirm
(
systemLanguage
[
"
com.skyeye.deleteOperationMsg
"
][
languageType
],
{
icon
:
3
,
title
:
systemLanguage
[
"
com.skyeye.deleteOperation
"
][
languageType
]},
function
(
index
)
{
layer
.
close
(
index
);
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
pagesequence002
"
,
params
:
{
rowId
:
data
.
id
},
type
:
'
json
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.deleteOperationSuccessMsg
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
reloadMyStartTable
();
}});
});
}
form
.
render
();
form
.
on
(
'
submit(formSearch)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
searchMyStartTable
();
}
return
false
;
});
// 刷新表单草稿列表
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadMyStartTable
"
,
function
()
{
reloadMyStartTable
();
});
function
reloadMyStartTable
(){
table
.
reloadData
(
"
messageMyStartTable
"
,
{
where
:
getTableParams
()});
}
function
searchMyStartTable
(){
table
.
reloadData
(
"
messageMyStartTable
"
,
{
page
:
{
curr
:
1
},
where
:
getTableParams
()});
}
function
getTableParams
()
{
var
startTime
=
""
;
var
endTime
=
""
;
if
(
!
isNull
(
$
(
"
#createTime
"
).
val
()))
{
//一定要记得,当createTime为空时
startTime
=
$
(
"
#createTime
"
).
val
().
split
(
'
~
'
)[
0
].
trim
()
+
'
00:00:00
'
;
endTime
=
$
(
"
#createTime
"
).
val
().
split
(
'
~
'
)[
1
].
trim
()
+
'
23:59:59
'
;
}
return
{
startTime
:
startTime
,
endTime
:
endTime
};
}
exports
(
'
dsFormPageSequenceDraftProcessList
'
,
{});
});
activiti/src/main/resources/template/tpl/actModel/actModelAdd.html
浏览文件 @
fbd02af4
...
...
@@ -22,44 +22,28 @@
<i
class=
"fa fa-user-plus input-icon"
id=
"actFlowIdSel"
></i>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
流程类型
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block winui-radio"
>
<input
type=
"radio"
name=
"pageTypes"
value=
"1"
title=
"指定业务"
lay-filter=
"pageTypes"
checked
/>
<input
type=
"radio"
name=
"pageTypes"
value=
"2"
title=
"动态表单"
lay-filter=
"pageTypes"
/>
</div>
</div>
<div
class=
"layui-form-item TypeIsOne layui-col-xs12"
>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
新增页面
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"addPageUrl"
name=
"addPageUrl"
placeholder=
"请输入页面URL"
class=
"layui-input"
/>
<input
type=
"text"
id=
"addPageUrl"
name=
"addPageUrl"
win-verify=
"required"
placeholder=
"请输入页面URL"
class=
"layui-input"
/>
<div
class=
"layui-form-mid layui-word-aux"
>
格式为:../../tpl/model/modelAdd.html
</div>
</div>
</div>
<div
class=
"layui-form-item
TypeIsOne
layui-col-xs12"
>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
编辑页面
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"editPageUrl"
name=
"editPageUrl"
placeholder=
"请输入页面URL"
class=
"layui-input"
/>
<input
type=
"text"
id=
"editPageUrl"
name=
"editPageUrl"
win-verify=
"required"
placeholder=
"请输入页面URL"
class=
"layui-input"
/>
<div
class=
"layui-form-mid layui-word-aux"
>
格式为:../../tpl/model/modelEdit.html
</div>
</div>
</div>
<div
class=
"layui-form-item
TypeIsOne
layui-col-xs12"
>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
撤销接口
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"revokeMapping"
name=
"revokeMapping"
placeholder=
"请输入撤销接口"
class=
"layui-input"
/>
<input
type=
"text"
id=
"revokeMapping"
name=
"revokeMapping"
win-verify=
"required"
placeholder=
"请输入撤销接口"
class=
"layui-input"
/>
<div
class=
"layui-form-mid layui-word-aux"
>
格式为:bbb001;直接填写接口名即可
</div>
</div>
</div>
<div
class=
"layui-form-item TypeIsTwo layui-hide layui-col-xs12"
>
<label
class=
"layui-form-label"
>
表单页面
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<select
lay-filter=
"dsFormId"
lay-search=
""
id=
"dsFormId"
name=
"dsFormId"
>
</select>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
id=
"iconMation"
>
</div>
...
...
activiti/src/main/resources/template/tpl/actModel/actModelDetails.html
浏览文件 @
fbd02af4
...
...
@@ -28,38 +28,24 @@
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
流程类型
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
id
=
"
pageTypes
"
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item TypeIsOne layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
新增页面
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
addPageUrl
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item
TypeIsOne
layui-col-xs12
"
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
编辑页面
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
editPageUrl
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item
TypeIsOne
layui-col-xs6
"
>
<
div
class
=
"
layui-form-item layui-col-xs6
"
>
<
label
class
=
"
layui-form-label
"
>
撤销接口
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
revokeMapping
}}
<
br
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item TypeIsTwo layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
表单页面
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
>
{{
dsFormName
}}
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
图标类型
:
<
/label
>
<
div
class
=
"
layui-input-block ver-center
"
id
=
"
iconType
"
>
...
...
activiti/src/main/resources/template/tpl/actModel/actModelEdit.html
浏览文件 @
fbd02af4
...
...
@@ -30,41 +30,26 @@
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
流程类型
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block winui-radio
"
>
<
input
type
=
"
radio
"
name
=
"
pageTypes
"
value
=
"
1
"
title
=
"
指定业务
"
lay
-
filter
=
"
pageTypes
"
/>
<
input
type
=
"
radio
"
name
=
"
pageTypes
"
value
=
"
2
"
title
=
"
动态表单
"
lay
-
filter
=
"
pageTypes
"
/>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item TypeIsOne layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
新增页面
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
>
<
input
type
=
"
text
"
id
=
"
addPageUrl
"
name
=
"
addPageUrl
"
placeholder
=
"
请输入页面URL
"
class
=
"
layui-input
"
value
=
"
{{addPageUrl}}
"
/>
<
input
type
=
"
text
"
id
=
"
addPageUrl
"
name
=
"
addPageUrl
"
win
-
verify
=
"
required
"
placeholder
=
"
请输入页面URL
"
class
=
"
layui-input
"
value
=
"
{{addPageUrl}}
"
/>
<
div
class
=
"
layui-form-mid layui-word-aux
"
>
格式为
:
..
/
..
/
tpl
/
model
/
modelAdd
.
html
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item
TypeIsOne
layui-col-xs12
"
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
编辑页面
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
>
<
input
type
=
"
text
"
id
=
"
editPageUrl
"
name
=
"
editPageUrl
"
placeholder
=
"
请输入页面URL
"
class
=
"
layui-input
"
value
=
"
{{editPageUrl}}
"
/>
<
input
type
=
"
text
"
id
=
"
editPageUrl
"
name
=
"
editPageUrl
"
win
-
verify
=
"
required
"
placeholder
=
"
请输入页面URL
"
class
=
"
layui-input
"
value
=
"
{{editPageUrl}}
"
/>
<
div
class
=
"
layui-form-mid layui-word-aux
"
>
格式为
:
..
/
..
/
tpl
/
model
/
modelEdit
.
html
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item
TypeIsOne
layui-col-xs12
"
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
撤销接口
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
>
<
input
type
=
"
text
"
id
=
"
revokeMapping
"
name
=
"
revokeMapping
"
placeholder
=
"
请输入撤销接口
"
class
=
"
layui-input
"
value
=
"
{{revokeMapping}}
"
/>
<
input
type
=
"
text
"
id
=
"
revokeMapping
"
name
=
"
revokeMapping
"
win
-
verify
=
"
required
"
placeholder
=
"
请输入撤销接口
"
class
=
"
layui-input
"
value
=
"
{{revokeMapping}}
"
/>
<
div
class
=
"
layui-form-mid layui-word-aux
"
>
格式为
:
bbb001
;
直接填写接口名即可
<
/div
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item TypeIsTwo layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
表单页面
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
>
<
select
lay
-
filter
=
"
dsFormId
"
lay
-
search
=
""
id
=
"
dsFormId
"
name
=
"
dsFormId
"
>
<
/select
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
id
=
"
iconMation
"
>
<
/div
>
...
...
activiti/src/main/resources/template/tpl/dsFormPageSequence/dsFormPageSequenceDraftProcessAdd.html
已删除
100644 → 0
浏览文件 @
a7f8c256
<!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"
/>
<link
href=
"../../assets/lib/layui/css/codemirror.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
style=
"float: left; min-height: 100%;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
autocomplete=
"off"
style=
"float: left; width: calc(100% - 20px); height: 100%; background-color: white; margin-top: 10px; padding: 10px;"
>
</form>
</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/dsFormPageSequence/
'
}).
use
(
'
dsFormPageSequenceDraftProcessAdd
'
);
</script>
</body>
</html>
\ No newline at end of file
activiti/src/main/resources/template/tpl/dsFormPageSequence/dsFormPageSequenceDraftProcessDetail.html
已删除
100644 → 0
浏览文件 @
a7f8c256
<!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
style=
"margin:0 auto; height: 100%; overflow: hidden;"
>
<div
id=
"showForm"
style=
"height: auto; width: 100%; float: left;"
>
</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/dsFormPageSequence/
'
}).
use
(
'
dsFormPageSequenceDraftProcessDetail
'
);
</script>
</body>
</html>
\ No newline at end of file
activiti/src/main/resources/template/tpl/dsFormPageSequence/dsFormPageSequenceDraftProcessEdit.html
已删除
100644 → 0
浏览文件 @
a7f8c256
<!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"
/>
<link
href=
"../../assets/lib/layui/css/codemirror.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
style=
"float: left; min-height: 100%;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
autocomplete=
"off"
style=
"float: left; width: calc(100% - 20px); height: 100%; background-color: white; margin-top: 10px; padding: 10px;"
>
</form>
</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/dsFormPageSequence/
'
}).
use
(
'
dsFormPageSequenceDraftProcessEdit
'
);
</script>
</body>
</html>
\ No newline at end of file
activiti/src/main/resources/template/tpl/dsFormPageSequence/dsFormPageSequenceDraftProcessEditToAct.html
已删除
100644 → 0
浏览文件 @
a7f8c256
<!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"
/>
<link
href=
"../../assets/lib/layui/css/codemirror.css"
rel=
"stylesheet"
/>
</head>
<body>
<div
style=
"float: left; min-height: 100%;"
>
<form
class=
"layui-form"
action=
""
id=
"showForm"
autocomplete=
"off"
style=
"float: left; width: calc(100% - 20px); height: 100%; background-color: white; margin-top: 10px; padding: 10px;"
>
</form>
</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/dsFormPageSequence/
'
}).
use
(
'
dsFormPageSequenceDraftProcessEditToAct
'
);
</script>
</body>
</html>
\ No newline at end of file
activiti/src/main/resources/template/tpl/dsFormPageSequence/dsFormPageSequenceDraftProcessList.html
已删除
100644 → 0
浏览文件 @
a7f8c256
<!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: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=
"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"
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=
"reloadMyStartTable"
class=
"winui-toolbtn"
><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 layui-btn-normal
"
lay
-
event
=
"
edit
"
><
language
showName
=
"
com.skyeye.editBtn
"
><
/language></
a
>
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-danger
"
lay
-
event
=
"
deleteRow
"
><
language
showName
=
"
com.skyeye.deleteBtn
"
><
/language></
a
>
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
details
"
>
详情
<
/a
>
<
a
class
=
"
layui-btn layui-btn-xs
"
lay
-
event
=
"
subApproval
"
>
提交审批
<
/a
>
</script>
</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/dsFormPageSequence/
'
}).
use
(
'
dsFormPageSequenceDraftProcessList
'
);
</script>
</body>
</html>
\ No newline at end of file
dsform/src/main/resources/template/js/dsFormObjectRelation/dsFormObjectRelationEdit.js
浏览文件 @
fbd02af4
...
...
@@ -27,7 +27,7 @@ layui.config({
addRow
();
$
(
"
#dsFormChooseList
"
+
(
rowNum
-
1
)).
val
(
item
.
pageNum
);
$
(
"
#dsFormChooseList
"
+
(
rowNum
-
1
)).
attr
(
"
dataId
"
,
item
.
id
);
$
(
"
#
pageName
"
+
(
rowNum
-
1
)).
html
(
item
.
pageN
ame
);
$
(
"
#
name
"
+
(
rowNum
-
1
)).
html
(
item
.
n
ame
);
})
}
else
{
addRow
();
...
...
@@ -75,7 +75,7 @@ layui.config({
id
:
"
row
"
+
rowNum
.
toString
(),
//checkbox的id
trId
:
"
tr
"
+
rowNum
.
toString
(),
//行的id
dsFormChooseList
:
"
dsFormChooseList
"
+
rowNum
.
toString
(),
// 动态表单选择id
pageName
:
"
pageN
ame
"
+
rowNum
.
toString
()
// 动态表单页面名称id
name
:
"
n
ame
"
+
rowNum
.
toString
()
// 动态表单页面名称id
};
$
(
"
#useTable
"
).
append
(
getDataUseHandlebars
(
usetableTemplate
,
par
));
form
.
render
(
'
checkbox
'
);
...
...
@@ -86,9 +86,9 @@ layui.config({
$
(
"
body
"
).
on
(
"
click
"
,
"
#
"
+
btnId
,
function
(
e
)
{
dsFormUtil
.
chooseType
=
false
;
// 单选
dsFormUtil
.
openDsFormPageChoosePage
(
function
(){
$
(
"
#
"
+
par
.
dsFormChooseList
).
val
(
dsFormUtil
.
dsFormChooseMation
.
pageNum
);
$
(
"
#
"
+
par
.
dsFormChooseList
).
val
(
dsFormUtil
.
dsFormChooseMation
.
numCode
);
$
(
"
#
"
+
par
.
dsFormChooseList
).
attr
(
"
dataId
"
,
dsFormUtil
.
dsFormChooseMation
.
id
);
$
(
"
#
"
+
par
.
pageName
).
html
(
dsFormUtil
.
dsFormChooseMation
.
pageN
ame
);
$
(
"
#
"
+
par
.
name
).
html
(
dsFormUtil
.
dsFormChooseMation
.
n
ame
);
});
});
}
...
...
dsform/src/main/resources/template/js/dsFormPage/dsFormPageDesign.js
浏览文件 @
fbd02af4
...
...
@@ -35,16 +35,17 @@ layui.config({
if
(
typeof
item
.
aData
==
'
string
'
){
obj
=
JSON
.
parse
(
item
.
aData
);
}
item
.
context
=
getDataUseHandlebars
(
item
.
templateContent
,
obj
);
item
.
context
=
getDataUseHandlebars
(
item
.
dsFormComponent
.
templateContent
,
obj
);
}
else
if
(
item
.
associatedDataTypes
==
2
){
//接口
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
dsformpage011
"
,
params
:
{
interfa
:
item
.
aData
},
type
:
'
json
'
,
callback
:
function
(
j
){
var
obj
=
JSON
.
parse
(
j
.
bean
.
aData
);
item
.
context
=
getDataUseHandlebars
(
item
.
templateContent
,
obj
);
item
.
context
=
getDataUseHandlebars
(
item
.
dsFormComponent
.
templateContent
,
obj
);
},
async
:
false
});
}
item
.
value
=
item
.
defaultValue
;
var
jsonStr
=
{
bean
:
item
};
var
html
=
getDataUseHandlebars
(
'
{{#bean}}
'
+
item
.
htmlContent
+
'
{{/bean}}
'
,
jsonStr
);
var
html_js
=
getDataUseHandlebars
(
'
{{#bean}}
'
+
item
.
jsContent
+
'
{{/bean}}
'
,
jsonStr
);
var
html
=
getDataUseHandlebars
(
'
{{#bean}}
'
+
item
.
dsFormComponent
.
htmlContent
+
'
{{/bean}}
'
,
jsonStr
);
var
html_js
=
getDataUseHandlebars
(
'
{{#bean}}
'
+
item
.
dsFormComponent
.
jsContent
+
'
{{/bean}}
'
,
jsonStr
);
var
jsCon
=
'
<script>layui.define(["jquery"], function(exports) {var jQuery = layui.jquery;(function($) {
'
+
html_js
+
'
})(jQuery);});</script>
'
;
$
(
html
).
appendTo
(
$
(
"
#showForm
"
).
get
(
0
)).
attr
(
"
rowid
"
,
item
.
id
);
$
(
"
#showForm
"
).
append
(
jsCon
);
...
...
@@ -54,12 +55,7 @@ layui.config({
function
loadPageMation
(
json
){
$
.
each
(
json
.
rows
,
function
(
i
,
item
)
{
if
(
parseInt
(
item
.
state
)
==
1
){
// 加载非删除状态的数据
loadNewControl
(
item
);
}
else
{
jsonArray
.
push
(
item
);
}
loadNewControl
(
item
);
});
loadFormItemDrop
();
matchingLanguage
();
...
...
@@ -96,11 +92,11 @@ layui.config({
$
.
each
(
json
.
bean
,
function
(
key
,
value
)
{
$
.
each
(
value
,
function
(
j
,
bean
)
{
bean
.
logo
=
systemCommonUtil
.
initIconShow
(
bean
);
formPageControl
.
push
(
bean
);
});
});
},
ajaxSendAfter
:
function
(
json
)
{
formPageControl
=
[].
concat
(
json
.
rows
);
form
.
render
();
}
});
...
...
@@ -110,12 +106,8 @@ layui.config({
$
(
"
.draggable
"
).
draggable
({
appendTo
:
"
body
"
,
helper
:
"
clone
"
,
drag
:
function
(
event
,
ui
)
{
},
stop
:
function
()
{
}
drag
:
function
(
event
,
ui
)
{},
stop
:
function
()
{}
});
$
(
"
.droppable
"
).
droppable
({
accept
:
"
.draggable
"
,
...
...
@@ -157,16 +149,14 @@ layui.config({
});
var
params
=
{
pageId
:
rowId
,
defaultW
idth
:
'
layui-col-xs12
'
,
w
idth
:
'
layui-col-xs12
'
,
title
:
'
标题
'
,
linkedData
:
linkedData
,
require
:
''
,
placeholder
:
''
,
defaultValue
:
''
,
formContentId
:
id
,
editableNodeId
:
''
,
editableNodeName
:
''
,
keyId
:
''
attrKey
:
''
};
if
(
linkedData
==
1
){
...
...
@@ -183,28 +173,15 @@ layui.config({
params
.
associatedDataTypes
=
""
;
params
.
aData
=
""
;
}
params
=
getDataScript
(
params
);
// 保存控件
reqSaveData
(
params
,
templateContent
);
}
// 获取该控件的脚本信息
function
getDataScript
(
params
){
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
queryDsFormContentMationById
"
,
params
:
{
id
:
params
.
formContentId
},
type
:
'
json
'
,
method
:
'
GET
'
,
callback
:
function
(
json
)
{
params
.
htmlContent
=
encodeURIComponent
(
json
.
bean
.
htmlContent
);
params
.
jsContent
=
encodeURIComponent
(
json
.
bean
.
jsContent
);
},
async
:
false
});
return
params
;
}
// 保存“新增控件”
function
reqSaveData
(
params
,
templateContent
){
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
dsformpage003
"
,
params
:
params
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.successfulOperation
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
var
templateJson
=
json
.
bean
;
templateJson
.
biaoJi
=
"
1
"
;
templateJson
.
templateContent
=
templateContent
;
loadNewControl
(
templateJson
);
loadNewControl
(
json
.
bean
);
loadFormItemDrop
();
},
async
:
false
});
}
...
...
@@ -230,14 +207,14 @@ layui.config({
obj
=
JSON
.
stringify
(
item
.
aData
);
}
// json串
$
(
"
#
J
sonData
"
).
val
(
obj
);
$
(
"
#
j
sonData
"
).
val
(
obj
);
}
else
if
(
associatedDataTypes
==
"
2
"
)
{
// 接口
$
(
"
#
nterfac
"
).
val
(
item
.
aData
);
$
(
"
#
interfa
"
).
val
(
item
.
aData
);
}
$
(
"
input:radio[name=associatedDataTypes][value=
"
+
associatedDataTypes
+
"
]
"
).
attr
(
"
checked
"
,
true
);
}
$
(
"
#
defaultWidth
"
).
val
(
item
.
defaultW
idth
);
$
(
"
#
width
"
).
val
(
item
.
w
idth
);
form
.
render
();
form
.
on
(
'
submit(formAddBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
...
...
@@ -251,16 +228,11 @@ layui.config({
form
.
on
(
'
select(require)
'
,
function
(
data
)
{
arr
=
data
.
value
;
});
if
(
!
isNull
(
item
.
require
))
{
arr
=
item
.
require
.
split
(
"
,
"
);
}
// 可编辑节点Id
$
(
'
#editableNodeId
'
).
tagEditor
({
placeholder
:
'
请输入可编辑节点Id
'
});
// 可编辑节点名称
$
(
'
#editableNodeName
'
).
tagEditor
({
placeholder
:
'
请输入可编辑节点名称
'
});
initRequire
(
item
);
matchingLanguage
();
return
;
...
...
@@ -274,7 +246,7 @@ layui.config({
$
(
"
#showForm div[rowid='
"
+
rowid
+
"
']
"
).
remove
();
$
.
each
(
jsonArray
,
function
(
i
,
item
)
{
if
(
item
.
id
===
rowid
){
jsonArray
[
i
].
state
=
0
;
jsonArray
[
i
].
deleteFlag
=
1
;
}
});
$
(
"
#btnBoxDesignForm
"
).
empty
();
...
...
@@ -291,14 +263,12 @@ layui.config({
return
;
}
var
newParams
=
jsonArray
[
inDataIndex
];
newParams
.
labelContent
=
$
(
"
#title
"
).
val
();
newParams
.
title
=
$
(
"
#title
"
).
val
();
newParams
.
placeholder
=
$
(
"
#placeholder
"
).
val
();
newParams
.
require
=
arr
.
join
(
"
,
"
);
newParams
.
value
=
$
(
"
#defaultValue
"
).
val
();
newParams
.
defaultWidth
=
$
(
"
#defaultWidth
"
).
val
();
newParams
.
keyId
=
$
(
"
#keyId
"
).
val
();
newParams
.
editableNodeId
=
data
.
field
.
editableNodeId
;
newParams
.
editableNodeName
=
data
.
field
.
editableNodeName
;
newParams
.
defaultValue
=
$
(
"
#defaultValue
"
).
val
();
newParams
.
width
=
$
(
"
#width
"
).
val
();
newParams
.
attrKey
=
$
(
"
#attrKey
"
).
val
();
var
linkedData
;
//控件关联的数据
var
defaultData
;
//选择事件的默认数据
var
tplContentVal
;
//数据展示模板的内容的值
...
...
@@ -320,7 +290,7 @@ layui.config({
if
(
newParams
.
linkedData
==
1
)
{
newParams
.
associatedDataTypes
=
data
.
field
.
associatedDataTypes
;
if
(
newParams
.
associatedDataTypes
==
1
)
{
var
defaultDataStr
=
$
(
"
#
J
sonData
"
).
val
();
var
defaultDataStr
=
$
(
"
#
j
sonData
"
).
val
();
if
(
isNull
(
defaultDataStr
))
{
winui
.
window
.
msg
(
"
请填写Json串!
"
,
{
icon
:
2
,
time
:
2000
});
return
false
;
...
...
@@ -339,7 +309,7 @@ layui.config({
}
}
}
else
if
(
newParams
.
associatedDataTypes
==
2
)
{
var
interfa
=
$
(
"
#
nterfac
"
).
val
();
var
interfa
=
$
(
"
#
interfa
"
).
val
();
if
(
interfa
.
length
==
0
)
{
winui
.
window
.
msg
(
"
请填写接口!
"
,
{
icon
:
2
,
time
:
2000
});
return
false
;
...
...
@@ -368,18 +338,16 @@ layui.config({
// 对控件进行排序
sortNodeData
();
$
(
"
#showForm
"
).
empty
();
jsonArray
.
sort
(
getSortFun
(
'
asc
'
,
'
orderBy
'
));
jsonArray
.
sort
(
getSortFun
(
'
asc
'
,
'
orderBy
'
));
var
newJson
=
[].
concat
(
jsonArray
);
jsonArray
=
[];
loadPageMation
({
rows
:
newJson
});
}
function
sortNodeData
(){
function
sortNodeData
()
{
$
.
each
(
jsonArray
,
function
(
i
,
item
)
{
if
(
parseInt
(
item
.
state
)
==
1
){
var
inIndex
=
$
(
"
#showForm div[rowid='
"
+
item
.
id
+
"
']
"
).
index
();
jsonArray
[
i
].
orderBy
=
inIndex
/
2
+
1
;
}
var
inIndex
=
$
(
"
#showForm div[rowid='
"
+
item
.
id
+
"
']
"
).
index
();
jsonArray
[
i
].
orderBy
=
inIndex
;
});
}
...
...
@@ -407,14 +375,10 @@ layui.config({
form
.
render
();
}
$
(
"
body
"
).
on
(
"
keyup
"
,
"
.keyIdName
"
,
function
()
{
$
(
this
).
val
(
$
(
this
).
val
().
replace
(
/
[^\w\.\/]
/ig
,
''
));
});
//保存
// 保存
$
(
"
body
"
).
on
(
"
click
"
,
"
#save
"
,
function
()
{
sortDataIn
();
if
(
jsonArray
.
length
==
0
)
{
if
(
jsonArray
.
length
==
0
)
{
winui
.
window
.
msg
(
'
保存页面不能为空!
'
,
{
icon
:
2
,
time
:
2000
});
return
;
}
...
...
dsform/src/main/resources/template/js/dsFormPage/dsFormPageListChoose.js
浏览文件 @
fbd02af4
...
...
@@ -47,9 +47,9 @@ layui.config({
limit
:
getLimit
(),
cols
:
[[
{
type
:
parent
.
dsFormUtil
.
chooseType
?
'
checkbox
'
:
'
radio
'
,
fixed
:
'
left
'
},
{
field
:
'
pageName
'
,
title
:
'
页面
名称
'
,
align
:
'
left
'
,
width
:
120
},
{
field
:
'
pageDesc
'
,
title
:
'
页面
简介
'
,
align
:
'
left
'
,
width
:
350
},
{
field
:
'
pageNum
'
,
title
:
'
页面编号
'
,
align
:
'
center
'
,
width
:
150
},
{
field
:
'
name
'
,
title
:
'
名称
'
,
align
:
'
left
'
,
width
:
120
},
{
field
:
'
remark
'
,
title
:
'
简介
'
,
align
:
'
left
'
,
width
:
350
},
{
field
:
'
numCode
'
,
title
:
'
页面编号
'
,
align
:
'
center
'
,
width
:
150
},
]],
done
:
function
(
res
,
curr
,
count
){
matchingLanguage
();
...
...
@@ -85,6 +85,10 @@ layui.config({
form
.
render
();
});
}
initTableSearchUtil
.
initAdvancedSearch
(
this
,
res
.
searchFilter
,
form
,
"
请输入名称
"
,
function
()
{
table
.
reloadData
(
"
messageTable
"
,
{
page
:
{
curr
:
1
},
where
:
getTableParams
()});
});
}
});
...
...
@@ -108,21 +112,16 @@ layui.config({
});
form
.
render
();
form
.
on
(
'
submit(formSearch)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
table
.
reloadData
(
"
messageTable
"
,
{
page
:
{
curr
:
1
},
where
:
getTableParams
()});
}
return
false
;
});
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
()
{
loadTable
();
});
function
loadTable
()
{
table
.
reloadData
(
"
messageTable
"
,
{
where
:
getTableParams
()});
});
}
function
getTableParams
()
{
return
{
pageName
:
$
(
"
#pageName
"
).
val
()
};
return
$
.
extend
(
true
,
{},
initTableSearchUtil
.
getSearchValue
(
"
messageTable
"
));
}
exports
(
'
dsFormPageListChoose
'
,
{});
...
...
dsform/src/main/resources/template/js/dsFormPage/pageAdd.js
浏览文件 @
fbd02af4
...
...
@@ -15,10 +15,10 @@ layui.config({
form
.
on
(
'
submit(formAddBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
params
=
{
pageName
:
$
(
"
#pageN
ame
"
).
val
(),
pageDesc
:
$
(
"
#pageDesc
"
).
val
()
name
:
$
(
"
#n
ame
"
).
val
(),
remark
:
$
(
"
#remark
"
).
val
()
};
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
dsformpage002
"
,
params
:
params
,
type
:
'
json
'
,
method
:
"
POST
"
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
writeDsFormPage
"
,
params
:
params
,
type
:
'
json
'
,
method
:
"
POST
"
,
callback
:
function
(
json
)
{
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}});
...
...
dsform/src/main/resources/template/js/dsFormPage/pageEdit.js
浏览文件 @
fbd02af4
...
...
@@ -13,7 +13,7 @@ layui.config({
showGrid
({
id
:
"
showForm
"
,
url
:
flowableBasePath
+
"
dsformpage006
"
,
params
:
{
rowId
:
parent
.
rowId
},
params
:
{
id
:
parent
.
rowId
},
pagination
:
false
,
method
:
"
GET
"
,
template
:
$
(
"
#showTemplate
"
).
html
(),
...
...
@@ -24,11 +24,11 @@ layui.config({
form
.
on
(
'
submit(formEditBean)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
var
params
=
{
rowI
d
:
parent
.
rowId
,
pageName
:
$
(
"
#pageN
ame
"
).
val
(),
pageDesc
:
$
(
"
#pageDesc
"
).
val
()
i
d
:
parent
.
rowId
,
name
:
$
(
"
#n
ame
"
).
val
(),
remark
:
$
(
"
#remark
"
).
val
()
};
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
dsformpage007
"
,
params
:
params
,
type
:
'
json
'
,
method
:
"
PU
T
"
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
writeDsFormPage
"
,
params
:
params
,
type
:
'
json
'
,
method
:
"
POS
T
"
,
callback
:
function
(
json
)
{
parent
.
layer
.
close
(
index
);
parent
.
refreshCode
=
'
0
'
;
}});
...
...
dsform/src/main/resources/template/js/dsFormPage/pageList.js
浏览文件 @
fbd02af4
...
...
@@ -25,13 +25,16 @@ layui.config({
limit
:
getLimit
(),
cols
:
[[
{
title
:
systemLanguage
[
"
com.skyeye.serialNumber
"
][
languageType
],
type
:
'
numbers
'
},
{
field
:
'
pageName
'
,
title
:
'
页面
名称
'
,
align
:
'
left
'
,
width
:
120
},
{
field
:
'
pageDesc
'
,
title
:
'
页面
简介
'
,
align
:
'
left
'
,
width
:
350
},
{
field
:
'
pageNum
'
,
title
:
'
页面
编号
'
,
align
:
'
center
'
,
width
:
150
},
{
field
:
'
name
'
,
title
:
'
名称
'
,
align
:
'
left
'
,
width
:
120
},
{
field
:
'
remark
'
,
title
:
'
简介
'
,
align
:
'
left
'
,
width
:
350
},
{
field
:
'
numCode
'
,
title
:
'
编号
'
,
align
:
'
center
'
,
width
:
150
},
{
title
:
systemLanguage
[
"
com.skyeye.operation
"
][
languageType
],
fixed
:
'
right
'
,
align
:
'
center
'
,
width
:
200
,
toolbar
:
'
#tableBar
'
}
]],
done
:
function
(
json
)
{
matchingLanguage
();
initTableSearchUtil
.
initAdvancedSearch
(
this
,
json
.
searchFilter
,
form
,
"
请输入名称
"
,
function
()
{
table
.
reloadData
(
"
messageTable
"
,
{
page
:
{
curr
:
1
},
where
:
getTableParams
()});
});
}
});
...
...
@@ -60,7 +63,7 @@ layui.config({
}});
});
// 表单
控件
// 表单
设计
function
control
(
data
)
{
rowId
=
data
.
id
;
_openNewWindows
({
...
...
@@ -76,7 +79,7 @@ layui.config({
function
delet
(
data
)
{
layer
.
confirm
(
systemLanguage
[
"
com.skyeye.deleteOperationMsg
"
][
languageType
],
{
icon
:
3
,
title
:
systemLanguage
[
"
com.skyeye.deleteOperation
"
][
languageType
]},
function
(
index
)
{
layer
.
close
(
index
);
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
d
sformpage005
"
,
params
:
{
rowI
d
:
data
.
id
},
type
:
'
json
'
,
method
:
"
DELETE
"
,
callback
:
function
(
json
)
{
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
d
eleteDsFormPage
"
,
params
:
{
i
d
:
data
.
id
},
type
:
'
json
'
,
method
:
"
DELETE
"
,
callback
:
function
(
json
)
{
winui
.
window
.
msg
(
systemLanguage
[
"
com.skyeye.deleteOperationSuccessMsg
"
][
languageType
],
{
icon
:
1
,
time
:
2000
});
loadTable
();
}});
...
...
@@ -98,26 +101,16 @@ layui.config({
}
form
.
render
();
form
.
on
(
'
submit(formSearch)
'
,
function
(
data
)
{
if
(
winui
.
verifyForm
(
data
.
elem
))
{
table
.
reloadData
(
"
messageTable
"
,
{
page
:
{
curr
:
1
},
where
:
getTableParams
()});
}
return
false
;
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
()
{
loadTable
();
});
// 刷新数据
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
()
{
loadTable
();
});
function
loadTable
()
{
table
.
reloadData
(
"
messageTable
"
,
{
where
:
getTableParams
()});
}
function
loadTable
()
{
table
.
reloadData
(
"
messageTable
"
,
{
where
:
getTableParams
()});
}
function
getTableParams
()
{
return
{
pageName
:
$
(
"
#pageName
"
).
val
()
};
function
getTableParams
()
{
return
$
.
extend
(
true
,
{},
initTableSearchUtil
.
getSearchValue
(
"
messageTable
"
));
}
exports
(
'
pageList
'
,
{});
...
...
dsform/src/main/resources/template/tpl/dsFormPage/dsFormPageDesign.html
浏览文件 @
fbd02af4
...
...
@@ -52,7 +52,7 @@
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
名称
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
>
<
input
type
=
"
text
"
id
=
"
title
"
name
=
"
title
"
win
-
verify
=
"
required
"
placeholder
=
"
请输入控件名称
"
class
=
"
layui-input
"
maxlength
=
"
18
"
value
=
"
{{
labelContent
}}
"
/>
<
input
type
=
"
text
"
id
=
"
title
"
name
=
"
title
"
win
-
verify
=
"
required
"
placeholder
=
"
请输入控件名称
"
class
=
"
layui-input
"
maxlength
=
"
18
"
value
=
"
{{
title
}}
"
/>
<
/div
>
<
/div
>
<
div
id
=
"
isAssociated
"
class
=
"
layui-hide
"
>
...
...
@@ -66,13 +66,13 @@
<
div
class
=
"
layui-form-item layui-col-xs12 TypeIsOne
"
>
<
label
class
=
"
layui-form-label
"
>
Json串
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
>
<
textarea
id
=
"
JsonData
"
name
=
"
J
sonData
"
class
=
"
layui-textarea
"
><
/textarea
>
<
textarea
id
=
"
jsonData
"
name
=
"
j
sonData
"
class
=
"
layui-textarea
"
><
/textarea
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12 TypeIsTwo layui-hide
"
>
<
label
class
=
"
layui-form-label
"
>
接口
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
>
<
input
type
=
"
text
"
id
=
"
nterfac
"
name
=
"
nterfac
"
class
=
"
layui-input
"
placeholder
=
"
例如:http://localhost:8081/queryDsFormComponentMationToShow
"
/>
<
input
type
=
"
text
"
id
=
"
interfa
"
name
=
"
interfa
"
class
=
"
layui-input
"
placeholder
=
"
例如:http://localhost:8081/queryDsFormComponentMationToShow
"
/>
<
/div
>
<
/div
>
<
/div
>
...
...
@@ -99,7 +99,7 @@
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
宽度
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
>
<
select
lay
-
filter
=
"
defaultWidth
"
lay
-
search
=
""
id
=
"
defaultWidth
"
name
=
"
defaultW
idth
"
>
<
select
lay
-
filter
=
"
width
"
lay
-
search
=
""
id
=
"
width
"
name
=
"
w
idth
"
>
<
option
value
=
"
layui-col-xs9
"
>
3
/
4
<
/option
>
<
option
value
=
"
layui-col-xs4
"
>
1
/
3
<
/option
>
<
option
value
=
"
layui-col-xs6
"
>
1
/
2
<
/option
>
...
...
@@ -108,21 +108,9 @@
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
控件Id
<
/label
>
<
label
class
=
"
layui-form-label
"
>
属性
<
/label
>
<
div
class
=
"
layui-input-block
"
>
<
input
type
=
"
text
"
id
=
"
keyId
"
name
=
"
keyId
"
placeholder
=
"
只接受英文、数字
"
onkeyup
=
"
value=value.replace(/[^
\
w
\
.
\
/]/ig,'')
"
class
=
"
layui-input
"
maxlength
=
"
30
"
value
=
"
{{keyId}}
"
/>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
可编辑节点Id
<
/label
>
<
div
class
=
"
layui-input-block
"
>
<
input
type
=
"
text
"
id
=
"
editableNodeId
"
name
=
"
editableNodeId
"
placeholder
=
"
可编辑节点Id
"
class
=
"
layui-input
"
value
=
"
{{editableNodeId}}
"
/>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
可编辑节点名称
<
/label
>
<
div
class
=
"
layui-input-block
"
>
<
input
type
=
"
text
"
id
=
"
editableNodeName
"
name
=
"
editableNodeName
"
placeholder
=
"
可编辑节点名称
"
class
=
"
layui-input
"
value
=
"
{{editableNodeName}}
"
/>
<
input
type
=
"
text
"
id
=
"
attrKey
"
name
=
"
attrKey
"
placeholder
=
"
只接受英文、数字
"
onkeyup
=
"
value=value.replace(/[^
\
w
\
.
\
/]/ig,'')
"
class
=
"
layui-input
"
maxlength
=
"
30
"
value
=
"
{{attrKey}}
"
/>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
...
...
dsform/src/main/resources/template/tpl/dsFormPage/dsFormPageListChoose.html
浏览文件 @
fbd02af4
...
...
@@ -7,34 +7,15 @@
<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=
"pageName"
name=
"pageName"
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
class=
"layui-btn layui-btn-sm layui-btn-normal"
type=
"button"
id=
"saveCheckBox"
style=
"float: right;"
>
<i
class=
"fa fa-save"
aria-hidden=
"true"
style=
"margin-right: 5px"
></i>
<language
showName=
"com.skyeye.save"
></language>
</button>
<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
class=
"layui-btn layui-btn-sm layui-btn-normal search-table-btn-right"
type=
"button"
id=
"saveCheckBox"
><i
class=
"fa fa-save"
aria-hidden=
"true"
style=
"margin-right: 5px"
></i><language
showName=
"com.skyeye.save"
></language></button>
</div>
</div>
<div
style=
"margin:auto 10px;"
>
<div
style=
"margin:auto 10px;"
>
<table
id=
"messageTable"
lay-filter=
"messageTable"
></table>
</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"
>
...
...
dsform/src/main/resources/template/tpl/dsFormPage/pageAdd.html
浏览文件 @
fbd02af4
...
...
@@ -13,15 +13,15 @@
<span
class=
"hr-title"
>
基本信息
</span><hr>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
页面
名称
<i
class=
"red"
>
*
</i></label>
<label
class=
"layui-form-label"
>
名称
<i
class=
"red"
>
*
</i></label>
<div
class=
"layui-input-block"
>
<input
type=
"text"
id=
"
pageName"
name=
"pageName"
win-verify=
"required"
placeholder=
"请输入页面
名称"
class=
"layui-input"
/>
<input
type=
"text"
id=
"
name"
name=
"name"
win-verify=
"required"
placeholder=
"请输入
名称"
class=
"layui-input"
/>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
<label
class=
"layui-form-label"
>
页面
简介
</label>
<label
class=
"layui-form-label"
>
简介
</label>
<div
class=
"layui-input-block"
>
<textarea
id=
"
pageDesc"
name=
"pageDesc"
placeholder=
"请输入页面
简介"
class=
"layui-textarea"
></textarea>
<textarea
id=
"
remark"
name=
"remark"
placeholder=
"请输入
简介"
class=
"layui-textarea"
></textarea>
</div>
</div>
<div
class=
"layui-form-item layui-col-xs12"
>
...
...
dsform/src/main/resources/template/tpl/dsFormPage/pageEdit.html
浏览文件 @
fbd02af4
...
...
@@ -19,15 +19,15 @@
<
span
class
=
"
hr-title
"
>
基本信息
<
/span><hr
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
页面
名称
<
i
class
=
"
red
"
>*<
/i></
label
>
<
label
class
=
"
layui-form-label
"
>
名称
<
i
class
=
"
red
"
>*<
/i></
label
>
<
div
class
=
"
layui-input-block
"
>
<
input
type
=
"
text
"
id
=
"
pageName
"
name
=
"
pageName
"
win
-
verify
=
"
required
"
placeholder
=
"
请输入页面名称
"
class
=
"
layui-input
"
value
=
"
{{pageN
ame}}
"
/>
<
input
type
=
"
text
"
id
=
"
name
"
name
=
"
name
"
win
-
verify
=
"
required
"
placeholder
=
"
请输入名称
"
class
=
"
layui-input
"
value
=
"
{{n
ame}}
"
/>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
<
label
class
=
"
layui-form-label
"
>
页面简介
<
/label
>
<
div
class
=
"
layui-input-block
"
>
<
textarea
id
=
"
pageDesc
"
name
=
"
pageDesc
"
placeholder
=
"
请输入页面简介
"
class
=
"
layui-textarea
"
>
{{
pageDesc
}}
<
/textarea
>
<
textarea
id
=
"
remark
"
name
=
"
remark
"
placeholder
=
"
请输入页面简介
"
class
=
"
layui-textarea
"
>
{{
remark
}}
<
/textarea
>
<
/div
>
<
/div
>
<
div
class
=
"
layui-form-item layui-col-xs12
"
>
...
...
dsform/src/main/resources/template/tpl/dsFormPage/pageList.html
浏览文件 @
fbd02af4
...
...
@@ -7,24 +7,10 @@
<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=
"pageName"
name=
"pageName"
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=
"1567731484858"
><i
class=
"fa fa-plus"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.addBtn"
></language></button>
<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=
"1567731484858"
><i
class=
"fa fa-plus"
aria-hidden=
"true"
></i><language
showName=
"com.skyeye.addBtn"
></language></button>
</div>
</div>
<div
style=
"margin:auto 10px;"
>
...
...
@@ -36,7 +22,7 @@
{{
#
if
(
auth
(
'
1567731612592
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-danger
"
lay
-
event
=
"
delet
"
><
language
showName
=
"
com.skyeye.deleteBtn
"
><
/language></
a
>
{{
#
}
}}
{{
#
if
(
auth
(
'
1567731
583583
'
)){
}}
{{
#
if
(
auth
(
'
1567731
484858
'
)){
}}
<
a
class
=
"
layui-btn layui-btn-xs layui-btn-normal
"
lay
-
event
=
"
edit
"
><
language
showName
=
"
com.skyeye.editBtn
"
><
/language></
a
>
{{
#
}
}}
</script>
...
...
erp/src/main/resources/template/js/material/materialList.js
浏览文件 @
fbd02af4
...
...
@@ -118,7 +118,6 @@ layui.config({
}
form
.
render
();
// 刷新数据
$
(
"
body
"
).
on
(
"
click
"
,
"
#reloadTable
"
,
function
()
{
loadTable
();
});
...
...
web/src/main/resources/template/assets/lib/layui/customer/skyeye/dsFormUtil.js
浏览文件 @
fbd02af4
...
...
@@ -8,7 +8,7 @@ var dsFormUtil = {
dsFormDataKey
:
"
initData
"
,
dsFormBtnTemplate
:
'
<button type="button" class="layui-btn layui-btn-primary layui-btn-xs" id="{{btnId}}">表单选择</button>
'
,
customDsFormBox
:
'
<div class="layui-form-item layui-col-xs12"><span class="hr-title">{{
pageName}}</span><hr></div><div id="{{
id}}" class="ds-form-page layui-col-xs12"></div>
'
,
customDsFormBox
:
'
<div class="layui-form-item layui-col-xs12"><span class="hr-title">{{
dsFormPage.name}}</span><hr></div><div id="{{dsFormPage.
id}}" class="ds-form-page layui-col-xs12"></div>
'
,
// 必须包含的包
mastHaveImport
:
[
'
laydate
'
,
'
layedit
'
,
'
colorpicker
'
,
'
slider
'
,
'
fileUpload
'
,
'
codemirror
'
,
'
xml
'
,
'
clike
'
,
'
css
'
,
'
htmlmixed
'
,
'
javascript
'
,
'
nginx
'
,
'
solr
'
,
'
sql
'
,
'
vue
'
,
'
matchbrackets
'
,
'
closebrackets
'
,
'
showHint
'
,
'
anywordHint
'
,
'
lint
'
,
'
jsonLint
'
,
'
foldcode
'
,
'
foldgutter
'
,
'
braceFold
'
,
'
commentFold
'
,
'
form
'
],
...
...
@@ -41,7 +41,7 @@ var dsFormUtil = {
},
/**
* 初始化表单选择按钮信息
* 初始化表单选择按钮信息
todo 目前没有用到
*
* @param id dom对象的id
*/
...
...
@@ -86,7 +86,7 @@ var dsFormUtil = {
},
/**
* 加载动态表单
到页面
* 加载动态表单
(新增操作)
*
* @param showBoxId 要追加的boxid后面
* @param code 动态表单-----业务逻辑表单关联表中的code
...
...
@@ -103,7 +103,7 @@ var dsFormUtil = {
loadDsFormItem
:
function
(
showBoxId
,
json
)
{
$
.
each
(
json
.
rows
,
function
(
j
,
bean
){
var
customBoxId
=
bean
.
id
;
var
customBoxId
=
bean
.
dsFormPage
.
id
;
$
(
"
#
"
+
showBoxId
).
append
(
getDataUseHandlebars
(
dsFormUtil
.
customDsFormBox
,
bean
));
dsFormUtil
.
loadDsFormItemToEdit
(
customBoxId
,
bean
.
content
);
});
...
...
@@ -264,7 +264,7 @@ var dsFormUtil = {
},
/**
* 加载动态表单详情
到页面
* 加载动态表单详情
*
* @param showBoxId要追加的boxid后面
* @param objectId 绑定的objectId
...
...
@@ -272,7 +272,7 @@ var dsFormUtil = {
loadPageShowDetailsByObjectId
:
function
(
showBoxId
,
objectId
)
{
AjaxPostUtil
.
request
({
url
:
flowableBasePath
+
"
dsformpage015
"
,
params
:
{
objectId
:
objectId
},
method
:
"
GET
"
,
type
:
'
json
'
,
callback
:
function
(
json
)
{
$
.
each
(
json
.
rows
,
function
(
j
,
bean
)
{
var
customBoxId
=
bean
.
id
;
var
customBoxId
=
bean
.
dsFormPage
.
id
;
$
(
"
#
"
+
showBoxId
).
append
(
getDataUseHandlebars
(
dsFormUtil
.
customDsFormBox
,
bean
));
dsFormUtil
.
initSequenceDataDetails
(
customBoxId
,
bean
.
content
);
});
...
...
@@ -336,7 +336,7 @@ var dsFormUtil = {
},
/**
* 加载动态表单
详情到编辑
* 加载动态表单
(编辑操作)
*
* @param showBoxId要追加的boxid后面
* @param objectId 绑定的objectId
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录