From 12fd8f6b04b26ef02bccdf5fd0bcefb59541c7f6 Mon Sep 17 00:00:00 2001 From: “dzb” <2632970487@qq.com> Date: 星期三, 02 十一月 2022 17:04:23 +0800 Subject: [PATCH] :预警研判 --- src/views/systemSetting/device/grid/index.vue | 50 +++++++++++++++++++++++++++++++++++++++++++++++--- 1 files changed, 47 insertions(+), 3 deletions(-) diff --git a/src/views/systemSetting/device/grid/index.vue b/src/views/systemSetting/device/grid/index.vue index 2baad4a..4faf378 100644 --- a/src/views/systemSetting/device/grid/index.vue +++ b/src/views/systemSetting/device/grid/index.vue @@ -1,5 +1,49 @@ <template> - <div class="grid"> - 222 + <div class="userList"> + <myHeader @setDialog="changeDialog" @getSearch="getSearch"></myHeader> + <myMain :refresh="isFresh" :keyword="keyword" @resetFresh="resetFresh" /> </div> -</template> \ No newline at end of file +</template> +<script> +import myHeader from "./components/header" +import myMain from "./components/main" +export default { + components: { + myHeader, + myMain + }, + data() { + return { + isFresh: false, + keyword: '', + } + }, + created(){ + + }, + 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> +<style lang="scss" scoped> +.userList { + text-align: left; + margin: 10px 20px; + color: #4b9bb7; +} +</style> \ No newline at end of file -- Gitblit v1.8.0