...
|
...
|
@@ -659,14 +659,20 @@ |
|
|
dataType: "json",
|
|
|
type: "POST",
|
|
|
data: JSON.stringify(ajaxData),
|
|
|
success: function(data) {
|
|
|
that.submitFlag = false;
|
|
|
success: function(ret) {
|
|
|
$.messager.progress("close");
|
|
|
that.submitFlag = false;
|
|
|
|
|
|
if (ret && ret.code == 200) {
|
|
|
$.messager.alert('操作提示', '提交成功!');
|
|
|
window.location.href = contextPath + "/html/product/productList.html";
|
|
|
} else {
|
|
|
$.messager.alert('操作提示', ret.message || '提交失败');
|
|
|
}
|
|
|
},
|
|
|
error: function(err) {
|
|
|
that.submitFlag = false;
|
|
|
$.messager.progress("close");
|
|
|
$.messager.alert('操作提示', err.message || '提交失败');
|
|
|
}
|
|
|
});
|
...
|
...
|
|