|
@@ -107,16 +107,13 @@
|
|
|
</div>
|
|
|
<div class="panel-body">
|
|
|
<table class="table-form">
|
|
|
- <template v-for="(item,index) in clxmap" :key="index" :v-if="index%2==0">
|
|
|
- <tr>
|
|
|
- <td class="text gray">{{ item.name }}</td>
|
|
|
- <td class="value green">{{ item.value }}</td>
|
|
|
- <td class="unit gray">{{ item.unit }}</td>
|
|
|
- <td class="text gray" v-if="index+1<clxmap.length">{{clxmap[index+1].name}}</td>
|
|
|
- <td class="value green" v-if="index+1<clxmap.length">{{clxmap[index+1].value}}</td>
|
|
|
- <td class="unit gray" v-if="index+1<clxmap.length">{{clxmap[index+1].unit}}</td>
|
|
|
- </tr>
|
|
|
- </template>
|
|
|
+ <tr v-for="(pItem, pIndex) in clxmap" :key="pIndex">
|
|
|
+ <template v-for="(cItem, cIndex) in pItem" :key="cIndex">
|
|
|
+ <td class="text gray">{{ cItem.name }}</td>
|
|
|
+ <td class="value green">{{ cItem.value }}</td>
|
|
|
+ <td class="unit gray">{{ cItem.unit }}</td>
|
|
|
+ </template>
|
|
|
+ </tr>
|
|
|
</table>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -130,16 +127,13 @@
|
|
|
</div>
|
|
|
<div class="panel-body">
|
|
|
<table class="table-form">
|
|
|
- <template v-for="(item,index) in bjmap" :key="index" :v-if="index%2==0">
|
|
|
- <tr>
|
|
|
- <td class="text gray">{{ item.name }}</td>
|
|
|
- <td class="value green">{{ item.value }}</td>
|
|
|
- <td class="unit gray">{{ item.unit }}</td>
|
|
|
- <td class="text gray" v-if="index+1<bjmap.length">{{bjmap[index+1].name}}</td>
|
|
|
- <td class="value green" v-if="index+1<bjmap.length">{{bjmap[index+1].value}}</td>
|
|
|
- <td class="unit gray" v-if="index+1<bjmap.length">{{bjmap[index+1].unit}}</td>
|
|
|
- </tr>
|
|
|
- </template>
|
|
|
+ <tr v-for="(pItem, pIndex) in bjmap" :key="pIndex">
|
|
|
+ <template v-for="(cItem, cIndex) in pItem" :key="cIndex">
|
|
|
+ <td class="text gray">{{ cItem.name }}</td>
|
|
|
+ <td class="value green">{{ cItem.value }}</td>
|
|
|
+ <td class="unit gray">{{ cItem.unit }}</td>
|
|
|
+ </template>
|
|
|
+ </tr>
|
|
|
</table>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -155,16 +149,13 @@
|
|
|
</div>
|
|
|
<div class="panel-body">
|
|
|
<table class="table-form">
|
|
|
- <template v-for="(item,index) in phmap" :key="index" :v-if="index%2==0">
|
|
|
- <tr>
|
|
|
- <td class="text gray">{{ item.name }}</td>
|
|
|
- <td class="value green">{{ item.value }}</td>
|
|
|
- <td class="unit gray">{{ item.unit }}</td>
|
|
|
- <td class="text gray" v-if="index+1<phmap.length">{{phmap[index+1].name}}</td>
|
|
|
- <td class="value green" v-if="index+1<phmap.length">{{phmap[index+1].value}}</td>
|
|
|
- <td class="unit gray" v-if="index+1<phmap.length">{{phmap[index+1].unit}}</td>
|
|
|
- </tr>
|
|
|
- </template>
|
|
|
+ <tr v-for="(pItem, pIndex) in phmap" :key="pIndex">
|
|
|
+ <template v-for="(cItem, cIndex) in pItem" :key="cIndex">
|
|
|
+ <td class="text gray">{{ cItem.name }}</td>
|
|
|
+ <td class="value green">{{ cItem.value }}</td>
|
|
|
+ <td class="unit gray">{{ cItem.unit }}</td>
|
|
|
+ </template>
|
|
|
+ </tr>
|
|
|
</table>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -178,16 +169,13 @@
|
|
|
</div>
|
|
|
<div class="panel-body">
|
|
|
<table class="table-form">
|
|
|
- <template v-for="(item,index) in yymap" :key="index" :v-if="index%2==0">
|
|
|
- <tr>
|
|
|
- <td class="text gray">{{ item.name }}</td>
|
|
|
- <td class="value green">{{ item.value }}</td>
|
|
|
- <td class="unit gray">{{ item.unit }}</td>
|
|
|
- <td class="text gray" v-if="index+1<yymap.length">{{yymap[index+1].name}}</td>
|
|
|
- <td class="value green" v-if="index+1<yymap.length">{{yymap[index+1].value}}</td>
|
|
|
- <td class="unit gray" v-if="index+1<yymap.length">{{yymap[index+1].unit}}</td>
|
|
|
- </tr>
|
|
|
- </template>
|
|
|
+ <tr v-for="(pItem, pIndex) in yymap" :key="pIndex">
|
|
|
+ <template v-for="(cItem, cIndex) in pItem" :key="cIndex">
|
|
|
+ <td class="text gray">{{ cItem.name }}</td>
|
|
|
+ <td class="value green">{{ cItem.value }}</td>
|
|
|
+ <td class="unit gray">{{ cItem.unit }}</td>
|
|
|
+ </template>
|
|
|
+ </tr>
|
|
|
</table>
|
|
|
</div>
|
|
|
</div>
|
|
@@ -274,12 +262,11 @@ export default {
|
|
|
|
|
|
watch: {
|
|
|
data (value) {
|
|
|
- this.sourceMap = value;
|
|
|
this.fdjmap = this.rinseData(value.fdjmap.ai, 2);
|
|
|
- this.clxmap = value.clxmap.ai;
|
|
|
- this.bjmap = value.bjmap.ai;
|
|
|
- this.phmap = value.phmap.ai;
|
|
|
- this.yymap = value.yymap.ai;
|
|
|
+ this.clxmap = this.rinseData(value.clxmap.ai, 2);
|
|
|
+ this.bjmap = this.rinseData(value.bjmap.ai, 2);
|
|
|
+ this.phmap = this.rinseData(value.phmap.ai, 2);
|
|
|
+ this.yymap = this.rinseData(value.yymap.ai, 2);
|
|
|
}
|
|
|
},
|
|
|
};
|
|
@@ -365,7 +352,7 @@ export default {
|
|
|
}
|
|
|
}
|
|
|
.value {
|
|
|
- margin: 32px 0;
|
|
|
+ margin: 38px 0;
|
|
|
align-items: center;
|
|
|
flex: 1 0 auto;
|
|
|
font-size: 12px;
|