Commit 476038b8 authored by co_dengxiongwen's avatar co_dengxiongwen

报警

parent 8dbd9fa5
...@@ -7,13 +7,13 @@ ...@@ -7,13 +7,13 @@
div.left_main_body div.left_main_body
div.left_col_header 报警处理情况 div.left_col_header 报警处理情况
el-row.row_style() el-row.row_style()
el-col(:span="8") el-col(:span="12")
div(style="color:#F56C6C;font-size:18px;font-weight:400;font-family:Microsoft YaHei;") {{status.oneCount}} div(style="color:#F56C6C;font-size:18px;font-weight:400;font-family:Microsoft YaHei;") {{status.oneCount}}
div(style="font-size:12px;color:#656565;font-family:Microsoft YaHei;font-weight:400;") 未处理 div(style="font-size:12px;color:#656565;font-family:Microsoft YaHei;font-weight:400;") 未处理
el-col(:span="8") //- el-col(:span="8")
div(style="color:#E6A23C;font-size:18px;font-weight:400;font-family:Microsoft YaHei;") {{status.twoCount}} //- div(style="color:#E6A23C;font-size:18px;font-weight:400;font-family:Microsoft YaHei;") {{status.twoCount}}
div(style="font-size:12px;color:#656565;font-family:Microsoft YaHei;font-weight:400;") 处理中 //- div(style="font-size:12px;color:#656565;font-family:Microsoft YaHei;font-weight:400;") 处理中
el-col(:span="8") el-col(:span="12")
div(style="color:#409EFF;font-size:18px;font-weight:400;font-family:Microsoft YaHei;") {{status.threeCount}} div(style="color:#409EFF;font-size:18px;font-weight:400;font-family:Microsoft YaHei;") {{status.threeCount}}
div(style="font-size:12px;color:#656565;font-family:Microsoft YaHei;font-weight:400;") 已处理 div(style="font-size:12px;color:#656565;font-family:Microsoft YaHei;font-weight:400;") 已处理
div.left_main_body div.left_main_body
...@@ -48,11 +48,11 @@ export default { ...@@ -48,11 +48,11 @@ export default {
activeName: '0', activeName: '0',
level: {}, level: {},
status: {}, status: {},
chartData: null, chartData: null
} }
}, },
components: { components: {
QueryList, QueryList
}, },
created() { created() {
this.eventList = [] this.eventList = []
...@@ -69,12 +69,12 @@ export default { ...@@ -69,12 +69,12 @@ export default {
let option = { let option = {
tooltip: { tooltip: {
trigger: 'item', trigger: 'item',
formatter: '{b}: {c} ({d}%)', formatter: '{b}: {c} ({d}%)'
}, },
legend: { legend: {
orient: 'horizontal', orient: 'horizontal',
bottom: 10, bottom: 10,
data: ['特别重大', '重大', '一般'], data: ['特别重大', '重大', '一般']
}, },
series: [ series: [
{ {
...@@ -87,7 +87,7 @@ export default { ...@@ -87,7 +87,7 @@ export default {
//自定义文字 //自定义文字
//return element.name + ':' + element.value + '(' + element.percent + '%)' //return element.name + ':' + element.value + '(' + element.percent + '%)'
return element.percent + '%' return element.percent + '%'
}, }
}, },
itemStyle: { itemStyle: {
normal: { normal: {
...@@ -95,15 +95,15 @@ export default { ...@@ -95,15 +95,15 @@ export default {
//自定义颜色 //自定义颜色
let colorList = ['#F56C6C', '#E6A23C', '#409EFF'] let colorList = ['#F56C6C', '#E6A23C', '#409EFF']
return colorList[params.dataIndex] return colorList[params.dataIndex]
}, }
}, }
}, },
labelLine: { labelLine: {
show: true, show: true
}, },
data: this.chartData, data: this.chartData
}, }
], ]
} }
myCharts.setOption(option) myCharts.setOption(option)
}, },
...@@ -114,8 +114,8 @@ export default { ...@@ -114,8 +114,8 @@ export default {
url: this.$http.adornUrlAlarm(`/alarmsInfo/queryGroupUntreated`), url: this.$http.adornUrlAlarm(`/alarmsInfo/queryGroupUntreated`),
method: 'get', method: 'get',
params: this.$http.adornParams({ params: this.$http.adornParams({
stationId: localStorage.getItem('stationId'), stationId: localStorage.getItem('stationId')
}), })
}).then((data) => { }).then((data) => {
this.leftLoading = false this.leftLoading = false
if (data && data.code === 0) { if (data && data.code === 0) {
...@@ -125,7 +125,7 @@ export default { ...@@ -125,7 +125,7 @@ export default {
this.chartData = [ this.chartData = [
{ value: this.level.oneCount, name: '特别重大' }, { value: this.level.oneCount, name: '特别重大' },
{ value: this.level.twoCount, name: '重大' }, { value: this.level.twoCount, name: '重大' },
{ value: this.level.threeCount, name: '一般' }, { value: this.level.threeCount, name: '一般' }
] ]
this.groupInit() this.groupInit()
} }
...@@ -135,8 +135,8 @@ export default { ...@@ -135,8 +135,8 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.queryList.init(this.activeName) this.$refs.queryList.init(this.activeName)
}) })
}, }
}, }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
......
...@@ -15,7 +15,7 @@ ...@@ -15,7 +15,7 @@
el-select(v-model="dataForm.eventType" style="width:150px" placeholder="请选择" clearable) el-select(v-model="dataForm.eventType" style="width:150px" placeholder="请选择" clearable)
el-option(v-for="(item,index) in alarmOption" :label="item.eventName" :value="item.id" :key="index") el-option(v-for="(item,index) in alarmOption" :label="item.eventName" :value="item.id" :key="index")
el-form-item(label="报警状态:") el-form-item(label="报警状态:")
el-select(v-model="dataForm.status" style="width:150px" placeholder="请选择" clearable) el-select(v-model="dataForm.status" style="width:100px" placeholder="请选择" clearable)
el-option(label="未处理" value=1) el-option(label="未处理" value=1)
el-option(label="处理中" value=2) el-option(label="处理中" value=2)
el-option(label="已处理" value=3) el-option(label="已处理" value=3)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment