| | |
| | | <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, |
| | |
| | | } |
| | | }, |
| | | 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> |
| | |
| | | &::v-deep .el-dialog__close { |
| | | width: 20px; |
| | | height: 20px; |
| | | // color: #fff; |
| | | } |
| | | |
| | | &::v-deep .el-dialog__body { |