| | |
| | | <div class="table-cell"> |
| | | <el-input |
| | | type="text" |
| | | v-model="keyword" |
| | | size="small" |
| | | v-model.trim="keyword" |
| | | size="small" |
| | | placeholder="姓名/账号/手机/邮箱" |
| | | ></el-input> |
| | | </div> |
| | |
| | | ,methods: { |
| | | // 查询用户列表 |
| | | getList () { |
| | | let params = { |
| | | pageNum: this.page.pageCurr |
| | | ,pageSize: this.page.pageSize |
| | | }; |
| | | let data = {}; |
| | | if (this.keyword) { |
| | | // TODO |
| | | data.name = this.keyword; |
| | | } |
| | | if (this.job) { |
| | | data.job = this.job; |
| | | } |
| | | if (this.dept) { |
| | | data.dept = this.dept; |
| | | } |
| | | |
| | | searchUser(params, data).then((res) => { |
| | | // console.log(res); |
| | | res = res.data; |
| | | console.log(res); |
| | | res.forEach((v) => { |
| | | res.records.forEach((v) => { |
| | | v.sexStr = v.sex ? '男' : '女'; |
| | | v.stateStr = !v.state ? '己启用' : '已冻结'; |
| | | }); |
| | | this.table.datas = res; |
| | | this.page.pageAll = res.total; |
| | | this.table.datas = res.records; |
| | | }).catch((err) => { |
| | | this.$message({ |
| | | type: 'error' |