zoukankan      html  css  js  c++  java
  • 下拉操作框和新打开页面

    {
    name: '操作',
    enableSorting: false,
    minWidth: 135,
    pinnedRight: true,
    cellTemplate:
    '<div class="ui-grid-cell-contents">' +
    ' <div class="btn-group dropdown" uib-dropdown="" dropdown-append-to-body>' +
    ' <button class="btn btn-xs btn-primary" uib-dropdown-toggle="" aria-haspopup="true" aria-expanded="true"><i class="fa fa-cog"></i>操作<span class="caret"></span></button>' +
    ' <ul uib-dropdown-menu class="dropdown-menu-right ui-grid-dropdown">' +
    ' <li><a ng-href="#/hrm/salary/PrintDetail/{{row.entity.id}}" ><i class="fa fa-fw fa-calendar-o"></i>跳转预览</a></li>' +

    ' <li><a ng-href="#/hrm/salary/PrintDetail/{{row.entity.id}}"  target="_blank"><i class="fa fa-fw fa-calendar-o"></i>打开新页面预览</a></li>' +

    ' <li><a ng-click="grid.appScope.openEdit(row.entity.id)" href="" title="上传文件"><i class="fa fa-fw fa-upload"></i>弹出框编辑</a></li>' +
    ' </ul>' +
    ' </div>' +
    '</div>'
    }

    //编辑   打开的页面也应只是一个div页面

    vm.openEdit= function (entityId) {
    var modalInstance = $uibModal.open({
    templateUrl: '~/App/Hrm/views/Salary/detail.cshtml',
    controller: 'app.hrm.views.salary.detail as vm',
    backdrop: 'static',
    size: "lg",
    resolve: {
    Id: function () {
    return entityId;
    }
    }
    });

    modalInstance.result.then(function (result) {
    }, function () {
    });
    }

    加了这个target="_blank"的是打开一个新的窗口,没加的是直接跳转到新页面。

    加了方法的是打开一个弹出层

  • 相关阅读:
    Spring Aop实例之xml配置
    Spring execution 表达式
    JVM调优总结 -Xms -Xmx -Xmn -Xss
    springmvc整合redis架构搭建实例
    mysql权限操作(转)
    mybatis动态排序
    spring mvc重定向
    jquery中bind和on的区别
    在java项目中使用umeditor
    mybatis的基础Dao
  • 原文地址:https://www.cnblogs.com/luoxiaoxiao102/p/14521759.html
Copyright © 2011-2022 走看看