123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424 |
- <template>
- <view class="home">
- <view class="box-bg">
- <uni-nav-bar :fixed="true" dark left-icon="left" background-color='#202246' :title="stationName"
- @clickLeft="back" />
- </view>
- <view class="home_main">
- <view class="main_time">
- <view class="mesTime">
- <image src="../../static/jnImage/indexPage/time.png"></image>
- <text>2023年11月20日</text>
- <text>星期一</text>
- <text>09:19</text>
- </view>
- <view class="mesAll">
- <uni-row class="mesEx">
- <uni-col :span="12" v-for="(item,index) in mesExData" :key="index">
- <view class="mesEx_left flex">
- <view class="mesEx_left_top">
- <text class="nameSty">{{item.leftName}}</text>
- </view>
- <view class="mesEx_left_end">
- <text>{{item.leftValue}}</text>
- <text>{{item.leftCode}}</text>
- </view>
- </view>
- </uni-col>
- </uni-row>
- <view class="windMsg">
- <view class="flex justify-center" style="margin-bottom: 6px;">
- <view class="windMsg_title">
- <image src="../../static/jnImage/indexPage/wancheng.png" mode=""></image>
- <text>风机状态</text>
- </view>
- </view>
- <view class="windMsg_main">
- <view class="windMsg_main_msg flex justify-between">
- <view class="windMsgSty flex">
- <view class="windMsgSty_left">
- <image src="../../static/jnImage/indexPage/yunxingNew.png" mode=""></image>
- <!-- <view class="windMsgCom" style="background-color: #c2c2c2">
- </view> -->
- <text>接入</text>
- </view>
- <view class="windMsgSty_right flex justify-between">
- <text>600</text>
- <text>台</text>
- </view>
- </view>
- <view class="windMsgSty flex">
- <view class="windMsgSty_left">
- <image src="../../static/jnImage/indexPage/daijiNew.png" mode=""></image>
- <text>待机</text>
- </view>
- <view class="windMsgSty_right flex justify-between">
- <text>600</text>
- <text>台</text>
- </view>
- </view>
- </view>
- <view class="windMsg_main_msg flex justify-between">
- <view class="windMsgSty flex">
- <view class="windMsgSty_left">
- <image src="../../static/jnImage/indexPage/qidongNew.png" mode=""></image>
- <text>启动</text>
- </view>
- <view class="windMsgSty_right flex justify-between">
- <text>600</text>
- <text>台</text>
- </view>
- </view>
- <view class="windMsgSty flex">
- <view class="windMsgSty_left">
- <image src="../../static/jnImage/indexPage/gzdjNew.png" mode=""></image>
- <text class="fourFont">故障\n待机</text>
- </view>
- <view class="windMsgSty_right flex justify-between">
- <text>600</text>
- <text>台</text>
- </view>
- </view>
- </view>
- <view class="windMsg_main_msg flex justify-between">
- <view class="windMsgSty flex">
- <view class="windMsgSty_left">
- <image src="../../static/jnImage/indexPage/tingjiNew.png" mode=""></image>
- <text>停机</text>
- </view>
- <view class="windMsgSty_right flex justify-between">
- <text>600</text>
- <text>台</text>
- </view>
- </view>
- <view class="windMsgSty flex">
- <view class="windMsgSty_left">
- <image src="../../static/jnImage/indexPage/lixianNew.png" mode=""></image>
- <text>离线</text>
- </view>
- <view class="windMsgSty_right flex justify-between">
- <text>600</text>
- <text>台</text>
- </view>
- </view>
- </view>
- </view>
- </view>
- <view class="matrix">
- <view class="matrixItem" v-for="(item,index) in 2" :key="index">
- <view class="matrixText">乌力吉一期</view>
- <uni-row class="matrixItemRow">
- <uni-col :span="3" v-for="(item,index) in 45" :key="index">
- <view class="matrixItemRowOne">A01</view>
- </uni-col>
- </uni-row>
- </view>
- </view>
- </view>
- </view>
- </view>
- <station-bar ref="stationBar"></station-bar>
- </view>
- </template>
- <script>
- import stationBar from '../common/stationTab.vue'
- export default {
- onLoad: function(e) {
- this.stationName = uni.getStorageSync('stationName')
- },
- components: {
- stationBar
- },
- data() {
- return {
- stationName: '',
- stationTab: '',
- mesExData: [],
- windPowerData: []
- }
- },
- created() {
- this.windPowerData = [{
- name: '实际风速',
- value: 7,
- code: '(m/s)',
- min: 6,
- max: 8
- },
- {
- name: '预测风速',
- value: 10,
- code: '(m/s)',
- min: 6,
- max: 20
- },
- {
- name: '实际功率',
- value: 191,
- code: '(万kW)',
- min: 0,
- max: 200
- },
- {
- name: '理论功率',
- value: 459,
- code: '(万kW)',
- min: 0,
- max: 500
- }
- ]
- this.mesExData = [{
- leftName: '容量',
- leftValue: 282.3,
- leftCode: '(WM)',
- },
- {
- leftName: '安全天数',
- leftValue: 20,
- leftCode: '(天)',
- },
- {
- leftName: '日发电量',
- leftValue: 282.3,
- leftCode: '(万kWh)'
- },
- {
- leftName: '预测电量',
- leftValue: 282.3,
- leftCode: '(万kWh)'
- },
- {
- leftName: '月发电量',
- leftValue: 282.3,
- leftCode: '(万kWh)'
- },
- {
- leftName: '年发电量',
- leftValue: 282.3,
- leftCode: '(万kWh)'
- },
- ]
- },
- mounted() {
- this.$refs.stationBar.showTab = '首页'
- },
- methods: {
- back() {
- this.$tab.switchTab('/pages/home/index')
- },
- stationTabXY(it) {
- this.stationTab = it
- }
- }
- }
- </script>
- <style lang="scss">
- page {
- background-color: #202246;
- }
- .home {
- width: 100vw;
- background: url('../../static/jnImage/loginPage/windBack.png'), url('../../static/jnImage/loginPage/backWav.png');
- background-repeat: no-repeat, repeat;
- background-size: 100% 260px, 100% 5px;
- .box-bg {
- width: 100vw;
- padding: 5px 0;
- }
- .home_main {
- padding: 0 20px;
- .main_time {
- margin-top: 10px;
- .mesTime {
- display: flex;
- padding: 3px 0;
- border-bottom: 1px solid rgba(255, 255, 255, 0.25);
- image {
- width: 20px;
- height: 20px;
- }
- text {
- font-size: 34upx;
- color: #fff;
- margin-left: 15px;
- }
- text:nth-of-type(3) {
- position: relative;
- top: 3px;
- }
- }
- .mesAll {
- padding-bottom: 60px;
- .mesEx {
- // display: flex;
- line-height: 30px;
- color: #fff;
- .mesEx_left {
- width: 100%;
- border-bottom: 1px solid rgba(255, 255, 255, 0.25);
- padding: 3px 0;
- .mesEx_left_top {
- width: 40%;
- font-size: 28upx;
- .nameSty {
- width: 100%;
- display: inline-block;
- position: relative;
- text-align-last: justify;
- text-align: justify;
- }
- }
- .mesEx_left_end {
- width: 56%;
- margin: 0 10px;
- display: flex;
- justify-content: space-between;
- text:nth-of-type(1) {
- font-size: 34upx;
- }
- text:nth-of-type(2) {
- font-size: 20upx;
- color: #92949B;
- }
- }
- }
- }
- .windMsg {
- margin-top: 15px;
- .windMsg_title {
- width: 40%;
- height: 30px;
- display: flex;
- justify-content: center;
- align-items: center;
- padding: 6px 13px;
- background: rgba(51, 57, 118, 0.7);
- border-radius: 5px;
- image {
- width: 18px;
- height: 18px;
- }
- text {
- margin-left: 5px;
- font-size: 34upx;
- color: #fff;
- }
- }
- .windMsg_main {
- .windMsg_main_msg {
- margin-bottom: 8px;
- .windMsgSty {
- padding: 5px 8px;
- width: 49%;
- background: #3F4572;
- border-radius: 5px;
- .windMsgSty_left {
- width: 49%;
- height: 32px;
- image {
- width: 32px;
- height: 32px;
- }
- text {
- width: 100px;
- display: inline-block;
- color: #9A9BA6;
- font-size: 28upx;
- margin-left: 10px;
- position: relative;
- top: -26px;
- left: 28px;
- }
- .fourFont {
- top: -38px;
- }
- }
- .windMsgSty_right {
- width: 49%;
- position: relative;
- top: 9px;
- text:nth-of-type(1) {
- margin-left: 5px;
- width: 50%;
- font-size: 34upx;
- color: #fff;
- }
- text:nth-of-type(2) {
- font-size: 28upx;
- color: #9A9BA6;
- }
- }
- }
- }
- }
- }
- .matrix {
- .matrixItem {
- margin-top: 10px;
- .matrixText {
- font-size: 32upx;
- color: #9A9BA6;
- }
- .matrixItemRow {
- .matrixItemRowOne {
- width: 100%;
- height: 30px;
- background-color: #2675F6;
- text-align: center;
- line-height: 30px;
- color: #fff;
- font-size: 24upx;
- border-radius: 5px;
- // margin: 1px 2px;
- border: 1px solid #202246;
- }
- }
- }
- }
- }
- }
- }
- }
- </style>
|