alarmDevice.vue 5.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282
  1. <template>
  2. <div class="main-data alarm-device">
  3. <div class="title-area">楼宇中当前告警设备情况</div>
  4. <div class="close-btn" @click="close"></div>
  5. <div class="content-area">
  6. <div class="content">
  7. <div class="data-list">
  8. <div class="table-cont">
  9. <div class="table-top">
  10. <div class="flo1">抽屉柜编号</div>
  11. <div class="pot1">设备名称</div>
  12. <div class="spa1">类别</div>
  13. </div>
  14. <div class="table-bot">
  15. <div class="table-list" v-for="(item,index) in floorDataList" :key="index">
  16. <div class="fir1">{{item.alertEquipment}}</div>
  17. <div class="snd1">{{item.alertPosition}}</div>
  18. <div class="thr1">{{item.alertName}}</div>
  19. </div>
  20. </div>
  21. </div>
  22. </div>
  23. </div>
  24. </div>
  25. </div>
  26. </template>
  27. <script>
  28. import { abnormalPoint } from "@/api/screen/service";
  29. import pinyin from "../data/pinyin.js";
  30. export default {
  31. name: "AlarmDevice",
  32. props: {
  33. power: { // 保持驼峰命名(在模板中会自动匹配 kebab-case)
  34. type: String,
  35. default: "" // 默认值改为空字符串
  36. }
  37. },
  38. data() {
  39. return {
  40. floorDataList: [],
  41. dataList: [],
  42. weeks: ["周一", "周二", "周三", "周四", "周五"],
  43. list: [],
  44. foodsList: [],
  45. food: "早餐",
  46. foods: ["早餐", "中餐", "晚餐"],
  47. lists: [],
  48. appOrgs:['10001','1D001','1K003','1J001','1E001','1J003','1K002','1J002','1K001','1A001']
  49. };
  50. },
  51. created() {
  52. this.abnormalPoint()
  53. },
  54. destroyed() {},
  55. beforeDestroy() {},
  56. mounted() {},
  57. methods: {
  58. abnormalPoint() {
  59. // alert(this.IntionList)
  60. abnormalPoint(this.$props.power).then((res) => {
  61. if (Number(res.code) === 200) {
  62. this.floorDataList=res.data;
  63. }
  64. }
  65. );
  66. },
  67. close() {
  68. this.$emit("closeFoods");
  69. },
  70. },
  71. };
  72. </script>
  73. <style lang="scss">
  74. .alarm-device {
  75. position: relative;
  76. width: 890px;
  77. height: 620px;
  78. background: url("../../../assets/images/main/dialog-bg-high.png") no-repeat;
  79. background-size: cover;
  80. .close-btn {
  81. position: absolute;
  82. right: 0;
  83. top: 0;
  84. width: 50px;
  85. height: 50px;
  86. cursor: pointer;
  87. }
  88. .choose-area {
  89. position: absolute;
  90. right: 100px;
  91. top: 7px;
  92. width: 80.05px;
  93. height: 30px;
  94. line-height: 30px;
  95. padding-left: 15px;
  96. font-size: 14px;
  97. color: #00ffff;
  98. background: url("../../../assets/images/main/choose_short.png") no-repeat;
  99. cursor: pointer;
  100. }
  101. .choose-area.choose-week{
  102. right: 200px;
  103. }
  104. .content-area {
  105. display: flex;
  106. flex-direction: column;
  107. padding: 15px 20px 0 15px;
  108. }
  109. .content-title {
  110. width: 515px;
  111. height: 26px;
  112. background: url("../../../assets/images/main/title_pro_long.png") no-repeat;
  113. background-size: 100% 100%;
  114. font-family: "PingFangSC";
  115. font-size: 16px;
  116. font-weight: bold;
  117. color: #00ffff;
  118. padding-left: 17px;
  119. .title {
  120. display: block;
  121. }
  122. }
  123. .content {
  124. width: 100%;
  125. display: flex;
  126. flex-direction: row;
  127. align-items: center;
  128. .data-list {
  129. background: radial-gradient(
  130. 190% 71% at 50% 49%,
  131. rgba(21, 105, 107, 0.54) 0%,
  132. rgba(27, 95, 97, 0) 100%
  133. );
  134. width: 100%;
  135. height: 600px;
  136. padding: 10px;
  137. // overflow: auto;
  138. white-space: pre-wrap;
  139. .table-cont{
  140. width:100%;
  141. .table-top{
  142. width:100%;
  143. height: 50px;
  144. background-color: #092B2C;
  145. padding:0 25px 0 10px;
  146. display: flex;
  147. justify-content: space-between;
  148. align-items: center;
  149. font-size:18px;
  150. color:#00FFFF;
  151. .flo1{
  152. width:50%;
  153. text-align: center;
  154. }
  155. .pot1{
  156. width:25%;
  157. text-align: center;
  158. }
  159. .spa1{
  160. width:25%;
  161. text-align: center;
  162. }
  163. }
  164. .table-bot{
  165. width:100%;
  166. height: 525px;
  167. overflow: auto;
  168. .table-list{
  169. width:100%;
  170. height:45px;
  171. padding:15px 25px 15px 0px;
  172. display: flex;
  173. justify-content: space-between;
  174. align-items: center;
  175. font-size:16px;
  176. color:#FFFFFF;
  177. font-weight: 500;
  178. //border: 1px dotted #14302F;
  179. }
  180. .fir1{
  181. width:50%;
  182. text-align: center;
  183. border-left: 1px solid #40E5F2;
  184. }
  185. .snd1{
  186. width:25%;
  187. text-align: center;
  188. }
  189. .thr1{
  190. width:25%;
  191. text-align: center;
  192. }
  193. }
  194. // .color{
  195. // color:#FF8C00;
  196. // }
  197. }
  198. }
  199. }
  200. .title-format {
  201. display: flex;
  202. flex-direction: row;
  203. align-items: center;
  204. img {
  205. width: 6px;
  206. height: 24px;
  207. margin-right: 6px;
  208. }
  209. .title-info {
  210. display: flex;
  211. flex-direction: column;
  212. font-size: 12px;
  213. color: #ffffff;
  214. .title-en {
  215. font-size: 8px;
  216. color: #ffffff;
  217. opacity: 0.4;
  218. }
  219. }
  220. }
  221. .choose-area {
  222. .el-select {
  223. width: 90%;
  224. }
  225. .el-input {
  226. input {
  227. background: rgba(255, 255, 255, 0);
  228. color: #00ffff;
  229. border: none;
  230. padding: 0;
  231. width: 30px;
  232. }
  233. }
  234. }
  235. .no-data{
  236. text-align: center;
  237. color: #62ffe5;
  238. font-size: 25px;
  239. margin-top: 150px;
  240. }
  241. ::-webkit-scrollbar {
  242. width: 3px;
  243. height: 3px;
  244. }
  245. ::-webkit-scrollbar-thumb {
  246. //滑块部分
  247. // border-radius: 5px;
  248. background-color: #58cbbb;
  249. }
  250. ::-webkit-scrollbar-track {
  251. //轨道部分
  252. // box-shadow: inset 0 0 5px #ddd;
  253. background: #ddd;
  254. // border-radius: 5px;
  255. }
  256. }
  257. </style>