Commit 0166f522 authored by Jenny's avatar Jenny

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

parents f94bf186 6bd466c2
......@@ -7,6 +7,7 @@
canvas-id="bar-mix-map-chart"
:ec="ec"
:style="[elStyleObject]"
:font-size="getFontSize()"
></uni-ec-canvas>
</view>
</template>
......@@ -180,6 +181,10 @@
categories,
series
}
},
getFontSize() {
return this.$u.common.pxToRpx(this.elementInfo.option.countTo.fontSize)
}
}
}
......
......@@ -9,6 +9,7 @@
'text-align': elementInfo.option.title.left,
'animation-duration':`${elementInfo.marquee.speed ? elementInfo.marquee.speed : defaultSpeed}s`
}"
:font-size="getFontSize()"
>
{{ text }}
</p>
......@@ -29,6 +30,10 @@ export default {
methods: {
initChart() {
this.text = this.elementData.dataList.text || this.elementInfo.option.title.text
},
getFontSize() {
return this.$u.common.pxToRpx(this.elementInfo.option.countTo.fontSize)
}
}
}
......
......@@ -7,6 +7,7 @@
canvas-id="china-map-chart"
:ec="ec"
:style="[elStyleObject]"
:font-size="getFontSize()"
></uni-ec-canvas>
</view>
</template>
......@@ -157,6 +158,10 @@
}
}
return res
},
getFontSize() {
return this.$u.common.pxToRpx(this.elementInfo.option.countTo.fontSize)
}
}
}
......
......@@ -6,7 +6,8 @@
ref="dashboardProgressCanvas"
canvas-id="dashboard-progress-chart"
:ec="ec"
:style="[elStyleObject]"
:style="[elStyleObject]"
:font-size="getFontSize()"
></uni-ec-canvas>
</view>
</template>
......@@ -143,6 +144,10 @@
return chart
})
})
},
getFontSize() {
return this.$u.common.pxToRpx(this.elementInfo.option.countTo.fontSize)
}
}
}
......
......@@ -7,6 +7,7 @@
canvas-id="horizontal-bar-chart"
:ec="ec"
:style="[elStyleObject]"
:font-size="getFontSize()"
></uni-ec-canvas>
</view>
</template>
......@@ -79,6 +80,10 @@ export default {
return { ...item, ...config }
})
return newData
},
getFontSize() {
return this.$u.common.pxToRpx(this.elementInfo.option.countTo.fontSize)
}
}
}
......
......@@ -6,7 +6,8 @@
ref="lineMixBarCanvas"
canvas-id="line-mix-bar-chart"
:ec="ec"
:style="[elStyleObject]"
:style="[elStyleObject]"
:font-size="getFontSize()"
></uni-ec-canvas>
</view>
</template>
......@@ -106,6 +107,10 @@
}
})
return newData
},
getFontSize() {
return this.$u.common.pxToRpx(this.elementInfo.option.countTo.fontSize)
}
}
}
......
......@@ -7,6 +7,7 @@
canvas-id="normal-bar-chart"
:ec="ec"
:style="[elStyleObject]"
:font-size="getFontSize()"
></uni-ec-canvas>
</view>
</template>
......@@ -79,6 +80,10 @@ export default {
return { ...item, ...config }
})
return newData
},
getFontSize() {
return this.$u.common.pxToRpx(this.elementInfo.option.countTo.fontSize)
}
}
}
......
......@@ -7,6 +7,7 @@
canvas-id="normal-gauge-chart"
:ec="ec"
:style="[elStyleObject]"
:font-size="getFontSize()"
></uni-ec-canvas>
</view>
</template>
......@@ -62,6 +63,10 @@ export default {
return chart
})
})
},
getFontSize() {
return this.$u.common.pxToRpx(this.elementInfo.option.countTo.fontSize)
}
}
}
......
......@@ -48,6 +48,9 @@
},
onLoad() {
},
methods: {
}
}
</script>
......
......@@ -7,6 +7,7 @@
canvas-id="normal-line-chart"
:ec="ec"
:style="[elStyleObject]"
:font-size="getFontSize()"
></uni-ec-canvas>
</view>
</template>
......@@ -79,6 +80,10 @@ export default {
return { ...item, ...config }
})
return newData
},
getFontSize() {
return this.$u.common.pxToRpx(this.elementInfo.option.countTo.fontSize)
}
}
}
......
......@@ -7,6 +7,7 @@
canvas-id="normal-pie-chart"
:ec="ec"
:style="[elStyleObject]"
:font-size="getFontSize()"
></uni-ec-canvas>
</view>
</template>
......@@ -83,6 +84,10 @@ export default {
data
}]
return series
},
getFontSize() {
return this.$u.common.pxToRpx(this.elementInfo.option.countTo.fontSize)
}
}
}
......
......@@ -37,7 +37,13 @@ export default {
};
},
methods: {
initChart() {}
initChart() {
},
getFontSize() {
return this.$u.common.pxToRpx(this.elementInfo.option.countTo.fontSize)
}
}
}
</script>
......
......@@ -6,7 +6,8 @@
ref="normalRadarCanvas"
canvas-id="normalra-dar-chart"
:ec="ec"
:style="[elStyleObject]"
:style="[elStyleObject]"
:font-size="getFontSize()"
></uni-ec-canvas>
</view>
</template>
......@@ -82,6 +83,10 @@
}
})
return newData
},
getFontSize() {
return this.$u.common.pxToRpx(this.elementInfo.option.countTo.fontSize)
}
}
}
......
......@@ -57,6 +57,10 @@
const paramName = this.elementInfo.table.primaryKey
const value = e[paramName]
uni.$emit('handleLinkParams', { index, paramName, value: value })
},
getFontSize() {
return this.$u.common.pxToRpx(this.elementInfo.option.countTo.fontSize)
}
}
}
......
......@@ -67,6 +67,10 @@
});
uni.$emit('handleLinkComp', { showData, hideData })
}
},
getFontSize() {
return this.$u.common.pxToRpx(this.elementInfo.option.countTo.fontSize)
}
},
watch: {
......
......@@ -84,6 +84,10 @@
numberItemsClass() {
return 'numberItems-' + this.elementInfo.id
},
getFontSize() {
return this.$u.common.pxToRpx(this.elementInfo.option.countTo.fontSize)
}
},
}
......
......@@ -8,6 +8,7 @@
'font-weight': elementInfo.option.title.textStyle.fontWeight,
'text-align': elementInfo.option.title.left,
}"
:font-size="getFontSize()"
>
{{ realTime }}
</div>
......@@ -36,6 +37,10 @@ export default {
this.timer = setInterval(() => {
this.realTime = this.$u.common.dateFormat()
}, 1000)
},
getFontSize() {
return this.$u.common.pxToRpx(this.elementInfo.option.countTo.fontSize)
}
}
}
......
......@@ -6,6 +6,7 @@
:src="imageUrl"
width="100%"
:height="imageHeight"
:font-size="getFontSize()"
></u-image>
</view>
</template>
......@@ -36,6 +37,9 @@
})
},
getFontSize() {
return this.$u.common.pxToRpx(this.elementInfo.option.countTo.fontSize)
}
}
}
</script>
......
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