Browse Source

代收配置添加字段’

git commit -m 更新’
master
j1ack 2 years ago
parent
commit
0069d10b69
  1. 47
      src/views/data-view/components/data-view-echart.vue
  2. 4
      src/views/index_v1.vue
  3. BIN
      测试kakapay.zip

47
src/views/data-view/components/data-view-echart.vue

@ -1,26 +1,23 @@
<template>
<div
ref="charts"
style="width: 18vw;height:23vh;"
/>
<div ref="charts" style="width: 18vw;height:23vh;" />
</template>
<script>
import * as echarts from 'echarts'
import { debounce } from '@/utils'
function fontSize(res){
let clientWidth = window.innerWidth||document.documentElement.clientWidth||document.body.clientWidth;
function fontSize(res) {
let clientWidth = window.innerWidth || document.documentElement.clientWidth || document.body.clientWidth;
if (!clientWidth) return;
let fontSize = 100 * (clientWidth / 1920);
return res*fontSize;
return res * fontSize;
}
function fontSize2(res){
function fontSize2(res) {
let height = document.documentElement.clientHeight
if (!height) return;
let fontSize = 100 * (height / 1080);
return res*fontSize;
return res * fontSize;
}
function max(v1, v2) {
@ -33,7 +30,7 @@ export default {
},
watch: {
config: {
handler: function(val) {
handler: function (val) {
this.$nextTick(() => {
this.init()
})
@ -535,19 +532,19 @@ export default {
itemStyle: {
normal: {
color: new echarts.graphic.RadialGradient(.5, .5, .8, [
{
offset: 0,
color: this.config.innerCircle[0]
},
{
offset: .5,
color: this.config.innerCircle[1]
},
{
offset: 1,
color: this.config.innerCircle[2]
}
],
{
offset: 0,
color: this.config.innerCircle[0]
},
{
offset: .5,
color: this.config.innerCircle[1]
},
{
offset: 1,
color: this.config.innerCircle[2]
}
],
false
),
label: {
@ -608,6 +605,4 @@ export default {
}
}
</script>
<style scoped>
</style>
<style scoped></style>

4
src/views/index_v1.vue

@ -63,7 +63,7 @@ export default {
},
data() {
return {
lineChartData:{},
lineChartData: {},
dateRange: [],
startDateRange: "",
@ -79,7 +79,7 @@ export default {
// -
calcInit() {
common_api.homeData().then((response) => {
this.lineChartData=response.data
this.lineChartData = response.data
});
},
},

BIN
测试kakapay.zip

Binary file not shown.
Loading…
Cancel
Save