“dzb”
2022-10-09 2bb0e066fdc522beb51dd13f6a72cd67bd5d6a58
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}&current=${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;
            }