Browse Source

代收配置添加字段’

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

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

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

4
src/views/index_v1.vue

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

BIN
测试kakapay.zip

Binary file not shown.
Loading…
Cancel
Save