| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304 |
- <template>
- <view class="content">
- <view class="top">
- <image class="top_logo" src="../../static/logo.png" mode=""></image>
- <image class="tite" :src="$t('MainTitle')" mode=""></image>
- <!-- <view class="tite">
- {{ $t('MainTitle') }}
- </view> -->
- <view class="time">
- <view class="time_top">
- {{formattedTime}}
- </view>
- <view class="time_bottom">
- <view>
-
- </view>
- <view class="time_bottom1">
- {{$t('status')}}
- <view class="time_state" v-if="status=='ok'">
- {{$t('online')}}
- </view>
- <view class="time_state1" v-else>
- {{$t('offline')}}
- </view>
- </view>
-
- </view>
-
- </view>
- </view>
- <view class="parameter">
- <view class="parameter_list">
- <view class="parameter_box" @click="onreturn('故障')">
- <view class="parameter_list1">
- <image src="../../static/faultlist.png" mode=""></image>
- </view>
- <view class="fault_txt">
- {{$t('FaultRec')}}
- </view>
- </view>
- <!-- <view class="parameter_box" @click="onreturn('告警')">
- <view class="parameter_list1">
- <image src="../../static/fault.png" mode=""></image>
- </view>
- <view class="fault_txt">
- {{$t('WarningRec')}}
- </view>
- </view> -->
- <view class="parameter_box" @click="onreturn('事件')">
- <view class="parameter_list1">
- <image src="../../static/event.png" mode=""></image>
- </view>
- <view class="fault_txt">
- {{$t('RunningRec')}}
- </view>
- </view>
- <view class="parameter_box" @click="onreturn('基础')">
- <view class="parameter_list1">
- <image src="../../static/Basics.png" mode=""></image>
- </view>
- <view class="fault_txt">
- {{$t('SYSIfo')}}
- </view>
- </view>
- </view>
-
- </view>
- <view class="parameter_bottom">
- <view style="display: flex;align-items: center;">
- <view class="parameter_bottom1" @click="onclick">
- <image src="../../static/home.png" mode=""></image><text class="parameter_bottom2">{{$t('ReturnModeSelection')}}</text>
-
- </view>
-
- </view>
-
- </view>
- </view>
- </template>
- <!-- -->
- <script>
- import {
- getTime
- } from "../../utils/index.js"
- import {
- getfaultsList
- } from "../../api/api.js"
- import {
- mapState
- } from 'vuex';
- export default {
- data() {
- return {
-
- }
- },
- onLoad() {
-
- },
- computed: {
- // 使用 mapState 映射多个状态到组件的计算属性
- ...mapState(['formattedTime', 'status']),
-
- },
- beforeUnmount() {},
- methods: {
- // 返回首页
- onreturn(e) {
- console.log(e);
- this.$store.commit('getevent', e);
- if(e=="基础"){
- uni.redirectTo({
- url: '/pages/SYSifo/index'
- });
- }else{
- uni.redirectTo({
- url: '/pages/details/index'
- });
- }
-
- },
- onclick() {
- uni.redirectTo({
- url: '/pages/index/index'
- });
- },
- }
- }
- </script>
-
- <style lang="scss" scoped>
- .content {
- width: 100%;
- height: 100vh;
- opacity: 1;
- background: linear-gradient(180deg, rgba(215, 230, 245, 0) 0%, rgba(196, 229, 255, 1) 100%);
- box-sizing: border-box;
- }
-
- .top {
- width: 100%;
- height: 100px;
- display: flex;
- align-items: center;
- justify-content: space-between;
- background-size: 100% 100%;
- background-repeat: no-repeat;
- background-color: #fff;
- padding: 0px 46px;
- box-sizing: border-box;
- }
-
- .top_logo{
- width:327px;
- height: 56px;
- }
- .tite{
- width: 325px;
- height: 50px;
- }
- .time{
- width:277px;
- text-align: right;
- }
-
- .time_top {
- font-size: 17px;
- }
-
- .time_bottom {
- display: flex;
- font-size: 17px;
- justify-content: space-between;
- }
-
- .time_bottom1 {
- display: flex;
- }
-
- .time_state {
- font-size: 17px;
- font-weight: 600;
- color: rgba(22, 68, 144, 1);
- }
-
- .time_state1 {
- font-size: 17px;
- font-weight: 600;
- color: rgba(217, 22, 22, 1);
- }
-
- .parameter {
- width: 100%;
- // height: 100%;
- margin-top: 113px;
- display: flex;
- /* align-items: center; */
- justify-content: space-around;
- box-sizing: border-box;
- }
-
- .parameter_box {
- display: flex;
- flex-direction: column;
- align-items: center;
- }
-
- .parameter_list {
- width: 100%;
- padding: 0px 40px;
- display: flex;
- justify-content: space-around;
- }
-
- .parameter_list1 {
- width: 234.46px;
- height: 336.76px;
- background-image: url("../../static/faults.png");
- background-size: 100% 100%;
- display: flex;
- align-items: center;
- justify-content: center;
-
- image {
- width: 118.46px;
- height: 118.46px;
- }
- }
-
- .fault_txt {
- height: 27.9px;
- opacity: 1;
- /** 文本1 */
- font-size: 23.5px;
- font-weight: 400;
- letter-spacing: 0px;
- line-height: 32.24px;
- color: rgba(0, 0, 0, 1);
- text-align: left;
- vertical-align: top;
- margin-top: 40px;
- }
-
- .fault_image {
- width: 234.46px;
- height: 336.76px;
- }
-
- .parameter_xian {
- width: 100%;
- height: 55px;
- background: linear-gradient(180deg, rgba(30, 131, 189, 1) 0%, rgba(69, 168, 230, 0.92) 100%);
- box-shadow: inset 0px 0px 9.79px rgba(0, 0, 0, 0.1);
- display: flex;
- align-items: center;
- /* justify-content: space-around; */
- font-size: 28px;
- font-weight: 600;
- padding: 0px 20px;
- box-sizing: border-box;
-
- .parameter_xian1 {
- width: 100px;
- }
- }
- .parameter_bottom {
- display: flex;
- justify-content: space-between;
- margin-bottom: 10px;
- padding: 0px 16px;
- position: fixed;
- left: 10px;
- bottom: 20px;
- width: 100%;
- box-sizing: border-box;
- }
- .parameter_bottom1 {
- display: flex;
- align-items: center;
-
- image {
- width: 32px;
- height: 32px;
- display: flex;
- }
-
- }
- .parameter_bottom11 {
- display: flex;
- align-items: center;
- margin-left: 100px;
- image {
- width: 32px;
- height: 32px;
- display: flex;
- }
- }
- .parameter_bottom2 {
- font-size: 19.58px;
- font-weight: 400;
- color: rgba(0, 0, 0, 1);
- margin-left: 10px;
- }
- </style>
|