| | |
| | | <el-input v-model="queryParams.nickName" placeholder="请输入用户名称" clearable style="width: 180px" |
| | | @keyup.enter.native="handleQuery" /> |
| | | </el-form-item> |
| | | <el-form-item label="手机号码" prop="phonenumber"> |
| | | <el-input v-model="queryParams.phonenumber" placeholder="请输入手机号码" clearable style="width: 180px" |
| | | |
| | | <el-form-item label="用户工号" prop="userName"> |
| | | <el-input v-model="queryParams.userName" placeholder="请输入用户工号" clearable style="width: 180px" |
| | | @keyup.enter.native="handleQuery" /> |
| | | </el-form-item> |
| | | <el-form-item label="状态" prop="status"> |
| | |
| | | </div> |
| | | |
| | | <!-- 用户导入对话框 --> |
| | | <el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body> |
| | | <!-- <el-dialog :title="upload.title" :visible.sync="upload.open" width="400px" append-to-body> |
| | | <el-upload ref="upload" :limit="1" accept=".xlsx, .xls" :headers="upload.headers" |
| | | :action="upload.url + '?updateSupport=' + upload.updateSupport" :disabled="upload.isUploading" |
| | | :on-progress="handleFileUploadProgress" :on-success="handleFileSuccess" :auto-upload="false" drag> |
| | |
| | | <el-button type="primary" @click="submitFileForm">确 定</el-button> |
| | | <el-button @click="upload.open = false">取 消</el-button> |
| | | </div> |
| | | </el-dialog> |
| | | </el-dialog> --> |
| | | |
| | | <!-- 重置密码对话框 --> |
| | | <el-dialog title="提示" :visible.sync="dialogVisible1" width="30%" :before-close="handleClose"> |
| | |
| | | watch: { |
| | | // 根据名称筛选部门树 |
| | | deptName(val) { |
| | | this.$refs.tree.filter(val); |
| | | console.log(val) |
| | | }, |
| | | treeId(newVal, oldVal) { |
| | | if (newVal) { |
| | |
| | | /** 查询用户列表 */ |
| | | getList() { |
| | | this.loading = true; |
| | | listUser(this.addDateRange(this.queryParams, this.dateRange)).then( |
| | | if(this.queryParams.deptId){ |
| | | listUser(this.addDateRange(this.queryParams, this.dateRange)).then( |
| | | (response) => { |
| | | response.rows.forEach((item, index) => { |
| | | item.newID = |
| | |
| | | this.loading = false; |
| | | } |
| | | ); |
| | | } |
| | | |
| | | }, |
| | | /** 查询岗位列表 */ |
| | | getPostList() { |
| | |
| | | getDeptTree() { |
| | | deptTreeSelect().then((response) => { |
| | | this.deptOptions = response.data; |
| | | console.log( this.deptOptions) |
| | | this.treeId.push(this.deptOptions[0].id) |
| | | this.queryParams.deptId = this.deptOptions[0].id |
| | | console.log(this.queryParams.deptId) |
| | | }); |
| | | }, |
| | | // 筛选节点 |