| | |
| | | getUserList() { |
| | | const that = this; |
| | | const { currentPage, pageSize, search } = this; |
| | | // 获取所有用户信息、用户查询(暂时支持电话号码) |
| | | this.$axios.get(`sccg/admin/list?mobile=${search}¤t=${currentPage}&pageSize=${pageSize}`).then(res => { |
| | | if (res.code === 200) { |
| | | res.data.records.forEach(item => { |
| | | item.createTime = helper(item.createTime); |
| | | item.status == 1 ? item.status = true : item.status = false; |
| | | }) |
| | | that.totalNum = res.data.pages * pageSize; |
| | | that.tableData = res.data.records; |
| | | this.renderFlag = true; |
| | | } |
| | | }) |
| | | console.log(typeof search); |
| | | this.$axios.get(`sccg/store/storeinfo/list?keyword=${search}&pageNum=${currentPage}&pageSize=${pageSize}`) |
| | | .then(res => { |
| | | if (res.code === 200) { |
| | | res.data.list.forEach(item => { |
| | | item.createTime = helper(item.createTime); |
| | | item.status == 1 ? item.status = true : item.status = false; |
| | | }) |
| | | that.totalNum = res.data.total; |
| | | that.tableData = res.data.list; |
| | | this.renderFlag = true; |
| | | } |
| | | }) |
| | | }, |
| | | // 查看用户信息(不可修改) |
| | | handleFind(rowData) { |
| | |
| | | }, |
| | | // 设置表格斑马纹 |
| | | tableRowClassName({ row, rowIndex }) { |
| | | if ((rowIndex + 1) % 2 == 0) { |
| | | return 'warning-row'; |
| | | } else { |
| | | return 'success-row'; |
| | | } |
| | | return ''; |
| | | }, |
| | | if ((rowIndex + 1) % 2 == 0) { |
| | | return 'warning-row'; |
| | | } else { |
| | | return 'success-row'; |
| | | } |
| | | return ''; |
| | | }, |
| | | }, |
| | | props: ['refresh', 'keyword', 'resetFresh'], |
| | | watch: { |
| | |
| | | .mainTitle { |
| | | line-height: 60px; |
| | | } |
| | | .el-link{ |
| | | |
| | | .el-link { |
| | | color: #4b9bb7; |
| | | } |
| | | .leftPx{ |
| | | |
| | | .leftPx { |
| | | margin-left: 10px; |
| | | } |
| | | |
| | | .pagination { |
| | | margin-top: 50px; |
| | | display: flex; |
| | | line-height: 50px; |
| | | justify-content: center; |
| | | |
| | | .el-pagination { |
| | | |
| | | &::v-deep li, |
| | |
| | | .line { |
| | | padding: 0 5px; |
| | | } |
| | | .el-button{ |
| | | |
| | | .el-button { |
| | | // background-color: #fff; |
| | | border: none; |
| | | } |
| | | |
| | | span:hover { |
| | | cursor: pointer; |
| | | } |