✨ feat: 优化报警状态显示,合并一级和二级报警为统一显示
This commit is contained in:
parent
285df1f96b
commit
e98809b93a
|
@ -53,10 +53,10 @@
|
|||
</el-table-column>
|
||||
<el-table-column prop="zt" label="报警状态" header-align="center" align="center">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.zt == '一级报警'" style="color: #c00808">
|
||||
{{ scope.row.zt }}
|
||||
<span v-if="scope.row.zt === '一级报警' || scope.row.zt === '二级报警'" style="color: #c00808">
|
||||
报警
|
||||
</span>
|
||||
<span v-if="scope.row.zt == '二级报警'" style="color: #e23434">
|
||||
<span v-else style="color: #000">
|
||||
{{ scope.row.zt }}
|
||||
</span>
|
||||
</template>
|
||||
|
|
|
@ -56,10 +56,10 @@
|
|||
</el-table-column>
|
||||
<el-table-column prop="zt" label="报警状态" header-align="center" align="center">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.zt == '一级报警'" style="color: #c00808;">
|
||||
{{ scope.row.zt }}
|
||||
<span v-if="scope.row.zt === '一级报警' || scope.row.zt === '二级报警'" style="color: #c00808">
|
||||
报警
|
||||
</span>
|
||||
<span v-if="scope.row.zt == '二级报警'" style="color: #e23434;">
|
||||
<span v-else style="color: #000">
|
||||
{{ scope.row.zt }}
|
||||
</span>
|
||||
</template>
|
||||
|
@ -442,4 +442,3 @@
|
|||
|
||||
};
|
||||
</script>
|
||||
|
|
@ -56,10 +56,10 @@
|
|||
</el-table-column>
|
||||
<el-table-column prop="zt" label="报警状态" header-align="center" align="center">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.zt == '一级报警'" style="color: #c00808;">
|
||||
{{ scope.row.zt }}
|
||||
<span v-if="scope.row.zt === '一级报警' || scope.row.zt === '二级报警'" style="color: #c00808">
|
||||
报警
|
||||
</span>
|
||||
<span v-if="scope.row.zt == '二级报警'" style="color: #e23434;">
|
||||
<span v-else style="color: #000">
|
||||
{{ scope.row.zt }}
|
||||
</span>
|
||||
</template>
|
||||
|
@ -442,4 +442,3 @@
|
|||
|
||||
};
|
||||
</script>
|
||||
|
|
@ -56,10 +56,10 @@
|
|||
</el-table-column>
|
||||
<el-table-column prop="zt" label="报警状态" header-align="center" align="center">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.zt == '一级报警'" style="color: #c00808;">
|
||||
{{ scope.row.zt }}
|
||||
<span v-if="scope.row.zt === '一级报警' || scope.row.zt === '二级报警'" style="color: #c00808">
|
||||
报警
|
||||
</span>
|
||||
<span v-if="scope.row.zt == '二级报警'" style="color: #e23434;">
|
||||
<span v-else style="color: #000">
|
||||
{{ scope.row.zt }}
|
||||
</span>
|
||||
</template>
|
||||
|
@ -216,4 +216,3 @@ export default {
|
|||
|
||||
};
|
||||
</script>
|
||||
|
|
@ -45,15 +45,12 @@
|
|||
</el-table-column>
|
||||
<el-table-column prop="zt" label="报警状态" header-align="center" align="center">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.zt == '一级报警'" style="color: #c00808;">
|
||||
<span v-if="scope.row.zt === '一级报警' || scope.row.zt === '二级报警'" style="color: #c00808">
|
||||
报警
|
||||
</span>
|
||||
<span v-else style="color: #000">
|
||||
{{ scope.row.zt }}
|
||||
</span>
|
||||
<span v-else-if="scope.row.zt == '二级报警'" style="color: #e23434;">
|
||||
{{ scope.row.zt }}
|
||||
</span>
|
||||
<span v-else>
|
||||
{{ scope.row.zt }}
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="dbz" label="低报值" header-align="center" align="center" />
|
||||
|
@ -158,4 +155,3 @@ export default {
|
|||
|
||||
};
|
||||
</script>
|
||||
|
|
@ -41,13 +41,10 @@
|
|||
|
||||
<el-table-column prop="zt" label="报警状态" header-align="center" align="center">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.zt == '一级报警'" style="color: #c00808;">
|
||||
{{ scope.row.zt }}
|
||||
<span v-if="scope.row.zt === '一级报警' || scope.row.zt === '二级报警'" style="color: #c00808">
|
||||
报警
|
||||
</span>
|
||||
<span v-else-if="scope.row.zt == '二级报警'" style="color: #e23434;">
|
||||
{{ scope.row.zt }}
|
||||
</span>
|
||||
<span v-else>
|
||||
<span v-else style="color: #000">
|
||||
{{ scope.row.zt }}
|
||||
</span>
|
||||
</template>
|
||||
|
|
|
@ -43,15 +43,12 @@
|
|||
</el-table-column>
|
||||
<el-table-column prop="zt" label="报警状态" header-align="center" align="center">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.zt == '一级报警'" style="color: #c00808;">
|
||||
<span v-if="scope.row.zt === '一级报警' || scope.row.zt === '二级报警'" style="color: #c00808">
|
||||
报警
|
||||
</span>
|
||||
<span v-else style="color: #000">
|
||||
{{ scope.row.zt }}
|
||||
</span>
|
||||
<span v-else-if="scope.row.zt == '二级报警'" style="color: #e23434;">
|
||||
{{ scope.row.zt }}
|
||||
</span>
|
||||
<span v-else>
|
||||
{{ scope.row.zt }}
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="dbz" label="低报值" header-align="center" align="center" />
|
||||
|
@ -373,4 +370,3 @@
|
|||
|
||||
};
|
||||
</script>
|
||||
|
|
@ -43,15 +43,12 @@
|
|||
</el-table-column>
|
||||
<el-table-column prop="zt" label="报警状态" header-align="center" align="center">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.zt == '一级报警'" style="color: #c00808;">
|
||||
<span v-if="scope.row.zt === '一级报警' || scope.row.zt === '二级报警'" style="color: #c00808">
|
||||
报警
|
||||
</span>
|
||||
<span v-else style="color: #000">
|
||||
{{ scope.row.zt }}
|
||||
</span>
|
||||
<span v-else-if="scope.row.zt == '二级报警'" style="color: #e23434;">
|
||||
{{ scope.row.zt }}
|
||||
</span>
|
||||
<span v-else>
|
||||
{{ scope.row.zt }}
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="dbz" label="低报值" header-align="center" align="center" />
|
||||
|
@ -372,4 +369,3 @@
|
|||
|
||||
};
|
||||
</script>
|
||||
|
|
@ -43,15 +43,12 @@
|
|||
</el-table-column>
|
||||
<el-table-column prop="zt" label="报警状态" header-align="center" align="center">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.zt == '一级报警'" style="color: #c00808;">
|
||||
<span v-if="scope.row.zt === '一级报警' || scope.row.zt === '二级报警'" style="color: #c00808">
|
||||
报警
|
||||
</span>
|
||||
<span v-else style="color: #000">
|
||||
{{ scope.row.zt }}
|
||||
</span>
|
||||
<span v-else-if="scope.row.zt == '二级报警'" style="color: #e23434;">
|
||||
{{ scope.row.zt }}
|
||||
</span>
|
||||
<span v-else>
|
||||
{{ scope.row.zt }}
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="dbz" label="低报值" header-align="center" align="center" />
|
||||
|
@ -372,4 +369,3 @@
|
|||
|
||||
};
|
||||
</script>
|
||||
|
|
@ -43,15 +43,12 @@
|
|||
</el-table-column>
|
||||
<el-table-column prop="zt" label="报警状态" header-align="center" align="center">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.zt == '一级报警'" style="color: #c00808;">
|
||||
<span v-if="scope.row.zt === '一级报警' || scope.row.zt === '二级报警'" style="color: #c00808">
|
||||
报警
|
||||
</span>
|
||||
<span v-else style="color: #000">
|
||||
{{ scope.row.zt }}
|
||||
</span>
|
||||
<span v-else-if="scope.row.zt == '二级报警'" style="color: #e23434;">
|
||||
{{ scope.row.zt }}
|
||||
</span>
|
||||
<span v-else>
|
||||
{{ scope.row.zt }}
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="dbz" label="低报值" header-align="center" align="center" />
|
||||
|
@ -373,4 +370,3 @@
|
|||
|
||||
};
|
||||
</script>
|
||||
|
|
@ -43,15 +43,12 @@
|
|||
</el-table-column>
|
||||
<el-table-column prop="zt" label="报警状态" header-align="center" align="center">
|
||||
<template slot-scope="scope">
|
||||
<span v-if="scope.row.zt == '一级报警'" style="color: #c00808;">
|
||||
<span v-if="scope.row.zt === '一级报警' || scope.row.zt === '二级报警'" style="color: #c00808">
|
||||
报警
|
||||
</span>
|
||||
<span v-else style="color: #000">
|
||||
{{ scope.row.zt }}
|
||||
</span>
|
||||
<span v-else-if="scope.row.zt == '二级报警'" style="color: #e23434;">
|
||||
{{ scope.row.zt }}
|
||||
</span>
|
||||
<span v-else>
|
||||
{{ scope.row.zt }}
|
||||
</span>
|
||||
</template>
|
||||
</el-table-column>
|
||||
<el-table-column prop="dbz" label="低报值" header-align="center" align="center" />
|
||||
|
@ -372,4 +369,3 @@
|
|||
|
||||
};
|
||||
</script>
|
||||
|
Loading…
Reference in New Issue