|
@@ -48,7 +48,7 @@
|
|
:data-source="monitorlistYw" :pagination="false">
|
|
:data-source="monitorlistYw" :pagination="false">
|
|
<template #bodyCell="{ column, text }">
|
|
<template #bodyCell="{ column, text }">
|
|
<template v-if="column.dataIndex === 'warnLevel_str'">
|
|
<template v-if="column.dataIndex === 'warnLevel_str'">
|
|
- <div :style="{color:text=='报警' ? '#ff0000' : '#91e609'}">{{ text }}</div>
|
|
|
|
|
|
+ <div :style="{ color: text == '报警' ? '#ff0000' : '#91e609' }">{{ text }}</div>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
<span slot="action" slot-scope="text, record"></span>
|
|
<span slot="action" slot-scope="text, record"></span>
|
|
@@ -57,7 +57,7 @@
|
|
:pagination="false" :scroll="{ y: 273 }">
|
|
:pagination="false" :scroll="{ y: 273 }">
|
|
<template #bodyCell="{ column, text }">
|
|
<template #bodyCell="{ column, text }">
|
|
<template v-if="column.dataIndex === 'warnLevel_str'">
|
|
<template v-if="column.dataIndex === 'warnLevel_str'">
|
|
- <div :style="{color:text=='报警' ? '#ff0000' : '#91e609'}">{{ text }}</div>
|
|
|
|
|
|
+ <div :style="{ color: text == '报警' ? '#ff0000' : '#91e609' }">{{ text }}</div>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
<span slot="action" slot-scope="text, record"> </span>
|
|
<span slot="action" slot-scope="text, record"> </span>
|
|
@@ -66,7 +66,7 @@
|
|
:data-source="monitorlistPl" :pagination="false">
|
|
:data-source="monitorlistPl" :pagination="false">
|
|
<template #bodyCell="{ column, text }">
|
|
<template #bodyCell="{ column, text }">
|
|
<template v-if="column.dataIndex === 'warnLevel_str'">
|
|
<template v-if="column.dataIndex === 'warnLevel_str'">
|
|
- <div :style="{color:text=='报警' ? '#ff0000' : '#91e609'}">{{ text }}</div>
|
|
|
|
|
|
+ <div :style="{ color: text == '报警' ? '#ff0000' : '#91e609' }">{{ text }}</div>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
<span slot="action" slot-scope="text, record"> </span>
|
|
<span slot="action" slot-scope="text, record"> </span>
|
|
@@ -86,7 +86,7 @@
|
|
:columns="columnsSmoke" :data-source="monitorlistYw" :pagination="false">
|
|
:columns="columnsSmoke" :data-source="monitorlistYw" :pagination="false">
|
|
<template #bodyCell="{ column, text }">
|
|
<template #bodyCell="{ column, text }">
|
|
<template v-if="column.dataIndex === 'warnLevel_str'">
|
|
<template v-if="column.dataIndex === 'warnLevel_str'">
|
|
- <div :style="{color:text=='报警' ? '#ff0000' : '#91e609'}">{{ text }}</div>
|
|
|
|
|
|
+ <div :style="{ color: text == '报警' ? '#ff0000' : '#91e609' }">{{ text }}</div>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
<span slot="action" slot-scope="text, record"></span>
|
|
<span slot="action" slot-scope="text, record"></span>
|
|
@@ -96,7 +96,7 @@
|
|
:columns="columnsSmoke" :data-source="monitorlistWd" :pagination="false">
|
|
:columns="columnsSmoke" :data-source="monitorlistWd" :pagination="false">
|
|
<template #bodyCell="{ column, text }">
|
|
<template #bodyCell="{ column, text }">
|
|
<template v-if="column.dataIndex === 'warnLevel_str'">
|
|
<template v-if="column.dataIndex === 'warnLevel_str'">
|
|
- <div :style="{color:text=='报警' ? '#ff0000' : '#91e609'}">{{ text }}</div>
|
|
|
|
|
|
+ <div :style="{ color: text == '报警' ? '#ff0000' : '#91e609' }">{{ text }}</div>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
<span slot="action" slot-scope="text, record"> </span>
|
|
<span slot="action" slot-scope="text, record"> </span>
|
|
@@ -105,7 +105,7 @@
|
|
:columns="columns" :data-source="monitorlistPl" :pagination="false">
|
|
:columns="columns" :data-source="monitorlistPl" :pagination="false">
|
|
<template #bodyCell="{ column, text }">
|
|
<template #bodyCell="{ column, text }">
|
|
<template v-if="column.dataIndex === 'warnLevel_str'">
|
|
<template v-if="column.dataIndex === 'warnLevel_str'">
|
|
- <div :style="{color:text=='报警' ? '#ff0000' : '#91e609'}">{{ text }}</div>
|
|
|
|
|
|
+ <div :style="{ color: text == '报警' ? '#ff0000' : '#91e609' }">{{ text }}</div>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
<span slot="action" slot-scope="text, record"> </span>
|
|
<span slot="action" slot-scope="text, record"> </span>
|
|
@@ -114,7 +114,7 @@
|
|
:pagination="false" :scroll="{ y: listData.fiber.length != 0 ? 60 : 120 }">
|
|
:pagination="false" :scroll="{ y: listData.fiber.length != 0 ? 60 : 120 }">
|
|
<template #bodyCell="{ column, text }">
|
|
<template #bodyCell="{ column, text }">
|
|
<template v-if="column.dataIndex === 'warnLevel_str'">
|
|
<template v-if="column.dataIndex === 'warnLevel_str'">
|
|
- <div :style="{color:text=='报警' ? '#ff0000' : '#91e609'}">{{ text }}</div>
|
|
|
|
|
|
+ <div :style="{ color: text == '报警' ? '#ff0000' : '#91e609' }">{{ text }}</div>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
</template>
|
|
<span slot="action" slot-scope="text, record"> </span>
|
|
<span slot="action" slot-scope="text, record"> </span>
|
|
@@ -419,7 +419,7 @@ watch(
|
|
monitorlistYw.push({
|
|
monitorlistYw.push({
|
|
strinstallpos: el.strinstallpos,
|
|
strinstallpos: el.strinstallpos,
|
|
val: el.readData.smokeval,
|
|
val: el.readData.smokeval,
|
|
- // warnLevel_str: el.warnLevel_str == '正常' ? '低风险' : el.warnLevel_str,
|
|
|
|
|
|
+ warnLevel_str: el.warnLevel_str,
|
|
readTime: el.readTime,
|
|
readTime: el.readTime,
|
|
});
|
|
});
|
|
});
|
|
});
|
|
@@ -442,7 +442,7 @@ watch(
|
|
monitorlistWd.push({
|
|
monitorlistWd.push({
|
|
strinstallpos: el.strinstallpos,
|
|
strinstallpos: el.strinstallpos,
|
|
val: el.readData.fireval,
|
|
val: el.readData.fireval,
|
|
- // warnLevel_str: el.warnLevel_str == '正常' ? '低风险' : el.warnLevel_str,
|
|
|
|
|
|
+ warnLevel_str:el.warnLevel_str,
|
|
readTime: el.readTime,
|
|
readTime: el.readTime,
|
|
});
|
|
});
|
|
});
|
|
});
|