feat:对接接口、完善功能

This commit is contained in:
zjc
2024-12-26 18:30:52 +08:00
parent 809c950301
commit dc1ad009c7
16 changed files with 1085 additions and 1246 deletions

View File

@@ -36,9 +36,9 @@
</div>
</div>
<div class="flex mt-10">
<div class="box-2 mr-10">
<div class="box-2 mr-10 rela">
<Title1 title="舆情指数" />
<Dropdown :options="options" @on-change="onChange" />
<div class="dropdown"> <Dropdown :options="options" @on-change="onChange" /> </div>
<Line
:width="1560"
:height="400"
@@ -81,7 +81,6 @@
let stateList = ref([])
let options = ref([])
const onChange = (e) => {
console.log(e, '===')
getLineChart(e.id)
}
const getStop = async () => {
@@ -97,7 +96,6 @@
const getState = async () => {
let res = await getStateApi()
stateList.value = res.data
console.log(stateList.value, '------')
}
const getLineChart = async (id) => {
let res = await getLineChartApi({ id })
@@ -118,6 +116,11 @@
</script>
<style scoped lang="scss">
.dropdown {
position: absolute;
z-index: 9999;
right: vw(10);
}
.container {
margin-top: vh(120);
.bg {