1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348 |
- <template>
- <div class="bg" style="width: 100%; height: 100%; display: flex; justify-content: center; align-items: center; overflow: hidden">
- <a-spin :spinning="loading" />
- <div id="fanLocal3D" style="width: 100%; height: 100%; position: absolute; overflow: hidden"> </div>
- <div id="fanLocal3DCSS" class="threejs-Object-CSS" style="width: 100%; height: 100%; position: absolute; overflow: hidden; pointer-events: none">
- <div style="z-index: -1; position: relative" v-if="hasPermission('show:sensorMonitor')">
- <div class="elementTag" id="inputBox">
- <div class="elementContent" v-if="selectData.windSpeed1 || selectData.gas3 || selectData.windSpeed_merge">
- <p v-if="selectData.windSpeed1 || selectData.windSpeed_merge"
- >风筒入口风速:<span class="value">{{
- selectData.windSpeed1 ? selectData.windSpeed1 : selectData.windSpeed_merge ? selectData.windSpeed_merge : '-'
- }}</span>
- <span class="unit"> m/s</span></p
- >
- <p v-if="selectData.windQuantity1 || selectData.inletAirVolume_merge"
- >风筒入口风量:<span class="value">{{
- selectData.windQuantity1 ? selectData.windQuantity1 : selectData.inletAirVolume_merge ? selectData.inletAirVolume_merge : '-'
- }}</span>
- <span class="unit"> m³/min</span></p
- >
- <p v-if="selectData.gas3"
- >风筒入口瓦斯浓度: <span class="value">{{ selectData.gas3 ? selectData.gas3 : '-' }}</span> <span class="unit"> %</span></p
- >
- </div>
- </div>
- <div class="elementTag" id="outBox">
- <div class="elementContent elementContent-r" v-if="selectData.windQuantity2 || selectData.gas1 || selectData.ductOutletAirVolume_merge">
- <p v-if="selectData.windQuantity2 || selectData.ductOutletAirVolume_merge"
- >迎头供风量:<span class="value">{{
- selectData.windQuantity2
- ? selectData.windQuantity2
- : selectData.ductOutletAirVolume_merge
- ? selectData.ductOutletAirVolume_merge
- : '-'
- }}</span>
- <span class="unit"> m³/min</span></p
- >
- <p v-if="selectData.gas1"
- >迎头瓦斯浓度:<span class="value">{{ selectData.gas1 ? selectData.gas1 : '-' }}</span> <span class="unit"> %</span></p
- >
- </div>
- </div>
- <div class="elementTag" id="returnBox">
- <div class="elementContent elementContent-r" v-if="selectData.gas2">
- <p v-if="selectData.gas2"
- >回风流瓦斯浓度:<span class="value">{{ selectData.gas2 ? selectData.gas2 : '-' }}</span> <span class="unit"> %</span></p
- >
- </div>
- </div>
- <div class="elementTag" id="gateBox">
- <div class="elementContent">
- <p>风门状态:关</p>
- <p>风门过风面积:{{ selectData.gas1 ? selectData.gas1 : '-' }}</p>
- </div>
- </div>
- <div class="elementTag" id="windownBox">
- <div class="elementContent" v-if="modalType == 'fc'">
- <p style="pointer-events: auto"
- ><a class="action-link" @click="goDetailDevice('window_fWindowM3')">风窗详情</a> <ArrowRightOutlined :style="{ color: '#157DC8' }"
- /></p>
- <p v-if="selectData.windSpeed"
- >风窗风流风速:<span class="value">{{ selectData.windSpeed ? selectData.windSpeed : '-' }}</span> <span class="unit"> m/s</span></p
- >
- <p v-if="selectData.fWindowM3"
- >风窗过风量:<span class="value">{{ selectData.fWindowM3 ? selectData.fWindowM3 : '-' }}</span> <span class="unit"> m³/min</span></p
- >
- <p v-if="selectData.OpenDegree"
- >风窗开度值:<span class="value">{{ selectData.OpenDegree ? selectData.OpenDegree : '-' }}</span> <span class="unit"> %</span></p
- >
- <p v-if="selectData.OpenDegree"
- >风窗过风面积:<span class="value">{{ selectData.forntArea ? selectData.forntArea : '-' }}</span> <span class="unit"> m2</span></p
- >
- </div>
- </div>
- </div>
- </div>
- </div>
- <div class="scene-box">
- <div class="top-box" v-if="!loading">
- <div class="top-center row">
- <div class="vent-flex-row" id="fanLocalSelectDom" v-if="!globalConfig?.simulatedPassword && getDictItemsByCode('fanlocaltype')">
- <span style="color: #00f5fe; margin-left: 5px">风机类型:</span>
- <JDictSelectTag
- style="width: 180px"
- v-model:value="devicekide"
- dictCode="fanlocaltype"
- :showChooseOption="false"
- :getPopupContainer="getPopupContainer"
- @change="changeDeviceKind"
- />
- </div>
- <!-- fanlocal_systeml_zj 模拟局部风机,不显示操作按钮 -->
- <template v-for="(item, index) in modalTypeArr.leftBtnArr" :key="index">
- <div v-if="hasPermission(item.permission)" :class="{ 'button-box': btnClick, 'button-disable': !btnClick }" @click="showModal(item)">{{
- item.value
- }}</div>
- </template>
- </div>
- <div class="top-right row">
- <template v-for="(item, index) in modalTypeArr.rightBtnArr" :key="index">
- <div v-if="hasPermission(item.permission)" :class="{ 'button-box': btnClick, 'button-disable': !btnClick }" @click="showModal(item)">{{
- item.value
- }}</div>
- </template>
- </div>
- </div>
- <div class="title-text">
- {{ selectData.supplyAirAddr || selectData.strinstallpos || selectData.stationname }}
- </div>
- <div class="data-show-box" v-if="!loading">
- <div class="data-item" v-if="leftColumns.length > 0">
- <div class="item-header">环境监测</div>
- <div class="item-container">
- <div class="tab">
- <div class="tab-item" :class="{ 'tab-item-active-r': warningMonitorRowIndex === 0 }" @click="selectDevice('warningMonitorRowIndex', 0)"
- >主机</div
- >
- <div class="tab-item" :class="{ 'tab-item-active-r': warningMonitorRowIndex === 1 }" @click="selectDevice('warningMonitorRowIndex', 1)"
- >备机</div
- >
- </div>
- <div class="container-group">
- <div class="warning-header">
- <div class="header-item">
- <div class="header-title">报警总数</div>
- <div class="header-value">0</div>
- </div>
- <div class="header-item">
- <div class="header-title"> 未处理数</div>
- <div class="header-value">0</div>
- </div>
- </div>
- <div class="warning-group">
- <template v-if="selectData.deviceType">
- <!-- <div class="warning-item" v-for="(state, index) in leftColumns" :key="index">
- <div class="item-name"><div class="icon"></div> {{ state.title }}</div>
- <div v-if="state.dataIndex.startsWith('Fan')">
- <div class="signal-item" v-if="warningMonitorRowIndex == 0">
- <div
- class="signal-round"
- :class="{
- 'signal-round-run': selectData[state.dataIndex.replace('Fan', 'Fan1')],
- 'signal-round-warning':
- selectData[state.dataIndex.replace('Fan', 'Fan1')] !== undefined && !selectData[state.dataIndex.replace('Fan', 'Fan1')],
- 'signal-round-gry': selectData[state.dataIndex.replace('Fan', 'Fan1')] === undefined,
- }"
- ></div>
- <div class="vent-margin-l-8">{{
- selectData[state.dataIndex.replace('Fan', 'Fan1')] === undefined
- ? '无状态'
- : selectData[state.dataIndex.replace('Fan', 'Fan1')]
- ? '正常'
- : '异常'
- }}</div>
- </div>
- <div class="signal-item" v-if="warningMonitorRowIndex == 1">
- <div
- class="signal-round"
- :class="{
- 'signal-round-run': selectData[state.dataIndex.replace('Fan', 'Fan2')],
- 'signal-round-warning':
- selectData[state.dataIndex.replace('Fan', 'Fan2')] !== undefined && !selectData[state.dataIndex.replace('Fan', 'Fan2')],
- 'signal-round-gry': selectData[state.dataIndex.replace('Fan', 'Fan2')] === undefined,
- }"
- ></div>
- <div class="vent-margin-l-8">{{
- selectData[state.dataIndex.replace('Fan', 'Fan2')] === undefined
- ? '无状态'
- : selectData[state.dataIndex.replace('Fan', 'Fan2')]
- ? '正常'
- : '异常'
- }}</div>
- </div>
- </div>
- <div v-else>
- <div class="signal-item">
- <div
- class="signal-round vent-margin-l-8"
- :class="{
- 'signal-round-run': selectData[state.dataIndex],
- 'signal-round-warning': selectData[state.dataIndex] !== undefined && !selectData[state.dataIndex],
- 'signal-round-gry': selectData[state.dataIndex] === undefined,
- }"
- ></div>
- <div class="vent-margin-l-8">{{ selectData[state.dataIndex] === undefined ? '无状态' : selectData[state.dataIndex] ? '正常' : '异常' }}</div>
- </div>
- </div>
- </div> -->
- <div class="container-item" v-for="(data, index) in leftColumns" :key="index">
- <div class="item-icon">
- <!-- <SvgIcon class="icon-style" size="18" name="temperature" /> -->
- <CaretRightOutlined class="icon-style" />
- </div>
- <div class="item-name">{{ data.title }}</div>
- <div v-if="data.dataIndex.startsWith('Fan')">
- <div class="item-value" v-if="warningMonitorRowIndex == 0">{{
- selectData[data.dataIndex.replace('Fan', 'Fan1')] ? selectData[data.dataIndex.replace('Fan', 'Fan1')] : '-'
- }}</div>
- <div class="item-value" v-if="warningMonitorRowIndex == 1">{{
- selectData[data.dataIndex.replace('Fan', 'Fan2')] ? selectData[data.dataIndex.replace('Fan', 'Fan2')] : '-'
- }}</div>
- </div>
- <div v-else>
- <div class="item-value">{{ selectData[data.dataIndex] ? selectData[data.dataIndex] : '-' }}</div>
- </div>
- </div>
- </template>
- </div>
- </div>
- </div>
- </div>
- <div class="data-item" v-if="rightColumns.length > 0">
- <div class="item-header">设备监测</div>
- <div class="item-container">
- <div class="tab">
- <div class="tab-item" :class="{ 'tab-item-active-r': dataMonitorRowIndex == 0 }" @click="selectDevice('dataMonitorRowIndex', 0)"
- >主机</div
- >
- <div class="tab-item" :class="{ 'tab-item-active-r': dataMonitorRowIndex == 1 }" @click="selectDevice('dataMonitorRowIndex', 1)"
- >备机</div
- >
- </div>
- <div class="container-group container-group-l">
- <template v-if="!loading">
- <div class="container-item" v-for="(data, index) in rightColumns" :key="index">
- <div class="item-icon">
- <!-- <SvgIcon class="icon-style" size="18" name="temperature" /> -->
- <!-- <StarOutlined /> -->
- <CaretRightOutlined class="icon-style" />
- </div>
- <div class="item-name">{{ data.title }}</div>
- <div v-if="data.dataIndex.startsWith('Fan')">
- <div class="item-value" v-if="dataMonitorRowIndex == 0">{{
- selectData[data.dataIndex.replace('Fan', 'Fan1')] ? selectData[data.dataIndex.replace('Fan', 'Fan1')] : '-'
- }}</div>
- <div class="item-value" v-if="dataMonitorRowIndex == 1">{{
- selectData[data.dataIndex.replace('Fan', 'Fan2')] ? selectData[data.dataIndex.replace('Fan', 'Fan2')] : '-'
- }}</div>
- </div>
- <div v-else>
- <div class="item-value">{{ selectData[data.dataIndex] ? selectData[data.dataIndex] : '-' }}</div>
- </div>
- </div>
- </template>
- </div>
- </div>
- </div>
- </div>
- <div class="bottom-tabs-box" @mousedown="setDivHeight($event, 170, scroll, 180)">
- <dv-border-box8 :dur="5" class="dv_border_8" :style="`bottom: 20px; padding: 5px; height: ${scroll.y + 140}px`">
- <!-- <div class="enter-detail" @click="goDetail()">
- <send-outlined class=""/>风机运行详情
- </div> -->
- <a-tabs class="tabs-box" v-model:activeKey="activeKey" @change="tabChange">
- <a-tab-pane key="1" tab="实时监测">
- <GroupMonitorTable
- v-if="activeKey === '1'"
- ref="MonitorDataTable"
- :dataSource="dataSource"
- :columnsType="`${selectData.deviceType}_monitor`"
- @selectRow="getSelectRow"
- :scroll="scroll"
- :is-action="true"
- >
- <template #action="{ record }">
- <a v-if="globalConfig?.showReport" class="table-action-link" @click="deviceEdit($event, 'reportInfo', record)">报表录入</a>
- <a class="table-action-link" @click="deviceEdit($event, 'deviceInfo', record)">设备编辑</a>
- </template>
- </GroupMonitorTable>
- </a-tab-pane>
- <a-tab-pane key="2" tab="实时曲线图" force-render v-if="hasPermission('echart:show')">
- <div class="tab-item" v-if="activeKey === '2'">
- <div class="vent-flex-row-between" style="height: 100%">
- <BarSingle
- :xAxisData="xAxisDataGas"
- :dataSource="dataSource[selectRowIndex]"
- height="100%"
- :chartsColumns="chartsColumns"
- style="flex: 3"
- />
- <BarSingle
- v-if="globalConfig?.simulatedPassword"
- :xAxisData="[
- { key: 'F1', valueKey: 'windQuantity1' },
- { key: 'F2', valueKey: 'windQuantity2' },
- ]"
- :dataSource="dataSource[selectRowIndex]"
- height="100%"
- :chartsColumns="chartsColumns1"
- style="flex: 2"
- />
- </div>
- </div>
- </a-tab-pane>
- <a-tab-pane key="3" tab="历史数据">
- <div class="tab-item" v-if="activeKey === '3'">
- <HistoryTable
- :columns-type="`${selectData.deviceType}`"
- :device-type="`${devicekide}`"
- designScope="fanlocal-history"
- :scroll="scroll"
- />
- </div>
- </a-tab-pane>
- <a-tab-pane key="4" tab="报警历史">
- <div class="tab-item" v-if="activeKey === '4'">
- <AlarmHistoryTable
- columns-type="alarm"
- :device-type="`${devicekide}`"
- :device-list-api="baseList"
- designScope="alarm-history"
- :scroll="scroll"
- />
- </div>
- </a-tab-pane>
- <a-tab-pane key="5" tab="操作历史">
- <div class="tab-item" v-if="activeKey === '5'">
- <HandlerHistoryTable
- columns-type="operator_history"
- :device-type="`${devicekide}`"
- :device-list-api="baseList"
- designScope="alarm-history"
- :scroll="scroll"
- />
- </div>
- </a-tab-pane>
- </a-tabs>
- <a-button
- v-if="hasPermission('btn:reportDown')"
- type="primary"
- size="small"
- preIcon="ant-design:download-outlined"
- style="position: absolute; right: 15px; top: 10px"
- @click="reportDown"
- >
- 报表导出
- </a-button>
- </dv-border-box8>
- </div>
- </div>
- <div
- ref="playerRef"
- style="z-index: 999; position: absolute; top: 100px; right: 15px; width: 100%; height: 100%; margin: auto; pointer-events: none"
- >
- </div>
- <a-modal v-model:visible="modalIsShow" :title="modalTitle" @ok="handleOk">
- <div class="modal-container">
- <div class="vent-flex-row">
- <ExclamationCircleFilled style="color: #ffb700; font-size: 30px" />
- <div class="warning-text">您是否要进行{{ modalTitle }}操作?</div>
- </div>
- <div class="" v-if="controlType == 'startSmoke'">
- <div class="startSmoke-select">
- <div class="label">主机:</div>
- <a-radio-group v-model:value="mainWindIsShow1" @change="changeMotor" name="localWind1">
- <a-radio value="open">开启</a-radio>
- <a-radio value="stop">停止</a-radio>
- </a-radio-group>
- </div>
- <div class="startSmoke-select">
- <div class="label">备机:</div>
- <a-radio-group v-model:value="mainWindIsShow2" @change="changeMotor" name="localWind2">
- <a-radio value="open">开启</a-radio>
- <a-radio value="stop">停止</a-radio>
- </a-radio-group>
- </div>
- </div>
- <!-- 调频 -->
- <div class="vent-flex-row input-box" v-if="controlType == 'Fan1Frequency'">
- <div class="label">主风机运行频率(Hz):</div>
- <a-input-number size="small" v-model:value="fan1FrequencyVal" :min="20" :max="50" :step="0.1" />
- </div>
- <div class="vent-flex-row input-box" v-if="controlType == 'Fan2Frequency'">
- <div class="label">备风机运行频率(Hz):</div>
- <a-input-number size="small" v-model:value="fan2FrequencyVal" :min="20" :max="50" :step="0.1" />
- </div>
- <div class="vent-flex-row input-box" v-if="controlType == 'FanFrequency'">
- <div class="label">风机运行频率(Hz):</div>
- <a-input-number size="small" v-model:value="fan1FrequencyVal" :min="20" :max="50" :step="0.1" />
- </div>
- <div class="vent-flex-row input-box" v-if="controlType == 'needAir'">
- <div class="label">需风量(单位):</div>
- <a-input-number size="small" v-model:value="frequencyVal" :min="30" :max="50" :step="0.1" />
- </div>
- <div class="vent-flex-row input-box" v-if="controlType == 'disAirAlarm'">
- <div class="label">漏风率(%):</div>
- <a-input-number size="small" v-model:value="frequencyVal" :min="0" :max="50" :step="0.1" />
- </div>
- <div class="vent-flex-row input-box" v-if="controlType == 'diameter'">
- <div class="label">风筒直径(m):</div>
- <a-input-number size="small" v-model:value="frequencyVal" :min="0" :max="50" :step="0.1" />
- </div>
- <div class="vent-flex-row input-box" v-if="controlType == 'len'">
- <div class="label">风筒长度(m):</div>
- <a-input-number size="small" v-model:value="frequencyVal" :min="0" :max="50" :step="0.1" />
- </div>
- <div class="vent-flex-row input-box" v-if="controlType == 'windPowerLimit'">
- <div class="label">风电闭锁限值(m³/min):</div>
- <a-input-number size="small" v-model:value="frequencyVal" :min="0" :max="50" :step="0.1" />
- </div>
- <div class="vent-flex-row input-box" v-if="controlType == 'gasPowerLimit'">
- <div class="label">瓦斯电闭锁限值(m³/min):</div>
- <a-input-number size="small" v-model:value="frequencyVal" :min="0" :max="50" :step="0.1" />
- </div>
- <div v-if="controlType == 'gasAlarm'">
- <div class="vent-flex-row input-box">
- <div class="label">传感器名称:</div>
- <a-select placeholder="传感器" @change="handleChangeSensor" :options="sensorList" v-model:value="modalSensor" />
- </div>
- <div class="vent-flex-row input-box">
- <div class="label">传感器值:</div>
- <a-input-number size="small" v-model:value="frequencyVal" :min="0" :max="50" :step="0.1" />
- </div>
- </div>
- <div v-if="controlType == 'airVolumeAlarm'">
- <div class="vent-flex-row input-box">
- <div class="label">风量上限(m³/min):</div>
- <a-input-number size="small" v-model:value="modalTypeArr.rightBtnArr[3].min" :min="0" :max="50" :step="0.1" />
- </div>
- <div class="vent-flex-row input-box">
- <div class="label">风量下限(m³/min):</div>
- <a-input-number size="small" v-model:value="modalTypeArr.rightBtnArr[3].max" :min="0" :max="50" :step="0.1" />
- </div>
- </div>
- <!-- 启动或停止 -->
- <div class="" v-if="controlType == 'startSmoke'"> </div>
- <div v-if="!globalConfig?.simulatedPassword" class="vent-flex-row input-box">
- <div class="label">操作密码:</div>
- <a-input size="small" type="password" v-model:value="passWord" />
- </div>
- </div>
- </a-modal>
- <DeviceBaseInfo @register="registerModal" :device-type="selectData['deviceType']" />
- <reportInfo @register="registerModal1" :editID="editID" :fileType="fileType" />
- </template>
- <script setup lang="ts">
- import { ExclamationCircleFilled, ArrowRightOutlined } from '@ant-design/icons-vue';
- import { onBeforeMount, ref, watch, onMounted, nextTick, toRaw, reactive, onUnmounted, inject, unref } from 'vue';
- import BarSingle from '../../../../components/chart/BarSingle.vue';
- import GroupMonitorTable from '../comment/GroupMonitorTable.vue';
- import HistoryTable from '../comment/HistoryTable.vue';
- import AlarmHistoryTable from '../comment/AlarmHistoryTable.vue';
- import HandlerHistoryTable from '../comment/HandlerHistoryTable.vue';
- import DeviceBaseInfo from '../comment/components/DeviceBaseInfo.vue';
- import { mountedThree, setModelType, destroy, addCssText, addText, playSmoke } from './fanLocal.three';
- import lodash from 'lodash';
- import { getTableList, list } from '/@/views/vent/monitorManager/fanLocalMonitor/fanLocal.api';
- import { list as baseList } from '../../deviceManager/fanTabel/fan.api';
- import { chartsColumns, chartsColumns1 } from './fanLocal.data';
- import { deviceControlApi } from '/@/api/vent/index';
- import { setDivHeight } from '/@/utils/event';
- import { BorderBox8 as DvBorderBox8 } from '@kjgl77/datav-vue3';
- import { getTableHeaderColumns } from '/@/hooks/web/useWebColumns';
- import { useRouter } from 'vue-router';
- import { useModal } from '/@/components/Modal';
- import type { BasicColumn } from '/@/components/Table/src/types/table';
- import JDictSelectTag from '/@/components/Form/src/jeecg/components/JDictSelectTag.vue';
- import { getPopupContainer } from '/@/utils';
- import { getDictItemsByCode } from '/@/utils/dict';
- import { message } from 'ant-design-vue';
- import { useCamera } from '/@/hooks/system/useCamera';
- import { CaretRightOutlined } from '@ant-design/icons-vue';
- import { DownloadOutlined } from '@ant-design/icons-vue';
- import reportInfo from '../comment/components/reportInfo.vue';
- import { save, reportList } from '../../reportManager/reportManager.api';
- import { usePermission } from '/@/hooks/web/usePermission';
- const { hasPermission } = usePermission();
- const globalConfig = inject('globalConfig');
- const [registerModal, { openModal, closeModal }] = useModal();
- const [registerModal1, { openModal: openModal1, closeModal: closeModal1 }] = useModal();
- const { currentRoute } = useRouter();
- const router = useRouter();
- const modalTypeArr = reactive({
- leftBtnArr: [
- {
- key: 'startSmoke',
- value: '启动风机',
- permission: 'btn:openclose',
- },
- {
- key: 'changeSmoke', // 主备两个点位
- value: '一键倒机',
- permission: 'btn:change',
- },
- {
- key: 'changeFan', // 主备一个点位
- value: '一键倒机',
- permission: 'btn:CtrlFanChange',
- },
- {
- key: 'fan1ToFan2',
- value: '主机倒备机',
- permission: 'btn:ctrlFan1ToFan2',
- },
- {
- key: 'fan2ToFan1',
- value: '备机倒主机',
- permission: 'btn:ctrlFan2ToFan1',
- },
- {
- key: 'Fan1Frequency',
- value: '主机调频',
- permission: 'btn:frequency',
- },
- {
- key: 'Fan2Frequency',
- value: '备机调频',
- permission: 'btn:frequency',
- },
- {
- key: 'FanFrequency',
- value: '风机调频',
- permission: 'btn:frequencyMerge',
- },
- {
- key: 'windPower',
- value: '风电闭锁',
- permission: 'fanLocal:control',
- },
- {
- key: 'gasPower',
- value: '瓦斯电闭锁',
- permission: 'fanLocal:control',
- },
- {
- key: 'needAir',
- value: '需风量',
- permission: 'fanLocal:control',
- },
- ],
- rightBtnArr: [
- {
- key: 'diameter',
- value: '风筒直径',
- permission: 'fanLocal:control',
- },
- {
- key: 'len',
- value: '风筒长度',
- permission: 'fanLocal:control',
- },
- // {
- // key: 'frequency',
- // value: '调频',
- // permission: 'fanLocal:control',
- // },
- {
- key: 'windPowerLimit',
- value: '风电闭锁限值',
- permission: 'fanLocal:control',
- },
- {
- key: 'gasPowerLimit',
- value: '瓦斯电闭锁限值',
- permission: 'fanLocal:control',
- },
- {
- key: 'airVolumeAlarm',
- value: '风量报警',
- permission: 'fanLocal:control',
- min: 0,
- max: 100,
- },
- {
- key: 'disAirAlarm',
- value: '漏风率报警',
- permission: 'fanLocal:control',
- },
- // {
- // key: 'gasAlarm',
- // value: '瓦斯报警',
- // permission: 'fanLocal:control',
- // },
- ],
- });
- const sensorList = ref<any[]>([
- {
- value: '1',
- label: 'T1',
- },
- {
- value: '2',
- label: 'T2',
- },
- {
- value: '3',
- label: 'T3',
- },
- ]);
- const scroll = reactive({
- y: 180,
- });
- const playerRef = ref();
- const MonitorDataTable = ref();
- const modalSensor = ref(null);
- const loading = ref(false);
- const activeKey = ref('1');
- const player1 = ref();
- const modalIsShow = ref<boolean>(false); // 是否显示模态框
- const modalTitle = ref(''); // 模态框标题显示内容,根据设备操作类型决定
- const fan1FrequencyVal = ref(40); //主机频率
- const fan2FrequencyVal = ref(40); //备机频率
- const mainWindIsShow1 = ref('open'); // 主机默认启动leftColumns
- const mainWindIsShow2 = ref('stop'); // 备机默认不启动
- const passWord = ref('');
- // 默认初始是第一行
- const selectRowIndex = ref(-1);
- const dataMonitorRowIndex = ref(0);
- // 默认数据右边监测的是主机
- const warningMonitorRowIndex = ref(0);
- const xAxisDataGas = ref([]);
- // 设备数据
- const controlType = ref('');
- const modalType = ref('');
- // 监测数据
- const initData = {
- deviceID: '',
- deviceType: '',
- strname: '',
- dataDh: '-', //压差
- dataDtestq: '-', //测试风量
- sourcePressure: '-', //气源压力
- dataDequivalarea: '-',
- netStatus: '0', //通信状态
- warnLevel_str: '',
- stationname: '',
- };
- const frequencyVal = ref(0);
- const dataSource = ref([]);
- // 关联设备信息
- const linkDeviceInfo = ref({});
- // 监测数据
- let selectData = reactive(lodash.cloneDeep(initData));
- const rightColumns = ref<BasicColumn[]>([]);
- const leftColumns = ref<BasicColumn[]>([]);
- const devicekide = ref('fanlocal');
- const deviceType = ref(selectData.deviceType);
- const headElHeight = ref(0);
- let btnClick = ref(true); // 判断按钮是否可点
- //报表导出
- let editID = ref<any>('');
- let fileType = ref('');
- const { getCamera, removeCamera } = useCamera();
- watch(deviceType, (type) => {
- rightColumns.value = getTableHeaderColumns(type + '_monitor_right') as [];
- if (rightColumns.value && rightColumns.value.length < 1) {
- rightColumns.value = getTableHeaderColumns(type.split('_')[0] + '_monitor_right') as [];
- }
- leftColumns.value = getTableHeaderColumns(type + '_monitor_left') as [];
- if (leftColumns.value && leftColumns.value.length < 1) {
- leftColumns.value = getTableHeaderColumns(type.split('_')[0] + '_monitor_left') as [];
- }
- });
- const flvURL1 = () => {
- // return `https://sf1-hscdn-tos.pstatp.com/obj/media-fe/xgplayer_doc_video/flv/xgplayer-demo-360p.flv`;
- return '';
- };
- const changeDeviceKind = (e) => {
- devicekide.value = e;
- loading.value = true;
- selectRowIndex.value = -1;
- nextTick(() => {
- // selectRowIndex.value = 0
- selectData = lodash.cloneDeep(initData);
- loading.value = false;
- if (selectData.deviceID) MonitorDataTable.value.setSelectedRowKeys([selectData.deviceID]);
- const headEl = document.querySelector(`.zxm-table-thead`);
- if (headEl) {
- headElHeight.value = headEl.clientHeight;
- }
- });
- };
- const tabChange = (activeKeyVal) => {
- activeKey.value = activeKeyVal;
- if (activeKeyVal == 1) {
- nextTick(() => {
- MonitorDataTable.value.setSelectedRowKeys([selectData.deviceID]);
- });
- }
- };
- const selectDevice = (key, val) => {
- if (key === 'dataMonitorRowIndex') {
- dataMonitorRowIndex.value = val;
- } else {
- warningMonitorRowIndex.value = val;
- }
- };
- //报表导出点击
- async function reportDown() {
- openModal1();
- let res = await save({ reportType: 'fanlocal' });
- console.log(res, 'res-----------');
- let list = await reportList({ id: res.id });
- console.log(list, 'list-----------');
- let index = list.records[0].fileName.indexOf('.');
- fileType.value = list.records[0].fileName.substring(index + 1);
- editID.value = list.records[0].id;
- openModal1();
- }
- //详情
- function goDetail() {
- openModal();
- }
- function goDetailDevice(linkDeviceCode) {
- let linkDeviceId = '';
- if (linkDeviceCode.startsWith('window')) {
- linkDeviceId = linkDeviceInfo.value[linkDeviceCode] ? linkDeviceInfo.value[linkDeviceCode]['id'] : '';
- router.push({ path: '/monitorChannel/monitor-window', query: { id: linkDeviceId } });
- }
- }
- //
- async function getDataSource() {
- if (devicekide.value) {
- const res = await list({ devicetype: devicekide.value, pagetype: 'normal' });
- if (res.msgTxt && res.msgTxt[0] && res.msgTxt[0].datalist && res.msgTxt[0].datalist.length > 0) {
- const dataArr = res.msgTxt[0].datalist || [];
- dataSource.value = [];
- dataArr.forEach((data) => {
- const readData = data.readData;
- data = Object.assign(data, readData);
- if (data['Fan1StartStatus'] && data['Fan1StartStatus'] === '1.0') data['Fan1StartStatus'] = '1';
- if (data['Fan2StartStatus'] && data['Fan2StartStatus'] === '1.0') data['Fan2StartStatus'] = '1';
- if (data['Fan1StartStatus'] && data['Fan1StartStatus'] === '0.0') data['Fan1StartStatus'] = '0';
- if (data['Fan2StartStatus'] && data['Fan2StartStatus'] === '0.0') data['Fan2StartStatus'] = '0';
- dataSource.value.push(data);
- });
- if (MonitorDataTable.value && selectRowIndex.value == -1) {
- MonitorDataTable.value.setSelectedRowKeys([dataSource.value[0]['deviceID']]);
- }
- const data: any = toRaw(dataSource.value[selectRowIndex.value]); //maxarea
- return data;
- } else {
- return (dataSource.value = []);
- }
- } else {
- dataSource.value = [];
- }
- }
- // https获取监测数据
- let timer: null | NodeJS.Timeout = null;
- async function getMonitor(flag?) {
- if (Object.prototype.toString.call(timer) === '[object Null]') {
- timer = await setTimeout(
- async () => {
- // debugger;
- await getDataSource();
- if (dataSource.value.length > 0 && selectRowIndex.value == -1 && MonitorDataTable.value) {
- // 初始打开页面
- if (currentRoute.value && currentRoute.value['query'] && currentRoute.value['query']['id']) {
- MonitorDataTable.value.setSelectedRowKeys(currentRoute.value['query']['id']);
- } else {
- MonitorDataTable.value.setSelectedRowKeys(dataSource.value[0]['deviceID']);
- }
- }
- for (const key in selectData) {
- selectData[key] = '';
- }
- if (dataSource.value.length > 0 && dataSource.value[selectRowIndex.value]) {
- deviceType.value = dataSource.value[selectRowIndex.value]['deviceType'];
- if (dataSource.value.length > 0 && dataSource.value[selectRowIndex.value]) {
- Object.assign(selectData, dataSource.value[selectRowIndex.value]);
- }
- playSmoke(selectData);
- addText(selectData);
- }
- if (timer) {
- timer = null;
- }
- getMonitor();
- },
- flag ? 0 : 1000
- );
- }
- }
- // 获取设备基本信息列表
- const deviceBaseList = ref([]);
- function getDeviceBaseList() {
- getTableList({ pageSize: 1000 }).then((res) => {
- deviceBaseList.value = res.records;
- });
- }
- // 切换检测数据
- async function getSelectRow(id) {
- console.log('选中的设备id------->', id);
- if (!id || id == selectData['deviceID']) return;
- // loading.value = true;
- const selectIndex: any = dataSource.value.findIndex((baseData: any) => baseData.deviceID == id);
- selectRowIndex.value = selectIndex;
- nextTick(() => {
- const headEl = document.querySelector(`.zxm-table-thead`);
- if (headEl) {
- headElHeight.value = headEl.clientHeight;
- }
- const data = dataSource.value[selectIndex];
- if (data) {
- if (selectData['linkInfo']) linkDeviceInfo.value = JSON.parse(selectData['linkInfo']);
- if (linkDeviceInfo.value['window_fWindowM3']) {
- modalType.value = 'fc';
- }
- if (data['Fan1StartStatus'] == '1') {
- mainWindIsShow1.value = 'open';
- mainWindIsShow2.value = 'stop';
- selectDevice('warningMonitorRowIndex', 0);
- selectDevice('dataMonitorRowIndex', 0);
- } else if (data['Fan2StartStatus'] == '1') {
- mainWindIsShow2.value = 'open';
- mainWindIsShow1.value = 'stop';
- selectDevice('warningMonitorRowIndex', 1);
- selectDevice('dataMonitorRowIndex', 1);
- }
- const xAxisDataGasArr = [];
- for (const key in selectData) {
- if (key.startsWith('gas') && key.length < 5) {
- xAxisDataGasArr.push({ key: 'T' + key.substring(3), valueKey: key });
- }
- }
- xAxisDataGas.value = xAxisDataGasArr;
- }
- setModelType(modalType.value);
- });
- await getCamera(id, playerRef.value);
- return;
- }
- // 打开并设置modal的标题
- function showModal(obj) {
- if (!btnClick.value) return;
- controlType.value = obj.key;
- modalTitle.value = obj.value;
- passWord.value = '';
- modalIsShow.value = true;
- }
- function changeMotor(e) {
- const target = e.target;
- if (target.name === 'localWind1') {
- if (target.value === 'open') {
- mainWindIsShow2.value = 'stop';
- }
- } else if (target.name === 'localWind2') {
- if (target.value === 'open') {
- mainWindIsShow1.value = 'stop';
- }
- }
- }
- function handleOk(e: MouseEvent) {
- const handType = controlType.value;
- const data = {
- deviceid: selectData.deviceID,
- devicetype: selectData.deviceType,
- paramcode: '',
- password: passWord.value || globalConfig?.simulatedPassword,
- value: null,
- };
- if (handType === 'startSmoke') {
- // 启动风机
- if (mainWindIsShow1.value === 'open' && mainWindIsShow2.value === 'stop') {
- // playSmoke(handType, 'top', frequency, 'open');
- data.paramcode = 'CtrlFan1Start';
- btnClick.value = false;
- deviceControlApi(data)
- .then(() => {
- if (globalConfig.History_Type == 'remote') {
- message.success('指令已下发至生产管控平台成功!');
- } else {
- message.success('指令已下发成功!');
- }
- modalTitle.value = '';
- modalIsShow.value = true;
- btnClick.value = true;
- })
- .catch((err) => {
- modalIsShow.value = true;
- });
- } else if (mainWindIsShow2.value === 'open' && mainWindIsShow1.value === 'stop') {
- // playSmoke(handType, 'down', frequency, 'open');
- data.paramcode = 'CtrlFan2Start';
- btnClick.value = false;
- deviceControlApi(data)
- .then(() => {
- if (globalConfig.History_Type == 'remote') {
- message.success('指令已下发至生产管控平台成功!');
- } else {
- message.success('指令已下发成功!');
- }
- btnClick.value = true;
- modalTitle.value = '';
- modalIsShow.value = false;
- })
- .catch((err) => {
- btnClick.value = true;
- });
- } else if (mainWindIsShow1.value === 'stop' && mainWindIsShow2.value === 'stop') {
- // playSmoke(handType, '', frequency, 'stop');
- }
- } else if (handType === 'Fan1Frequency' || handType === 'Fan2Frequency' || handType === 'FanFrequency') {
- // 调频
- if (handType === 'Fan1Frequency') {
- data.paramcode = 'Fan1FreqHz';
- data.value = fan1FrequencyVal.value;
- } else if (handType === 'Fan2Frequency') {
- data.paramcode = 'Fan2FreqHz';
- data.value = fan2FrequencyVal.value;
- } else if (handType === 'FanFrequency') {
- data.paramcode = 'FreqHz_merge';
- data.value = fan1FrequencyVal.value;
- }
- btnClick.value = false;
- deviceControlApi(data)
- .then((res) => {
- if (globalConfig.History_Type == 'remote') {
- message.success('指令已下发至生产管控平台成功!');
- } else {
- message.success('指令已下发成功!');
- }
- modalTitle.value = '';
- modalIsShow.value = false;
- btnClick.value = true;
- })
- .catch((err) => {
- btnClick.value = true;
- });
- } else if (handType === 'changeSmoke') {
- if (selectData['Fan1StartStatus'] == '0' || !selectData['Fan1StartStatus']) {
- data.paramcode = 'CtrlFan1Start';
- btnClick.value = false;
- deviceControlApi(data)
- .then((res) => {
- if (globalConfig.History_Type == 'remote') {
- message.success('指令已下发至生产管控平台成功!');
- } else {
- message.success('指令已下发成功!');
- }
- modalTitle.value = '';
- modalIsShow.value = false;
- mainWindIsShow1.value = 'stop';
- mainWindIsShow2.value = 'open';
- btnClick.value = true;
- })
- .catch((err) => {
- btnClick.value = true;
- });
- } else if (selectData['Fan2StartStatus'] == '0' || !selectData['Fan2StartStatus']) {
- data.paramcode = 'CtrlFan2Start';
- btnClick.value = false;
- deviceControlApi(data)
- .then((res) => {
- if (globalConfig.History_Type == 'remote') {
- message.success('指令已下发至生产管控平台成功!');
- } else {
- message.success('指令已下发成功!');
- }
- modalTitle.value = '';
- modalIsShow.value = false;
- mainWindIsShow1.value = 'open';
- mainWindIsShow2.value = 'stop';
- btnClick.value = true;
- })
- .catch((err) => {
- btnClick.value = true;
- });
- }
- // // 一键倒机
- // if (mainWindIsShow1.value === 'open' && mainWindIsShow2.value === 'stop') {
- // // playSmoke('startSmoke', 'down', frequency, 'open');
- // data.paramcode = 'CtrlFan2Start';
- // deviceControlApi(data).then((res) => {
- // console.log('设备操作结果', res);
- // modalTitle.value = '';
- // modalIsShow.value = false;
- // }).catch((err) => {
- // });
- // mainWindIsShow1.value = 'stop';
- // mainWindIsShow2.value = 'open';
- // } else if (mainWindIsShow2.value === 'open' && mainWindIsShow1.value === 'stop') {
- // // playSmoke('startSmoke', 'top', frequency, 'open');
- // data.paramcode = 'CtrlFan1Start';
- // deviceControlApi(data).then((res) => {
- // console.log('设备操作结果', res);
- // modalTitle.value = '';
- // modalIsShow.value = false;
- // }).catch((err) => {
- // });
- // mainWindIsShow1.value = 'open';
- // mainWindIsShow2.value = 'stop';
- // } else if (mainWindIsShow1.value === 'stop' && mainWindIsShow2.value === 'stop') {
- // // playSmoke(handType, '', frequency, 'stop');
- // }
- } else if (handType === 'changeFan') {
- data.paramcode = 'CtrlFanStart';
- btnClick.value = false;
- deviceControlApi(data)
- .then((res) => {
- if (globalConfig.History_Type == 'remote') {
- message.success('指令已下发至生产管控平台成功!');
- } else {
- message.success('指令已下发成功!');
- }
- modalTitle.value = '';
- modalIsShow.value = false;
- btnClick.value = true;
- })
- .catch((err) => {
- btnClick.value = true;
- });
- } else if (handType === 'fan1ToFan2') {
- data.paramcode = 'CtrlFan1ToFan2';
- deviceControlApi(data).then(() => {
- if (globalConfig.History_Type == 'remote') {
- message.success('指令已下发至生产管控平台成功!');
- } else {
- message.success('指令已下发成功!');
- }
- modalTitle.value = '';
- modalIsShow.value = false;
- btnClick.value = true;
- });
- } else if (handType === 'fan2ToFan1') {
- data.paramcode = 'CtrlFan2ToFan1';
- deviceControlApi(data).then(() => {
- if (globalConfig.History_Type == 'remote') {
- message.success('指令已下发至生产管控平台成功!');
- } else {
- message.success('指令已下发成功!');
- }
- modalTitle.value = '';
- modalIsShow.value = false;
- btnClick.value = true;
- });
- }
- }
- function handleChangeSensor(value: string) {
- console.log(value);
- }
- function addPlayVideo() {
- if (player1.value && player1.value.play) {
- if (!player1.value.paused()) player1.value.play();
- document.body.removeEventListener('mousedown', addPlayVideo);
- }
- }
- function deviceEdit(e: Event, type: string, record) {
- e.stopPropagation();
- openModal(true, {
- type,
- deviceId: record['deviceID'],
- });
- }
- onBeforeMount(() => {
- getDeviceBaseList();
- });
- onMounted(() => {
- const { query } = unref(currentRoute);
- if (query['deviceType']) devicekide.value = query['deviceType'] as string;
- mountedThree(player1.value).then(async () => {
- await getMonitor(true);
- nextTick(async () => {
- addCssText();
- });
- });
- document.body.addEventListener('mousedown', addPlayVideo, false);
- });
- onUnmounted(() => {
- destroy();
- removeCamera();
- if (timer) {
- clearTimeout(timer);
- timer = undefined;
- }
- });
- </script>
- <style scoped lang="less">
- @import '/@/design/vent/modal.less';
- :deep(.@{ventSpace}-tabs-tabpane-active) {
- height: 100%;
- }
- .scene-box {
- .title-text {
- height: 32px;
- }
- .bottom-tabs-box {
- height: 280px;
- .tabs-box {
- position: relative !important;
- }
- }
- }
- .data-show-box {
- position: relative;
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- padding: 10px 5px;
- color: #ffffff;
- z-index: 999;
- top: 60px;
- .data-item {
- pointer-events: auto;
- .item-header {
- width: 374px;
- background: url('/@/assets/images/vent/lr-top-bg.png') no-repeat;
- background-size: auto;
- height: 32px;
- text-align: center;
- line-height: 34px;
- font-size: 15px;
- font-weight: 600;
- color: #fafafa;
- }
- .item-container {
- width: 346px;
- margin: 0 14px;
- padding: 10px;
- background: #00377c33;
- backdrop-filter: blur(2px);
- .tab {
- width: 323px;
- background: url('/@/assets/images/vent/lr-tab-bg.png') no-repeat;
- display: flex;
- .tab-item {
- flex: 1;
- text-align: center;
- padding-top: 2px;
- color: #ffffff99;
- cursor: pointer;
- }
- .tab-item-active-l {
- color: #00ffea;
- background-image: url('/@/assets/images/vent/l-tab-active.png');
- background-repeat: no-repeat;
- background-size: auto;
- background-position: 6px 3px;
- }
- .tab-item-active-r {
- color: #00ffea;
- background-image: url('/@/assets/images/vent/r-tab-active.png');
- background-repeat: no-repeat;
- background-position: 0 3px;
- }
- }
- .container-group {
- width: 314px;
- margin: 0px 4px;
- padding: 10px 0;
- min-height: 432px;
- background: linear-gradient(to right, #00deff22, #2081ff05);
- max-height: 440px;
- overflow-y: auto;
- }
- .container-item {
- width: 100%;
- height: 60px;
- display: flex;
- padding: 10px 0 0 20px;
- margin-bottom: 5px;
- position: relative;
- background: url('/@/assets/images/vent/plane-bottom.png') no-repeat;
- background-size: auto;
- background-position: bottom;
- &::before {
- content: '';
- display: block;
- width: 100%;
- height: 5px;
- position: absolute;
- top: 62px;
- left: 0;
- background-color: #73f4ff66;
- backdrop-filter: blur(5px);
- }
- .item-icon {
- width: 54px;
- height: 45px;
- background: url('/@/assets/images/vent/plane-icon-bg.png') no-repeat;
- background-size: cover;
- .icon-style {
- font-size: 18px;
- margin: 10px 0 0 20px;
- color: #ffc800;
- }
- }
- .item-name {
- width: 180px;
- line-height: 60px;
- }
- .item-value {
- position: relative;
- height: 26px;
- line-height: 24px;
- margin: 15px 0;
- text-align: center;
- width: 80px;
- border: 1px solid #00f5fe;
- border-radius: 13px;
- background: linear-gradient(to right, #00f5fe44, #0090ff44);
- &::before {
- width: 6px;
- height: 6px;
- content: '';
- position: absolute;
- left: -3px;
- top: 8px;
- background: #ffa500;
- border-radius: 3px;
- }
- }
- }
- .warning-header {
- display: flex;
- font-size: 14px;
- .header-item {
- flex: 1;
- display: flex;
- flex-direction: column;
- margin: 5px 10px;
- justify-content: center;
- align-items: center;
- .header-title {
- color: #39e7fe;
- }
- .header-value {
- width: 133px;
- height: 56px;
- font-weight: 600;
- font-family: 'douyuFont';
- font-size: 16px;
- color: #ffa500;
- display: flex;
- justify-content: center;
- align-items: center;
- background: url('/@/assets/images/vent/count-header-bg.png') no-repeat;
- }
- }
- }
- .warning-group {
- padding: 0 10px;
- position: relative;
- // &::before {
- // content: '';
- // display: block;
- // width: 1px;
- // height: 100%;
- // position: absolute;
- // left: 12px;
- // background-color: #00f5fe;
- // }
- .warning-item {
- display: flex;
- flex-direction: row;
- justify-content: space-between;
- align-items: center;
- height: 38px;
- .item-name {
- .icon {
- width: 6px;
- height: 6px;
- display: inline-block;
- background-color: #1cd5ff;
- border-radius: 3px;
- position: relative;
- margin-right: 5px;
- &::before {
- content: '';
- width: 10px;
- height: 10px;
- display: block;
- border: 1px solid #34edff99;
- border-radius: 5px;
- position: absolute;
- top: -2px;
- left: -2px;
- }
- }
- }
- }
- }
- }
- }
- }
- .input-box {
- display: flex;
- align-items: center;
- .input-title {
- color: #73e8fe;
- width: auto;
- }
- margin-right: 10px;
- }
- .label {
- max-width: 220px;
- }
- #fanLocalSelectDom {
- :deep(.@{ventSpace}-select-dropdown) {
- left: 0px !important;
- top: 35px !important;
- }
- }
- .@{ventSpace}-input {
- width: 150px;
- }
- :deep(#LivePlayerBox) {
- display: flex;
- flex-direction: row;
- justify-content: flex-end;
- padding-right: 380px;
- pointer-events: none;
- .video-parent {
- height: 208px;
- pointer-events: auto !important;
- }
- }
- </style>
|