1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889 |
- <!DOCTYPE html>
- <html>
- <head>
- <title>管理员列表</title>
- #parse("sys/header.html")
- </head>
- <body>
- <div id="rrapp" v-cloak>
- <div v-show="showList">
- <Row :gutter="16">
- <div class="search-group">
- <i-col span="4">
- <i-input v-model="q.username" @on-enter="query" placeholder="用户名"/>
- </i-col>
- <i-button @click="query">查询</i-button>
- </div>
- <div class="buttons-group">
- #if($shiro.hasPermission("sys:user:save"))
- <i-button type="info" @click="add"><i class="fa fa-plus"></i> 新增</i-button>
- #end
- #if($shiro.hasPermission("sys:user:update"))
- <i-button type="warning" @click="update"><i class="fa fa-pencil-square-o"></i> 修改</i-button>
- #end
- #if($shiro.hasPermission("sys:user:delete"))
- <i-button type="error" @click="del"><i class="fa fa-trash-o"></i> 删除</i-button>
- #end
- </div>
- </Row>
- <table id="jqGrid"></table>
- <div id="jqGridPager"></div>
- </div>
- <Card v-show="!showList">
- <p slot="title">{{title}}</p>
- <i-form ref="formValidate" :model="user" :rules="ruleValidate" :label-width="120">
- <Form-item label="用户名" prop="username">
- <i-input v-model="user.username" placeholder="登录账号"/>
- </Form-item>
- <Form-item label="所属部门" prop="deptName">
- <i-input type="text" v-model="user.deptName" icon="eye" readonly="readonly"
- @on-click="deptTree" readonly="readonly" placeholder="所属部门"/>
- </Form-item>
- <Form-item label="邮箱" prop="email">
- <i-input v-model="user.email" placeholder="邮箱"/>
- </Form-item>
- <Form-item label="手机号" prop="mobile">
- <i-input v-model="user.mobile" placeholder="手机号"/>
- </Form-item>
- <Form-item label="角色" prop="roleIdList">
- <Checkbox-group v-model="user.roleIdList">
- <Checkbox :label="role.roleId" v-for="role in roleList">{{role.roleName}}</Checkbox>
- </Checkbox-group>
- </Form-item>
- <Form-item label="数据角色类型" prop="roleType">
- <Radio-group v-model="user.roleType">
- <Radio label="1">操作员</Radio>
- <Radio label="2">店员</Radio>
- </Radio-group>
- </Form-item>
- <Form-item label="门店" prop="storeId">
- <i-select v-model="user.storeId" filterable placeholder="门店" label-in-value>
- <i-option v-for="store in storeList" :value="store.id" :key="store.id">{{store.storeName}}</i-option>
- </i-select>
- </Form-item>
- <Form-item label="状态" prop="status">
- <Radio-group v-model="user.status">
- <Radio label="0">
- <span>禁用</span>
- </Radio>
- <Radio label="1">
- <span>正常</span>
- </Radio>
- </Radio-group>
- </Form-item>
- <Form-item>
- <i-button type="primary" @click="handleSubmit('formValidate')">提交</i-button>
- <i-button type="warning" @click="reload" style="margin-left: 8px">返回</i-button>
- <i-button type="ghost" @click="handleReset('formValidate')" style="margin-left: 8px">重置</i-button>
- </Form-item>
- </i-form>
- </Card>
- </div>
- <!-- 选择部门 -->
- <div id="deptLayer" style="display: none;padding:10px;">
- <ul id="deptTree" class="ztree"></ul>
- </div>
- <script src="${rc.contextPath}/js/sys/user.js?_${date.systemTime}"></script>
- </body>
- </html>
|