Commit 6e54316e authored by yanzhongrong's avatar yanzhongrong

bugfix

parent 11816e26
......@@ -342,7 +342,6 @@ export default {
},
watch: {
statusAlarmfun: {
immediate: true,
handler(newV) {
if (newV) {
this.trans()
......@@ -379,17 +378,17 @@ export default {
})
},
leakylevelcolor() {
if (this.statusl[0].value === '正常') {
if (this.form.status[0].value === '正常') {
this.acolor.color = 'green'
} else if (this.statusl[0].value === '紧急') {
} else if (this.form.status[0].value === '紧急') {
this.acolor.color = '#f00'
this.statusl[0].value = '紧急告警'
} else if (this.statusl[0].value === '重要') {
this.form.status[0].value = '紧急告警'
} else if (this.form.status[0].value === '重要') {
this.acolor.color = '#f89850'
this.statusl[0].value = '重要告警'
} else if (this.statusl[0].value === '一般') {
this.form.status[0].value = '重要告警'
} else if (this.form.status[0].value === '一般') {
this.acolor.color = '#ead906'
this.statusl[0].value = '一般告警'
this.form.status[0].value = '一般告警'
}
},
toalarm() {
......
......@@ -226,8 +226,7 @@
</el-col>
<el-col :span="6">
<el-button
v-if="
form.status[0].value == '紧急告警' || form.status[0].value == '重要告警' || form.status[0].value == '一般告警'
v-if="form.status[0].value == '紧急告警' || form.status[0].value == '重要告警' || form.status[0].value == '一般告警'
"
class="alarmbtn"
type="primary"
......@@ -326,7 +325,6 @@ export default {
},
watch: {
statusAlarmfun: {
immediate: true,
handler(newV) {
if (newV) {
this.trans()
......
......@@ -123,6 +123,9 @@ export function formInit5(data = {}) {
},
log: 0,
loss: 0,
status: [
{ name: '', value: ''}
],
...data
}
}
......@@ -147,6 +150,9 @@ export function formInit6(data = {}) {
},
log: 0,
loss: 0,
status: [
{ name: '', value: ''}
],
...data
}
}
......
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