MatrixMonitor.vue 45 KB

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