1234567891011121314151617181920212223242526272829303132333435363738394041 |
- angular.module('push')
- .controller('SelfcheckentranceCtrl', function ($scope,SelfcheckService,taskModuleService,$stateParams) {
- $scope.titleid=$stateParams.id
- SelfcheckService.getSelfcheckentrance($stateParams.id).then(function (res){
- console.log(res)
- if(res.code==3350){
- $scope.list=res.data
- }else {
- $ionicPopup.alert({
- title: '提示',
- template: res.message
- });
- }
- }).catch(function (res){
- $ionicPopup.alert({
- title: '提示',
- template: "服务器错误"
- });
- })
- $scope.JumpEntry=function (item){
- //等于1跳转自检页面
- if($scope.titleid==1){
- if(item.sort==0){
- taskModuleService.judgeUserInOrgForTL().then(function (res) {
- console.log(res)
- if (res.code == 3350) {
- if (res.data) {
- $scope.go('orgInspectList', {isuserlist: false});
- } else {
- $scope.go('orgInspectList', {isuserlist: true});
- }
- }
- })
- }else {
- $scope.go('Selfchecklist', {restype: item.sort,name:item.title});
- }
- }else {
- $scope.go('cultivatelist', {restype: item.sort,name:item.title});
- }
- }
- })
|