From 2bb0e066fdc522beb51dd13f6a72cd67bd5d6a58 Mon Sep 17 00:00:00 2001 From: “dzb” <2632970487@qq.com> Date: 星期日, 09 十月 2022 18:06:46 +0800 Subject: [PATCH] 修改bug,店铺管理新增、查询 --- src/views/operate/fivepack/shop/components/main/index.vue | 51 +++++++++++++++++++++++++++++---------------------- 1 files changed, 29 insertions(+), 22 deletions(-) diff --git a/src/views/operate/fivepack/shop/components/main/index.vue b/src/views/operate/fivepack/shop/components/main/index.vue index 974f8ff..72700bb 100644 --- a/src/views/operate/fivepack/shop/components/main/index.vue +++ b/src/views/operate/fivepack/shop/components/main/index.vue @@ -99,18 +99,19 @@ 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) { @@ -126,13 +127,13 @@ }, // 璁剧疆琛ㄦ牸鏂戦┈绾� 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: { @@ -162,17 +163,21 @@ .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, @@ -199,10 +204,12 @@ .line { padding: 0 5px; } - .el-button{ + + .el-button { // background-color: #fff; border: none; } + span:hover { cursor: pointer; } -- Gitblit v1.8.0