质量校验去掉保存校验
This commit is contained in:
parent
2c3b4c2186
commit
ce86de37df
@ -103,84 +103,6 @@ $(function() {
|
||||
|
||||
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : "./jd",
|
||||
data : {
|
||||
sid : CLB.sid,
|
||||
cmd:"com.actionsoft.apps.coe.pal_repository_process_define_Quality_check",
|
||||
wsId : $("#wsId").val(),
|
||||
uuid : ruuid,
|
||||
obj : awsui.encode(obj)
|
||||
|
||||
},
|
||||
success:function(r) {
|
||||
$.simpleAlert("close");
|
||||
if(r.data.result=="error"){
|
||||
$.simpleAlert(r.data.sb,"error");
|
||||
}else{
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "./jd",
|
||||
data: {
|
||||
sid: CLB.sid,
|
||||
cmd: "com.actionsoft.apps.coe.pal_repository_process_define_save",
|
||||
uuid: ruuid,
|
||||
define: awsui.encode(obj),
|
||||
teamId: $("#teamId").val(),
|
||||
BPMInstanceName: BPMInstanceName,
|
||||
messages: messageArray
|
||||
},
|
||||
success: function (msg, textStatus, jqXHR) {
|
||||
if(msg.result == "ok") {
|
||||
$.simpleAlert("close");
|
||||
messageArrayForSave = {};
|
||||
$("#saving_tip").css("color", "rgb(26, 164, 125)");
|
||||
$("#saving_tip").text("保存成功");
|
||||
recordShapeText();// 记录最新的节点及其文本text
|
||||
//更多属性的处理,当节点处理完成后再处理更多属性
|
||||
if (saveAttributesJson.length > 0 || removeAttributeJson.length > 0){
|
||||
$.ajax({
|
||||
type : "POST",
|
||||
url : "./jd",
|
||||
data : {
|
||||
sid : encodeURI(CLB.sid),
|
||||
cmd : "com.actionsoft.apps.coe.pal_pl_repository_more_attribute_save",
|
||||
wsId : $("#wsId").val(),
|
||||
uuid : ruuid,
|
||||
attributesJson : JSON.stringify(saveAttributesJson),
|
||||
removeAttributeJson : JSON.stringify(removeAttributeJson)
|
||||
},
|
||||
success:function(r) {
|
||||
saveAttributesJson = [];
|
||||
removeAttributeJson = [];
|
||||
},
|
||||
error:function(r) {
|
||||
}
|
||||
});
|
||||
}
|
||||
$.simpleAlert("保存成功", "ok");
|
||||
//保存结束时间戳
|
||||
//var saveEndTime = new Date().getTime();
|
||||
//console.log("流程保存时间:", (saveEndTime - saveStartTime) + "毫秒");
|
||||
} else {
|
||||
$.simpleAlert("close");
|
||||
$.simpleAlert(msg.data.desc, 'error', 2000);
|
||||
}
|
||||
},
|
||||
error: function (jqXHR, textStatus, errorThrown) {
|
||||
$.simpleAlert("close");
|
||||
$.simpleAlert('保存失败', 'error', 1500);
|
||||
}
|
||||
});
|
||||
|
||||
}
|
||||
|
||||
},
|
||||
error:function(r) {
|
||||
}
|
||||
});
|
||||
|
||||
/*$.ajax({
|
||||
type: "POST",
|
||||
url: "./jd",
|
||||
data: {
|
||||
@ -233,7 +155,9 @@ $(function() {
|
||||
$.simpleAlert("close");
|
||||
$.simpleAlert('保存失败', 'error', 1500);
|
||||
}
|
||||
});*/
|
||||
});
|
||||
|
||||
|
||||
|
||||
|
||||
/*} else {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user