dialog-modal.vue 13 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534
  1. <template>
  2. <div class="dialogModal" id="detailModal">
  3. <div class="modal-top">
  4. <i>
  5. <SvgIcon class="icon" size="14" name="inner-kd" />
  6. </i>
  7. <span class="modal-title"> {{ modalTitle }}</span>
  8. <span class="close" @click="getClose">✕</span>
  9. </div>
  10. <div class="modal-card">
  11. <div class="card-box" v-for="(item, index) in modalCard" :key="index">
  12. <div class="card-pic">
  13. <img :src="item.imgSrc" alt="" />
  14. </div>
  15. <div class="card-content">
  16. <div class="content-label">{{ item.label }}</div>
  17. <div class="content-value">{{ item.value }}</div>
  18. </div>
  19. </div>
  20. </div>
  21. <div class="modal-card1">
  22. <div class="left-modal">
  23. <div class="value-m">{{ valueM }}</div>
  24. <div class="label-m">{{ labelM }}</div>
  25. </div>
  26. <div class="right-modal">
  27. <div class="modal-zl" v-for="(item, index) in zlList" :key="index">
  28. <div class="left-zl">
  29. <div class="label-left">
  30. <span class="pic"></span>
  31. <span>{{ item.label }}</span>
  32. </div>
  33. <div class="value-left">
  34. <span class="text">{{ item.value }}</span>
  35. <span>Pa</span>
  36. </div>
  37. </div>
  38. <div class="right-zl">
  39. <span class="text"> {{ item.percent }}</span>
  40. <span>%</span>
  41. </div>
  42. </div>
  43. </div>
  44. </div>
  45. <div class="modal-card2">
  46. <div class="modal-wind" v-for="(item, index) in windLfList" :key="index">
  47. <span class="text">{{ item.label }}</span>
  48. <span class="num">{{ item.value }}</span>
  49. <span class="dw">%</span>
  50. </div>
  51. </div>
  52. <div class="modal-card3">
  53. <div class="warn-left">
  54. <div class="vent-l">
  55. <span class="warn-label">{{ vent.value }}</span>
  56. <span class="warn-value">{{ vent.label }}</span>
  57. </div>
  58. <div class="gas-l">
  59. <span class="warn-label">{{ gas.value }}</span>
  60. <span class="warn-value">{{ gas.label }}</span>
  61. </div>
  62. </div>
  63. <div class="warn-c">
  64. <div class="warn-icon"></div>
  65. </div>
  66. <div class="warn-right">
  67. <div class="fire-r">
  68. <span class="warn-value">{{ fire.label }}</span>
  69. <span class="warn-label">{{ fire.value }}</span>
  70. </div>
  71. <div class="dust-r">
  72. <span class="warn-value">{{ dust.label }}</span>
  73. <span class="warn-label">{{ dust.value }}</span>
  74. </div>
  75. </div>
  76. </div>
  77. </div>
  78. </template>
  79. <script lang="ts" setup>
  80. import { ref, reactive } from 'vue';
  81. import { SvgIcon } from '/@/components/Icon';
  82. import { getAssetURL } from '/@/utils/ui';
  83. // let modalTitle = ref('榆家梁矿');
  84. let modalTitle = ref('yjl');
  85. let modalCard = reactive([
  86. { imgSrc: getAssetURL('company/home/hang.png'), label: '巷道长度', value: 12300 },
  87. { imgSrc: getAssetURL('company/home/people.png'), label: '人员总数', value: 23 },
  88. { imgSrc: getAssetURL('company/home/car.png'), label: '车辆总数', value: 17 },
  89. ]);
  90. let valueM = ref('10000');
  91. let labelM = ref('1号回风立井');
  92. let zlList = reactive([
  93. { label: '关键阻力——进风', value: 3000, percent: 30 },
  94. { label: '关键阻力——用风', value: 3000, percent: 30 },
  95. { label: '关键阻力——回风', value: 3000, percent: 30 },
  96. ]);
  97. let windLfList = reactive([
  98. { label: '有效风量率', value: 88 },
  99. { label: '矿井风量率', value: 3.54 },
  100. ]);
  101. let vent = reactive({
  102. label: '通风风险性',
  103. value: '低风险',
  104. });
  105. let gas = reactive({
  106. label: '瓦斯风险性',
  107. value: '低风险',
  108. });
  109. let fire = reactive({
  110. label: '火灾风险性',
  111. value: '低风险',
  112. });
  113. let dust = reactive({
  114. label: '粉尘风险性',
  115. value: '低风险',
  116. });
  117. const emit = defineEmits(['closeDialog']);
  118. function getClose() {
  119. emit('closeDialog', false);
  120. }
  121. </script>
  122. <style lang="less" scoped>
  123. @font-face {
  124. font-family: 'douyuFont';
  125. src: url('/@/assets/font/douyuFont.otf');
  126. }
  127. .dialogModal {
  128. position: relative;
  129. width: 568px;
  130. height: 437px;
  131. background: url('/@/assets/images/company/area-card2.png') no-repeat;
  132. background-size: 100% 100%;
  133. pointer-events: none;
  134. z-index: 999999;
  135. .modal-top {
  136. position: absolute;
  137. left: 32px;
  138. top: 15px;
  139. height: 30px;
  140. line-height: 30px;
  141. width: 90%;
  142. .modal-title {
  143. font-size: 14px;
  144. font-family: 'douyuFont';
  145. color: #fff;
  146. margin-left: 10px;
  147. }
  148. .close {
  149. position: absolute;
  150. right: 12px;
  151. color: #2cb6ff;
  152. cursor: pointer;
  153. pointer-events: auto;
  154. }
  155. }
  156. .modal-card {
  157. position: absolute;
  158. top: 45px;
  159. left: 50%;
  160. transform: translate(-50%, 0);
  161. height: 46px;
  162. width: 90%;
  163. margin-top: 15px;
  164. display: flex;
  165. justify-content: space-between;
  166. background: url('../../../../../assets/images/company/modal-card.png') no-repeat center;
  167. background-size: 100% 100%;
  168. .card-box {
  169. display: flex;
  170. flex: 1;
  171. height: 100%;
  172. justify-content: center;
  173. align-items: center;
  174. &:first-child {
  175. margin-left: 15px;
  176. }
  177. &:last-child {
  178. margin-right: 10px;
  179. }
  180. .card-pic {
  181. margin-right: 10px;
  182. }
  183. .card-content {
  184. display: flex;
  185. flex-direction: column;
  186. justify-content: space-between;
  187. .content-label {
  188. font-size: 10px;
  189. color: #ccd6df;
  190. }
  191. .content-value {
  192. font-family: 'douyuFont';
  193. font-size: 14px;
  194. color: #fff;
  195. }
  196. }
  197. }
  198. }
  199. .modal-card1 {
  200. position: absolute;
  201. top: 121px;
  202. left: 50%;
  203. transform: translate(-50%, 0);
  204. height: 110px;
  205. width: 90%;
  206. padding: 0px 10px;
  207. box-sizing: border-box;
  208. display: flex;
  209. justify-content: space-between;
  210. align-items: center;
  211. background: url('../../../../../assets/images/company/area3.png') no-repeat center;
  212. background-size: 100% 100%;
  213. .left-modal {
  214. position: relative;
  215. width: 95px;
  216. height: 95px;
  217. background: url('../../../../../assets/images/company/zfx.png') no-repeat center;
  218. background-size: 100% 100%;
  219. .value-m {
  220. position: absolute;
  221. top: 50%;
  222. left: 50%;
  223. transform: translate(-50%, -50%);
  224. font-family: 'douyuFont';
  225. font-size: 14px;
  226. color: #3df6ff;
  227. }
  228. .label-m {
  229. position: absolute;
  230. bottom: 2px;
  231. width: 100%;
  232. font-size: 10px;
  233. text-align: center;
  234. color: #fff;
  235. }
  236. }
  237. .right-modal {
  238. width: calc(100% - 105px);
  239. height: 95px;
  240. margin-left: 10px;
  241. display: flex;
  242. flex-direction: column;
  243. justify-content: space-around;
  244. .modal-zl {
  245. height: 24px;
  246. display: flex;
  247. justify-content: space-between;
  248. .left-zl {
  249. display: flex;
  250. justify-content: space-between;
  251. align-items: center;
  252. width: calc(80% - 10px);
  253. padding: 0px 10px;
  254. margin-right: 10px;
  255. box-sizing: border-box;
  256. background-color: rgba(6, 57, 97, 0.3);
  257. .label-left {
  258. .pic {
  259. display: inline-block;
  260. width: 6px;
  261. height: 6px;
  262. border-radius: 50%;
  263. margin-right: 5px;
  264. }
  265. span {
  266. color: #ccd6df;
  267. font-size: 14px;
  268. }
  269. }
  270. .value-left {
  271. .text {
  272. font-family: 'douyuFont';
  273. font-size: 14px;
  274. margin-right: 5px;
  275. }
  276. span {
  277. font-size: 12px;
  278. color: #ccd6df;
  279. }
  280. }
  281. }
  282. &:nth-child(1) .left-zl .pic {
  283. background-color: #51cfff;
  284. }
  285. &:nth-child(2) .left-zl .pic {
  286. background-color: #ffb85b;
  287. }
  288. &:nth-child(3) .left-zl .pic {
  289. background-color: #a091ff;
  290. }
  291. &:nth-child(1) .left-zl .text {
  292. color: #51cfff;
  293. }
  294. &:nth-child(2) .left-zl .text {
  295. color: #ffb85b;
  296. }
  297. &:nth-child(3) .left-zl .text {
  298. color: #a091ff;
  299. }
  300. .right-zl {
  301. width: 20%;
  302. display: flex;
  303. justify-content: center;
  304. align-items: center;
  305. background-color: rgba(6, 57, 97, 0.3);
  306. .text {
  307. font-family: 'douyuFont';
  308. font-size: 14px;
  309. }
  310. span {
  311. margin-left: 5px;
  312. }
  313. }
  314. &:nth-child(1) .right-zl {
  315. color: #51cfff;
  316. }
  317. &:nth-child(2) .right-zl {
  318. color: #ffb85b;
  319. }
  320. &:nth-child(3) .right-zl {
  321. color: #a091ff;
  322. }
  323. }
  324. }
  325. }
  326. .modal-card2 {
  327. position: absolute;
  328. top: 231px;
  329. left: 50%;
  330. transform: translate(-50%, 0);
  331. height: 50px;
  332. width: 90%;
  333. margin: 10px 0px;
  334. padding: 0px 10px;
  335. display: flex;
  336. justify-content: space-between;
  337. align-items: center;
  338. box-sizing: border-box;
  339. background: url('../../../../../assets/images/company/area3.png') no-repeat center;
  340. background-size: 100% 100%;
  341. .modal-wind {
  342. position: relative;
  343. width: 50%;
  344. height: 34px;
  345. .text {
  346. position: absolute;
  347. top: 50%;
  348. left: 40px;
  349. transform: translate(0, -50%);
  350. color: #fff;
  351. font-size: 14px;
  352. }
  353. .num {
  354. position: absolute;
  355. top: 50%;
  356. right: 58px;
  357. transform: translate(0, -50%);
  358. color: #fff;
  359. font-family: 'douyuFont';
  360. font-size: 14px;
  361. }
  362. .dw {
  363. position: absolute;
  364. top: 50%;
  365. right: 12px;
  366. transform: translate(0, -50%);
  367. color: #fff;
  368. }
  369. &:nth-child(1) {
  370. background: url('../../../../../assets/images/company/green.png') no-repeat center;
  371. background-size: 100% 100%;
  372. }
  373. &:nth-child(2) {
  374. background: url('../../../../../assets/images/company/purple.png') no-repeat center;
  375. background-size: 100% 100%;
  376. }
  377. &:nth-child(1) .num {
  378. color: #31fbcc;
  379. }
  380. &:nth-child(2) .num {
  381. color: #97a3fa;
  382. }
  383. }
  384. }
  385. .modal-card3 {
  386. position: absolute;
  387. top: 302px;
  388. left: 50%;
  389. transform: translate(-50%, 0);
  390. height: 110px;
  391. width: 90%;
  392. padding: 0px 10px;
  393. box-sizing: border-box;
  394. display: flex;
  395. justify-content: space-between;
  396. align-items: center;
  397. background: url('../../../../../assets/images/company/area3.png') no-repeat center;
  398. background-size: 100% 100%;
  399. .warn-left {
  400. position: relative;
  401. width: 206px;
  402. height: 85px;
  403. background: url('../../../../../assets/images/company/warn-left.png') no-repeat center;
  404. .vent-l {
  405. position: absolute;
  406. top: 10px;
  407. left: 0;
  408. width: 80%;
  409. display: flex;
  410. justify-content: space-around;
  411. }
  412. .gas-l {
  413. position: absolute;
  414. top: 52px;
  415. left: 0;
  416. width: 80%;
  417. display: flex;
  418. justify-content: space-around;
  419. }
  420. }
  421. .warn-c {
  422. position: relative;
  423. width: 90px;
  424. height: 92px;
  425. background: url('../../../../../assets/images/company/warn-center.png') no-repeat center;
  426. .warn-icon {
  427. position: absolute;
  428. left: 50%;
  429. top: 50%;
  430. transform: translate(-50%, -85%);
  431. width: 50px;
  432. height: 50px;
  433. background: url('../../../../../assets/images/company/icon1.png') no-repeat center;
  434. }
  435. }
  436. .warn-right {
  437. position: relative;
  438. width: 206px;
  439. height: 85px;
  440. background: url('../../../../../assets/images/company/warn-right.png') no-repeat center;
  441. .fire-r {
  442. position: absolute;
  443. top: 10px;
  444. right: 0;
  445. width: 80%;
  446. display: flex;
  447. justify-content: space-around;
  448. }
  449. .dust-r {
  450. position: absolute;
  451. top: 52px;
  452. right: 0;
  453. width: 80%;
  454. display: flex;
  455. justify-content: space-around;
  456. }
  457. }
  458. .warn-label {
  459. font-family: 'douyuFont';
  460. font-size: 14px;
  461. color: #31fbcc;
  462. line-height: 27px;
  463. }
  464. .warn-value {
  465. color: #fff;
  466. font-size: 14px;
  467. }
  468. }
  469. }
  470. </style>