|
|
|
|
@ -8,6 +8,8 @@
|
|
|
|
|
<datav-card title="所队排名" subTitle="案件数"> |
|
|
|
|
<datav-tabs |
|
|
|
|
type="bottom-button" |
|
|
|
|
v-model="subOneCaseVerifRankTab" |
|
|
|
|
ref="subOneCaseVerifRankTabs" |
|
|
|
|
> |
|
|
|
|
<datav-tab-item label="派出所" name="1"> |
|
|
|
|
<el-scrollbar height="350px"> |
|
|
|
|
@ -36,6 +38,7 @@
|
|
|
|
|
style="height: 320px" |
|
|
|
|
:option="zfbaPieOption" |
|
|
|
|
autoresize |
|
|
|
|
ref="subOneZfbaProProperty" |
|
|
|
|
/> |
|
|
|
|
</datav-tab-item> |
|
|
|
|
<datav-tab-item label="服务管理" name="2"> |
|
|
|
|
@ -94,13 +97,15 @@
|
|
|
|
|
style="height: 420px" |
|
|
|
|
:option="option" |
|
|
|
|
autoresize |
|
|
|
|
ref="chart" |
|
|
|
|
ref="subOneCaseVerifMap" |
|
|
|
|
@click="handleClick" |
|
|
|
|
/> |
|
|
|
|
<datav-card title="查实问题趋势"> |
|
|
|
|
<v-charts |
|
|
|
|
style="height: 320px" |
|
|
|
|
:option="proTrend" |
|
|
|
|
autoresize |
|
|
|
|
ref="subOneCaseVerifProTrend" |
|
|
|
|
/> |
|
|
|
|
<div class="gobal-dropdown-container"> |
|
|
|
|
<el-dropdown class="test" @command="handleCommand"> |
|
|
|
|
@ -126,6 +131,7 @@
|
|
|
|
|
style="height: 340px" |
|
|
|
|
:option="ajlyPieOption" |
|
|
|
|
autoresize |
|
|
|
|
ref="subOneCaseSourceRate" |
|
|
|
|
/> |
|
|
|
|
</div> |
|
|
|
|
</datav-tab-item> |
|
|
|
|
@ -148,6 +154,7 @@
|
|
|
|
|
style="height: 340px" |
|
|
|
|
:option="jbcloption" |
|
|
|
|
autoresize |
|
|
|
|
ref="subOneJbclSituation" |
|
|
|
|
/> |
|
|
|
|
</div> |
|
|
|
|
</datav-tab-item> |
|
|
|
|
@ -167,6 +174,7 @@
|
|
|
|
|
</main> |
|
|
|
|
</div> |
|
|
|
|
</el-scrollbar> |
|
|
|
|
<negative-info-depart-dialog v-model="showDialog" :departId="tempDepartId"/> |
|
|
|
|
</template> |
|
|
|
|
|
|
|
|
|
<script setup> |
|
|
|
|
@ -177,9 +185,13 @@ import moment from "moment";
|
|
|
|
|
import {getSubOneStreetMap} from "@/api/screen/subScreen/subOneGlobal.ts"; |
|
|
|
|
import { |
|
|
|
|
getSubOneAllCaseVerificationCount, |
|
|
|
|
getSubOneCaseProblemProperty, getSubOneCaseSourceRateAndDealSituation, getSubOneCaseVerificationMap, |
|
|
|
|
getSubOneCaseVerificationRank, getSubOneCaseVerificationTrend |
|
|
|
|
getSubOneCaseProblemProperty, |
|
|
|
|
getSubOneCaseSourceRateAndDealSituation, |
|
|
|
|
getSubOneCaseVerificationMap, |
|
|
|
|
getSubOneCaseVerificationRank, |
|
|
|
|
getSubOneCaseVerificationTrend |
|
|
|
|
} from "@/api/screen/subScreen/subOneCaseVerif.ts"; |
|
|
|
|
import {circularChart} from "@/views/datav/simulateData/AnimationTestData.js"; |
|
|
|
|
|
|
|
|
|
// region 所有变量 |
|
|
|
|
const currentYear = new Date().getFullYear(); |
|
|
|
|
@ -191,7 +203,6 @@ const time = ref([
|
|
|
|
|
]); |
|
|
|
|
const route = useRoute(); |
|
|
|
|
const currentDepartId = route.query.departId; |
|
|
|
|
const chart = ref(null); // 地图 |
|
|
|
|
const currentMapData = ref({}) // 地图数据 |
|
|
|
|
const fxsjBarList = ref([]); |
|
|
|
|
const jsdwBarList = ref([]); |
|
|
|
|
@ -214,6 +225,23 @@ const colors = [
|
|
|
|
|
percentage: 60, |
|
|
|
|
}, |
|
|
|
|
]; |
|
|
|
|
const showDialog = ref(false); |
|
|
|
|
const tempDepartId = ref(0); // 临时部门id |
|
|
|
|
|
|
|
|
|
const subOneCaseVerifRankTab = ref('1'); |
|
|
|
|
const subOneCaseVerifRankTabs = ref(null); |
|
|
|
|
const subOneZfbaProProperty = ref(null); |
|
|
|
|
const subOneCaseVerifMap = ref(null); |
|
|
|
|
const subOneCaseVerifProTrend = ref(null); |
|
|
|
|
const subOneCaseSourceRate = ref(null); |
|
|
|
|
const subOneJbclSituation = ref(null); |
|
|
|
|
let subOneCaseVerifRankIntervalId; |
|
|
|
|
let subOneCaseVerifProPropertyIntervalId; |
|
|
|
|
let subOneCaseVerifMapIntervalId; |
|
|
|
|
let subOneCaseVerifTrendIntervalId; |
|
|
|
|
let subOneCaseVerifCaseSourceIntervalId; |
|
|
|
|
let subOneCaseVerifJbclSituationIntervalId; |
|
|
|
|
|
|
|
|
|
// endregion |
|
|
|
|
|
|
|
|
|
// region 所有图表 |
|
|
|
|
@ -221,11 +249,12 @@ echarts.registerMap("changsha", changshaMap);
|
|
|
|
|
const option = ref({ |
|
|
|
|
tooltip: { |
|
|
|
|
trigger: 'item', |
|
|
|
|
position: 'bottom', |
|
|
|
|
formatter: function (params) { |
|
|
|
|
console.log(params) |
|
|
|
|
const dataItem = gobalTempMapVoList.value.find(item => item.name === params.name) || {}; // 找到对应的数据项 |
|
|
|
|
console.log("Data item:", dataItem); |
|
|
|
|
if (dataItem.name===params.name ) { |
|
|
|
|
if (dataItem.name === params.name) { |
|
|
|
|
return ` |
|
|
|
|
<div class="tooltip"> |
|
|
|
|
<div class="tooltip-title">${params.name}</div> |
|
|
|
|
@ -272,7 +301,7 @@ const option = ref({
|
|
|
|
|
}, |
|
|
|
|
calculable: true, |
|
|
|
|
inRange: { |
|
|
|
|
color: ["#4987F6","#F6A149", "#D34343" ], |
|
|
|
|
color: ["#4987F6", "#F6A149", "#D34343"], |
|
|
|
|
}, |
|
|
|
|
}, |
|
|
|
|
series: [ |
|
|
|
|
@ -281,7 +310,7 @@ const option = ref({
|
|
|
|
|
type: "map", |
|
|
|
|
map: "changsha", |
|
|
|
|
hoverAnimation: true, |
|
|
|
|
roam:true, |
|
|
|
|
roam: true, |
|
|
|
|
label: { |
|
|
|
|
show: true, |
|
|
|
|
color: "white", |
|
|
|
|
@ -310,7 +339,7 @@ const proTrend = ref({
|
|
|
|
|
// 去掉X轴刻度线 |
|
|
|
|
show: false |
|
|
|
|
}, |
|
|
|
|
data: ['1月','2月','3月','4月','5月','6月','7月','8月','9月','10月'], |
|
|
|
|
data: ['1月', '2月', '3月', '4月', '5月', '6月', '7月', '8月', '9月', '10月'], |
|
|
|
|
}, |
|
|
|
|
yAxis: { |
|
|
|
|
type: "value", |
|
|
|
|
@ -370,6 +399,7 @@ const ajlyPieOption = ref({
|
|
|
|
|
], |
|
|
|
|
tooltip: { |
|
|
|
|
trigger: "item", |
|
|
|
|
position: "bottom" |
|
|
|
|
}, |
|
|
|
|
}); |
|
|
|
|
const wzclPieOption = ref({ |
|
|
|
|
@ -400,6 +430,7 @@ const zfbaPieOption = ref({
|
|
|
|
|
], |
|
|
|
|
tooltip: { |
|
|
|
|
trigger: "item", |
|
|
|
|
position: "bottom" |
|
|
|
|
}, |
|
|
|
|
}); |
|
|
|
|
const fwglPieOption = ref({ |
|
|
|
|
@ -435,6 +466,7 @@ const jgjjPieOption = ref({
|
|
|
|
|
const jbcloption = ref({ |
|
|
|
|
tooltip: { |
|
|
|
|
trigger: "item", |
|
|
|
|
position: "bottom" |
|
|
|
|
}, |
|
|
|
|
series: [ |
|
|
|
|
{ |
|
|
|
|
@ -489,24 +521,24 @@ const getMapJSON = async (departId) => {
|
|
|
|
|
const res = await getSubOneStreetMap(departId); |
|
|
|
|
currentMapData.value = res; |
|
|
|
|
echarts.registerMap("changsha", res); |
|
|
|
|
chart.value.chart.setOption(option.value); |
|
|
|
|
subOneCaseVerifMap.value.chart.setOption(option.value); |
|
|
|
|
} |
|
|
|
|
const getRankListData = async(departId, timeValue) => { |
|
|
|
|
const getSubOneCaseVerificationRankData = async (departId, timeValue) => { |
|
|
|
|
const res = await getSubOneCaseVerificationRank(departId, timeValue); |
|
|
|
|
fxsjBarList.value = res.fxsjRankList |
|
|
|
|
jsdwBarList.value = res.jsdwRankList |
|
|
|
|
} |
|
|
|
|
const getCaseProblemPropertyList = async(departId, timeValue) => { |
|
|
|
|
const res = await getSubOneCaseProblemProperty(departId,timeValue); |
|
|
|
|
const getSubOneCaseProblemPropertyData = async (departId, timeValue) => { |
|
|
|
|
const res = await getSubOneCaseProblemProperty(departId, timeValue); |
|
|
|
|
zfbaPieOption.value.series[0].data = res.zfbaPieList; |
|
|
|
|
fwglPieOption.value.series[0].data = res.fwglPieList; |
|
|
|
|
} |
|
|
|
|
const getOverview = async(departId, timeValue)=>{ |
|
|
|
|
const res = await getSubOneAllCaseVerificationCount(departId, timeValue) |
|
|
|
|
const getSubOneAllCaseVerificationCountData = async (departId, timeValue) => { |
|
|
|
|
const res = await getSubOneAllCaseVerificationCount(departId, timeValue) |
|
|
|
|
overview.value = res.overview |
|
|
|
|
} |
|
|
|
|
const getMapIcon = async(departId, timeValue)=> { |
|
|
|
|
const res = await getSubOneCaseVerificationMap(departId,timeValue); |
|
|
|
|
const getSubOneCaseVerificationMapData = async (departId, timeValue) => { |
|
|
|
|
const res = await getSubOneCaseVerificationMap(departId, timeValue); |
|
|
|
|
const mappedData = res.caseVerificationMapList.map(item => { |
|
|
|
|
return { |
|
|
|
|
...item, |
|
|
|
|
@ -524,7 +556,7 @@ const getMapIcon = async(departId, timeValue)=> {
|
|
|
|
|
{gte: range80Percent, label: "高于最大问题80%", color: "#D34343"}, |
|
|
|
|
]; |
|
|
|
|
} |
|
|
|
|
const getProTrendList= async(departId, year) => { |
|
|
|
|
const getSubOneCaseVerificationTrendData = async (departId, year) => { |
|
|
|
|
const res = await getSubOneCaseVerificationTrend(departId, year); |
|
|
|
|
const temp = res.proTrendList; |
|
|
|
|
const categories = temp.map(item => item.name); |
|
|
|
|
@ -532,43 +564,216 @@ const getProTrendList= async(departId, year) => {
|
|
|
|
|
proTrend.value.xAxis.data = categories; |
|
|
|
|
proTrend.value.series[0].data = values; |
|
|
|
|
} |
|
|
|
|
const getCaseSourceAndDeal = async (departId, timeValue)=>{ |
|
|
|
|
const getSubOneCaseSourceRateAndDealSituationData = async (departId, timeValue) => { |
|
|
|
|
const res = await getSubOneCaseSourceRateAndDealSituation(departId, timeValue); |
|
|
|
|
ajlyPieOption.value.series[0].data = res.caseSourceRateList |
|
|
|
|
wzclPieOption.value.series[0].data = res.dealSituationPieList |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// const getConfinementAndPauseList = async (timeValue)=>{ |
|
|
|
|
// const getConfinementAndPauseList = async (departId,timeValue)=>{ |
|
|
|
|
// const res = await getConfinementAndPause(timeValue); |
|
|
|
|
// jbcloption.value.series[0].data = res.jbclList; |
|
|
|
|
// tzcloption.value.series[0].data = res.dzclList; |
|
|
|
|
// // jbcloption.value.series[0].data = circularChart; |
|
|
|
|
// } |
|
|
|
|
function getData() { |
|
|
|
|
getMapJSON(currentDepartId) |
|
|
|
|
getRankListData(currentDepartId,time.value) |
|
|
|
|
getCaseProblemPropertyList(currentDepartId,time.value) |
|
|
|
|
getOverview(currentDepartId,time.value) |
|
|
|
|
getMapIcon(currentDepartId,time.value) |
|
|
|
|
getProTrendList(currentDepartId,currentYear) |
|
|
|
|
getCaseSourceAndDeal(currentDepartId,time.value) |
|
|
|
|
getSubOneCaseVerificationRankData(currentDepartId, time.value) |
|
|
|
|
getSubOneCaseProblemPropertyData(currentDepartId, time.value) |
|
|
|
|
getSubOneAllCaseVerificationCountData(currentDepartId, time.value) |
|
|
|
|
getSubOneCaseVerificationMapData(currentDepartId, time.value) |
|
|
|
|
getSubOneCaseVerificationTrendData(currentDepartId, currentYear) |
|
|
|
|
getSubOneCaseSourceRateAndDealSituationData(currentDepartId, time.value) |
|
|
|
|
// getConfinementAndPauseList(currentDepartId, time.value) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
onMounted(() => { |
|
|
|
|
getData(); |
|
|
|
|
}); |
|
|
|
|
// endregion |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
// region 事件||监听 |
|
|
|
|
const handleCommand = ( year) => { |
|
|
|
|
selectedYear.value = year; // 更新当前选中的年份 |
|
|
|
|
getProTrendList(currentDepartId,year); |
|
|
|
|
// region动画 |
|
|
|
|
// 分县市局排名动画 |
|
|
|
|
const subOneCaseVerifRankAnimation = () => { |
|
|
|
|
subOneCaseVerifRankTab.value = (parseInt(subOneCaseVerifRankTab.value) % 2 + 1).toString(); |
|
|
|
|
}; |
|
|
|
|
subOneCaseVerifRankIntervalId = setInterval(subOneCaseVerifRankAnimation, 2000); |
|
|
|
|
const subOneCaseVerifProPropertyAnimation = () => { |
|
|
|
|
const temp = subOneZfbaProProperty?.value?.chart; |
|
|
|
|
if (!temp) return; |
|
|
|
|
const length = zfbaPieOption.value.series[0].data.length; |
|
|
|
|
const randomNum = Math.floor(Math.random() * length); |
|
|
|
|
temp?.dispatchAction({type: 'downplay', seriesIndex: 0}); |
|
|
|
|
temp?.dispatchAction({type: 'highlight', seriesIndex: 0, dataIndex: randomNum}); // 显示 |
|
|
|
|
temp?.dispatchAction({type: 'showTip', seriesIndex: 0, dataIndex: randomNum}); |
|
|
|
|
} |
|
|
|
|
subOneCaseVerifProPropertyIntervalId = setInterval(subOneCaseVerifProPropertyAnimation, 2000); |
|
|
|
|
// 地图动画 |
|
|
|
|
const subOneCaseVerifMapAnimation = () => { |
|
|
|
|
const mapTemp = subOneCaseVerifMap?.value?.chart; |
|
|
|
|
if (!mapTemp) return; |
|
|
|
|
// 取后端传过来的有地图数据的长度,有些街道没有数据,没有意义 |
|
|
|
|
const mapLength = gobalTempMapVoList.value.length; |
|
|
|
|
const randomNum = Math.floor(mapLength); |
|
|
|
|
console.log(randomNum); |
|
|
|
|
mapTemp.dispatchAction({ |
|
|
|
|
type: "downplay", //downplay 取消高亮 |
|
|
|
|
}); |
|
|
|
|
mapTemp.dispatchAction({ |
|
|
|
|
type: "highlight", //highLight 高亮指定的数据图形 |
|
|
|
|
seriesIndex: 0, //系列index |
|
|
|
|
dataIndex: randomNum, //数据index |
|
|
|
|
}); |
|
|
|
|
mapTemp.dispatchAction({ |
|
|
|
|
type: "showTip", //showTip 显示提示框 |
|
|
|
|
seriesIndex: 0, |
|
|
|
|
dataIndex: randomNum, |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
subOneCaseVerifMapIntervalId = setInterval(subOneCaseVerifMapAnimation, 2000); |
|
|
|
|
|
|
|
|
|
// 问题趋势动画 |
|
|
|
|
const subOneCaseVerifTrendAnimation = () => { |
|
|
|
|
const proTrendTemp = subOneCaseVerifProTrend?.value?.chart; |
|
|
|
|
if (!proTrendTemp) return; |
|
|
|
|
const randomNum = Math.floor(Math.random() * 12); |
|
|
|
|
proTrendTemp.dispatchAction({ |
|
|
|
|
type: 'showTip', |
|
|
|
|
seriesIndex: 0, |
|
|
|
|
dataIndex: randomNum, |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
subOneCaseVerifTrendIntervalId = setInterval(subOneCaseVerifTrendAnimation, 2000); |
|
|
|
|
// 案件来源占比 |
|
|
|
|
const subOneCaseVerifCaseSourceRateAnimation = () => { |
|
|
|
|
const temp = subOneCaseSourceRate?.value?.chart; |
|
|
|
|
if (!temp) return; |
|
|
|
|
const length = ajlyPieOption.value.series[0].data.length; |
|
|
|
|
const randomNum = Math.floor(Math.random() * length); |
|
|
|
|
temp?.dispatchAction({type: 'downplay', seriesIndex: 0}); |
|
|
|
|
temp?.dispatchAction({type: 'highlight', seriesIndex: 0, dataIndex: randomNum}); // 显示 |
|
|
|
|
temp?.dispatchAction({type: 'showTip', seriesIndex: 0, dataIndex: randomNum}); |
|
|
|
|
} |
|
|
|
|
subOneCaseVerifCaseSourceIntervalId = setInterval(subOneCaseVerifCaseSourceRateAnimation, 2000); |
|
|
|
|
// 禁闭处理情况 |
|
|
|
|
const subOneCaseVerifJbclSituationAnimation = () => { |
|
|
|
|
const temp = subOneJbclSituation?.value?.chart; |
|
|
|
|
if (!temp) return; |
|
|
|
|
const length = jbcloption.value.series[0].data.length; |
|
|
|
|
const randomNum = Math.floor(Math.random() * length); |
|
|
|
|
temp?.dispatchAction({type: 'downplay', seriesIndex: 0}); |
|
|
|
|
temp?.dispatchAction({type: 'highlight', seriesIndex: 0, dataIndex: randomNum}); // 显示 |
|
|
|
|
temp?.dispatchAction({type: 'showTip', seriesIndex: 0, dataIndex: randomNum}); |
|
|
|
|
} |
|
|
|
|
subOneCaseVerifJbclSituationIntervalId = setInterval(subOneCaseVerifJbclSituationAnimation, 2000); |
|
|
|
|
|
|
|
|
|
// endregion |
|
|
|
|
|
|
|
|
|
// region 事件||监听 |
|
|
|
|
watch(time, () => { |
|
|
|
|
getData(); |
|
|
|
|
}); |
|
|
|
|
// endregion |
|
|
|
|
onMounted(() => { |
|
|
|
|
getData(); |
|
|
|
|
setupEventListeners(); |
|
|
|
|
}); |
|
|
|
|
const handleCommand = (year) => { |
|
|
|
|
selectedYear.value = year; // 更新当前选中的年份 |
|
|
|
|
getSubOneCaseVerificationTrendData(currentDepartId, year); |
|
|
|
|
}; |
|
|
|
|
const handleClick = (params) => { |
|
|
|
|
const departId = params.data.departId; |
|
|
|
|
showDialog.value = true; |
|
|
|
|
tempDepartId.value = departId |
|
|
|
|
clearInterval(subOneGlobalMapIntervalId); |
|
|
|
|
} |
|
|
|
|
const setupEventListeners = () => { |
|
|
|
|
caseVerifRankAnimationStop(); |
|
|
|
|
caseVerifProPropertyAnimationStop(); |
|
|
|
|
subOneCaseVerifMapAnimationStop(); |
|
|
|
|
subOneCaseVerifTrendAnimationStop(); |
|
|
|
|
subOneCaseVerifCaseSourceRateAnimationStop(); |
|
|
|
|
subOneCaseVerifJbclSituationAnimationStop(); |
|
|
|
|
}; |
|
|
|
|
const caseVerifRankAnimationStop = () => { |
|
|
|
|
const temp = subOneCaseVerifRankTabs.value.$el; |
|
|
|
|
temp.addEventListener('mouseenter', () => { |
|
|
|
|
clearInterval(subOneCaseVerifRankIntervalId) |
|
|
|
|
}); |
|
|
|
|
temp.addEventListener('mouseleave', () => { |
|
|
|
|
clearInterval(subOneCaseVerifRankIntervalId); // 确保没有多个定时器同时运行 |
|
|
|
|
subOneCaseVerifRankIntervalId = setInterval(subOneCaseVerifRankAnimation, 3000); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
const caseVerifProPropertyAnimationStop = () => { |
|
|
|
|
const temp = subOneZfbaProProperty?.value?.chart; |
|
|
|
|
temp.on('mousemove', (e) => { |
|
|
|
|
clearInterval(subOneCaseVerifProPropertyIntervalId); |
|
|
|
|
temp.dispatchAction({type: "downplay", seriesIndex: 0,}); |
|
|
|
|
temp.dispatchAction({type: "highlight", seriesIndex: 0, dataIndex: e.dataIndex,}); |
|
|
|
|
temp.dispatchAction({type: "showTip", seriesIndex: 0, dataIndex: e.dataIndex,}); |
|
|
|
|
}) |
|
|
|
|
temp.on('mouseout', () => { |
|
|
|
|
clearInterval(subOneCaseVerifProPropertyIntervalId); |
|
|
|
|
subOneCaseVerifProPropertyIntervalId = setInterval(subOneCaseVerifProPropertyAnimation, 2000); |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
const subOneCaseVerifMapAnimationStop = () => { |
|
|
|
|
const mapTemp = subOneCaseVerifMap?.value?.chart; |
|
|
|
|
// 鼠标移入 |
|
|
|
|
mapTemp.on('mousemove', (e) => { |
|
|
|
|
clearInterval(subOneCaseVerifMapIntervalId); |
|
|
|
|
mapTemp.dispatchAction({type: "downplay", seriesIndex: 0,}); |
|
|
|
|
mapTemp.dispatchAction({type: "highlight", seriesIndex: 0, dataIndex: e.dataIndex,}); |
|
|
|
|
mapTemp.dispatchAction({type: "showTip", seriesIndex: 0, dataIndex: e.dataIndex,}); |
|
|
|
|
}); |
|
|
|
|
// 鼠标移出 |
|
|
|
|
mapTemp.on('mouseout', () => { |
|
|
|
|
if ( showDialog ){ |
|
|
|
|
clearInterval(subOneCaseVerifMapIntervalId); // 确保没有多个定时器同时运行 |
|
|
|
|
}else { |
|
|
|
|
clearInterval(subOneCaseVerifMapIntervalId); // 确保没有多个定时器同时运行 |
|
|
|
|
subOneCaseVerifMapIntervalId = setInterval(subOneCaseVerifMapAnimation, 2000); |
|
|
|
|
} |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
const subOneCaseVerifTrendAnimationStop = () => { |
|
|
|
|
const temp = subOneCaseVerifProTrend?.value.getDom(); |
|
|
|
|
temp.addEventListener('mouseenter', () => { |
|
|
|
|
clearInterval(subOneCaseVerifTrendIntervalId); |
|
|
|
|
}); |
|
|
|
|
temp.addEventListener('mouseleave', () => { |
|
|
|
|
clearInterval(subOneCaseVerifTrendIntervalId); |
|
|
|
|
subOneCaseVerifTrendIntervalId = setInterval(subOneCaseVerifTrendAnimation, 2000); |
|
|
|
|
}); |
|
|
|
|
} |
|
|
|
|
const subOneCaseVerifCaseSourceRateAnimationStop = () => { |
|
|
|
|
const temp = subOneCaseSourceRate?.value?.chart; |
|
|
|
|
temp.on('mousemove', (e) => { |
|
|
|
|
clearInterval(subOneCaseVerifCaseSourceIntervalId); |
|
|
|
|
temp.dispatchAction({type: "downplay", seriesIndex: 0,}); |
|
|
|
|
temp.dispatchAction({type: "highlight", seriesIndex: 0, dataIndex: e.dataIndex,}); |
|
|
|
|
temp.dispatchAction({type: "showTip", seriesIndex: 0, dataIndex: e.dataIndex,}); |
|
|
|
|
}) |
|
|
|
|
temp.on('mouseout', () => { |
|
|
|
|
clearInterval(subOneCaseVerifCaseSourceIntervalId); |
|
|
|
|
subOneCaseVerifCaseSourceIntervalId = setInterval(subOneCaseVerifCaseSourceRateAnimation, 2000); |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
const subOneCaseVerifJbclSituationAnimationStop = () => { |
|
|
|
|
const temp = subOneJbclSituation?.value?.chart; |
|
|
|
|
temp.on('mousemove', (e) => { |
|
|
|
|
clearInterval(subOneCaseVerifJbclSituationIntervalId); |
|
|
|
|
temp.dispatchAction({type: "downplay", seriesIndex: 0,}); |
|
|
|
|
temp.dispatchAction({type: "highlight", seriesIndex: 0, dataIndex: e.dataIndex,}); |
|
|
|
|
temp.dispatchAction({type: "showTip", seriesIndex: 0, dataIndex: e.dataIndex,}); |
|
|
|
|
}) |
|
|
|
|
temp.on('mouseout', () => { |
|
|
|
|
clearInterval(subOneCaseVerifJbclSituationIntervalId); |
|
|
|
|
subOneCaseVerifJbclSituationIntervalId = setInterval(subOneCaseVerifJbclSituationAnimation, 2000); |
|
|
|
|
}) |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// endregion |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
</script> |
|
|
|
|
@ -653,6 +858,7 @@ watch(time, () => {
|
|
|
|
|
right: 20px; |
|
|
|
|
top: 15px; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
.test { |
|
|
|
|
width: 95px; |
|
|
|
|
height: 25px; |
|
|
|
|
|