chore: sync local DataV boards and assets for standalone repo
Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
@@ -0,0 +1,37 @@
|
||||
<template>
|
||||
<div>
|
||||
<Chart :cdata="cdata" />
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script>
|
||||
import Chart from './chart.vue'
|
||||
export default {
|
||||
props:[
|
||||
'cdata'
|
||||
],
|
||||
data () {
|
||||
return {
|
||||
|
||||
};
|
||||
},
|
||||
components: {
|
||||
Chart,
|
||||
},
|
||||
mounted () {
|
||||
this.setData();
|
||||
},
|
||||
methods: {
|
||||
// 根据自己的业务情况修改
|
||||
setData () {
|
||||
// for (let i = 0; i < this.cdata.barData.length -1; i++) {
|
||||
// let rate = this.cdata.barData[i] / this.cdata.lineData[i];
|
||||
// this.cdata.rateData.push(rate.toFixed(2));
|
||||
// }
|
||||
},
|
||||
}
|
||||
};
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
</style>
|
||||
Reference in New Issue
Block a user