MatrixMonitor.vue 43 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798179918001801180218031804180518061807180818091810181118121813181418151816181718181819182018211822182318241825182618271828182918301831183218331834183518361837183818391840184118421843184418451846184718481849185018511852185318541855185618571858185918601861186218631864186518661867186818691870187118721873187418751876187718781879188018811882188318841885188618871888188918901891189218931894189518961897189818991900190119021903190419051906190719081909191019111912191319141915191619171918191919201921192219231924192519261927192819291930193119321933193419351936193719381939194019411942194319441945194619471948194919501951195219531954195519561957195819591960196119621963196419651966196719681969197019711972197319741975197619771978197919801981198219831984198519861987198819891990199119921993199419951996199719981999200020012002200320042005200620072008200920102011201220132014201520162017201820192020
  1. <template>
  2. <view>
  3. <!--导航栏-->
  4. <view class="top">
  5. <view class="threeLine" @tap="openDrawer">
  6. <image src="../../static/picture/fourLine.png" style="width: 30px;height: 30px;margin-top: 18px;margin-left: 10px;"></image>
  7. </view>
  8. <view class="text">
  9. <view class="notice">
  10. <view class="icon cuIcon-notice text-white" v-if="badge != 0">
  11. <view class="cu-tag looknumber" style="margin-top: 10px;">
  12. <block v-if="badge != 1">{{ badge > 99 ? '99+' : badge }}</block>
  13. </view>
  14. </view>
  15. </view>
  16. <view class="textWindpowerstation">{{ address }}</view>
  17. </view>
  18. <view class="plus" @tap="openPlusDrawer" data-target="viewModal">+</view>
  19. </view>
  20. <!-- 抽屉组件 -->
  21. <div>
  22. <drawer ref="drawer"></drawer>
  23. </div>
  24. <div class="plusDrawer" @tap="closePlusDrawer">
  25. <plusDrawer ref="plusDrawer"></plusDrawer>
  26. </div>
  27. <scroll-view scroll-y class="DrawerPage" :class="modalName == 'viewModal' ? 'show' : ''">
  28. <view class="windStationNameAndChoice">
  29. <view class="windStationName">{{ windStationName }}</view>
  30. <!--<view class="windStationChoice"><a @click="showCenterVisible = true">其他ㅤ〉</a></view>-->
  31. <!-- @tap="showModal" data-target="DialogModal1" -->
  32. <!-- @tap="changeModalStaus" @click="showCenterVisible = true" -->
  33. </view>
  34. <!-- 选择风场弹窗 -->
  35. <!-- <view class="cu-modal" :class="modalName=='DialogModal1'?'show':''">
  36. <view class="cu-dialog">
  37. <view class="cu-bar bg-gradual-sisBlack justify-end">
  38. <view class="content" style="text-align: left;">选择您想查看的风场</view>
  39. <view class="action" @tap="hideModal">
  40. <text class="cuIcon-close text-white"></text>
  41. </view>
  42. </view>
  43. <view class="cu-bar bg-gray justify-end">
  44. <view class="action" style="width: 100%;margin: 0px;">
  45. <view class="windStationList" :style="{ 'height': windStationListHeight}">
  46. <view class="windStationItemContainer" v-for="(item,index) in windStation" :key="index" :class="[choiceIndex==index?'windStationItemContainerBlack':'windStationItemContainer']" >
  47. <view class="windStationItem" @tap="choiceWindStation(item,index)">{{item}}</view>
  48. </view>
  49. </view>
  50. </view>
  51. </view>
  52. </view>
  53. </view> -->
  54. <s-popup custom-class="center-popup" position="center" v-model="showCenterVisible">
  55. <view class="s-popup-wrapper" :style="{'height': spopupWrapperHeight}">
  56. <view class="s-popup-title">
  57. <view class="s-popup-word">选择您想查看的风场</view>
  58. <view class="s-popup-cha"><a @tap="showCenterVisible = false">×</a></view>
  59. </view>
  60. <view class="windStationList" :style="{ 'height': windStationListHeight}">
  61. <view class="windStationItemContainer" v-for="(item,index) in windStation" :key="index" :class="[choiceIndex==index?'windStationItemContainerBlack':'windStationItemContainer']">
  62. <view class="windStationItem" @tap="choiceWindStation(item,index)">{{item}}</view>
  63. </view>
  64. </view>
  65. </view>
  66. </s-popup>
  67. <!-- 风机状态卡片 -->
  68. <view class="windMotorStatusContainer">
  69. <view class="windMotorStatusCardJieRu" :class="[clickFlag == 'jieRu' ? 'windMotorStatusCardJieRuRed' : 'windMotorStatusCardJieRu']"
  70. @tap="clickWindMotorStatusCard('jieRu')">
  71. <view class="windMotorStatusCardIcon">
  72. <image src="../../static/picture/001.png" style="width: 25px;height: 25px;"></image>
  73. </view>
  74. 接入 {{ jieRu }}
  75. </view>
  76. <view class="windMotorStatusCardYunXing" :class="[clickFlag == 'yunXing' ? 'windMotorStatusCardYunXingRed' : 'windMotorStatusCardYunXing']"
  77. @tap="clickWindMotorStatusCard('yunXing')">
  78. <view class="windMotorStatusCardIcon">
  79. <image src="../../static/picture/003.png" style="width: 25px;height: 25px;"></image>
  80. </view>
  81. 运行 {{ yunXing }}
  82. </view>
  83. <view class="windMotorStatusCardDaiJi" :class="[clickFlag == 'daiJi' ? 'windMotorStatusCardDaiJiRed' : 'windMotorStatusCardDaiJi']"
  84. @tap="clickWindMotorStatusCard('daiJi')">
  85. <view class="windMotorStatusCardIcon">
  86. <image src="../../static/picture/002.png" style="width: 25px;height: 25px;"></image>
  87. </view>
  88. 待机 {{ daiJi }}
  89. </view>
  90. <view class="windMotorStatusCardJianXiu" :class="[clickFlag == 'jianXiu' ? 'windMotorStatusCardJianXiuRed' : 'windMotorStatusCardJianXiu']"
  91. @tap="clickWindMotorStatusCard('jianXiu')">
  92. <view class="windMotorStatusCardIcon">
  93. <image src="../../static/picture/005.png" style="width: 25px;height: 25px;"></image>
  94. </view>
  95. 检修 {{ jianXiu }}
  96. </view>
  97. <view class="windMotorStatusCardGuZhang" :class="[clickFlag == 'guZhang' ? 'windMotorStatusCardGuZhangRed' : 'windMotorStatusCardGuZhang']"
  98. @tap="clickWindMotorStatusCard('guZhang')">
  99. <view class="windMotorStatusCardIcon">
  100. <image src="../../static/picture/004.png" style="width: 25px;height: 25px;"></image>
  101. </view>
  102. 故障 {{ guZhang }}
  103. </view>
  104. <view class="windMotorStatusCardXianDian" :class="[clickFlag == 'xianDian' ? 'windMotorStatusCardXianDianRed' : 'windMotorStatusCardXianDian']"
  105. @tap="clickWindMotorStatusCard('xianDian')">
  106. <view class="windMotorStatusCardIcon">
  107. <image src="../../static/picture/008.png" style="width: 25px;height: 25px;"></image>
  108. </view>
  109. 限电 {{ xianDian }}
  110. </view>
  111. <view class="windMotorStatusCardShouLei" :class="[clickFlag == 'shouLei' ? 'windMotorStatusCardShouLeiRed' : 'windMotorStatusCardShouLei']"
  112. @tap="clickWindMotorStatusCard('shouLei')">
  113. <view class="windMotorStatusCardIcon">
  114. <image src="../../static/picture/007.png" style="width: 25px;height: 25px;"></image>
  115. </view>
  116. 受累 {{ shouLei }}
  117. </view>
  118. <view class="windMotorStatusCardLiXian" :class="[clickFlag == 'liXian' ? 'windMotorStatusCardLiXianRed' : 'windMotorStatusCardLiXian']"
  119. @tap="clickWindMotorStatusCard('liXian')">
  120. <view class="windMotorStatusCardIcon">
  121. <image src="../../static/picture/006.png" style="width: 25px;height: 25px;"></image>
  122. </view>
  123. 离线 {{ liXian }}
  124. </view>
  125. </view>
  126. <!-- 轮播圆点-->
  127. <swiper class="card-swiper" :class="dotStyle ? 'square-dot' : 'round-dot'" :indicator-dots="true" :circular="true"
  128. :autoplay="false" interval="5000" duration="500" @change="cardSwiper" indicator-color="#8799a3"
  129. indicator-active-color="#F14E51" :current="cardCur">
  130. <swiper-item v-for="(item, index) in windStation" :key="index" :class="cardCur == index ? 'cur' : ''">
  131. <view class="swiper-item"></view>
  132. </swiper-item>
  133. </swiper>
  134. <!-- 轮播卡片 -->
  135. <view class="windMotorMatrixContainer" :style="{ height: windMotorMatrixContainerHeight }">
  136. <swiper id="swiper1" class="screen-swiper" :class="dotStyle ? 'square-dot' : 'round-dot'" :indicator-dots="false"
  137. :circular="false" :autoplay="false" interval="5000" duration="500" :style="{ height: windMotorMatrixContainerHeight }"
  138. :current="cardCur" @change="cardSwiper">
  139. <swiper-item v-for="(item, index) in windStation" :key="index">
  140. <scroll-view scroll-y scroll-with-animation class="scrollList" :style="{ height: windMotorMatrixContainerHeight }">
  141. <view class="windMotorMatrixList" :style="{ height: windMotorMatrixListHeight }">
  142. <view class="windMotorMatrixDetail" v-for="(item2, index2) in windMotorMatrixDetail" :key="index2" :style="{ 'background-color': detailBackgroundColor[index2] }">
  143. <view class="windMotorMatrixDetailIcon">
  144. <image :src="'../../static/picture/' + item2.icon + '.png'" style="width: 25px;height: 25px;"></image>
  145. </view>
  146. <view class="windMotorMatrixDetailSpeed">{{ item2.speed }}m/s</view>
  147. <view class="windMotorMatrixDetailId">{{ item2.id }}</view>
  148. <view class="windMotorMatrixDetailPower">{{ item2.power }}kw</view>
  149. </view>
  150. </view>
  151. </scroll-view>
  152. </swiper-item>
  153. </swiper>
  154. </view>
  155. <!-- 切换轮播卡片的提示框 -->
  156. <view class="cu-modal" :class="modalName == 'Modal' ? 'show' : ''">
  157. <view class="cu-dialog">
  158. <view class="padding-xl bg-black">{{ modalWindStationName }}</view>
  159. </view>
  160. </view>
  161. </scroll-view>
  162. </view>
  163. </template>
  164. <script>
  165. import drawer from '../../components/drawer/threeLineDrawer.vue';
  166. import plusDrawer from '../../components/drawer/plusDrawer.vue';
  167. import sPopup from '@/s-popup';
  168. export default {
  169. components: {
  170. drawer: drawer,
  171. plusDrawer: plusDrawer,
  172. sPopup: sPopup
  173. },
  174. data: function() {
  175. return {
  176. address: '',
  177. userid: '',
  178. permissionsInformation: [],
  179. badge: 22,
  180. drawerList: [],
  181. plusDrawerList: [],
  182. windStationName: '',
  183. modalWindStationName: '',
  184. CustomBar: this.CustomBar,
  185. modalName: null,
  186. showCenterVisible: false,
  187. windStation: [],
  188. choiceIndex: -1,
  189. clickFlag: 'jieRu',
  190. cardCur: 0,
  191. dotStyle: false,
  192. windowWidth: '',
  193. leftNavigationtitle: '监视功能分组',
  194. windowHeight: '',
  195. spopupWrapperHeight: "",
  196. windStationListHeight: '',
  197. windMotorMatrixContainerHeight: '',
  198. windMotorMatrixListHeight: '',
  199. detailBackgroundColor: [],
  200. windMotorMatrixDetailMaHuagShan: [{
  201. icon: '003',
  202. id: 'A01',
  203. speed: '6.04',
  204. power: '567'
  205. },
  206. {
  207. icon: '003',
  208. id: 'A02',
  209. speed: '6.04',
  210. power: '567'
  211. },
  212. {
  213. icon: '003',
  214. id: 'A03',
  215. speed: '6.04',
  216. power: '567'
  217. },
  218. {
  219. icon: '003',
  220. id: 'A04',
  221. speed: '6.04',
  222. power: '567'
  223. },
  224. {
  225. icon: '003',
  226. id: 'A05',
  227. speed: '6.04',
  228. power: '567'
  229. },
  230. {
  231. icon: '003',
  232. id: 'A06',
  233. speed: '6.04',
  234. power: '567'
  235. },
  236. {
  237. icon: '003',
  238. id: 'A07',
  239. speed: '6.04',
  240. power: '567'
  241. },
  242. {
  243. icon: '003',
  244. id: 'A08',
  245. speed: '6.04',
  246. power: '567'
  247. },
  248. {
  249. icon: '003',
  250. id: 'A09',
  251. speed: '6.04',
  252. power: '567'
  253. },
  254. {
  255. icon: '003',
  256. id: 'A10',
  257. speed: '6.04',
  258. power: '567'
  259. },
  260. {
  261. icon: '002',
  262. id: 'A11',
  263. speed: '6.04',
  264. power: '567'
  265. },
  266. {
  267. icon: '003',
  268. id: 'A12',
  269. speed: '6.04',
  270. power: '567'
  271. },
  272. {
  273. icon: '003',
  274. id: 'A13',
  275. speed: '6.04',
  276. power: '567'
  277. },
  278. {
  279. icon: '003',
  280. id: 'A14',
  281. speed: '6.04',
  282. power: '567'
  283. },
  284. {
  285. icon: '003',
  286. id: 'A15',
  287. speed: '6.04',
  288. power: '567'
  289. },
  290. {
  291. icon: '003',
  292. id: 'A16',
  293. speed: '6.04',
  294. power: '567'
  295. },
  296. {
  297. icon: '002',
  298. id: 'A17',
  299. speed: '6.04',
  300. power: '567'
  301. },
  302. {
  303. icon: '003',
  304. id: 'A18',
  305. speed: '6.04',
  306. power: '567'
  307. },
  308. {
  309. icon: '003',
  310. id: 'A19',
  311. speed: '6.04',
  312. power: '567'
  313. },
  314. {
  315. icon: '003',
  316. id: 'A20',
  317. speed: '6.04',
  318. power: '567'
  319. },
  320. {
  321. icon: '003',
  322. id: 'A21',
  323. speed: '6.04',
  324. power: '567'
  325. },
  326. {
  327. icon: '003',
  328. id: 'A22',
  329. speed: '6.04',
  330. power: '567'
  331. },
  332. {
  333. icon: '002',
  334. id: 'A23',
  335. speed: '6.04',
  336. power: '567'
  337. },
  338. {
  339. icon: '003',
  340. id: 'A24',
  341. speed: '6.04',
  342. power: '567'
  343. },
  344. {
  345. icon: '003',
  346. id: 'A25',
  347. speed: '6.04',
  348. power: '567'
  349. },
  350. {
  351. icon: '003',
  352. id: 'A26',
  353. speed: '6.04',
  354. power: '567'
  355. },
  356. {
  357. icon: '003',
  358. id: 'A27',
  359. speed: '6.04',
  360. power: '567'
  361. },
  362. {
  363. icon: '003',
  364. id: 'A28',
  365. speed: '6.04',
  366. power: '567'
  367. },
  368. {
  369. icon: '005',
  370. id: 'A29',
  371. speed: '6.04',
  372. power: '567'
  373. },
  374. {
  375. icon: '003',
  376. id: 'A30',
  377. speed: '6.04',
  378. power: '567'
  379. },
  380. {
  381. icon: '003',
  382. id: 'A31',
  383. speed: '6.04',
  384. power: '567'
  385. },
  386. {
  387. icon: '003',
  388. id: 'A32',
  389. speed: '6.04',
  390. power: '567'
  391. },
  392. {
  393. icon: '003',
  394. id: 'A33',
  395. speed: '6.04',
  396. power: '567'
  397. },
  398. {
  399. icon: '003',
  400. id: 'A34',
  401. speed: '6.04',
  402. power: '567'
  403. },
  404. {
  405. icon: '004',
  406. id: 'A35',
  407. speed: '6.04',
  408. power: '567'
  409. },
  410. {
  411. icon: '003',
  412. id: 'A36',
  413. speed: '6.04',
  414. power: '567'
  415. },
  416. {
  417. icon: '003',
  418. id: 'A37',
  419. speed: '6.04',
  420. power: '567'
  421. },
  422. {
  423. icon: '003',
  424. id: 'A38',
  425. speed: '6.04',
  426. power: '567'
  427. },
  428. {
  429. icon: '003',
  430. id: 'A39',
  431. speed: '6.04',
  432. power: '567'
  433. },
  434. {
  435. icon: '003',
  436. id: 'A40',
  437. speed: '6.04',
  438. power: '567'
  439. },
  440. {
  441. icon: '008',
  442. id: 'A41',
  443. speed: '6.04',
  444. power: '567'
  445. },
  446. {
  447. icon: '003',
  448. id: 'A42',
  449. speed: '6.04',
  450. power: '567'
  451. },
  452. {
  453. icon: '003',
  454. id: 'A43',
  455. speed: '6.04',
  456. power: '567'
  457. },
  458. {
  459. icon: '003',
  460. id: 'A44',
  461. speed: '6.04',
  462. power: '567'
  463. },
  464. {
  465. icon: '003',
  466. id: 'A45',
  467. speed: '6.04',
  468. power: '567'
  469. },
  470. {
  471. icon: '003',
  472. id: 'A46',
  473. speed: '6.04',
  474. power: '567'
  475. },
  476. {
  477. icon: '002',
  478. id: 'A47',
  479. speed: '6.04',
  480. power: '567'
  481. },
  482. {
  483. icon: '003',
  484. id: 'A48',
  485. speed: '6.04',
  486. power: '567'
  487. },
  488. {
  489. icon: '003',
  490. id: 'A49',
  491. speed: '6.04',
  492. power: '567'
  493. },
  494. {
  495. icon: '003',
  496. id: 'A50',
  497. speed: '6.04',
  498. power: '567'
  499. },
  500. {
  501. icon: '003',
  502. id: 'A51',
  503. speed: '6.04',
  504. power: '567'
  505. },
  506. {
  507. icon: '003',
  508. id: 'A52',
  509. speed: '6.04',
  510. power: '567'
  511. },
  512. {
  513. icon: '006',
  514. id: 'A53',
  515. speed: '6.04',
  516. power: '567'
  517. },
  518. {
  519. icon: '003',
  520. id: 'A54',
  521. speed: '6.04',
  522. power: '567'
  523. },
  524. {
  525. icon: '003',
  526. id: 'A55',
  527. speed: '6.04',
  528. power: '567'
  529. },
  530. {
  531. icon: '003',
  532. id: 'A56',
  533. speed: '6.04',
  534. power: '567'
  535. },
  536. {
  537. icon: '003',
  538. id: 'A57',
  539. speed: '6.04',
  540. power: '567'
  541. },
  542. {
  543. icon: '003',
  544. id: 'A58',
  545. speed: '6.04',
  546. power: '567'
  547. },
  548. {
  549. icon: '007',
  550. id: 'A59',
  551. speed: '6.04',
  552. power: '567'
  553. },
  554. {
  555. icon: '003',
  556. id: 'A60',
  557. speed: '6.04',
  558. power: '567'
  559. },
  560. {
  561. icon: '003',
  562. id: 'A61',
  563. speed: '6.04',
  564. power: '567'
  565. },
  566. {
  567. icon: '003',
  568. id: 'A62',
  569. speed: '6.04',
  570. power: '567'
  571. },
  572. {
  573. icon: '003',
  574. id: 'A63',
  575. speed: '6.04',
  576. power: '567'
  577. },
  578. {
  579. icon: '002',
  580. id: 'A64',
  581. speed: '6.04',
  582. power: '567'
  583. },
  584. {
  585. icon: '002',
  586. id: 'A65',
  587. speed: '6.04',
  588. power: '567'
  589. },
  590. {
  591. icon: '003',
  592. id: 'A66',
  593. speed: '6.04',
  594. power: '567'
  595. },
  596. {
  597. icon: '003',
  598. id: 'A67',
  599. speed: '6.04',
  600. power: '567'
  601. },
  602. {
  603. icon: '003',
  604. id: 'A68',
  605. speed: '6.04',
  606. power: '567'
  607. },
  608. {
  609. icon: '003',
  610. id: 'A69',
  611. speed: '6.04',
  612. power: '567'
  613. },
  614. {
  615. icon: '003',
  616. id: 'A70',
  617. speed: '6.04',
  618. power: '567'
  619. },
  620. {
  621. icon: '008',
  622. id: 'A71',
  623. speed: '6.04',
  624. power: '567'
  625. },
  626. {
  627. icon: '003',
  628. id: 'A72',
  629. speed: '6.04',
  630. power: '567'
  631. },
  632. {
  633. icon: '003',
  634. id: 'A73',
  635. speed: '6.04',
  636. power: '567'
  637. },
  638. {
  639. icon: '003',
  640. id: 'A74',
  641. speed: '6.04',
  642. power: '567'
  643. },
  644. {
  645. icon: '003',
  646. id: 'A75',
  647. speed: '6.04',
  648. power: '567'
  649. },
  650. {
  651. icon: '003',
  652. id: 'A76',
  653. speed: '6.04',
  654. power: '567'
  655. },
  656. {
  657. icon: '006',
  658. id: 'A77',
  659. speed: '6.04',
  660. power: '567'
  661. },
  662. {
  663. icon: '003',
  664. id: 'A78',
  665. speed: '6.04',
  666. power: '567'
  667. },
  668. {
  669. icon: '003',
  670. id: 'A79',
  671. speed: '6.04',
  672. power: '567'
  673. },
  674. {
  675. icon: '003',
  676. id: 'A80',
  677. speed: '6.04',
  678. power: '567'
  679. }
  680. ],
  681. windMotorMatrixDetailNiuShouShan: [{
  682. icon: '003',
  683. id: 'A01',
  684. speed: '6.04',
  685. power: '567'
  686. },
  687. {
  688. icon: '003',
  689. id: 'A02',
  690. speed: '6.04',
  691. power: '567'
  692. },
  693. {
  694. icon: '002',
  695. id: 'A03',
  696. speed: '6.04',
  697. power: '567'
  698. },
  699. {
  700. icon: '003',
  701. id: 'A04',
  702. speed: '6.04',
  703. power: '567'
  704. },
  705. {
  706. icon: '003',
  707. id: 'A05',
  708. speed: '6.04',
  709. power: '567'
  710. },
  711. {
  712. icon: '003',
  713. id: 'A06',
  714. speed: '6.04',
  715. power: '567'
  716. },
  717. {
  718. icon: '003',
  719. id: 'A07',
  720. speed: '6.04',
  721. power: '567'
  722. },
  723. {
  724. icon: '003',
  725. id: 'A08',
  726. speed: '6.04',
  727. power: '567'
  728. },
  729. {
  730. icon: '003',
  731. id: 'A09',
  732. speed: '6.04',
  733. power: '567'
  734. },
  735. {
  736. icon: '003',
  737. id: 'A10',
  738. speed: '6.04',
  739. power: '567'
  740. },
  741. {
  742. icon: '002',
  743. id: 'A11',
  744. speed: '6.04',
  745. power: '567'
  746. },
  747. {
  748. icon: '003',
  749. id: 'A12',
  750. speed: '6.04',
  751. power: '567'
  752. },
  753. {
  754. icon: '003',
  755. id: 'A13',
  756. speed: '6.04',
  757. power: '567'
  758. },
  759. {
  760. icon: '003',
  761. id: 'A14',
  762. speed: '6.04',
  763. power: '567'
  764. },
  765. {
  766. icon: '003',
  767. id: 'A15',
  768. speed: '6.04',
  769. power: '567'
  770. },
  771. {
  772. icon: '003',
  773. id: 'A16',
  774. speed: '6.04',
  775. power: '567'
  776. },
  777. {
  778. icon: '008',
  779. id: 'A17',
  780. speed: '6.04',
  781. power: '567'
  782. },
  783. {
  784. icon: '003',
  785. id: 'A18',
  786. speed: '6.04',
  787. power: '567'
  788. },
  789. {
  790. icon: '003',
  791. id: 'A19',
  792. speed: '6.04',
  793. power: '567'
  794. },
  795. {
  796. icon: '003',
  797. id: 'A20',
  798. speed: '6.04',
  799. power: '567'
  800. },
  801. {
  802. icon: '003',
  803. id: 'A21',
  804. speed: '6.04',
  805. power: '567'
  806. },
  807. {
  808. icon: '003',
  809. id: 'A22',
  810. speed: '6.04',
  811. power: '567'
  812. },
  813. {
  814. icon: '002',
  815. id: 'A23',
  816. speed: '6.04',
  817. power: '567'
  818. },
  819. {
  820. icon: '003',
  821. id: 'A24',
  822. speed: '6.04',
  823. power: '567'
  824. },
  825. {
  826. icon: '003',
  827. id: 'A25',
  828. speed: '6.04',
  829. power: '567'
  830. },
  831. {
  832. icon: '003',
  833. id: 'A26',
  834. speed: '6.04',
  835. power: '567'
  836. },
  837. {
  838. icon: '003',
  839. id: 'A27',
  840. speed: '6.04',
  841. power: '567'
  842. },
  843. {
  844. icon: '003',
  845. id: 'A28',
  846. speed: '6.04',
  847. power: '567'
  848. },
  849. {
  850. icon: '005',
  851. id: 'A29',
  852. speed: '6.04',
  853. power: '567'
  854. },
  855. {
  856. icon: '003',
  857. id: 'A30',
  858. speed: '6.04',
  859. power: '567'
  860. },
  861. {
  862. icon: '003',
  863. id: 'A31',
  864. speed: '6.04',
  865. power: '567'
  866. },
  867. {
  868. icon: '003',
  869. id: 'A32',
  870. speed: '6.04',
  871. power: '567'
  872. },
  873. {
  874. icon: '003',
  875. id: 'A33',
  876. speed: '6.04',
  877. power: '567'
  878. },
  879. {
  880. icon: '003',
  881. id: 'A34',
  882. speed: '6.04',
  883. power: '567'
  884. },
  885. {
  886. icon: '004',
  887. id: 'A35',
  888. speed: '6.04',
  889. power: '567'
  890. },
  891. {
  892. icon: '003',
  893. id: 'A36',
  894. speed: '6.04',
  895. power: '567'
  896. },
  897. {
  898. icon: '003',
  899. id: 'A37',
  900. speed: '6.04',
  901. power: '567'
  902. },
  903. {
  904. icon: '003',
  905. id: 'A38',
  906. speed: '6.04',
  907. power: '567'
  908. },
  909. {
  910. icon: '003',
  911. id: 'A39',
  912. speed: '6.04',
  913. power: '567'
  914. },
  915. {
  916. icon: '003',
  917. id: 'A40',
  918. speed: '6.04',
  919. power: '567'
  920. },
  921. {
  922. icon: '002',
  923. id: 'A41',
  924. speed: '6.04',
  925. power: '567'
  926. },
  927. {
  928. icon: '003',
  929. id: 'A42',
  930. speed: '6.04',
  931. power: '567'
  932. },
  933. {
  934. icon: '003',
  935. id: 'A43',
  936. speed: '6.04',
  937. power: '567'
  938. },
  939. {
  940. icon: '003',
  941. id: 'A44',
  942. speed: '6.04',
  943. power: '567'
  944. },
  945. {
  946. icon: '003',
  947. id: 'A45',
  948. speed: '6.04',
  949. power: '567'
  950. },
  951. {
  952. icon: '003',
  953. id: 'A46',
  954. speed: '6.04',
  955. power: '567'
  956. },
  957. {
  958. icon: '002',
  959. id: 'A47',
  960. speed: '6.04',
  961. power: '567'
  962. },
  963. {
  964. icon: '003',
  965. id: 'A48',
  966. speed: '6.04',
  967. power: '567'
  968. },
  969. {
  970. icon: '003',
  971. id: 'A49',
  972. speed: '6.04',
  973. power: '567'
  974. },
  975. {
  976. icon: '003',
  977. id: 'A50',
  978. speed: '6.04',
  979. power: '567'
  980. },
  981. {
  982. icon: '003',
  983. id: 'A51',
  984. speed: '6.04',
  985. power: '567'
  986. },
  987. {
  988. icon: '003',
  989. id: 'A52',
  990. speed: '6.04',
  991. power: '567'
  992. },
  993. {
  994. icon: '006',
  995. id: 'A53',
  996. speed: '6.04',
  997. power: '567'
  998. },
  999. {
  1000. icon: '003',
  1001. id: 'A54',
  1002. speed: '6.04',
  1003. power: '567'
  1004. },
  1005. {
  1006. icon: '003',
  1007. id: 'A55',
  1008. speed: '6.04',
  1009. power: '567'
  1010. },
  1011. {
  1012. icon: '003',
  1013. id: 'A56',
  1014. speed: '6.04',
  1015. power: '567'
  1016. },
  1017. {
  1018. icon: '003',
  1019. id: 'A57',
  1020. speed: '6.04',
  1021. power: '567'
  1022. },
  1023. {
  1024. icon: '003',
  1025. id: 'A58',
  1026. speed: '6.04',
  1027. power: '567'
  1028. },
  1029. {
  1030. icon: '007',
  1031. id: 'A59',
  1032. speed: '6.04',
  1033. power: '567'
  1034. },
  1035. {
  1036. icon: '003',
  1037. id: 'A60',
  1038. speed: '6.04',
  1039. power: '567'
  1040. },
  1041. {
  1042. icon: '003',
  1043. id: 'A61',
  1044. speed: '6.04',
  1045. power: '567'
  1046. },
  1047. {
  1048. icon: '003',
  1049. id: 'A62',
  1050. speed: '6.04',
  1051. power: '567'
  1052. },
  1053. {
  1054. icon: '003',
  1055. id: 'A63',
  1056. speed: '6.04',
  1057. power: '567'
  1058. },
  1059. {
  1060. icon: '002',
  1061. id: 'A64',
  1062. speed: '6.04',
  1063. power: '567'
  1064. },
  1065. {
  1066. icon: '002',
  1067. id: 'A65',
  1068. speed: '6.04',
  1069. power: '567'
  1070. },
  1071. {
  1072. icon: '003',
  1073. id: 'A66',
  1074. speed: '6.04',
  1075. power: '567'
  1076. },
  1077. {
  1078. icon: '003',
  1079. id: 'A67',
  1080. speed: '6.04',
  1081. power: '567'
  1082. },
  1083. {
  1084. icon: '003',
  1085. id: 'A68',
  1086. speed: '6.04',
  1087. power: '567'
  1088. },
  1089. {
  1090. icon: '003',
  1091. id: 'A69',
  1092. speed: '6.04',
  1093. power: '567'
  1094. },
  1095. {
  1096. icon: '003',
  1097. id: 'A70',
  1098. speed: '6.04',
  1099. power: '567'
  1100. },
  1101. {
  1102. icon: '008',
  1103. id: 'A71',
  1104. speed: '6.04',
  1105. power: '567'
  1106. },
  1107. {
  1108. icon: '003',
  1109. id: 'A72',
  1110. speed: '6.04',
  1111. power: '567'
  1112. },
  1113. {
  1114. icon: '003',
  1115. id: 'A73',
  1116. speed: '6.04',
  1117. power: '567'
  1118. },
  1119. {
  1120. icon: '003',
  1121. id: 'A74',
  1122. speed: '6.04',
  1123. power: '567'
  1124. },
  1125. {
  1126. icon: '003',
  1127. id: 'A75',
  1128. speed: '6.04',
  1129. power: '567'
  1130. },
  1131. {
  1132. icon: '003',
  1133. id: 'A76',
  1134. speed: '6.04',
  1135. power: '567'
  1136. },
  1137. {
  1138. icon: '006',
  1139. id: 'A77',
  1140. speed: '6.04',
  1141. power: '567'
  1142. },
  1143. {
  1144. icon: '003',
  1145. id: 'A78',
  1146. speed: '6.04',
  1147. power: '567'
  1148. },
  1149. {
  1150. icon: '003',
  1151. id: 'A79',
  1152. speed: '6.04',
  1153. power: '567'
  1154. },
  1155. {
  1156. icon: '003',
  1157. id: 'A80',
  1158. speed: '6.04',
  1159. power: '567'
  1160. }
  1161. ],
  1162. windMotorMatrixDetail: [],
  1163. windMotorMatrixDetailJieAll: [],
  1164. jieRu: 0,
  1165. yunXing: 0,
  1166. daiJi: 0,
  1167. jianXiu: 0,
  1168. guZhang: 0,
  1169. xianDian: 0,
  1170. shouLei: 0,
  1171. liXian: 0
  1172. };
  1173. },
  1174. // onLoad(option) {
  1175. // this.option=option.option;
  1176. // if(option.option=="宁夏新能源公司"){
  1177. // this.windStation=["麻黄山风电场","牛首山风电场","石板泉风电场","青山风电场","香山风电场"];
  1178. // }
  1179. // if(option.option=="麻黄山"){
  1180. // this.windStation=["麻黄山风电场","麻黄山一期","麻黄山二期","麻黄山三期"];
  1181. // }
  1182. // this.windStationListHeight=(this.windStation.length*50+40)+"px"
  1183. // },
  1184. onShow: function() {
  1185. this.address = this.dataprocessing.getWindPowerStationName();
  1186. this.FDC = this.dataprocessing.getWindPowerStationId();
  1187. this.windPowerStationId = this.dataprocessing.getWindPowerStationId();
  1188. this.viewUserid();
  1189. this.monitoringAuthority();
  1190. },
  1191. created: function() {
  1192. this.viewUserid();
  1193. this.monitoringAuthority();
  1194. this.address = this.dataprocessing.getWindPowerStationName();
  1195. this.FDC = this.dataprocessing.getWindPowerStationId();
  1196. this.windPowerStationId = this.dataprocessing.getWindPowerStationId();
  1197. this.$nextTick(function() {
  1198. //this.getWeatherDataToday();
  1199. //this.getWeatherData7();
  1200. });
  1201. this.cWidth = uni.upx2px(2000);
  1202. this.cHeight = uni.upx2px(350);
  1203. this.cWidth40 = uni.upx2px(5000);
  1204. this.cHeight40 = uni.upx2px(350);
  1205. this.windStation = this.dataprocessing.getWindPowerStationNameByNames(this.address);
  1206. this.windStationName = this.windStation[0].replace('风电场', '');
  1207. this.windStationListHeight = this.windStation.length * 50 + 40 + 'px';
  1208. this.spopupWrapperHeight = this.windStation.length * 50 + 90 + 'px';
  1209. this.windowWidth = uni.getSystemInfoSync().windowWidth;
  1210. this.windowHeight = uni.getSystemInfoSync().windowHeight;
  1211. this.windMotorMatrixContainerHeight = this.windowHeight - 300 + 'px';
  1212. this.windMotorMatrixDetailAll = this.windMotorMatrixDetailMaHuagShan;
  1213. this.windMotorMatrixDetail = this.windMotorMatrixDetailAll;
  1214. this.windMotorMatrixListHeight =
  1215. 'calc(' + Math.ceil(this.windMotorMatrixDetail.length / 4) * 40 + 'px + ' + (Math.ceil(this.windMotorMatrixDetail.length /
  1216. 4) * 1 - 0.5) + '%)';
  1217. this.getWindMotorStatusCard();
  1218. this.getBackgroundColor();
  1219. },
  1220. computed: {
  1221. backStageIp: function() {
  1222. return this.$store.state.wholeSituationBackStageIp;
  1223. },
  1224. backStagePort: function() {
  1225. return this.$store.state.wholeSituationBackStagePort;
  1226. },
  1227. windpowerstationNameToId: function() {
  1228. return this.$store.state.windpowerstationNameToId;
  1229. }
  1230. },
  1231. methods: {
  1232. viewUserid: function() {
  1233. this.plusDrawerList = uni.getStorageSync('plusList');
  1234. },
  1235. monitoringAuthority: function() {
  1236. this.drawerList = uni.getStorageSync('leftlist1');
  1237. },
  1238. pushWindPowerStationNameToSessionStorage(windpowerstationName) {
  1239. uni.setStorageSync('windpowerstationName', windpowerstationName);
  1240. //sessionStorage.setItem('windpowerstationName', windpowerstationName);
  1241. //alert("v"+ sessionStorage.getItem("windpowerstationName"));
  1242. //this.common.goback('/pages/index/Index');
  1243. },
  1244. getWindPowerStationNameToSessionStorage() {
  1245. uni.getStorageSync('windpowerstationName');
  1246. return uni.getStorageSync('windpowerstationName');
  1247. },
  1248. openDrawer: function() {
  1249. //this.$refs.drawer.openDrawer(250, this.drawerList, this.inconList);
  1250. this.$refs.drawer.openDrawer(250, this.drawerList, this.inconList, this.leftNavigationtitle);
  1251. },
  1252. openPlusDrawer(e) {
  1253. this.modalName = e.currentTarget.dataset.target;
  1254. this.$refs.plusDrawer.showModal(this.plusDrawerList, this.modalName);
  1255. },
  1256. closePlusDrawer() {
  1257. this.modalName = null;
  1258. this.$refs.plusDrawer.hideModal(this.modalName);
  1259. },
  1260. showModal(e) {
  1261. this.modalName = e.currentTarget.dataset.target;
  1262. },
  1263. hideModal(e) {
  1264. this.modalName = null;
  1265. this.choiceIndex = -1;
  1266. },
  1267. showCardModal(modalName) {
  1268. this.modalName = modalName;
  1269. },
  1270. hideCardModal(e) {
  1271. this.modalName = null;
  1272. },
  1273. choiceWindStation: function(item, index) {
  1274. this.choiceIndex = index;
  1275. this.windStationName = item.replace('风电场', '');
  1276. this.modalWindStationName = item.replace('风电场', '');
  1277. this.address = item;
  1278. this.pushWindPowerStationNameToSessionStorage(item);
  1279. let _this = this;
  1280. setTimeout(function() {
  1281. // _this.hideModal();
  1282. _this.showCenterVisible = false;
  1283. _this.choiceIndex = -1;
  1284. _this.cardCur = index;
  1285. }, 1000);
  1286. this.FDC = this.dataprocessing.getWindPowerStationNameById(item);
  1287. this.dataprocessing.putWindPowerStationId(this.FDC);
  1288. },
  1289. getWindMotorStatusCard: function() {
  1290. this.jieRu = 0;
  1291. this.yunXing = 0;
  1292. this.daiJi = 0;
  1293. this.jianXiu = 0;
  1294. this.guZhang = 0;
  1295. this.xianDian = 0;
  1296. this.shouLei = 0;
  1297. this.liXian = 0;
  1298. this.jieRu = this.windMotorMatrixDetailAll.length;
  1299. for (let i = 0; i < this.windMotorMatrixDetailAll.length; i++) {
  1300. if (this.windMotorMatrixDetailAll[i].icon == '003') {
  1301. this.yunXing++;
  1302. }
  1303. if (this.windMotorMatrixDetailAll[i].icon == '002') {
  1304. this.daiJi++;
  1305. }
  1306. if (this.windMotorMatrixDetailAll[i].icon == '005') {
  1307. this.jianXiu++;
  1308. }
  1309. if (this.windMotorMatrixDetailAll[i].icon == '004') {
  1310. this.guZhang++;
  1311. }
  1312. if (this.windMotorMatrixDetailAll[i].icon == '008') {
  1313. this.xianDian++;
  1314. }
  1315. if (this.windMotorMatrixDetailAll[i].icon == '007') {
  1316. this.shouLei++;
  1317. }
  1318. if (this.windMotorMatrixDetailAll[i].icon == '006') {
  1319. this.liXian++;
  1320. }
  1321. }
  1322. },
  1323. clickWindMotorStatusCard: function(clickFlag) {
  1324. this.clickFlag = clickFlag;
  1325. if (clickFlag == 'jieRu') {
  1326. this.windMotorMatrixDetail = this.windMotorMatrixDetailAll;
  1327. this.getBackgroundColor();
  1328. }
  1329. if (clickFlag == 'yunXing') {
  1330. this.windMotorMatrixDetail = [];
  1331. for (let i = 0; i < this.windMotorMatrixDetailAll.length; i++) {
  1332. if (this.windMotorMatrixDetailAll[i].icon == '003') {
  1333. this.windMotorMatrixDetail.push(this.windMotorMatrixDetailAll[i]);
  1334. }
  1335. }
  1336. this.windMotorMatrixListHeight =
  1337. 'calc(' + Math.ceil(this.windMotorMatrixDetail.length / 4) * 40 + 'px + ' + Math.ceil(this.windMotorMatrixDetail
  1338. .length / 4) * 1 + '%)';
  1339. this.getBackgroundColor();
  1340. }
  1341. if (clickFlag == 'daiJi') {
  1342. this.windMotorMatrixDetail = [];
  1343. for (let i = 0; i < this.windMotorMatrixDetailAll.length; i++) {
  1344. if (this.windMotorMatrixDetailAll[i].icon == '002') {
  1345. this.windMotorMatrixDetail.push(this.windMotorMatrixDetailAll[i]);
  1346. }
  1347. }
  1348. this.windMotorMatrixListHeight =
  1349. 'calc(' + Math.ceil(this.windMotorMatrixDetail.length / 4) * 40 + 'px + ' + Math.ceil(this.windMotorMatrixDetail
  1350. .length / 4) * 1 + '%)';
  1351. this.getBackgroundColor();
  1352. }
  1353. if (clickFlag == 'jianXiu') {
  1354. this.windMotorMatrixDetail = [];
  1355. for (let i = 0; i < this.windMotorMatrixDetailAll.length; i++) {
  1356. if (this.windMotorMatrixDetailAll[i].icon == '005') {
  1357. this.windMotorMatrixDetail.push(this.windMotorMatrixDetailAll[i]);
  1358. }
  1359. }
  1360. this.windMotorMatrixListHeight =
  1361. 'calc(' + Math.ceil(this.windMotorMatrixDetail.length / 4) * 40 + 'px + ' + Math.ceil(this.windMotorMatrixDetail
  1362. .length / 4) * 1 + '%)';
  1363. this.getBackgroundColor();
  1364. }
  1365. if (clickFlag == 'guZhang') {
  1366. this.windMotorMatrixDetail = [];
  1367. for (let i = 0; i < this.windMotorMatrixDetailAll.length; i++) {
  1368. if (this.windMotorMatrixDetailAll[i].icon == '004') {
  1369. this.windMotorMatrixDetail.push(this.windMotorMatrixDetailAll[i]);
  1370. }
  1371. }
  1372. this.windMotorMatrixListHeight =
  1373. 'calc(' + Math.ceil(this.windMotorMatrixDetail.length / 4) * 40 + 'px + ' + Math.ceil(this.windMotorMatrixDetail
  1374. .length / 4) * 1 + '%)';
  1375. this.getBackgroundColor();
  1376. }
  1377. if (clickFlag == 'xianDian') {
  1378. this.windMotorMatrixDetail = [];
  1379. for (let i = 0; i < this.windMotorMatrixDetailAll.length; i++) {
  1380. if (this.windMotorMatrixDetailAll[i].icon == '008') {
  1381. this.windMotorMatrixDetail.push(this.windMotorMatrixDetailAll[i]);
  1382. }
  1383. }
  1384. this.windMotorMatrixListHeight =
  1385. 'calc(' + Math.ceil(this.windMotorMatrixDetail.length / 4) * 40 + 'px + ' + Math.ceil(this.windMotorMatrixDetail
  1386. .length / 4) * 1 + '%)';
  1387. this.getBackgroundColor();
  1388. }
  1389. if (clickFlag == 'shouLei') {
  1390. this.windMotorMatrixDetail = [];
  1391. for (let i = 0; i < this.windMotorMatrixDetailAll.length; i++) {
  1392. if (this.windMotorMatrixDetailAll[i].icon == '007') {
  1393. this.windMotorMatrixDetail.push(this.windMotorMatrixDetailAll[i]);
  1394. }
  1395. }
  1396. this.windMotorMatrixListHeight =
  1397. 'calc(' + Math.ceil(this.windMotorMatrixDetail.length / 4) * 40 + 'px + ' + Math.ceil(this.windMotorMatrixDetail
  1398. .length / 4) * 1 + '%)';
  1399. this.getBackgroundColor();
  1400. }
  1401. if (clickFlag == 'liXian') {
  1402. this.windMotorMatrixDetail = [];
  1403. for (let i = 0; i < this.windMotorMatrixDetailAll.length; i++) {
  1404. if (this.windMotorMatrixDetailAll[i].icon == '006') {
  1405. this.windMotorMatrixDetail.push(this.windMotorMatrixDetailAll[i]);
  1406. }
  1407. }
  1408. this.windMotorMatrixListHeight =
  1409. 'calc(' + Math.ceil(this.windMotorMatrixDetail.length / 4) * 40 + 'px + ' + Math.ceil(this.windMotorMatrixDetail
  1410. .length / 4) * 1 + '%)';
  1411. this.getBackgroundColor();
  1412. }
  1413. },
  1414. cardSwiper(e) {
  1415. let _this = this;
  1416. this.cardCur = e.detail.current;
  1417. for (let i = 0; i < this.windStation.length; i++) {
  1418. if (this.cardCur == i) {
  1419. if (this.windStation[i].search('风电场') != -1) {
  1420. this.windStationName = this.windStation[i].replace('风电场', '');
  1421. } else {
  1422. this.windStationName = this.windStation[i];
  1423. }
  1424. this.modalWindStationName = this.windStation[i];
  1425. this.windMotorMatrixDetailAll = this.windMotorMatrixDetailMaHuagShan;
  1426. this.getWindMotorStatusCard();
  1427. this.clickWindMotorStatusCard(this.clickFlag);
  1428. this.getBackgroundColor();
  1429. this.showCardModal('Modal');
  1430. setTimeout(function() {
  1431. _this.hideCardModal();
  1432. }, 1000);
  1433. }
  1434. }
  1435. },
  1436. getBackgroundColor: function() {
  1437. this.detailBackgroundColor = [];
  1438. for (let i = 0; i < this.windMotorMatrixDetail.length; i++) {
  1439. if (this.windMotorMatrixDetail[i].icon == '002') {
  1440. this.detailBackgroundColor.push('#00E086');
  1441. }
  1442. if (this.windMotorMatrixDetail[i].icon == '003') {
  1443. this.detailBackgroundColor.push('#2675F6');
  1444. }
  1445. if (this.windMotorMatrixDetail[i].icon == '004') {
  1446. this.detailBackgroundColor.push('#F14E51');
  1447. }
  1448. if (this.windMotorMatrixDetail[i].icon == '005') {
  1449. this.detailBackgroundColor.push('#FF6B3E');
  1450. }
  1451. if (this.windMotorMatrixDetail[i].icon == '006') {
  1452. this.detailBackgroundColor.push('#686868');
  1453. }
  1454. if (this.windMotorMatrixDetail[i].icon == '007') {
  1455. this.detailBackgroundColor.push('#41346C');
  1456. }
  1457. if (this.windMotorMatrixDetail[i].icon == '008') {
  1458. this.detailBackgroundColor.push('#CC3399');
  1459. }
  1460. }
  1461. }
  1462. }
  1463. };
  1464. </script>
  1465. <style>
  1466. @font-face {
  1467. font-family: '方正兰亭细黑_GBK';
  1468. src: url(../../static/fzltxh.TTF);
  1469. }
  1470. /* body {
  1471. font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', STHeiti, 'Microsoft Yahei', Tahoma, Simsun, sans-serif;
  1472. font-size: 20px;
  1473. color: silver;
  1474. background: #000;
  1475. } */
  1476. page {
  1477. font-family: '方正兰亭细黑_GBK';
  1478. background-color: #1f1f1f;
  1479. color: silver;
  1480. }
  1481. .top {
  1482. width: 100%;
  1483. height: 130upx;
  1484. padding-top: 5upx;
  1485. background-color: #1f1f1f;
  1486. position: fixed;
  1487. top: 0px;
  1488. left: 0px;
  1489. z-index: 100;
  1490. }
  1491. .threeLine {
  1492. width: 50px;
  1493. height: 45px;
  1494. float: left;
  1495. }
  1496. .text {
  1497. width: calc(100% - 100px);
  1498. height: 45px;
  1499. float: left;
  1500. user-select: text;
  1501. -webkit-user-select: text;
  1502. -moz-user-select: text;
  1503. -ms-user-select: text;
  1504. color: silver;
  1505. line-height: 45px;
  1506. margin-top: 11px;
  1507. font-size: 18px;
  1508. }
  1509. .notice {
  1510. width: 50px;
  1511. height: 45px;
  1512. float: left;
  1513. }
  1514. .plus {
  1515. width: 50px;
  1516. height: 45px;
  1517. float: right;
  1518. color: white;
  1519. font-size: 35px;
  1520. line-height: 45px;
  1521. text-align: center;
  1522. margin-top: 11px;
  1523. }
  1524. .textWindpowerstation {
  1525. width: 180px;
  1526. height: 45px;
  1527. float: left;
  1528. text-align: center;
  1529. margin-left: 18px;
  1530. }
  1531. .DrawerPage {
  1532. position: fixed;
  1533. width: 100vw;
  1534. height: 100vh;
  1535. left: 0vw;
  1536. background-color: #1f1f1f;
  1537. transition: all 0.4s;
  1538. }
  1539. .DrawerPage.show {
  1540. transform: scale(0.9, 0.9);
  1541. left: 85vw;
  1542. box-shadow: 0 0 60upx rgba(0, 0, 0, 0.2);
  1543. transform-origin: 0;
  1544. }
  1545. .DrawerWindow {
  1546. position: absolute;
  1547. width: 85vw;
  1548. height: 100vh;
  1549. left: 0;
  1550. top: 0;
  1551. transform: scale(0.9, 0.9) translateX(-100%);
  1552. opacity: 0;
  1553. pointer-events: none;
  1554. transition: all 0.4s;
  1555. padding: 100upx 0;
  1556. }
  1557. .DrawerWindow.show {
  1558. transform: scale(1, 1) translateX(0%);
  1559. opacity: 1;
  1560. pointer-events: all;
  1561. }
  1562. .DrawerClose {
  1563. position: absolute;
  1564. width: 40vw;
  1565. height: 100vh;
  1566. right: 0;
  1567. top: 0;
  1568. color: transparent;
  1569. padding-bottom: 30upx;
  1570. display: flex;
  1571. align-items: flex-end;
  1572. justify-content: center;
  1573. background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.6));
  1574. letter-spacing: 5px;
  1575. font-size: 50upx;
  1576. opacity: 0;
  1577. pointer-events: none;
  1578. transition: all 0.4s;
  1579. }
  1580. .DrawerClose.show {
  1581. opacity: 1;
  1582. pointer-events: all;
  1583. width: 15vw;
  1584. color: #fff;
  1585. }
  1586. .DrawerPage .cu-bar.tabbar .action button.cuIcon {
  1587. width: 64upx;
  1588. height: 64upx;
  1589. line-height: 64upx;
  1590. margin: 0;
  1591. display: inline-block;
  1592. }
  1593. .DrawerPage .cu-bar.tabbar .action .cu-avatar {
  1594. margin: 0;
  1595. }
  1596. .DrawerPage .nav {
  1597. flex: 1;
  1598. }
  1599. .DrawerPage .nav .cu-item.cur {
  1600. border-bottom: 0;
  1601. position: relative;
  1602. }
  1603. .DrawerPage .nav .cu-item.cur::after {
  1604. content: '';
  1605. width: 10upx;
  1606. height: 10upx;
  1607. background-color: currentColor;
  1608. position: absolute;
  1609. bottom: 10upx;
  1610. border-radius: 10upx;
  1611. left: 0;
  1612. right: 0;
  1613. margin: auto;
  1614. }
  1615. .DrawerPage .cu-bar.tabbar .action {
  1616. flex: initial;
  1617. }
  1618. .windStationNameAndChoice {
  1619. clear: both;
  1620. width: 100%;
  1621. height: 50px;
  1622. margin-top: 71px;
  1623. /* border: 1px solid red; */
  1624. }
  1625. .windStationName {
  1626. width: 70%;
  1627. height: 100%;
  1628. float: left;
  1629. line-height: 50px;
  1630. font-size: 16px;
  1631. margin-left: 4%;
  1632. }
  1633. .windStationChoice {
  1634. width: 20%;
  1635. height: 100%;
  1636. float: right;
  1637. text-align: right;
  1638. line-height: 50px;
  1639. font-size: 14px;
  1640. margin-right: 9px;
  1641. }
  1642. .windStationList {
  1643. width: 100%;
  1644. height: 290px;
  1645. }
  1646. .windStationItemContainer {
  1647. width: 100%;
  1648. }
  1649. .windStationItemContainerBlack {
  1650. width: 100%;
  1651. background-color: grey;
  1652. color: white;
  1653. }
  1654. .windStationItem {
  1655. width: 80%;
  1656. height: 50px;
  1657. border-bottom: 1px solid #c8c8c8;
  1658. text-align: left;
  1659. line-height: 50px;
  1660. margin-left: 10%;
  1661. color: #333333;
  1662. }
  1663. .cu-dialog {
  1664. width: 70%;
  1665. }
  1666. .cu-bar .content {
  1667. width: 100%;
  1668. margin-left: 10%;
  1669. }
  1670. .windMotorStatusContainer {
  1671. width: 95%;
  1672. height: 120px;
  1673. background-color: #242424;
  1674. color: white;
  1675. font-size: 14px;
  1676. margin-left: 2.5%;
  1677. }
  1678. .windMotorStatusCardJieRu {
  1679. width: 22%;
  1680. height: 45px;
  1681. margin-left: 1.5%;
  1682. margin-right: 1.5%;
  1683. margin-top: 10px;
  1684. float: left;
  1685. background-color: #c2c2c2;
  1686. line-height: 45px;
  1687. }
  1688. .windMotorStatusCardYunXing {
  1689. width: 22%;
  1690. height: 45px;
  1691. margin-left: 1.5%;
  1692. margin-right: 1.5%;
  1693. margin-top: 10px;
  1694. float: left;
  1695. background-color: #2675f6;
  1696. line-height: 45px;
  1697. }
  1698. .windMotorStatusCardDaiJi {
  1699. width: 22%;
  1700. height: 45px;
  1701. margin-left: 1.5%;
  1702. margin-right: 1.5%;
  1703. margin-top: 10px;
  1704. float: left;
  1705. background-color: #00e086;
  1706. line-height: 45px;
  1707. }
  1708. .windMotorStatusCardJianXiu {
  1709. width: 22%;
  1710. height: 45px;
  1711. margin-left: 1.5%;
  1712. margin-right: 1.5%;
  1713. margin-top: 10px;
  1714. float: left;
  1715. background-color: #ff6b3e;
  1716. line-height: 45px;
  1717. }
  1718. .windMotorStatusCardGuZhang {
  1719. width: 22%;
  1720. height: 45px;
  1721. margin-left: 1.5%;
  1722. margin-right: 1.5%;
  1723. margin-top: 10px;
  1724. float: left;
  1725. background-color: #f14e51;
  1726. line-height: 45px;
  1727. }
  1728. .windMotorStatusCardXianDian {
  1729. width: 22%;
  1730. height: 45px;
  1731. margin-left: 1.5%;
  1732. margin-right: 1.5%;
  1733. margin-top: 10px;
  1734. float: left;
  1735. background-color: #cc3399;
  1736. line-height: 45px;
  1737. }
  1738. .windMotorStatusCardShouLei {
  1739. width: 22%;
  1740. height: 45px;
  1741. margin-left: 1.5%;
  1742. margin-right: 1.5%;
  1743. margin-top: 10px;
  1744. float: left;
  1745. background-color: #41346c;
  1746. line-height: 45px;
  1747. }
  1748. .windMotorStatusCardLiXian {
  1749. width: 22%;
  1750. height: 45px;
  1751. margin-left: 1.5%;
  1752. margin-right: 1.5%;
  1753. margin-top: 10px;
  1754. float: left;
  1755. background-color: #686868;
  1756. line-height: 45px;
  1757. }
  1758. .windMotorStatusCardIcon {
  1759. width: 25px;
  1760. height: 25px;
  1761. margin-top: 10px;
  1762. float: left;
  1763. }
  1764. .windMotorStatusCardJieRuRed {
  1765. width: 22%;
  1766. height: 45px;
  1767. margin-left: 1.5%;
  1768. margin-right: 1.5%;
  1769. margin-top: 10px;
  1770. float: left;
  1771. background-color: #c2c2c2;
  1772. line-height: 45px;
  1773. color: black;
  1774. /* border: 1px solid red; */
  1775. }
  1776. .windMotorStatusCardYunXingRed {
  1777. width: 22%;
  1778. height: 45px;
  1779. margin-left: 1.5%;
  1780. margin-right: 1.5%;
  1781. margin-top: 10px;
  1782. float: left;
  1783. background-color: #2675f6;
  1784. line-height: 45px;
  1785. color: black;
  1786. /* border: 1px solid red; */
  1787. }
  1788. .windMotorStatusCardDaiJiRed {
  1789. width: 22%;
  1790. height: 45px;
  1791. margin-left: 1.5%;
  1792. margin-right: 1.5%;
  1793. margin-top: 10px;
  1794. float: left;
  1795. background-color: #00e086;
  1796. line-height: 45px;
  1797. color: black;
  1798. /* border: 1px solid red; */
  1799. }
  1800. .windMotorStatusCardJianXiuRed {
  1801. width: 22%;
  1802. height: 45px;
  1803. margin-left: 1.5%;
  1804. margin-right: 1.5%;
  1805. margin-top: 10px;
  1806. float: left;
  1807. background-color: #ff6b3e;
  1808. line-height: 45px;
  1809. color: black;
  1810. /* border: 1px solid red; */
  1811. }
  1812. .windMotorStatusCardGuZhangRed {
  1813. width: 22%;
  1814. height: 45px;
  1815. margin-left: 1.5%;
  1816. margin-right: 1.5%;
  1817. margin-top: 10px;
  1818. float: left;
  1819. background-color: #f14e51;
  1820. line-height: 45px;
  1821. color: black;
  1822. /* border: 1px solid red; */
  1823. }
  1824. .windMotorStatusCardXianDianRed {
  1825. width: 22%;
  1826. height: 45px;
  1827. margin-left: 1.5%;
  1828. margin-right: 1.5%;
  1829. margin-top: 10px;
  1830. float: left;
  1831. background-color: #cc3399;
  1832. line-height: 45px;
  1833. color: black;
  1834. /* border: 1px solid red; */
  1835. }
  1836. .windMotorStatusCardShouLeiRed {
  1837. width: 22%;
  1838. height: 45px;
  1839. margin-left: 1.5%;
  1840. margin-right: 1.5%;
  1841. margin-top: 10px;
  1842. float: left;
  1843. background-color: #41346c;
  1844. line-height: 45px;
  1845. color: black;
  1846. /* border: 1px solid red; */
  1847. }
  1848. .windMotorStatusCardLiXianRed {
  1849. width: 22%;
  1850. height: 45px;
  1851. margin-left: 1.5%;
  1852. margin-right: 1.5%;
  1853. margin-top: 10px;
  1854. float: left;
  1855. background-color: #686868;
  1856. line-height: 45px;
  1857. color: black;
  1858. /* border: 1px solid red; */
  1859. }
  1860. .card-swiper {
  1861. height: 40px !important;
  1862. }
  1863. .windMotorMatrixContainer {
  1864. width: 95%;
  1865. height: 400px;
  1866. background-color: #242424;
  1867. margin-left: 2.5%;
  1868. }
  1869. .windMotorMatrixList {
  1870. width: 100%;
  1871. height: calc(900px + 20%);
  1872. }
  1873. .windMotorMatrixDetail {
  1874. width: 24%;
  1875. height: 40px;
  1876. margin: 0.5%;
  1877. float: left;
  1878. color: white;
  1879. }
  1880. .windMotorMatrixDetailIcon {
  1881. width: 25px;
  1882. height: 25px;
  1883. float: left;
  1884. }
  1885. .windMotorMatrixDetailSpeed {
  1886. width: calc(100% - 26px);
  1887. height: 25px;
  1888. float: left;
  1889. text-align: right;
  1890. line-height: 25px;
  1891. font-size: 13px;
  1892. margin-right: 1px;
  1893. }
  1894. .windMotorMatrixDetailId {
  1895. width: 25px;
  1896. height: 20px;
  1897. float: left;
  1898. line-height: 10px;
  1899. text-align: left;
  1900. font-size: 13px;
  1901. margin-left: 3px;
  1902. }
  1903. .windMotorMatrixDetailPower {
  1904. width: calc(100% - 29px);
  1905. height: 20px;
  1906. float: left;
  1907. line-height: 10px;
  1908. text-align: right;
  1909. font-size: 13px;
  1910. margin-right: 1px;
  1911. }
  1912. /* .center-popup {
  1913. // #ifdef H5
  1914. /deep/.s-popup-wrapper {
  1915. width: 500rpx;
  1916. height: 500rpx;
  1917. background-color: #f0f0f0;
  1918. }
  1919. // #endif
  1920. } */
  1921. .s-popup-wrapper {
  1922. width: 500rpx;
  1923. background-color: #f0f0f0;
  1924. }
  1925. .s-popup-title {
  1926. width: 100%;
  1927. height: 50px;
  1928. background-color: #211E21;
  1929. }
  1930. .s-popup-word {
  1931. width: calc(100% - 65px);
  1932. height: 50px;
  1933. font-size: 14px;
  1934. color: white;
  1935. line-height: 50px;
  1936. float: left;
  1937. margin-left: 25px;
  1938. }
  1939. .s-popup-cha {
  1940. width: 40px;
  1941. height: 50px;
  1942. text-align: center;
  1943. line-height: 50px;
  1944. float: right;
  1945. font-size: 24px;
  1946. }
  1947. </style>