master
lujian 6 years ago
parent 7ac0a012d6
commit 0de5aa3780

@ -191,6 +191,8 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
* @returns {*} * @returns {*}
*/ */
$scope.splitStr = function (str, position) { $scope.splitStr = function (str, position) {
if (str == null || str == '')
return;
var strArr = str.split(","); var strArr = str.split(",");
var resultStr = ''; var resultStr = '';
for (var i = 0; i < strArr.length; i++) { for (var i = 0; i < strArr.length; i++) {
@ -598,6 +600,9 @@ define(['angular', 'jquery', 'uiRouter', './monitoring/analysis-monitoring'],
}; };
$scope.is_send_client = false; $scope.is_send_client = false;
$scope.changeIsSendClient = function(flag) {
$scope.is_send_client = flag
};
$scope.save = function(form) { $scope.save = function(form) {
if (form.$invalid) { if (form.$invalid) {
angular.forEach(form, function (item, key) { angular.forEach(form, function (item, key) {

@ -238,6 +238,7 @@
<div class="col-xs-6"> <div class="col-xs-6">
<input type="checkbox" <input type="checkbox"
ng-model="is_send_client" ng-model="is_send_client"
ng-change="changeIsSendClient(is_send_client)"
bs-switch> bs-switch>
</div> </div>
</div> </div>

Loading…
Cancel
Save