luobisheng
2022-11-10 3286dd82b83adf92cc576300e9e73a4dfb2aa880
src/views/operate/fivepack/shop/index.vue
@@ -1,17 +1,12 @@
<template>
    <div class="userList">
        <myHeader @setDialog="changeDialog" @getSearch="getSearch"></myHeader>
        <myMain :refresh="isFresh" :keyword="keyword" @resetFresh="resetFresh" />
      <store-content :model="'store'" />
    </div>
</template>
<script>
import myHeader from "./components/header"
import myMain from "./components/main"
import storeContent from "@/views/operate/fivepack/threepack/components/content";
export default {
    components: {
        myHeader,
        myMain
    },
    components: { storeContent },
    data() {
        return {
            isFresh: false,
@@ -19,21 +14,6 @@
        }
    },
    methods: {
        // 获取搜索返回结果
        getSearch({ text }) {
            this.keyword = text;
            this.isFresh = true;
        },
        // 获取刷新结果
        changeDialog({ flag }) {
            console.log(flag);
            this.isFresh = flag;
        },
        // 重置isFresh
        resetFresh({ flag }) {
            this.isFresh = flag;
            console.log(this.isFresh);
        }
    }
}
</script>
@@ -63,7 +43,6 @@
    &::v-deep .el-dialog__close {
        width: 20px;
        height: 20px;
        // color: #fff;
    }
    &::v-deep .el-dialog__body {