| | |
| | | data() { |
| | | return { |
| | | tableData: [], |
| | | search: "111", |
| | | search: "", |
| | | dialogUpdate: false, |
| | | updateFlag: false, |
| | | userInfo: '', |
| | |
| | | const that = this; |
| | | const { currentPage, pageSize, search } = this; |
| | | 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.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; |
| | | // } |
| | | // }) |
| | | // this.$axios({ |
| | | // method: 'get', |
| | | // url:`sccg/store/storeinfo/list?keyword=${search}&pageNum=${currentPage}&pageSize=${pageSize}`, |
| | | // // data:{ |
| | | // // keyword:'', |
| | | // // pageNum:currentPage, |
| | | // // pageSize, |
| | | // // } |
| | | // }) |
| | | // .then(res => { |
| | | // console.log(res); |
| | | // }) |
| | | 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) { |