MatrixMonitor.vue 43 KB

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