提交 0c6b87fa 编写于 作者: Skyeye云's avatar Skyeye云

动态表单关联的工作流整改完成

上级 3d0053b3
...@@ -27,13 +27,13 @@ layui.config({ ...@@ -27,13 +27,13 @@ layui.config({
form.on('submit(formAddBean)', function (data) { form.on('submit(formAddBean)', function (data) {
if (winui.verifyForm(data.elem)) { if (winui.verifyForm(data.elem)) {
activitiUtil.startProcess(parent.dsFormId, null, function (approvalId) { activitiUtil.startProcess(actFlowId, null, function (approvalId) {
if(isNull(actFlowId)){ if(isNull(actFlowId)){
winui.window.msg('流程对象为空,无法启动.', {icon: 2, time: 2000}); winui.window.msg('流程对象为空,无法启动.', {icon: 2, time: 2000});
return false; return false;
} }
var jStr = { var jStr = {
keyName: actFlowId, actFlowId: actFlowId,
jsonStr: JSON.stringify(dsFormUtil.getPageData($("#showForm"))), jsonStr: JSON.stringify(dsFormUtil.getPageData($("#showForm"))),
pageId: parent.dsFormId, pageId: parent.dsFormId,
approvalId: approvalId approvalId: approvalId
......
...@@ -29,7 +29,7 @@ layui.config({ ...@@ -29,7 +29,7 @@ layui.config({
var str = ""; var str = "";
if(v1 == 1){ if(v1 == 1){
// icon // icon
str = '<i class="fa fa-fw ' + v3 + '" style="font-size: 18px; line-height: 30px; width: 100%; color: ' + v4 + '"></i>'; str = '<i class="fa fa-fw ' + v3 + '" style="font-size: 18px; line-height: 30px; color: ' + v4 + '"></i>';
} else { } else {
str = '<img src="' + reqBasePath + v2 + '" class="photo-img" style="width: 25px; height: 25px">'; str = '<img src="' + reqBasePath + v2 + '" class="photo-img" style="width: 25px; height: 25px">';
} }
......
...@@ -126,6 +126,13 @@ var initTableSearchUtil = { ...@@ -126,6 +126,13 @@ var initTableSearchUtil = {
$(".winui-tool").append(jsCon); $(".winui-tool").append(jsCon);
} }
} }
// 监听搜索的回车按钮
$("#" + tableId + "KeyWord").keypress(function (event) {
if (event.keyCode == 13) {
// 回车搜索
$("#" + tableId + "SearchTable").click();
}
});
}, },
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册