Commit 6e54316e authored by yanzhongrong's avatar yanzhongrong

bugfix

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