123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236 |
- <template>
- <view class="page-body">
- <page-header :name="pageData.name" :bg="'#1560e0'" :showLeft="true" @goBack="goBack()"></page-header>
- <view class="scroll-wrap">
- <view class="basic-info-wrap">
- <view class="info-wrap">
- <view v-for="(item,index) in list" class="data-item-wrap">
- <view class="title">{{ item.name }}</view>
- <view class="data">{{ item.params }}</view>
- </view>
- </view>
- <view class="img-wrap">
- <image src="@/static/rhb.jpg" />
- </view>
- <view class="radius-wrap"></view>
- </view>
- <view class="detail-info-wrap">
- <page-card style="margin-bottom: 30rpx;" :notShow="true" :name="'进气压力'">
- <template v-slot:content>
- <simple-table :tableHead="tableHead" :list="paramsList"></simple-table>
- </template>
- </page-card>
-
- <page-card style="margin-bottom: 30rpx;" :notShow="true" :name="'泵压力'">
- <template v-slot:content>
- <simple-table :tableHead="tableHead1" :list="paramsList1"></simple-table>
- </template>
- </page-card>
-
- <page-card style="margin-bottom: 30rpx;" :notShow="true" :name="'压力/温度'">
- <template v-slot:content>
- <simple-table :tableHead="tableHead2" :list="paramsList2"></simple-table>
- </template>
- </page-card>
- </view>
- </view>
- </view>
- </template>
- <script>
- export default {
- data() {
- return {
- list: [{
- name: '水箱液位高报值',
- params: '0.0m'
- }, {
- name: '水箱液位低报值',
- params: '0.0m'
- }, {
- name: '软化水箱液位',
- params: '1.30m'
- }],
- pageData: {},
- tableHead: ['名称', '进气压力'],
- paramsList: [{
- name: '1#板式换热器',
- params: ['00.00MPa']
- },{
- name: '2#板式换热器',
- params: ['00.00MPa']
- }],
- tableHead1: ['名称', '压力'],
- paramsList1: [{
- name: '1#泵',
- params: ['00.55MPa']
- },{
- name: '2#泵',
- params: ['00.39MPa']
- },{
- name: '补水泵',
- params: ['0.36MPa']
- }],
- tableHead2: ['名称', '温度', '压力'],
- paramsList2: [{
- name: '回水罐',
- params: ['0.38MPa', '-03.09℃']
- },{
- name: '供水罐',
- params: ['0.45MPa', '50.08℃']
- }]
- }
- },
- onLoad(option) {
- this.pageData = JSON.parse(option.data)
- this.getData()
- },
- methods: {
- goBack() { // 返回上一頁面
- uni.navigateBack()
- },
- async getData() {
- let res = await this.$http({
- url: `/qsy/dcs/transform/hrz`,
- method: 'POST'
- })
- this.list = res.data.data.list
- this.paramsList = res.data.data.paramsList
- this.paramsList1 = res.data.data.paramsList1
- this.paramsList2 = res.data.data.paramsList2
- }
- }
- }
- </script>
- <style scoped lang="scss">
- .page-body {
- .scroll-wrap {
- height: calc(100vh - 85rpx);
- overflow: scroll;
- .basic-info-wrap {
- position: relative;
- height: auto;
- padding: 50rpx 49rpx 0;
- background: url(../../../static/page_bg.png);
- background-size: 140%;
- .info-wrap {
- display: flex;
- flex-wrap: wrap;
- .data-item-wrap {
- width: 33.33%;
- padding: 9rpx 0;
- min-height: 81rpx;
- text-align: center;
- margin-top: 48rpx;
- border-right: 1px solid #FFFFFF;
- .title {
- font-size: 22rpx;
- color: #FFFFFF;
- margin-bottom: 14rpx;
- }
- .data {
- font-weight: 700;
- font-size: 32rpx;
- color: #FFF600;
- }
- }
- .data-item-wrap:nth-child(-n+3) {
- margin-top: 0;
- }
- .data-item-wrap:nth-child(3n) {
- border: none;
- }
- }
- .img-wrap {
- padding: 38rpx 0 57rpx;
- text-align: center;
- image {
- width: 100rpx;
- height: 120rpx;
- }
- }
- .radius-wrap {
- position: absolute;
- left: 0;
- bottom: 0;
- width: 100vw;
- height: 30rpx;
- background-color: #fff;
- border-radius: 35rpx 35rpx 0 0;
- }
- }
-
- .detail-info-wrap {
- padding: 40rpx 35rpx;
-
- .detail-wrap {
- display: flex;
- flex-wrap: wrap;
- padding: 35rpx 55rpx 18rpx 55rpx;
- color: #8D8D8D;
- .item {
- display: flex;
- font-size: 26rpx;
- justify-content: space-between;
- width: calc(50% - 61rpx);
- margin-bottom: 50rpx;
-
- .params {
- color: #00BD00;
- }
-
- .status-wrap {
- width: 100%;
-
- /deep/ .tip-wrap {
- width: 100%;
- justify-content: space-between;
- }
- }
- }
-
- .item:nth-child(2n) {
- margin-left: 120rpx;
- }
- }
-
- .params-wrap {
- display: flex;
- flex-wrap: wrap;
- font-size: 26rpx;
- padding: 35rpx 55rpx;
-
- .item {
- width: calc(50% - 32rpx);
- display: flex;
- justify-content: space-between;
- margin-top: 50rpx;
-
- view:first-child {
- color: #8D8D8D;
- }
- }
-
- .item:nth-child(2n) {
- margin-left: 62rpx;
- }
-
- .item:nth-child(-n+2) {
- margin-top: 0;
- }
- }
- }
- }
- }
- </style>
|