Browse Source

信访大屏前端1.5

main
parent
commit
a02ec7f857
  1. 20
      src/views/datav/MailVisits.vue

20
src/views/datav/MailVisits.vue

@ -187,7 +187,7 @@
</datav-tabs> </datav-tabs>
<div class="dropdown-container"> <div class="dropdown-container">
<el-dropdown @command="handleCommand" placement="top-start"> <el-dropdown @command="handleCommand" placement="top-start">
<span class="el-dropdown-link">{{ selectedOption }}</span> <span class="el-dropdown-link">{{ selectedOption }} </span>
<template #dropdown> <template #dropdown>
<el-dropdown-menu> <el-dropdown-menu>
<el-dropdown-item command="2024">2024</el-dropdown-item> <el-dropdown-item command="2024">2024</el-dropdown-item>
@ -502,10 +502,10 @@ const time = ref([
* 信访趋势 * 信访趋势
* @type {Ref<UnwrapRef<string>, UnwrapRef<string> | string>} * @type {Ref<UnwrapRef<string>, UnwrapRef<string> | string>}
*/ */
const selectedOption = ref('2024'); const selectedOption = ref('2024');
const shihao= ref(1); const shihao= ref(1);
const handleCommand = async (command) => { const handleCommand = async (command) => {
selectedOption.value = `${command}`; selectedOption.value = `${command}`;
const recentlyMailTrend = await getRecentlyMailTrend({ const recentlyMailTrend = await getRecentlyMailTrend({
sourcesCode: activeMailTab.value, sourcesCode: activeMailTab.value,
year: command, year: command,
@ -530,9 +530,17 @@ function initRecentlyMailTrend() {
}); });
} }
watch(activeMailTrend, () => { watch(activeMailTrend, async () => {
alert(activeMailTrend.value) // console.log("Active Tab: ", activeMailTrend.value);
alert(shihao.value) // console.log("Active Tab Right: ", selectedOption.value);
const recentlyMailTrend = await getRecentlyMailTrend({
sourcesCode: activeMailTrend.value,
year: selectedOption.value,
startTime: time.value[0],
endTime: time.value[1]
});
option1.value.xAxis.data = recentlyMailTrend.monthList;
option1.value.series[0].data = recentlyMailTrend.totalList;
}) })

Loading…
Cancel
Save