Commit c63d4d40 authored by Jenny's avatar Jenny

Merge branch 'develop' of http://106.15.103.105/lihuizhen/ec-report-refactor into develop

parents d7b9cc39 4016ab01
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
<view class="count-to" :style="{height: `${height}px`,}"> <view class="count-to" :style="{height: `${height}px`,}">
<BasicText :elementInfo="elementInfo"></BasicText> <BasicText :elementInfo="elementInfo"></BasicText>
<!-- warning:count-to的font-size单位为rpx --> <!-- warning:count-to的font-size单位为rpx -->
<u-count-to :start-val="startVal" :end-val="endVal" :color="elementInfo.option.countTo.color" :font-size="elementInfo.option.countTo.fontSize"></u-count-to> <u-count-to :start-val="startVal" :end-val="endVal" separator="," :color="elementInfo.option.countTo.color" :font-size="elementInfo.option.countTo.fontSize"></u-count-to>
</view> </view>
</template> </template>
......
...@@ -98,7 +98,7 @@ ...@@ -98,7 +98,7 @@
top: '45%', top: '45%',
textStyle: { textStyle: {
fontSize: 30, fontSize: 30,
color: '#ffffff', color: this.elementInfo.option.progress.titleColor,
}, },
}], }],
series: [{ series: [{
......
<template> <template>
<view > <view >
<BasicText :elementInfo="elementInfo"></BasicText>
<scroll-view scroll-x="true" > <scroll-view scroll-x="true" >
<view class="scroll-view_H"> <view class="scroll-view_H">
<u-table > <u-table >
<u-tr> <u-tr>
<u-th style="width: 150px;" v-for="(item, index) in elementInfo.table.column" :key="index">{{item.title}}</u-th> <u-th style="width: 150px;" v-for="(item, index) in columns" :key="index">{{item.title}}</u-th>
</u-tr> </u-tr>
<u-tr v-for="(cell, cellIndex) in elementData.dataList.chartTables" :key="cellIndex" > <u-tr v-for="(cell, cellIndex) in chartTables" :key="cellIndex" >
<u-td style="width: 150px;" v-for="(item, index) in elementInfo.table.column" :key="index"> <u-td style="width: 150px;" v-for="(item, index) in columns" :key="index">
{{cell[item.dataIndex]}} {{cell[item.dataIndex]}}
</u-td> </u-td>
</u-tr> </u-tr>
...@@ -27,25 +28,27 @@ ...@@ -27,25 +28,27 @@
mixins: [echartElementData], mixins: [echartElementData],
data() { data() {
return { return {
columns: [],
chartTables: []
}; };
}, },
methods: { methods: {
initChart() { initChart() {
this.$nextTick(() => { this.$nextTick(() => {
this.columns = this.elementInfo.table.column
this.endVal = this.elementData.dataList.endVal this.chartTables = this.elementData.dataList.chartTables
}) })
}, },
} }
} }
</script> </script>
<style> <style scoped lang="scss">
.scroll-view_H{ .scroll-view_H {
width: 100%; width: 100%;
display: flex; display: flex;
flex-wrap: nowrap; flex-wrap: nowrap;
} }
</style> </style>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment