Commit 43e58e66 authored by xiexingan's avatar xiexingan

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

parents d42b4db7 fe845fda
...@@ -37,8 +37,14 @@ ...@@ -37,8 +37,14 @@
div(id="alarms" style="width:100%;height:200px;background:#ffffff") div(id="alarms" style="width:100%;height:200px;background:#ffffff")
el-main(style="padding:0px;z-index:1001;height:78vh" class="alarms-untreated-main") el-main(style="padding:0px;z-index:1001;height:78vh" class="alarms-untreated-main")
el-tabs(v-model="activeName" type="border-card" @tab-click="handleClick") el-tabs(v-model="activeName" type="border-card" @tab-click="handleClick")
el-tab-pane(label="报警列表" name="0") //- el-tab-pane(label="报警列表" name="0")
//- query-list(v-if="activeName == 0" ref="queryList")
el-tab-pane(label="全部" name="0")
query-list(v-if="activeName == 0" ref="queryList") query-list(v-if="activeName == 0" ref="queryList")
el-tab-pane(label="特情前" name="1")
query-list(v-if="activeName == 1" ref="queryList")
el-tab-pane(label="特情中" name="2")
query-list(v-if="activeName == 2" ref="queryList")
</template> </template>
<script> <script>
import QueryList from '../untreated/query-list' import QueryList from '../untreated/query-list'
...@@ -46,7 +52,7 @@ export default { ...@@ -46,7 +52,7 @@ export default {
data() { data() {
return { return {
leftLoading: false, leftLoading: false,
activeName: '0', activeName: 0,
level: {}, level: {},
status: {}, status: {},
chartData: null, chartData: null,
......
...@@ -17,7 +17,7 @@ ...@@ -17,7 +17,7 @@
el-form-item(label="报警状态:") el-form-item(label="报警状态:")
el-select(v-model="dataForm.status" style="width:100px" 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)
el-form-item(label="发生时间") el-form-item(label="发生时间")
el-date-picker(v-model="dataForm.startTime" style="width:180px" type="datetime" value-format="yyyy-MM-dd HH:mm:ss" clearable) el-date-picker(v-model="dataForm.startTime" style="width:180px" type="datetime" value-format="yyyy-MM-dd HH:mm:ss" clearable)
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
<div v-if='scope.row.eventLevel==3'><el-badge is-dot class="item3"></el-badge>一般</div> <div v-if='scope.row.eventLevel==3'><el-badge is-dot class="item3"></el-badge>一般</div>
template( slot='status' slot-scope="scope") template( slot='status' slot-scope="scope")
<div v-if='scope.row.status==1'><el-badge is-dot class="item1"></el-badge>未处理</div> <div v-if='scope.row.status==1'><el-badge is-dot class="item1"></el-badge>未处理</div>
<div v-if='scope.row.status==2'><el-badge is-dot class="item2"></el-badge>处理中</div> //- <div v-if='scope.row.status==2'><el-badge is-dot class="item2"></el-badge>处理中</div>
<div v-if='scope.row.status==3'><el-badge is-dot class="item3"></el-badge>已处理</div> <div v-if='scope.row.status==3'><el-badge is-dot class="item3"></el-badge>已处理</div>
template( slot='eventNumber' slot-scope="scope") template( slot='eventNumber' slot-scope="scope")
font(:title="scope.row.eventNumber") {{scope.row.eventNumber}} font(:title="scope.row.eventNumber") {{scope.row.eventNumber}}
...@@ -114,10 +114,12 @@ export default { ...@@ -114,10 +114,12 @@ export default {
this.initEventType() this.initEventType()
}, },
methods: { methods: {
init() { init(type) {
this.getDataList() console.log('type:', type)
this.getDataList(type)
}, },
getDataList(sort, order) { getDataList(type, sort, order) {
console.log('--type:', type)
if (sort === 'event_type_name' || sort === 'eventTypeName') { if (sort === 'event_type_name' || sort === 'eventTypeName') {
sort = 'event_type' sort = 'event_type'
} }
...@@ -126,8 +128,8 @@ export default { ...@@ -126,8 +128,8 @@ export default {
url: this.$http.adornUrlAlarm(`/alarmsInfo/list`), url: this.$http.adornUrlAlarm(`/alarmsInfo/list`),
method: 'post', method: 'post',
data: { data: {
type: type == 0 ? null : type,
status: this.dataForm.status, status: this.dataForm.status,
stationId: localStorage.getItem('stationId'),
params: this.dataForm.params, params: this.dataForm.params,
levelList: this.dataForm.eventLevel, levelList: this.dataForm.eventLevel,
startTime: this.dataForm.startTime, startTime: this.dataForm.startTime,
......
...@@ -479,7 +479,9 @@ export default { ...@@ -479,7 +479,9 @@ export default {
if (this.wxyljList) { if (this.wxyljList) {
this.wxyljList.forEach((e) => { this.wxyljList.forEach((e) => {
if (element.id === e.resource_id) { if (element.id === e.resource_id) {
element.value = e.water_pressure + 'MPa' element.children.forEach((el) => {
el.value = e.water_pressure + 'MPa'
})
} }
}) })
} }
...@@ -490,15 +492,17 @@ export default { ...@@ -490,15 +492,17 @@ export default {
if (this.hjtcqList) { if (this.hjtcqList) {
this.hjtcqList.forEach((e) => { this.hjtcqList.forEach((e) => {
if (element.id === e.resource_id) { if (element.id === e.resource_id) {
if (element.rightName === '温度') { element.children.forEach((el) => {
element.value = e.temperature + '°C' if (el.rightName === '温度') {
} else if (element.rightName === '湿度') { el.value = e.temperature + '°C'
element.value = e.humidity + '%RH' } else if (el.rightName === '湿度') {
} else if (element.rightName === '一氧化碳') { el.value = e.humidity + '%RH'
element.value = e.carbon_monoxide + 'PPM' } else if (el.rightName === '一氧化碳') {
} else if (element.rightName === '二氧化碳') { el.value = e.carbon_monoxide + 'PPM'
element.value = e.carbon_dioxide + 'PPM' } else if (el.rightName === '二氧化碳') {
} el.value = e.carbon_dioxide + 'PPM'
}
})
} }
}) })
} }
...@@ -509,7 +513,9 @@ export default { ...@@ -509,7 +513,9 @@ export default {
if (this.lljList) { if (this.lljList) {
this.lljList.forEach((e) => { this.lljList.forEach((e) => {
if (element.id === e.resource_id) { if (element.id === e.resource_id) {
element.value = e.flow_rate + 'm3/h' element.children.forEach((el) => {
el.value = e.flow_rate + 'm3/h'
})
} }
}) })
} }
...@@ -520,7 +526,9 @@ export default { ...@@ -520,7 +526,9 @@ export default {
if (this.wxywyList) { if (this.wxywyList) {
this.wxywyList.forEach((e) => { this.wxywyList.forEach((e) => {
if (element.id === e.resource_id) { if (element.id === e.resource_id) {
element.value = e.gauge_height + 'cm' element.children.forEach((el) => {
el.value = e.gauge_height + 'cm'
})
} }
}) })
} }
...@@ -531,7 +539,9 @@ export default { ...@@ -531,7 +539,9 @@ export default {
if (this.fsyList) { if (this.fsyList) {
this.fsyList.forEach((e) => { this.fsyList.forEach((e) => {
if (element.id === e.resource_id) { if (element.id === e.resource_id) {
element.value = e.wind_speed + 'm/s' element.children.forEach((el) => {
el.value = e.wind_speed + 'm/s'
})
} }
}) })
} }
...@@ -542,7 +552,9 @@ export default { ...@@ -542,7 +552,9 @@ export default {
if (this.fyyList) { if (this.fyyList) {
this.fyyList.forEach((e) => { this.fyyList.forEach((e) => {
if (element.id === e.resource_id) { if (element.id === e.resource_id) {
element.value = e.wind_pressure + 'pa' element.children.forEach((el) => {
el.value = e.wind_pressure + 'pa'
})
} }
}) })
} }
......
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