“dzb”
2022-09-26 eba69a5d895497c37990f15abfb083474ca037da
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) {
@@ -162,17 +175,21 @@
    .mainTitle {
        line-height: 60px;
    }
    .el-link{
        color: #4b9bb7;
    }
    .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{
                // background-color: #fff;
                border: none;
            }
            span:hover {
                cursor: pointer;
            }