role.html 3.1 KB

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