dept.html 2.6 KB

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