123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125 |
- <!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="8">
- <div style="display: inline-block;">
- <i-input v-model="q.username" @on-enter="query" placeholder="用户名"/>
- </div>
- <div style="display: inline-block;">
- <i-button @click="query">查询</i-button>
- </div>
- </i-col>
- </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>
- <Modal
- v-model="modal1"
- title="添加店铺关联"
- @on-ok="ok"
- @on-cancel="cancel">
- <!--
- <CheckboxGroup v-model="social" @on-change="checkAllGroupChange">
- <Checkbox :label="brand.name" v-for="(brand,idx) in brandsList" :key='idx'>
- <span>{{brand.name}}</span>
- </Checkbox>
- </CheckboxGroup> -->
- <div class="checkbox-item" @click="clickCheck(brand,idx)" v-for="(brand,idx) in brandsList" :key='idx'>
- <span class="checkbox-kuang"></span>
- <img v-if="brand.checked" src="http://4d-tjw.oss-cn-shenzhen.aliyuncs.com/images/fdsq-click.png" alt="">
- <span>{{brand.name}}</span>
- </div>
-
- <Page style="margin-top: 20px;" :total="brandTotal" @on-change="pageChange" :page-size='brandPerPage' :current='brandPage' size="small" />
- </Modal>
- <Card v-show="!showList">
- <p slot="title">{{title}}</p>
- <i-form ref="formValidate" :model="user" :rules="ruleValidate" :label-width="80">
- <div style="width: 100%;">
- <Form-item label="用户名" prop="username">
- <div class="c-winput">
- <i-input v-model="user.username" placeholder="登录账号"/>
- </div>
- </Form-item>
- <Form-item label="所属部门" prop="deptName">
- <div class="c-winput">
- <i-input type="text" v-model="user.deptName" icon="eye" readonly="readonly"
- @on-click="deptTree" readonly="readonly" placeholder="所属部门"/>
- </div>
- </Form-item>
- <Form-item label="邮箱" prop="email">
- <div class="c-winput">
- <i-input v-model="user.email" placeholder="邮箱"/>
- </div>
- </Form-item>
- <Form-item label="手机号" prop="mobile">
- <div class="c-winput">
- <i-input v-model="user.mobile" placeholder="手机号"/>
- </div>
- </Form-item>
- <Form-item label="店铺关联">
- <i-button @click="getBrandList">添加店铺</i-button>
- <div v-if="user.brandList">
- <span style="margin-right: 20px;" v-for="(item,i) in user.brandList" :key="i">{{item.brandName||item.name}}</span>
- </div>
- </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="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>
- </div>
- </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>
|