From c6c40ebed70a88cdb9afe701121fa3cbde5b40a4 Mon Sep 17 00:00:00 2001 From: weizhiqiang <598748873@qq.com> Date: Fri, 30 Nov 2018 17:18:59 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B5=81=E7=A8=8B=E5=9B=BE=E4=BF=AE=E6=94=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../webapp/js/planproject/planprojectlist.js | 20 +++ .../webapp/tpl/flowchart/makeflowchart.html | 114 +++++++++--------- .../tpl/planproject/planprojectlist.html | 1 + 3 files changed, 80 insertions(+), 55 deletions(-) diff --git a/skyeye-web/src/main/webapp/js/planproject/planprojectlist.js b/skyeye-web/src/main/webapp/js/planproject/planprojectlist.js index 5b91017a8..75b96efc5 100644 --- a/skyeye-web/src/main/webapp/js/planproject/planprojectlist.js +++ b/skyeye-web/src/main/webapp/js/planproject/planprojectlist.js @@ -47,6 +47,8 @@ layui.config({ del(data, obj); }else if (layEvent === 'edit') { //编辑 edit(data); + }else if (layEvent === 'flowChart') { //流程图设计 + flowChart(data); }else if (layEvent === 'projectDesc') { //项目简介 layer.open({ id: '项目简介', @@ -103,6 +105,24 @@ layui.config({ }}); } + //流程图设计 + function flowChart(data){ + rowId = data.id; + _openNewWindows({ + url: "../../tpl/flowchart/makeflowchart.html", + title: "流程图设计", + pageId: "planprojectedit", + maxmin: true, + callBack: function(refreshCode){ + if (refreshCode == '0') { + top.winui.window.msg("操作成功", {icon: 1,time: 2000}); + loadTable(); + } else if (refreshCode == '-9999') { + top.winui.window.msg("操作失败", {icon: 2,time: 2000}); + } + }}); + } + //刷新数据 $("body").on("click", "#reloadTable", function(){ loadTable(); diff --git a/skyeye-web/src/main/webapp/tpl/flowchart/makeflowchart.html b/skyeye-web/src/main/webapp/tpl/flowchart/makeflowchart.html index a9b5b6297..91a233e42 100644 --- a/skyeye-web/src/main/webapp/tpl/flowchart/makeflowchart.html +++ b/skyeye-web/src/main/webapp/tpl/flowchart/makeflowchart.html @@ -8,63 +8,67 @@
-