MatrixMonitor.vue 48 KB

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