MatrixMonitor.vue 43 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018
  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() {
  1185. this.address = this.dataprocessing.getWindPowerStationName();
  1186. this.FDC = this.dataprocessing.getWindPowerStationId();
  1187. this.windPowerStationId = this.dataprocessing.getWindPowerStationId();
  1188. },
  1189. created: function() {
  1190. this.viewUserid();
  1191. this.monitoringAuthority();
  1192. this.address = this.dataprocessing.getWindPowerStationName();
  1193. this.FDC = this.dataprocessing.getWindPowerStationId();
  1194. this.windPowerStationId = this.dataprocessing.getWindPowerStationId();
  1195. this.$nextTick(function() {
  1196. //this.getWeatherDataToday();
  1197. //this.getWeatherData7();
  1198. });
  1199. this.cWidth = uni.upx2px(2000);
  1200. this.cHeight = uni.upx2px(350);
  1201. this.cWidth40 = uni.upx2px(5000);
  1202. this.cHeight40 = uni.upx2px(350);
  1203. this.windStation = this.dataprocessing.getWindPowerStationNameByNames(this.address);
  1204. this.windStationName = this.windStation[0].replace('风电场', '');
  1205. this.windStationListHeight = this.windStation.length * 50 + 40 + 'px';
  1206. this.spopupWrapperHeight = this.windStation.length * 50 + 90 + 'px';
  1207. this.windowWidth = uni.getSystemInfoSync().windowWidth;
  1208. this.windowHeight = uni.getSystemInfoSync().windowHeight;
  1209. this.windMotorMatrixContainerHeight = this.windowHeight - 300 + 'px';
  1210. this.windMotorMatrixDetailAll = this.windMotorMatrixDetailMaHuagShan;
  1211. this.windMotorMatrixDetail = this.windMotorMatrixDetailAll;
  1212. this.windMotorMatrixListHeight =
  1213. 'calc(' + Math.ceil(this.windMotorMatrixDetail.length / 4) * 40 + 'px + ' + (Math.ceil(this.windMotorMatrixDetail.length /
  1214. 4) * 1 - 0.5) + '%)';
  1215. this.getWindMotorStatusCard();
  1216. this.getBackgroundColor();
  1217. },
  1218. computed: {
  1219. backStageIp: function() {
  1220. return this.$store.state.wholeSituationBackStageIp;
  1221. },
  1222. backStagePort: function() {
  1223. return this.$store.state.wholeSituationBackStagePort;
  1224. },
  1225. windpowerstationNameToId: function() {
  1226. return this.$store.state.windpowerstationNameToId;
  1227. }
  1228. },
  1229. methods: {
  1230. viewUserid: function() {
  1231. this.plusDrawerList=uni.getStorageSync('plusList_we');
  1232. },
  1233. monitoringAuthority: function() {
  1234. this.drawerList=uni.getStorageSync('leftlist3');
  1235. },
  1236. pushWindPowerStationNameToSessionStorage(windpowerstationName) {
  1237. uni.setStorageSync('windpowerstationName', windpowerstationName);
  1238. //sessionStorage.setItem('windpowerstationName', windpowerstationName);
  1239. //alert("v"+ sessionStorage.getItem("windpowerstationName"));
  1240. //this.common.goback('/pages/index/Index');
  1241. },
  1242. getWindPowerStationNameToSessionStorage() {
  1243. uni.getStorageSync('windpowerstationName');
  1244. return uni.getStorageSync('windpowerstationName');
  1245. },
  1246. openDrawer: function() {
  1247. //this.$refs.drawer.openDrawer(250, this.drawerList, this.inconList);
  1248. this.$refs.drawer.openDrawer(250, this.drawerList, this.inconList,this.leftNavigationtitle);
  1249. },
  1250. openPlusDrawer(e) {
  1251. this.modalName = e.currentTarget.dataset.target;
  1252. this.$refs.plusDrawer.showModal(this.plusDrawerList, this.modalName);
  1253. },
  1254. closePlusDrawer() {
  1255. this.modalName = null;
  1256. this.$refs.plusDrawer.hideModal(this.modalName);
  1257. },
  1258. showModal(e) {
  1259. this.modalName = e.currentTarget.dataset.target;
  1260. },
  1261. hideModal(e) {
  1262. this.modalName = null;
  1263. this.choiceIndex = -1;
  1264. },
  1265. showCardModal(modalName) {
  1266. this.modalName = modalName;
  1267. },
  1268. hideCardModal(e) {
  1269. this.modalName = null;
  1270. },
  1271. choiceWindStation: function(item, index) {
  1272. this.choiceIndex = index;
  1273. this.windStationName = item.replace('风电场', '');
  1274. this.modalWindStationName = item.replace('风电场', '');
  1275. this.address = item;
  1276. this.pushWindPowerStationNameToSessionStorage(item);
  1277. let _this = this;
  1278. setTimeout(function() {
  1279. // _this.hideModal();
  1280. _this.showCenterVisible = false;
  1281. _this.choiceIndex = -1;
  1282. _this.cardCur = index;
  1283. }, 1000);
  1284. this.FDC =this.dataprocessing.getWindPowerStationNameById(item);
  1285. this.dataprocessing.putWindPowerStationId(this.FDC);
  1286. },
  1287. getWindMotorStatusCard: function() {
  1288. this.jieRu = 0;
  1289. this.yunXing = 0;
  1290. this.daiJi = 0;
  1291. this.jianXiu = 0;
  1292. this.guZhang = 0;
  1293. this.xianDian = 0;
  1294. this.shouLei = 0;
  1295. this.liXian = 0;
  1296. this.jieRu = this.windMotorMatrixDetailAll.length;
  1297. for (let i = 0; i < this.windMotorMatrixDetailAll.length; i++) {
  1298. if (this.windMotorMatrixDetailAll[i].icon == '003') {
  1299. this.yunXing++;
  1300. }
  1301. if (this.windMotorMatrixDetailAll[i].icon == '002') {
  1302. this.daiJi++;
  1303. }
  1304. if (this.windMotorMatrixDetailAll[i].icon == '005') {
  1305. this.jianXiu++;
  1306. }
  1307. if (this.windMotorMatrixDetailAll[i].icon == '004') {
  1308. this.guZhang++;
  1309. }
  1310. if (this.windMotorMatrixDetailAll[i].icon == '008') {
  1311. this.xianDian++;
  1312. }
  1313. if (this.windMotorMatrixDetailAll[i].icon == '007') {
  1314. this.shouLei++;
  1315. }
  1316. if (this.windMotorMatrixDetailAll[i].icon == '006') {
  1317. this.liXian++;
  1318. }
  1319. }
  1320. },
  1321. clickWindMotorStatusCard: function(clickFlag) {
  1322. this.clickFlag = clickFlag;
  1323. if (clickFlag == 'jieRu') {
  1324. this.windMotorMatrixDetail = this.windMotorMatrixDetailAll;
  1325. this.getBackgroundColor();
  1326. }
  1327. if (clickFlag == 'yunXing') {
  1328. this.windMotorMatrixDetail = [];
  1329. for (let i = 0; i < this.windMotorMatrixDetailAll.length; i++) {
  1330. if (this.windMotorMatrixDetailAll[i].icon == '003') {
  1331. this.windMotorMatrixDetail.push(this.windMotorMatrixDetailAll[i]);
  1332. }
  1333. }
  1334. this.windMotorMatrixListHeight =
  1335. 'calc(' + Math.ceil(this.windMotorMatrixDetail.length / 4) * 40 + 'px + ' + Math.ceil(this.windMotorMatrixDetail
  1336. .length / 4) * 1 + '%)';
  1337. this.getBackgroundColor();
  1338. }
  1339. if (clickFlag == 'daiJi') {
  1340. this.windMotorMatrixDetail = [];
  1341. for (let i = 0; i < this.windMotorMatrixDetailAll.length; i++) {
  1342. if (this.windMotorMatrixDetailAll[i].icon == '002') {
  1343. this.windMotorMatrixDetail.push(this.windMotorMatrixDetailAll[i]);
  1344. }
  1345. }
  1346. this.windMotorMatrixListHeight =
  1347. 'calc(' + Math.ceil(this.windMotorMatrixDetail.length / 4) * 40 + 'px + ' + Math.ceil(this.windMotorMatrixDetail
  1348. .length / 4) * 1 + '%)';
  1349. this.getBackgroundColor();
  1350. }
  1351. if (clickFlag == 'jianXiu') {
  1352. this.windMotorMatrixDetail = [];
  1353. for (let i = 0; i < this.windMotorMatrixDetailAll.length; i++) {
  1354. if (this.windMotorMatrixDetailAll[i].icon == '005') {
  1355. this.windMotorMatrixDetail.push(this.windMotorMatrixDetailAll[i]);
  1356. }
  1357. }
  1358. this.windMotorMatrixListHeight =
  1359. 'calc(' + Math.ceil(this.windMotorMatrixDetail.length / 4) * 40 + 'px + ' + Math.ceil(this.windMotorMatrixDetail
  1360. .length / 4) * 1 + '%)';
  1361. this.getBackgroundColor();
  1362. }
  1363. if (clickFlag == 'guZhang') {
  1364. this.windMotorMatrixDetail = [];
  1365. for (let i = 0; i < this.windMotorMatrixDetailAll.length; i++) {
  1366. if (this.windMotorMatrixDetailAll[i].icon == '004') {
  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
  1372. .length / 4) * 1 + '%)';
  1373. this.getBackgroundColor();
  1374. }
  1375. if (clickFlag == 'xianDian') {
  1376. this.windMotorMatrixDetail = [];
  1377. for (let i = 0; i < this.windMotorMatrixDetailAll.length; i++) {
  1378. if (this.windMotorMatrixDetailAll[i].icon == '008') {
  1379. this.windMotorMatrixDetail.push(this.windMotorMatrixDetailAll[i]);
  1380. }
  1381. }
  1382. this.windMotorMatrixListHeight =
  1383. 'calc(' + Math.ceil(this.windMotorMatrixDetail.length / 4) * 40 + 'px + ' + Math.ceil(this.windMotorMatrixDetail
  1384. .length / 4) * 1 + '%)';
  1385. this.getBackgroundColor();
  1386. }
  1387. if (clickFlag == 'shouLei') {
  1388. this.windMotorMatrixDetail = [];
  1389. for (let i = 0; i < this.windMotorMatrixDetailAll.length; i++) {
  1390. if (this.windMotorMatrixDetailAll[i].icon == '007') {
  1391. this.windMotorMatrixDetail.push(this.windMotorMatrixDetailAll[i]);
  1392. }
  1393. }
  1394. this.windMotorMatrixListHeight =
  1395. 'calc(' + Math.ceil(this.windMotorMatrixDetail.length / 4) * 40 + 'px + ' + Math.ceil(this.windMotorMatrixDetail
  1396. .length / 4) * 1 + '%)';
  1397. this.getBackgroundColor();
  1398. }
  1399. if (clickFlag == 'liXian') {
  1400. this.windMotorMatrixDetail = [];
  1401. for (let i = 0; i < this.windMotorMatrixDetailAll.length; i++) {
  1402. if (this.windMotorMatrixDetailAll[i].icon == '006') {
  1403. this.windMotorMatrixDetail.push(this.windMotorMatrixDetailAll[i]);
  1404. }
  1405. }
  1406. this.windMotorMatrixListHeight =
  1407. 'calc(' + Math.ceil(this.windMotorMatrixDetail.length / 4) * 40 + 'px + ' + Math.ceil(this.windMotorMatrixDetail
  1408. .length / 4) * 1 + '%)';
  1409. this.getBackgroundColor();
  1410. }
  1411. },
  1412. cardSwiper(e) {
  1413. let _this = this;
  1414. this.cardCur = e.detail.current;
  1415. for (let i = 0; i < this.windStation.length; i++) {
  1416. if (this.cardCur == i) {
  1417. if (this.windStation[i].search('风电场') != -1) {
  1418. this.windStationName = this.windStation[i].replace('风电场', '');
  1419. } else {
  1420. this.windStationName = this.windStation[i];
  1421. }
  1422. this.modalWindStationName = this.windStation[i];
  1423. this.windMotorMatrixDetailAll = this.windMotorMatrixDetailMaHuagShan;
  1424. this.getWindMotorStatusCard();
  1425. this.clickWindMotorStatusCard(this.clickFlag);
  1426. this.getBackgroundColor();
  1427. this.showCardModal('Modal');
  1428. setTimeout(function() {
  1429. _this.hideCardModal();
  1430. }, 1000);
  1431. }
  1432. }
  1433. },
  1434. getBackgroundColor: function() {
  1435. this.detailBackgroundColor = [];
  1436. for (let i = 0; i < this.windMotorMatrixDetail.length; i++) {
  1437. if (this.windMotorMatrixDetail[i].icon == '002') {
  1438. this.detailBackgroundColor.push('#00E086');
  1439. }
  1440. if (this.windMotorMatrixDetail[i].icon == '003') {
  1441. this.detailBackgroundColor.push('#2675F6');
  1442. }
  1443. if (this.windMotorMatrixDetail[i].icon == '004') {
  1444. this.detailBackgroundColor.push('#F14E51');
  1445. }
  1446. if (this.windMotorMatrixDetail[i].icon == '005') {
  1447. this.detailBackgroundColor.push('#FF6B3E');
  1448. }
  1449. if (this.windMotorMatrixDetail[i].icon == '006') {
  1450. this.detailBackgroundColor.push('#686868');
  1451. }
  1452. if (this.windMotorMatrixDetail[i].icon == '007') {
  1453. this.detailBackgroundColor.push('#41346C');
  1454. }
  1455. if (this.windMotorMatrixDetail[i].icon == '008') {
  1456. this.detailBackgroundColor.push('#CC3399');
  1457. }
  1458. }
  1459. }
  1460. }
  1461. };
  1462. </script>
  1463. <style>
  1464. @font-face {
  1465. font-family: '方正兰亭细黑_GBK';
  1466. src: url(../../static/fzltxh.TTF);
  1467. }
  1468. /* body {
  1469. font-family: -apple-system, BlinkMacSystemFont, 'PingFang SC', 'Helvetica Neue', STHeiti, 'Microsoft Yahei', Tahoma, Simsun, sans-serif;
  1470. font-size: 20px;
  1471. color: silver;
  1472. background: #000;
  1473. } */
  1474. page {
  1475. font-family: '方正兰亭细黑_GBK';
  1476. background-color: #1f1f1f;
  1477. color: silver;
  1478. }
  1479. .top {
  1480. width: 100%;
  1481. height: 130upx;
  1482. padding-top: 5upx;
  1483. background-color: #1f1f1f;
  1484. position: fixed;
  1485. top: 0px;
  1486. left: 0px;
  1487. z-index: 100;
  1488. }
  1489. .threeLine {
  1490. width: 50px;
  1491. height: 45px;
  1492. float: left;
  1493. }
  1494. .text {
  1495. width: calc(100% - 100px);
  1496. height: 45px;
  1497. float: left;
  1498. user-select: text;
  1499. -webkit-user-select: text;
  1500. -moz-user-select: text;
  1501. -ms-user-select: text;
  1502. color: silver;
  1503. line-height: 45px;
  1504. margin-top: 11px;
  1505. font-size: 18px;
  1506. }
  1507. .notice {
  1508. width: 50px;
  1509. height: 45px;
  1510. float: left;
  1511. }
  1512. .plus {
  1513. width: 50px;
  1514. height: 45px;
  1515. float: right;
  1516. color: white;
  1517. font-size: 35px;
  1518. line-height: 45px;
  1519. text-align: center;
  1520. margin-top: 11px;
  1521. }
  1522. .textWindpowerstation {
  1523. width: 180px;
  1524. height: 45px;
  1525. float: left;
  1526. text-align: center;
  1527. margin-left: 18px;
  1528. }
  1529. .DrawerPage {
  1530. position: fixed;
  1531. width: 100vw;
  1532. height: 100vh;
  1533. left: 0vw;
  1534. background-color: #1f1f1f;
  1535. transition: all 0.4s;
  1536. }
  1537. .DrawerPage.show {
  1538. transform: scale(0.9, 0.9);
  1539. left: 85vw;
  1540. box-shadow: 0 0 60upx rgba(0, 0, 0, 0.2);
  1541. transform-origin: 0;
  1542. }
  1543. .DrawerWindow {
  1544. position: absolute;
  1545. width: 85vw;
  1546. height: 100vh;
  1547. left: 0;
  1548. top: 0;
  1549. transform: scale(0.9, 0.9) translateX(-100%);
  1550. opacity: 0;
  1551. pointer-events: none;
  1552. transition: all 0.4s;
  1553. padding: 100upx 0;
  1554. }
  1555. .DrawerWindow.show {
  1556. transform: scale(1, 1) translateX(0%);
  1557. opacity: 1;
  1558. pointer-events: all;
  1559. }
  1560. .DrawerClose {
  1561. position: absolute;
  1562. width: 40vw;
  1563. height: 100vh;
  1564. right: 0;
  1565. top: 0;
  1566. color: transparent;
  1567. padding-bottom: 30upx;
  1568. display: flex;
  1569. align-items: flex-end;
  1570. justify-content: center;
  1571. background-image: linear-gradient(90deg, rgba(0, 0, 0, 0.01), rgba(0, 0, 0, 0.6));
  1572. letter-spacing: 5px;
  1573. font-size: 50upx;
  1574. opacity: 0;
  1575. pointer-events: none;
  1576. transition: all 0.4s;
  1577. }
  1578. .DrawerClose.show {
  1579. opacity: 1;
  1580. pointer-events: all;
  1581. width: 15vw;
  1582. color: #fff;
  1583. }
  1584. .DrawerPage .cu-bar.tabbar .action button.cuIcon {
  1585. width: 64upx;
  1586. height: 64upx;
  1587. line-height: 64upx;
  1588. margin: 0;
  1589. display: inline-block;
  1590. }
  1591. .DrawerPage .cu-bar.tabbar .action .cu-avatar {
  1592. margin: 0;
  1593. }
  1594. .DrawerPage .nav {
  1595. flex: 1;
  1596. }
  1597. .DrawerPage .nav .cu-item.cur {
  1598. border-bottom: 0;
  1599. position: relative;
  1600. }
  1601. .DrawerPage .nav .cu-item.cur::after {
  1602. content: '';
  1603. width: 10upx;
  1604. height: 10upx;
  1605. background-color: currentColor;
  1606. position: absolute;
  1607. bottom: 10upx;
  1608. border-radius: 10upx;
  1609. left: 0;
  1610. right: 0;
  1611. margin: auto;
  1612. }
  1613. .DrawerPage .cu-bar.tabbar .action {
  1614. flex: initial;
  1615. }
  1616. .windStationNameAndChoice {
  1617. clear: both;
  1618. width: 100%;
  1619. height: 50px;
  1620. margin-top: 71px;
  1621. /* border: 1px solid red; */
  1622. }
  1623. .windStationName {
  1624. width: 70%;
  1625. height: 100%;
  1626. float: left;
  1627. line-height: 50px;
  1628. font-size: 16px;
  1629. margin-left: 4%;
  1630. }
  1631. .windStationChoice {
  1632. width: 20%;
  1633. height: 100%;
  1634. float: right;
  1635. text-align: right;
  1636. line-height: 50px;
  1637. font-size: 14px;
  1638. margin-right: 9px;
  1639. }
  1640. .windStationList {
  1641. width: 100%;
  1642. height: 290px;
  1643. }
  1644. .windStationItemContainer {
  1645. width: 100%;
  1646. }
  1647. .windStationItemContainerBlack {
  1648. width: 100%;
  1649. background-color: grey;
  1650. color: white;
  1651. }
  1652. .windStationItem {
  1653. width: 80%;
  1654. height: 50px;
  1655. border-bottom: 1px solid #c8c8c8;
  1656. text-align: left;
  1657. line-height: 50px;
  1658. margin-left: 10%;
  1659. color: #333333;
  1660. }
  1661. .cu-dialog {
  1662. width: 70%;
  1663. }
  1664. .cu-bar .content {
  1665. width: 100%;
  1666. margin-left: 10%;
  1667. }
  1668. .windMotorStatusContainer {
  1669. width: 95%;
  1670. height: 120px;
  1671. background-color: #242424;
  1672. color: white;
  1673. font-size: 14px;
  1674. margin-left: 2.5%;
  1675. }
  1676. .windMotorStatusCardJieRu {
  1677. width: 22%;
  1678. height: 45px;
  1679. margin-left: 1.5%;
  1680. margin-right: 1.5%;
  1681. margin-top: 10px;
  1682. float: left;
  1683. background-color: #c2c2c2;
  1684. line-height: 45px;
  1685. }
  1686. .windMotorStatusCardYunXing {
  1687. width: 22%;
  1688. height: 45px;
  1689. margin-left: 1.5%;
  1690. margin-right: 1.5%;
  1691. margin-top: 10px;
  1692. float: left;
  1693. background-color: #2675f6;
  1694. line-height: 45px;
  1695. }
  1696. .windMotorStatusCardDaiJi {
  1697. width: 22%;
  1698. height: 45px;
  1699. margin-left: 1.5%;
  1700. margin-right: 1.5%;
  1701. margin-top: 10px;
  1702. float: left;
  1703. background-color: #00e086;
  1704. line-height: 45px;
  1705. }
  1706. .windMotorStatusCardJianXiu {
  1707. width: 22%;
  1708. height: 45px;
  1709. margin-left: 1.5%;
  1710. margin-right: 1.5%;
  1711. margin-top: 10px;
  1712. float: left;
  1713. background-color: #ff6b3e;
  1714. line-height: 45px;
  1715. }
  1716. .windMotorStatusCardGuZhang {
  1717. width: 22%;
  1718. height: 45px;
  1719. margin-left: 1.5%;
  1720. margin-right: 1.5%;
  1721. margin-top: 10px;
  1722. float: left;
  1723. background-color: #f14e51;
  1724. line-height: 45px;
  1725. }
  1726. .windMotorStatusCardXianDian {
  1727. width: 22%;
  1728. height: 45px;
  1729. margin-left: 1.5%;
  1730. margin-right: 1.5%;
  1731. margin-top: 10px;
  1732. float: left;
  1733. background-color: #cc3399;
  1734. line-height: 45px;
  1735. }
  1736. .windMotorStatusCardShouLei {
  1737. width: 22%;
  1738. height: 45px;
  1739. margin-left: 1.5%;
  1740. margin-right: 1.5%;
  1741. margin-top: 10px;
  1742. float: left;
  1743. background-color: #41346c;
  1744. line-height: 45px;
  1745. }
  1746. .windMotorStatusCardLiXian {
  1747. width: 22%;
  1748. height: 45px;
  1749. margin-left: 1.5%;
  1750. margin-right: 1.5%;
  1751. margin-top: 10px;
  1752. float: left;
  1753. background-color: #686868;
  1754. line-height: 45px;
  1755. }
  1756. .windMotorStatusCardIcon {
  1757. width: 25px;
  1758. height: 25px;
  1759. margin-top: 10px;
  1760. float: left;
  1761. }
  1762. .windMotorStatusCardJieRuRed {
  1763. width: 22%;
  1764. height: 45px;
  1765. margin-left: 1.5%;
  1766. margin-right: 1.5%;
  1767. margin-top: 10px;
  1768. float: left;
  1769. background-color: #c2c2c2;
  1770. line-height: 45px;
  1771. color: black;
  1772. /* border: 1px solid red; */
  1773. }
  1774. .windMotorStatusCardYunXingRed {
  1775. width: 22%;
  1776. height: 45px;
  1777. margin-left: 1.5%;
  1778. margin-right: 1.5%;
  1779. margin-top: 10px;
  1780. float: left;
  1781. background-color: #2675f6;
  1782. line-height: 45px;
  1783. color: black;
  1784. /* border: 1px solid red; */
  1785. }
  1786. .windMotorStatusCardDaiJiRed {
  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: #00e086;
  1794. line-height: 45px;
  1795. color: black;
  1796. /* border: 1px solid red; */
  1797. }
  1798. .windMotorStatusCardJianXiuRed {
  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: #ff6b3e;
  1806. line-height: 45px;
  1807. color: black;
  1808. /* border: 1px solid red; */
  1809. }
  1810. .windMotorStatusCardGuZhangRed {
  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: #f14e51;
  1818. line-height: 45px;
  1819. color: black;
  1820. /* border: 1px solid red; */
  1821. }
  1822. .windMotorStatusCardXianDianRed {
  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: #cc3399;
  1830. line-height: 45px;
  1831. color: black;
  1832. /* border: 1px solid red; */
  1833. }
  1834. .windMotorStatusCardShouLeiRed {
  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: #41346c;
  1842. line-height: 45px;
  1843. color: black;
  1844. /* border: 1px solid red; */
  1845. }
  1846. .windMotorStatusCardLiXianRed {
  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: #686868;
  1854. line-height: 45px;
  1855. color: black;
  1856. /* border: 1px solid red; */
  1857. }
  1858. .card-swiper {
  1859. height: 40px !important;
  1860. }
  1861. .windMotorMatrixContainer {
  1862. width: 95%;
  1863. height: 400px;
  1864. background-color: #242424;
  1865. margin-left: 2.5%;
  1866. }
  1867. .windMotorMatrixList {
  1868. width: 100%;
  1869. height: calc(900px + 20%);
  1870. }
  1871. .windMotorMatrixDetail {
  1872. width: 24%;
  1873. height: 40px;
  1874. margin: 0.5%;
  1875. float: left;
  1876. color: white;
  1877. }
  1878. .windMotorMatrixDetailIcon {
  1879. width: 25px;
  1880. height: 25px;
  1881. float: left;
  1882. }
  1883. .windMotorMatrixDetailSpeed {
  1884. width: calc(100% - 26px);
  1885. height: 25px;
  1886. float: left;
  1887. text-align: right;
  1888. line-height: 25px;
  1889. font-size: 13px;
  1890. margin-right: 1px;
  1891. }
  1892. .windMotorMatrixDetailId {
  1893. width: 25px;
  1894. height: 20px;
  1895. float: left;
  1896. line-height: 10px;
  1897. text-align: left;
  1898. font-size: 13px;
  1899. margin-left: 3px;
  1900. }
  1901. .windMotorMatrixDetailPower {
  1902. width: calc(100% - 29px);
  1903. height: 20px;
  1904. float: left;
  1905. line-height: 10px;
  1906. text-align: right;
  1907. font-size: 13px;
  1908. margin-right: 1px;
  1909. }
  1910. /* .center-popup {
  1911. // #ifdef H5
  1912. /deep/.s-popup-wrapper {
  1913. width: 500rpx;
  1914. height: 500rpx;
  1915. background-color: #f0f0f0;
  1916. }
  1917. // #endif
  1918. } */
  1919. .s-popup-wrapper {
  1920. width: 500rpx;
  1921. background-color: #f0f0f0;
  1922. }
  1923. .s-popup-title {
  1924. width: 100%;
  1925. height: 50px;
  1926. background-color: #211E21;
  1927. }
  1928. .s-popup-word {
  1929. width: calc(100% - 65px);
  1930. height: 50px;
  1931. font-size: 14px;
  1932. color: white;
  1933. line-height: 50px;
  1934. float: left;
  1935. margin-left: 25px;
  1936. }
  1937. .s-popup-cha {
  1938. width: 40px;
  1939. height: 50px;
  1940. text-align: center;
  1941. line-height: 50px;
  1942. float: right;
  1943. font-size: 24px;
  1944. }
  1945. </style>