1
0

role.html 3.0 KB

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