role.html 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <title>角色管理</title>
  5. #parse("sys/header.html")
  6. </head>
  7. <body>
  8. <div id="rrapp" v-cloak>
  9. <div v-show="showList">
  10. <Row :gutter="16">
  11. <div class="search-group">
  12. <i-col span="8">
  13. <div style="display: inline-block;">
  14. <i-input v-model="q.roleName" @on-enter="query" placeholder="角色名称"/>
  15. </div>
  16. <div style="display: inline-block;">
  17. <i-button @click="query">查询</i-button>
  18. </div>
  19. </i-col>
  20. </div>
  21. <div class="buttons-group">
  22. #if($shiro.hasPermission("sys:role:save"))
  23. <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
  24. #end
  25. #if($shiro.hasPermission("sys:role:update"))
  26. <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
  27. #end
  28. #if($shiro.hasPermission("sys:role:delete"))
  29. <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
  30. #end
  31. </div>
  32. </Row>
  33. <table id="jqGrid"></table>
  34. <div id="jqGridPager"></div>
  35. </div>
  36. <Card v-show="!showList">
  37. <p slot="title">{{title}}</p>
  38. <i-form ref="formValidate" :model="role" :rules="ruleValidate" :label-width="80">
  39. <div style="width: 100%;">
  40. <Form-item label="角色名称" prop="roleName">
  41. <div class="c-winput">
  42. <i-input v-model="role.roleName" placeholder="角色名称"/>
  43. </div>
  44. </Form-item>
  45. <Form-item label="所属部门" prop="deptName">
  46. <div class="c-winput">
  47. <i-input type="text" v-model="role.deptName" icon="eye" readonly="readonly"
  48. @on-click="deptTree" readonly="readonly" placeholder="所属部门"/>
  49. </div>
  50. </Form-item>
  51. <Form-item label="备注" prop="remark">
  52. <div class="c-winput">
  53. <i-input type="textarea" v-model="role.remark" placeholder="备注"/>
  54. </div>
  55. </Form-item>
  56. <Form-item label="功能权限">
  57. <div style="overflow-y: auto;width: 60%;">
  58. <ul id="menuTree" class="ztree"></ul>
  59. </div>
  60. </Form-item>
  61. <Form-item label="数据权限">
  62. <div style="overflow-y: auto;width: 60%;">
  63. <ul id="dataTree" class="ztree"></ul>
  64. </div>
  65. </Form-item>
  66. <Form-item>
  67. <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
  68. <i-button type="warning" @click="reload" style="margin-left: 8px">返回</i-button>
  69. <i-button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
  70. </Form-item>
  71. </div>
  72. </i-form>
  73. </Card>
  74. </div>
  75. <!-- 选择部门 -->
  76. <div id="deptLayer" style="display: none;padding:10px;">
  77. <ul id="deptTree" class="ztree"></ul>
  78. </div>
  79. <script src="${rc.contextPath}/js/sys/role.js?_${date.systemTime}"></script>
  80. </body>
  81. </html>