index.vue 66 KB

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