1234567891011121314151617181920212223242526272829303132333435363738394041424344454647 |
- 'use strict';
- /**
- * controller for User Profile Example
- */
- // "$aside", "toaster", "api_bpm_domain", "api_configure_data", "api_cmdb", "api_configure_form",
- // app.controller('gdzc_attributeCtrl', ["$rootScope", "$scope", "$http", "$state", "$timeout", "$injector", '$parse', "$interval", "$modal", "$stateParams", "$aside", "SweetAlert", "toaster", "FileUploader", "i18nService", "uiGridConstants", "uiGridGroupingConstants", "Restangular", "api_bpm_domain", "api_configure_data", "api_cmdb", "api_configure_form", function($rootScope, $scope, $http, $state, $timeout, $parse, $injector, $interval, $modal, $stateParams, $aside, SweetAlert, toaster, FileUploader, i18nService, uiGridConstants, uiGridGroupingConstants, Restangular, api_bpm_domain, api_configure_data, api_cmdb, api_configure_form) {
- // $scope.getKey=function(){
- // api_configure_form.renderTabForm($rootScope.gdzc_label).then(function(data) {
- // // console.log(data);
- // $scope.getKeydata=data;
- // });
- // };
- // // console.log($rootScope.gdzc_label);
- // $scope.getKey();
- // $scope.val=function(res){
- // if($rootScope.gdzc_item.props[res]==''||$rootScope.gdzc_item.props[res]==undefined){
- // return "无"
- // }else{
- // return $rootScope.gdzc_item.props[res];
- // }
- // // return res
- // };
- // // console.log($rootScope.user)
- // }]);
- app.controller('gdzc_attributeCtrl', ["$rootScope", "$scope", "$http", "$state", "$timeout", "$injector", '$parse', "$interval", "$modal", "$stateParams", "$aside", "SweetAlert", "toaster", "FileUploader", "i18nService", "uiGridConstants", "uiGridGroupingConstants", "Restangular", "api_bpm_domain", "api_configure_data", "api_cmdb", "api_configure_form", function($rootScope, $scope, $http, $state, $timeout, $parse, $injector, $interval, $modal, $stateParams, $aside, SweetAlert, toaster, FileUploader, i18nService, uiGridConstants, uiGridGroupingConstants, Restangular, api_bpm_domain, api_configure_data, api_cmdb, api_configure_form) {
- $scope.gdzc_label=$stateParams.gdzc_label1;
- $scope.gdzc_item=JSON.parse($stateParams.gdzc_item1);
- $scope.gdzc_item.props['hw_createtime']=$scope.gdzc_item.createtime;//创建时间
- $scope.gdzc_item.props['hw_updata']=$scope.gdzc_item.lastupdatetime;//更新时间
- $scope.gdzc_item.props['hw_change']=$scope.gdzc_item.props.lastupdateperson;//更新人
- // console.log($scope.gdzc_item);
- // $scope.gdzc_item=$stateParams.gdzc_item;
- $scope.getKey=function(){
- api_configure_form.renderTabForm($scope.gdzc_label).then(function(data) {
- $scope.getKeydata=data;
- });
- };
- $scope.getKey();
- $scope.val=function(res){
- if($scope.gdzc_item.props[res]==''||$scope.gdzc_item.props[res]==undefined){
- return "无"
- }else{
- return $scope.gdzc_item.props[res];
- }
- // return res
- };
- }]);
|