| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791 |
- <template>
- <view class="container">
- <u-navbar
- :title="titleName"
- :safeAreaInsetTop="true"
- :fixed="true"
- height="50px"
- bgColor="transparent"
- titleStyle="fw600 fs-18"
- leftIconColor="#303133"
- @leftClick="onLeftClick"
- >
- <view class="u-nav-slot" slot="left">
- <u-icon name="arrow-left" size="20" color="#303133"></u-icon>
- </view>
- </u-navbar>
- <view class="menupage">
- <view class="main" v-if="isShowDetail">
- <view class="warn-list">
- <!-- 通风监测预警 -->
- <view class="warn-section vent-section">
- <view class="vent-card">
- <view class="vent-card-header" @click.stop="toggleIsShow1">
- <text class="warn-card-title">通风监测预警</text>
- <view class="warn-card-action">
- <text class="warn-action-text">{{
- isShow1 ? "收起" : "展开"
- }}</text>
- <u-icon
- :name="isShow1 ? 'arrow-up' : 'arrow-down'"
- color="#1890ff"
- size="14"
- ></u-icon>
- </view>
- </view>
- <view v-show="isShow1">
- <view class="vent-card-divider"></view>
- <view class="vent-card-content" @click="getDetail('vent')">
- <view class="vent-metrics-row">
- <view class="vent-metric-card">
- <text class="vent-metric-value">{{
- windData.zongjinfeng || "--"
- }}</text>
- <text class="vent-metric-label">总进风量(m³/min)</text>
- </view>
- <view class="vent-metric-card">
- <text class="vent-metric-value">{{
- windData.zonghuifeng || "--"
- }}</text>
- <text class="vent-metric-label">总回风量(m³/min)</text>
- </view>
- <view class="vent-metric-card">
- <text class="vent-metric-value">{{
- xufengliang || "--"
- }}</text>
- <text class="vent-metric-label">总需风量(m³/min)</text>
- </view>
- </view>
- <view class="vent-risk-panel">
- <view
- class="vent-risk-item"
- v-for="(risk, rIndex) in ventRiskList"
- :key="rIndex"
- >
- <view
- class="risk-icon"
- :style="{ background: risk.color }"
- >
- <u-icon
- name="error-circle-fill"
- color="#ffffff"
- size="12"
- ></u-icon>
- </view>
- <text class="risk-text"
- >{{ risk.label }}: {{ risk.value }}</text
- >
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- <!-- 设备监测预警 -->
- <view class="warn-section device-section">
- <view class="device-card">
- <view class="device-card-header" @click.stop="toggleIsShow5">
- <text class="warn-card-title">设备监测预警</text>
- <view class="warn-card-action">
- <text class="warn-action-text">{{
- isShow5 ? "收起" : "展开"
- }}</text>
- <u-icon
- :name="isShow5 ? 'arrow-up' : 'arrow-down'"
- color="#2b7cff"
- size="14"
- ></u-icon>
- </view>
- </view>
- <view v-show="isShow5">
- <view class="device-card-divider"></view>
- <view class="device-card-content" @click="getDetail('device')">
- <view class="device-grid">
- <view
- class="device-item-card"
- v-for="(item, index) in deviceList"
- :key="index"
- >
- <image
- class="device-item-icon"
- :src="getDeviceIcon(item)"
- mode="aspectFit"
- ></image>
- <view class="device-item-bar">
- <text class="device-item-name">{{ item.name }}</text>
- <view class="device-status-tag">
- <text class="device-item-status">{{
- item.status
- }}</text>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- <!-- 火灾监测预警 -->
- <view class="warn-section fire-section" v-if="getCode != 'lblt'">
- <view class="fire-card">
- <view class="fire-card-header" @click.stop="toggleIsShow2">
- <text class="warn-card-title">火灾监测预警</text>
- <view class="warn-card-action">
- <text class="warn-action-text">{{
- isShow2 ? "收起" : "展开"
- }}</text>
- <u-icon
- :name="isShow2 ? 'arrow-up' : 'arrow-down'"
- color="#2b7cff"
- size="14"
- ></u-icon>
- </view>
- </view>
- <view v-show="isShow2">
- <view class="fire-card-divider"></view>
- <view class="fire-card-content" @click="getDetail('fire')">
- <view class="fire-block">
- <view class="fire-block-header">
- <!-- <view class="fire-block-deco">
- <view class="fire-deco-line"></view>
- <view class="fire-deco-line"></view>
- </view> -->
- <text class="fire-block-title">内因火灾</text>
- <!-- <view class="fire-block-line"></view> -->
- </view>
- <view class="fire-grid">
- <view
- class="fire-data-card"
- v-for="(item, index) in internalFireList"
- :key="'internal-' + index"
- >
- <view class="fire-icon-box">
- <image
- class="fire-icon"
- :src="getFireIcon(item)"
- mode="aspectFit"
- ></image>
- </view>
- <view class="fire-data-info">
- <text
- :class="[
- 'fire-data-value',
- isFireValueWarn(item) ? 'fire-value-warn' : '',
- ]"
- >{{ item.value }}</text
- >
- <text class="fire-data-label"
- >{{ item.monitorcode }}{{ getFireUnit(item) }}</text
- >
- </view>
- </view>
- </view>
- </view>
- <view class="fire-block fire-block-external">
- <view class="fire-block-header">
- <!-- <view class="fire-block-deco">
- <view class="fire-deco-line"></view>
- <view class="fire-deco-line"></view>
- </view> -->
- <text class="fire-block-title">外因火灾</text>
- <!-- <view class="fire-block-line"></view> -->
- </view>
- <view class="fire-grid">
- <view
- class="fire-data-card"
- v-for="(item, index) in externalFireList"
- :key="'external-' + index"
- >
- <view class="fire-icon-box">
- <image
- class="fire-icon"
- :src="getFireIcon(item)"
- mode="aspectFit"
- ></image>
- </view>
- <view class="fire-data-info">
- <text
- :class="[
- 'fire-data-value',
- isFireValueWarn(item) ? 'fire-value-warn' : '',
- ]"
- >{{ item.value }}</text
- >
- <text class="fire-data-label"
- >{{ item.monitorcode }}{{ getFireUnit(item) }}</text
- >
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- <!-- 粉尘监测预警 -->
- <view class="warn-section dust-section" v-if="getCode != 'lblt'">
- <view class="dust-card">
- <view class="dust-card-header" @click.stop="toggleIsShow3">
- <text class="warn-card-title">粉尘监测预警</text>
- <view class="warn-card-action">
- <text class="warn-action-text">{{
- isShow3 ? "收起" : "展开"
- }}</text>
- <u-icon
- :name="isShow3 ? 'arrow-up' : 'arrow-down'"
- color="#2b7cff"
- size="14"
- ></u-icon>
- </view>
- </view>
- <view v-show="isShow3">
- <view class="dust-card-divider"></view>
- <view class="dust-card-content" @click="getDetail('dust')">
- <view class="dust-alarm-bar">
- <view class="dust-alarm-icon-wrap">
- <image
- class="dust-alarm-icon"
- src="/static/warndata/warning.svg"
- mode="aspectFit"
- ></image>
- </view>
- <text class="dust-alarm-label">报警:</text>
- <text class="dust-alarm-value">{{ dustAlarmCount }}</text>
- </view>
- <view class="dust-risk-row">
- <view
- class="dust-risk-card"
- v-for="(risk, index) in dustRiskList"
- :key="index"
- :style="{ background: risk.bg }"
- >
- <view
- class="dust-risk-icon"
- :style="{ background: risk.iconBg }"
- >
- <image
- class="dust-risk-icon-img"
- src="/static/warndata/fx.svg"
- mode="aspectFit"
- ></image>
- </view>
- <text class="dust-risk-value">{{ risk.value }}</text>
- <text class="dust-risk-label">{{ risk.label }}</text>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- <!-- 瓦斯监测预警 -->
- <view class="warn-section gas-section" v-if="getCode != 'lblt'">
- <view class="gas-card">
- <view class="gas-card-header" @click.stop="toggleIsShow4">
- <text class="warn-card-title">瓦斯监测预警</text>
- <view class="warn-card-action">
- <text class="warn-action-text">{{
- isShow4 ? "收起" : "展开"
- }}</text>
- <u-icon
- :name="isShow4 ? 'arrow-up' : 'arrow-down'"
- color="#2b7cff"
- size="14"
- ></u-icon>
- </view>
- </view>
- <view v-show="isShow4">
- <view class="gas-card-divider"></view>
- <view class="gas-card-content" @click="getDetail('gas')">
- <view class="gas-block" v-if="gasDevice.length > 0">
- <view class="gas-block-header">
- <!-- <view class="gas-block-deco">
- <view class="gas-deco-line"></view>
- <view class="gas-deco-line"></view>
- </view> -->
- <text class="gas-block-title">安全监测系统监测点</text>
- <text class="gas-block-count">{{ gasSafeTotal }}</text>
- <!-- <view class="gas-block-line"></view> -->
- </view>
- <view class="gas-grid">
- <view
- class="gas-data-card"
- v-for="(item, index) in gasDevice"
- :key="'safe-' + index"
- >
- <view class="gas-icon-box">
- <image
- class="gas-icon"
- src="/static/warndata/jcd.svg"
- mode="aspectFit"
- ></image>
- </view>
- <view class="gas-data-info">
- <text class="gas-data-value">{{
- item.gasNumber
- }}</text>
- <text class="gas-data-label">{{
- item.systemname
- }}</text>
- </view>
- </view>
- </view>
- </view>
- <view
- class="gas-block gas-block-second"
- v-if="gasDevice.length > 0"
- >
- <view class="gas-block-header">
- <!-- <view class="gas-block-deco">
- <view class="gas-deco-line"></view>
- <view class="gas-deco-line"></view>
- </view> -->
- <text class="gas-block-title">瓦斯抽采系统监测点</text>
- <text class="gas-block-count">{{ gasPumpTotal }}</text>
- <!-- <view class="gas-block-line"></view> -->
- </view>
- <view class="gas-grid">
- <view
- class="gas-data-card"
- v-for="(item, index) in gasDevice"
- :key="'pump-' + index"
- >
- <view class="gas-icon-box">
- <image
- class="gas-icon"
- src="/static/warndata/jcd.svg"
- mode="aspectFit"
- ></image>
- </view>
- <view class="gas-data-info">
- <text class="gas-data-value">{{
- item.pumpNumber
- }}</text>
- <text class="gas-data-label">{{
- item.systemname
- }}</text>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- </view>
- <view class="main" v-else>
- <ventDetail v-if="Type == 'vent'"></ventDetail>
- <deviceDetail v-if="Type == 'device'"></deviceDetail>
- <fireDetail v-if="Type == 'fire'"></fireDetail>
- <dustDetail v-if="Type == 'dust'"></dustDetail>
- <gasDetail v-if="Type == 'gas'"></gasDetail>
- </view>
- </view>
- </view>
- </template>
- <script>
- import api from "@/api/api";
- import ventDetail from "./components/vent-detail.vue";
- import deviceDetail from "./components/device-detail.vue";
- import fireDetail from "./components/fire-detail.vue";
- import dustDetail from "./components/dust-detail.vue";
- import gasDetail from "./components/gas-detail.vue";
- export default {
- props: {},
- watch: {},
- data() {
- return {
- backPic0: "",
- backPic: "",
- titleName: "预警监测",
- isShowDetail: true,
- detailComponent: null,
- windData: {},
- devicekindData: [],
- fireData: [],
- gasData: [],
- dustData: {},
- dustTotalcount: 0,
- dustLevelstatus: "",
- gasDevice: [],
- externalInfo: [],
- internalInfo: [],
- xufengliang: "", //总需风量
- imageMap: {
- atomizing: "atomizing.png",
- ballvalve: "ballvalve.png",
- dedustefan: "dedustefan.png",
- drilling: "drilling.png",
- dustdev: "dustdev.png",
- fanlocal: "fanlocal.png",
- fanmain: "fanmain.png",
- forcFan: "forcFan.png",
- gasmonitor: "gasmonitor.png",
- gate: "gate.png",
- location: "location.png",
- nitrogen: "nitrogen.png",
- pulping: "pulping.png",
- pump: "pump.png",
- rebroadcast: "rebroadcast.png",
- safetymonitor: "safetymonitor.png",
- spary: "spary.png",
- unit: "unit.png",
- window: "window.png",
- windrect: "windrect.png",
- wintest: "wintest.png",
- },
- dustMap: {
- alarm: "报警",
- blue: "低风险",
- orange: "重大风险",
- red: "较大风险",
- yellow: "一般风险",
- },
- isShow1: true,
- isShow2: false,
- isShow3: false,
- isShow4: false,
- isShow5: true,
- Type: "", // 当前点击的类型
- };
- },
- mounted() {
- this.$nextTick(() => {
- this.getWarnInfo();
- });
- },
- components: {
- ventDetail,
- deviceDetail,
- fireDetail,
- dustDetail,
- gasDetail,
- },
- methods: {
- //获取预警信息
- getWarnInfo() {
- return new Promise((resolve, reject) => {
- api
- .getWarnInfo()
- .then((response) => {
- if (response.data.code == 200) {
- this.windData = response.data.result.ventInfo;
- this.devicekindData = response.data.result.info.devicekindInfo;
- this.fireData = response.data.result.info.sysInfo.fireS;
- const externalInfo1 = this.fireData.summaryInfo.external;
- const internalInfo1 = this.fireData.summaryInfo.internal;
- for (let key in externalInfo1) {
- if (!externalInfo1.hasOwnProperty(key)) continue;
- const item = externalInfo1[key];
- // 跳过空对象(如 ch4val: {})
- if (Object.keys(item).length === 0) continue;
- if (item.code == "coval") {
- item.monitorcode = "一氧化碳";
- } else if (item.code == "ch4val") {
- item.monitorcode = "甲烷";
- } else if (item.code == "o2val") {
- item.monitorcode = "氧气";
- } else if (item.code == "co2val") {
- item.monitorcode = "二氧化碳";
- } else if (item.code == "fmax") {
- item.monitorcode = "温度";
- } else if (item.code == "chval") {
- item.monitorcode = "乙炔";
- } else if (item.code == "ch2val") {
- item.monitorcode = "乙烯";
- } else if (item.code == "temperature") {
- item.monitorcode = "温度";
- } else if (item.code == "gasval") {
- item.monitorcode = "瓦斯";
- } else if (item.code == "fireval") {
- item.monitorcode = "温度";
- } else if (item.code == "smokeval") {
- item.monitorcode = "烟雾";
- }
- }
- for (let key in internalInfo1) {
- if (!internalInfo1.hasOwnProperty(key)) continue;
- const item = internalInfo1[key];
- // 跳过空对象(如 ch4val: {})
- if (Object.keys(item).length === 0) continue;
- if (item.code == "coval") {
- item.monitorcode = "一氧化碳";
- } else if (item.code == "ch4val") {
- item.monitorcode = "甲烷";
- } else if (item.code == "o2val") {
- item.monitorcode = "氧气";
- } else if (item.code == "co2val") {
- item.monitorcode = "二氧化碳";
- } else if (item.code == "chval") {
- item.monitorcode = "乙炔";
- } else if (item.code == "ch2val") {
- item.monitorcode = "乙烯";
- } else if (item.code == "fmax") {
- item.monitorcode = "温度";
- } else if (item.code == "temperature") {
- item.monitorcode = "温度";
- } else if (item.code == "gasval") {
- item.monitorcode = "瓦斯";
- } else if (item.code == "fireval") {
- item.monitorcode = "温度";
- } else if (item.code == "smokeval") {
- item.monitorcode = "烟雾";
- }
- }
- this.externalInfo = externalInfo1;
- this.internalInfo = internalInfo1;
- this.gasData = response.data.result.info.sysInfo.gasS;
- this.gasDevice = this.gasData.devices;
- this.xufengliang = this.windData.sysdata.xufengliang;
- const dusting =
- response.data.result.info.devicekindInfo.dusting || {};
- this.dustData = dusting;
- this.dustTotalcount = dusting.totalcount;
- this.dustLevelstatus = dusting.levelstatus;
- } else {
- reject(response);
- }
- })
- .catch((error) => {
- console.log("catch===>response", response);
- reject(error);
- });
- });
- },
- //左上角返回键:详情页返回预警列表页,预警列表页返回首页
- onLeftClick() {
- if (!this.isShowDetail) {
- this.menuShow();
- return;
- }
- this.$emit("changePage", "device");
- },
- //返回监测首页
- menuShow() {
- this.isShowDetail = true;
- },
- //跳转监测详情
- getDetail(data) {
- this.isShowDetail = false;
- this.Type = data; // 将当前点击的类型存储到 Type 中
- },
- toggleIsShow1() {
- this.isShow1 = !this.isShow1; // 切换 isShow 的值
- },
- toggleIsShow2() {
- this.isShow2 = !this.isShow2; // 切换 isShow 的值
- },
- toggleIsShow3() {
- this.isShow3 = !this.isShow3; // 切换 isShow 的值
- },
- toggleIsShow4() {
- this.isShow4 = !this.isShow4; // 切换 isShow 的值
- },
- toggleIsShow5() {
- this.isShow5 = !this.isShow5; // 切换 isShow 的值
- },
- getDeviceIcon(item) {
- const iconNameMap = {
- Minepressure: "矿压",
- bundleReport: "束管日报",
- door: "防火门",
- dustdev: "喷粉",
- modelsensor: "传感器",
- imgFireDet: "图像型火灾探测器",
- led: "LED屏",
- gasDay: "人工瓦斯巡检",
- footageGas: "进尺与瓦斯涌出",
- fanmain: "主通风机",
- vehicle: "车辆定位",
- dusting: "粉尘",
- obfurage: "密闭",
- gaspatrol: "瓦斯巡检",
- bundleSpyReport: "色谱仪报表",
- pump: "瓦斯抽采泵",
- dustsensor: "粉尘传感器",
- fiber: "光纤测温",
- bundletube: "束管监测",
- forcFan: "压风机",
- spray: "喷淋",
- dustReport: "粉尘报表",
- nitrogen: "制氮",
- transferpoint: "转载点",
- gasvalve: "瓦斯管道阀门",
- windrect: "测风装置",
- drilling: "抽采钻孔辅助设计",
- audVisAlarm: "声光报警器",
- atomizing: "喷雾设备",
- ballvalve: "球阀",
- safetymonitor: "安全监控",
- dedustefan: "除尘风机",
- unit: "评价单元",
- gasmonitor: "瓦斯监测",
- fanlocal: "局部通风机",
- gaspipe: "瓦斯管道",
- duaSpeCamera: "双光谱摄像机",
- gate: "自动风门",
- window: "自动风窗",
- rebroadcast: "语音扩播",
- pulping: "制浆",
- };
- // 设备图标文件名已由中文名改为中文首字母缩写
- const iconFileMap = {
- 矿压: "ky",
- 束管日报: "sgrb",
- 防火门: "fhm",
- 喷粉: "pf",
- 传感器: "cgq",
- 图像型火灾探测器: "tx",
- LED屏: "led",
- 人工瓦斯巡检: "rgws",
- 进尺与瓦斯涌出: "jcyws",
- 主通风机: "zs",
- 车辆定位: "cldw",
- 粉尘: "fenchen",
- 密闭: "mb",
- 瓦斯巡检: "wsxj",
- 色谱仪报表: "spy",
- 瓦斯抽采泵: "wsb",
- 粉尘传感器: "fenchen",
- 光纤测温: "default",
- 束管监测: "default",
- 压风机: "yf",
- 喷淋: "pl",
- 粉尘报表: "sgrb",
- 制氮: "zd",
- 转载点: "default",
- 瓦斯管道阀门: "wsxj",
- 测风装置: "cfzz",
- 抽采钻孔辅助设计: "jcyws",
- 声光报警器: "default",
- 喷雾设备: "pl",
- 球阀: "qf",
- 安全监控: "aqjk",
- 除尘风机: "ccq",
- 评价单元: "default",
- 瓦斯监测: "wsjc",
- 局部通风机: "js",
- 瓦斯管道: "wsgd",
- 双光谱摄像机: "sgpsx",
- 自动风门: "fm",
- 自动风窗: "fc",
- 语音扩播: "yykb",
- 制浆: "zj",
- };
- const deviceName = iconNameMap[item.code] || item.name;
- const iconName = iconFileMap[deviceName] || "default";
- return `/static/warndata/${iconName}.png`;
- },
- getFireIcon(item) {
- const monitor = item.monitorcode || "";
- if (monitor.indexOf("上隅角") >= 0) {
- return "/static/warndata/syj.svg";
- }
- if (monitor === "温度") {
- return "/static/warndata/jcd.svg";
- }
- if (monitor === "烟雾") {
- return "/static/warndata/fx.svg";
- }
- if (monitor === "火焰") {
- return "/static/warndata/warning.svg";
- }
- const codeMap = {
- coval: "CO.svg",
- ch4val: "CH4.svg",
- ch2val: "C2H4.svg",
- chval: "C2H4.svg",
- co2val: "CO2.svg",
- o2val: "syj.svg",
- };
- return `/static/warndata/${codeMap[item.code] || "jcd.svg"}`;
- },
- getFireUnit(item) {
- if (
- item.code === "o2val" ||
- item.code === "co2val" ||
- item.code === "ch4val" ||
- item.code === "smokeval"
- ) {
- return "(%)";
- }
- if (
- item.code === "fmax" ||
- item.code === "temperature" ||
- item.code === "fireval"
- ) {
- return "(℃)";
- }
- return "(ppm)";
- },
- isFireValueWarn(item) {
- return item.Maxlevel > 0;
- },
- },
- computed: {
- internalFireList() {
- if (!this.internalInfo) return [];
- const list = Array.isArray(this.internalInfo)
- ? this.internalInfo
- : Object.values(this.internalInfo);
- return list.filter((item) => item && Object.keys(item).length > 0);
- },
- externalFireList() {
- if (!this.externalInfo) return [];
- const list = Array.isArray(this.externalInfo)
- ? this.externalInfo
- : Object.values(this.externalInfo);
- return list.filter((item) => item && Object.keys(item).length > 0);
- },
- deviceList() {
- if (!this.devicekindData) return [];
- const list = Array.isArray(this.devicekindData)
- ? this.devicekindData
- : Object.values(this.devicekindData);
- return list.filter((item) => item && item.name);
- },
- getCode() {
- return uni.getStorageSync("apiCode");
- },
- ventRiskList() {
- const data = this.windData || {};
- const sys = data.sysdata || {};
- const getVal = (key) => {
- if (data[key] !== undefined && data[key] !== null && data[key] !== "") {
- return data[key];
- }
- if (sys[key] !== undefined && sys[key] !== null && sys[key] !== "") {
- return sys[key];
- }
- return 0;
- };
- return [
- { label: "低风险", color: "#1890ff", value: getVal("blue") },
- { label: "一般风险", color: "#f5a623", value: getVal("yellow") },
- { label: "较大风险", color: "#ff7a00", value: getVal("red") },
- { label: "重大风险", color: "#ff4d4f", value: getVal("orange") },
- { label: "报警", color: "#e90000", value: getVal("alarm") },
- ];
- },
- dustAlarmCount() {
- const data = this.dustData || {};
- if (
- data.alarm !== undefined &&
- data.alarm !== null &&
- data.alarm !== ""
- ) {
- return data.alarm;
- }
- return 0;
- },
- dustRiskList() {
- const data = this.dustData || {};
- const getVal = (key) => {
- if (data[key] !== undefined && data[key] !== null && data[key] !== "") {
- return data[key];
- }
- return 0;
- };
- return [
- {
- label: "低风险",
- bg: "#e6f7ff",
- iconBg: "#1890ff",
- value: getVal("blue"),
- },
- {
- label: "一般风险",
- bg: "#fffbe6",
- iconBg: "#faad14",
- value: getVal("yellow"),
- },
- {
- label: "较大风险",
- bg: "#fff7e6",
- iconBg: "#ff8c00",
- value: getVal("red"),
- },
- {
- label: "重大风险",
- bg: "#fff1f0",
- iconBg: "#f5222d",
- value: getVal("orange"),
- },
- ];
- },
- gasSafeTotal() {
- if (!this.gasDevice || !this.gasDevice.length) return 0;
- return this.gasDevice.reduce((sum, item) => {
- const num = Number(item.gasNumber);
- return sum + (isNaN(num) ? 0 : num);
- }, 0);
- },
- gasPumpTotal() {
- if (!this.gasDevice || !this.gasDevice.length) return 0;
- return this.gasDevice.reduce((sum, item) => {
- const num = Number(item.pumpNumber);
- return sum + (isNaN(num) ? 0 : num);
- }, 0);
- },
- },
- };
- </script>
- <style lang="scss" scoped>
- .nameStyle {
- color: #000000;
- font-size: 15px;
- }
- .container {
- // display: flex;
- // flex-direction: column;
- // min-height: 100vh;
- // background: linear-gradient(180deg, #c8d8f8 0%, #f5f7fa 320rpx, #f5f7fa 100%);
- }
- .menupage {
- height: calc(100vh - 101px - var(--status-bar-height, 0px));
- margin-top: calc(50px + var(--status-bar-height, 0px));
- overflow-y: auto;
- }
- .main {
- margin-top: 10px;
- display: flex;
- flex-direction: column;
- flex: 1;
- width: 100%;
- padding: 0 24rpx 40rpx;
- box-sizing: border-box;
- background: transparent;
- }
- .warn-list {
- width: 100%;
- }
- .warn-section {
- margin-bottom: 20rpx;
- }
- .warn-card-header {
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: space-between;
- background: #f9f9fb;
- border-radius: 16rpx;
- padding: 28rpx 24rpx;
- }
- .warn-card-title {
- font-size: 30rpx;
- font-weight: 600;
- color: #000000;
- }
- .warn-card-action {
- display: flex;
- flex-direction: row;
- align-items: center;
- }
- .warn-action-text {
- font-size: 14px;
- color: #0065f8;
- margin-right: 3px;
- font-weight: 500;
- }
- .warn-card-body {
- margin-top: 12rpx;
- padding: 20rpx;
- background: #ffffff;
- border-radius: 16rpx;
- box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.04);
- overflow: hidden;
- }
- /* ===== 通风监测预警 ===== */
- .vent-section {
- margin-bottom: 20rpx;
- }
- .vent-card {
- background: #ffffff;
- border-radius: 16rpx;
- box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.04);
- overflow: hidden;
- }
- .vent-card-header {
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: space-between;
- padding: 28rpx 24rpx;
- }
- .vent-card-divider {
- height: 1rpx;
- background: #eef0f4;
- margin: 0 24rpx;
- }
- .vent-card-content {
- padding: 20rpx 24rpx 24rpx;
- }
- .vent-metrics-row {
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- }
- .vent-metric-card {
- flex: 1;
- margin: 0 6rpx;
- padding: 24rpx 8rpx;
- border-radius: 12rpx;
- background: linear-gradient(
- to bottom,
- rgba(175, 195, 252, 0.6) 0%,
- rgba(175, 195, 252, 0.1) 100%
- );
- display: flex;
- flex-direction: column;
- align-items: center;
- justify-content: center;
- box-sizing: border-box;
- }
- .vent-metric-card:first-child {
- margin-left: 0;
- }
- .vent-metric-card:last-child {
- margin-right: 0;
- }
- .vent-metric-value {
- font-size: 28rpx;
- font-weight: 700;
- color: #0065f8;
- line-height: 1.3;
- text-align: center;
- word-break: break-all;
- }
- .vent-metric-label {
- margin-top: 10rpx;
- font-size: 24rpx;
- color: #000000;
- line-height: 1.3;
- text-align: center;
- }
- .vent-risk-panel {
- margin-top: 16rpx;
- padding: 24rpx 16rpx;
- border-radius: 12rpx;
- background: linear-gradient(
- to bottom,
- rgba(175, 195, 252, 0.6) 0%,
- rgba(175, 195, 252, 0.1) 100%
- );
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- }
- .vent-risk-item {
- width: 33.33%;
- display: flex;
- flex-direction: row;
- align-items: center;
- margin-bottom: 20rpx;
- box-sizing: border-box;
- padding-right: 8rpx;
- }
- .vent-risk-item:nth-child(n + 4) {
- margin-bottom: 0;
- }
- .risk-icon {
- width: 32rpx;
- height: 32rpx;
- border-radius: 50%;
- display: flex;
- align-items: center;
- justify-content: center;
- flex-shrink: 0;
- margin-right: 8rpx;
- }
- .risk-text {
- font-size: 24rpx;
- color: #000000;
- line-height: 1.3;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .vent-section .warn-action-text {
- color: #0065f8;
- }
- /* ===== 设备监测预警 ===== */
- .device-section {
- margin-bottom: 20rpx;
- }
- .device-card {
- background: #f9f9fb;
- border-radius: 16rpx;
- border: 1rpx solid #fff;
- overflow: hidden;
- }
- .device-card-header {
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: space-between;
- padding: 28rpx 24rpx 24rpx;
- }
- .device-card-divider {
- height: 1rpx;
- background: #eef0f4;
- margin: 0 24rpx;
- }
- .device-card-content {
- padding: 24rpx 24rpx 28rpx;
- }
- .device-section .warn-action-text {
- color: #0065f8;
- }
- .device-grid {
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- justify-content: space-between;
- }
- .device-item-card {
- position: relative;
- width: calc(50% - 10rpx);
- height: 80rpx;
- margin-bottom: 30rpx;
- box-sizing: border-box;
- background: url("../../static/warndata/1-3.png") no-repeat center;
- background-size: 100% 100%;
- }
- .device-item-icon {
- position: absolute;
- left: 8rpx;
- top: -40rpx;
- width: 104rpx;
- height: 104rpx;
- z-index: 2;
- }
- .device-item-bar {
- position: absolute;
- left: 44rpx;
- right: 0;
- top: 50%;
- transform: translateY(-50%);
- height: 88rpx;
- display: flex;
- flex-direction: row;
- align-items: center;
- padding-left: 90rpx;
- padding-right: 74rpx;
- padding-top: 12rpx;
- box-sizing: border-box;
- // background: linear-gradient(90deg, #d0e7ff 0%, #eef6ff 55%, #ffffff 100%);
- // clip-path: polygon(0 0, calc(100% - 18rpx) 0, 100% 100%, 0 100%);
- }
- .device-item-name {
- flex: 1;
- min-width: 0;
- font-size: 26rpx;
- color: #000000;
- line-height: 1.3;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .device-status-tag {
- position: absolute;
- right: 20rpx;
- top: 12rpx;
- bottom: 0;
- width: 72rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- // background: linear-gradient(135deg, #afc3fc 0%, #82aaff 100%);
- // clip-path: polygon(14rpx 0, 100% 0, 100% 100%, 0 100%);
- }
- .device-item-status {
- font-size: 26rpx;
- font-weight: 700;
- font-style: italic;
- color: #0065f8;
- line-height: 1.2;
- }
- /* ===== 火灾监测预警 ===== */
- .fire-section {
- margin-bottom: 20rpx;
- }
- .fire-card {
- background: #ffffff;
- border-radius: 16rpx;
- box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.04);
- overflow: hidden;
- }
- .fire-card-header {
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: space-between;
- padding: 28rpx 24rpx 24rpx;
- }
- .fire-card-divider {
- height: 1rpx;
- background: #eef0f4;
- margin: 0 24rpx;
- }
- .fire-card-content {
- padding: 24rpx 24rpx 28rpx;
- }
- .fire-section .warn-action-text {
- color: #0065f8;
- }
- .fire-block {
- margin-bottom: 8rpx;
- }
- .fire-block-external {
- margin-top: 24rpx;
- margin-bottom: 0;
- }
- .fire-block-header {
- display: flex;
- flex-direction: row;
- align-items: center;
- height: 28px;
- width: 100%;
- margin-bottom: 20rpx;
- padding-left: 30rpx;
- background: url("../../static/warndata/1-1.png") no-repeat center;
- background-size: 100% 100%;
- }
- .fire-block-deco {
- display: flex;
- flex-direction: row;
- align-items: center;
- margin-right: 12rpx;
- flex-shrink: 0;
- }
- .fire-deco-line {
- width: 6rpx;
- height: 28rpx;
- background: #0065f8;
- transform: skewX(-18deg);
- margin-right: 6rpx;
- border-radius: 2rpx;
- }
- .fire-block-title {
- font-size: 28rpx;
- font-weight: 600;
- color: #000;
- margin-right: 16rpx;
- flex-shrink: 0;
- }
- .fire-block-line {
- flex: 1;
- height: 28rpx;
- background: linear-gradient(
- 90deg,
- #d0e7ff 0%,
- #eef5ff 72%,
- rgba(238, 245, 255, 0) 100%
- );
- clip-path: polygon(0 0, calc(100% - 24rpx) 0, 100% 100%, 0 100%);
- }
- .fire-grid {
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- justify-content: space-between;
- }
- .fire-data-card {
- width: calc(50% - 10rpx);
- margin-bottom: 16rpx;
- padding: 20rpx 16rpx;
- border-radius: 12rpx;
- background: linear-gradient(
- to bottom,
- rgba(175, 195, 252, 0.6) 0%,
- rgba(175, 195, 252, 0.1) 100%
- );
- display: flex;
- flex-direction: row;
- align-items: center;
- box-sizing: border-box;
- }
- .fire-icon-box {
- width: 72rpx;
- height: 72rpx;
- border-radius: 12rpx;
- background: linear-gradient(135deg, #80b4ff, #347df3);
- display: flex;
- align-items: center;
- justify-content: center;
- flex-shrink: 0;
- margin-right: 16rpx;
- box-shadow: 4rpx 6rpx 0 rgba(43, 124, 255, 0.12);
- }
- .fire-icon {
- width: 44rpx;
- height: 44rpx;
- }
- .fire-data-info {
- flex: 1;
- min-width: 0;
- }
- .fire-data-value {
- display: block;
- font-size: 32rpx;
- font-weight: 700;
- color: #0065f8;
- line-height: 1.2;
- word-break: break-all;
- }
- .fire-value-warn {
- color: #ff0000;
- }
- .fire-data-label {
- display: block;
- margin-top: 8rpx;
- font-size: 24rpx;
- color: #000;
- line-height: 1.35;
- word-break: break-all;
- }
- /* ===== 粉尘监测预警 ===== */
- .dust-section {
- margin-bottom: 20rpx;
- }
- .dust-card {
- background: #ffffff;
- border-radius: 16rpx;
- box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.04);
- overflow: hidden;
- }
- .dust-card-header {
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: space-between;
- padding: 28rpx 24rpx 24rpx;
- }
- .dust-card-divider {
- height: 1rpx;
- background: #eef0f4;
- margin: 0 24rpx;
- }
- .dust-card-content {
- padding: 24rpx 24rpx 28rpx;
- }
- .dust-section .warn-action-text {
- color: #0065f8;
- }
- .dust-alarm-bar {
- display: flex;
- flex-direction: row;
- align-items: center;
- padding: 24rpx 28rpx;
- border-radius: 12rpx;
- background: #fff1f0;
- margin-bottom: 16rpx;
- }
- .dust-alarm-icon-wrap {
- width: 56rpx;
- height: 56rpx;
- border-radius: 50%;
- background: #f5222d;
- display: flex;
- align-items: center;
- justify-content: center;
- margin-right: 16rpx;
- box-shadow: 0 0 0 6rpx rgba(245, 34, 45, 0.12);
- flex-shrink: 0;
- }
- .dust-alarm-icon {
- width: 32rpx;
- height: 32rpx;
- }
- .dust-alarm-label {
- flex: 1;
- font-size: 28rpx;
- color: #000;
- font-weight: 600;
- }
- .dust-alarm-value {
- font-size: 32rpx;
- font-weight: 700;
- color: #000;
- }
- .dust-risk-row {
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- }
- .dust-risk-card {
- position: relative;
- width: calc(25% - 9rpx);
- padding: 20rpx 8rpx 16rpx;
- border-radius: 12rpx;
- display: flex;
- flex-direction: column;
- align-items: center;
- box-sizing: border-box;
- min-height: 140rpx;
- }
- .dust-risk-icon {
- position: absolute;
- top: 12rpx;
- left: 12rpx;
- width: 28rpx;
- height: 28rpx;
- border-radius: 6rpx;
- display: flex;
- align-items: center;
- justify-content: center;
- }
- .dust-risk-icon-img {
- width: 18rpx;
- height: 18rpx;
- }
- .dust-risk-value {
- margin-top: 24rpx;
- font-size: 36rpx;
- font-weight: 700;
- color: #000;
- line-height: 1.2;
- }
- .dust-risk-label {
- margin-top: 8rpx;
- font-size: 24rpx;
- color: #000;
- line-height: 1.3;
- text-align: center;
- }
- /* ===== 瓦斯监测预警 ===== */
- .gas-section {
- margin-bottom: 20rpx;
- }
- .gas-card {
- background: #ffffff;
- border-radius: 16rpx;
- box-shadow: 0 2rpx 12rpx rgba(0, 0, 0, 0.04);
- overflow: hidden;
- }
- .gas-card-header {
- display: flex;
- flex-direction: row;
- align-items: center;
- justify-content: space-between;
- padding: 28rpx 24rpx 24rpx;
- }
- .gas-card-divider {
- height: 1rpx;
- background: #eef0f4;
- margin: 0 24rpx;
- }
- .gas-card-content {
- padding: 24rpx 24rpx 28rpx;
- }
- .gas-section .warn-action-text {
- color: #0065f8;
- }
- .gas-block {
- margin-bottom: 8rpx;
- }
- .gas-block-second {
- margin-top: 24rpx;
- margin-bottom: 0;
- }
- .gas-block-header {
- height: 28px;
- display: flex;
- flex-direction: row;
- align-items: center;
- margin-bottom: 20rpx;
- padding-left: 30rpx;
- background: url("../../static/warndata/1-1.png") no-repeat center;
- background-size: 100% 100%;
- }
- .gas-block-deco {
- display: flex;
- flex-direction: row;
- align-items: center;
- margin-right: 12rpx;
- flex-shrink: 0;
- }
- .gas-deco-line {
- width: 6rpx;
- height: 28rpx;
- color: #0065f8;
- transform: skewX(-18deg);
- margin-right: 6rpx;
- border-radius: 2rpx;
- }
- .gas-block-title {
- font-size: 28rpx;
- font-weight: 600;
- color: #000;
- margin-right: 10rpx;
- flex-shrink: 0;
- }
- .gas-block-count {
- font-size: 28rpx;
- font-weight: 700;
- color: #0065f8;
- margin-right: 16rpx;
- flex-shrink: 0;
- }
- .gas-block-line {
- flex: 1;
- height: 28rpx;
- background: linear-gradient(
- 90deg,
- #d0e7ff 0%,
- #eef5ff 72%,
- rgba(238, 245, 255, 0) 100%
- );
- clip-path: polygon(0 0, calc(100% - 24rpx) 0, 100% 100%, 0 100%);
- }
- .gas-grid {
- display: flex;
- flex-direction: row;
- flex-wrap: wrap;
- justify-content: flex-start;
- }
- .gas-data-card {
- width: calc(33.33% - 8rpx);
- margin-bottom: 16rpx;
- margin-right: 20rpx;
- padding: 16rpx 10rpx;
- border-radius: 12rpx;
- background: linear-gradient(
- to bottom,
- rgba(175, 195, 252, 0.6) 0%,
- rgba(175, 195, 252, 0.1) 100%
- );
- display: flex;
- flex-direction: row;
- align-items: center;
- box-sizing: border-box;
- }
- .gas-icon-box {
- width: 56rpx;
- height: 56rpx;
- border-radius: 10rpx;
- background: linear-gradient(135deg, #80b4ff, #347df3);
- display: flex;
- align-items: center;
- justify-content: center;
- flex-shrink: 0;
- margin-right: 10rpx;
- box-shadow: 3rpx 4rpx 0 rgba(43, 124, 255, 0.12);
- }
- .gas-icon {
- width: 34rpx;
- height: 34rpx;
- }
- .gas-data-info {
- flex: 1;
- min-width: 0;
- }
- .gas-data-value {
- display: block;
- font-size: 30rpx;
- font-weight: 700;
- color: #0065f8;
- line-height: 1.2;
- word-break: break-all;
- }
- .gas-data-label {
- display: block;
- margin-top: 6rpx;
- font-size: 24rpx;
- color: #000;
- line-height: 1.3;
- overflow: hidden;
- text-overflow: ellipsis;
- white-space: nowrap;
- }
- .text-style {
- font-weight: bold;
- }
- .flcard {
- padding: 20rpx;
- background-color: #ffffff;
- margin-bottom: 5rpx;
- }
- .datacard {
- width: 32.5%;
- margin: 1px;
- float: left;
- height: 74px;
- line-height: 27px;
- border-radius: 5px;
- background: url(/static/model/windM3.png),
- linear-gradient(
- to right,
- rgba(55, 135, 254, 0.08),
- rgba(4, 184, 255, 0.08),
- rgba(60, 161, 237, 0.08)
- );
- background-repeat: no-repeat;
- background-size: 100% 100%;
- background-position: right;
- }
- .datacard1 {
- width: 100%;
- margin: 2px;
- float: left;
- height: 200rpx;
- text-align: center;
- border-radius: 10px;
- background: linear-gradient(
- to right,
- rgba(55, 135, 254, 0.08),
- rgba(4, 184, 255, 0.08),
- rgba(60, 161, 237, 0.08)
- );
- }
- .title {
- position: relative;
- width: 100%;
- height: 50rpx;
- background: url("../../static/warndata/1-1.png");
- background-repeat: no-repeat;
- background-size: 100% 100%;
- display: flex;
- /* 将父级元素设置为 Flex 容器 */
- align-items: center;
- /* 垂直居中子元素 */
- }
- .firecard {
- width: 100%;
- padding: 10px;
- float: left;
- text-align: center;
- border-radius: 10px;
- }
- .firetext {
- margin: 20px;
- }
- .text-style1 {
- color: #0065f8;
- font-weight: bold;
- font-size: 17px;
- margin-left: 5px;
- }
- .red-text-style {
- color: #ff0000;
- font-weight: bold;
- font-size: 16px;
- }
- .firecontainer {
- margin-top: 10px;
- }
- .fire-style {
- display: flex;
- flex-wrap: wrap;
- }
- .fire-item1 {
- width: 45%;
- margin: 16rpx;
- background: linear-gradient(
- to right,
- rgba(55, 135, 254, 0.08),
- rgba(4, 184, 255, 0.08)
- );
- }
- .gascontainer {
- display: flex;
- }
- .gascard {
- width: 47%;
- border-radius: 10px;
- margin: 10px;
- display: flex;
- background: linear-gradient(
- to right,
- rgba(55, 135, 254, 0.08),
- rgba(4, 184, 255, 0.08),
- rgba(60, 161, 237, 0.08)
- );
- flex-direction: row;
- justify-content: space-between;
- }
- .gas-right {
- margin-right: 10px;
- width: 60px;
- height: 60px;
- background: url(/static/warndata/gas.png);
- background-repeat: no-repeat;
- background-size: 100% 100%;
- }
- .safecard {
- width: 47%;
- border-radius: 10px;
- margin: 10px;
- display: flex;
- background: linear-gradient(
- to right,
- rgba(55, 135, 254, 0.08),
- rgba(4, 184, 255, 0.08),
- rgba(60, 161, 237, 0.08)
- );
- flex-direction: row;
- justify-content: space-between;
- }
- .safe-container {
- display: flex;
- width: 100%;
- height: 70px;
- align-items: center;
- display: flex;
- justify-content: space-between;
- }
- .right {
- margin-right: 10px;
- width: 60px;
- height: 60px;
- background: url(/static/warndata/safety.png);
- background-repeat: no-repeat;
- background-size: 100% 100%;
- }
- .icon-style {
- margin-right: 8px;
- width: 13px;
- height: 13px;
- border-radius: 4px;
- }
- .typeBar {
- display: flex;
- justify-content: space-between;
- .icon-vent {
- display: flex;
- .u-icon--right {
- margin: 0px 5px;
- }
- }
- }
- </style>
|