“dzb”
2022-10-04 797cc9c1a5c90f413d46c5cb88e1ee5e3a84b071
src/views/operate/fivepack/shop/components/main/index.vue
@@ -52,7 +52,7 @@
    data() {
        return {
            tableData: [],
            search: "",
            search: "111",
            dialogUpdate: false,
            updateFlag: false,
            userInfo: '',
@@ -99,18 +99,31 @@
        getUserList() {
            const that = this;
            const { currentPage, pageSize, search } = this;
            console.log(typeof search);
            // 获取所有用户信息、用户查询(暂时支持电话号码)
            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;
                }
            })
            // 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);
            //     })
        },
        // 查看用户信息(不可修改)
        handleFind(rowData) {
@@ -126,13 +139,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 +175,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 +216,12 @@
            .line {
                padding: 0 5px;
            }
            .el-button{
            .el-button {
                // background-color: #fff;
                border: none;
            }
            span:hover {
                cursor: pointer;
            }