<li class="treeview"  ng-show="formFind.show">
        <a href="#">
            <i class="fa fa-folder"></i> 
            <span>报表查询</span>
            <span class="pull-right-container">
        <i class="fa fa-angle-left pull-right"></i>
      </span>
        </a>
        <ul class="treeview-menu">

            <li id="">
                <a href="situation_form.html" target="iframe"  ng-show="situation.show">
                    <i class="fa fa-circle-o"></i> 填报情况表
                </a>
            </li>
             <li >
                <a href="common_form.html" target="iframe"  ng-show="common.show">
                    <i class="fa fa-circle-o"></i> 通用报表
                </a>
            </li>
<li>
                <a href="fertilizer_query.html" target="iframe"  ng-show="fertilizer.show">
                    <i class="fa fa-circle-o"></i> 肥料查询
                </a>
            </li>
                            <li>
                                <a href="pesticides_query.html" target="iframe"  ng-show="pesticides.show">
                                    <i class="fa fa-circle-o"></i> 农药查询
                                </a>
                            </li>
        </ul>                        
    </li>
$scope.userInfo={};
    $scope.login=function (username,password,check) {
        if(username && password && check) {
            userService.login(username, password,check).success(
                function (response) {
                    if (response.flag) {
                        $scope.userInfo=response.data;
                        var roleName = $scope.userInfo.roleName;
                        if(roleName=='农户'){
                            $scope.agriForm = {
                                show:true
                            };
                            $scope.type={
                                show:false
                            };
                            $scope.varieties={
                                show:false
                            };
                            $scope.main={
                                show:true
                            };
                            $scope.formFind={
                                show:false
                            };
                            $scope.situation={
                                show:false
                            };
                            $scope.common={
                                show:false
                            };
                            $scope.fertilizer={
                                show:false
                            };
                            $scope.pesticides={
                                show:false
                            };
                            $scope.systemManage={
                                show:false
                            };
                            $scope.user={
                                show:false
                            };
                            $scope.menus={
                                show:false
                            };
                            $scope.role={
                                show:false
                            };
                            $scope.app={
                                show:false
                            }
                        }
                        if(roleName=='区管理员'){
                            $scope.agriForm = {
                                show:true
                            };
                            $scope.type={
                                show:false
                            };
                            $scope.varieties={
                                show:false
                            };
                            $scope.main={
                                show:true
                            };
                            $scope.formFind={
                                show:true
                            };
                            $scope.situation={
                                show:true
                            };
                            $scope.common={
                                show:false
                            };
                            $scope.fertilizer={
                                show:true
                            };
                            $scope.pesticides={
                                show:true
                            };
                            $scope.systemManage={
                                show:true
                            };
                            $scope.user={
                                show:true
                            };
                            $scope.menus={
                                show:false
                            };
                            $scope.role={
                                show:false
                            };
                            $scope.app={
                                show:false
                            }
                        }
                        if(roleName=='管理员'){
                            $scope.agriForm = {
                                show:true
                            };
                            $scope.type={
                                show:true
                            };
                            $scope.varieties={
                                show:true
                            };
                            $scope.main={
                                show:true
                            };
                            $scope.formFind={
                                show:true
                            };
                            $scope.situation={
                                show:true
                            };
                            $scope.common={
                                show:true
                            };
                            $scope.fertilizer={
                                show:true
                            };
                            $scope.pesticides={
                                show:true
                            };
                            $scope.systemManage={
                                show:true
                            };
                            $scope.user={
                                show:true
                            };
                            $scope.menus={
                                show:true
                            };
                            $scope.role={
                                show:true
                            };
                            $scope.app={
                                show:true
                            }
                        }
                        location.href = "admin/index.html";
                    } else {
                        alert(response.errorMsg);
                    }
                }
            )
        }else{
            alert("请输入用户名和密码");
        }
    };