解决应用和功能模块的bug

This commit is contained in:
季圣华
2019-01-09 23:57:00 +08:00
parent 9760cad758
commit a4ee6af852
2 changed files with 17 additions and 5 deletions

View File

@@ -369,13 +369,18 @@
if (checkAppName()) {
return;
}
var infoObj = $("#appFM").serializeObject();
infoObj.ReSize = $("#ReSize").is(':checked');
infoObj.OpenMax = $("#OpenMax").is(':checked');
infoObj.Flash = $("#Flash").is(':checked');
infoObj.Enabled = $("#Enabled").is(':checked');
$.ajax({
url: url,
type: "post",
dataType: "json",
fileElementId: 'Icon',
data: ({
info: JSON.stringify($("#appFM").serializeObject())
info: JSON.stringify(infoObj)
}),
success: function(res) {
if(res && res.code === 200) {
@@ -420,7 +425,7 @@
appID = appInfo[0];
//焦点在名称输入框==定焦在输入文字后面
$("#name").val("").focus().val(appInfo[1]);
url = '/depot/update?id=' + appInfo[0];
url = '/app/update?id=' + appInfo[0];
}
//检查名称是否存在 ++ 重名无法提示问题需要跟进