1
0

index.vue 63 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832
  1. <template>
  2. <div class="scene-box">
  3. <!-- <div class="top-header">智能通风管理系统</div> -->
  4. <div class="select-node" :class="{ 'node-select-show': !treeShow, 'node-select-hide': treeShow }"
  5. @click="showTree('treeShow', true)">
  6. <SvgIcon class="is-expansion-icon put-away-icon" size="38" name="expansion" />
  7. <span class="title">{{ treeNodeTitle }}</span>
  8. </div>
  9. <div class="device-select" :class="{ 'device-select-show': treeShow, 'device-select-hide': !treeShow }">
  10. <SvgIcon class="is-expansion-icon expansion-icon" size="28" name="put-away"
  11. @click="showTree('treeShow', false)" />
  12. <div class="device-select-box">
  13. <a-tree :show-line="true" :tree-data="treeData" v-model:selectedKeys="selectedKeys" :autoExpandParent="true"
  14. v-model:expandedKeys="expandedKeys" @select="onSelect">
  15. </a-tree>
  16. </div>
  17. </div>
  18. <div class="location-icon"
  19. :class="{ 'location-btn-show': !locationSettingShow, 'location-btn-hide': locationSettingShow }"
  20. @click="showTree('location', true)">
  21. <SvgIcon size="18" name="put-away" />
  22. <span class="location-text">定位图标显示</span>
  23. </div>
  24. <div class="location-select"
  25. :class="{ 'location-select-show': locationSettingShow, 'location-select-hide': !locationSettingShow }">
  26. <div class="location-select-box">
  27. <div class="location-top-title" @click="showTree('location', false)">
  28. <SvgIcon class="is-expansion-icon location-expansion-icon" size="28" name="expansion" />
  29. <div class="title">定位图标显示</div>
  30. </div>
  31. <div class="location-container">
  32. <template v-for="location in locationList" :key="location.deviceType">
  33. <div class="location-item">
  34. <div class="item-title">{{ location.title }}&nbsp;:</div>
  35. <div>
  36. <a-radio-group v-model:value="location.Visible" :name="location.deviceType">
  37. <a-radio :value="1">是</a-radio>
  38. <a-radio :value="0">否</a-radio>
  39. </a-radio-group>
  40. </div>
  41. </div>
  42. </template>
  43. <div class="location-bottom-btn">
  44. <span @click="setLocation">提交</span>
  45. </div>
  46. </div>
  47. </div>
  48. </div>
  49. <div class="tabs-box bottom-tabs-box" :class="{ 'table-hide': !tableShow, 'table-show': tableShow }"
  50. style="height: 290px" @mousedown="setDivHeight($event, 230, scroll, 0)" id="monitorBox">
  51. <div :style="`padding: 5px; height: ${scroll.y + 100}px`">
  52. <div class="to-small">
  53. <div class="to-home" @click="toHome"></div>
  54. <FullscreenOutlined v-if="!tableShow" class="table-show-icon" @click="toHide" />
  55. </div>
  56. <div class="device-button-group" v-if="deviceList.length > 0">
  57. <!-- 关联设备 -->
  58. <div class="device-button" :class="{ 'device-active': deviceActive == device.deviceType }"
  59. v-for="(device, index) in deviceList" :key="index" @click="monitorChange(index)">{{ device.deviceName }}
  60. </div>
  61. <!-- 场景详情进入 -->
  62. <div v-if="haveSysDetailArr.find((item) => deviceType.startsWith(item))" class="enter-detail"
  63. @click.stop="goDetail()">
  64. <send-outlined />
  65. {{ treeNodeTitle }}详情
  66. </div>
  67. </div>
  68. <div v-if="deviceType == 'gaspatrol'">
  69. <div class="device-button-group">
  70. <div class="enter-detail" @click="exportXls()">
  71. <send-outlined />
  72. 导出
  73. </div>
  74. </div>
  75. </div>
  76. <div class="table-hide-icon" @click="toHide">
  77. <FullscreenExitOutlined style="font-size: 18px" />
  78. </div>
  79. <!-- 是人员定位表单代码,由于放在tab中,表格对已知刷新,导致表单数据也在刷寻,造成输入一半的中文时会清空输入框的内容,导致的输入不上数据 -->
  80. <div v-if="deviceType.startsWith('location') && activeKey == '1'" class="location-form"
  81. style="position: absolute; z-index: 9999; top: 50px">
  82. <div class="location-form-item">
  83. <span class="location-form-label">人员名称:</span>
  84. <Input style="width: 200px" v-model:value="locationForm.strname" />
  85. </div>
  86. <div class="location-form-item">
  87. <span class="location-form-label">所属部门:</span>
  88. <MTreeSelect style="width: 200px" v-model:value="locationForm.department" placeholder="请选择所属部门"
  89. api="/monitor/getDepartmentInfo" :virtual="false" :isGetPopupContainer="false" />
  90. </div>
  91. <div class="location-form-item">
  92. <span class="location-form-label">分站名称:</span>
  93. <Input style="width: 200px" v-model:value="locationForm.stationname" />
  94. </div>
  95. </div>
  96. <a-tabs class="tabs-box" v-model:activeKey="activeKey" @change="tabChange" id="tabsBox">
  97. <a-tab-pane key="1" tab="实时监测">
  98. <template
  99. v-if="(deviceType.startsWith('fanlocal') || deviceType.startsWith('fanmain')) && activeKey == '1'">
  100. <GroupMonitorTable ref="MonitorDataTable" :dataSource="dataSource" :columnsType="`${deviceType}_monitor`"
  101. :scroll="scroll" :isAction="true" :isShowSelect="false">
  102. <template #action="{ record }">
  103. <TableAction :actions="haveDetailArr.find((item) => deviceType.startsWith(item))
  104. ? [
  105. {
  106. label: '详情',
  107. onClick: goDetail.bind(null, record),
  108. },
  109. {
  110. label: '定位',
  111. onClick: goLocation.bind(null, record),
  112. },
  113. ]
  114. : [
  115. {
  116. label: '定位',
  117. onClick: goLocation.bind(null, record),
  118. },
  119. ]
  120. " />
  121. </template>
  122. </GroupMonitorTable>
  123. </template>
  124. <template v-else-if="deviceType == 'majorpath' && activeKey == '1'">
  125. <a-table :columns="majorColumns" :data-source="dataSource" bordered :scroll="{ y: scroll.y - 30 }"
  126. :pagination="false"></a-table>
  127. </template>
  128. <template v-else-if="deviceType.startsWith('safetymonitor') && activeKey == '1'">
  129. <MonitorTable ref="monitorTable" :columnsType="`${deviceType}_monitor`" :deviceType="deviceType"
  130. :dataSource="dataSource" design-scope="device_monitor" :isShowActionColumn="true" :isShowSelect="false"
  131. title="设备监测" :form-config="formConfig" :scroll="{ y: scroll.y - 110 }">
  132. <template #action="{ record }">
  133. <TableAction :actions="haveDetailArr.find((item) => deviceType.startsWith(item))
  134. ? [
  135. {
  136. label: '详情',
  137. onClick: goDetail.bind(null, record),
  138. },
  139. {
  140. label: '定位',
  141. onClick: goLocation.bind(null, record),
  142. },
  143. ]
  144. : [
  145. {
  146. label: '定位',
  147. onClick: goLocation.bind(null, record),
  148. },
  149. ]
  150. " />
  151. </template>
  152. <template #filterCell="{ column, record }">
  153. <div v-if="!record.devicename && column.dataIndex === 'devicename'">-</div>
  154. <div v-if="!record.V && column.dataIndex === 'V'">-</div>
  155. <div v-if="!record.PointUnit && column.dataIndex === 'PointUnit'">-</div>
  156. <div v-if="!record.highRange && column.dataIndex === 'highRange'">-</div>
  157. <div v-if="!record.lowRange && column.dataIndex === 'lowRange'">-</div>
  158. <div v-if="!record.dataTypeName && column.dataIndex === 'dataTypeName'">-</div>
  159. <a-tag v-if="column.dataIndex === 'netStatus'" :color="record.netStatus == '0' ? '#f00' : 'green'">{{
  160. record.netStatus == '0' ? '断开' : '连接'
  161. }}</a-tag>
  162. </template>
  163. </MonitorTable>
  164. </template>
  165. <template v-else-if="deviceType.startsWith('location') && activeKey == '1'">
  166. <MonitorTable ref="monitorTable" :columnsType="`${deviceType}_monitor`" :deviceType="deviceType"
  167. :dataSource="dataSource" design-scope="device_monitor" :isShowActionColumn="true" :isShowSelect="false"
  168. title="设备监测" :scroll="{ y: scroll.y - 110 }" style="margin-top: 60px">
  169. <template #action="{ record }">
  170. <TableAction :actions="[
  171. {
  172. label: '定位',
  173. onClick: goLocation.bind(null, record),
  174. },
  175. ]" />
  176. </template>
  177. </MonitorTable>
  178. </template>
  179. <template v-else-if="deviceType.startsWith('vehicle') && activeKey == '1'">
  180. <MonitorTable ref="monitorTable" :columnsType="`${deviceType}_monitor`" :deviceType="deviceType"
  181. :dataSource="dataSource" design-scope="device_monitor" :isShowActionColumn="true" :isShowSelect="false"
  182. title="设备监测" :form-config="vehicleFormConfig" :scroll="{ y: scroll.y - 110 }">
  183. <template #action="{ record }">
  184. <TableAction :actions="[
  185. {
  186. label: '定位',
  187. onClick: goLocation.bind(null, record),
  188. },
  189. ]" />
  190. </template>
  191. </MonitorTable>
  192. </template>
  193. <!-- 瓦斯巡检 -->
  194. <template v-else-if="deviceType.startsWith('gaspatrol') && activeKey == '1'">
  195. <gaspatrolTable :addressData="addressData" :personData="personData" :instypeData="instypeData"
  196. :classData="classData" :tableData="gaspatrolData" @addressInput="addressInput" @userInput="userInput"
  197. @insTypeChange="insTypeChange" @classChange="classChange"></gaspatrolTable>
  198. </template>
  199. <template v-else>
  200. <!-- 工作面echarts图标 -->
  201. <BarAndLine v-if="activeKey == '1' && deviceType == 'surface_history'" class="echarts-line"
  202. xAxisPropType="time" :dataSource="surfaceEchartsData" height="300px"
  203. :chartsColumns="surfaceChartsColumns" :option="echatsOption" />
  204. <MonitorTable v-else-if="activeKey == '1'" ref="monitorTable" :columnsType="`${deviceType}_monitor`"
  205. :dataSource="dataSource" design-scope="device_monitor" :isShowActionColumn="true" :isShowSelect="false"
  206. title="设备监测" :scroll="{ y: scroll.y - 30 }">
  207. <template #action="{ record }">
  208. <TableAction :actions="haveDetailArr.find((item) => deviceType.startsWith(item))
  209. ? [
  210. {
  211. label: '详情',
  212. onClick: goDetail.bind(null, record),
  213. },
  214. {
  215. label: '定位',
  216. onClick: goLocation.bind(null, record),
  217. },
  218. ]
  219. : [
  220. {
  221. label: '定位',
  222. onClick: goLocation.bind(null, record),
  223. },
  224. ]
  225. " />
  226. </template>
  227. <template #filterCell="{ column, record }">
  228. <template v-if="deviceType.startsWith('gate') || deviceType.startsWith('door')">
  229. <a-tag
  230. v-if="column.dataIndex === 'frontGateOpen' && record.frontGateOpen == '0' && record.frontGateClose == '0'"
  231. color="red">正在运行</a-tag>
  232. <a-tag
  233. v-else-if="column.dataIndex === 'frontGateOpen' && record.frontGateOpen == '0' && record.frontGateClose == 1"
  234. color="default">关闭</a-tag>
  235. <a-tag
  236. v-else-if="column.dataIndex === 'frontGateOpen' && record.frontGateOpen == '1' && record.frontGateClose == '0'"
  237. color="#46C66F">打开</a-tag>
  238. <a-tag
  239. v-else-if="column.dataIndex === 'frontGateOpen' && record.frontGateOpen == '1' && record.frontGateClose == '1'"
  240. color="#FF0000">点位异常</a-tag>
  241. <a-tag
  242. v-if="column.dataIndex === 'rearGateOpen' && record.rearGateOpen == '0' && record.rearGateClose == '0'"
  243. color="red">正在运行</a-tag>
  244. <a-tag
  245. v-else-if="column.dataIndex === 'rearGateOpen' && record.rearGateOpen == '0' && record.rearGateClose == '1'"
  246. color="default">关闭</a-tag>
  247. <a-tag
  248. v-else-if="column.dataIndex === 'rearGateOpen' && record.rearGateOpen == '1' && record.rearGateClose == '0'"
  249. color="#46C66F">打开</a-tag>
  250. <a-tag
  251. v-else-if="column.dataIndex === 'rearGateOpen' && record.rearGateOpen == '1' && record.rearGateClose == '1'"
  252. color="#FF0000">点位异常</a-tag>
  253. <a-tag
  254. v-if="column.dataIndex === 'midGateOpen' && record.midGateOpen == '0' && record.midGateClose == '0'"
  255. color="red">正在运行</a-tag>
  256. <a-tag
  257. v-else-if="column.dataIndex === 'midGateOpen' && record.midGateOpen == '0' && record.midGateClose == 1"
  258. color="default">关闭</a-tag>
  259. <a-tag
  260. v-else-if="column.dataIndex === 'midGateOpen' && record.midGateOpen == '1' && record.midGateClose == '0'"
  261. color="#46C66F">打开</a-tag>
  262. <a-tag
  263. v-else-if="column.dataIndex === 'midGateOpen' && record.midGateOpen == '1' && record.midGateClose == '1'"
  264. color="#FF0000">点位异常</a-tag>
  265. <template v-if="column.dataIndex === 'doorUse'">
  266. <span v-if="record.doorUse == 1" color="default">行车风门</span>
  267. <span v-else-if="record.doorUse == 2">行人风门</span>
  268. <span v-else-if="record.doorUse == 3">短路风门</span>
  269. </template>
  270. </template>
  271. <template v-else-if="deviceType.startsWith('windrect')">
  272. <a-tag v-if="column.dataIndex === 'sign'"
  273. :color="record.sign == 0 ? '#95CF65' : record.sign == 1 ? '#4590EA' : '#9876AA'">
  274. {{ record.sign == 0 ? '高位' : record.sign == 1 ? '中位' : '低位' }}</a-tag>
  275. <template v-if="record && column && column.dataIndex === 'isRun' && record.isRun">
  276. <a-tag v-if="record.isRun == -2 || record.isRun == -1"
  277. :color="record.isRun == -2 ? '#95CF65' : '#ED5700'">{{
  278. record.isRun == -2 ? '空闲' : '等待'
  279. }}</a-tag>
  280. <a-tag v-else-if="record.isRun == 100" color="#4693FF">完成</a-tag>
  281. <Progress v-else :percent="Number(record.isRun)" size="small" status="active" />
  282. </template>
  283. </template>
  284. <template v-else-if="deviceType.startsWith('safetymonitor')">
  285. <div v-if="!record.devicename && column.dataIndex === 'devicename'">-</div>
  286. <div v-if="!record.V && column.dataIndex === 'V'">-</div>
  287. <div v-if="!record.PointUnit && column.dataIndex === 'PointUnit'">-</div>
  288. <div v-if="!record.highRange && column.dataIndex === 'highRange'">-</div>
  289. <div v-if="!record.lowRange && column.dataIndex === 'lowRange'">-</div>
  290. <div v-if="!record.dataTypeName && column.dataIndex === 'dataTypeName'">-</div>
  291. </template>
  292. <template v-else-if="deviceType.startsWith('atomizing')">
  293. <a-tag v-if="column.dataIndex === 'stateConn' && record.stateConn == '1'" color="green">连接</a-tag>
  294. <a-tag v-if="column.dataIndex === 'stateConn' && record.stateConn == '0'" color="red">断开</a-tag>
  295. </template>
  296. <template v-else-if="deviceType.startsWith('gaspatrol')">
  297. <a-tag v-if="column.dataIndex === 'deviceConnect_str' && record.deviceConnect_str.endsWith('正常')"
  298. color="green">{{
  299. record.deviceConnect_str
  300. }}</a-tag>
  301. <a-tag v-if="column.dataIndex === 'deviceConnect_str' && record.deviceConnect_str.endsWith('断开')"
  302. color="red">{{
  303. record.deviceConnect_str
  304. }}</a-tag>
  305. </template>
  306. <a-tag v-if="column.dataIndex === 'warnFlag'"
  307. :color="record.warnFlag == 0 ? 'green' : record.warnFlag == 1 ? '#FF5812' : 'gray'">
  308. {{ record.warnFlag == 0 ? '正常' : record.warnFlag == 1 ? '报警' : record.warnFlag == 2 ? '断开' : '未监测'
  309. }}</a-tag>
  310. <template v-else-if="column.dataIndex === 'warnLevel'">
  311. <a-tag v-if="record.warnLevel == '101'" color="green">低风险</a-tag>
  312. <a-tag v-else-if="record.warnLevel == '102'" color="#FF5812">一般风险</a-tag>
  313. <a-tag v-else-if="record.warnLevel == '103'" color="#FF5812">较大风险</a-tag>
  314. <a-tag v-else-if="record.warnLevel == '104'" color="#FF5812">重大风险</a-tag>
  315. <a-tag v-else-if="record.warnLevel == '201'" color="#FF0000">报警</a-tag>
  316. <a-tag v-else-if="record.warnLevel == '10000'" color="#FF5812">数据超限</a-tag>
  317. <a-tag v-else-if="record.warnLevel == '1001'" color="default">网络中断</a-tag>
  318. <a-tag v-else color="green">正常</a-tag>
  319. </template>
  320. <a-tag v-if="column.dataIndex === 'netStatus'" :color="record.netStatus == '0' ? '#f00' : 'green'">{{
  321. record.netStatus == '0' ? '断开' : '连接'
  322. }}</a-tag>
  323. </template>
  324. </MonitorTable>
  325. </template>
  326. </a-tab-pane>
  327. <a-tab-pane key="2" tab="历史数据" v-if="!noHistoryArr().find((item) => deviceType.startsWith(item))">
  328. <div class="tab-item" v-if="activeKey == '2'">
  329. <template v-if="deviceType.startsWith('firemon_normal')">
  330. <HistoryBall :dataSource="dataSource"></HistoryBall>
  331. </template>
  332. <template v-else>
  333. <HistoryTable ref="historyTable" :sysId="systemID" :columns-type="`${deviceType}`"
  334. :device-type="deviceType" designScope="device-history" :scroll="scroll" />
  335. </template>
  336. </div>
  337. </a-tab-pane>
  338. <a-tab-pane key="3" tab="报警历史" v-if="!noWarningArr.find((item) => deviceType.startsWith(item))">
  339. <div class="tab-item">
  340. <AlarmHistoryTable ref="alarmHistoryTable" v-if="activeKey == '3'" :sysId="systemID" columns-type="alarm"
  341. :device-type="deviceType"
  342. :device-list-api="getDeviceList.bind(null, { devicekind: deviceType, sysId: systemID, pageSize: 10000 })"
  343. :scroll="scroll" designScope="alarm-history" />
  344. </div>
  345. </a-tab-pane>
  346. <a-tab-pane key="4" tab="操作历史" v-if="haveHandlerArr.find((item) => deviceType.startsWith(item))">
  347. <div class="tab-item">
  348. <HandlerHistoryTable ref="handlerHistoryTable" v-if="activeKey == '4'" :sysId="systemID"
  349. columns-type="operator_history" :device-type="deviceType"
  350. :device-list-api="getDeviceList.bind(null, { devicekind: deviceType, sysId: systemID })"
  351. :scroll="scroll" designScope="operator-history" />
  352. </div>
  353. </a-tab-pane>
  354. </a-tabs>
  355. </div>
  356. </div>
  357. <mainPath v-if="deviceType == 'majorpath'" :dataSource="majorPathEchartsData"
  358. style="width: 300px; height: 300px; position: absolute; left: 250px; top: 40px" />
  359. <component v-if="modalVisible" :is="currentModal" v-model:visible="modalVisible" :dataSource="dataSource"
  360. :activeID="activeID" />
  361. </div>
  362. </template>
  363. <script setup lang="ts">
  364. import { ref, onMounted, onUnmounted, ComponentOptions, shallowRef, reactive, defineProps, watch } from 'vue';
  365. import { SendOutlined, FullscreenExitOutlined, FullscreenOutlined } from '@ant-design/icons-vue';
  366. import { list, getDeviceList, getDeviceTypeList, devPosition, getDepartmentInfo, getExportUrl, queryNowGasInsInfo, } from './device.api';
  367. import AlarmHistoryTable from '../../../comment/AlarmHistoryTable.vue';
  368. import HistoryTable from '../../../comment/HistoryTable.vue';
  369. import HandlerHistoryTable from '../../../comment/HandlerHistoryTable.vue';
  370. import MonitorTable from '../../../comment/MonitorTable.vue';
  371. import GroupMonitorTable from '../../../comment/GroupMonitorTable.vue';
  372. import gaspatrolTable from '../../../comment/gaspatrolTable.vue'
  373. import HistoryBall from './modal/history-ball.vue'
  374. import { TreeProps, message, Progress, Input, Select } from 'ant-design-vue';
  375. import { TableAction } from '/@/components/Table';
  376. import { SvgIcon } from '/@/components/Icon';
  377. import { getActions } from '/@/qiankun/state';
  378. import { useRouter } from 'vue-router';
  379. import { setDivHeight } from '/@/utils/event';
  380. import {
  381. majorColumns,
  382. haveSysDetailArr,
  383. haveDetailArr,
  384. haveHandlerArr,
  385. noWarningArr,
  386. surfaceChartsColumns,
  387. noHistoryArr,
  388. getMonitorComponent,
  389. vehicleFormConfig,
  390. } from './device.data';
  391. import mainPath from './modal/mainPath.vue';
  392. import { formConfig } from '../../../safetyMonitor/safety.data';
  393. import { getDictItemsByCode } from '/@/utils/dict';
  394. import BarAndLine from '/@/components/chart/BarAndLine.vue';
  395. import MTreeSelect from '/@/components/Form/src/jeecg/components/MTreeSelect.vue';
  396. // import ApiSelect from '/@/components/Form/src/components/ApiSelect.vue';
  397. import { nextTick } from 'vue';
  398. import { useMethods } from '/@/hooks/system/useMethods';
  399. import { useGo } from '/@/hooks/web/usePage';
  400. import { useGlobSetting } from '/@/hooks/setting';
  401. //瓦斯巡检查询参数
  402. const addressData = ref('')//巡检地点
  403. const personData = ref('')//巡检员
  404. const instypeData = ref('')//巡检类型
  405. const classData = ref('')//巡检班次
  406. const gaspatrolData = ref<any[]>([])
  407. const glob = useGlobSetting();
  408. // import { BorderBox8 as DvBorderBox8 } from '@kjgl77/datav-vue3';
  409. const { FiberModal, BundleModal, DustModal, BallvalveModal, AtomizingModal, GaspatrolModal, WisdomBallModal } = getMonitorComponent();
  410. type DeviceType = { deviceType: string; deviceName: string; datalist: any[] };
  411. const props = defineProps({
  412. pageData: {
  413. type: Object,
  414. default: () => { },
  415. },
  416. });
  417. const { handleExportXls } = useMethods();
  418. const go = useGo();
  419. const echatsOption = {
  420. grid: {
  421. top: '35',
  422. left: '30',
  423. right: '45',
  424. bottom: '25',
  425. containLabel: true,
  426. },
  427. toolbox: {
  428. feature: {},
  429. },
  430. };
  431. const router = useRouter();
  432. const actions = getActions();
  433. // actions.setGlobalState({ pageObj: { pageType: 'home' } });
  434. const locationForm = reactive({
  435. strname: '',
  436. department: '',
  437. stationname: '',
  438. });
  439. const safetymonitorForm = reactive({
  440. dataTypeName: '',
  441. strinstallpos: '',
  442. });
  443. const monitorTable = ref();
  444. const historyTable = ref();
  445. const alarmHistoryTable = ref();
  446. const handlerHistoryTable = ref();
  447. // const routerParam = ref('home') // 默认进来时首页
  448. const isRefresh = ref(true);
  449. // 模态框
  450. const currentModal = shallowRef<Nullable<ComponentOptions>>(null); //模态框
  451. const modalVisible = ref<Boolean>(false); // 模态框是否可见
  452. // const drawerHeight = ref(240) // 监测框最小高度
  453. const treeShow = ref(true); //是否显示树形菜单
  454. const tableShow = ref(true); //是否显示树形菜单
  455. const locationSettingShow = ref(false); //是否显示树形菜单
  456. const treeNodeTitle = ref(''); // 选中的树形标题
  457. const locationList = ref([]); //巷道定位图标显示列表
  458. const deviceList = ref<DeviceType[]>([]); //关联设备列表
  459. const deviceActive = ref('');
  460. const activeKey = ref('1'); // tab key
  461. const dataSource = shallowRef([]); // 实时监测数据
  462. const majorPathEchartsData = ref({}); // 关键路线echarts数据
  463. const surfaceEchartsData = ref<any[]>(); // 工作面历史记录,echarts数据
  464. const activeID = ref(''); // 打开详情modal时监测的设备id
  465. const deviceType = ref(''); // 监测设备类型
  466. const systemType = ref('');
  467. const systemID = ref(''); // 系统监测时,系统id
  468. const selectedKeys = ref<string[]>([]);
  469. const expandedKeys = ref<string[]>([]);
  470. const scroll = reactive({
  471. y: 180,
  472. });
  473. const treeData = ref<TreeProps['treeData']>([]);
  474. let departmentInfo: Null | Object = null;
  475. let startMonitorTimer = 0;
  476. //树形菜单选择事件
  477. const onSelect: TreeProps['onSelect'] = (keys, e) => {
  478. deviceType.value = '';
  479. systemID.value = '';
  480. deviceList.value = [];
  481. const title = e.node.title; // 在
  482. if (e.node.parent && e.node.parent.node.type.toString().startsWith('sys')) {
  483. systemType.value = e.node.parent.node.type;
  484. if (deviceType.value != e.node.parent.node.type) deviceType.value = e.node.parent.node.type;
  485. systemID.value = e.node.type;
  486. // 传递工作面id信息,用于定位
  487. go(`/micro-vent-3dModal/dashboard/analysis?type=tunMonitor&deviceType=${deviceType.value}&deviceid=${systemID.value}`);
  488. } else {
  489. systemType.value = e.node.type;
  490. if (deviceType.value != e.node.type) deviceType.value = e.node.type;
  491. go(`/micro-vent-3dModal/dashboard/analysis?type=tunMonitor&deviceType=${deviceType.value}&deviceid=`);
  492. }
  493. // clearTimeout(timer);
  494. // timer = undefined;
  495. // if (startMonitorTimer) {
  496. // clearTimeout(startMonitorTimer);
  497. // }
  498. dataSource.value = [];
  499. if (!startMonitorTimer) {
  500. startMonitorTimer = setTimeout(() => {
  501. expandedKeys.value = keys;
  502. selectedKeys.value = keys;
  503. treeNodeTitle.value = e.node.title;
  504. if (e.node.children?.length < 1 && timer) {
  505. getMonitor(true);
  506. }
  507. }, 1000);
  508. }
  509. // activeKey.value = '1';
  510. };
  511. function tabChange(activeKeyVal) {
  512. activeKey.value = activeKeyVal;
  513. }
  514. function showTree(flag, value) {
  515. if (flag == 'treeShow') treeShow.value = value;
  516. if (flag == 'location') locationSettingShow.value = value;
  517. }
  518. async function getDeviceType(sysType?) {
  519. if (treeData.value?.length > 0) return;
  520. const result = await getDeviceTypeList({});
  521. if (result.length > 0) {
  522. debugger;
  523. const dataSource = <TreeProps['treeData']>[];
  524. let key = '0';
  525. const getData = (resultList, dataSourceList, keyVal) => {
  526. resultList.forEach((item, index) => {
  527. if (item.deviceType != 'sys' && item.children && item.children.length > 0) {
  528. const children = getData(item.children, [], `${keyVal}-${index}`);
  529. // 判断关键阻力路线
  530. if (item.itemValue.startsWith(sysType) && children[0]) {
  531. systemID.value = item.children[0]['itemValue'];
  532. }
  533. dataSourceList.push({
  534. children: children,
  535. title: item.itemText,
  536. key: `${keyVal}-${index}`,
  537. type: item.itemValue,
  538. parentKey: `${keyVal}`,
  539. });
  540. } else {
  541. dataSourceList.push({
  542. children: [],
  543. title: item.itemText,
  544. key: `${keyVal}-${index}`,
  545. type: item.itemValue,
  546. parentKey: `${keyVal}`,
  547. });
  548. }
  549. });
  550. return dataSourceList;
  551. };
  552. treeData.value = getData(result, dataSource, key);
  553. }
  554. }
  555. // https获取监测数据
  556. let timer: null | NodeJS.Timeout = undefined;
  557. function getMonitor(flag?) {
  558. if (deviceType.value) {
  559. if (timer) timer = null;
  560. if (Object.prototype.toString.call(timer) === '[object Null]') {
  561. timer = setTimeout(
  562. async () => {
  563. if (!deviceType.value.startsWith('gaspatrol')) {
  564. await getDataSource();
  565. } else {
  566. await queryNowGasInsInfoList();
  567. }
  568. if (timer) {
  569. getMonitor();
  570. }
  571. },
  572. flag ? 0 : 1000
  573. );
  574. }
  575. }
  576. }
  577. async function getDataSource() {
  578. if (deviceType.value && deviceType.value.startsWith('sys') && systemID.value) {
  579. const res = await list({ devicetype: 'sys', systemID: systemID.value });
  580. const result = res.msgTxt;
  581. const deviceArr = <DeviceType[]>[];
  582. result.forEach((item) => {
  583. const data = item['datalist'].filter((data: any) => {
  584. const readData = data.readData;
  585. return Object.assign(data, readData);
  586. });
  587. if (item.type != 'sys') {
  588. if (item.type === 'majorpath') {
  589. deviceArr.unshift({ deviceType: item.type, deviceName: item['typeName'], datalist: item['datalist'][0]['paths'] });
  590. majorPathEchartsData.value = item['datalist'][0];
  591. } else if (item.type.startsWith('surface_history')) {
  592. surfaceEchartsData.value = item['datalist'][0];
  593. deviceArr.unshift({
  594. deviceType: item.type,
  595. deviceName: item['typeName'] ? item['typeName'] : item['datalist'][0]['typeName'],
  596. datalist: data,
  597. });
  598. } else {
  599. deviceArr.unshift({
  600. deviceType: item.type,
  601. deviceName: item['typeName'] ? item['typeName'] : item['datalist'][0]['typeName'],
  602. datalist: data,
  603. });
  604. }
  605. }
  606. });
  607. deviceList.value = deviceArr;
  608. if (deviceArr.length > 0) {
  609. // if (deviceArr[1]) {
  610. // deviceActive.value = deviceArr[1].deviceType
  611. // monitorChange(1)
  612. // } else {
  613. // deviceActive.value = deviceArr[0].deviceType
  614. // monitorChange(0)
  615. // }
  616. deviceActive.value = deviceArr[0].deviceType;
  617. monitorChange(0);
  618. }
  619. } else {
  620. let res = null;
  621. if (systemID.value) {
  622. res = await list({ devicetype: 'sys', types: deviceType.value, systemID: systemID.value });
  623. if (res && res.msgTxt) {
  624. const result = res.msgTxt;
  625. result.forEach((item) => {
  626. const data = item['datalist'].filter((data: any) => {
  627. const readData = data.readData;
  628. return Object.assign(data, readData);
  629. });
  630. if (item.type != 'sys') {
  631. if (item.type.startsWith('majorpath') && item.type == deviceType.value) {
  632. dataSource.value = item['datalist'][0]['paths'];
  633. majorPathEchartsData.value = item['datalist'][0];
  634. return;
  635. } else if (item.type == deviceType.value) {
  636. if (item.type == 'surface_history') {
  637. // 工作面图标数据
  638. surfaceEchartsData.value = item['datalist'][0];
  639. } else {
  640. dataSource.value = data;
  641. console.log('关联设备数据--------------->', data);
  642. }
  643. return;
  644. }
  645. }
  646. });
  647. }
  648. } else {
  649. let resultData, searchForm;
  650. if (monitorTable.value) {
  651. const formData = monitorTable.value.getForm();
  652. searchForm = formData.getFieldsValue();
  653. }
  654. if (monitorTable.value) {
  655. if (deviceType.value.startsWith('safetymonitor')) {
  656. resultData = await list({ devicetype: deviceType.value, pagetype: 'normal', filterParams: { ...searchForm } });
  657. } else if (deviceType.value.startsWith('location')) {
  658. if (!departmentInfo) {
  659. departmentInfo = await getDepartmentInfo({});
  660. }
  661. let department = null;
  662. if (departmentInfo && locationForm && locationForm['department']) {
  663. for (const key in departmentInfo) {
  664. const item = departmentInfo[key];
  665. if (item['id'] === locationForm['department']) {
  666. department = item;
  667. break;
  668. }
  669. }
  670. }
  671. resultData = await list({
  672. devicetype: deviceType.value,
  673. pagetype: 'normal',
  674. filterParams: {
  675. strinstallpos: locationForm['stationname'] ? locationForm['stationname'] : '',
  676. userName: locationForm['strname'] ? locationForm['strname'] : '',
  677. userJson: department && department['name'] ? department['name'] : '',
  678. },
  679. });
  680. } else if (deviceType.value.startsWith('vehicle')) {
  681. resultData = await list({
  682. devicetype: deviceType.value,
  683. pagetype: 'normal',
  684. filterParams: {
  685. strinstallpos: locationForm['stationname'] ? locationForm['stationname'] : '',
  686. vehicleName: locationForm['strname'] ? locationForm['strname'] : '',
  687. },
  688. });
  689. } else {
  690. resultData = await list({ devicetype: deviceType.value, pagetype: 'normal' });
  691. }
  692. } else {
  693. // 非安全监控
  694. resultData = await list({ devicetype: deviceType.value, pagetype: 'normal' });
  695. }
  696. if (resultData && resultData.msgTxt) {
  697. const result = resultData.msgTxt[0];
  698. if (result) {
  699. const data = result['datalist'].filter((data: any) => {
  700. const readData = data.readData;
  701. return Object.assign(data, readData);
  702. });
  703. if (deviceType.value.startsWith('safetymonitor')) {
  704. const resultData = <any[]>[];
  705. // 如果是安全监控的数据时需要过滤常见设备数据,根据设定的常用安全监控字典去匹配
  706. const dictCodes = getDictItemsByCode('safetynormal');
  707. if (searchForm && !searchForm['dataTypeName'] && dictCodes && dictCodes.length) {
  708. for (let i = 0; i < dictCodes.length; i++) {
  709. const dict = dictCodes[i];
  710. data.forEach((item) => {
  711. if (dict['value'] == item['dataTypeName']) {
  712. resultData.push(item);
  713. }
  714. });
  715. }
  716. dataSource.value = resultData;
  717. } else {
  718. dataSource.value = data;
  719. }
  720. } else {
  721. let tableData: any[] = [];
  722. let noNetData: any[] = [];
  723. data.filter((el) => {
  724. if (el.netStatus == 1) {
  725. tableData.push(el);
  726. } else {
  727. noNetData.push(el);
  728. }
  729. });
  730. dataSource.value = [...tableData, ...noNetData];
  731. }
  732. } else {
  733. dataSource.value = [];
  734. }
  735. } else {
  736. dataSource.value = [];
  737. }
  738. }
  739. }
  740. }
  741. function goLocation(record) {
  742. if (record['deviceType'] == 'person_bd' || record['deviceType'] == 'car_bd') {
  743. actions.setGlobalState({ locationId: record.devNum, locationObj: null, pageObj: null, type: record['deviceType'].split('_')[0] });
  744. } else {
  745. if (deviceType.value.startsWith('location')) {
  746. actions.setGlobalState({ locationId: record.deviceID, locationObj: null, pageObj: null, type: 'person' });
  747. } else if (deviceType.value.startsWith('vehicle')) {
  748. actions.setGlobalState({ locationId: record.deviceID, locationObj: null, pageObj: null, type: 'car' });
  749. } else {
  750. actions.setGlobalState({ locationId: record.deviceID, locationObj: null, pageObj: null });
  751. }
  752. }
  753. }
  754. //查询当前各班瓦斯巡检信息
  755. async function queryNowGasInsInfoList() {
  756. let res = await queryNowGasInsInfo({ address: addressData.value, userName: personData.value, insType: instypeData.value, class: classData.value })
  757. console.log(res, '查询当前各班瓦斯巡检信息')
  758. if (res.length) {
  759. gaspatrolData.value = res
  760. } else {
  761. gaspatrolData.value = []
  762. }
  763. }
  764. //巡检地点输入
  765. let addressInput = (param) => {
  766. addressData.value = param
  767. }
  768. //巡检员输入
  769. let userInput = (param) => {
  770. personData.value = param
  771. }
  772. //巡检类型选项切换
  773. let insTypeChange = (param) => {
  774. instypeData.value = param
  775. }
  776. //巡检班次选项切换
  777. let classChange = (param) => {
  778. classData.value = param
  779. }
  780. function goDetail(record?) {
  781. debugger;
  782. if (record) {
  783. activeID.value = record.deviceID;
  784. if (deviceType.value.startsWith('fiber')) {
  785. currentModal.value = FiberModal;
  786. modalVisible.value = true;
  787. } else if (deviceType.value.startsWith('dusting')) {
  788. currentModal.value = DustModal;
  789. modalVisible.value = true;
  790. } else if (deviceType.value.startsWith('bundletube')) {
  791. currentModal.value = BundleModal;
  792. modalVisible.value = true;
  793. } else if (deviceType.value.startsWith('firemon_normal')) {
  794. // currentModal.value = BundleModal;
  795. currentModal.value = WisdomBallModal;
  796. modalVisible.value = true;
  797. } else if (deviceType.value.startsWith('ballvalve')) {
  798. currentModal.value = BallvalveModal;
  799. modalVisible.value = true;
  800. } else if (deviceType.value.startsWith('atomizing')) {
  801. currentModal.value = AtomizingModal;
  802. modalVisible.value = true;
  803. } else if (deviceType.value.startsWith('gaspatrol')) {
  804. currentModal.value = GaspatrolModal;
  805. modalVisible.value = true;
  806. } else if (deviceType.value.indexOf('gate') != -1) {
  807. const newPage = router.resolve({ path: '/monitorChannel/monitor-gate', query: { id: activeID.value, deviceType: deviceType.value } });
  808. window.open(newPage.href, '_blank');
  809. } else if (deviceType.value.indexOf('window') != -1) {
  810. const newPage = router.resolve({ path: '/monitorChannel/monitor-window', query: { id: activeID.value, deviceType: deviceType.value } });
  811. window.open(newPage.href, '_blank');
  812. } else if (deviceType.value.indexOf('windrect') != -1) {
  813. const newPage = router.resolve({ path: '/monitorChannel/monitor-windrect', query: { id: activeID.value, deviceType: deviceType.value } });
  814. window.open(newPage.href, '_blank');
  815. } else if (deviceType.value.indexOf('fanmain') != -1) {
  816. const newPage = router.resolve({ path: '/monitorChannel/monitor-fanmain', query: { id: activeID.value, deviceType: deviceType.value } });
  817. window.open(newPage.href, '_blank');
  818. } else if (deviceType.value.indexOf('fanlocal') != -1 && glob.sysOrgCode !== 'ymdnymdn') {
  819. const newPage = router.resolve({ path: '/monitorChannel/monitor-fanlocal', query: { id: activeID.value, deviceType: deviceType.value } });
  820. window.open(newPage.href, '_blank');
  821. } else if (deviceType.value.indexOf('fanlocal') != -1 && glob.sysOrgCode == 'ymdnymdn') {
  822. const newPage = router.resolve({ path: '/monitorChannel/monitor-fanlocal1', query: { id: activeID.value, deviceType: record.deviceType } });
  823. window.open(newPage.href, '_blank');
  824. } else if (deviceType.value.indexOf('pulping') != -1) {
  825. const newPage = router.resolve({ path: '/grout-home', query: { id: activeID.value } });
  826. window.open(newPage.href, '_blank');
  827. } else if (deviceType.value.indexOf('pressurefan') != -1) {
  828. const newPage = router.resolve({ path: '/nitrogen/home', query: { id: activeID.value } });
  829. window.open(newPage.href, '_blank');
  830. } else if (deviceType.value.indexOf('chamber') != -1) {
  831. const newPage = router.resolve({ path: '/chamber-home', query: { id: activeID.value } });
  832. window.open(newPage.href, '_blank');
  833. } else if (deviceType.value.indexOf('safetymonitor') != -1) {
  834. const newPage = router.resolve({ path: '/monitorChannel/device-monitor/safetymonitor', query: { id: activeID.value } });
  835. window.open(newPage.href, '_blank');
  836. } else if (deviceType.value.indexOf('pump') != -1) {
  837. const newPage = router.resolve({ path: '/monitorChannel/gasPump-home', query: { id: activeID.value } });
  838. window.open(newPage.href, '_blank');
  839. } else if (systemType.value.indexOf('nitrogen') != -1) {
  840. const newPage = router.resolve({ path: '/nitrogen-home', query: { id: systemID.value } });
  841. window.open(newPage.href, '_blank');
  842. } else if (deviceType.value.indexOf('forcFan') != -1) {
  843. const newPage = router.resolve({ path: '/forcFan/home', query: { id: activeID.value } });
  844. window.open(newPage.href, '_blank');
  845. } else if (deviceType.value.indexOf('pulping') != -1) {
  846. const newPage = router.resolve({ path: '/grout-home', query: { id: activeID.value } });
  847. window.open(newPage.href, '_blank');
  848. } else {
  849. message.info('待开发。。。');
  850. }
  851. } else {
  852. if (systemType.value.indexOf('sys_dongshi') != -1) {
  853. const newPage = router.resolve({ path: '/chamber-home', query: { id: systemID.value } });
  854. window.open(newPage.href, '_blank');
  855. } else if (systemType.value.indexOf('sys_obfurage') != -1) {
  856. const newPage = router.resolve({ path: '/monitorChannel/obfurage-home', query: { id: systemID.value } });
  857. window.open(newPage.href, '_blank');
  858. } else if (systemType.value.indexOf('sys_surface_caimei') != -1) {
  859. const newPage = router.resolve({ path: '/monitorChannel/wokerFace-home', query: { id: systemID.value } });
  860. window.open(newPage.href, '_blank');
  861. } else if (systemType.value.indexOf('sys_surface_juejin') != -1) {
  862. const newPage = router.resolve({ path: '/monitorChannel/tunFace-home', query: { id: systemID.value } });
  863. window.open(newPage.href, '_blank');
  864. } else if (systemType.value.indexOf('sys_maintunnel_leather') != -1) {
  865. const newPage = router.resolve({ path: '/monitorChannel/beltTun-home', query: { id: systemID.value } });
  866. window.open(newPage.href, '_blank');
  867. } else if (systemType.value.indexOf('sys_surface_junya') != -1) {
  868. const newPage = router.resolve({ path: '/monitorChannel/balancePress-home', query: { id: systemID.value } });
  869. window.open(newPage.href, '_blank');
  870. } else if (systemType.value.indexOf('sys_nitrogen') != -1) {
  871. const newPage = router.resolve({ path: '/nitrogen-home', query: { id: systemID.value } });
  872. window.open(newPage.href, '_blank');
  873. } else if (deviceType.value.indexOf('forcFan') != -1) {
  874. const newPage = router.resolve({ path: '/forcFan/home', query: { id: activeID.value } });
  875. window.open(newPage.href, '_blank');
  876. } else if (deviceType.value.indexOf('pulping') != -1) {
  877. const newPage = router.resolve({ path: '/grout-home', query: { id: systemID.value } });
  878. window.open(newPage.href, '_blank');
  879. } else {
  880. message.info('待开发。。。');
  881. }
  882. }
  883. }
  884. function exportXls() {
  885. handleExportXls('瓦斯巡检记录', getExportUrl, { devicetype: deviceType.value });
  886. }
  887. function toHome() {
  888. deviceList.value = [];
  889. if (timer) clearTimeout(timer);
  890. timer = undefined;
  891. deviceType.value = '';
  892. go(glob.homePath);
  893. }
  894. function toHide() {
  895. tableShow.value = !tableShow.value;
  896. document.getElementById('monitorBox').addEventListener('animationend', () => {
  897. if (!tableShow.value) {
  898. document.getElementById('monitorBox').style.height = '0px';
  899. } else {
  900. document.getElementById('monitorBox').style.height = '290px';
  901. }
  902. });
  903. }
  904. async function findTreeDataValue(obj) {
  905. const findDeviceType = (data: any[], obj, flag = true) => {
  906. return data.find((item: any) => {
  907. if (item.children.length > 0) {
  908. findDeviceType(item.children, obj);
  909. }
  910. debugger;
  911. if (obj.deviceType && obj.deviceType.startsWith('sys_')) {
  912. debugger;
  913. if (item.type == obj.deviceid) {
  914. deviceType.value = 'sys';
  915. systemID.value = obj.deviceid;
  916. selectedKeys.value = [item.key];
  917. expandedKeys.value = [item.key];
  918. treeNodeTitle.value = item.title;
  919. }
  920. } else {
  921. if (!flag) {
  922. if (obj.deviceType && item.type.startsWith(obj.deviceType)) {
  923. deviceType.value = item.type;
  924. selectedKeys.value = [item.key];
  925. expandedKeys.value = [item.key];
  926. treeNodeTitle.value = item.title;
  927. return true;
  928. }
  929. return false;
  930. } else {
  931. if (obj.deviceType && item.type == obj.deviceType) {
  932. deviceType.value = item.type;
  933. selectedKeys.value = [item.key];
  934. expandedKeys.value = [item.key];
  935. treeNodeTitle.value = item.title;
  936. return true;
  937. }
  938. return false;
  939. }
  940. }
  941. return false;
  942. });
  943. };
  944. const flag = findDeviceType(treeData.value, obj);
  945. if (!flag) {
  946. findDeviceType(treeData.value, obj, false);
  947. }
  948. // 无类型时
  949. if (!treeNodeTitle.value && treeData.value && treeData.value[0] && treeData.value[0]['children']) {
  950. const defaultData = treeData.value[0]['children'][0];
  951. if (deviceType.value !== defaultData.type) deviceType.value = defaultData.type;
  952. selectedKeys.value = [defaultData.key as string];
  953. expandedKeys.value = [defaultData.key as string];
  954. treeNodeTitle.value = defaultData.title;
  955. }
  956. if (timer === undefined) {
  957. timer = null;
  958. await getDataSource();
  959. getMonitor(true);
  960. }
  961. }
  962. function monitorChange(index) {
  963. dataSource.value = [];
  964. deviceActive.value = deviceList.value[index].deviceType;
  965. if (deviceType.value != deviceActive.value) deviceType.value = deviceActive.value;
  966. if (activeKey.value == '1' && monitorTable.value) {
  967. monitorTable.value.setLoading(true);
  968. dataSource.value = deviceList.value[index].datalist;
  969. }
  970. if (activeKey.value == '2' && historyTable.value) {
  971. historyTable.value.setLoading(true);
  972. }
  973. if (activeKey.value == '3' && alarmHistoryTable.value) {
  974. alarmHistoryTable.value.setLoading(true);
  975. }
  976. if (activeKey.value == '4' && handlerHistoryTable.value) {
  977. handlerHistoryTable.value.setLoading(true);
  978. }
  979. }
  980. /**
  981. * 设置巷道设备定位图标的显示与隐藏
  982. */
  983. function setLocation() {
  984. let locationStr = '';
  985. locationList.value.forEach((item: any) => {
  986. if (item.Visible) {
  987. locationStr = locationStr ? locationStr + ',' + item.value : item.value;
  988. }
  989. });
  990. actions.setGlobalState({ locationId: null, locationObj: null, pageObj: null, locationPlane: locationStr });
  991. setTimeout(() => {
  992. message.success('设置成功');
  993. }, 600);
  994. }
  995. // function clearMonitor() {
  996. // clearTimeout(timer);
  997. // timer = undefined;
  998. // if (startMonitorTimer) {
  999. // clearTimeout(startMonitorTimer);
  1000. // }
  1001. // dataSource.value = [];
  1002. // startMonitorTimer = setTimeout(() => {
  1003. // expandedKeys.value = keys;
  1004. // selectedKeys.value = keys;
  1005. // treeNodeTitle.value = e.node.title;
  1006. // activeKey.value = '1';
  1007. // timer = null;
  1008. // if (e.node.children?.length < 1) {
  1009. // getMonitor(true);
  1010. // }
  1011. // }, 1000);
  1012. // }show
  1013. watch(
  1014. () => props.pageData,
  1015. async (pageObj) => {
  1016. isRefresh.value = false;
  1017. if (!treeData.value || treeData.value?.length < 1) {
  1018. await getDeviceType();
  1019. }
  1020. nextTick(() => {
  1021. isRefresh.value = true;
  1022. debugger;
  1023. // if (pageObj && pageObj.pageType && pageObj.pageType.startsWith('sys_')) {
  1024. // findTreeDataValue({ deviceid: systemID.value });
  1025. // } else {
  1026. // findTreeDataValue({ deviceType: pageObj.pageType });
  1027. // }
  1028. findTreeDataValue(pageObj);
  1029. });
  1030. },
  1031. { immediate: true }
  1032. );
  1033. onMounted(async () => {
  1034. const pageObj = props.pageData;
  1035. if (!pageObj) return;
  1036. if (pageObj && pageObj.pageType) {
  1037. if (pageObj.pageType.startsWith('sys_')) {
  1038. await getDeviceType(pageObj.pageType);
  1039. findTreeDataValue({ deviceType: pageObj.pageType, deviceid: pageObj.deviceid });
  1040. } else {
  1041. await getDeviceType();
  1042. findTreeDataValue({ deviceType: pageObj.pageType });
  1043. }
  1044. } else {
  1045. await getDeviceType();
  1046. findTreeDataValue({ deviceid: pageObj.deviceid });
  1047. }
  1048. // 定位
  1049. const posShowData = pageObj.locationPlane;
  1050. if (posShowData) {
  1051. locationList.value = posShowData;
  1052. } else {
  1053. locationList.value = await devPosition({});
  1054. }
  1055. // safetyOption.value = await safetyDeviceList(null, { devicetype: 'safetymonitor', code: 'dataTypeName' })
  1056. });
  1057. onUnmounted(() => {
  1058. if (timer) {
  1059. clearTimeout(timer);
  1060. }
  1061. timer = undefined;
  1062. });
  1063. </script>
  1064. <style lang="less" scoped>
  1065. @import '/@/design/theme.less';
  1066. @import '/@/design/vent/modal.less';
  1067. @ventSpace: zxm;
  1068. @{theme-deepblue} {
  1069. .scene-box {
  1070. // --image-modal-top: url('/@/assets/images/themify/deepblue/vent/home/modal-top.png');
  1071. // --image-tree-icon-bg: url('/@/assets/images/themify/deepblue/vent/home/tree-icon-bg.png');
  1072. // --image-tree-icon-hover-bg: url('/@/assets/images/themify/deepblue/vent/home/tree-icon-hover-bg.png');
  1073. // --image-tree-bg: url('/@/assets/images/themify/deepblue/vent/home/tree-bg.png');
  1074. // --image-tree-expansion-bg: url('/@/assets/images/themify/deepblue/vent/home/tree-expansion-bg.png');
  1075. // --image-tree-expansion-hover-bg: url('/@/assets/images/themify/deepblue/vent/home/tree-expansion-hover-bg.png');
  1076. // --image-location-bg: url('/@/assets/images/themify/deepblue/vent/home/location-bg.png');
  1077. // --image-location-hover-bg: url('/@/assets/images/themify/deepblue/vent/home/location-hover-bg.png');
  1078. // --image-tree-bg: url('/@/assets/images/themify/deepblue/vent/home/tree-bg.png');
  1079. // --image-turn-location-top-bg: url('/@/assets/images/themify/deepblue/vent/home/turn-location-top-bg.png');
  1080. // --image-tree-icon-cover-bg: url('/@/assets/images/themify/deepblue/vent/home/tree-icon-cover-bg.png');
  1081. // --image-tree-icon-cover-hover-bg: url('/@/assets/images/themify/deepblue/vent/home/tree-icon-cover-hover-bg.png');
  1082. // --image-tohome: url('/@/assets/images/themify/deepblue/vent/home/tohome.png');
  1083. // --tree-node-select: #0963c1;
  1084. // --tree-node-hover: #0f376ccc;
  1085. // --location-bottom-bg: #21324855;
  1086. // --location-bottom-border: #aed1ff4d;
  1087. }
  1088. }
  1089. .scene-box {
  1090. --image-modal-top: url('/@/assets/images/vent/home/modal-top.png');
  1091. --image-tree-icon-bg: url('/@/assets/images/vent/home/tree-icon-bg.png');
  1092. --image-tree-icon-hover-bg: url('/@/assets/images/vent/home/tree-icon-hover-bg.png');
  1093. --image-tree-bg: url('/@/assets/images/vent/home/tree-bg.png');
  1094. --image-tree-expansion-bg: url('/@/assets/images/vent/home/tree-expansion-bg.png');
  1095. --image-tree-expansion-hover-bg: url('/@/assets/images/vent/home/tree-expansion-hover-bg.png');
  1096. --image-location-bg: url('/@/assets/images/vent/home/location-bg.png');
  1097. --image-location-hover-bg: url('/@/assets/images/vent/home/location-hover-bg.png');
  1098. --image-turn-location-top-bg: url('/@/assets/images/vent/home/turn-location-top-bg.png');
  1099. --image-tree-icon-cover-bg: url('/@/assets/images/vent/home/tree-icon-cover-bg.png');
  1100. --image-tree-icon-cover-hover-bg: url('/@/assets/images/vent/home/tree-icon-cover-hover-bg.png');
  1101. --image-tohome: url('/@/assets/images/vent/home/tohome.png');
  1102. --tree-node-select: #00b1c8;
  1103. --tree-node-hover: #00b1c855;
  1104. --location-bottom-bg: #00709955;
  1105. --location-bottom-border: #aef3ff4d;
  1106. }
  1107. .top-header {
  1108. position: fixed;
  1109. width: 100%;
  1110. height: 56px;
  1111. background: var(--image-modal-top);
  1112. text-align: center;
  1113. line-height: 56px;
  1114. font-size: 28px;
  1115. color: #ffffffdd;
  1116. font-weight: 600;
  1117. z-index: 1;
  1118. letter-spacing: 2px;
  1119. font-size: 30px;
  1120. }
  1121. .select-node {
  1122. position: fixed;
  1123. top: 100px;
  1124. left: 10px;
  1125. color: var(--vent-font-color);
  1126. display: flex;
  1127. justify-content: center;
  1128. font-size: 22px;
  1129. .title {
  1130. margin-left: 10px;
  1131. }
  1132. }
  1133. .expansion-icon {
  1134. background: var(--image-tree-icon-bg) no-repeat;
  1135. background-size: contain;
  1136. position: absolute;
  1137. left: 190px;
  1138. top: 25px;
  1139. &:hover {
  1140. background: var(--image-tree-icon-hover-bg) no-repeat;
  1141. background-size: contain;
  1142. }
  1143. }
  1144. .device-select {
  1145. width: 250px;
  1146. height: 500px;
  1147. background: var(--image-tree-bg) no-repeat;
  1148. position: fixed;
  1149. top: 100px;
  1150. left: 10px;
  1151. background-size: contain;
  1152. pointer-events: auto;
  1153. padding: 20px 10px 30px 10px;
  1154. }
  1155. .is-expansion-icon {
  1156. padding: 5px;
  1157. pointer-events: auto;
  1158. z-index: 999;
  1159. }
  1160. .device-select-show {
  1161. left: 10px;
  1162. animation-name: treeShow;
  1163. /* 持续时间 */
  1164. animation-duration: 1s;
  1165. transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0.5s;
  1166. }
  1167. .device-select-hide {
  1168. left: -250px;
  1169. animation-name: treeHide;
  1170. /* 持续时间 */
  1171. animation-duration: 1s;
  1172. transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0.5s;
  1173. }
  1174. .node-select-show {
  1175. width: 276px;
  1176. height: 44px;
  1177. background: var(--image-tree-expansion-bg) no-repeat;
  1178. left: 10px;
  1179. animation-name: treeShow;
  1180. /* 持续时间 */
  1181. animation-duration: 1s;
  1182. transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0.5s;
  1183. display: flex;
  1184. align-items: center;
  1185. margin-left: 0;
  1186. justify-content: flex-start;
  1187. pointer-events: auto;
  1188. &:hover {
  1189. background: var(--image-tree-expansion-hover-bg) no-repeat;
  1190. }
  1191. .put-away-icon {
  1192. position: relative;
  1193. display: inline-block;
  1194. left: 4px;
  1195. }
  1196. }
  1197. .node-select-hide {
  1198. left: -400px;
  1199. animation-name: treeHide;
  1200. /* 持续时间 */
  1201. animation-duration: 1s;
  1202. transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0.5s;
  1203. }
  1204. .device-select-box {
  1205. width: 208px;
  1206. height: 450px;
  1207. overflow-y: auto;
  1208. color: var(--vent-font-color);
  1209. :deep(.zxm-tree) {
  1210. background: transparent !important;
  1211. color: var(--vent-font-color) !important;
  1212. .zxm-tree-switcher {
  1213. background: transparent !important;
  1214. }
  1215. .zxm-tree-node-content-wrapper.zxm-tree-node-selected {
  1216. background-color: var(--tree-node-select);
  1217. }
  1218. .zxm-tree-node-content-wrapper:hover {
  1219. background-color: var(--tree-node-hover);
  1220. }
  1221. input {
  1222. height: 0px !important;
  1223. }
  1224. }
  1225. &::-webkit-scrollbar-track {
  1226. -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  1227. border-radius: 10px;
  1228. background: #ededed22;
  1229. height: 100px;
  1230. }
  1231. &::-webkit-scrollbar-thumb {
  1232. -webkit-box-shadow: inset 0 0 5px rgba(0, 0, 0, 0.2);
  1233. background: #4288a444;
  1234. }
  1235. }
  1236. .location-icon {
  1237. width: 46px;
  1238. height: 178px;
  1239. position: absolute;
  1240. top: 100px;
  1241. background: var(--image-location-bg) no-repeat;
  1242. background-size: contain;
  1243. writing-mode: vertical-lr;
  1244. line-height: 46px;
  1245. color: var(--vent-font-color);
  1246. padding-top: 10px;
  1247. pointer-events: auto;
  1248. cursor: pointer;
  1249. &:hover {
  1250. background: var(--image-location-hover-bg) no-repeat;
  1251. }
  1252. .location-text {
  1253. padding-top: 20px;
  1254. letter-spacing: 3px;
  1255. font-size: 16px;
  1256. }
  1257. }
  1258. .location-select {
  1259. position: fixed;
  1260. top: 100px;
  1261. pointer-events: auto;
  1262. .location-select-box {
  1263. width: 100%;
  1264. height: 100%;
  1265. position: relative;
  1266. &::before {
  1267. content: '';
  1268. position: absolute;
  1269. width: 230px;
  1270. height: 500px;
  1271. top: 0;
  1272. left: 0;
  1273. background: var(--image-tree-bg) no-repeat;
  1274. background-size: contain;
  1275. transform: rotateY(180deg);
  1276. z-index: -1;
  1277. }
  1278. .location-top-title {
  1279. color: var(--vent-font-color);
  1280. position: absolute;
  1281. width: 225px;
  1282. height: 68px;
  1283. background: var(--image-turn-location-top-bg) no-repeat;
  1284. background-size: contain;
  1285. top: 5px;
  1286. left: 5px;
  1287. display: flex;
  1288. flex-direction: row;
  1289. justify-content: space-between;
  1290. align-items: flex-end;
  1291. .title {
  1292. font-size: 18px;
  1293. position: relative;
  1294. top: -14px;
  1295. right: 15px;
  1296. }
  1297. }
  1298. .location-expansion-icon {
  1299. background: var(--image-tree-icon-cover-bg) no-repeat;
  1300. background-size: contain;
  1301. position: relative;
  1302. left: 10px;
  1303. top: -15px;
  1304. padding: 5px;
  1305. &:hover {
  1306. background: var(--image-tree-icon-cover-hover-bg) no-repeat;
  1307. background-size: contain;
  1308. }
  1309. }
  1310. }
  1311. .location-container {
  1312. width: 200px;
  1313. height: 390px;
  1314. position: absolute;
  1315. display: flex;
  1316. flex-direction: column;
  1317. top: 80px;
  1318. left: 18px;
  1319. overflow-y: auto;
  1320. .location-item {
  1321. color: var(--vent-font-color);
  1322. line-height: 30px;
  1323. display: flex;
  1324. justify-content: space-between;
  1325. // background-image: var(--vent-gas-list-item-bg-img);
  1326. background-image: linear-gradient(to left, #39f5ff05, #39f5ff10);
  1327. margin: 3px 0;
  1328. .item-title {
  1329. width: 80px;
  1330. text-align: right;
  1331. color: var(--vent-table-action-link);
  1332. }
  1333. }
  1334. .location-bottom-btn {
  1335. width: 100%;
  1336. color: var(--vent-font-color);
  1337. display: flex;
  1338. justify-content: flex-end;
  1339. margin-top: 20px;
  1340. span {
  1341. display: inline-block;
  1342. width: 100%;
  1343. background: var(--location-bottom-bg);
  1344. border-radius: 3px;
  1345. border: 1px solid var(--location-bottom-border);
  1346. text-align: center;
  1347. padding: 2px 0;
  1348. cursor: pointer;
  1349. &:hover {
  1350. background: #00557422;
  1351. }
  1352. }
  1353. }
  1354. }
  1355. }
  1356. .location-select-show {
  1357. right: 240px;
  1358. animation-name: locationShow;
  1359. /* 持续时间 */
  1360. animation-duration: 1s;
  1361. transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0.5s;
  1362. }
  1363. .location-select-hide {
  1364. right: -2px;
  1365. animation-name: locationHide;
  1366. /* 持续时间 */
  1367. animation-duration: 1s;
  1368. transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0.5s;
  1369. }
  1370. .location-btn-show {
  1371. right: -0px;
  1372. animation-name: locationBtnShow;
  1373. /* 持续时间 */
  1374. animation-duration: 1s;
  1375. transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0.5s;
  1376. }
  1377. .location-btn-hide {
  1378. right: -240px;
  1379. animation-name: locationBtnHide;
  1380. /* 持续时间 */
  1381. animation-duration: 1s;
  1382. transition: all 1s cubic-bezier(0.165, 0.84, 0.44, 1) 0.5s;
  1383. }
  1384. .tabs-box {
  1385. height: 290px;
  1386. }
  1387. .bottom-tabs-box {
  1388. position: relative;
  1389. .tabs-box {
  1390. width: calc(100% - 12px) !important;
  1391. bottom: 3px !important;
  1392. background-color: red;
  1393. }
  1394. .to-small {
  1395. position: absolute;
  1396. top: -65px;
  1397. right: 36px;
  1398. display: flex;
  1399. align-items: center;
  1400. justify-content: center;
  1401. .to-home {
  1402. width: 60px;
  1403. height: 60px;
  1404. background: var(--image-tohome) no-repeat center;
  1405. background-size: auto;
  1406. padding: 8px;
  1407. &:hover {
  1408. background-color: rgba(79, 104, 134, 0.418);
  1409. }
  1410. }
  1411. .table-show-icon {
  1412. width: 30px;
  1413. height: 30px;
  1414. font-size: 30px;
  1415. color: var(--vent-font-color);
  1416. margin-left: 10px;
  1417. }
  1418. }
  1419. .device-button-group {
  1420. position: absolute;
  1421. top: -30px;
  1422. display: flex;
  1423. width: 100%;
  1424. .device-button {
  1425. height: 26px;
  1426. padding: 0 20px;
  1427. background: linear-gradient(45deg, #04e6fb55, #0c5cab55);
  1428. clip-path: polygon(10px 0, 0 50%, 10px 100%, 100% 100%, calc(100% - 10px) 50%, 100% 0);
  1429. display: flex;
  1430. justify-content: center;
  1431. align-items: center;
  1432. color: var(--vent-font-color);
  1433. position: relative;
  1434. cursor: pointer;
  1435. &:nth-child(1) {
  1436. left: calc(-6px * 1);
  1437. }
  1438. &:nth-child(2) {
  1439. left: calc(-6px * 2);
  1440. }
  1441. &:nth-child(3) {
  1442. left: calc(-6px * 3);
  1443. }
  1444. &:nth-child(4) {
  1445. left: calc(-6px * 4);
  1446. }
  1447. &:nth-child(5) {
  1448. left: calc(-6px * 5);
  1449. }
  1450. &:nth-child(6) {
  1451. left: calc(-6px * 6);
  1452. }
  1453. &:nth-child(7) {
  1454. left: calc(-6px * 7);
  1455. }
  1456. &:nth-child(8) {
  1457. left: calc(-6px * 8);
  1458. }
  1459. &:nth-child(9) {
  1460. left: calc(-6px * 9);
  1461. }
  1462. &:nth-child(10) {
  1463. left: calc(-6px * 10);
  1464. }
  1465. &:nth-child(11) {
  1466. left: calc(-6px * 11);
  1467. }
  1468. &:nth-child(12) {
  1469. left: calc(-6px * 12);
  1470. }
  1471. &:nth-child(13) {
  1472. left: calc(-6px * 13);
  1473. }
  1474. &:nth-child(14) {
  1475. left: calc(-6px * 14);
  1476. }
  1477. &:nth-child(15) {
  1478. left: calc(-6px * 15);
  1479. }
  1480. &:nth-child(16) {
  1481. left: calc(-6px * 16);
  1482. }
  1483. &:nth-child(17) {
  1484. left: calc(-6px * 17);
  1485. }
  1486. &:nth-child(18) {
  1487. left: calc(-6px * 18);
  1488. }
  1489. &:nth-child(19) {
  1490. left: calc(-6px * 19);
  1491. }
  1492. &:first-child {
  1493. clip-path: polygon(0 0, 10px 50%, 0 100%, 100% 100%, calc(100% - 10px) 50%, 100% 0);
  1494. }
  1495. }
  1496. .device-active {
  1497. background: linear-gradient(45deg, #04e6fb, #0c5cab);
  1498. &::before {
  1499. border-color: #0efcff;
  1500. box-shadow: 1px 1px 3px 1px #0efcff inset;
  1501. }
  1502. }
  1503. }
  1504. .table-hide-icon {
  1505. color: var(--vent-font-color);
  1506. cursor: pointer;
  1507. position: absolute;
  1508. right: 20px;
  1509. top: 10px;
  1510. z-index: 9999;
  1511. }
  1512. .enter-detail {
  1513. color: var(--vent-font-color);
  1514. cursor: pointer;
  1515. position: absolute;
  1516. right: 35px;
  1517. top: 35px;
  1518. padding: 5px;
  1519. border-radius: 5px;
  1520. margin-left: 8px;
  1521. margin-right: 8px;
  1522. width: auto;
  1523. height: 33px !important;
  1524. display: flex;
  1525. align-items: center;
  1526. justify-content: center;
  1527. color: var(--vent-font-color);
  1528. padding: 5px 15px 5px 15px;
  1529. z-index: 999;
  1530. cursor: pointer;
  1531. &:hover {
  1532. background: var(--vent-device-manager-control-btn-hover);
  1533. }
  1534. &::before {
  1535. width: calc(100% - 6px);
  1536. height: 27px;
  1537. content: '';
  1538. position: absolute;
  1539. top: 3px;
  1540. right: 0;
  1541. left: 3px;
  1542. bottom: 0;
  1543. z-index: -1;
  1544. border-radius: inherit;
  1545. /*important*/
  1546. background: var(--vent-device-manager-control-btn);
  1547. }
  1548. }
  1549. }
  1550. .table-hide {
  1551. height: 0px;
  1552. animation-name: tableHide;
  1553. /* 持续时间 */
  1554. animation-duration: 1s;
  1555. transition: all 1s;
  1556. }
  1557. .table-show {
  1558. height: 290px;
  1559. animation-name: tableShow;
  1560. /* 持续时间 */
  1561. animation-duration: 1s;
  1562. transition: all 1s;
  1563. }
  1564. .location-form {
  1565. display: flex;
  1566. margin: 8px;
  1567. .location-form-item {
  1568. width: 400px;
  1569. .location-form-label {
  1570. width: 100px;
  1571. display: inline-block;
  1572. color: var(--vent-font-color);
  1573. }
  1574. input {
  1575. background: transparent !important;
  1576. color: var(--vent-font-color);
  1577. border: 1px solid var(--vent-form-item-border) !important;
  1578. }
  1579. }
  1580. .zxm-select-selector {
  1581. width: 200px !important;
  1582. }
  1583. }
  1584. @keyframes tableShow {
  1585. 0% {
  1586. height: 0px;
  1587. opacity: 0;
  1588. }
  1589. 100% {
  1590. height: 290px;
  1591. opacity: 1;
  1592. }
  1593. }
  1594. @keyframes tableHide {
  1595. 0% {
  1596. opacity: 1;
  1597. }
  1598. 100% {
  1599. height: 0px;
  1600. opacity: 0;
  1601. }
  1602. }
  1603. @keyframes treeShow {
  1604. 0% {
  1605. left: -400px;
  1606. opacity: 0;
  1607. }
  1608. 100% {
  1609. left: 10px;
  1610. opacity: 1;
  1611. }
  1612. }
  1613. @keyframes treeHide {
  1614. 0% {
  1615. left: 10px;
  1616. opacity: 1;
  1617. }
  1618. 100% {
  1619. left: -400px;
  1620. opacity: 0;
  1621. }
  1622. }
  1623. @keyframes locationShow {
  1624. 0% {
  1625. right: 0px;
  1626. opacity: 0;
  1627. }
  1628. 100% {
  1629. right: 240px;
  1630. opacity: 1;
  1631. }
  1632. }
  1633. @keyframes locationHide {
  1634. 0% {
  1635. right: 240px;
  1636. opacity: 1;
  1637. }
  1638. 100% {
  1639. right: 0;
  1640. opacity: 0;
  1641. }
  1642. }
  1643. @keyframes locationBtnShow {
  1644. 0% {
  1645. right: -240px;
  1646. opacity: 0;
  1647. }
  1648. 100% {
  1649. right: -2px;
  1650. opacity: 1;
  1651. }
  1652. }
  1653. @keyframes locationBtnHide {
  1654. 0% {
  1655. right: -2px;
  1656. opacity: 1;
  1657. }
  1658. 100% {
  1659. right: -240px;
  1660. opacity: 0;
  1661. }
  1662. }
  1663. :deep(.@{ventSpace}-tabs-tabpane-active) {
  1664. // overflow: auto;
  1665. height: 100%;
  1666. }
  1667. :deep(.zxm-select-dropdown) {
  1668. left: 0 !important;
  1669. color: #000000 !important;
  1670. }
  1671. :deep(.zxm-select-selector) {
  1672. height: 34px !important;
  1673. line-height: 34px !important;
  1674. }
  1675. :deep(.zxm-input) {
  1676. height: 32px !important;
  1677. line-height: 32px !important;
  1678. .zxm-select-selection-item {
  1679. line-height: 32px !important;
  1680. }
  1681. }
  1682. // :deep(.@{ventSpace}-pagination){
  1683. // margin-right: 20px !important;
  1684. // margin-top: 5px !important;
  1685. // display: flex;
  1686. // align-items: center;
  1687. // }</style>