| | |
| | | } |
| | | } |
| | | }, |
| | | provide() { |
| | | provide () { |
| | | return { |
| | | userList: () => this.userList |
| | | } |
| | |
| | | userList({ |
| | | page: 1, |
| | | capacity: 9999, |
| | | model: { realname: this.filterText }, |
| | | model: { realname: this.filterText } |
| | | }) |
| | | .then(res => { |
| | | this.userList = res.records |
| | |
| | | this.search() |
| | | }, |
| | | methods: { |
| | | // 页码变更处理 |
| | | // 页码变更处理 |
| | | handlePageChange (pageIndex) { |
| | | this.__checkApi() |
| | | this.tableData.pagination.pageIndex = pageIndex || this.tableData.pagination.pageIndex |
| | | this.isWorking.search = true |
| | | let sysList = [...this.searchForm.sysList] |
| | | sysList = sysList.map(item => { |
| | | return {userId: item} |
| | | return { userId: item } |
| | | }) |
| | | console.log(sysList); |
| | | console.log(sysList) |
| | | this.api.fetchList({ |
| | | page: this.tableData.pagination.pageIndex, |
| | | capacity: this.tableData.pagination.pageSize, |
| | |
| | | // console.log('21212'); |
| | | // this.$refs.selectMember.open('选择管理员') |
| | | // }, |
| | | changeStatus(item) { |
| | | changeStatus (item) { |
| | | updateStatusById({ |
| | | id: item.id, |
| | | status: item.status |
| | | }) |
| | | .then(() => { |
| | | this.$message.success('修改成功') |
| | | |
| | | }) |
| | | .catch(e => { |
| | | this.$message.error(e) |
| | | }) |
| | | .finally(() => { |
| | | this.handlePageChange() |
| | | }) |
| | | } |
| | | }, |
| | | } |
| | | } |
| | | </script> |
| | | |