|
|
@@ -802,10 +802,10 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'file-
|
|
|
$rootScope.tree = 'user';
|
|
|
$rootScope.thief = 'newOrg';
|
|
|
// 主要领域
|
|
|
- // $scope.areas = ['疾病援助', '扶贫/救灾', '教育/助学' , '环境/动物保护', '其他'];
|
|
|
- $scope.org = {
|
|
|
- majorArea: 1
|
|
|
- };
|
|
|
+ $scope.defaultMajorAreas = ['疾病援助', '扶贫/救灾', '教育/助学' , '环境/动物保护', '其他'];
|
|
|
+ // $scope.org = {
|
|
|
+ // majorArea: 1
|
|
|
+ // };
|
|
|
|
|
|
var orgCopy;
|
|
|
// 获取当前账户注册机构情况
|
|
|
@@ -815,6 +815,9 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'file-
|
|
|
|
|
|
Organization.getByUuid({uuid : $scope.userUU}, {}, function(data) {//10041558
|
|
|
if (typeof data.id == 'undefined') {
|
|
|
+ $scope.org = {
|
|
|
+ majorArea: $scope.defaultMajorAreas[0]
|
|
|
+ };
|
|
|
return;
|
|
|
}
|
|
|
|
|
|
@@ -840,8 +843,8 @@ define([ 'angularAMD', 'ui.router', 'ui-bootstrap', 'ngLocal', 'ngTable', 'file-
|
|
|
});
|
|
|
|
|
|
// 设置主要领域
|
|
|
- $scope.selectMajorArea = function(index) {
|
|
|
- $scope.org.majorArea = index;
|
|
|
+ $scope.setMajorArea = function(majorArea) {
|
|
|
+ $scope.org.majorArea = majorArea;
|
|
|
};
|
|
|
|
|
|
$scope.openDatePicker = function ($event, item, openParam) {
|