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.
54 lines
1.3 KiB
54 lines
1.3 KiB
<template>
|
|
<div>
|
|
<NewsChg />
|
|
<div class="uplow-container">
|
|
<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.reverse()
|
|
}
|
|
})
|
|
}
|
|
</script>
|
|
|
|
<style scoped lang="scss">
|
|
@media screen and (max-width: 800px) {
|
|
.uplow-container{
|
|
display: block !important;
|
|
}
|
|
}
|
|
.uplow-container{
|
|
display: flex;
|
|
}
|
|
</style>
|
|
|