dept.html 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970
  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-button type="ghost" @click="reload"><i class="fa fa-refresh"></i>&nbsp;刷新</i-button>
  13. </div> -->
  14. <div class="buttons-group">
  15. #if($shiro.hasPermission("sys:dept:save"))
  16. <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
  17. #end
  18. #if($shiro.hasPermission("sys:dept:update"))
  19. <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</i-button>
  20. #end
  21. #if($shiro.hasPermission("sys:dept:delete"))
  22. <i-button type="error" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</i-button>
  23. #end
  24. </div>
  25. </Row>
  26. <table id="deptTable" data-mobile-responsive="true" data-click-to-select="true">
  27. <thead>
  28. <tr>
  29. <th data-field="selectItem" data-checkbox="true"></th>
  30. </tr>
  31. </thead>
  32. </table>
  33. </div>
  34. <Card v-show="!showList">
  35. <p slot="title">{{title}}</p>
  36. <i-form ref="formValidate" :model="dept" :rules="ruleValidate" :label-width="80">
  37. <div style="width: 100%;">
  38. <Form-item label="部门名称" prop="name">
  39. <div class="c-winput">
  40. <i-input v-model="dept.name" placeholder="部门名称"/>
  41. </div>
  42. </Form-item>
  43. <Form-item label="上级部门" prop="deptName">
  44. <div class="c-winput">
  45. <i-input type="text" v-model="dept.parentName" icon="eye" readonly="readonly"
  46. @on-click="deptTree" readonly="readonly" placeholder="一级部门"/>
  47. </div>
  48. </Form-item>
  49. <Form-item label="排序号" prop="orderNum">
  50. <Input-number :min="0" :step="1" v-model="dept.orderNum" placeholder="排序号" style="width: 188px;"/>
  51. </Form-item>
  52. <Form-item>
  53. <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
  54. <i-button type="warning" @click="reload" style="margin-left: 8px">返回</i-button>
  55. </Form-item>
  56. </div>
  57. </i-form>
  58. </Card>
  59. </div>
  60. <!-- 选择部门 -->
  61. <div id="deptLayer" style="display: none;padding:10px;">
  62. <ul id="deptTree" class="ztree"></ul>
  63. </div>
  64. <script src="${rc.contextPath}/js/sys/dept.js?_${date.systemTime}"></script>
  65. </body>
  66. </html>