You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

47 lines
1.2 KiB

<template>
<div>
<NewsChg />
<div style="display: flex">
<UpLow :chg-content="chgContent" :chart-type="uplow" style="flex: 1" />
<UpLow :chg-content="chgContent" :chart-type="uplowlimit" style="flex: 1" />
</div>
<UpLowLine :chg-content="chgContent" :chart-type="uplowlimit" style="flex: 1" />
<ContinuousLine :chg-content="chgContent" :chart-type="uplowlimit" style="flex: 1" />
</div>
</template>
<script setup lang="ts">
import { ref, onMounted } from 'vue'
import { getStockChgRecordData } from '@/api/stock/StockChgApi.js'
import NewsChg from '@/components/charts/NewsChg.vue'
import UpLow from '@/components/charts/UpLow.vue'
import UpLowLine from '@/components/charts/UpLowLine.vue'
import ContinuousLine from '@/components/charts/ContinuousLine.vue'
const chgContent = ref([])
const uplow = ref('uplow')
const uplowlimit = ref('uplowlimit')
onMounted(
() => {
getData()
}
)
const getData = () => {
const params = {
_v: new Date() * 1,
page: 0,
size: 250,
sort: 'id,desc'
}
getStockChgRecordData(params).then(resp => {
if (resp.data) {
chgContent.value = resp.data.content
}
})
}
</script>
<style scoped lang="scss">
</style>