快捷发布代码优化

This commit is contained in:
zhaol 2025-05-06 10:41:02 +08:00
parent a133ae385a
commit b12d3d7dfe

View File

@ -265,6 +265,14 @@ $(function () {
* 快捷发布
*/
$("#QuickPublishing").off("click").on("click", function () {
var type='';
//工程制度标准
if(methodId=="engineering.standard"){
type='1';
}else{
//发布流程
type='2';
}
$.ajax({
type: "POST",
url: "./jd",
@ -272,7 +280,7 @@ $(function () {
sid: CLB.sid,
palUUID:ruuid,
cmd: "com.actionsoft.apps.coe.pal.publisher.createProcess",
processDefId: "obj_fb1c7a54b98b412187388c8bab407362",
type: type,
},
success: function (r) {
window.open(r.data.url);
@ -293,7 +301,7 @@ $(function () {
sid: CLB.sid,
palUUID:ruuid,
cmd: "com.actionsoft.apps.coe.pal.publisher.createProcess_processTermination",
processDefId: "obj_fb1c7a54b98b412187388c8bab407362",
processDefId: "obj_8ade0297948b4e4aa360cc48e9283414",
},
success: function (r) {
if(r.result == "error"){