|
@@ -35,17 +35,17 @@
|
|
|
return;
|
|
return;
|
|
|
}
|
|
}
|
|
|
var data = {
|
|
var data = {
|
|
|
- keyName:keyNameValue
|
|
|
|
|
|
|
+ depCode:keyNameValue
|
|
|
}
|
|
}
|
|
|
console.log(1,data);
|
|
console.log(1,data);
|
|
|
$.ajax({
|
|
$.ajax({
|
|
|
url: prefixEdit,
|
|
url: prefixEdit,
|
|
|
- type: "post",
|
|
|
|
|
|
|
+ type: "get",
|
|
|
contentType: 'application/json',
|
|
contentType: 'application/json',
|
|
|
- data: JSON.stringify(data),
|
|
|
|
|
|
|
+ data: data,
|
|
|
success: function (result) {
|
|
success: function (result) {
|
|
|
if (result.code == 0) {
|
|
if (result.code == 0) {
|
|
|
- $.modal.alertWarning('提交成功');
|
|
|
|
|
|
|
+ $.modal.alertWarning(result.msg);
|
|
|
} else {
|
|
} else {
|
|
|
$.modal.alertWarning(result.msg);
|
|
$.modal.alertWarning(result.msg);
|
|
|
}
|
|
}
|