privilege.html 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. <div id="component" class="row">
  2. <vc:create name="privilegeGroup"></vc:create>
  3. <div class="col-lg-9 animated fadeInRight">
  4. <div class="mail-box-header">
  5. <button v-if="privilegeInfo._currentStoreId != '9999'"
  6. class="btn btn-primary btn-sm float-right"
  7. data-toggle="tooltip"
  8. title="Refresh inbox"
  9. v-on:click="openAddPrivilegeModel()"
  10. ><i class="fa fa-plus"></i> 添加权限</button>
  11. <div class="float-right mail-search" style="margin-right:10px">
  12. <div class="input-group">
  13. <input type="text" class="form-control form-control-sm" v-model="privilegeInfo._pName" name="search" placeholder="请输入权限名称">
  14. <div class="input-group-btn">
  15. <button v-on:click="queryPrivilege()" class="btn btn-sm btn-primary">
  16. 查询
  17. </button>
  18. </div>
  19. </div>
  20. </div>
  21. <h2>
  22. {{privilegeInfo._currentPgName}}
  23. </h2>
  24. </div>
  25. <div class="mail-box">
  26. <table class="table table-hover table-mail">
  27. <thead>
  28. <tr>
  29. <th>权限编码</th>
  30. <th>权限名称</th>
  31. <th>资源路径</th>
  32. <th>权限描述</th>
  33. <th>创建时间</th>
  34. <th>操作</th>
  35. </tr>
  36. </thead>
  37. <tbody>
  38. <tr v-for="privilege in privilegeInfo._privileges" class="read">
  39. <td class="check-mail">
  40. {{privilege.pId}}
  41. </td>
  42. <td class="mail-ontact">{{privilege.name}}</td>
  43. <td class="mail-ontact">{{privilege.resource}}</td>
  44. <td class="mail-subject">{{privilege.description}}</td>
  45. <td class="">{{vc.dateFormat(privilege.createTime)}}</td>
  46. <td class="text-right mail-date">
  47. <i v-if="privilegeInfo._currentStoreId != '9999'"
  48. v-on:click="openDeletePrivilegeModel(privilege)"
  49. class="glyphicon glyphicon-remove"></i>
  50. </td>
  51. </tr>
  52. </tbody>
  53. </table>
  54. </div>
  55. </div>
  56. <vc:create name="addPrivilege"></vc:create>
  57. <vc:create name="deletePrivilege"></vc:create>
  58. </div>