1
0

user.html 3.9 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889
  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.username" @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:user:save"))
  19. <i-button type="info" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</i-button>
  20. #end
  21. #if($shiro.hasPermission("sys:user: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:user: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="user" :rules="ruleValidate" :label-width="120">
  35. <Form-item label="用户名" prop="username">
  36. <i-input v-model="user.username" placeholder="登录账号"/>
  37. </Form-item>
  38. <Form-item label="所属部门" prop="deptName">
  39. <i-input type="text" v-model="user.deptName" icon="eye" readonly="readonly"
  40. @on-click="deptTree" readonly="readonly" placeholder="所属部门"/>
  41. </Form-item>
  42. <Form-item label="邮箱" prop="email">
  43. <i-input v-model="user.email" placeholder="邮箱"/>
  44. </Form-item>
  45. <Form-item label="手机号" prop="mobile">
  46. <i-input v-model="user.mobile" placeholder="手机号"/>
  47. </Form-item>
  48. <Form-item label="角色" prop="roleIdList">
  49. <Checkbox-group v-model="user.roleIdList">
  50. <Checkbox :label="role.roleId" v-for="role in roleList">{{role.roleName}}</Checkbox>
  51. </Checkbox-group>
  52. </Form-item>
  53. <Form-item label="数据角色类型" prop="roleType">
  54. <Radio-group v-model="user.roleType">
  55. <Radio label="1">操作员</Radio>
  56. <Radio label="2">店员</Radio>
  57. </Radio-group>
  58. </Form-item>
  59. <Form-item label="门店" prop="storeId">
  60. <i-select v-model="user.storeId" filterable placeholder="门店" label-in-value>
  61. <i-option v-for="store in storeList" :value="store.id" :key="store.id">{{store.storeName}}</i-option>
  62. </i-select>
  63. </Form-item>
  64. <Form-item label="状态" prop="status">
  65. <Radio-group v-model="user.status">
  66. <Radio label="0">
  67. <span>禁用</span>
  68. </Radio>
  69. <Radio label="1">
  70. <span>正常</span>
  71. </Radio>
  72. </Radio-group>
  73. </Form-item>
  74. <Form-item>
  75. <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
  76. <i-button type="warning" @click="reload" style="margin-left: 8px">返回</i-button>
  77. <i-button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
  78. </Form-item>
  79. </i-form>
  80. </Card>
  81. </div>
  82. <!-- 选择部门 -->
  83. <div id="deptLayer" style="display: none;padding:10px;">
  84. <ul id="deptTree" class="ztree"></ul>
  85. </div>
  86. <script src="${rc.contextPath}/js/sys/user.js?_${date.systemTime}"></script>
  87. </body>
  88. </html>