|
@@ -1026,6 +1026,7 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
|
1026
|
1026
|
backdrop: "static",
|
1027
|
1027
|
templateUrl: 'assets/views/customform/tpl/modal-add-callrequester.html',
|
1028
|
1028
|
controller: function($scope, $modalInstance, api_user_data, api_wechatfile, SweetAlert) {
|
|
1029
|
+ $modalInstance.SweetAlert = SweetAlert;
|
1029
|
1030
|
$scope.title = "新增报修人";
|
1030
|
1031
|
$scope.requester = {};
|
1031
|
1032
|
$scope.onChangeadd = function(searchData) {
|
|
@@ -1255,7 +1256,11 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
|
1255
|
1256
|
};
|
1256
|
1257
|
$state.go('app.incident.title', { 'model': JSON.stringify(data) });
|
1257
|
1258
|
}else{
|
1258
|
|
- SweetAlert.swal("操作失败!", "添加报修人失败", "error");
|
|
1259
|
+ modalInstance.SweetAlert.swal({
|
|
1260
|
+ title: "系统错误",
|
|
1261
|
+ text: "账号重复!",
|
|
1262
|
+ type: "error",
|
|
1263
|
+ });
|
1259
|
1264
|
}
|
1260
|
1265
|
})
|
1261
|
1266
|
}
|
|
@@ -1474,6 +1479,7 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
|
1474
|
1479
|
var modalInstance = $modal.open({
|
1475
|
1480
|
templateUrl: 'assets/views/customform/tpl/modal-add-callrequester.html',
|
1476
|
1481
|
controller: function ($scope, $modalInstance, api_user_data, SweetAlert, api_wechatfile) {
|
|
1482
|
+ $modalInstance.SweetAlert = SweetAlert;
|
1477
|
1483
|
$scope.title = "新增报修人";
|
1478
|
1484
|
$scope.requester = {};
|
1479
|
1485
|
$scope.onChangeadd = function (searchData) {
|
|
@@ -1649,6 +1655,12 @@ app.controller('AppCtrl', ['$rootScope', '$scope', '$state', '$translate', '$loc
|
1649
|
1655
|
$state.go('app.incident.title', {
|
1650
|
1656
|
'model': JSON.stringify(data)
|
1651
|
1657
|
});
|
|
1658
|
+ }else{
|
|
1659
|
+ modalInstance.SweetAlert.swal({
|
|
1660
|
+ title: "系统错误",
|
|
1661
|
+ text: "账号重复!",
|
|
1662
|
+ type: "error",
|
|
1663
|
+ });
|
1652
|
1664
|
}
|
1653
|
1665
|
})
|
1654
|
1666
|
}
|