Quellcode durchsuchen

打印和流程日志ID唯一性控制

songxy vor 10 Monaten
Ursprung
Commit
a87707347a
1 geänderte Dateien mit 3 neuen und 3 gelöschten Zeilen
  1. 3 3
      zjugis-workflow/src/main/resources/static/js/config.js

+ 3 - 3
zjugis-workflow/src/main/resources/static/js/config.js

@@ -1057,7 +1057,7 @@
 				"&fromId=",
 				z.ui.comm.getStrUrlParam(thatUrl, "_fm")].join("");
 			z.webcontainer.openTab({
-				id: 'flow_reports_page',
+				id: z.ui.comm.getStrUrlParam(thatUrl, "flowInstanceId") + '_flow_reports_page',
 				title: "报表打印",
 				url: url,
 				iconclass: 'fa fa-file'
@@ -1095,7 +1095,7 @@
 		},//历史意见
 		flowlog: function (ele) {
 			z.webcontainer.openTab({
-				id: 'workflowMain_' + new Date().getTime(),
+				id: 'workflowMain_History_' + z.ui.comm.getUrlParam("flowInstanceId"),
 				title: "流程日志",
 				// tip: window.userConfig.tn,
 				url: workflowHost + "/IFlowRecord/index?flowInstanceId=" + z.ui.comm.getUrlParam("flowInstanceId"),
@@ -1112,7 +1112,7 @@
 					},
 					success: function (res) {
 						z.webcontainer.openTab({
-							id: 'workflowMain_' + new Date().getTime(),
+							id: 'workflowMain_Log_' + z.ui.comm.getUrlParam("flowInstanceId"),
 							title: res.name,
 							url: res.url,
 							iconclass: 'fa fa-file'