This repository has been archived by the owner on May 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 27
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
999 additions
and
12 deletions.
There are no files selected for viewing
4 changes: 4 additions & 0 deletions
4
aspnet-core/src/MPACore.PhoneBook.Application/PhoneBooks/Dtos/PersonEditDto.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
825 changes: 825 additions & 0 deletions
825
aspnet-core/src/MPACore.PhoneBook.Web.Mvc/App_Data/Logs/Logs.txt
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
35 changes: 35 additions & 0 deletions
35
aspnet-core/src/MPACore.PhoneBook.Web.Mvc/wwwroot/view-resources/Views/Persons/Index.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
(function() { | ||
|
||
$(function() { | ||
|
||
var _personService = abp.services.app.person; | ||
|
||
var _$modal = $("#PersonCreateModal"); | ||
var _$form = _$modal.find('form'); | ||
|
||
|
||
//添加联系人功能 | ||
|
||
_$form.find('button[type="submit"]').click(function(e) { | ||
e.preventDefault(); | ||
if (!_$form.valid()) { | ||
return; | ||
} | ||
var personEditDto = _$form.serializeFormToObject();//序列化表单为对象 | ||
|
||
abp.ui.setBusy(_$modal); | ||
//约定大于配置 | ||
_personService.createOrUpdatePerson({personEditDto}).done(function() { | ||
_$modal.modal('hide'); | ||
location.reload(); | ||
}).always(function() { | ||
abp.ui.clearBusy(_$modal); | ||
}); | ||
|
||
}); | ||
|
||
|
||
}); | ||
|
||
|
||
})(); |