MatrixMonitor.vue 42 KB

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