pcs头部数据处理
This commit is contained in:
@ -3,7 +3,7 @@
|
|||||||
<!-- 6个方块-->
|
<!-- 6个方块-->
|
||||||
<el-row :gutter="10">
|
<el-row :gutter="10">
|
||||||
<el-col :xs="12" :sm="8" :lg="4" class="single-square-box-container" v-for="(item,index) in singleZdSqaure" :key="index+'singleSquareBox'">
|
<el-col :xs="12" :sm="8" :lg="4" class="single-square-box-container" v-for="(item,index) in singleZdSqaure" :key="index+'singleSquareBox'">
|
||||||
<single-square-box :data="{...item,value:Object.values(data).length ? data[item.attr] || '-' : '-'}" ></single-square-box>
|
<single-square-box :data="{...item,value:formatNumber(data[item.attr])}" ></single-square-box>
|
||||||
</el-col>
|
</el-col>
|
||||||
</el-row>
|
</el-row>
|
||||||
</template>
|
</template>
|
||||||
@ -11,7 +11,7 @@
|
|||||||
|
|
||||||
<script>
|
<script>
|
||||||
import SingleSquareBox from "@/components/Ems/SingleSquareBox/index.vue";
|
import SingleSquareBox from "@/components/Ems/SingleSquareBox/index.vue";
|
||||||
|
import {formatNumber} from '@/filters/ems'
|
||||||
export default {
|
export default {
|
||||||
components:{SingleSquareBox},
|
components:{SingleSquareBox},
|
||||||
props:{
|
props:{
|
||||||
@ -21,6 +21,7 @@ export default {
|
|||||||
default:()=>{return {}}
|
default:()=>{return {}}
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
methods:{formatNumber},
|
||||||
data() {
|
data() {
|
||||||
return {
|
return {
|
||||||
// 单个电站 四个方块数据
|
// 单个电站 四个方块数据
|
||||||
|
Reference in New Issue
Block a user