hui
7 months ago
12 changed files with 157 additions and 71 deletions
@ -0,0 +1,39 @@ |
|||
<template> |
|||
<div class="early_warning"> |
|||
<p @click="onShowCtt"> |
|||
<i class="el-icon-message-solid" v-if="isShowCtt"></i> |
|||
<i class="el-icon-bell" v-else></i> |
|||
</p> |
|||
<Dialog v-model="isShowCtt" title="事件预警" width="600px" top="100px" right="30px" noneMask> |
|||
<WarningList></WarningList> |
|||
</Dialog> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import Dialog from "@screen/components/Dialog/index.vue"; |
|||
import WarningList from "./WarningList.vue"; |
|||
export default { |
|||
data() { |
|||
return { |
|||
isShowCtt:false |
|||
}; |
|||
}, |
|||
components: { |
|||
Dialog, WarningList |
|||
}, |
|||
computed: { |
|||
}, |
|||
methods: { |
|||
onShowCtt(){ |
|||
this.isShowCtt = !this.isShowCtt; |
|||
} |
|||
} |
|||
}; |
|||
</script> |
|||
|
|||
<style lang="scss" scoped> |
|||
.early_warning{ |
|||
|
|||
} |
|||
</style> |
@ -0,0 +1,47 @@ |
|||
<template> |
|||
<div class="warning_list"> |
|||
<el-tabs v-model="activeTab" @tab-click="onChangeTab"> |
|||
<el-tab-pane label="告警事件" name="first">用户管理</el-tab-pane> |
|||
<el-tab-pane label="待确认事件" name="second">配置管理</el-tab-pane> |
|||
</el-tabs> |
|||
</div> |
|||
</template> |
|||
|
|||
<script> |
|||
import request from "@/utils/request"; |
|||
export default { |
|||
data() { |
|||
return { |
|||
activeTab:"first" |
|||
}; |
|||
}, |
|||
components: { |
|||
}, |
|||
computed: { |
|||
}, |
|||
methods: { |
|||
onChangeTab(tab, event){ |
|||
console.log(tab, event); |
|||
this.getMainData(); |
|||
}, |
|||
getMainData(){ |
|||
request({ |
|||
// url: `/business/dcBatchFunctionsJobGroup`, |
|||
url: `/perceivedEvents/warning/perceivedEventsList`, |
|||
method: "GET", |
|||
params:{} |
|||
}) |
|||
.then((result) => { |
|||
if (result.code != 200) return; |
|||
console.log( result.data , "刚发的刚发的发多少++++"); |
|||
}) |
|||
} |
|||
} |
|||
}; |
|||
</script> |
|||
|
|||
<style lang="scss" scoped> |
|||
.warning_list{ |
|||
|
|||
} |
|||
</style> |
Loading…
Reference in new issue