修复警告

This commit is contained in:
qumeng039@126.com 2025-08-05 14:48:11 +08:00
parent 0439769bc8
commit 38679080bb
4 changed files with 11 additions and 22 deletions

View File

@ -114,9 +114,6 @@ const initChart = () => {
}, },
legend: { legend: {
data: legendData, data: legendData,
itemStyle: {
// color: "#fff"
},
right: 5, // 10px right: 5, // 10px
top: 15, top: 15,
itemWidth: 10, // itemWidth: 10, //
@ -213,9 +210,7 @@ const initChart = () => {
padding: [0, 0, 5, -28] // padding: [0, 0, 5, -28] //
}, },
axisLabel: { axisLabel: {
textStyle: { color: "#94C1EC"
color: "#94C1EC"
}
}, },
type: "value", type: "value",
splitLine: { splitLine: {

View File

@ -91,7 +91,7 @@
import abnormalPostItemTitle from "@/assets/images/abnormalGroup/abnormal-action-analysis-item-title.png" import abnormalPostItemTitle from "@/assets/images/abnormalGroup/abnormal-action-analysis-item-title.png"
import groupEvolutionTitle from "@/assets/images/groupEvolution/group-evolution-analysis-titlt.png" import groupEvolutionTitle from "@/assets/images/groupEvolution/group-evolution-analysis-titlt.png"
import abnormalTitle from "@/assets/images/abnormalGroup/abnormal-action-analysis-title.png" import abnormalTitle from "@/assets/images/abnormalGroup/abnormal-action-analysis-title.png"
import { ref, computed, defineProps, defineEmits, onMounted, onBeforeUnmount } from "vue" import { ref, defineProps, defineEmits, onMounted, onBeforeUnmount } from "vue"
import { TansTimestamp } from "@/utils/transform" import { TansTimestamp } from "@/utils/transform"
const props = defineProps({ const props = defineProps({
posts: { posts: {
@ -109,7 +109,6 @@ const props = defineProps({
}) })
const emit = defineEmits(["click:openDialog"]) const emit = defineEmits(["click:openDialog"])
const animationDuration = computed(() => `${props.posts.length * 3}s`)
const maxInfluence = 10000 const maxInfluence = 10000
@ -156,10 +155,6 @@ function resumeScroll() {
} }
onMounted(() => { onMounted(() => {
console.log("打印moudleName:")
console.log(props.moduleName)
console.log(props.posts)
startScroll() startScroll()
}) })
onBeforeUnmount(() => { onBeforeUnmount(() => {
@ -218,9 +213,12 @@ onBeforeUnmount(() => {
flex-shrink: 0; flex-shrink: 0;
cursor: pointer; cursor: pointer;
margin: 8px 0; margin: 8px 0;
&:hover {
background: linear-gradient(90deg, rgba(63, 169, 245, 0.4) 0%, rgba(0, 84, 187, 0) 100%);
}
} }
.post-item.highlighted { .post-item .highlighted {
background: linear-gradient(90deg, rgba(63, 169, 245, 0.4) 0%, rgba(0, 84, 187, 0) 100%); background: linear-gradient(90deg, rgba(63, 169, 245, 0.4) 0%, rgba(0, 84, 187, 0) 100%);
} }

View File

@ -59,9 +59,7 @@ const optionHandle = ({ xAxis, yAxis, data }, flag) => {
boundaryGap: true, boundaryGap: true,
data: xAxis, data: xAxis,
axisLabel: { axisLabel: {
textStyle: { color: "#94C1EC"
color: "#94C1EC"
}
}, },
axisTick: { axisTick: {
show: false show: false
@ -79,9 +77,7 @@ const optionHandle = ({ xAxis, yAxis, data }, flag) => {
padding: [0, 0, 0, -28] // padding: [0, 0, 0, -28] //
}, },
axisLabel: { axisLabel: {
textStyle: { color: "#94C1EC"
color: "#94C1EC"
}
}, },
type: "value", type: "value",
splitLine: { splitLine: {

View File

@ -12,7 +12,7 @@
<div class="userChart"> <div class="userChart">
<GroupChart <GroupChart
:title="groupChartTitleImg" :title="groupChartTitleImg"
:moduleName="群体规模演化图" :moduleName="'群体规模演化图'"
:chartData="groupDiscoveryStore.chartData" :chartData="groupDiscoveryStore.chartData"
></GroupChart> ></GroupChart>
</div> </div>
@ -60,9 +60,9 @@ import groupChartTitleImg from "@/assets/images/groupEvolution/chart-title.png"
import groupGroupShowImg from "@/assets/images/groupEvolution/groupDisc-title.png" import groupGroupShowImg from "@/assets/images/groupEvolution/groupDisc-title.png"
import { useGroupDiscoveryStore } from "@/store/groupEvolution/index" import { useGroupDiscoveryStore } from "@/store/groupEvolution/index"
const groupDiscoveryStore = useGroupDiscoveryStore(); const groupDiscoveryStore = useGroupDiscoveryStore()
const moduleName = '群体识别发现'; const moduleName = "群体识别发现"
// //
const postDialog = ref(false) const postDialog = ref(false)