Commit 970a1d36 authored by xiexingan's avatar xiexingan

Merge branch 'dev' of gitlab.suntrayoa.com:geqilin/zhxf_vue into dev

parents ecf27e41 476038b8
...@@ -336,6 +336,7 @@ export default { ...@@ -336,6 +336,7 @@ export default {
}) })
}).then((data) => { }).then((data) => {
if (data && data.code === 0) { if (data && data.code === 0) {
console.log('报警信息:', data.list)
this.tipList = data.list this.tipList = data.list
if (this.tipList.length < 4) { if (this.tipList.length < 4) {
......
This diff is collapsed.
...@@ -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>
......
...@@ -11,11 +11,11 @@ ...@@ -11,11 +11,11 @@
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)
el-form-item(v-if="systemType === '0'" label="报警类型:") el-form-item(label="报警类型:")
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)
...@@ -86,17 +86,17 @@ export default { ...@@ -86,17 +86,17 @@ export default {
{ label: '资源点名称', prop: 'resourceName' }, { label: '资源点名称', prop: 'resourceName' },
{ label: '发生时间', prop: 'occurrenceTime', slot: true }, { label: '发生时间', prop: 'occurrenceTime', slot: true },
{ label: '发生地点', prop: 'occurrenceSite' }, { label: '发生地点', prop: 'occurrenceSite' },
{ label: '处理状态', prop: 'status', slot: true, width: 120 }, { label: '处理状态', prop: 'status', slot: true, width: 120 }
], ],
tableOption: { tableOption: {
border: false, //是否边框 border: false, //是否边框
maxHeight: 500, //高度 maxHeight: 500 //高度
}, }
} }
}, },
components: { components: {
dragTable, dragTable,
AlarmDetail, AlarmDetail
}, },
watch: { watch: {
totalPage() { totalPage() {
...@@ -107,7 +107,7 @@ export default { ...@@ -107,7 +107,7 @@ export default {
this.pageIndex = pages || 1 this.pageIndex = pages || 1
this.getDataList() //获取表格数据的方法 this.getDataList() //获取表格数据的方法
} }
}, }
}, },
created() { created() {
this.checkList = [...this.tableHeader] this.checkList = [...this.tableHeader]
...@@ -136,8 +136,8 @@ export default { ...@@ -136,8 +136,8 @@ export default {
page: this.pageIndex, page: this.pageIndex,
rows: this.pageSize, rows: this.pageSize,
sort: sort, sort: sort,
order: order, order: order
}, }
}).then((data) => { }).then((data) => {
if (data && data.code === 0) { if (data && data.code === 0) {
this.dataList = data.page.rows this.dataList = data.page.rows
...@@ -168,7 +168,7 @@ export default { ...@@ -168,7 +168,7 @@ export default {
this.$http({ this.$http({
url: this.$http.adornUrl(`/linkEvent/list`), url: this.$http.adornUrl(`/linkEvent/list`),
method: 'post', method: 'post',
params: {}, params: {}
}).then((data) => { }).then((data) => {
if (data && data.code === 0) { if (data && data.code === 0) {
this.alarmOption = data.list this.alarmOption = data.list
...@@ -199,7 +199,7 @@ export default { ...@@ -199,7 +199,7 @@ export default {
this.$http({ this.$http({
url: this.$http.adornUrlAlarm(`/alarmsInfo/update`), url: this.$http.adornUrlAlarm(`/alarmsInfo/update`),
method: 'post', method: 'post',
data: bean, data: bean
}).then((data) => { }).then((data) => {
if (data && data.code === 0) { if (data && data.code === 0) {
this.$message({ this.$message({
...@@ -208,7 +208,7 @@ export default { ...@@ -208,7 +208,7 @@ export default {
duration: 1500, duration: 1500,
onClose: () => { onClose: () => {
this.getDataList() this.getDataList()
}, }
}) })
} else { } else {
this.$message.error(data.msg) this.$message.error(data.msg)
...@@ -221,8 +221,8 @@ export default { ...@@ -221,8 +221,8 @@ export default {
this.$nextTick(() => { this.$nextTick(() => {
this.$refs.alarmDetail.init(bean) this.$refs.alarmDetail.init(bean)
}) })
}, }
}, }
} }
</script> </script>
<style lang="scss" scoped> <style lang="scss" scoped>
......
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